VTable icon indicating copy to clipboard operation
VTable copied to clipboard

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

Open nikoohp opened this issue 1 year ago • 3 comments

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 avatar Aug 05 '24 07:08 nikoohp

image 并且高度好像不对?

nikoohp avatar Aug 05 '24 07:08 nikoohp

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

nikoohp avatar Aug 23 '24 10:08 nikoohp

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

kapeter avatar Sep 26 '24 02:09 kapeter