全局自适应样式调整,换行自适应行高

This commit is contained in:
zwgczx committed 2026-03-19 17:00:50 +08:00
1 parent 75a6209010
commit 241a6c4003
11 files changed
+329 -77

No files matched your search

+5 -1
View File
@@ -62,7 +62,11 @@ export const gridOptions: GridOptions = {
sortable: false,
filter: false,
wrapHeaderText: true,
autoHeaderHeight: true
autoHeaderHeight: true,
// 默认把数值型单元格右对齐,减少每个列重复配置。
cellClassRules: {
'ag-right-aligned-cell': params => typeof params.value === 'number' && Number.isFinite(params.value)
}
},
defaultColGroupDef: {
wrapHeaderText: true,