修复图片、文件上传组件的上传文件类型属性编辑器错误。
parent
fb1d2b1d8c
commit
7d3d81dc41
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "variant-form",
|
||||
"version": "2.2.5",
|
||||
"version": "2.2.6",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --open src/main.js",
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
import i18n from "@/utils/i18n"
|
||||
|
||||
export default {
|
||||
name: "fileTypes-editor",
|
||||
name: "file-upload-fileTypes-editor",
|
||||
mixins: [i18n],
|
||||
props: {
|
||||
designer: Object,
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
import i18n from "@/utils/i18n"
|
||||
|
||||
export default {
|
||||
name: "fileTypes-editor",
|
||||
name: "picture-upload-fileTypes-editor",
|
||||
mixins: [i18n],
|
||||
props: {
|
||||
designer: Object,
|
||||
|
|
|
@ -153,6 +153,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
|
||||
|
|
|
@ -560,14 +560,13 @@
|
|||
subFormNames.forEach(sfName => {
|
||||
if (!!this.subFormRefList[sfName].resetSubForm) {
|
||||
this.subFormRefList[sfName].resetSubForm()
|
||||
this.subFormRefList[sfName].addSubFormRow()
|
||||
}
|
||||
})
|
||||
|
||||
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()
|
||||
}
|
||||
})
|
||||
|
|
|
@ -1,14 +1,4 @@
|
|||
export const DESIGNER_OPTIONS = {
|
||||
showLanguageMenu: true,
|
||||
showGetSourceURL: true,
|
||||
showGithubURL: true,
|
||||
showDocumentURL: true,
|
||||
showChatGroup: true,
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
export const VARIANT_FORM_VERSION = '2.2.5'
|
||||
export const VARIANT_FORM_VERSION = '2.2.6'
|
||||
|
||||
//export const MOCK_CASE_URL = 'https://www.fastmock.site/mock/2de212e0dc4b8e0885fea44ab9f2e1d0/vform/'
|
||||
export const MOCK_CASE_URL = 'https://ks3-cn-beijing.ksyuncs.com/vform-static/vcase/'
|
||||
|
|
Loading…
Reference in New Issue