This commit is contained in:
lb
2023-10-19 17:06:15 +08:00
parent 3e7914ac91
commit c2e987aee4
4 changed files with 17 additions and 5 deletions

View File

@@ -190,6 +190,10 @@ export default {
type: Boolean,
default: false,
},
hasFile: {
type: Boolean,
default: false,
},
labelPosition: {
type: String,
default: 'right',
@@ -232,7 +236,9 @@ export default {
dataForm: {
handler(val) {
this.form = JSON.parse(JSON.stringify(val));
this.form.files = this.form.files ?? [];
if (this.hasFile) {
this.form.files = this.form.files ?? [];
}
},
deep: true,
immediate: true,