Skip to content

Commit dc07367

Browse files
committed
feat: update antd v6 (#23)
1 parent 3efe764 commit dc07367

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"prepare": "husky install"
2222
},
2323
"dependencies": {
24-
"@ant-design/icons": "^5.3.4",
24+
"@ant-design/icons": "^6.1.0",
2525
"@babel/runtime": "^7.24.0",
26-
"@wanp/use-swr-data": "^1.0.3",
27-
"antd": "^5.15.3",
28-
"axios": "^1.6.8",
26+
"@wanp/use-swr-data": "^1.0.6",
27+
"antd": "^6.0.0",
28+
"axios": "^1.13.2",
2929
"classnames": "^2.5.1",
3030
"core-js": "^3.36.0",
3131
"lodash": "^4.17.21",
@@ -37,27 +37,27 @@
3737
"zustand": "^5.0.5"
3838
},
3939
"devDependencies": {
40-
"@antfu/eslint-config": "^4.15.0",
40+
"@antfu/eslint-config": "^6.2.0",
4141
"@babel/core": "^7.24.0",
4242
"@babel/plugin-transform-runtime": "^7.24.0",
4343
"@babel/preset-env": "^7.24.0",
4444
"@babel/preset-react": "^7.23.3",
4545
"@babel/preset-typescript": "^7.23.3",
46-
"@eslint-react/eslint-plugin": "^1.52.2",
46+
"@eslint-react/eslint-plugin": "^2.3.7",
4747
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.0",
4848
"@types/lodash": "^4.17.20",
4949
"@types/mockjs": "^1.0.10",
50-
"@types/node": "^18.19.24",
51-
"@types/react": "^18.2.66",
52-
"@types/react-dom": "^18.2.22",
50+
"@types/node": "^18.19.130",
51+
"@types/react": "^19.2.5",
52+
"@types/react-dom": "^19.2.3",
5353
"autoprefixer": "^10.4.18",
5454
"babel-loader": "^8.3.0",
55-
"cross-env": "^7.0.3",
55+
"cross-env": "^10.1.0",
5656
"css-loader": "^6.10.0",
57-
"cssnano": "^6.1.0",
57+
"cssnano": "^7.1.2",
5858
"dotenv": "^16.4.5",
59-
"eslint": "^9.29.0",
60-
"eslint-plugin-format": "^1.0.1",
59+
"eslint": "^9.39.1",
60+
"eslint-plugin-format": "^1.0.2",
6161
"eslint-plugin-react-hooks": "^5.2.0",
6262
"eslint-plugin-react-refresh": "^0.4.20",
6363
"eslint-plugin-tailwindcss": "^3.18.0",
@@ -73,7 +73,7 @@
7373
"react-refresh": "^0.17.0",
7474
"style-loader": "^3.3.4",
7575
"tailwindcss": "^3.4.1",
76-
"typescript": "~5.8.2",
76+
"typescript": "^5.9.3",
7777
"webpack": "^5.90.3",
7878
"webpack-bundle-analyzer": "^4.10.1",
7979
"webpack-cli": "^4.10.0",

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
onlyBuiltDependencies:
22
- core-js
3+
- core-js-pure

src/components/FormModal/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ function FormModal(props: FormModalProps) {
4848
okButtonProps={okButtonProps}
4949
closable={!!noFooter}
5050
footer={noFooter ? null : undefined}
51-
classNames={classNames || { body: "pt-6" }}
51+
classNames={classNames || {
52+
body: "pt-6",
53+
header: "border-b border-black/10 border-solid pb-3",
54+
}}
5255
afterClose={() => {
5356
formInstance.current && formInstance.current.resetFields();
5457
}}

src/layout/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import BreadCrumb from "&src/components/BreadCrumb";
22
import { COLOR_PRIMARY, SPLIT_FLAG } from "&src/config";
33
import useRootStore, { useGetRouterConfig } from "&src/store";
4-
54
import { ConfigProvider, Layout, theme } from "antd";
65
import { useMemo } from "react";
76
import { Link, useLocation } from "react-router-dom";

src/utils/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class Request {
3232
return res.data;
3333
},
3434
(err: AxiosError) => {
35-
notification.error({ message: `网络连接弱,请检查网络环境` });
35+
notification.error({ title: "请求失败", message: `网络连接弱,请检查网络环境`, });
3636
throw err;
3737
}
3838
);

tailwind.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3+
important: true,
34
darkMode: "class",
45
content: ["./src/**/*.{tsx,jsx,ts,js}"],
56
theme: {

0 commit comments

Comments
 (0)