From ebf73b2df98fe07543609d2eb3ff4e1dcc9d0a32 Mon Sep 17 00:00:00 2001 From: vben Date: Sun, 14 Jul 2024 16:28:56 +0800 Subject: [PATCH] refactor(project): remove the use of core internal bem syntax --- apps/web-antd/package.json | 1 + .../src/views/dashboard/analytics/index.vue | 4 +- .../forward/stores/src/modules/tabbar.ts | 38 +- packages/@core/shared/hooks/package.json | 4 +- packages/@core/shared/hooks/src/index.ts | 7 + .../src/use-namespace.ts} | 0 .../shared/hooks/src/use-sortable.test.ts | 7 +- packages/@core/shared/toolkit/src/index.ts | 1 - packages/@core/shared/typings/src/basic.d.ts | 4 +- packages/@core/shared/typings/src/tabs.ts | 2 +- packages/@core/ui-kit/menu-ui/build.config.ts | 33 ++ packages/@core/ui-kit/menu-ui/package.json | 4 +- .../menu-ui/src/components/menu-item.vue | 2 +- .../ui-kit/menu-ui/src/components/menu.vue | 512 +++++++++++++++++- .../components/normal-menu/normal-menu.vue | 60 +- .../src/components/sub-menu-content.vue | 2 +- .../menu-ui/src/components/sub-menu.vue | 2 +- packages/@core/ui-kit/menu-ui/src/index.ts | 2 - packages/@core/ui-kit/menu-ui/src/menu.vue | 2 +- .../ui-kit/menu-ui/src/styles/index.scss | 99 ++-- packages/@core/ui-kit/menu-ui/vite.config.mts | 3 - packages/@core/ui-kit/shadcn-ui/src/index.ts | 8 +- packages/@core/ui-kit/tabs-ui/package.json | 1 - .../ui-kit/tabs-ui/src/components/index.ts | 1 + .../src/components/tabs-chrome/tabs.vue | 15 +- .../tabs-ui/src/components/tabs/index.vue | 5 - .../tabs-ui/src/components/tabs/tabs.vue | 11 + .../@core/ui-kit/tabs-ui/src/tabs-view.vue | 7 +- packages/@core/ui-kit/tabs-ui/src/types.ts | 14 +- packages/effects/common-ui/package.json | 1 + .../authentication/login-expired-modal.vue | 2 +- .../analysis/analysis-charts-tabs.vue | 4 +- .../layouts/src/basic/tabbar/use-tabs.ts | 6 +- .../src/widgets/theme-toggle/theme-button.vue | 9 +- packages/hooks/package.json | 3 + packages/hooks/src/index.ts | 2 +- pnpm-lock.yaml | 25 +- 37 files changed, 730 insertions(+), 173 deletions(-) rename packages/@core/shared/{toolkit/src/namespace.ts => hooks/src/use-namespace.ts} (100%) create mode 100644 packages/@core/ui-kit/menu-ui/build.config.ts delete mode 100644 packages/@core/ui-kit/menu-ui/vite.config.mts delete mode 100644 packages/@core/ui-kit/tabs-ui/src/components/tabs/index.vue create mode 100644 packages/@core/ui-kit/tabs-ui/src/components/tabs/tabs.vue diff --git a/apps/web-antd/package.json b/apps/web-antd/package.json index f954d7c3..e4d76dc4 100644 --- a/apps/web-antd/package.json +++ b/apps/web-antd/package.json @@ -35,6 +35,7 @@ "@vben/chart-ui": "workspace:*", "@vben/common-ui": "workspace:*", "@vben/constants": "workspace:*", + "@vben/hooks": "workspace:*", "@vben/icons": "workspace:*", "@vben/layouts": "workspace:*", "@vben/styles": "workspace:*", diff --git a/apps/web-antd/src/views/dashboard/analytics/index.vue b/apps/web-antd/src/views/dashboard/analytics/index.vue index cb74dd7f..28962302 100644 --- a/apps/web-antd/src/views/dashboard/analytics/index.vue +++ b/apps/web-antd/src/views/dashboard/analytics/index.vue @@ -1,6 +1,6 @@ diff --git a/packages/@core/ui-kit/tabs-ui/src/components/tabs/index.vue b/packages/@core/ui-kit/tabs-ui/src/components/tabs/index.vue deleted file mode 100644 index a3891b87..00000000 --- a/packages/@core/ui-kit/tabs-ui/src/components/tabs/index.vue +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/packages/@core/ui-kit/tabs-ui/src/components/tabs/tabs.vue b/packages/@core/ui-kit/tabs-ui/src/components/tabs/tabs.vue new file mode 100644 index 00000000..23388272 --- /dev/null +++ b/packages/@core/ui-kit/tabs-ui/src/components/tabs/tabs.vue @@ -0,0 +1,11 @@ + + + diff --git a/packages/@core/ui-kit/tabs-ui/src/tabs-view.vue b/packages/@core/ui-kit/tabs-ui/src/tabs-view.vue index bcb283e6..cb4c2d36 100644 --- a/packages/@core/ui-kit/tabs-ui/src/tabs-view.vue +++ b/packages/@core/ui-kit/tabs-ui/src/tabs-view.vue @@ -1,10 +1,9 @@