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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user