-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathclickable.vue
62 lines (57 loc) · 1018 Bytes
/
clickable.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<docs>
---
order: 9
title:
zh-CN: 可点击
en-US: Clickable
---
## zh-CN
设置 `v-model` 后,Steps 变为可点击状态。
## en-US
Setting `v-model` makes Steps clickable.
</docs>
<template>
<div>
<a-steps
v-model:current="current"
:items="[
{
title: 'Step 1',
description,
},
{
title: 'Step 2',
description,
},
{
title: 'Step 3',
description,
},
]"
></a-steps>
<a-divider />
<a-steps
v-model:current="current"
direction="vertical"
:items="[
{
title: 'Step 1',
description,
},
{
title: 'Step 2',
description,
},
{
title: 'Step 3',
description,
},
]"
></a-steps>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
const current = ref<number>(0);
const description = 'This is a description.';
</script>