mirror of
https://github.com/vform666/variant-form3-vite.git
synced 2025-06-22 09:59:56 +08:00
修复图片、文件上传组件的上传文件类型属性编辑器错误。
This commit is contained in:
@ -152,6 +152,10 @@ export default {
|
||||
subFormModel.splice(0, subFormModel.length)
|
||||
this.rowIdData.splice(0, this.rowIdData.length)
|
||||
}
|
||||
|
||||
if (this.widget.options.showBlankRow) {
|
||||
this.addSubFormRow()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -150,6 +150,11 @@
|
||||
return this.rowIdData
|
||||
},
|
||||
|
||||
getWidgetRefOfSubForm(widgetName, rowIndex) {
|
||||
let realWidgetName = widgetName + '@row' + this.rowIdData[rowIndex]
|
||||
return this.getWidgetRef(realWidgetName)
|
||||
},
|
||||
|
||||
initFieldSchemaData() { //初始化fieldSchemaData!!!
|
||||
if (this.widget.type !== 'sub-form') {
|
||||
return
|
||||
|
@ -540,7 +540,7 @@
|
||||
let wNameList = Object.keys(this.widgetRefList)
|
||||
wNameList.forEach(wName => {
|
||||
let foundW = this.getWidgetRef(wName)
|
||||
if (!!foundW && !!foundW.resetField) {
|
||||
if (!!foundW && !foundW.subFormItemFlag && !!foundW.resetField) { // 跳过子表单字段!!
|
||||
foundW.resetField()
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user