fixed #810
This commit is contained in:
parent
5d5f8dc8c6
commit
687c4562f1
3 changed files with 7 additions and 10 deletions
|
@ -172,8 +172,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.updateSelected(true);
|
||||
created () {
|
||||
this.$on('on-result-change', (params) => {
|
||||
// lastValue: is click the final val
|
||||
// fromInit: is this emit from update value
|
||||
|
@ -201,6 +200,9 @@
|
|||
}
|
||||
});
|
||||
},
|
||||
mounted () {
|
||||
this.updateSelected(true);
|
||||
},
|
||||
watch: {
|
||||
visible (val) {
|
||||
if (val) {
|
||||
|
|
|
@ -60,10 +60,8 @@
|
|||
const backItem = this.getBaseItem(item);
|
||||
this.tmpItem = backItem;
|
||||
this.emitUpdate([backItem]);
|
||||
|
||||
if (item.children && item.children.length){
|
||||
this.sublist = item.children;
|
||||
// this.$dispatch('on-result-change', false, this.changeOnSelect, fromInit);
|
||||
this.dispatch('Cascader', 'on-result-change', {
|
||||
lastValue: false,
|
||||
changeOnSelect: this.changeOnSelect,
|
||||
|
@ -71,7 +69,6 @@
|
|||
});
|
||||
} else {
|
||||
this.sublist = [];
|
||||
// this.$dispatch('on-result-change', true, this.changeOnSelect, fromInit);
|
||||
this.dispatch('Cascader', 'on-result-change', {
|
||||
lastValue: true,
|
||||
changeOnSelect: this.changeOnSelect,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue