import React from "react"; import { TableAddon } from "../../TableProps"; import { RowsDraggableOptions } from "./rowsDraggable"; /** * `draggable` 插件用于支持拖拽排序操作。 */ export interface DraggableOptions { /** * 当前支持 `react-beautiful-dnd` */ module?: any; /** * 拖拽完成回调 */ onDragEnd?: (records: Record[], context: any) => void; /** * 拖拽开始时回调 */ onDragStart?: (context: any) => void; /** * 拖拽手柄列宽度 */ width?: string | number; /** * 拖拽手柄图标 * * *参考 Icon 组件[图标类型](/component/icon)* * * @default "drop" */ icon?: string; /** * 隐藏拖拽手柄图标 * * *默认值:* * * - *内置拖拽 `"unhover"`* * - *第三方库拖拽 `false`* * * @since 2.4.2 */ hideHandler?: boolean | "unhover"; /** * 是否整行可拖拽 * * **内置拖拽当前不支持改变该行为** * * @since 2.4.2 */ full?: boolean; /** * 提供一个列的 `key`,将手柄组件插入到一个目标列 * * *默认在最前新建一列插入* * * @since 2.6.7 */ targetColumnKey?: string; } export declare function draggable({ module, width, full, icon, hideHandler, targetColumnKey, onDragEnd, onDragStart, draggableRowKeys, childrenColName, dragType, relations, onExpandedKeysChange, expandedKeys, indent, }: DraggableOptions & RowsDraggableOptions): TableAddon; export interface DraggableTableRowContextValue { provided?: any; } export declare const DraggableTableRowContext: React.Context;