UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

29 lines (28 loc) 936 B
import * as React from 'react'; import { IChartField } from '@qn-pandora/app-sdk'; import { IRule, ILevel } from '../../../../constants/metric-panel-style'; import { IKeyValues } from '../../../../models/base'; interface IConfigerProps { levels?: ILevel[]; fields?: IChartField[]; value?: IRule[]; onChange?: (value: IRule[]) => void; getPopupContainer?: () => HTMLElement; } export default class RuleConfiger extends React.Component<IConfigerProps, any> { get statusPanelContext(): { levelOptions: IKeyValues<string>; fieldOptions: { text: string; value: string; disabled: boolean; }[]; stringFields: string[]; getPopupContainer: (() => HTMLElement) | undefined; }; handleCreate(): void; handleChange(oldRule: IRule, newRule: IRule): void; handleDelete(rule: IRule): void; render(): React.JSX.Element; } export {};