UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

39 lines (38 loc) 1.58 kB
/// <reference types="hoist-non-react-statics" /> import React from 'react'; import { LegendPositionType, LegendValueDisplay } from '../../../constants/chart-style'; interface ILegendPanelProps { /**位置 */ position: LegendPositionType; /** 表现模式*/ legendDisplayMode?: LegendValueDisplay[]; /**设置位置 */ setPosition: (position: LegendPositionType) => void; /**设置模式 */ setLegendDisplayMode: (legendDisplayMode: LegendValueDisplay[]) => void; /** 隐藏 chart legend */ hideChartLegend?: boolean; setHideChartLegend?: (hideChartLegend: boolean) => void; /** 隐藏 baseLine legend */ hideBaseLineLegend?: boolean; setHideBaseLineLegend?: (hideBaseLineLegend: boolean) => void; /** 设置默认排序 */ sort?: { field: string; order: 'ascend' | 'descend'; }; setSort: (sort?: { field: string; order: 'ascend' | 'descend'; }) => void; /** 设置图例宽度占比 */ width?: number; setWidth: (width?: number) => void; } export declare class LegendPanel extends React.Component<ILegendPanelProps, any> { handleSortFieldChange(field: string): void; handleSortOrderChange(order: 'ascend' | 'descend'): void; render(): React.JSX.Element; } declare const _default: React.ComponentClass<ILegendPanelProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<ILegendPanelProps, any> & typeof LegendPanel) | (React.FunctionComponent<ILegendPanelProps> & typeof LegendPanel), {}>; export default _default;