We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
明细表当theme设置了rowCell的padding样式之后,每次拖拽行高,都会自动减去padding中top和bottom的高度,具体表现如下:
在链接中使用以下代码即可复现:https://s2-v1.antv.antgroup.com/examples/basic/table/#table
import { TableSheet } from '@antv/s2'; fetch('https://assets.antv.antgroup.com/s2/basic-table-mode.json') .then((res) => res.json()) .then((data) => { const container = document.getElementById('container'); const s2DataConfig = { fields: { columns: ['province', 'city', 'type', 'price', 'cost'], }, meta: [ { field: 'province', name: '省份', }, { field: 'city', name: '城市', }, { field: 'type', name: '商品类别', }, { field: 'price', name: '价格', }, { field: 'cost', name: '成本', }, ], data, }; const s2Options = { width: 600, height: 480, showSeriesNumber: true, }; const s2 = new TableSheet(container, s2DataConfig, s2Options); // 设置了rowCell.cell.padding.top或rowCell.cell.padding.bottom即可复现 s2.setThemeCfg({ theme: { rowCell: { cell: { padding: { top: 8, right: 8, bottom: 8, left: 8 } } } } }) s2.render(); });
The text was updated successfully, but these errors were encountered:
感觉是这里的问题,在拖拽结束后,没有区分明细表还是透视表,直接将cell高度减去了padding。
S2/packages/s2-core/src/interaction/row-column-resize.ts
Lines 296 to 299 in 11bb92c
S2/packages/s2-core/src/facet/frozen-facet.ts
Lines 708 to 712 in 11bb92c
Sorry, something went wrong.
可以尝试来个 PR.
No branches or pull requests
🏷 Version
Sheet Type
🖋 Description
明细表当theme设置了rowCell的padding样式之后,每次拖拽行高,都会自动减去padding中top和bottom的高度,具体表现如下:
Sep-20-2024.15-16-57.mp4
⌨️ Code Snapshots
在链接中使用以下代码即可复现:https://s2-v1.antv.antgroup.com/examples/basic/table/#table
The text was updated successfully, but these errors were encountered: