1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /**
- * Handle virtual list of the TreeNodes.
- */
- import * as React from 'react';
- import type { BasicDataNode, DataEntity, DataNode, FlattenNode, Key, KeyEntities, ScrollTo } from './interface';
- export declare const MOTION_KEY: string;
- export declare const MotionEntity: DataEntity;
- export interface NodeListRef {
- scrollTo: ScrollTo;
- getIndentWidth: () => number;
- }
- interface NodeListProps<TreeDataType extends BasicDataNode> {
- prefixCls: string;
- style: React.CSSProperties;
- data: FlattenNode<TreeDataType>[];
- motion: any;
- focusable?: boolean;
- activeItem: FlattenNode<TreeDataType>;
- focused?: boolean;
- tabIndex: number;
- checkable?: boolean;
- selectable?: boolean;
- disabled?: boolean;
- expandedKeys: Key[];
- selectedKeys: Key[];
- checkedKeys: Key[];
- loadedKeys: Key[];
- loadingKeys: Key[];
- halfCheckedKeys: Key[];
- keyEntities: KeyEntities;
- dragging: boolean;
- dragOverNodeKey: Key;
- dropPosition: number;
- height: number;
- itemHeight: number;
- virtual?: boolean;
- scrollWidth?: number;
- onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
- onFocus?: React.FocusEventHandler<HTMLDivElement>;
- onBlur?: React.FocusEventHandler<HTMLDivElement>;
- onActiveChange: (key: Key) => void;
- onListChangeStart: () => void;
- onListChangeEnd: () => void;
- }
- /**
- * We only need get visible content items to play the animation.
- */
- export declare function getMinimumRangeTransitionRange(list: FlattenNode[], virtual: boolean, height: number, itemHeight: number): FlattenNode<DataNode>[];
- declare const NodeList: React.ForwardRefExoticComponent<NodeListProps<any> & React.RefAttributes<NodeListRef>>;
- export default NodeList;
|