Commit 411cc217893d0870d9fd0b477192b96335fd1c93

Authored by Aresn
Committed by GitHub
2 parents e494711a d8bb1771

Merge pull request #564 from ninggf/2.0

let select component to emit on-query-change event so that APP can lo…
Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/components/select/select.vue
... ... @@ -591,12 +591,15 @@
591 591 }
592 592 },
593 593 query (val) {
  594 + this.$emit('on-query-change', val);
  595 +
594 596 if (findComponentDownward(this, 'OptionGroup')) {
595 597 this.broadcast('OptionGroup', 'on-query-change', val);
596 598 this.broadcast('iOption', 'on-query-change', val);
597 599 } else {
598 600 this.broadcast('iOption', 'on-query-change', val);
599 601 }
  602 +
600 603 let is_hidden = true;
601 604  
602 605 this.$nextTick(() => {
... ...