The data property does not support properties inherited from the prototype chain (if you can use to consider whether the under-complex, it is recommended to check the code)
Param
Description
Types
Editable
Default value
title
Node name
String
-
—
expanded
Whether the node is expanded
Boolean
Y
false
checked
Node check box is selected
Boolean
Y
false
tree Property
Param
Description
Types
Editable
Default value
type
Tree style
String
Y
default
canCheck
Node can choose
Boolean
Y
false
draggable
Whether the node can drag
Boolean
Y
false
dragAndExpanded
Whether to expand after dragging
Boolean
Y
true
control
Add or delete trees
Boolean
Y
false
isSolid
Whether it is solid
Boolean
Y
false
banCheck
Prohibition of choice
Boolean
Y
false
bgColor
Background color (default type is useless)
String
Y
#fff
fontColor
Font color (default type is useless)
String
Y
#000
node event
Param
Description
Types
Editable
Arguments
beforeAddNode
Increase the node before the trigger event (return 'no' means no new)
Function
Y
1:Parent node
afterAddNode
Increase the node after the trigger event
Function
Y
1:Add node,2:Parent node
beforeDelNode
Delete the node before the trigger event (return 'no' means do not delete)
Function
Y
1:Current node
afterAddNode
Event triggered after node deletion
Function
Y
1:Current node
beforeDragNode
Drag the node before the trigger event (return 'no' means do not delete)