From 24f9fc46f2da7e593b6c95a0ed1f0be927d51501 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Thu, 18 Jan 2024 12:25:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE-=E6=A0=87=E9=A2=98):=20?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E5=AD=97=E4=BD=93=E5=A4=A7=E5=B0=8F=E9=BB=98?= =?UTF-8?q?=E8=AE=A416#6729?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/models/chart/chart-style.d.ts | 2 +- .../src/views/chart/components/editor/util/chart.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/models/chart/chart-style.d.ts b/core/core-frontend/src/models/chart/chart-style.d.ts index f48e097cdb..24c288e67b 100644 --- a/core/core-frontend/src/models/chart/chart-style.d.ts +++ b/core/core-frontend/src/models/chart/chart-style.d.ts @@ -43,7 +43,7 @@ declare interface ChartTextStyle { /** * 字体大小 */ - fontSize: string + fontSize: number /** * 颜色 */ diff --git a/core/core-frontend/src/views/chart/components/editor/util/chart.ts b/core/core-frontend/src/views/chart/components/editor/util/chart.ts index 75b406991e..7deaff1404 100644 --- a/core/core-frontend/src/views/chart/components/editor/util/chart.ts +++ b/core/core-frontend/src/views/chart/components/editor/util/chart.ts @@ -333,7 +333,7 @@ export const DEFAULT_TABLE_CELL: ChartTableCellAttr = { } export const DEFAULT_TITLE_STYLE: ChartTextStyle = { show: true, - fontSize: '18', + fontSize: 16, color: '#ffffff', hPosition: 'left', vPosition: 'top', @@ -349,7 +349,7 @@ export const DEFAULT_TITLE_STYLE: ChartTextStyle = { export const DEFAULT_TITLE_STYLE_BASE: ChartTextStyle = { show: true, - fontSize: '18', + fontSize: 16, hPosition: 'left', vPosition: 'top', isItalic: false,