From 6a57c42280ac92bc1df7f0ef612df29ed5daa5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E9=87=91=E6=B3=B0?= <1791639435@qq.com> Date: Sun, 28 Aug 2022 14:38:23 +0800 Subject: [PATCH] =?UTF-8?q?Input:=20fix:=20issues=20#22123=20input?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E9=95=BF=E5=BA=A6=E9=99=90=E5=88=B6?= =?UTF-8?q?=E5=9C=A8=E7=9B=B4=E6=8E=A5=E5=88=9D=E5=A7=8B=E5=8C=96=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E5=86=85=E5=AE=B9=E6=97=B6=E5=AD=98=E5=9C=A8=E8=B6=85?= =?UTF-8?q?=E5=87=BA=E9=99=90=E5=88=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/input/src/input.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/input/src/input.vue b/packages/input/src/input.vue index 26321f1cf..ad403e797 100644 --- a/packages/input/src/input.vue +++ b/packages/input/src/input.vue @@ -219,7 +219,7 @@ return this.disabled || (this.elForm || {}).disabled; }, nativeInputValue() { - return this.value === null || this.value === undefined ? '' : String(this.value); + return this.value === null || this.value === undefined ? '' : (this.upperLimit ? String(this.value).substring(0, this.upperLimit) : String(this.value)); }, showClear() { return this.clearable &&