<Input
onKeyDown={(e) => {
this.enTerLogin(e);
}}
className="login-input"
placeholder="密码"
autoComplete="off"
prefix={<Icon type="lock" />}
type="password" />
// 回车事件
enTerLogin = (e) => {
if (e.keyCode === 13) {
this.handleSubmit(e);
}
}
网友评论