UNPKG

bootstrap-vue

Version:

Quickly integrate Bootstrap 4 components with Vue.js

15 lines (12 loc) 377 B
import target from '../../utils/target' const listenTypes = {click: true} export default { // eslint-disable-next-line no-shadow-restricted-names bind (undefined, binding, vnode) { target(vnode, binding, listenTypes, ({targets, vnode}) => { targets.forEach(target => { vnode.context.$root.$emit('bv::show::modal', target, vnode.elm) }) }) } }