import React from 'react'; /** * TableCellIndex 组件的属性接口 */ export interface TableCellIndexProps { /** 自定义样式 */ style?: React.CSSProperties; /** 自定义类名 */ className?: string; /** 目标行元素 */ targetRow: any; /** 行索引,用于选中整行 */ rowIndex?: number; /** 表格路径,用于定位表格元素 */ tablePath?: number[]; } /** * TableCellIndex 组件 - 表格行索引单元格组件 * * 该组件用于渲染表格行的索引单元格,显示行号或索引信息。 * 使用 context 来生成 className,支持样式自定义。 * * @component * @description 表格行索引单元格组件,用于显示行索引 * @param {TableCellIndexProps} props - 组件属性 * @param {React.CSSProperties} [props.style] - 自定义样式 * @param {string} [props.className] - 自定义类名 * @param {any} props.targetRow - 目标行元素 * @param {number} [props.rowIndex] - 行索引,用于选中整行 * @param {number[]} [props.tablePath] - 表格路径,用于定位表格元素 * * @example * ```tsx * * ``` * * @returns {React.ReactElement} 渲染的表格索引单元格组件 * * @remarks * - 使用 ConfigProvider context 生成 className * - 支持自定义样式覆盖 * - 不可编辑状态 * - 固定宽度和垂直对齐 * - 支持点击选中整行功能 */ export declare const TableCellIndex: React.FC;