From 97d5b42652de3fb98d6c241abbc2c1f41f11618c Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Thu, 27 Feb 2025 20:48:09 +0330 Subject: [PATCH] added loading for select --- frontend/components/global/Select.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/frontend/components/global/Select.vue b/frontend/components/global/Select.vue index 45f9d9c..459509b 100644 --- a/frontend/components/global/Select.vue +++ b/frontend/components/global/Select.vue @@ -9,6 +9,7 @@ type Props = { options?: string[]; placeholder?: string; triggerRootClass?: string; + loading?: boolean; }; type Emits = { @@ -21,6 +22,7 @@ const props = withDefaults(defineProps(), { variant: "solid", disabled: false, placeholder: "وارد نشده", + loading: false, }); const { modelValue, variant, error, triggerRootClass } = toRefs(props); @@ -53,15 +55,25 @@ const classes = computed(() => {