Browse Source

perf: 添加默认最小列宽

xingyu 2 years ago
parent
commit
6b35f5c664
1 changed files with 2 additions and 1 deletions
  1. 2 1
      yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts

+ 2 - 1
yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts

@@ -208,7 +208,8 @@ const filterTableSchema = (crudSchema: VxeCrudSchema): VxeGridPropTypes.Columns
       const tableSchemaItem = {
         ...schemaItem.table,
         field: schemaItem.field,
-        title: schemaItem.table?.title || schemaItem.title
+        title: schemaItem.table?.title || schemaItem.title,
+        minWidth: '80px'
       }
       tableSchemaItem.showOverflow = 'tooltip'
       if (schemaItem?.formatter) {