From 964b5f70baa3e6ea9dcc2fc2cfcaacfcd349be56 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 24 Mar 2021 19:13:44 +0800 Subject: [PATCH] feat: field extensions for login/register forms --- packages/app/src/components/views/Form/Login.tsx | 1 + packages/app/src/components/views/Form/Register.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/app/src/components/views/Form/Login.tsx b/packages/app/src/components/views/Form/Login.tsx index 8d3d2cae5..cecfc4d35 100644 --- a/packages/app/src/components/views/Form/Login.tsx +++ b/packages/app/src/components/views/Form/Login.tsx @@ -77,6 +77,7 @@ export function Login(props: any) { help: 忘记密码? }, }, + ...(props.fields||{}), } }}> diff --git a/packages/app/src/components/views/Form/Register.tsx b/packages/app/src/components/views/Form/Register.tsx index 52de2a032..63fabfa89 100644 --- a/packages/app/src/components/views/Form/Register.tsx +++ b/packages/app/src/components/views/Form/Register.tsx @@ -122,6 +122,7 @@ export function Register(props: any) { placeholder: '确认密码', } }, + ...(props.fields||{}), } }}>