fix: change controlled condition
parent
f63af16ad7
commit
9fce930138
|
@ -104,7 +104,7 @@ export default {
|
||||||
return this.d_value ?? this.$pcFormField?.initialValue ?? this.$pcForm?.initialValues?.[this.$formName];
|
return this.d_value ?? this.$pcFormField?.initialValue ?? this.$pcForm?.initialValues?.[this.$formName];
|
||||||
},
|
},
|
||||||
controlled() {
|
controlled() {
|
||||||
return this.$inProps.hasOwnProperty('modelValue') ?? (!this.$inProps.hasOwnProperty('modelValue') && !this.$inProps.hasOwnProperty('defaultValue'));
|
return this.$inProps.modelValue !== undefined;
|
||||||
},
|
},
|
||||||
// @deprecated use $filled instead
|
// @deprecated use $filled instead
|
||||||
filled() {
|
filled() {
|
||||||
|
|
Loading…
Reference in New Issue