mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
docs: fix the steps docs layout (#38277)
* docs: update dropdown wrong word * docs: update breadcrumb wrong word
This commit is contained in:
parent
55eeae5f0f
commit
4522340700
@ -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
|
||||
|
@ -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
|
||||
|
@ -2,7 +2,7 @@
|
||||
order: -1
|
||||
title:
|
||||
zh-CN: 基本用法(废弃的语法糖)
|
||||
en-US: Basic
|
||||
en-US: Basic (deprecated syntactic sugar)
|
||||
version: < 4.24.0
|
||||
---
|
||||
|
||||
|
@ -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.
|
||||
|
@ -33,6 +33,8 @@ return <Steps items={items} />;
|
||||
</Steps>;
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Steps
|
||||
|
||||
整体步骤条。
|
||||
|
Loading…
Reference in New Issue
Block a user