fix: MAC平台,在大屏编辑界面按shift键后,无法使用command键选择图层进行组合

This commit is contained in:
wangjiahao
2023-12-27 18:41:45 +08:00
parent aacdcd26bf
commit c61b7fcf6e
2 changed files with 13 additions and 5 deletions

View File

@@ -65,6 +65,12 @@ const onClick = (e, index) => {
composeStore.setLaterIndex(null)
}
// ctrl or command 按下时 鼠标点击为选择需要组合的组件(取消需要组合的组件在ComposeShow组件中)
console.log(
'isCtrlOrCmdDown=' +
isCtrlOrCmdDown.value +
';all=' +
!!(isCtrlOrCmdDown.value && !areaData.value.components.includes(componentData.value[index]))
)
if (isCtrlOrCmdDown.value && !areaData.value.components.includes(componentData.value[index])) {
areaDataPush(componentData.value[index])
if (curComponent.value && curComponent.value.id !== componentData.value[index].id) {