diff --git a/src/components/form-designer/form-widget/index.vue b/src/components/form-designer/form-widget/index.vue index 4d851f1..6358dcf 100644 --- a/src/components/form-designer/form-widget/index.vue +++ b/src/components/form-designer/form-widget/index.vue @@ -47,7 +47,7 @@ formConfig: Object, optionData: { //prop传入的选项数据 type: Object, - default: () => {} + default: () => ({}) }, }, provide() { diff --git a/src/components/form-render/index.vue b/src/components/form-render/index.vue index 8aa6baf..759e57a 100644 --- a/src/components/form-render/index.vue +++ b/src/components/form-render/index.vue @@ -65,11 +65,11 @@ }, formData: { //prop传入的表单数据 type: Object, - default: () => {} + default: () => ({}) }, optionData: { //prop传入的选项数据 type: Object, - default: () => {} + default: () => ({}) }, previewState: { //是否表单预览状态 type: Boolean,