From 4b39553d78156d637563f672350a9a9c1d3894de Mon Sep 17 00:00:00 2001 From: Rewrite0 <49576640+Rewrite0@users.noreply.github.com> Date: Sun, 21 May 2023 23:08:54 +0800 Subject: [PATCH] layout --- src/App.vue | 16 +++++++++++---- src/auto-imports.d.ts | 7 +++---- src/components.d.ts | 4 ++++ src/router-type.d.ts | 4 +++- src/views/ab-sidebar.vue | 42 +++++++++++++++++++++++++++++++--------- src/views/ab-topbar.vue | 4 ++-- unocss.config.ts | 5 +++-- 7 files changed, 60 insertions(+), 22 deletions(-) diff --git a/src/App.vue b/src/App.vue index 3c241278..e9770b7a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,4 +1,8 @@ - + diff --git a/src/views/ab-topbar.vue b/src/views/ab-topbar.vue index fee1a578..eceb39b3 100644 --- a/src/views/ab-topbar.vue +++ b/src/views/ab-topbar.vue @@ -3,8 +3,8 @@ import { PlayOne, Pause, Refresh, Power, Me } from '@icon-park/vue-next'; const search = ref(''); -const { onUpdate } = programStore(); -const { running } = storeToRefs(programStore()); +const { onUpdate } = useProgramStore(); +const { running } = storeToRefs(useProgramStore()); const items = [ { diff --git a/unocss.config.ts b/unocss.config.ts index e6ad36b7..02e2194a 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -52,13 +52,13 @@ export default defineConfig({ [ 'layout-container', - 'wh-screen min-w-1024px min-h-768px p-16px space-y-12px flex flex-col', + 'wh-screen min-w-1024px min-h-768px p-16px space-y-12px flex flex-col bg-[#F0F0F0]', ], [ 'layout-main', 'flex space-x-20px overflow-hidden h-[calc(100vh_-_2_*_16px_-_60px_-_12px)]', ], - ['layout-content', 'overflow-hidden h-full grow flex="~ col"'], + ['layout-content', 'overflow-hidden h-full flex flex-col flex-1'], ['rel', 'relative'], ['abs', 'absolute'], @@ -77,5 +77,6 @@ export default defineConfig({ ['is-disabled', 'cursor-not-allowed select-none'], ['input-reset', 'bg-transparent min-w-0 flex-1 outline-none'], ['btn-click', 'hover:scale-110 active:scale-100'], + ['line', 'w-full h-2px bg-[#DFE1EF]'], ], });