import { FC } from 'react'; export interface TreeProps { /** * 自定义 class */ className?: string; /** * 节点 */ nodes?: TreeNodeItem[]; /** * 联动父子选择/反选 onChangeSelectedIds * * **注意** 联动模式下,全选与否的考虑范围不包括 disabled 节点 */ harmonizeSelections?: boolean; /** * 展开节点 ids 控制值 */ expandedIds?: Array; /** * 展开节点 默认值 */ defaultExpandedIds?: Array; /** * “展开/收起”变化时的回调 */ onChangeExpandedIds?: (ids: Array) => void; /** * 节点展开时的回调 */ onExpand?: (expandedId: TreeNodeItem['id'], expandedIds: Array) => void; /** * 节点收起时的回调 */ onCollapse?: (expandedId: TreeNodeItem['id'], expandedIds: Array) => void; /** * 选中节点 ids 控制值 */ selectedIds?: Array; /** * 选中节点 ids 默认值 */ defaultSelectedIds?: Array; /** * 选中节点 ids 变化时的回调 */ onChangeSelectedIds?: (ids: Array) => void; /** * 节点选中时的回调 */ onSelect?: (selectId: TreeNodeItem['id'], selectIds: Array) => void; /** * 节点反选中时的回调 */ onDeselect?: (selectId: TreeNodeItem['id'], selectIds: Array) => void; /** * @todo * 展开/收起 icon svg 取值函数 */ toggleIcon?: (treeNodeItem: TreeNodeItem) => TreeNodeItem['toggleIcon']; /** * @todo * 是否选中 icon svg 取值函数 */ prefixIcon?: (treeNodeItem: TreeNodeItem) => TreeNodeItem['prefixIcon']; /** * 可选中模式的类型 */ selectableType?: 'checkbox' | 'normal'; /** * 尺寸 * * use config context `baseSize` as default */ size?: 'md' | 'sm'; } export declare const Tree: FC; /** * @public */ export type TreeNodeItem = import('./tree-node').TreeNodeItem;