From 58261a4a84394de440023951e98554cbe749c637 Mon Sep 17 00:00:00 2001 From: vben Date: Mon, 19 Aug 2024 23:30:12 +0800 Subject: [PATCH 1/2] chore: typo --- docs/src/guide/introduction/thin.md | 12 +++++- .../design/src/design-tokens/dark/index.css | 26 ++++++------ .../src/design-tokens/default/index.css | 2 +- packages/@core/base/shared/src/utils/index.ts | 1 + packages/@core/base/shared/src/utils/to.ts | 21 ++++++++++ .../src/components/layout-header.vue | 29 ++----------- .../ui-kit/layout-ui/src/vben-layout.vue | 41 +++++++++++++------ .../menu-ui/src/components/menu-item.vue | 2 +- .../ui-kit/menu-ui/src/components/menu.vue | 2 +- .../src/components/sub-menu-content.vue | 2 +- .../menu-ui/src/components/sub-menu.vue | 9 +--- .../menu-ui/src/hooks/use-menu-context.ts | 2 +- .../ui-kit/menu-ui/src/hooks/use-menu.ts | 2 +- packages/@core/ui-kit/menu-ui/src/index.ts | 2 +- packages/@core/ui-kit/menu-ui/src/menu.vue | 2 +- .../src/{interface/index.ts => types.ts} | 0 .../src/components/tabs-chrome/tabs.vue | 14 +------ .../tabs-ui/src/components/tabs/tabs.vue | 2 +- .../effects/hooks/src/use-design-tokens.ts | 4 +- packages/stores/src/modules/tabbar.ts | 16 ++++---- packages/styles/src/antd/index.css | 5 +++ playground/.env | 2 +- 22 files changed, 107 insertions(+), 91 deletions(-) create mode 100644 packages/@core/base/shared/src/utils/to.ts rename packages/@core/ui-kit/menu-ui/src/{interface/index.ts => types.ts} (100%) diff --git a/docs/src/guide/introduction/thin.md b/docs/src/guide/introduction/thin.md index 422a520deac..7df3c9f83f2 100644 --- a/docs/src/guide/introduction/thin.md +++ b/docs/src/guide/introduction/thin.md @@ -28,7 +28,12 @@ apps/web-native ## Mock 服务精简 -如果你不需要`Mock`服务,你可以直接删除`apps/backend-mock`文件夹即可。 +如果你不需要`Mock`服务,你可以直接删除`apps/backend-mock`文件夹。同时在你的应用下`.env.development`文件中删除`VITE_NITRO_MOCK`变量。 + +```bash +# 是否开启 Nitro Mock服务,true 为开启,false 为关闭 +VITE_NITRO_MOCK=false +``` ## 安装依赖 @@ -47,6 +52,11 @@ pnpm install ```json { "scripts": { + "build:antd": "pnpm run build --filter=@vben/web-antd", + "build:docs": "pnpm run build --filter=@vben/docs", + "build:ele": "pnpm run build --filter=@vben/web-ele", + "build:naive": "pnpm run build --filter=@vben/web-naive", + "build:play": "pnpm run build --filter=@vben/playground", "dev:antd": "pnpm -F @vben/web-antd run dev", "dev:docs": "pnpm -F @vben/docs run dev", "dev:ele": "pnpm -F @vben/web-ele run dev", diff --git a/packages/@core/base/design/src/design-tokens/dark/index.css b/packages/@core/base/design/src/design-tokens/dark/index.css index 64811a3514e..02394cda8f5 100644 --- a/packages/@core/base/design/src/design-tokens/dark/index.css +++ b/packages/@core/base/design/src/design-tokens/dark/index.css @@ -34,7 +34,7 @@ /* Used for destructive actions such as