import React from "react"; import { TreeContextValue } from "./TreeContext"; import { StyledProps } from "../../_type"; export declare const TreeActionLink: React.ForwardRefExoticComponent & React.RefAttributes>; export interface TreeNodeProps extends StyledProps { /** * 节点 ID,整棵树中唯一 */ id: string; /** * 节点内容 */ content: React.ReactNode; /** * 节点图标 * * @docType React.ReactNode | (context: { expanded: boolean }) => React.ReactNode */ icon?: ((context: { expanded: boolean; }) => React.ReactNode) | React.ReactNode; /** * hover 后展示的操作 * * 推荐使用文字(TreeNode.ActionLink),若超过一项,建议收至 Dropdown 下 */ operation?: React.ReactNode; /** * 当树为 selectable 时,设置当前节点是否展示 Checkbox * * @default true */ selectable?: boolean; /** * 当树为 selectable 时,设置当前节点 Checkbox 是否禁用 * * @default false */ disableSelect?: boolean; /** * 当前节点是否支持展开(用于异步加载) * * @default false */ expandable?: boolean; /** * 当前节点是否不需要附加样式(如 Hover 样式) * * @default false * @since 2.2.4 */ pure?: boolean; /** * 包含的树节点 */ children?: React.ReactNode; } export declare const TreeNode: React.FunctionComponent> & { ActionLink: React.ForwardRefExoticComponent & React.RefAttributes>; }; export declare const TreeNodeInner: React.ForwardRefExoticComponent>;