linkmore-design
Version:
🌈 🚀lm组件库。🚀
64 lines (63 loc) • 1.69 kB
TypeScript
/// <reference types="react" />
import type { TableProps, TooltipProps } from '../index';
export interface LocalizationProps {
filterConfig: any;
tableConfig: any;
cardConfig: any;
boardConfig: any;
otherConfig: any;
}
export declare enum size {
'small' = 0,
'default' = 1,
'middle' = 2
}
export interface ICustomTableOptionProps {
className?: string;
style?: React.CSSProperties;
size?: keyof typeof size | (string & {});
tooltip?: TooltipProps;
filter?: Record<string, any>[];
columns?: TableProps<any>['columns'];
card?: TableProps<any>['columns'];
onSave?: (data: any) => void;
recommendNumObj?: Record<string, number>;
/** 重置方法 */
resetFun?: () => void;
onReset?: (obj: {
type: 'table' | 'filter' | 'card' | (string & {});
}) => void;
/** 重置默认props */
resetConfirmProps?: Record<string, any>;
locale?: any;
/** 卡片模式:
* 单列: single
* 双列: double
*/
cardMode?: 'cardMode' | 'double' | (string & {});
enableCardMode?: boolean;
enablePreviewSize?: boolean;
previewSize?: number;
customDrawer?: React.Component | React.FunctionComponent;
}
export interface InstanceProps {
state: any;
dispatch: any;
[x: string]: any;
}
export interface ComponentProps {
instance: Partial<InstanceProps>;
item?: any;
options?: any;
}
export interface reducerActionProps extends Record<string, any> {
init: any;
changeVisible: any;
changeIsChange: any;
changeFilter: any;
changeColumns: any;
changeCard: any;
changeCardMode: any;
changePreviewSize: any;
[x: string]: any;
}