Interface: 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
Name | Type |
---|---|
source | ITreeNodeItemProps <any > |
target | ITreeNodeItemProps <any > |
Returns
void
Defined in
src/components/tree/index.tsx:67
onExpand
▸ Optional
onExpand(expandedKeys
, node
): void
Parameters
Name | Type |
---|---|
expandedKeys | Key [] |
node | ITreeNodeItemProps <any > |
Returns
void
Defined in
src/components/tree/index.tsx:59
onLoadData
▸ Optional
onLoadData(node
): Promise
<void
>
Parameters
Name | Type |
---|---|
node | ITreeNodeItemProps <any > |
Returns
Promise
<void
>
Defined in
src/components/tree/index.tsx:68
onRightClick
▸ Optional
onRightClick(e
, node
): void
Parameters
Name | Type |
---|---|
e | MouseEvent <HTMLDivElement , MouseEvent > |
node | ITreeNodeItemProps <any > |
Returns
void
Defined in
src/components/tree/index.tsx:69
onSelect
▸ Optional
onSelect(node
, isUpdate?
): void
Parameters
Name | Type |
---|---|
node | ITreeNodeItemProps <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
Name | Type |
---|---|
node | ITreeNodeItemProps <any > |
index | number |
isLeaf | boolean |
Returns
string
| Element