docs: fix the steps docs layout (#38277)

* docs: update dropdown wrong word

* docs: update breadcrumb wrong word
This commit is contained in:
JarvisArt 2022-10-30 17:17:47 +08:00 committed by GitHub
parent 55eeae5f0f
commit 4522340700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 4 deletions

View File

@ -17,7 +17,7 @@ A breadcrumb displays the current location within a hierarchy. It allows going b
```__react
import Alert from '../alert';
ReactDOM.render(<Alert message="After version 4.24.0, we provide a simpler usage <Breadcrumb.Item menu={{ items: [...] }}> with better perfermance and potential of writing simpler code style in your applications. Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 5.0." />, mountNode);
ReactDOM.render(<Alert message="After version 4.24.0, we provide a simpler usage <Breadcrumb.Item menu={{ items: [...] }}> with better performance and potential of writing simpler code style in your applications. Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 5.0." />, mountNode);
```
```jsx

View File

@ -15,7 +15,7 @@ When there are more than a few options to choose from, you can wrap them in a `D
```__react
import Alert from '../alert';
ReactDOM.render(<Alert message="After version 4.24.0, we provide a simpler usage <Dropdown menu={{ items: [...] }} /> with better perfermance and potential of writing simpler code style in your applications. Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 5.0." />, mountNode);
ReactDOM.render(<Alert message="After version 4.24.0, we provide a simpler usage <Dropdown menu={{ items: [...] }} /> with better performance and potential of writing simpler code style in your applications. Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 5.0." />, mountNode);
```
```jsx

View File

@ -2,7 +2,7 @@
order: -1
title:
zh-CN: 基本用法(废弃的语法糖)
en-US: Basic
en-US: Basic (deprecated syntactic sugar)
version: < 4.24.0
---

View File

@ -12,7 +12,12 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/UZYqMizXHaj/Steps.svg
When a given task is complicated or has a certain sequence in the series of subtasks, we can decompose it into several steps to make things easier.
## API
### Usage upgrade after 4.24.0
```__react
import Alert from '../alert';
ReactDOM.render(<Alert message="After version 4.24.0, we provide a simpler usage <Steps items={[...]} /> with better performance and potential of writing simpler code style in your applications. Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 5.0." />, mountNode);
```
```jsx
// works when >=4.24.0, recommended ✅
@ -27,6 +32,8 @@ return <Tabs items={items} />;
</Steps>;
```
## API
### Steps
The whole of the step bar.

View File

@ -33,6 +33,8 @@ return <Steps items={items} />;
</Steps>;
```
## API
### Steps
整体步骤条。