From 58c75cb74490c830ae469699682cd6c7714c624a Mon Sep 17 00:00:00 2001 From: ZTL-UwU Date: Fri, 24 May 2024 13:28:06 +0800 Subject: [PATCH] feat: mobile navbar Signed-off-by: ZTL-UwU --- components/DarkModeToggle.vue | 2 +- components/layout/Aside.vue | 36 +++++++-------- components/layout/AsideTreeItem.vue | 5 +-- components/layout/Header.vue | 4 +- components/layout/MobileNav.vue | 20 +++++++++ components/ui/sheet/Sheet.vue | 14 ++++++ components/ui/sheet/SheetClose.vue | 11 +++++ components/ui/sheet/SheetContent.vue | 56 ++++++++++++++++++++++++ components/ui/sheet/SheetDescription.vue | 22 ++++++++++ components/ui/sheet/SheetFooter.vue | 19 ++++++++ components/ui/sheet/SheetHeader.vue | 16 +++++++ components/ui/sheet/SheetTitle.vue | 22 ++++++++++ components/ui/sheet/SheetTrigger.vue | 11 +++++ components/ui/sheet/index.ts | 31 +++++++++++++ nuxt.config.ts | 7 +++ pages/[...slug].vue | 6 ++- 16 files changed, 255 insertions(+), 27 deletions(-) create mode 100644 components/layout/MobileNav.vue create mode 100644 components/ui/sheet/Sheet.vue create mode 100644 components/ui/sheet/SheetClose.vue create mode 100644 components/ui/sheet/SheetContent.vue create mode 100644 components/ui/sheet/SheetDescription.vue create mode 100644 components/ui/sheet/SheetFooter.vue create mode 100644 components/ui/sheet/SheetHeader.vue create mode 100644 components/ui/sheet/SheetTitle.vue create mode 100644 components/ui/sheet/SheetTrigger.vue create mode 100644 components/ui/sheet/index.ts diff --git a/components/DarkModeToggle.vue b/components/DarkModeToggle.vue index baf41a33..2d884162 100644 --- a/components/DarkModeToggle.vue +++ b/components/DarkModeToggle.vue @@ -1,5 +1,5 @@