mauricius / vue-draggable-resizable

Vue3 Component for draggable and resizable elements.
https://mauricius.github.io/vue-draggable-resizable/
MIT License
3.33k stars 559 forks source link

How do I get the currently active instance #308

Closed Zz-ZzzZ closed 1 year ago

Zz-ZzzZ commented 3 years ago

I want to get the currently active instance when I call a method. Is there a good way?

TitanFighter commented 3 years ago

This code may help (especially check draggingElement part).

jinkunaier commented 3 years ago

Yes,why not pass currently active instance as as parameter to activated、deactivated and other events ? so that we can get it.