fixed #488
This commit is contained in:
parent
53754a3185
commit
3bbb6b5f7d
2 changed files with 4 additions and 3 deletions
|
@ -70,9 +70,9 @@
|
|||
|
||||
<template>
|
||||
<div>
|
||||
<Cascader :data="data" v-model="value2" change-on-select></Cascader>
|
||||
<Cascader :data="data" v-model="value2"></Cascader>
|
||||
{{ value2 }}
|
||||
<div @click="c">change</div>
|
||||
<Button @click="c">clear</Button>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -131,7 +131,7 @@
|
|||
},
|
||||
methods: {
|
||||
c () {
|
||||
this.value2 = ['jiangsu', 'suzhou', 'zhuozhengyuan']
|
||||
this.value2 = []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -208,6 +208,7 @@
|
|||
},
|
||||
value (val) {
|
||||
this.currentValue = val;
|
||||
if (!val.length) this.selected = [];
|
||||
},
|
||||
currentValue () {
|
||||
this.$emit('input', this.currentValue);
|
||||
|
|
Loading…
Add table
Reference in a new issue