import type React from 'react'; import type { ChartActionButtons } from './ChartActionButtons'; export default interface DashboardComponentConfig { /** * 仪表盘图表的类型 */ type: string; /** * 添加图表按钮渲染组件 */ addRender?: React.ElementType; /** * 图表渲染组件 */ render?: React.ElementType; /** * 区别于render组件的只读渲染组件。 * * dashboard-render界面不涉及到编辑和redux的配置,所以使用单独的只读组件 */ readOnlyRender?: React.ElementType; /** * 可操作性按钮组配置 */ actionButtons?: ChartActionButtons; }