UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

17 lines (16 loc) 1.28 kB
/// <reference types="hoist-non-react-statics" /> import * as React from 'react'; import { IThreshold } from '../../../../../constants/metric-panel-style'; import { IStatusPanelContextValue } from '../../context'; interface IThresholdProps { value: Array<IThreshold<string>>; onChange: (value: Array<IThreshold<string>>) => void; } declare class StringThreshold extends React.Component<Omit<IThresholdProps & IStatusPanelContextValue, 'stringFields' | 'fieldOptions'>, any> { handleCreate(): void; handleChange(threshold: IThreshold<string>, props: string, newValue: any): void; handleDelete(threshold: IThreshold<string>): void; render(): React.JSX.Element; } declare const _default: React.FunctionComponent<Pick<Pick<IThresholdProps & IStatusPanelContextValue, "value" | "getPopupContainer" | "onChange" | "levelOptions">, "value" | "onChange">> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Pick<IThresholdProps & IStatusPanelContextValue, "value" | "getPopupContainer" | "onChange" | "levelOptions">, any> & typeof StringThreshold) | (React.FunctionComponent<Pick<IThresholdProps & IStatusPanelContextValue, "value" | "getPopupContainer" | "onChange" | "levelOptions">> & typeof StringThreshold), {}>; export default _default;