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