Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 617
update React 16 to React 19#1355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
d3af8c60b8b9db08d82424bb2aaf76047c3b0c465bac850327d7e33dd286d53File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -48,25 +48,23 @@ | ||
| "now-build": "npm run docs:build", | ||
| "prepare": "husky" | ||
| }, | ||
| "peerDependencies": { | ||
| "react": ">=16.9.0", | ||
| "react-dom": ">=16.9.0" | ||
| }, | ||
| "dependencies": { | ||
| "@rc-component/context": "^1.4.0", | ||
| "@rc-component/resize-observer": "^1.0.0", | ||
| "@rc-component/util": "^1.1.0", | ||
| "classnames": "^2.2.5", | ||
| "@rc-component/resize-observer": "^1.0.0", | ||
| "rc-virtual-list": "^3.14.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@rc-component/father-plugin": "^2.0.1", | ||
| "@rc-component/np": "^1.0.3", | ||
| "@testing-library/dom": "^10.4.1", | ||
| "@testing-library/jest-dom": "^6.4.0", | ||
| "@testing-library/react": "^12.1.5", | ||
| "@testing-library/react": "^16.3.0", | ||
| "@types/jest": "^30.0.0", | ||
| "@types/react": "^18.0.28", | ||
| "@types/react-dom": "^19.0.4", | ||
| "@types/node": "^24.4.0", | ||
| "@types/react": "^19.1.13", | ||
| "@types/react-dom": "^19.1.9", | ||
| "@types/responselike": "^1.0.0", | ||
| "@types/styled-components": "^5.1.32", | ||
| "@umijs/fabric": "^4.0.1", | ||
| @@ -88,10 +86,10 @@ | ||
| "rc-dropdown": "~4.0.1", | ||
| "rc-menu": "~9.16.1", | ||
| "rc-tooltip": "^6.2.0", | ||
| "react": "^16.0.0", | ||
| "react": "^19.1.1", | ||
| "react-dnd": "^2.5.4", | ||
| "react-dnd-html5-backend": "^2.5.4", | ||
| "react-dom": "^16.0.0", | ||
| "react-dom": "^19.1.1", | ||
| "react-resizable": "^3.0.5", | ||
| "react-virtualized": "^9.12.0", | ||
| "react-window": "^1.8.5", | ||
| @@ -100,6 +98,10 @@ | ||
| "typescript": "~5.9.2", | ||
| "vitest": "^3.2.4" | ||
| }, | ||
| "peerDependencies": { | ||
| "react": ">=18.0.0", | ||
| "react-dom": ">=18.0.0" | ||
| }, | ||
li-jia-nan marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "lint-staged": { | ||
| "**/*.{js,jsx,tsx,ts,md,json}": [ | ||
| "prettier --write" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -6,6 +6,7 @@ import devRenderTimes from '../hooks/useRenderTimes'; | ||
| import useRowInfo from '../hooks/useRowInfo'; | ||
| import type { ColumnType, CustomizeComponent } from '../interface'; | ||
| import ExpandedRow from './ExpandedRow'; | ||
| import type { ExpandedRowProps } from './ExpandedRow'; | ||
| import { computedExpandedClassName } from '../utils/expandUtil'; | ||
| import type { TableProps } from '..'; | ||
| @@ -115,9 +116,9 @@ export function getCellProps<RecordType>( | ||
| // ================================================================================== | ||
| // == getCellProps == | ||
| // ================================================================================== | ||
| function BodyRow<RecordType extends { children?: readonly RecordType[] }>( | ||
| const BodyRow = <RecordType extends { children?: readonly RecordType[] }>( | ||
| props: BodyRowProps<RecordType>, | ||
| ) { | ||
| ) => { | ||
| if (process.env.NODE_ENV !== 'production') { | ||
| devRenderTimes(props); | ||
| } | ||
| @@ -224,7 +225,7 @@ function BodyRow<RecordType extends { children?: readonly RecordType[] }>( | ||
| ); | ||
| // ======================== Expand Row ========================= | ||
| let expandRowNode: React.ReactElement; | ||
| let expandRowNode: React.ReactElement<ExpandedRowProps>; | ||
| if (rowSupportExpand && (expandedRef.current || expanded)) { | ||
| const expandContent = expandedRowRender(record, index, indent + 1, expanded); | ||
li-jia-nan marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| @@ -254,7 +255,7 @@ function BodyRow<RecordType extends { children?: readonly RecordType[] }>( | ||
| {expandRowNode} | ||
| </> | ||
| ); | ||
| } | ||
| }; | ||
| if (process.env.NODE_ENV !== 'production') { | ||
| BodyRow.displayName = 'BodyRow'; | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.