@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
47 lines (46 loc) • 1.44 kB
TypeScript
/// <reference types="react" />
import { ThresholdColorScope, ThresholdType } from '../../../constants/table-style';
import { IColorSplitter } from '../../../constants';
import { ISorter } from './Sorter/type';
export declare const defaultPagination: {
onChange: (...args: any[]) => void;
onShowSizeChange: (...args: any[]) => void;
};
export interface IColumnProps<T> {
title: React.ReactNode | string;
key: string;
dataIndex: string;
render?: (text: any, record: T, index: number, colIndex: number) => React.ReactNode;
align?: 'left' | 'right' | 'center';
width: number | string;
className?: string;
sorter?: boolean | ISorter<T>;
resizable?: boolean;
children?: Array<IColumnProps<T>>;
thresholdType: ThresholdType;
thresholdColorScope: ThresholdColorScope;
isNumeric?: boolean;
splitter?: IColorSplitter;
showColor: boolean;
showFilter?: boolean;
filters?: string[] | number[];
fixed?: boolean;
}
export declare enum Align {
Left = "left",
Right = "right",
Center = "center"
}
export declare const DEFAULT_RESIZE_GAP = 120;
export declare const SCROLL_BAR_WIDTH = 6;
export declare const FIRST_CELL_PADDING_LEFT_GAP = 20;
export declare const DEFAULT_SCROLL_ROW_INDEX = 9;
export interface IFilterValue {
key: string;
value: any[];
}
export declare enum ColumnPosition {
Left = "left",
Right = "right",
None = "none"
}