import React, { CSSProperties } from 'react'; import * as echarts from 'echarts/core'; import ReactEcharts from 'echarts-for-react'; import { // 系列类型的定义后缀都为 SeriesOption BarSeriesOption } from 'echarts/charts'; import { GridComponentOption, SingleAxisComponentOption, TooltipComponentOption } from 'echarts/components'; type ECOption = echarts.ComposeOption; export interface ProgressProps { name: string; data: { name: string; value: number | string; }[]; style?: CSSProperties; config?: ECOption; inModal?: boolean; /** 图表交互事件 */ onEvents?: Record void>; /** 图表渲染器 */ renderer?: 'canvas' | 'svg'; /** 显示模式: percentage百分比; normal数字 */ mode: 'percentage' | 'normal'; } /** * 进度条图,对应Figma其他图6 */ declare const _default: React.ForwardRefExoticComponent>; export default _default;