From 99d6fdd60f4e406d4fbb7bed2effda283435272b Mon Sep 17 00:00:00 2001 From: h_mo <596417202@qq.com> Date: Wed, 1 Feb 2023 18:02:36 +0800 Subject: [PATCH 01/22] wip: layout store --- packages/layouts/index.ts | 1 + packages/layouts/src/components/main.vue | 7 ++ packages/layouts/src/store/index.ts | 1 + .../src/store/modules/headerSetting.ts | 62 ++++++++++ .../layouts/src/store/modules/menuSetting.ts | 113 ++++++++++++++++++ .../src/store/modules/multiTabsSetting.ts | 41 +++++++ packages/layouts/src/store/modules/test.ts | 2 +- .../src/store/modules/transitionSetting.ts | 38 ++++++ 8 files changed, 264 insertions(+), 1 deletion(-) create mode 100644 packages/layouts/src/store/index.ts create mode 100644 packages/layouts/src/store/modules/headerSetting.ts create mode 100644 packages/layouts/src/store/modules/menuSetting.ts create mode 100644 packages/layouts/src/store/modules/multiTabsSetting.ts create mode 100644 packages/layouts/src/store/modules/transitionSetting.ts diff --git a/packages/layouts/index.ts b/packages/layouts/index.ts index 49c05a5d..d206c837 100644 --- a/packages/layouts/index.ts +++ b/packages/layouts/index.ts @@ -1,3 +1,4 @@ export { default as Layout } from './src/index.vue' export { initLayout } from './bridge' export { default as DarkModeToggle } from './src/components/setting/components/DarkModeToggle.vue' +export * from './src/store/index' diff --git a/packages/layouts/src/components/main.vue b/packages/layouts/src/components/main.vue index 17fca523..4b06e58d 100644 --- a/packages/layouts/src/components/main.vue +++ b/packages/layouts/src/components/main.vue @@ -1,10 +1,17 @@