VisActor / VTable

VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.
https://visactor.io/vtable
MIT License
1.78k stars 163 forks source link

[Bug] 使用 react 自定义单元格组件时,自定义内容会覆盖 Aggregation 内容 #2177

Open nikoohp opened 3 months ago

nikoohp commented 3 months ago

Version

latest

Link to Minimal Reproduction

.

Steps to Reproduce

Current Behavior

image

Expected Behavior

不要遮挡Aggregation的内容

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

nikoohp commented 3 months ago
image

并且高度好像不对?

nikoohp commented 2 months ago

@fangsmile 这个问题有什么思路解决吗

kapeter commented 1 month ago

// 普通表格特殊逻辑 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