feat: allow choosing favorite buttons in bottom navigation bar (#2761)

This commit is contained in:
TAKAHASHI Shuuji 2024-04-12 18:38:43 +09:00 committed by GitHub
parent 2a6a994da1
commit 2cb070c83c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 286 additions and 47 deletions

View file

@ -0,0 +1,19 @@
<script setup lang="ts">
defineModel<boolean>()
</script>
<template>
<NavBottomMoreMenu
v-slot="{ toggleVisible, show }" v-model="modelValue!" flex flex-row items-center
place-content-center h-full flex-1 cursor-pointer
>
<button
flex items-center place-content-center h-full flex-1 class="select-none"
:class="show ? '!text-primary' : ''"
aria-label="More menu"
@click="toggleVisible"
>
<span :class="show ? 'i-ri:close-fill' : 'i-ri:more-fill'" />
</button>
</NavBottomMoreMenu>
</template>