fix:修改删除的bug

This commit is contained in:
MTrun
2022-02-01 01:20:00 +08:00
parent c92510863f
commit b9501cee37
8 changed files with 23 additions and 29 deletions
@@ -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)
}
// 移动图表
+1 -1
View File
@@ -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"