implement filters to the menu

This commit is contained in:
kur0nek-o
2023-10-27 20:22:36 +07:00
parent dfcd95ba8a
commit 0f6ed81e48
10 changed files with 211 additions and 212 deletions

View File

@ -2,7 +2,7 @@
import type { MenuItemModel } from '@/types/menu'
import { IconDotOutline } from '@/utils/icons';
defineProps({
const props = defineProps({
item: {
type: Object as () => MenuItemModel,
required: true
@ -29,7 +29,7 @@ defineProps({
<component :is="item.icon"
:class="[selected ? 'text-white fill-white' : 'text-aside group-hover:text-white group-hover:fill-white', 'mr-2 flex-shrink-0 h-6 w-6']"
aria-hidden="true" />
{{ item.name }}
{{ item.name.split(' | ')[0] }}
</RouterLink>
</div>
</template>@/utils/menu
</template>