@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
20 lines (19 loc) • 1.41 kB
TypeScript
/// <reference types="hoist-non-react-statics" />
import * as React from 'react';
import { IThreshold } from '../../../../../../constants/metric-panel-style';
import { IStatusPanelContextValue } from '../../../context';
interface IItemProps {
startValue: number;
value: IThreshold<number>;
onChange: (value: IThreshold<number>) => void;
onRemove: (value: IThreshold<number>) => void;
}
declare class NumberThreshold extends React.Component<Omit<IItemProps & IStatusPanelContextValue, 'stringFields' | 'fieldOptions'>, any> {
get startText(): string;
handleInputBlur(): void;
handleChange(props: string, newValue: any): void;
handleRemove(): void;
render(): React.JSX.Element;
}
declare const _default: React.FunctionComponent<Pick<Pick<IItemProps & IStatusPanelContextValue, "value" | "getPopupContainer" | "onChange" | "onRemove" | "levelOptions" | "startValue">, "value" | "onChange" | "onRemove" | "startValue">> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Pick<IItemProps & IStatusPanelContextValue, "value" | "getPopupContainer" | "onChange" | "onRemove" | "levelOptions" | "startValue">, any> & typeof NumberThreshold) | (React.FunctionComponent<Pick<IItemProps & IStatusPanelContextValue, "value" | "getPopupContainer" | "onChange" | "onRemove" | "levelOptions" | "startValue">> & typeof NumberThreshold), {}>;
export default _default;