Browse Source

docs: optimization docs (#39947)

pull/39952/head
lijianan 2 years ago
committed by GitHub
parent
commit
e80587ec70
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      docs/react/migration-v5.en-US.md
  2. 3
      docs/react/migration-v5.zh-CN.md

3
docs/react/migration-v5.en-US.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`. - Move PageHeader component into `@ant-design/pro-components`.
```diff ```diff
- import { PageHeader, Comment, Input, Button } from 'antd'; - import { PageHeader, Comment } from 'antd';
+ import { Comment } from '@ant-design/compatible'; + import { Comment } from '@ant-design/compatible';
+ import { PageHeader } from '@ant-design/pro-layout'; + import { PageHeader } from '@ant-design/pro-layout';
+ import { Input, Button } from 'antd';
const App: React.FC = () => ( const App: React.FC = () => (
<> <>

3
docs/react/migration-v5.zh-CN.md

@ -117,10 +117,9 @@ title: 从 v4 到 v5
- 移除 PageHeader 组件,移至 `@ant-design/pro-components` 中维护。 - 移除 PageHeader 组件,移至 `@ant-design/pro-components` 中维护。
```diff ```diff
- import { PageHeader, Comment, Input, Button } from 'antd'; - import { PageHeader, Comment } from 'antd';
+ import { Comment } from '@ant-design/compatible'; + import { Comment } from '@ant-design/compatible';
+ import { PageHeader } from '@ant-design/pro-layout'; + import { PageHeader } from '@ant-design/pro-layout';
+ import { Input, Button } from 'antd';
const App: React.FC = () => ( const App: React.FC = () => (
<> <>

Loading…
Cancel
Save