Updated
This commit is contained in:
@@ -15,7 +15,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
disabled: false,
|
||||
placeholder: "وارد نشده",
|
||||
});
|
||||
const { variant, message, error, disabled, modelValue } = toRefs(props);
|
||||
const { variant, error, modelValue } = toRefs(props);
|
||||
|
||||
// emits
|
||||
|
||||
@@ -29,7 +29,7 @@ const inputRef = ref<HTMLInputElement | null>(null);
|
||||
|
||||
const value = computed({
|
||||
get: () => modelValue.value ?? "",
|
||||
set: (value) => emit("update:modelValue", value),
|
||||
set: (value) => emit("update:modelValue", value)
|
||||
});
|
||||
|
||||
const classes = computed(() => {
|
||||
@@ -41,8 +41,8 @@ const classes = computed(() => {
|
||||
"input-effects": !error.value,
|
||||
[variant.value === "solid"
|
||||
? "input-solid-error"
|
||||
: "input-outlined-error"]: error.value,
|
||||
},
|
||||
: "input-outlined-error"]: error.value
|
||||
}
|
||||
];
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user