mirror of https://github.com/ElemeFE/element
Input: fix: issues #22123 input输入框长度限制在直接初始化绑定内容时存在超出限制问题
parent
acfc93a71f
commit
6a57c42280
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue