fix(仪表板): 修复无法复用Tab内部组件的问题

This commit is contained in:
wangjiahao 2022-11-28 10:35:23 +08:00
parent 762c369eec
commit d8d701bbf9
2 changed files with 3 additions and 1 deletions

View File

@ -88,6 +88,8 @@ export default {
component.style.width = width
component.style.height = height
}
component['canvasId'] = 'canvas-main'
component['canvasPid'] = '0'
state.copyData = {
data: component,
index: index

View File

@ -202,7 +202,7 @@
</el-dialog>
<text-attr
v-if="showAttr && curComponent.canvasId === activeCanvasId"
v-if="showAttr && curComponent.canvasId === activeCanvasId" && isEdit
:canvas-id="curComponent.canvasId"
:scroll-left="scrollLeft"
:scroll-top="scrollTop"