Ver Fonte

perf: 添加默认最小列宽

xingyu há 2 anos atrás
pai
commit
6b35f5c664
1 ficheiros alterados com 2 adições e 1 exclusões
  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) {