import type { TableProps as AntTableProps } from 'antd'; import type { ColumnGroupType, ColumnType } from 'antd/es/table'; import type { TableLocale as AntTableLocale } from 'antd/es/table/interface'; import type { Reference } from 'rc-table'; import type Summary from 'rc-table/es/Footer/Summary'; import type { ReactElement, ReactNode } from 'react'; import React from 'react'; import type { AnyObject } from '../_util/type'; import type { OBTablePaginationConfig } from './hooks/useDefaultPagination'; import type { ColumnTooltipType } from './ColumnTitleWithTooltip'; export type { ColumnTooltipType } from './ColumnTitleWithTooltip'; type TableColumnType = ColumnType & { tooltip?: ColumnTooltipType; }; type TableColumnGroupType = Omit, 'children'> & { children: TableColumnsType; tooltip?: ColumnTooltipType; }; /** 与 antd ColumnsType 对齐的列配置数组类型,额外支持表头 tooltip(含分组列) */ export type TableColumnsType = (TableColumnGroupType | TableColumnType)[]; export * from 'antd/es/table'; export interface TableLocale extends AntTableLocale { batchOperationBar?: { selected?: string; object?: string; cancel?: string; collapse?: string; open?: string; }; } export interface TableProps extends Omit, 'pagination'> { innerBordered?: boolean; /** 设置外围边框(分页器包含在边框内),内部保持无边框样式,可代替 Card bordered + bodyStyle padding 0 + Table 的组合 */ outerBordered?: boolean; /** 分页配置;`showTotal` 传 `false` 关闭总数展示,不传则展示默认文案 */ pagination?: false | OBTablePaginationConfig; columns?: TableColumnsType; cancelText?: string; collapseText?: string; openText?: string; hiddenCancelBtn?: boolean; toolOptionsRender?: (selectedRowKeys: React.Key[], selectedRows: T[]) => ReactNode[]; toolAlertRender?: false | ((selectedRowKeys: React.Key[], selectedRows: T[]) => ReactNode); toolSelectedContent?: (selectedRowKeys: React.Key[], selectedRows: T[]) => ReactNode; locale?: TableLocale; } declare const _default: ((props: TableProps & { children?: ReactNode; } & { ref?: React.Ref; }) => ReactElement>) & { SELECTION_COLUMN: {}; EXPAND_COLUMN: {}; SELECTION_ALL: "SELECT_ALL"; SELECTION_INVERT: "SELECT_INVERT"; SELECTION_NONE: "SELECT_NONE"; Column: (_: import("antd").TableColumnProps) => null; ColumnGroup: (_: import("antd/es/table/ColumnGroup").ColumnGroupProps) => null; Summary: typeof Summary; useStyle: (prefixCls: string, rootCls?: string) => readonly [(node: ReactElement>) => ReactElement>, string, string]; useDefaultPagination: (pagination?: false | OBTablePaginationConfig) => false | import("antd").TablePaginationConfig; }; export default _default;