import React, { CSSProperties } from 'react'; import * as echarts from 'echarts/core'; import ReactEcharts from 'echarts-for-react'; import { // 系列类型的定义后缀都为 SeriesOption PictorialBarSeriesOption } from 'echarts/charts'; import { GridComponentOption, SingleAxisComponentOption, TooltipComponentOption } from 'echarts/components'; type ECOption = echarts.ComposeOption; export interface MultiHorizontalBarProps { unit?: string | [string, string]; max: number | [number, number]; leftData: { name: string; data: { name: string; value: number | string; }[]; }; rightData: { name: string; data: { name: string; value: number | string; }[]; }; style?: CSSProperties; config?: ECOption; inModal?: boolean; /** 图表交互事件 */ onEvents?: Record void>; /** 图表渲染器 */ renderer?: 'canvas' | 'svg'; } /** * 双列水平条形图,对应figma柱状图6 */ declare const _default: React.ForwardRefExoticComponent>; export default _default;