feat: support customizing operation icons

This commit is contained in:
youxingzhi
2019-02-23 10:04:27 +08:00
parent 3dd6e31028
commit 136b33971c
5 changed files with 35 additions and 27 deletions

View File

@@ -114,17 +114,6 @@ Default name for new treenode.
Default name for new leafnode.
**onDeleteNode**
```javascript
onDeleteNode(confirm) {
if (something) {
confirm()
}
}
```
**default-expanded**
Default node is expanded or not.
@@ -137,6 +126,14 @@ Default node is expanded or not.
**delete-node**
```javascript
@delete-node="onDel"
...
onDel (node) {
node.remove()
},
```
**add-node**
# Forbid dragging