@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
31 lines (30 loc) • 1.35 kB
TypeScript
/// <reference types="hoist-non-react-statics" />
import React from 'react';
import { LegendPositionType, LegendValueFormat } from '../../../constants/chart-style';
interface ILegendNumberPanelProps {
/** 位置*/
position: LegendPositionType;
/**数值模式 */
legendValueFormat?: LegendValueFormat[];
/**百分数小数点位数 */
percentDecimals: number;
/**设置位置 */
setPosition: (position: LegendPositionType) => void;
/**设置数值模式 */
onChange: (legendValueFormat: LegendValueFormat[]) => void;
/**设置百分数的小数点位数 */
setPercentDecimals: (value: number) => void;
formItemLayout?: IKeyValues;
/** 设置图例宽度占比 */
width?: number;
setWidth: (width?: number) => void;
/** 是否允许排序 */
showSortPanel?: boolean;
sort?: boolean;
setSort?: (allowSort?: boolean) => void;
}
export declare class LegendNumberPanel extends React.Component<ILegendNumberPanelProps, any> {
render(): React.JSX.Element;
}
declare const _default: React.ComponentClass<ILegendNumberPanelProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<ILegendNumberPanelProps, any> & typeof LegendNumberPanel) | (React.FunctionComponent<ILegendNumberPanelProps> & typeof LegendNumberPanel), {}>;
export default _default;