# Steps 步骤条
拆分展示某项流程的步骤,引导用户按流程完成任务或向用户展示当前状态。
> 按需加载方法
``` javascript
import { Steps } from '@nutui/nutui';
Steps.Steps.install(Vue);
Steps.Step.install(Vue);
```
## 基本用法
正常流程
```html
```
流程终止
```html
```
动态加载(2s后渲染)
```html
```
``` javascript
export default {
components: {},
data() {
return {
current: 3,
titles: [],
current2: 0
};
},
mounted() {
setTimeout(() => {
this.titles = ["已完成", "已完成", "进行中"];
this.current2 = 3;
}, 2000);
},
methods: {
next() {
this.current = this.current + 1;
}
}
};
```
## Prop
### nut-steps
| 字段 | 说明 | 类型 | 默认值 |
|---------|---------------------------------------|--------|----------------------------------------------------------|
| current | 当前所在的步骤 | Number | 0 |
| status | 流程状态 | String | "process"(可选值 "wait"、"process"、"finish"、"error") |
| source | 异步数据渲染nut-step时,必须绑定对应数组 | Array | - |
### nut-step
| 字段 | 说明 | 类型 | 默认值 |
|---------|-------------------|--------|----------|
| title | 流程步骤的title | String | 步骤 |
| content | 流程步骤的content | String | 步骤描述 |