fix: 处理右键多选的问题
This commit is contained in:
parent
e6209cc008
commit
7d3267959f
@ -88,8 +88,9 @@ export const useMouseHandle = () => {
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
// 按下右键 + 选中多个
|
// 按下右键 + 选中多个 + 目标元素是多选子元素
|
||||||
if (e.buttons === MouseEventButton.RIGHT && chartEditStore.getTargetChart.selectId.length > 1) return
|
const selectId = chartEditStore.getTargetChart.selectId
|
||||||
|
if (e.buttons === MouseEventButton.RIGHT && selectId.length > 1 && selectId.includes(item.id)) return
|
||||||
|
|
||||||
// 选中当前目标组件
|
// 选中当前目标组件
|
||||||
chartEditStore.setTargetSelectChart(item.id)
|
chartEditStore.setTargetSelectChart(item.id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user