提交 e176d364 authored 作者: wangjiahao's avatar wangjiahao

fix: 修复复用存量视图未清理历史选择框的问题

上级 929d1f64
......@@ -208,9 +208,11 @@ export default {
handleClick() {
const events = this.config.events
if (events) {
Object.keys(events).forEach(event => {
this[event](events[event])
})
}
},
elementMouseDown(e) {
// private 设置当前组件数据及状态
......
......@@ -75,18 +75,22 @@ export default {
})
})
} else if (params.showType === 'view') {
_this.componentData = []
const componentId = uuid.v1()
_this.canvasStyleData = deepCopy(DEFAULT_COMMON_CANVAS_STYLE_STRING)
const userView = {
... deepCopy(USER_VIEW),
'id': componentId }
'id': componentId,
'auxiliaryMatrix': false }
userView.style.width = _this.canvasStyleData.width
userView.style.height = _this.canvasStyleData.height
userView['propValue'] = {
'viewId': params.showId,
'id': componentId
}
_this.$nextTick(() => {
_this.componentData.push(userView)
})
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论