mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +08:00
65f067eb13
* feat: support items * feat: update demo * test: update package * test: update use type * test: update for test * test: update for lint * feat: update doc * test: update for lint * test: update for lint * test: update for lint * test: add deprecated dome * test: add deprecated dome * doc: update doc * feat: update package * test: add test case
40 lines
554 B
Markdown
40 lines
554 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 迷你版
|
|
en-US: Mini version
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
迷你版的步骤条,通过设置 `<Steps size="small">` 启用.
|
|
|
|
## en-US
|
|
|
|
By setting like this: `<Steps size="small">`, you can get a mini version.
|
|
|
|
```tsx
|
|
import { Steps } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<Steps
|
|
size="small"
|
|
current={1}
|
|
items={[
|
|
{
|
|
title: 'Finished',
|
|
},
|
|
{
|
|
title: 'In Progress',
|
|
},
|
|
{
|
|
title: 'Waiting',
|
|
},
|
|
]}
|
|
/>
|
|
);
|
|
|
|
export default App;
|
|
```
|