@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
35 lines (34 loc) • 1.12 kB
TypeScript
/// <reference types="hoist-non-react-statics" />
import React from 'react';
import { IOptions } from '../../Common/Selector';
export interface ICurrentMetricsProps {
/**
* 是否为多选
*/
isMultipleMode?: boolean;
/**
* 当前指标的值
*/
metrics: string[];
/**
* 当前可选的metric
*/
metricOptions: IOptions;
/**
* onChange
*/
label: string;
allowClear?: boolean;
explain?: string;
onChange: (value: string[]) => void;
getPopupContainer?: () => HTMLElement;
placeholder?: string;
suffix?: string | React.ReactNode;
formItemCol?: IKeyValues;
}
export declare class MetricItem extends React.Component<ICurrentMetricsProps, any> {
handleOnChange(value: string | string[]): void;
render(): React.JSX.Element;
}
declare const _default: React.ComponentClass<ICurrentMetricsProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<ICurrentMetricsProps, any> & typeof MetricItem) | (React.FunctionComponent<ICurrentMetricsProps> & typeof MetricItem), {}>;
export default _default;