Merge pull request #9284 from dataease/pr@dev-v2@fix_pivot_table_series_cross_bg

fix(图表): 修复汇总表序号列斑马纹无效
This commit is contained in:
wisonic-s 2024-04-23 18:18:26 +08:00 committed by GitHub
commit b46935e119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { S2ChartView, S2DrawOptions } from '@/views/chart/components/js/panel/types/impl/s2'
import { S2Event, S2Options, TableSheet, TableColCell, ViewMeta } from '@antv/s2'
import { S2Event, S2Options, TableSheet, TableColCell, ViewMeta, TableDataCell } from '@antv/s2'
import { parseJson } from '@/views/chart/components/js/util'
import { formatterItem, valueFormatter } from '@/views/chart/components/js/formatter'
import { copyContent, getCurrentField } from '@/views/chart/components/js/panel/common/common_table'
@ -128,6 +128,9 @@ export class TableNormal extends S2ChartView<TableSheet> {
}
return new TableColCell(node, sheet, config)
}
s2Options.dataCell = viewMeta => {
return new TableDataCell(viewMeta, viewMeta?.spreadsheet)
}
}
// tooltip
this.configTooltip(s2Options)
@ -167,7 +170,7 @@ export class TableNormal extends S2ChartView<TableSheet> {
// hover
const { showColTooltip } = customAttr.tableHeader
if (showColTooltip) {
newChart.on(S2Event.COL_CELL_HOVER, event => this.showTooltip(newChart, event))
newChart.on(S2Event.COL_CELL_HOVER, event => this.showTooltip(newChart, event, meta))
}
const { showTooltip } = customAttr.tableCell
if (showTooltip) {

View File

@ -92,7 +92,7 @@ export abstract class AntVAbstractChartView extends AbstractChartView {
limit: 1
}
}
selectorDesc: EditorSelectorSpec = {
selectorSpec: EditorSelectorSpec = {
'misc-style-selector': {
title: `${t('chart.size')}`
}