lijianan
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
4 deletions
-
docs/react/migration-v5.en-US.md
-
docs/react/migration-v5.zh-CN.md
|
|
@ -125,10 +125,9 @@ This document will help you upgrade from antd `4.x` version to antd `5.x` versio |
|
|
|
- Move PageHeader component into `@ant-design/pro-components`. |
|
|
|
|
|
|
|
```diff |
|
|
|
- import { PageHeader, Comment, Input, Button } from 'antd'; |
|
|
|
- import { PageHeader, Comment } from 'antd'; |
|
|
|
+ import { Comment } from '@ant-design/compatible'; |
|
|
|
+ import { PageHeader } from '@ant-design/pro-layout'; |
|
|
|
+ import { Input, Button } from 'antd'; |
|
|
|
|
|
|
|
const App: React.FC = () => ( |
|
|
|
<> |
|
|
|
|
|
@ -117,10 +117,9 @@ title: 从 v4 到 v5 |
|
|
|
- 移除 PageHeader 组件,移至 `@ant-design/pro-components` 中维护。 |
|
|
|
|
|
|
|
```diff |
|
|
|
- import { PageHeader, Comment, Input, Button } from 'antd'; |
|
|
|
- import { PageHeader, Comment } from 'antd'; |
|
|
|
+ import { Comment } from '@ant-design/compatible'; |
|
|
|
+ import { PageHeader } from '@ant-design/pro-layout'; |
|
|
|
+ import { Input, Button } from 'antd'; |
|
|
|
|
|
|
|
const App: React.FC = () => ( |
|
|
|
<> |
|
|
|