From ed1f55c195906e1cfebc4994d9f965c5c57b76a9 Mon Sep 17 00:00:00 2001 From: xiaoyucoding Date: Tue, 5 Mar 2019 13:40:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20input=20=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E8=AE=BE=E7=BD=AE=20maxlength=20=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/components/input/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/view/components/input/index.vue b/src/core/view/components/input/index.vue index b418bef76..618cb9587 100644 --- a/src/core/view/components/input/index.vue +++ b/src/core/view/components/input/index.vue @@ -132,7 +132,7 @@ export default { this.$emit('update:value', value) }, maxlength (value) { - const realValue = this.realValue.slice(0, parseInt(value, 10)) + const realValue = this.inputValue.slice(0, parseInt(value, 10)) realValue !== this.inputValue && (this.inputValue = realValue) } }, -- GitLab