fix(fe): enable column flex auto-expansion in KsDataGrid to fill 100% grid width
This commit is contained in:
@@ -12,7 +12,8 @@ const columnDefs = computed<ColDef[]>(() => props.columns.map(column => ({
|
||||
field: column.field,
|
||||
headerName: column.header,
|
||||
width: column.width,
|
||||
minWidth: column.minWidth ?? 120,
|
||||
minWidth: column.minWidth ?? 100,
|
||||
flex: column.width ? undefined : 1,
|
||||
sortable: column.sortable ?? true,
|
||||
filter: column.filterable ?? true,
|
||||
valueFormatter: column.formatter ? params => column.formatter?.(params.value, params.data) ?? '' : undefined
|
||||
|
||||
Reference in New Issue
Block a user