import React, { CSSProperties } from 'react'; import * as echarts from 'echarts/core'; import ReactEcharts from 'echarts-for-react'; import { // 系列类型的定义后缀都为 SeriesOption CustomSeriesOption, LineSeriesOption } from 'echarts/charts'; import { GridComponentOption, TooltipComponentOption } from 'echarts/components'; import { YAXisOption } from 'echarts/types/dist/shared'; type ECOption = echarts.ComposeOption; type CuboidBarParams = { barType: 'cuboidBar'; barData: BarSeriesData; }; type CylinderBarParams = { barType: 'cylinderBar'; barData: BarSeriesData[]; }; type CylinderShadowBarParams = { barType: 'cylinderShadowBar'; barData: BarSeriesData; }; type StackBarParams = { barType: 'stackBar'; barData: BarSeriesData[]; }; type SliceBarParams = { barType: 'sliceBar'; barData: BarSeriesData; }; type Params = CuboidBarParams | CylinderBarParams | CylinderShadowBarParams | StackBarParams | SliceBarParams; type GetValueType = Extract['barData']; export interface BarLineProps { xAxisData: any[]; yAxis: YAXisOption[]; lineData: { name: string; data: (number | string | null)[]; }; lineUnit?: string; barUnit?: string; style?: CSSProperties; barType?: TType; max?: number; barData: GetValueType; /** 控制是否自动轮播 */ autoLoop?: boolean; /** 自动轮播的时长,默认为2s */ duration?: number; config?: ECOption; inModal?: boolean; /** 是否显示areaStyle */ shadow?: boolean; /** 折线是否平滑 */ smooth?: boolean; /** 控制是否显示y轴的线,默认显示 */ showYAxisLine?: boolean; /** 图表交互事件 */ onEvents?: Record void>; /** 图表渲染器 */ renderer?: 'canvas' | 'svg'; } declare const _default: React.ForwardRefExoticComponent & React.RefAttributes>; export default _default;