Editing of the project's Kariz page
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user