diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue index 1c81a85da6..7c75d07aa1 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue @@ -765,6 +765,20 @@ onMounted(() => { {{ t('chart.table_header_show_vertical_border') }} + + + {{ t('chart.table_row_header_freeze') }} + + { 'showColTooltip', 'showRowTooltip', 'showHorizonBorder', - 'showVerticalBorder' + 'showVerticalBorder', + 'rowHeaderFreeze' ], 'table-total-selector': ['row', 'col'], 'basic-style-selector': [ @@ -178,7 +179,7 @@ export class TablePivot extends S2ChartView { }) // total config - const { basicStyle, tooltip, tableTotal } = parseJson(chart.customAttr) + const { basicStyle, tooltip, tableTotal, tableHeader } = parseJson(chart.customAttr) if (!tableTotal.row.subTotalsDimensionsNew || tableTotal.row.subTotalsDimensions == undefined) { tableTotal.row.subTotalsDimensions = r } @@ -389,7 +390,8 @@ export class TablePivot extends S2ChartView { }, dataCell: meta => { return new CustomDataCell(meta, meta.spreadsheet) - } + }, + frozenRowHeader: !(tableHeader.rowHeaderFreeze === false) } // options s2Options.style = this.configStyle(chart, s2DataConfig)