Skip to content

Commit 887a694

Browse files
committed
feat: remove redundant event emittings
1 parent 9dbdec4 commit 887a694

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/components/Tree.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,6 @@ export default defineComponent({
735735
736736
//#region Handle node events
737737
function handleNodeCheck(node: TreeNode): void {
738-
ctx.emit('check', node)
739738
if (!props.cascade && props.enableLeafOnly && !node.isLeaf) return
740739
nonReactive.store.setChecked(
741740
node[props.keyField],
@@ -746,12 +745,10 @@ export default defineComponent({
746745
)
747746
}
748747
function handleNodeSelect(node: TreeNode): void {
749-
ctx.emit('select', node)
750748
if (props.enableLeafOnly && !node.isLeaf) return
751749
nonReactive.store.setSelected(node[props.keyField], !node.selected)
752750
}
753751
function handleNodeExpand(node: TreeNode): void {
754-
ctx.emit('expand', node)
755752
nonReactive.store.setExpand(node[props.keyField], !node.expand)
756753
}
757754
function handleNodeDrop(

0 commit comments

Comments
 (0)