perf: antd->5.27.0

main
LiaoYijun 2 months ago
parent ec3659b12b
commit 32f4b0e1bc

@ -13,7 +13,7 @@
"dependencies": { "dependencies": {
"@ant-design/icons": "^5.5.1", "@ant-design/icons": "^5.5.1",
"@react-pdf/renderer": "^3.4.0", "@react-pdf/renderer": "^3.4.0",
"antd": "^5.25.2", "antd": "^5.27.0",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"docx": "^8.5.0", "docx": "^8.5.0",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",

@ -3,7 +3,7 @@ import { PERM_ROLE_NEW } from '@/config'
import useAccountStore, { fetchPermissionList, fetchPermissionListByRoleId, fetchRoleList } from '@/stores/Account' import useAccountStore, { fetchPermissionList, fetchPermissionListByRoleId, fetchRoleList } from '@/stores/Account'
import { isEmpty } from '@/utils/commons' import { isEmpty } from '@/utils/commons'
import { import {
SyncOutlined, PushpinTwoTone,
} from '@ant-design/icons' } from '@ant-design/icons'
import { App, Button, Col, Form, Input, Modal, Row, Space, Table, Tag, TreeSelect, Typography } from 'antd' import { App, Button, Col, Form, Input, Modal, Row, Space, Table, Tag, TreeSelect, Typography } from 'antd'
import dayjs from 'dayjs' import dayjs from 'dayjs'
@ -34,7 +34,7 @@ function RoleList() {
function actionRender(_, role) { function actionRender(_, role) {
if (role.role_id == 1) { if (role.role_id == 1) {
return (<Tag icon={<SyncOutlined spin />} color='warning'>不能修改</Tag>) return (<Button type='text'><PushpinTwoTone twoToneColor="#c0192a" /></Button>)
} else { } else {
return ( return (
<Button type='link' key='edit' onClick={() => onRoleSeleted(role)}>{t('account:action.edit')}</Button> <Button type='link' key='edit' onClick={() => onRoleSeleted(role)}>{t('account:action.edit')}</Button>

Loading…
Cancel
Save