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:
windywany 2017-04-01 14:53:32 +08:00
parent 19ae956402
commit d8bb1771d4

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(() => {