From c7f0dcbf6f7b10a627ce447bcb0fdfeef274cd2e Mon Sep 17 00:00:00 2001 From: San Date: Fri, 25 Dec 2020 19:07:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20property=20undefined=20(#?= =?UTF-8?q?7824)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: property undefined * fix: invalid width props * fix ts Co-authored-by: wb-dpc540169 Co-authored-by: chenshuai2144 --- src/pages/ListTableList/components/UpdateForm.tsx | 12 ++++++------ src/pages/ListTableList/index.tsx | 4 ++-- src/pages/user/login/index.tsx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pages/ListTableList/components/UpdateForm.tsx b/src/pages/ListTableList/components/UpdateForm.tsx index b3107317..454d546e 100644 --- a/src/pages/ListTableList/components/UpdateForm.tsx +++ b/src/pages/ListTableList/components/UpdateForm.tsx @@ -72,7 +72,7 @@ const UpdateForm: React.FC = (props) => { id: 'pages.searchTable.updateForm.ruleName.nameLabel', defaultMessage: '规则名称', })} - width="m" + width="md" rules={[ { required: true, @@ -87,7 +87,7 @@ const UpdateForm: React.FC = (props) => { /> = (props) => { > = (props) => { /> = (props) => { > = (props) => { id: 'pages.searchTable.updateForm.object', defaultMessage: '监控对象', })} - width="m" + width="md" valueEnum={{ month: '月', week: '周', diff --git a/src/pages/ListTableList/index.tsx b/src/pages/ListTableList/index.tsx index ff7e1c32..02956499 100644 --- a/src/pages/ListTableList/index.tsx +++ b/src/pages/ListTableList/index.tsx @@ -307,10 +307,10 @@ const TableList: React.FC = () => { ), }, ]} - width="m" + width="md" name="name" /> - + { diff --git a/src/pages/user/login/index.tsx b/src/pages/user/login/index.tsx index e407a5ba..650264a7 100644 --- a/src/pages/user/login/index.tsx +++ b/src/pages/user/login/index.tsx @@ -68,7 +68,7 @@ const Login: React.FC = (props) => { }, }} onFinish={(values) => { - handleSubmit(values); + handleSubmit(values as LoginParamsType); return Promise.resolve(); }} >