Refactor on Base* structure

pull/6632/head
Mert Sincan 2024-10-18 17:29:47 +01:00
parent 8f49edbe14
commit 5b1d3f89c3
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ export default {
},
invalid: {
type: Boolean,
default: false
default: undefined
},
disabled: {
type: Boolean,
@ -80,7 +80,7 @@ export default {
return isNotEmpty(this.d_value);
},
$invalid() {
return this.invalid || this.$pcForm?.states?.[this.$formName]?.invalid;
return this.invalid ?? this.$pcForm?.states?.[this.$formName]?.invalid;
},
$formName() {
return this.formControl?.name || this.name || this.$attrs.name;

View File

@ -28,7 +28,7 @@ export default {
},
computed: {
$variant() {
return this.variant || this.$primevue.config.inputStyle || this.$primevue.config.inputVariant;
return this.variant ?? (this.$primevue.config.inputStyle || this.$primevue.config.inputVariant);
},
$fluid() {
return this.fluid ?? !!this.$pcFluid;