cascader.vue
2.2 KB
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
63
64
65
<template>
<div>
<Cascader v-model="value3" :data="data" filterable style="width: 400px"></Cascader>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<Cascader v-model="value3" :data="data" filterable style="width: 400px"></Cascader>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<Cascader v-model="value3" :data="data" filterable style="width: 400px"></Cascader>
</div>
</template>
<script>
export default {
data () {
return {
data: [{
value: 1,
label: '北京',
children: [
{
value: 11,
label: '故宫'
},
{
value: 12,
label: '天坛'
},
{
value: 13,
label: '王府井'
}
]
}, {
value: 2,
label: '江苏',
children: [
{
value: 21,
label: '南京',
children: [
{
value: 211,
label: '夫子庙',
}
]
},
{
value: 22,
label: '苏州',
children: [
{
value: 221,
label: '拙政园',
},
{
value: 222,
label: '狮子林',
}
]
}
],
}],
value3: []
}
}
}
</script>