VTable
VTable copied to clipboard
[Bug] 使用 react 自定义单元格组件时,自定义内容会覆盖 Aggregation 内容
Version
latest
Link to Minimal Reproduction
.
Steps to Reproduce
。
Current Behavior
Expected Behavior
不要遮挡Aggregation的内容
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
@fangsmile 这个问题有什么思路解决吗
// 普通表格特殊逻辑 if (table.isListTable()) { // 如果是聚合单元格 if ((table.internalProps.layoutMap as SimpleHeaderLayoutMap).isAggregation(col, row)) { const createTextCellGroup = Factory.getFunction('createTextCellGroup') as CreateTextCellGroup; cellGroup = createTextCellGroup( table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, undefined, true, cellTheme, range, isAsync ); return cellGroup; } }
我加了一层拦截,如果是聚合列,直接渲染成text