feat: 更新交易视图配置,添加权重图选项并优化订单面板的标签切换
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { Awaitable } from "@vueuse/core";
|
||||
import type { ChartOptions, DeepPartial, IChartApi, ISeriesApi, LayoutOptions, OhlcData, SeriesDataItemTypeMap, SeriesType } from "lightweight-charts";
|
||||
import type { ChartOptions, DeepPartial, IChartApi, ISeriesApi, LayoutOptions, SeriesDataItemTypeMap, SeriesType } from "lightweight-charts";
|
||||
import type { ThemeMode } from "./useTheme";
|
||||
import { AreaSeries, BarSeries, BaselineSeries, CandlestickSeries, ColorType, createChart, HistogramSeries, LineSeries } from "lightweight-charts";
|
||||
import { cloneDeep, mergeWith } from "lodash-es";
|
||||
@@ -149,5 +149,5 @@ export function useTradingView(target: MaybeRefOrGetter<HTMLElement | null>, opt
|
||||
chart.value.applyOptions(newOptions);
|
||||
}, { deep: true });
|
||||
|
||||
return { chart, fitContent, resize };
|
||||
return { chart, series, fitContent, resize };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user