ant-design/components/steps/demo/vertical.md

44 lines
622 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 4
2016-07-21 10:07:30 +08:00
title:
zh-CN: 竖直方向的步骤条
en-US: Vertical
2016-03-31 09:40:55 +08:00
---
2015-08-26 18:28:29 +08:00
2016-07-21 10:07:30 +08:00
## zh-CN
2015-08-27 13:20:31 +08:00
简单的竖直方向的步骤条。
2015-08-26 18:28:29 +08:00
2016-07-21 10:07:30 +08:00
## en-US
A simple step bar in the vertical direction.
```tsx
import { Steps } from 'antd';
2022-05-23 14:37:16 +08:00
import React from 'react';
2018-06-27 15:55:04 +08:00
const description = 'This is a description.';
const App: React.FC = () => (
<Steps
direction="vertical"
current={1}
items={[
{
title: 'Finished',
description,
},
{
title: 'In Progress',
description,
},
{
title: 'Waiting',
description,
},
]}
/>
2018-11-28 15:00:03 +08:00
);
export default App;
2019-05-07 14:57:32 +08:00
```