useEcharts.d.ts 377 B

1234567891011
  1. import { Ref } from 'vue';
  2. import { EChartsOption } from 'echarts';
  3. import * as echarts from "echarts";
  4. export declare function useEcharts(elRef: Ref<HTMLElement>, theme?: "default" | "dark" | "light"): {
  5. setOptions: (options: EChartsOption, clear?: boolean) => Promise<unknown>;
  6. resize: () => void;
  7. echarts: any;
  8. getInstance: () => echarts.ECharts | null;
  9. };