We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 713f958 commit 85596b4Copy full SHA for 85596b4
lib/EleForm.vue
@@ -599,12 +599,12 @@ export default {
599
)
600
}
601
602
- this.setValue(field, defaultValue)
+ setDeepVal(this.formData, field, defaultValue)
603
604
605
// 如果隐藏, 则删除值
606
if (!vif) {
607
- this.setValue(field, defaultValue || null)
+ setDeepVal(this.formData, field, defaultValue || null)
608
609
610
// 5.动态属性 attrs
types/index.d.ts
@@ -33,7 +33,7 @@ declare module 'vue-ele-form' {
33
type?: string | LinkageFunction;
34
label?: string;
35
default?: any;
36
- attrs?: AnyObj;
+ attrs?: AnyObj | LinkageFunction;
37
title?: string;
38
isShowLabel?: boolean;
39
labelWidth?: string;
0 commit comments