fix:修改删除的bug

This commit is contained in:
MTrun
2022-02-01 01:20:00 +08:00
parent 25368419a3
commit 6f93de7ad4
8 changed files with 23 additions and 29 deletions
@@ -43,11 +43,11 @@ const { image, title } = toRefs(props.componentData.chartData)
// 计算当前选中目标
const select = computed(() => {
return props.componentData.id === chartEditStore.getTargetChart.selectIndex
return props.componentData.id === chartEditStore.getTargetChart.selectId
})
const hover = computed(() => {
return props.componentData.id === chartEditStore.getTargetChart.hoverIndex
return props.componentData.id === chartEditStore.getTargetChart.hoverId
})
</script>
+2 -2
View File
@@ -14,13 +14,13 @@
<!-- 图层内容 -->
<ListItem
v-for="item in chartEditStore.getComponentList"
v-for="(item) in chartEditStore.getComponentList"
:key="item.id"
:componentData="item"
@mousedown="mousedownHandle(item)"
@mouseenter="mouseenterHandle(item)"
@mouseleave="mouseleaveHandle(item)"
@contextmenu="handleContextMenu($event, index)"
@contextmenu="handleContextMenu($event, item)"
/>
</ContentBox>
</template>