From a27b1c40e54a795035d685a0f6183c2e6fa252ec Mon Sep 17 00:00:00 2001 From: Vben Date: Wed, 7 Aug 2024 22:01:45 +0800 Subject: [PATCH] fix: the failure of breadcrumb animation (#4073) --- .github/workflows/draft.yml | 1 + .vscode/settings.json | 4 +++- docs/src/guide/essentials/build.md | 4 ++-- internal/tsconfig/base.json | 1 + .../index.css => base/design/src/css/ui.css} | 15 --------------- packages/@core/base/design/src/index.ts | 1 + packages/@core/ui-kit/shadcn-ui/src/index.ts | 2 -- scripts/vsh/src/check-dep/index.ts | 2 +- 8 files changed, 9 insertions(+), 21 deletions(-) rename packages/@core/{ui-kit/shadcn-ui/src/styles/index.css => base/design/src/css/ui.css} (82%) diff --git a/.github/workflows/draft.yml b/.github/workflows/draft.yml index 700e3dc08..90853272a 100644 --- a/.github/workflows/draft.yml +++ b/.github/workflows/draft.yml @@ -7,6 +7,7 @@ on: permissions: contents: read + pull-requests: write jobs: update_release_draft: diff --git a/.vscode/settings.json b/.vscode/settings.json index 5141a436c..2f0e94b43 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -189,5 +189,7 @@ }, "commentTranslate.hover.enabled": false, "i18n-ally.keystyle": "nested", - "commentTranslate.multiLineMerge": true + "commentTranslate.multiLineMerge": true, + "vue.server.hybridMode": true, + "typescript.tsdk": "node_modules/typescript/lib" } diff --git a/docs/src/guide/essentials/build.md b/docs/src/guide/essentials/build.md index 3acde53fd..8a5065505 100644 --- a/docs/src/guide/essentials/build.md +++ b/docs/src/guide/essentials/build.md @@ -10,7 +10,7 @@ 项目开发完成之后,执行以下命令进行构建: -**注意:** 请在项目跟目录下执行以下命令 +**注意:** 请在项目根目录下执行以下命令 ```bash pnpm build @@ -24,7 +24,7 @@ pnpm build - 使用项目自定的命令进行预览(推荐) -**注意:** 请在项目跟目录下执行以下命令 +**注意:** 请在项目根目录下执行以下命令 ```bash pnpm preview diff --git a/internal/tsconfig/base.json b/internal/tsconfig/base.json index 1e45a7843..82e35f319 100644 --- a/internal/tsconfig/base.json +++ b/internal/tsconfig/base.json @@ -13,6 +13,7 @@ "moduleResolution": "node", "resolveJsonModule": true, + "allowImportingTsExtensions": true, "strict": true, "strictNullChecks": true, diff --git a/packages/@core/ui-kit/shadcn-ui/src/styles/index.css b/packages/@core/base/design/src/css/ui.css similarity index 82% rename from packages/@core/ui-kit/shadcn-ui/src/styles/index.css rename to packages/@core/base/design/src/css/ui.css index f0605e4d2..3a002f2af 100644 --- a/packages/@core/ui-kit/shadcn-ui/src/styles/index.css +++ b/packages/@core/base/design/src/css/ui.css @@ -34,21 +34,6 @@ transform: translateX(30px) skewX(-30deg); } -/* -.breadcrumb-transition-move, -.breadcrumb-transition-enter-active { - transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1); -} - -.breadcrumb-transition-leave-active { - display: none; -} - -.breadcrumb-transition-enter-from { - opacity: 0; - transform: translateX(-5px); -} */ - @keyframes slide-down { from { opacity: 0; diff --git a/packages/@core/base/design/src/index.ts b/packages/@core/base/design/src/index.ts index 7265f722c..15e8b37bc 100644 --- a/packages/@core/base/design/src/index.ts +++ b/packages/@core/base/design/src/index.ts @@ -1,6 +1,7 @@ import './css/global.css'; import './css/transition.css'; import './css/nprogress.css'; +import './css/ui.css'; import './design-tokens'; export {}; diff --git a/packages/@core/ui-kit/shadcn-ui/src/index.ts b/packages/@core/ui-kit/shadcn-ui/src/index.ts index b8aa14cf0..494671091 100644 --- a/packages/@core/ui-kit/shadcn-ui/src/index.ts +++ b/packages/@core/ui-kit/shadcn-ui/src/index.ts @@ -1,4 +1,2 @@ -import './styles/index.css'; - export * from './components'; export { VisuallyHidden } from 'radix-vue'; diff --git a/scripts/vsh/src/check-dep/index.ts b/scripts/vsh/src/check-dep/index.ts index 3e2a47814..762622995 100644 --- a/scripts/vsh/src/check-dep/index.ts +++ b/scripts/vsh/src/check-dep/index.ts @@ -44,7 +44,7 @@ async function runDepcheck() { // 删除file:前缀的依赖提示,该依赖是本地依赖 Reflect.deleteProperty(unused.missing, 'file:'); Object.keys(unused.missing).forEach((key) => { - unused.missing[key] = unused.missing[key].filter( + unused.missing[key] = (unused.missing[key] || []).filter( (item: string) => !item.startsWith('/'), ); if (unused.missing[key].length === 0) {