From 2f0b086d60516534003522c202142826db4c2eba Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Thu, 8 Dec 2016 22:34:52 +0800 Subject: [PATCH] fixed #116 --- src/components/select/select.vue | 4 ++++ test/routers/select.vue | 26 +++++++++++++++++++++----- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 2a15988..f6d6e7a 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -459,6 +459,10 @@ slotChange () { this.options = []; this.optionInstances = []; + }, + setQuery (query) { + if (!this.filterable) return; + this.query = query; } }, ready () { diff --git a/test/routers/select.vue b/test/routers/select.vue index eb3828e..4606476 100644 --- a/test/routers/select.vue +++ b/test/routers/select.vue @@ -1,8 +1,17 @@