Преглед изворни кода

🐛 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>
San пре 5 година
родитељ
комит
c7f0dcbf6f

+ 6 - 6
src/pages/ListTableList/components/UpdateForm.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: '周',

+ 2 - 2
src/pages/ListTableList/index.tsx

@@ -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) => {

+ 1 - 1
src/pages/user/login/index.tsx

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