forked from github/dataease
Merge pull request #12678 from dataease/pr@dev-v2@fix_table_freeze_switch
fix(图表): 表格行列冻结开关无效
This commit is contained in:
commit
272c8df9c1
@ -157,9 +157,11 @@ export class TableInfo extends S2ChartView<TableSheet> {
|
|||||||
tooltip: {
|
tooltip: {
|
||||||
getContainer: () => containerDom,
|
getContainer: () => containerDom,
|
||||||
renderTooltip: sheet => new SortTooltip(sheet)
|
renderTooltip: sheet => new SortTooltip(sheet)
|
||||||
},
|
}
|
||||||
frozenColCount: customAttr.tableCell.tableColumnFreezeHead ?? 0,
|
}
|
||||||
frozenRowCount: customAttr.tableCell.tableRowFreezeHead ?? 0
|
if (customAttr.tableCell.tableFreeze) {
|
||||||
|
s2Options.frozenColCount = customAttr.tableCell.tableColumnFreezeHead ?? 0
|
||||||
|
s2Options.frozenRowCount = customAttr.tableCell.tableRowFreezeHead ?? 0
|
||||||
}
|
}
|
||||||
// 开启序号之后,第一列就是序号列,修改 label 即可
|
// 开启序号之后,第一列就是序号列,修改 label 即可
|
||||||
if (s2Options.showSeriesNumber) {
|
if (s2Options.showSeriesNumber) {
|
||||||
|
@ -138,9 +138,11 @@ export class TableNormal extends S2ChartView<TableSheet> {
|
|||||||
tooltip: {
|
tooltip: {
|
||||||
getContainer: () => containerDom,
|
getContainer: () => containerDom,
|
||||||
renderTooltip: sheet => new SortTooltip(sheet)
|
renderTooltip: sheet => new SortTooltip(sheet)
|
||||||
},
|
}
|
||||||
frozenColCount: customAttr.tableCell.tableColumnFreezeHead ?? 0,
|
}
|
||||||
frozenRowCount: customAttr.tableCell.tableRowFreezeHead ?? 0
|
if (customAttr.tableCell.tableFreeze) {
|
||||||
|
s2Options.frozenColCount = customAttr.tableCell.tableColumnFreezeHead ?? 0
|
||||||
|
s2Options.frozenRowCount = customAttr.tableCell.tableRowFreezeHead ?? 0
|
||||||
}
|
}
|
||||||
// 开启序号之后,第一列就是序号列,修改 label 即可
|
// 开启序号之后,第一列就是序号列,修改 label 即可
|
||||||
if (s2Options.showSeriesNumber) {
|
if (s2Options.showSeriesNumber) {
|
||||||
|
Loading…
Reference in New Issue
Block a user