mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix:修改删除的bug
This commit is contained in:
@@ -31,11 +31,11 @@ const chartEditStore = useChartEditStoreStore()
|
||||
|
||||
// 计算当前选中目标
|
||||
const hover = computed(() => {
|
||||
return props.item.id === chartEditStore.getTargetChart.hoverIndex
|
||||
return props.item.id === chartEditStore.getTargetChart.hoverId
|
||||
})
|
||||
|
||||
const select = computed(() => {
|
||||
return props.item.id === chartEditStore.getTargetChart.selectIndex
|
||||
return props.item.id === chartEditStore.getTargetChart.selectId
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ export const mousedownHandleUnStop = (
|
||||
chartEditStore.setTargetSelectChart(item.id)
|
||||
return
|
||||
}
|
||||
chartEditStore.setTargetSelectChart(item)
|
||||
chartEditStore.setTargetSelectChart(undefined)
|
||||
}
|
||||
|
||||
// 移动图表
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
@mousedown="mousedownHandle($event, item)"
|
||||
@mouseenter="mouseenterHandle($event, item)"
|
||||
@mouseleave="mouseleaveHandle($event, item)"
|
||||
@contextmenu="handleContextMenu($event, index)"
|
||||
@contextmenu="handleContextMenu($event, item)"
|
||||
>
|
||||
<component
|
||||
class="edit-content-chart"
|
||||
|
||||
Reference in New Issue
Block a user