UNPKG

zp-bee

Version:

zp-bee,是一款基于 Dumi,由 React + TypeScript 开发的组件库 🎉。

27 lines (26 loc) 1.34 kB
import React from 'react'; import { TableProps, TablePaginationConfig } from 'antd/lib/table'; interface ISummaryRow { [propName: string]: any; } export interface IMyTableBaseProps extends TableProps<any> { columns: any[]; pagination?: TablePaginationConfig; affixPagination?: boolean; summaryRow?: ISummaryRow; isUnusualOrder?: boolean; footerNode?: React.ReactNode; storeColumnNamePrefix?: string; isVirtualList?: boolean; closeResizeHeader?: boolean; settingNode?: JSX.Element; settingNodeRender?: (text: string, record: any, index: number) => JSX.Element; /** 虚拟表格启用时滚动事件 */ onVirtualScroll?: (realData: readonly any[], startIndex: number, endIndex: number) => unknown; /** 是否自适应 (默认会 保留一个未定义width的列) */ autoFix?: boolean; bindRef?: (ref: any) => void; } export declare const Resizable: (props: any) => React.DetailedReactHTMLElement<any, HTMLElement>; declare const MyTable: ({ columns, dataSource, storeColumnNamePrefix, pagination, sticky, affixPagination, summaryRow, settingNode, settingNodeRender, isUnusualOrder, footerNode, scroll, isVirtualList, components: propsComponents, closeResizeHeader, onVirtualScroll, autoFix, bindRef, ...restProps }: IMyTableBaseProps) => JSX.Element; export default MyTable;