let select component to emit on-query-change event so that APP can load data (options) from server via ajax
This commit is contained in:
parent
19ae956402
commit
d8bb1771d4
1 changed files with 3 additions and 0 deletions
|
@ -591,12 +591,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
query (val) {
|
query (val) {
|
||||||
|
this.$emit('on-query-change', val);
|
||||||
|
|
||||||
if (findComponentDownward(this, 'OptionGroup')) {
|
if (findComponentDownward(this, 'OptionGroup')) {
|
||||||
this.broadcast('OptionGroup', 'on-query-change', val);
|
this.broadcast('OptionGroup', 'on-query-change', val);
|
||||||
this.broadcast('iOption', 'on-query-change', val);
|
this.broadcast('iOption', 'on-query-change', val);
|
||||||
} else {
|
} else {
|
||||||
this.broadcast('iOption', 'on-query-change', val);
|
this.broadcast('iOption', 'on-query-change', val);
|
||||||
}
|
}
|
||||||
|
|
||||||
let is_hidden = true;
|
let is_hidden = true;
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue