From 3d2064cdb2267b2e99b5ce5fe62255913ff7332e Mon Sep 17 00:00:00 2001 From: toniol <452148223@qq.com> Date: Wed, 9 Aug 2017 15:06:44 +0800 Subject: [PATCH] fix #115 --- src/components/input/Search.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/input/Search.vue b/src/components/input/Search.vue index 45ff9d5..192d516 100644 --- a/src/components/input/Search.vue +++ b/src/components/input/Search.vue @@ -49,7 +49,10 @@ }, cancel() { - if (this.onCancel) this.onCancel() + if (this.onCancel) { + this.$refs.input.value = '' + this.onCancel() + } }, updateValue(value) {