feat: field extensions for login/register forms

This commit is contained in:
chenos 2021-03-24 19:13:44 +08:00
parent 859e1e0a04
commit 964b5f70ba
2 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,7 @@ export function Login(props: any) {
help: <Link to={'/lostpassword'}></Link> help: <Link to={'/lostpassword'}></Link>
}, },
}, },
...(props.fields||{}),
} }
}}> }}>
<FormButtonGroup> <FormButtonGroup>

View File

@ -122,6 +122,7 @@ export function Register(props: any) {
placeholder: '确认密码', placeholder: '确认密码',
} }
}, },
...(props.fields||{}),
} }
}}> }}>
<FormButtonGroup align={'start'}> <FormButtonGroup align={'start'}>