处理Ipt组件计算

This commit is contained in:
Apple 2022-08-09 09:57:44 +08:00
parent 0fbe515adf
commit 6545da20dd
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ import classNames from 'classnames'
{kind=="text"?<Icon type="eye-o" className="pwdShow"/>:<Icon className="pwdShow" type="closed-eye" />} {kind=="text"?<Icon type="eye-o" className="pwdShow"/>:<Icon className="pwdShow" type="closed-eye" />}
</span>:null} </span>:null}
{disabled==false&&clearShow==true&&this.state.iptVal?<svg onClick={this.clearItem.bind(this)} viewBox="0 0 16 16" width="16px" height="16px"><circle fill="#AAAFBA" fillRule="evenodd" cx="8" cy="8" r="8"></circle><path d="M5.333 5.333l5.334 5.334M10.667 5.333l-5.334 5.334" stroke="#FFF" strokeLinecap="square"></path></svg>:null} {disabled==false&&clearShow==true&&this.state.iptVal?<svg onClick={this.clearItem.bind(this)} viewBox="0 0 16 16" width="16px" height="16px"><circle fill="#AAAFBA" fillRule="evenodd" cx="8" cy="8" r="8"></circle><path d="M5.333 5.333l5.334 5.334M10.667 5.333l-5.334 5.334" stroke="#FFF" strokeLinecap="square"></path></svg>:null}
{disabled==false&&countShow==true?<span className="countTip">{this.props.value.length}/{maxLength}</span>:null} {disabled==false&&countShow==true?<span className="countTip">{String(this.props.value).length}/{maxLength}</span>:null}
{unit?<font className="unit">{unit}</font>:null} {unit?<font className="unit">{unit}</font>:null}
</div> </div>