UNPKG
@cran/vue.core
Version:
latest (0.1.6)
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.1
Cranberry Vue Core Utilities
c6s.gitlab.io/lib/vue/core/modules.html
@cran/vue.core
/
cjs
/
utility
/
findVue.js
8 lines
(7 loc)
•
188 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
export
function
findVue
(
el
) {
let
node = el;
while
(node && !node.
__vueParentComponent
) { node = node.
parentElement
; }
return
node?.
__vueParentComponent
||
null
; }