Bladeren bron

refactor: upgrade react type to 18.0.0

lanjianrong 4 jaren geleden
bovenliggende
commit
920ba8fefb

+ 2 - 2
package.json

@@ -63,8 +63,8 @@
     "@types/jest": "^26.0.0",
     "@types/lodash": "^4.14.144",
     "@types/qs": "^6.5.3",
-    "@types/react": "^16.9.17",
-    "@types/react-dom": "^16.8.4",
+    "@types/react": "^18.0.0",
+    "@types/react-dom": "^18.0.0",
     "@unocss/cli": "^0.38.2",
     "babel-plugin-import": "^1.13.5",
     "cross-env": "^7.0.0",

+ 1 - 1
src/pages/Product/Cloud/components/CardDetail/index.jsx

@@ -2,7 +2,7 @@ import { Descriptions } from 'antd'
 import React, { useState } from 'react'
 import { useModal } from '@/components/ModalStore'
 import styles from './index.less'
-
+import  "antd/lib/descriptions/style"
 const CardClientDetail = props => {
   const { client } = props
   const dispatchModal = useModal()

+ 1 - 1
src/pages/Workbench/Dashboard/index.tsx

@@ -17,7 +17,7 @@ import { isDevMode } from '@/utils/env'
 import { useModal } from '@/components/ModalStore'
 import classNames from 'classnames'
 import { PageContainer } from '@ant-design/pro-layout'
-
+import "antd/lib/card/style"
 const Dashboard = ({ dispatch, departments = [] }) => {
   const { initialState: { currentUser } = { currentUser: {} } } = useModel('@@initialState')
   const timer = useRef(null)