Commit ebcb3df9 by zhanghaozhe

替换切换密码显示图标

parent b5b3ca0b
import React, { Component } from 'react'; import React, { Component } from 'react';
import './password-input.scss' import './password-input.scss'
import classnames from 'classnames'
import Input from '../Input' import Input from '../Input'
...@@ -24,7 +25,10 @@ class PasswordInput extends Component { ...@@ -24,7 +25,10 @@ class PasswordInput extends Component {
placeholder={placeholder} placeholder={placeholder}
onChange={onChange} onChange={onChange}
> >
<i className={'iconfont iconiconfront-54'} onClick={this.togglePasswordVisibility}/> <i className={classnames('iconfont', {
'iconpwd-hidden': this.state.showPassword,
'iconyanjing': !this.state.showPassword
})} onClick={this.togglePasswordVisibility}/>
</Input> </Input>
); );
} }
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment