Browse Source
🐛 fix: property undefined (#7824)
* fix: property undefined
* fix: invalid width props
* fix ts
Co-authored-by: wb-dpc540169 <wb-dpc540169@alibaba-inc.com>
Co-authored-by: chenshuai2144 <qixian.cs@outlook.com>
pull/7859/head
San
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
9 additions and
9 deletions
-
src/pages/ListTableList/components/UpdateForm.tsx
-
src/pages/ListTableList/index.tsx
-
src/pages/user/login/index.tsx
|
|
|
@ -72,7 +72,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => { |
|
|
|
id: 'pages.searchTable.updateForm.ruleName.nameLabel', |
|
|
|
defaultMessage: '规则名称', |
|
|
|
})} |
|
|
|
width="m" |
|
|
|
width="md" |
|
|
|
rules={[ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
@ -87,7 +87,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => { |
|
|
|
/> |
|
|
|
<ProFormTextArea |
|
|
|
name="desc" |
|
|
|
width="m" |
|
|
|
width="md" |
|
|
|
label={intl.formatMessage({ |
|
|
|
id: 'pages.searchTable.updateForm.ruleDesc.descLabel', |
|
|
|
defaultMessage: '规则描述', |
|
|
|
@ -122,7 +122,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => { |
|
|
|
> |
|
|
|
<ProFormSelect |
|
|
|
name="target" |
|
|
|
width="m" |
|
|
|
width="md" |
|
|
|
label={intl.formatMessage({ |
|
|
|
id: 'pages.searchTable.updateForm.object', |
|
|
|
defaultMessage: '监控对象', |
|
|
|
@ -134,7 +134,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => { |
|
|
|
/> |
|
|
|
<ProFormSelect |
|
|
|
name="template" |
|
|
|
width="m" |
|
|
|
width="md" |
|
|
|
label={intl.formatMessage({ |
|
|
|
id: 'pages.searchTable.updateForm.ruleProps.templateLabel', |
|
|
|
defaultMessage: '规则模板', |
|
|
|
@ -174,7 +174,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => { |
|
|
|
> |
|
|
|
<ProFormDateTimePicker |
|
|
|
name="time" |
|
|
|
width="m" |
|
|
|
width="md" |
|
|
|
label={intl.formatMessage({ |
|
|
|
id: 'pages.searchTable.updateForm.schedulingPeriod.timeLabel', |
|
|
|
defaultMessage: '开始时间', |
|
|
|
@ -197,7 +197,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => { |
|
|
|
id: 'pages.searchTable.updateForm.object', |
|
|
|
defaultMessage: '监控对象', |
|
|
|
})} |
|
|
|
width="m" |
|
|
|
width="md" |
|
|
|
valueEnum={{ |
|
|
|
month: '月', |
|
|
|
week: '周', |
|
|
|
|
|
|
|
@ -307,10 +307,10 @@ const TableList: React.FC = () => { |
|
|
|
), |
|
|
|
}, |
|
|
|
]} |
|
|
|
width="m" |
|
|
|
width="md" |
|
|
|
name="name" |
|
|
|
/> |
|
|
|
<ProFormTextArea width="m" name="desc" /> |
|
|
|
<ProFormTextArea width="md" name="desc" /> |
|
|
|
</ModalForm> |
|
|
|
<UpdateForm |
|
|
|
onSubmit={async (value) => { |
|
|
|
|
|
|
|
@ -68,7 +68,7 @@ const Login: React.FC<LoginProps> = (props) => { |
|
|
|
}, |
|
|
|
}} |
|
|
|
onFinish={(values) => { |
|
|
|
handleSubmit(values); |
|
|
|
handleSubmit(values as LoginParamsType); |
|
|
|
return Promise.resolve(); |
|
|
|
}} |
|
|
|
> |
|
|
|
|