UNPKG

amis

Version:

一种MIS页面生成工具

35 lines (34 loc) 1.06 kB
/// <reference types="echarts" /> import React from 'react'; import { OptionsControlProps, FormOptionsControl } from './Options'; /** * 图表 Radio 单选框。 * 文档:https://baidu.gitee.io/amis/docs/components/form/chart-radios */ export interface ChartRadiosControlSchema extends FormOptionsControl { type: 'chart-radios'; config: any; showTooltipOnHighlight?: boolean; chartValueField?: string; } export interface ChartRadiosProps extends OptionsControlProps { placeholder?: any; labelClassName?: string; labelField?: string; config: any; } export default class ChartRadiosControl extends React.Component<ChartRadiosProps, any> { highlightIndex: number; prevIndex: number; chart?: echarts.ECharts; chartRef(chart?: echarts.ECharts): void; highlight(index?: number): void; compoonentDidMount(): void; componentDidUpdate(): void; render(): JSX.Element; } export declare class RadiosControlRenderer extends ChartRadiosControl { static defaultProps: { multiple: boolean; }; }