mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 02:18:07 +08:00
4522340700
* docs: update dropdown wrong word * docs: update breadcrumb wrong word
33 lines
624 B
Markdown
33 lines
624 B
Markdown
---
|
|
order: -1
|
|
title:
|
|
zh-CN: 基本用法(废弃的语法糖)
|
|
en-US: Basic (deprecated syntactic sugar)
|
|
version: < 4.24.0
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
简单的步骤条。
|
|
|
|
## en-US
|
|
|
|
The most basic step bar.
|
|
|
|
```tsx
|
|
import { Steps } from 'antd';
|
|
import React from 'react';
|
|
|
|
const { Step } = Steps;
|
|
const description = 'This is a description.';
|
|
const App: React.FC = () => (
|
|
<Steps current={1}>
|
|
<Step title="Finished" description={description} />
|
|
<Step title="In Progress" description={description} subTitle="Left 00:00:08" />
|
|
<Step title="Waiting" description={description} />
|
|
</Steps>
|
|
);
|
|
|
|
export default App;
|
|
```
|