You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
order: 0
|
|
|
|
title:
|
|
|
|
zh-CN: 基本用法
|
|
|
|
en-US: Basic
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
简单的步骤条。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
The most basic step bar.
|
|
|
|
|
|
|
|
```tsx
|
|
|
|
import { Steps } from 'antd';
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
const description = 'This is a description.';
|
|
|
|
const App: React.FC = () => (
|
|
|
|
<Steps
|
|
|
|
current={1}
|
|
|
|
items={[
|
|
|
|
{
|
|
|
|
title: 'Finished',
|
|
|
|
description,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'In Progress',
|
|
|
|
description,
|
|
|
|
subTitle: 'Left 00:00:08',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Waiting',
|
|
|
|
description,
|
|
|
|
},
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|
|
|
|
```
|