/** * 简化 echarts 在 vue 中的使用: * * 1. 自动实例化 * 2. 自行销毁 * 3. 自动调整图表尺寸 * 4. 修改默认主题 * 5. 响应式渲染 */ import { MaybeRef, type Ref } from 'vue'; import { echarts, type ECOption } from '../utils'; interface UseEchartsOptions { option?: ECOption; } type OptionArgs = [ECOption, notMerge?: boolean, lazyUpdate?: boolean] | [ ECOption, opts?: { notMerge?: boolean; replaceMerge?: string | string[]; lazyUpdate?: boolean; } ]; export declare function useEcharts(elRef: Ref, options?: MaybeRef): { setOption: (...args: OptionArgs) => void; chart: import("vue").ComputedRef; }; export {};