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,