From 6545da20dd57a10914f981b96fff5cb832e03c8c Mon Sep 17 00:00:00 2001 From: Apple <> Date: Tue, 9 Aug 2022 09:57:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86Ipt=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/input/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/input/main.js b/src/components/input/main.js index 408614d8..8b2cac8e 100644 --- a/src/components/input/main.js +++ b/src/components/input/main.js @@ -184,7 +184,7 @@ import classNames from 'classnames' {kind=="text"?:} :null} {disabled==false&&clearShow==true&&this.state.iptVal?:null} - {disabled==false&&countShow==true?{this.props.value.length}/{maxLength}:null} + {disabled==false&&countShow==true?{String(this.props.value).length}/{maxLength}:null} {unit?{unit}:null}