From 7f3cf0fa75d8eccf49fefdeb3cb622a999e2d93e Mon Sep 17 00:00:00 2001 From: jiwangyihao Date: Tue, 23 Jul 2024 19:29:13 +0800 Subject: [PATCH] refactor(mod-chart): `BaseSimpleChart` --- mods/mod-chart/src/widgets/baseSimpleChart.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/mod-chart/src/widgets/baseSimpleChart.ts b/mods/mod-chart/src/widgets/baseSimpleChart.ts index 308f2895e..34ec08270 100644 --- a/mods/mod-chart/src/widgets/baseSimpleChart.ts +++ b/mods/mod-chart/src/widgets/baseSimpleChart.ts @@ -1,5 +1,6 @@ import { DateTime } from 'luxon' import type { Canvas } from 'canvaskit-wasm' +import type { ConvertToProp } from '@newcar/core' import type { BaseChartData, BaseChartDataSet, BaseChartOptions, BaseChartStyle } from './baseChart' import { BaseChart } from './baseChart' import type { ChartDataUnit } from './chartDataUnit' @@ -54,7 +55,7 @@ export class BaseSimpleChart extends BaseChart { * @public * @type BaseSimpleChartStyle */ - declare style: BaseSimpleChartStyle + declare style: ConvertToProp /** * Layout object for the chart.