From 4216004d45434a79f4f91919bb6c9ce8d91376c8 Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Fri, 14 Feb 2025 01:24:40 +0330 Subject: [PATCH] updated select --- frontend/components/global/Select.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/components/global/Select.vue b/frontend/components/global/Select.vue index 851d3c8..03ce308 100644 --- a/frontend/components/global/Select.vue +++ b/frontend/components/global/Select.vue @@ -8,6 +8,7 @@ type Props = { error?: boolean; options: string[]; placeholder?: string; + triggerRootClass?: string; }; type Emits = { @@ -22,7 +23,7 @@ const props = withDefaults(defineProps(), { placeholder: "وارد نشده", }); -const { modelValue, variant, error } = toRefs(props); +const { modelValue, variant, error, triggerRootClass } = toRefs(props); // emit @@ -46,19 +47,19 @@ const classes = computed(() => { ? "input-solid-error" : "input-outlined-error"]: error.value, }, + triggerRootClass.value, ]; }); - -// watch