diff --git a/examples/routers/input.vue b/examples/routers/input.vue
index acfbd3cc..c8d0136c 100644
--- a/examples/routers/input.vue
+++ b/examples/routers/input.vue
@@ -129,11 +129,11 @@
-
+
-
+
-
+
diff --git a/src/components/input/input.vue b/src/components/input/input.vue
index 67d1b4e9..045f7d57 100644
--- a/src/components/input/input.vue
+++ b/src/components/input/input.vue
@@ -218,6 +218,7 @@
methods: {
handleEnter (event) {
this.$emit('on-enter', event);
+ if (this.search) this.$emit('on-search', this.currentValue);
},
handleKeydown (event) {
this.$emit('on-keydown', event);
@@ -292,8 +293,9 @@
this.$emit('on-change', e);
},
handleSearch () {
- if (this.disable) return false;
+ if (this.disabled) return false;
this.$refs.input.focus();
+ this.$emit('on-search', this.currentValue);
}
},
watch: {