From 957eee431b937f2e400d14ff4b1d2035fb845821 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Sun, 28 Jan 2024 19:05:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE-=E8=A1=A8=E6=A0=BC):=20?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E8=A1=A8/=E6=B1=87=E6=80=BB=E8=A1=A8?= =?UTF-8?q?=E5=BA=8F=E5=8F=B7=E5=88=97=E5=8E=BB=E9=99=A4=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/chart/table/table-info.js | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/core/frontend/src/views/chart/chart/table/table-info.js b/core/frontend/src/views/chart/chart/table/table-info.js index 6441d86a04..289f73485f 100644 --- a/core/frontend/src/views/chart/chart/table/table-info.js +++ b/core/frontend/src/views/chart/chart/table/table-info.js @@ -1,6 +1,16 @@ -import { TableSheet, S2Event, PivotSheet, DataCell, EXTRA_FIELD, TOTAL_VALUE, BaseTooltip, getAutoAdjustPosition, +import { + TableSheet, + S2Event, + PivotSheet, + DataCell, + EXTRA_FIELD, + TOTAL_VALUE, + BaseTooltip, + getAutoAdjustPosition, getTooltipDefaultOptions, - setTooltipContainerStyle } from '@antv/s2' + setTooltipContainerStyle, + SERIES_NUMBER_FIELD +} from '@antv/s2' import { getCustomTheme, getSize } from '@/views/chart/chart/common/common_table' import { DEFAULT_COLOR_CASE, DEFAULT_TOTAL } from '@/views/chart/chart/chart' import { formatterItem, valueFormatter } from '@/views/chart/chart/formatter' @@ -165,6 +175,9 @@ export function baseTableInfo(s2, container, chart, action, tableData, pageInfo, iconNames: ['GroupAsc', 'SortUp', 'SortDown'], belongsCell: 'colCell', displayCondition: (meta, iconName) => { + if (meta.field === SERIES_NUMBER_FIELD) { + return false + } const sortMethodMap = meta.spreadsheet.store.get('sortMethodMap') const sortType = sortMethodMap?.[meta.field] if (sortType) { @@ -391,6 +404,9 @@ export function baseTableNormal(s2, container, chart, action, tableData, vueCom) iconNames: ['GroupAsc', 'SortUp', 'SortDown'], belongsCell: 'colCell', displayCondition: (meta, iconName) => { + if (meta.field === SERIES_NUMBER_FIELD) { + return false + } const sortMethodMap = meta.spreadsheet.store.get('sortMethodMap') const sortType = sortMethodMap?.[meta.field] if (sortType) {