Merge pull request #564 from ninggf/2.0
let select component to emit on-query-change event so that APP can lo…
This commit is contained in:
commit
411cc21789
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