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>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<Cascader :data="data" v-model="value2" change-on-select></Cascader>
|
<Cascader :data="data" v-model="value2"></Cascader>
|
||||||
{{ value2 }}
|
{{ value2 }}
|
||||||
<div @click="c">change</div>
|
<Button @click="c">clear</Button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -131,7 +131,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
c () {
|
c () {
|
||||||
this.value2 = ['jiangsu', 'suzhou', 'zhuozhengyuan']
|
this.value2 = []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -208,6 +208,7 @@
|
||||||
},
|
},
|
||||||
value (val) {
|
value (val) {
|
||||||
this.currentValue = val;
|
this.currentValue = val;
|
||||||
|
if (!val.length) this.selected = [];
|
||||||
},
|
},
|
||||||
currentValue () {
|
currentValue () {
|
||||||
this.$emit('input', this.currentValue);
|
this.$emit('input', this.currentValue);
|
||||||
|
|
Loading…
Add table
Reference in a new issue