diff --git a/frontend/components/cart/AddressModal.vue b/frontend/components/cart/AddressModal.vue index 252ec59..34839f8 100644 --- a/frontend/components/cart/AddressModal.vue +++ b/frontend/components/cart/AddressModal.vue @@ -86,6 +86,7 @@ const closeModal = () => { for_me: "بله", }; } + visible.value = false; }; const addNew = () => { diff --git a/frontend/components/profile/index/PersonalDataField.vue b/frontend/components/global/DataField.vue similarity index 83% rename from frontend/components/profile/index/PersonalDataField.vue rename to frontend/components/global/DataField.vue index 55837e8..dce67ba 100644 --- a/frontend/components/profile/index/PersonalDataField.vue +++ b/frontend/components/global/DataField.vue @@ -19,11 +19,11 @@ withDefaults(defineProps(), {
- * + *
{{ error.$errors[0].$message }} diff --git a/frontend/components/global/FileInput.vue b/frontend/components/global/FileInput.vue new file mode 100644 index 0000000..a2a0910 --- /dev/null +++ b/frontend/components/global/FileInput.vue @@ -0,0 +1,144 @@ + + + diff --git a/frontend/components/global/Select.vue b/frontend/components/global/Select.vue index 03ce308..45f9d9c 100644 --- a/frontend/components/global/Select.vue +++ b/frontend/components/global/Select.vue @@ -6,7 +6,7 @@ type Props = { disabled?: boolean; modelValue: string; error?: boolean; - options: string[]; + options?: string[]; placeholder?: string; triggerRootClass?: string; }; @@ -71,7 +71,9 @@ const classes = computed(() => { :side-offset="5" > - + + + فقط کالاهای موجود - +
diff --git a/frontend/components/profile/ProfileSection.vue b/frontend/components/profile/ProfileSection.vue index b692176..1ed490d 100644 --- a/frontend/components/profile/ProfileSection.vue +++ b/frontend/components/profile/ProfileSection.vue @@ -3,24 +3,36 @@ type Props = { title: string; + borderLess?: boolean; }; // props -defineProps(); +withDefaults(defineProps(), { + borderLess: false, +});