code refactoring

pull/6767/head
Damián Paranič 2024-11-17 18:26:41 +01:00 committed by GitHub
parent a674358076
commit be89f54a7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ export default {
this.d_value !== newValue && (this.d_value = newValue);
}
},
formValue: {
$formValue: {
immediate: false,
handler(newValue) {
if (this.$pcForm?.states?.[this.$formName] && newValue !== this.d_value) {
@ -111,15 +111,15 @@ export default {
$formDefaultValue() {
return this.d_value ?? this.$pcFormField?.initialValue ?? this.$pcForm?.initialValues?.[this.$formName];
},
$formValue() {
return this.$pcForm?.states?.[this.$formName]?.value;
},
controlled() {
return this.$inProps.hasOwnProperty('modelValue') || (!this.$inProps.hasOwnProperty('modelValue') && !this.$inProps.hasOwnProperty('defaultValue'));
},
// @deprecated use $filled instead
filled() {
return this.$filled;
},
formValue() {
return this.$pcForm?.states?.[this.name]?.value;
}
}
};