feat: 添加设备振动功能,支持多种振动模式和反馈

This commit is contained in:
2025-12-18 15:48:30 +07:00
parent 5cf5052a51
commit 6ceb80e6f2
3 changed files with 126 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import type { Awaitable } from "@vueuse/core";
import type { ChartOptions, DeepPartial, IChartApi, ISeriesApi, OhlcData, SeriesOptionsMap, SeriesType } from "lightweight-charts";
import type { ChartOptions, DeepPartial, IChartApi, ISeriesApi, OhlcData, SeriesType } from "lightweight-charts";
import { AreaSeries, BarSeries, BaselineSeries, CandlestickSeries, ColorType, createChart, HistogramSeries, LineSeries } from "lightweight-charts";
import { mergeWith } from "lodash-es";
@@ -27,8 +27,8 @@ const initializeOptions: Required<TradingViewOptions> = {
width: 400,
height: 300,
layout: {
textColor: "white",
background: { type: ColorType.Solid, color: "#000000" },
textColor: "black",
background: { type: ColorType.Solid, color: "#fff" },
},
},
autosize: true,