Commit 6b35f5c664e6abc449b157f610b64abaf2ef0389
1 parent
6eb908dc
perf: 添加默认最小列宽
Showing
1 changed file
with
2 additions
and
1 deletions
yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts
| @@ -208,7 +208,8 @@ const filterTableSchema = (crudSchema: VxeCrudSchema): VxeGridPropTypes.Columns | @@ -208,7 +208,8 @@ const filterTableSchema = (crudSchema: VxeCrudSchema): VxeGridPropTypes.Columns | ||
| 208 | const tableSchemaItem = { | 208 | const tableSchemaItem = { |
| 209 | ...schemaItem.table, | 209 | ...schemaItem.table, |
| 210 | field: schemaItem.field, | 210 | field: schemaItem.field, |
| 211 | - title: schemaItem.table?.title || schemaItem.title | 211 | + title: schemaItem.table?.title || schemaItem.title, |
| 212 | + minWidth: '80px' | ||
| 212 | } | 213 | } |
| 213 | tableSchemaItem.showOverflow = 'tooltip' | 214 | tableSchemaItem.showOverflow = 'tooltip' |
| 214 | if (schemaItem?.formatter) { | 215 | if (schemaItem?.formatter) { |