Open li1615882553 opened 4 hours ago
感觉是这里的问题,在拖拽结束后,没有区分明细表还是透视表,直接将cell高度减去了padding。 https://github.com/antvis/S2/blob/11bb92c1a3625d8e99bc74c9d3e9f6f768b828ec/packages/s2-core/src/interaction/row-column-resize.ts#L296-L299 然后在明细表示使用时,获取cell高度,使用的就是拖拽更新后的高度,导致每次都会减去paddingTop和paddingBottom的高度 https://github.com/antvis/S2/blob/11bb92c1a3625d8e99bc74c9d3e9f6f768b828ec/packages/s2-core/src/facet/frozen-facet.ts#L708-L712
🏷 Version
Sheet Type
🖋 Description
明细表当theme设置了rowCell的padding样式之后,每次拖拽行高,都会自动减去padding中top和bottom的高度,具体表现如下:
https://github.com/user-attachments/assets/0053c738-7e32-4f8b-99fe-d7f98ba63dca
⌨️ Code Snapshots
在链接中使用以下代码即可复现:https://s2-v1.antv.antgroup.com/examples/basic/table/#table