Browse Source

pref: add Icon type to Password => eye-invisible

pull/13481/head
zy410419243 6 years ago
committed by 偏右
parent
commit
4620f7c186
  1. 3
      components/input/Password.tsx

3
components/input/Password.tsx

@ -61,9 +61,8 @@ export default class Password extends React.Component<PasswordProps, PasswordSta
<Icon
{...iconProps}
className={`${prefixCls}-icon`}
type="eye"
type={this.state.visible ? 'eye-invisible' : 'eye'}
key="passwordIcon"
theme={this.state.visible ? 'filled' : 'outlined'}
/>,
);
}

Loading…
Cancel
Save