fix(仪表板): 修复组件工具栏同时悬浮在不同Tab页的问题

This commit is contained in:
wangjiahao 2022-11-02 15:46:02 +08:00
parent 08b90af58c
commit 3c52421b10

View File

@ -202,7 +202,7 @@
</el-dialog>
<text-attr
v-if="showAttr && curComponent.canvasId !== 'canvas-main'"
v-if="showAttr && curComponent.canvasId === activeCanvasId"
:canvas-id="curComponent.canvasId"
:scroll-left="scrollLeft"
:scroll-top="scrollTop"
@ -298,6 +298,9 @@ export default {
}
},
computed: {
activeCanvasId() {
return this.element.id + '-' + this.activeTabName
},
maskShow() {
return Boolean(this.$store.state.dragComponentInfo)
},