跳到主要内容
版本:0.9.0-beta.2

Interface: ITreeProps

molecule.component.ITreeProps

Properties

className

Optional className: string

Defined in

src/components/tree/index.tsx:56


data

Optional data: ITreeNodeItemProps<any>[]

Defined in

src/components/tree/index.tsx:55


draggable

Optional draggable: boolean

Defined in

src/components/tree/index.tsx:57


expandKeys

Optional expandKeys: string[]

Defined in

src/components/tree/index.tsx:58

Methods

onDropTree

Optional onDropTree(source, target): void

Parameters

NameType
sourceITreeNodeItemProps<any>
targetITreeNodeItemProps<any>

Returns

void

Defined in

src/components/tree/index.tsx:67


onExpand

Optional onExpand(expandedKeys, node): void

Parameters

NameType
expandedKeysKey[]
nodeITreeNodeItemProps<any>

Returns

void

Defined in

src/components/tree/index.tsx:59


onLoadData

Optional onLoadData(node): Promise<void>

Parameters

NameType
nodeITreeNodeItemProps<any>

Returns

Promise<void>

Defined in

src/components/tree/index.tsx:68


onRightClick

Optional onRightClick(e, node): void

Parameters

NameType
eMouseEvent<HTMLDivElement, MouseEvent>
nodeITreeNodeItemProps<any>

Returns

void

Defined in

src/components/tree/index.tsx:69


onSelect

Optional onSelect(node, isUpdate?): void

Parameters

NameType
nodeITreeNodeItemProps<any>
isUpdate?any

Returns

void

Defined in

src/components/tree/index.tsx:60


onTreeClick

Optional onTreeClick(): void

Returns

void

Defined in

src/components/tree/index.tsx:61


renderTitle

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

Parameters

NameType
nodeITreeNodeItemProps<any>
indexnumber
isLeafboolean

Returns

string | Element

Defined in

src/components/tree/index.tsx:62