Duplicate Declaration On onClick Method
There Were Two Methods With The Same Name
This commit is contained in:
@@ -120,10 +120,7 @@ A vue component for tree structure. Support adding treenode/leafnode, editing no
|
||||
|
||||
vm.newTree = _dfs(vm.data)
|
||||
},
|
||||
|
||||
onClick(model) {
|
||||
console.log(model)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -202,4 +199,4 @@ The component has default icons for `addTreeNode`, `addLeafNode`, `editNode`, `d
|
||||
<span class="icon" slot="addLeafNode">addLeafNode</span>
|
||||
<span class="icon" slot="editNode">editNode</span>
|
||||
<span class="icon" slot="delNode">delNode</span>
|
||||
```
|
||||
```
|
||||
|
Reference in New Issue
Block a user