瀏覽代碼

perf: 添加默认最小列宽

xingyu 2 年之前
父節點
當前提交
6b35f5c664
共有 1 個文件被更改,包括 2 次插入1 次删除
  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) {