Editing of the project's Kariz page

This commit is contained in:
2026-09-15 19:13:30 +03:30
parent 44f9849d0e
commit e61fad95c6
25 changed files with 1751 additions and 567 deletions
+3 -2
View File
@@ -7,8 +7,9 @@ import UiIcon from '@/components/UiIcon.vue';
withDefaults(
defineProps<{
placeholder?: string;
showFilters?: boolean;
}>(),
{ placeholder: 'جستجو...' },
{ placeholder: 'جستجو...', showFilters: true },
);
const search = defineModel<string>('search', { default: '' });
@@ -20,7 +21,7 @@ const open = ref(false);
<div class="row">
<slot name="before" />
<UiSearch v-model="search" :placeholder="placeholder" class="search" />
<UiButton type="button" @click="open = !open">
<UiButton v-if="showFilters" type="button" @click="open = !open">
<UiIcon name="filter" :size="16" />
فیلترها
</UiButton>