From 41d0495630656f7ed3e73a509221c947136997f6 Mon Sep 17 00:00:00 2001 From: vince Date: Wed, 10 Jul 2024 00:44:16 +0800 Subject: [PATCH] perf: simplify the writing of preferences --- .../ui-kit/tabs-ui/src/widgets/tool-more.vue | 6 +- .../business/layouts/src/basic/layout.vue | 6 +- .../layouts/src/widgets/preferences/index.ts | 3 +- .../widgets/preferences/preferences-sheet.vue | 405 +++++++++++++++++ .../preferences/preferences-widget.vue | 185 -------- .../src/widgets/preferences/preferences.vue | 428 ++---------------- .../src/widgets/preferences/trigger.vue | 21 - .../widgets/user-dropdown/user-dropdown.vue | 2 +- 8 files changed, 450 insertions(+), 606 deletions(-) create mode 100644 packages/business/layouts/src/widgets/preferences/preferences-sheet.vue delete mode 100644 packages/business/layouts/src/widgets/preferences/preferences-widget.vue delete mode 100644 packages/business/layouts/src/widgets/preferences/trigger.vue diff --git a/packages/@core/ui-kit/tabs-ui/src/widgets/tool-more.vue b/packages/@core/ui-kit/tabs-ui/src/widgets/tool-more.vue index 792666f6..3bbc48a4 100644 --- a/packages/@core/ui-kit/tabs-ui/src/widgets/tool-more.vue +++ b/packages/@core/ui-kit/tabs-ui/src/widgets/tool-more.vue @@ -1,7 +1,7 @@ + + diff --git a/packages/business/layouts/src/widgets/preferences/preferences-widget.vue b/packages/business/layouts/src/widgets/preferences/preferences-widget.vue deleted file mode 100644 index 30571e44..00000000 --- a/packages/business/layouts/src/widgets/preferences/preferences-widget.vue +++ /dev/null @@ -1,185 +0,0 @@ - - diff --git a/packages/business/layouts/src/widgets/preferences/preferences.vue b/packages/business/layouts/src/widgets/preferences/preferences.vue index 11d57f4a..cf07ce35 100644 --- a/packages/business/layouts/src/widgets/preferences/preferences.vue +++ b/packages/business/layouts/src/widgets/preferences/preferences.vue @@ -1,398 +1,44 @@ - - diff --git a/packages/business/layouts/src/widgets/preferences/trigger.vue b/packages/business/layouts/src/widgets/preferences/trigger.vue deleted file mode 100644 index 759a354d..00000000 --- a/packages/business/layouts/src/widgets/preferences/trigger.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/packages/business/layouts/src/widgets/user-dropdown/user-dropdown.vue b/packages/business/layouts/src/widgets/user-dropdown/user-dropdown.vue index 520f1120..744903a8 100644 --- a/packages/business/layouts/src/widgets/user-dropdown/user-dropdown.vue +++ b/packages/business/layouts/src/widgets/user-dropdown/user-dropdown.vue @@ -24,7 +24,7 @@ import { isWindowsOs } from '@vben-core/toolkit'; import { useMagicKeys, whenever } from '@vueuse/core'; -import { useOpenPreferences } from '../preferences/use-open-preferences'; +import { useOpenPreferences } from '../preferences'; interface Props { /**