继承
InputBase
用法
<Form model={this.state.user} onChange={this.handleChange.bind(this)}>
<div style={{ marginBottom: 20 }}>
<TextBox name="username" value={this.state.user.username} placeholder="Username" iconCls="icon-man"></TextBox>
</div>
<div style={{ marginBottom: 20 }}>
<PasswordBox name="password" value={this.state.user.password} placeholder="Password" iconCls="icon-lock"></PasswordBox>
</div>
</Form>
属性
名称 | 类型 | 描述 | 默认 |
---|---|---|---|
value | string | 字段值。 | null |
passwordChar | string | 在输入框上显示的密码字符。 | |
checkInterval | number | 间隔时间检查并将输入字符转换为密码字符。 | 200 |
lastDelay | number | 延迟时间将最后一个输入字符转换为密码字符 | 500 |
showEye | boolean | 定义是否显示眼睛图标。 | true |
eyeAlign | string | 眼睛图标对齐方式,可选的值: 'left','right'。 | right |
revealed | boolean | 定义是否显示隐藏密码。 | false |