chore: Minor fix
This commit is contained in:
@@ -226,6 +226,7 @@ defineExpose({
|
||||
v-else-if="item.key === 'PHONE_NUMBER'"
|
||||
v-model="getFormBinding(item.key).value"
|
||||
:placeholder="item.placeholder"
|
||||
:show-border="isDetailsView"
|
||||
@update:model-value="emit('update', state)"
|
||||
/>
|
||||
<Input
|
||||
|
||||
@@ -27,6 +27,10 @@ const props = defineProps({
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
showBorder: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
});
|
||||
|
||||
const emit = defineEmits(['update:modelValue']);
|
||||
@@ -88,8 +92,13 @@ const activeCountry = computed(() =>
|
||||
);
|
||||
|
||||
const inputBorderClass = computed(() => {
|
||||
const errorClass =
|
||||
'border-n-ruby-8 dark:border-n-ruby-8 hover:border-n-ruby-9 dark:hover:border-n-ruby-9 disabled:border-n-ruby-8 dark:disabled:border-n-ruby-8';
|
||||
if (!props.showBorder) {
|
||||
return hasError.value ? errorClass : 'border-transparent';
|
||||
}
|
||||
if (hasError.value) {
|
||||
return 'border-n-ruby-8 dark:border-n-ruby-8 hover:border-n-ruby-9 dark:hover:border-n-ruby-9 disabled:border-n-ruby-8 dark:disabled:border-n-ruby-8';
|
||||
return errorClass;
|
||||
}
|
||||
return hasInputFocused.value
|
||||
? 'border-n-brand dark:border-n-brand'
|
||||
|
||||
Reference in New Issue
Block a user