@aplus-frontend/ui
Version:
15 lines (14 loc) • 845 B
TypeScript
import { VxeTableEventProps, VxeTableProps } from 'vxe-table';
import { ApGridColumnType, ApGridProps, ApGridRowSelection } from '../interface';
import { RowSelectionType } from '@aplus-frontend/antdv/es/table/interface';
export declare function toVxeProps<RecordType>(props: ApGridProps, rowSelection: ApGridRowSelection<RecordType> | undefined): VxeTableProps<RecordType> & VxeTableEventProps<RecordType>;
export declare function getRowSelectionProps(rowSelection: ApGridRowSelection<any> | true, columns: ApGridColumnType[], size: 'mini' | 'medium'): {
type: RowSelectionType;
width: string | number;
fixed: "left" | "right" | undefined;
};
export declare function getRowExpandProps(config: ApGridProps['expandable']): {
readonly type: "expand";
readonly title: string | undefined;
readonly width: string | number;
};