UNPKG

@dfsj/echarts

Version:

专业的水文曲线组件或构造函数以及通用的echart二次封装图表

25 lines (24 loc) 973 B
import { EChartsType } from 'echarts'; import { Ref } from 'vue'; import type { EChartsModule } from '../../types/chart-hook'; interface IOverride { I: Function; M: Function; S: Function; C: Object; } interface IHydrologyReturn { createOptions: (data: Record<string, unknown>) => Record<string, unknown> | null; setOptions: ((options: Record<string, unknown>, clear?: boolean) => void) | null; echarts: EChartsModule | null; getInstance: () => EChartsType | null; container: Ref<HTMLElement> | null; assemble: (value: Record<string, unknown>, options: Record<string, unknown>, chart?: EChartsType | null) => Record<string, unknown>; toSeries: Function; toMarks: Function; toIndices: Function; toggleTable?: (visible?: boolean) => void; toggleStatistic?: (visible?: boolean) => void; } export declare function useHydrology(chartRef?: HTMLElement | Ref, override?: Partial<IOverride>): IHydrologyReturn; export {};