Cascader support loadData async

This commit is contained in:
梁灏 2017-05-09 15:46:08 +08:00
parent 13a940ee86
commit f7ffdac569
4 changed files with 71 additions and 15 deletions

View file

@ -88,6 +88,9 @@
default (label) {
return label.join(' / ');
}
},
loadData: {
type: Function
}
},
data () {
@ -224,8 +227,11 @@
}
this.updateSelected(true);
},
data () {
this.$nextTick(() => this.updateSelected());
data: {
deep: true,
handler () {
this.$nextTick(() => this.updateSelected());
}
}
}
};