mirror of
https://github.com/vform666/variant-form3-vite.git
synced 2025-06-22 09:59:56 +08:00
3.0.3(2022.03.02)更新:
1. 修复Pad/H5布局预览的样式显示问题; 2. 修复升级新版element-plus后事件代码编辑弹窗无法显示的问题; 3. 修复provide传递的formConfig属性不能获取最新值的问题,改用provide函数实现; 4. element-plus版本升级到2.0.4。
This commit is contained in:
@ -55,7 +55,7 @@
|
||||
},
|
||||
|
||||
},
|
||||
inject: ['refList', 'globalModel', 'formConfig', 'previewState'],
|
||||
inject: ['refList', 'globalModel', 'getFormConfig', 'previewState'],
|
||||
data() {
|
||||
return {
|
||||
layoutProps: {
|
||||
@ -70,6 +70,10 @@
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
formConfig() {
|
||||
return this.getFormConfig()
|
||||
},
|
||||
|
||||
customClass() {
|
||||
return this.widget.options.customClass || ''
|
||||
},
|
||||
|
@ -73,7 +73,7 @@
|
||||
return {
|
||||
refList: this.widgetRefList,
|
||||
sfRefList: this.subFormRefList, //收集SubForm引用
|
||||
formConfig: this.formConfig,
|
||||
getFormConfig: () => this.formJsonObj.formConfig, /* 解决provide传递formConfig属性的响应式更新问题!! */
|
||||
globalOptionData: this.optionData,
|
||||
getOptionData: () => this.optionData, /* 该方法用于在异步更新option-data之后重新获取到最新值 */
|
||||
globalModel: {
|
||||
@ -357,7 +357,6 @@
|
||||
this.buildFormModel(newFormJsonObj.widgetList)
|
||||
|
||||
this.formJsonObj['formConfig'] = newFormJsonObj.formConfig
|
||||
// this._provided.formConfig = newFormJsonObj.formConfig //强制更新provide的formConfig对象
|
||||
this.formJsonObj['widgetList'] = newFormJsonObj.widgetList
|
||||
|
||||
this.$nextTick(() => {
|
||||
|
Reference in New Issue
Block a user