added disabled style
This commit is contained in:
@@ -15,7 +15,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
disabled: false,
|
||||
placeholder: "وارد نشده",
|
||||
});
|
||||
const { variant, error, modelValue } = toRefs(props);
|
||||
const { variant, error, modelValue, disabled } = toRefs(props);
|
||||
|
||||
// emits
|
||||
|
||||
@@ -38,6 +38,7 @@ const classes = computed(() => {
|
||||
{
|
||||
"input-solid": variant.value === "solid",
|
||||
"input-outlined": variant.value === "outlined",
|
||||
"pointer-events-none opacity-80 text-slate-500": disabled.value,
|
||||
"input-effects": !error.value,
|
||||
[variant.value === "solid"
|
||||
? "input-solid-error"
|
||||
|
||||
Reference in New Issue
Block a user