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
parent
commit
c7f0dcbf6f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/pages/ListTableList/components/UpdateForm.tsx
  2. 4
      src/pages/ListTableList/index.tsx
  3. 2
      src/pages/user/login/index.tsx

12
src/pages/ListTableList/components/UpdateForm.tsx

@ -72,7 +72,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
id: 'pages.searchTable.updateForm.ruleName.nameLabel', id: 'pages.searchTable.updateForm.ruleName.nameLabel',
defaultMessage: '规则名称', defaultMessage: '规则名称',
})} })}
width="m" width="md"
rules={[ rules={[
{ {
required: true, required: true,
@ -87,7 +87,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
/> />
<ProFormTextArea <ProFormTextArea
name="desc" name="desc"
width="m" width="md"
label={intl.formatMessage({ label={intl.formatMessage({
id: 'pages.searchTable.updateForm.ruleDesc.descLabel', id: 'pages.searchTable.updateForm.ruleDesc.descLabel',
defaultMessage: '规则描述', defaultMessage: '规则描述',
@ -122,7 +122,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
> >
<ProFormSelect <ProFormSelect
name="target" name="target"
width="m" width="md"
label={intl.formatMessage({ label={intl.formatMessage({
id: 'pages.searchTable.updateForm.object', id: 'pages.searchTable.updateForm.object',
defaultMessage: '监控对象', defaultMessage: '监控对象',
@ -134,7 +134,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
/> />
<ProFormSelect <ProFormSelect
name="template" name="template"
width="m" width="md"
label={intl.formatMessage({ label={intl.formatMessage({
id: 'pages.searchTable.updateForm.ruleProps.templateLabel', id: 'pages.searchTable.updateForm.ruleProps.templateLabel',
defaultMessage: '规则模板', defaultMessage: '规则模板',
@ -174,7 +174,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
> >
<ProFormDateTimePicker <ProFormDateTimePicker
name="time" name="time"
width="m" width="md"
label={intl.formatMessage({ label={intl.formatMessage({
id: 'pages.searchTable.updateForm.schedulingPeriod.timeLabel', id: 'pages.searchTable.updateForm.schedulingPeriod.timeLabel',
defaultMessage: '开始时间', defaultMessage: '开始时间',
@ -197,7 +197,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
id: 'pages.searchTable.updateForm.object', id: 'pages.searchTable.updateForm.object',
defaultMessage: '监控对象', defaultMessage: '监控对象',
})} })}
width="m" width="md"
valueEnum={{ valueEnum={{
month: '月', month: '月',
week: '周', week: '周',

4
src/pages/ListTableList/index.tsx

@ -307,10 +307,10 @@ const TableList: React.FC = () => {
), ),
}, },
]} ]}
width="m" width="md"
name="name" name="name"
/> />
<ProFormTextArea width="m" name="desc" /> <ProFormTextArea width="md" name="desc" />
</ModalForm> </ModalForm>
<UpdateForm <UpdateForm
onSubmit={async (value) => { onSubmit={async (value) => {

2
src/pages/user/login/index.tsx

@ -68,7 +68,7 @@ const Login: React.FC<LoginProps> = (props) => {
}, },
}} }}
onFinish={(values) => { onFinish={(values) => {
handleSubmit(values); handleSubmit(values as LoginParamsType);
return Promise.resolve(); return Promise.resolve();
}} }}
> >

Loading…
Cancel
Save