跳到主要内容
版本:Next

Interface: ITreeProps

molecule.component.ITreeProps

Properties

activeKey

Optional activeKey: UniqueId

Defined in

components/tree/index.tsx:66


className

Optional className: string

Defined in

components/tree/index.tsx:62


data

Optional data: ITreeNodeItemProps<any>[]

Defined in

components/tree/index.tsx:61


draggable

Optional draggable: boolean

Defined in

components/tree/index.tsx:63


expandKeys

Optional expandKeys: UniqueId[]

Defined in

components/tree/index.tsx:64


loadedKeys

Optional loadedKeys: string[]

Defined in

components/tree/index.tsx:65

Methods

onDropTree

Optional onDropTree(source, target): void

Parameters

NameType
sourceITreeNodeItemProps<any>
targetITreeNodeItemProps<any>

Returns

void

Defined in

components/tree/index.tsx:75


onExpand

Optional onExpand(expandedKeys, node): void

Parameters

NameType
expandedKeysUniqueId[]
nodeITreeNodeItemProps<any>

Returns

void

Defined in

components/tree/index.tsx:67


onLoadData

Optional onLoadData(node): Promise<void>

Parameters

NameType
nodeITreeNodeItemProps<any>

Returns

Promise<void>

Defined in

components/tree/index.tsx:76


onRightClick

Optional onRightClick(e, node): void

Parameters

NameType
eMouseEvent<HTMLDivElement, MouseEvent>
nodeITreeNodeItemProps<any>

Returns

void

Defined in

components/tree/index.tsx:77


onSelect

Optional onSelect(node, isUpdate?): void

Parameters

NameType
nodeITreeNodeItemProps<any>
isUpdate?any

Returns

void

Defined in

components/tree/index.tsx:68


onTreeClick

Optional onTreeClick(): void

Returns

void

Defined in

components/tree/index.tsx:69


renderTitle

Optional renderTitle(node, index, isLeaf): string | Element

Parameters

NameType
nodeITreeNodeItemProps<any>
indexnumber
isLeafboolean

Returns

string | Element

Defined in

components/tree/index.tsx:70