diff --git a/.vscode/settings.json b/.vscode/settings.json index d308268a2..ad1268dab 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -33,48 +33,48 @@ "editor.autoClosingQuotes": "beforeWhitespace", "editor.wordSeparators": "`~!@#%^&*()=+[{]}\\|;:'\",.<>/?", "editor.quickSuggestions": { - "strings": "on" + "strings": "on", }, // lint && format "oxc.enable": true, "oxc.typeAware": true, "oxc.configPath": "oxlint.config.ts", - "oxc.fmt.configPath": "oxfmt.config.mjs", + "oxc.fmt.configPath": "oxfmt.config.ts", "eslint.useFlatConfig": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", "source.fixAll.oxc": "explicit", "source.fixAll.stylelint": "explicit", - "source.organizeImports": "never" + "source.organizeImports": "never", }, "editor.defaultFormatter": "oxc.oxc-vscode", "[html]": { - "editor.defaultFormatter": "oxc.oxc-vscode" + "editor.defaultFormatter": "oxc.oxc-vscode", }, "[css]": { - "editor.defaultFormatter": "oxc.oxc-vscode" + "editor.defaultFormatter": "oxc.oxc-vscode", }, "[scss]": { - "editor.defaultFormatter": "oxc.oxc-vscode" + "editor.defaultFormatter": "oxc.oxc-vscode", }, "[javascript]": { - "editor.defaultFormatter": "oxc.oxc-vscode" + "editor.defaultFormatter": "oxc.oxc-vscode", }, "[typescript]": { - "editor.defaultFormatter": "oxc.oxc-vscode" + "editor.defaultFormatter": "oxc.oxc-vscode", }, "[json]": { - "editor.defaultFormatter": "oxc.oxc-vscode" + "editor.defaultFormatter": "oxc.oxc-vscode", }, "[markdown]": { - "editor.defaultFormatter": "oxc.oxc-vscode" + "editor.defaultFormatter": "oxc.oxc-vscode", }, "[jsonc]": { - "editor.defaultFormatter": "oxc.oxc-vscode" + "editor.defaultFormatter": "oxc.oxc-vscode", }, "[vue]": { - "editor.defaultFormatter": "oxc.oxc-vscode" + "editor.defaultFormatter": "oxc.oxc-vscode", }, // extensions @@ -97,7 +97,7 @@ "*.art": "html", "**/tsconfig.json": "jsonc", "*.json": "jsonc", - "package.json": "json" + "package.json": "json", }, "files.exclude": { @@ -115,7 +115,7 @@ "**/.DS_Store": true, "**/vite.config.mts.*": true, "**/tea.yaml": true, - "**/public/tinymce/**": true + "**/public/tinymce/**": true, }, "files.watcherExclude": { "**/.git/objects/**": true, @@ -125,7 +125,7 @@ "**/tmp/**": true, "**/bower_components/**": true, "**/dist/**": true, - "**/yarn.lock": true + "**/yarn.lock": true, }, "typescript.tsserver.exclude": ["**/node_modules", "**/dist", "**/.turbo"], @@ -157,7 +157,7 @@ "node_modules": true, "CHANGELOG.md": true, "**/pnpm-lock.yaml": true, - "**/yarn.lock": true + "**/yarn.lock": true, }, "debug.onTaskErrors": "debugAnyway", @@ -196,26 +196,21 @@ "json", "jsonc", "json5", - "yaml" + "yaml", ], - "tailwindCSS.experimental.classRegex": [ - ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"] - ], + "tailwindCSS.experimental.classRegex": [["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]], "github.copilot.enable": { "*": true, "markdown": true, "plaintext": false, - "yaml": false + "yaml": false, }, "cssVariables.lookupFiles": ["packages/@core/base/design/src/**/*.css"], - "i18n-ally.localesPaths": [ - "packages/locales/src/langs", - "apps/*/src/locales/langs" - ], + "i18n-ally.localesPaths": ["packages/locales/src/langs", "apps/*/src/locales/langs"], "i18n-ally.pathMatcher": "{locale}/{namespace}.{ext}", "i18n-ally.enabledParsers": ["json"], "i18n-ally.sourceLanguage": "en", @@ -234,7 +229,7 @@ "*.env": "$(capture).env.*", "README.md": "README*,CHANGELOG*,LICENSE,CNAME", "package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,.gitattributes,.gitignore,.gitpod.yml,.npmrc,.browserslistrc,.node-version,.git*,.tazerc.json", - "oxlint.config.ts": ".eslintignore,.stylelintignore,.commitlintrc.*,stylelint.config.*,.lintstagedrc.mjs,cspell.json,lefthook.yml,oxfmt.config.*,eslint.config.*" + "oxlint.config.ts": ".eslintignore,.stylelintignore,.commitlintrc.*,stylelint.config.*,.lintstagedrc.mjs,cspell.json,lefthook.yml,oxfmt.config.*,eslint.config.*", }, "commentTranslate.hover.enabled": false, "commentTranslate.multiLineMerge": true, @@ -256,6 +251,6 @@ "rollup", "Spel", "tinymce", - "vitest" - ] + "vitest", + ], } diff --git a/README.md b/README.md index 32deab718..1ae8b9f19 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ ## 提示 +最低需要使用`node版本>22.16.0` 否则会影响编辑器的格式化(需要安装oxc插件) + 该分支使用[antdv-next](https://github.com/antdv-next/antdv-next)替代已经不维护的antd-design-vue 该仓库使用vben最新版本v5开发 @@ -63,7 +65,7 @@ admin 账号: admin admin123 ```json "packageManager": "pnpm", "engines": { - "node": ">=20.15.0", + "node": ">=22.16.0", "pnpm": "latest" }, ``` diff --git a/apps/web-antd/src/views/dashboard/analytics/change.md b/apps/web-antd/src/views/dashboard/analytics/change.md index 6c3f646ee..4107f26cc 100644 --- a/apps/web-antd/src/views/dashboard/analytics/change.md +++ b/apps/web-antd/src/views/dashboard/analytics/change.md @@ -1,3 +1,7 @@ +## 环境 + +最低需要使用`node版本>22.16.0` 否则会影响编辑器的格式化(需要安装oxc插件) + ## 变化(跟ant-design-vue对比) 从ant design (react) v6移植过来 详细也可以看[antd的文档](https://ant.design/changelog-cn#600) @@ -25,3 +29,10 @@ - ~~表格上方搜索表单(或者需要调用formReset的场景) -> 时间相关组件必须设置`defaultValue`为`null`(区间时间组件需要设置为[null, null]的元组) **否则不会正常重置**~~ 后续版本已经修复 - 移除`commonDownloadExcel`方法 使用`useBlobExport`代替 - 路由模式由`backend`改为`mix`模式 即前后端混合路由 路由放在`apps/web-antd/src/router/routes/modules`下 移除原先的`local.ts` + +## vben基础框架的变化 + +- 使用`oxc`替代`eslint` & `prettier` +- tailwind3 -> tailwind4 +- vite升级到v8(基于rust) +- core包`unbuild`升级到`tsdown`(基于rust) diff --git a/oxfmt.config.mjs b/oxfmt.config.mjs deleted file mode 100644 index 9ad7fe1bf..000000000 --- a/oxfmt.config.mjs +++ /dev/null @@ -1,26 +0,0 @@ -import { defineConfig } from '@vben/oxfmt-config'; - -export default defineConfig({ - ignorePatterns: [ - 'dist', - 'dev-dist', - '.local', - '.claude', - '.agent', - '.agents', - '.codex', - '.output.js', - 'node_modules', - '.nvmrc', - 'coverage', - 'CODEOWNERS', - '.nitro', - '.output', - '**/*.svg', - '**/*.sh', - 'public', - '.npmrc', - '*-lock.yaml', - 'skills-lock.json', - ], -}); diff --git a/oxfmt.config.ts b/oxfmt.config.ts new file mode 100644 index 000000000..75150a7f0 --- /dev/null +++ b/oxfmt.config.ts @@ -0,0 +1,26 @@ +import { defineConfig } from "@vben/oxfmt-config"; + +export default defineConfig({ + ignorePatterns: [ + "dist", + "dev-dist", + ".local", + ".claude", + ".agent", + ".agents", + ".codex", + ".output.js", + "node_modules", + ".nvmrc", + "coverage", + "CODEOWNERS", + ".nitro", + ".output", + "**/*.svg", + "**/*.sh", + "public", + ".npmrc", + "*-lock.yaml", + "skills-lock.json", + ], +});