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:
Aresn 2017-04-01 17:02:01 +08:00 committed by GitHub
commit 411cc21789

View file

@ -591,12 +591,15 @@
}
},
query (val) {
this.$emit('on-query-change', val);
if (findComponentDownward(this, 'OptionGroup')) {
this.broadcast('OptionGroup', 'on-query-change', val);
this.broadcast('iOption', 'on-query-change', val);
} else {
this.broadcast('iOption', 'on-query-change', val);
}
let is_hidden = true;
this.$nextTick(() => {