This commit is contained in:
梁灏 2018-12-24 14:12:32 +08:00
parent 7fe58637f4
commit c736b0f1e0
2 changed files with 69 additions and 49 deletions

View file

@ -59,8 +59,8 @@
handleTriggerItem (item, fromInit = false, fromUser = false) {
if (item.disabled) return;
const cascader = findComponentUpward(this, 'Cascader');
if (item.loading !== undefined && !item.children.length) {
const cascader = findComponentUpward(this, 'Cascader');
if (cascader && cascader.loadData) {
cascader.loadData(item, () => {
// todo
@ -110,6 +110,10 @@
fromInit: fromInit
});
}
if (cascader) {
cascader.$refs.drop.update();
}
},
updateResult (item) {
this.result = [this.tmpItem].concat(item);