This commit is contained in:
wenjiarui 2023-08-14 11:52:56 +08:00
parent deec91e0d8
commit 4402976947
1 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import UserRelation from './userRelation';
import { WebComponentProps } from 'oak-frontend-base';
import { EntityDict } from '../../../../general-app-domain';
import { firstLetterUpperCase } from 'oak-domain/lib/utils/string';
import { EyeInvisibleOutlined, EyeTwoTone } from '@ant-design/icons';
export default function Render(props: WebComponentProps<EntityDict, 'user', false, {
name: string;
@ -77,7 +78,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
]}
>
<>
<Input
<Input.Password
value={password}
onChange={(e) => {
const strValue = e.target.value;
@ -85,6 +86,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
password: strValue,
});
}}
iconRender={(visible) => (visible ? <EyeTwoTone /> : <EyeInvisibleOutlined />)}
placeholder={t('placeholder.password')}
/>
</>