mirror of
https://github.com/vform666/variant-form3-vite.git
synced 2025-08-08 00:09:02 +08:00
修复两个小bug:
1. 清空画布时未清空组件引用,导致组件重名判断出错; 2. 库模式打包后无法通过CDN的方式引入使用。
This commit is contained in:
@ -173,6 +173,12 @@
|
||||
return this.getWidgetRef(wName)
|
||||
},
|
||||
|
||||
clearWidgetRefList() {
|
||||
Object.keys(this.widgetRefList).forEach(key => {
|
||||
delete this.widgetRefList[key]
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -298,6 +298,7 @@
|
||||
|
||||
clearDesigner() {
|
||||
this.$refs.toolbarRef.clearFormWidget()
|
||||
this.$refs.formRef.clearWidgetRefList()
|
||||
},
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user