import React from "react"; import { TableAddon, TableColumn } from "../TableProps"; /** * `injectable` 插件用于支持表格注入自定义 Props。 * * 其中函数参数中将返回现有 `props`,用于需要属性合并的情况。 */ export interface InjectableOptions { /** * 设置 Cell props * @since 2.3.5 */ cell?: (props: React.HTMLAttributes, context: { record: Record; rowKey: string; recordIndex: number; columnIndex?: number; column: TableColumn; }) => React.HTMLAttributes; /** * 设置行 Props */ row?: (props: React.HTMLAttributes, context: { record: Record; rowKey: string; recordIndex: number; }) => React.HTMLAttributes; /** * 设置内容 Props */ body?: (props: React.HTMLAttributes) => React.HTMLAttributes; /** * 设置表头 Props */ head?: (props: React.HTMLAttributes) => React.HTMLAttributes; /** * 设置表格 Props */ table?: (props: React.HTMLAttributes) => React.HTMLAttributes; } export declare function injectable({ cell, row, body, head, table, }: InjectableOptions): TableAddon;