Browse Source

[Style 0000] 历史数据组件样式优化

houzekong 1 week ago
parent
commit
9a3a68a2d5

+ 4 - 4
src/views/vent/comment/history/history.data.ts

@@ -62,7 +62,7 @@ export const getDefaultSchemas: (dictOptions: any[], deviceOptions: any[]) => Fo
         // },
       },
       colProps: {
-        span: 4,
+        span: 6,
       },
     },
     {
@@ -81,7 +81,7 @@ export const getDefaultSchemas: (dictOptions: any[], deviceOptions: any[]) => Fo
         // },
       },
       colProps: {
-        span: 4,
+        span: 3,
       },
     },
     // {
@@ -140,7 +140,7 @@ export const getDefaultSchemas: (dictOptions: any[], deviceOptions: any[]) => Fo
         ],
       },
       colProps: {
-        span: 4,
+        span: 3,
       },
     },
   ];
@@ -166,7 +166,7 @@ export const defaultTableProps: BasicTableProps = {
 /** 默认的查询表单props,参考 BasicForm 组件 */
 export const defaultFormProps: FormProps = {
   labelAlign: 'left',
-  labelCol: { span: 8 },
+  labelWidth: 80,
   showAdvancedButton: false,
   showSubmitButton: false,
   showResetButton: false,

+ 3 - 2
src/views/vent/monitorManager/comment/HistoryTable.vue

@@ -345,6 +345,7 @@
       tableLayout: 'auto',
       formConfig: {
         labelAlign: 'left',
+        labelWidth: 80,
         showAdvancedButton: false,
         showSubmitButton: false,
         showResetButton: false,
@@ -412,7 +413,7 @@
                     },
                   },
                   colProps: {
-                    span: 4,
+                    span: 5,
                   },
                 },
                 {
@@ -461,7 +462,7 @@
                     ],
                   },
                   colProps: {
-                    span: 4,
+                    span: 3,
                   },
                 },
               ],