update issue guide

This commit is contained in:
梁灏 2017-11-02 18:23:10 +08:00
parent 0819648cd0
commit 427dd34f0a
2 changed files with 29 additions and 14 deletions

View file

@ -1,11 +1,3 @@
<!--
IMPORTANT: Please use the following link to create a new issue:
https://www.iviewui.com/new-issue
If your issue was not created using the app above, it will be closed immediately.
-->
<!--
注意:请使用下面的链接来新建 issue
@ -13,3 +5,10 @@ If your issue was not created using the app above, it will be closed immediately
不是用上面的链接创建的 issue 会被立即关闭。
-->
<!--
IMPORTANT: Please use the following link to create a new issue:
https://www.iviewui.com/new-issue
If your issue was not created using the app above, it will be closed immediately.
-->

View file

@ -1,17 +1,27 @@
<template>
<div style="width: 200px;margin: 100px;">
<Cascader :data="data" v-model="value1" trigger="hover"></Cascader>
</div>
<Cascader v-model="value3" :data="data" filterable @on-change="hc"></Cascader>
</template>
<script>
export default {
data () {
return {
value1: [],
data: [{
value: 'beijing',
label: '北京',
children: []
children: [
{
value: 'gugong',
label: '故宫'
},
{
value: 'tiantan',
label: '天坛'
},
{
value: 'wangfujing',
label: '王府井'
}
]
}, {
value: 'jiangsu',
label: '江苏',
@ -41,7 +51,13 @@
]
}
],
}]
}],
value3: []
}
},
methods: {
hc (a,b) {
console.log(a,b)
}
}
}