From 7b2f5a18bc7772d9b44cdf7f924c87f4ada6735f Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Sat, 22 Nov 2025 23:10:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:StockChart=20=E7=B1=BB=E5=9E=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=BB=9F=E4=B8=80=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/StockChart/config/index.ts | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/components/StockChart/config/index.ts diff --git a/src/components/StockChart/config/index.ts b/src/components/StockChart/config/index.ts new file mode 100644 index 00000000..2b2b9e1c --- /dev/null +++ b/src/components/StockChart/config/index.ts @@ -0,0 +1,30 @@ +/** + * StockChart 配置统一导出 + * + * 使用方式: + * import { lightTheme, DEFAULT_CHART_CONFIG } from '@components/StockChart/config'; + */ + +// 主题配置 +export { + CHART_COLORS, + lightTheme, + darkTheme, + getTheme, +} from './klineTheme'; + +// 图表配置 +export { + CHART_HEIGHTS, + INDICATORS, + DEFAULT_MAIN_INDICATOR, + DEFAULT_SUB_INDICATORS, + CHART_TYPE_CONFIG, + EVENT_MARKER_CONFIG, + DATA_LOADER_CONFIG, + ZOOM_CONFIG, + DEFAULT_CHART_CONFIG, + CHART_INIT_OPTIONS, + TIMELINE_CONFIG, + DAILY_KLINE_CONFIG, +} from './chartConfig';