From ee25db13b0d38f8b0fd823f5267c732c103b9ffd Mon Sep 17 00:00:00 2001 From: wisonic Date: Thu, 11 Jul 2024 15:27:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E6=B1=87?= =?UTF-8?q?=E6=80=BB=E8=A1=A8=E6=B1=87=E6=80=BB=E8=A1=8C=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=8D=95=E5=85=83=E6=A0=BC=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/table/table-normal.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts index f1aafb80ab..4180aae321 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts @@ -4,7 +4,7 @@ import { copyContent, SortTooltip } from '@/views/chart/components/js/panel/comm import { S2ChartView, S2DrawOptions } from '@/views/chart/components/js/panel/types/impl/s2' import { parseJson } from '@/views/chart/components/js/util' import { S2Event, S2Options, TableColCell, TableDataCell, TableSheet, ViewMeta } from '@antv/s2' -import { isNumber } from 'lodash-es' +import { cloneDeep, isNumber } from 'lodash-es' import { TABLE_EDITOR_PROPERTY, TABLE_EDITOR_PROPERTY_INNER } from './common' const { t } = useI18n() @@ -252,7 +252,9 @@ export class TableNormal extends S2ChartView { class SummaryCell extends TableDataCell { getTextStyle() { - return this.theme.colCell.bolderText + const textStyle = cloneDeep(this.theme.colCell.bolderText) + textStyle.textAlign = this.theme.dataCell.text.textAlign + return textStyle } getBackgroundColor() { const { backgroundColor, backgroundColorOpacity } = this.theme.colCell.cell