修复属性设置了默认值仍然返回undefined的问题。

This commit is contained in:
vdpAdmin 2022-06-15 15:22:36 +08:00
parent 2a9c328362
commit 611775de95
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@
formConfig: Object, formConfig: Object,
optionData: { //prop optionData: { //prop
type: Object, type: Object,
default: () => {} default: () => ({})
}, },
}, },
provide() { provide() {

View File

@ -63,11 +63,11 @@
}, },
formData: { //prop formData: { //prop
type: Object, type: Object,
default: () => {} default: () => ({})
}, },
optionData: { //prop optionData: { //prop
type: Object, type: Object,
default: () => {} default: () => ({})
}, },
previewState: { // previewState: { //
type: Boolean, type: Boolean,