fix: replace || operator with nullish coalescing operator ??
parent
26795f0ece
commit
f63af16ad7
|
@ -104,7 +104,7 @@ export default {
|
|||
return this.d_value ?? this.$pcFormField?.initialValue ?? this.$pcForm?.initialValues?.[this.$formName];
|
||||
},
|
||||
controlled() {
|
||||
return this.$inProps.hasOwnProperty('modelValue') || (!this.$inProps.hasOwnProperty('modelValue') && !this.$inProps.hasOwnProperty('defaultValue'));
|
||||
return this.$inProps.hasOwnProperty('modelValue') ?? (!this.$inProps.hasOwnProperty('modelValue') && !this.$inProps.hasOwnProperty('defaultValue'));
|
||||
},
|
||||
// @deprecated use $filled instead
|
||||
filled() {
|
||||
|
|
Loading…
Reference in New Issue