Browse Source

chore: upgrade react19

pull/11474/head
Wanpan 10 months ago
parent
commit
0ce25220e7
  1. 8
      package.json
  2. 6
      src/global.less
  3. 2
      src/pages/TableList/index.tsx

8
package.json

@ -45,8 +45,8 @@
"antd-style": "^3.7.0",
"classnames": "^2.5.1",
"dayjs": "^1.11.13",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": "^19.1.0",
"react-dom": "^19.1.0"
},
"devDependencies": {
"@ant-design/pro-cli": "^3.3.0",
@ -57,8 +57,8 @@
"@types/express": "^4.17.21",
"@types/jest": "^29.5.13",
"@types/lodash": "^4.17.10",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.1.5",
"@types/react-dom": "^19.1.5",
"@types/react-helmet": "^6.1.11",
"@umijs/lint": "^4.3.24",
"@umijs/max": "^4.3.24",

6
src/global.less

@ -4,9 +4,9 @@ body,
height: 100%;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}
.colorWeak {

2
src/pages/TableList/index.tsx

@ -97,7 +97,7 @@ const TableList: React.FC = () => {
const [showDetail, setShowDetail] = useState<boolean>(false);
const actionRef = useRef<ActionType>();
const actionRef = useRef<ActionType | null>(null);
const [currentRow, setCurrentRow] = useState<API.RuleListItem>();
const [selectedRowsState, setSelectedRows] = useState<API.RuleListItem[]>([]);

Loading…
Cancel
Save