Commit 427dd34f0a4795bb261b20dcace67f345c62a7f6
1 parent
0819648c
update issue guide
Showing
2 changed files
with
26 additions
and
11 deletions
Show diff stats
.github/ISSUE_TEMPLATE.md
| 1 | 1 | <!-- |
| 2 | -IMPORTANT: Please use the following link to create a new issue: | |
| 2 | +注意:请使用下面的链接来新建 issue: | |
| 3 | 3 | |
| 4 | 4 | https://www.iviewui.com/new-issue |
| 5 | 5 | |
| 6 | -If your issue was not created using the app above, it will be closed immediately. | |
| 6 | +不是用上面的链接创建的 issue 会被立即关闭。 | |
| 7 | 7 | --> |
| 8 | - | |
| 9 | 8 | <!-- |
| 10 | -注意:请使用下面的链接来新建 issue: | |
| 9 | +IMPORTANT: Please use the following link to create a new issue: | |
| 11 | 10 | |
| 12 | 11 | https://www.iviewui.com/new-issue |
| 13 | 12 | |
| 14 | -不是用上面的链接创建的 issue 会被立即关闭。 | |
| 13 | +If your issue was not created using the app above, it will be closed immediately. | |
| 15 | 14 | --> | ... | ... |
examples/routers/cascader.vue
| 1 | 1 | <template> |
| 2 | - <div style="width: 200px;margin: 100px;"> | |
| 3 | - <Cascader :data="data" v-model="value1" trigger="hover"></Cascader> | |
| 4 | - </div> | |
| 2 | + <Cascader v-model="value3" :data="data" filterable @on-change="hc"></Cascader> | |
| 5 | 3 | </template> |
| 6 | 4 | <script> |
| 7 | 5 | export default { |
| 8 | 6 | data () { |
| 9 | 7 | return { |
| 10 | - value1: [], | |
| 11 | 8 | data: [{ |
| 12 | 9 | value: 'beijing', |
| 13 | 10 | label: '北京', |
| 14 | - children: [] | |
| 11 | + children: [ | |
| 12 | + { | |
| 13 | + value: 'gugong', | |
| 14 | + label: '故宫' | |
| 15 | + }, | |
| 16 | + { | |
| 17 | + value: 'tiantan', | |
| 18 | + label: '天坛' | |
| 19 | + }, | |
| 20 | + { | |
| 21 | + value: 'wangfujing', | |
| 22 | + label: '王府井' | |
| 23 | + } | |
| 24 | + ] | |
| 15 | 25 | }, { |
| 16 | 26 | value: 'jiangsu', |
| 17 | 27 | label: '江苏', |
| ... | ... | @@ -41,7 +51,13 @@ |
| 41 | 51 | ] |
| 42 | 52 | } |
| 43 | 53 | ], |
| 44 | - }] | |
| 54 | + }], | |
| 55 | + value3: [] | |
| 56 | + } | |
| 57 | + }, | |
| 58 | + methods: { | |
| 59 | + hc (a,b) { | |
| 60 | + console.log(a,b) | |
| 45 | 61 | } |
| 46 | 62 | } |
| 47 | 63 | } | ... | ... |