Merge pull request #3890 from dataease/pr@dev@fix_multy-copy

fix(仪表板): 修复无法复用Tab内部组件的问题
This commit is contained in:
fit2cloud-chenyw 2022-11-28 10:54:37 +08:00 committed by GitHub
commit fbeb601c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"