fix: replace || operator with nullish coalescing operator ??

pull/6816/head
KumJungMin 2024-11-19 22:09:49 +09:00
parent 26795f0ece
commit f63af16ad7
1 changed files with 1 additions and 1 deletions

View File

@ -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() {