From e27a44f8a561fb76311db5c43ed7ec1456ead38f Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Tue, 18 Mar 2025 20:34:30 +0330 Subject: [PATCH] added disabled style --- frontend/components/global/Input.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/components/global/Input.vue b/frontend/components/global/Input.vue index ebee80b..c766fc7 100644 --- a/frontend/components/global/Input.vue +++ b/frontend/components/global/Input.vue @@ -15,7 +15,7 @@ const props = withDefaults(defineProps(), { 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"