Input: fix: issues #22123 input输入框长度限制在直接初始化绑定内容时存在超出限制问题

pull/22126/head
许金泰 2022-08-28 14:38:23 +08:00
parent acfc93a71f
commit 6a57c42280
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&