Skip to content

Commit 7c0d36c

Browse files
docs: ✏️ 增加steps设置激活项的介绍
1 parent e487ced commit 7c0d36c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/component/steps.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@
3737
<wd-step title="步骤2" description="登录账号并绑定手机" />
3838
<wd-step title="步骤3" description="完善个人信息" />
3939
</wd-steps>
40+
<wd-button size="small" @click="nextStep">下一步</wd-button>
41+
```
42+
```ts
43+
const active = ref<number>(0)
44+
45+
function nextStep() {
46+
active.value = active.value + 1
47+
}
48+
4049
```
4150

4251
## 修改图标

0 commit comments

Comments
 (0)