Skip to content

Commit 044a8a8

Browse files
committedMay 22, 2023
feat: package and details
1 parent 0ac50f5 commit 044a8a8

File tree

8 files changed

+41
-46
lines changed

8 files changed

+41
-46
lines changed
 

‎package.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,51 +10,51 @@
1010
"prettier": "prettier --write \"{src,mock}/**/*.{js,css,less,ts,tsx}\""
1111
},
1212
"dependencies": {
13-
"@ant-design/icons": "^5.0.1",
13+
"@ant-design/icons": "^5.1.0",
1414
"@loadable/component": "^5.15.3",
15-
"@rematch/core": "^2.1.0",
16-
"antd": "4.24.8",
17-
"axios": "^1.3.4",
15+
"@rematch/core": "^2.2.0",
16+
"antd": "4.x",
17+
"axios": "^1.4.0",
1818
"lodash": "^4.17.21",
1919
"normalize.css": "^8.0.1",
20-
"qs": "^6.11.0",
20+
"qs": "^6.11.2",
2121
"react": "^18.2.0",
2222
"react-dom": "^18.2.0",
23-
"react-redux": "^7.2.5",
24-
"react-router-dom": "^6.8.2",
25-
"react-use": "^17.3.1",
23+
"react-redux": "^8.0.5",
24+
"react-router-dom": "^6.11.2",
25+
"react-use": "^17.4.0",
2626
"react-vcode": "1.0.11",
27-
"redux": "^4.1.1"
27+
"redux": "^4.2.1"
2828
},
2929
"devDependencies": {
3030
"@types/loadable__component": "^5.13.4",
31-
"@types/lodash": "^4.14.175",
32-
"@types/mockjs": "^1.0.4",
33-
"@types/node": "^18.14.4",
31+
"@types/lodash": "^4.14.194",
32+
"@types/mockjs": "^1.0.7",
33+
"@types/node": "^20.2.3",
3434
"@types/qs": "^6.9.7",
35-
"@types/react": "^18.0.27",
36-
"@types/react-dom": "^18.0.10",
37-
"@types/react-redux": "^7.1.18",
38-
"@types/react-router-dom": "^5.3.0",
39-
"@typescript-eslint/eslint-plugin": "^5.54.0",
40-
"@typescript-eslint/parser": "^5.54.0",
41-
"@vitejs/plugin-react-swc": "^3.0.0",
42-
"autoprefixer": "^10.4.13",
43-
"consola": "^2.15.3",
44-
"eslint": "^8.35.0",
45-
"eslint-config-prettier": "^8.6.0",
35+
"@types/react": "^18.2.6",
36+
"@types/react-dom": "^18.2.4",
37+
"@types/react-redux": "^7.1.25",
38+
"@types/react-router-dom": "^5.3.3",
39+
"@typescript-eslint/eslint-plugin": "^5.59.6",
40+
"@typescript-eslint/parser": "^5.59.6",
41+
"@vitejs/plugin-react-swc": "^3.3.1",
42+
"autoprefixer": "^10.4.14",
43+
"consola": "^3.1.0",
44+
"eslint": "^8.41.0",
45+
"eslint-config-prettier": "^8.8.0",
4646
"eslint-plugin-prettier": "^4.2.1",
4747
"eslint-plugin-react": "^7.32.2",
4848
"eslint-plugin-react-hooks": "^4.6.0",
49-
"less": "^4.1.1",
49+
"less": "^4.1.3",
5050
"mockjs": "^1.1.0",
51-
"postcss": "^8.4.21",
52-
"prettier": "^2.8.4",
51+
"postcss": "^8.4.23",
52+
"prettier": "^2.8.8",
5353
"prop-types": "^15.8.1",
54-
"rc-tree": "^5.7.2",
55-
"typescript": "^4.9.3",
56-
"vite": "^4.1.0",
54+
"rc-tree": "^5.7.3",
55+
"typescript": "^5.0.4",
56+
"vite": "^4.3.8",
5757
"vite-plugin-eslint": "^1.8.1",
5858
"vite-plugin-style-import": "^2.0.0"
5959
}
60-
}
60+
}

‎src/components/Header/index.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,11 @@ export default function HeaderCom(props: Props): JSX.Element {
8989
const u = props.userinfo.userBasicInfo;
9090
return (
9191
<Header className="header">
92-
<Tooltip
93-
placement="bottom"
94-
title={props.collapsed ? "展开菜单" : "收起菜单"}
95-
>
96-
<MenuFoldOutlined
97-
className={props.collapsed ? "trigger fold" : "trigger"}
98-
onClick={() => props.onToggle()}
99-
/>
100-
</Tooltip>
92+
<MenuFoldOutlined
93+
className={props.collapsed ? "trigger fold" : "trigger"}
94+
onClick={() => props.onToggle()}
95+
/>
96+
10197
<div className="rightBox">
10298
<Tooltip placement="bottom" title={fullScreen ? "退出全屏" : "全屏"}>
10399
<div className="full all_center">

‎src/components/TreeChose/PowerTreeTable.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ export default function TreeTable(props: Props): JSX.Element {
220220
key: "powers",
221221
width: "70%",
222222
render: (value: Power[], record: PowerLevel): JSX.Element[] | null => {
223-
console.log("东西呢:", value);
224223
if (value) {
225224
return value.map((item: Power, index: number) => {
226225
return (
@@ -246,7 +245,7 @@ export default function TreeTable(props: Props): JSX.Element {
246245
zIndex={1001}
247246
width={750}
248247
title={props.title || "请选择"}
249-
visible={props.modalShow}
248+
open={props.modalShow}
250249
onOk={onOk}
251250
onCancel={onClose}
252251
confirmLoading={props.loading}

‎src/components/TreeChose/RoleTree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default function RoleTreeComponent(props: Props): JSX.Element {
109109
return (
110110
<Modal
111111
title={props.title || "请选择"}
112-
visible={props.visible}
112+
open={props.visible}
113113
wrapClassName="menuTreeModal"
114114
confirmLoading={props.loading}
115115
onOk={onOk}

‎src/pages/System/MenuAdmin/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ function MenuAdminContainer() {
464464

465465
<Modal
466466
title={`${{ add: "新增", up: "修改", see: "查看" }[modal.operateType]}`}
467-
visible={modal.modalShow}
467+
open={modal.modalShow}
468468
onOk={onOk}
469469
onCancel={onClose}
470470
confirmLoading={modal.modalLoading}

‎src/pages/System/PowerAdmin/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ function PowerAdminContainer() {
516516
title={`${
517517
{ add: "新增", up: "修改", see: "查看" }[modal.operateType]
518518
}权限: ${treeSelect.title}->${modal.nowData?.title ?? ""}`}
519-
visible={modal.modalShow}
519+
open={modal.modalShow}
520520
onOk={onOk}
521521
onCancel={onClose}
522522
confirmLoading={modal.modalLoading}

‎src/pages/System/RoleAdmin/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ function RoleAdminContainer() {
517517
{/* 新增&修改&查看 模态框 */}
518518
<Modal
519519
title={{ add: "新增", up: "修改", see: "查看" }[modal.operateType]}
520-
visible={modal.modalShow}
520+
open={modal.modalShow}
521521
onOk={() => onOk()}
522522
onCancel={() => onClose()}
523523
confirmLoading={modal.modalLoading}

‎src/pages/System/UserAdmin/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ function UserAdminContainer(): JSX.Element {
552552
{/* 新增&修改&查看 模态框 */}
553553
<Modal
554554
title={{ add: "新增", up: "修改", see: "查看" }[modal.operateType]}
555-
visible={modal.modalShow}
555+
open={modal.modalShow}
556556
onOk={onOk}
557557
onCancel={onClose}
558558
confirmLoading={modal.modalLoading}

0 commit comments

Comments
 (0)