Cascader support loadData async
This commit is contained in:
parent
13a940ee86
commit
f7ffdac569
4 changed files with 71 additions and 15 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue