import { type TableDataSource } from '@mezzanine-ui/core/table'; import type { TableProps } from './typings'; /** * 資料表格元件,支援排序、選取、展開、虛擬捲動與拖曳排序等功能。 * * 透過 `columns` 定義欄位結構,`dataSource` 傳入資料列;可搭配 `rowSelection` * 啟用勾選功能、`expandable` 展開子列、`scroll.virtualized` 開啟虛擬捲動以渲染大量資料。 * `draggable` 與 `pinnable` 為互斥選項,無法同時啟用。 * * @example * ```tsx * import Table from '@mezzanine-ui/react/Table'; * * // 基本用法 * * * // 啟用虛擬捲動(大資料量) *
* * // 勾選列 + 批次操作 *
* * // 可展開子列 *
{row.detail}
, * }} * /> * ``` * * @see {@link Pagination} 搭配 `pagination` prop 使用分頁元件 */ export declare const Table: (props: TableProps & { ref?: React.ForwardedRef; }) => React.ReactElement; export default Table;