Skip to content

Commit

Permalink
feat(draggabletree): add event beforeDragStart
Browse files Browse the repository at this point in the history
affects: @he-tree/vue
  • Loading branch information
phphe committed Aug 31, 2023
1 parent b463825 commit 82f9e75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/he-tree-vue/src/components/DraggableTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ const cpt = defineComponent({
if (!this.isDraggable(dragNode)) {
return;
}
this.$emit("beforeDragStart", dragNode);
return rootEl;
},
onDragStart: (event) => {
Expand Down

0 comments on commit 82f9e75

Please sign in to comment.