update Umi 4.7.16 → 4.7.26、Ant Design 6.6.3 → 6.6.7、React/React DOM 19.3.0 → 19.3.1、编辑器 6.4.1 → 6.5.1,以及 React Query、Zustand、图标库和开发工具等; Node 支持范围改为 ^22.12.0 || ^24.0.0 || >=26.0.0。

This commit is contained in:
疯狂的狮子Li 2026-10-23 18:12:39 +08:00
parent 25e69f1937
commit 395dc0cc31
4 changed files with 1415 additions and 1453 deletions

View File

@ -22,14 +22,14 @@
"@ant-design/icons": "^6.3.4",
"@ant-design/pro-components": "3.1.12-0",
"@ant-design/x": "^2.9.0",
"@iconify/react": "^6.0.2",
"@iconify/react": "^6.0.3",
"@noble/ciphers": "^2.4.0",
"@tanstack/react-query": "^5.102.8",
"@umijs/max": "^4.7.16",
"@wangeditor-next/editor": "^6.4.1",
"@wangeditor-next/editor-for-react": "^6.4.1",
"@tanstack/react-query": "^5.104.5",
"@umijs/max": "^4.7.26",
"@wangeditor-next/editor": "^6.5.1",
"@wangeditor-next/editor-for-react": "^6.5.1",
"ahooks": "^3.10.0",
"antd": "^6.6.3",
"antd": "^6.6.7",
"antd-style": "^4.1.0",
"axios": "1.20.0",
"browser-image-compression": "^2.0.2",
@ -39,29 +39,29 @@
"echarts-for-react": "^3.0.6",
"jsencrypt": "3.5.4",
"nprogress": "0.2.0",
"react": "^19.3.0",
"react-dom": "^19.3.0",
"react-easy-crop": "^6.2.3",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-easy-crop": "^6.2.4",
"react-json-view-lite": "^2.5.0",
"react-syntax-highlighter": "^16.1.1",
"react-syntax-highlighter": "^16.1.2",
"screenfull": "^6.0.2",
"zustand": "^5.0.15"
"zustand": "^5.0.16"
},
"devDependencies": {
"@types/node": "^26.1.1",
"@types/node": "^26.6.5",
"@types/nprogress": "0.2.3",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@types/react-syntax-highlighter": "^15.5.13",
"@umijs/lint": "^4.7.16",
"@umijs/lint": "^4.7.26",
"@umijs/max-plugin-openapi": "^2.0.3",
"cross-env": "^10.1.0",
"oxfmt": "^0.67.0",
"oxlint": "^1.82.0",
"oxfmt": "^0.74.0",
"oxlint": "^1.89.0",
"typescript": "^6.0.3"
},
"engines": {
"node": ">=20.19.0",
"node": "^22.12.0 || ^24.0.0 || >=26.0.0",
"pnpm": ">=10.0.0"
}
}

2831
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

2
src/typings.d.ts vendored
View File

@ -18,7 +18,7 @@ interface ImportMetaEnv {
interface ImportMeta {
readonly env: ImportMetaEnv;
glob: <T = unknown>(pattern: string, options: { eager: true; as: 'url' }) => Record<string, T>;
glob: <T = unknown>(pattern: string, options: { eager: true; query: '?url'; import: 'default' }) => Record<string, T>;
}
declare module '*.less';

View File

@ -46,7 +46,8 @@ import { isHttp, normalizePath } from '@/utils/ruoyi';
const svgIconModules = import.meta.glob<string>('../assets/icons/svg/*.svg', {
eager: true,
as: 'url'
query: '?url',
import: 'default'
});
const svgIconMap = Object.fromEntries(
Object.entries(svgIconModules).map(([path, url]) => {