bootstrap-vue
Version:
Quickly integrate Bootstrap 4 components with Vue.js
15 lines (12 loc) • 416 B
JavaScript
import target from '../../utils/target';
const listen_types = {click: true};
export default {
// eslint-disable-next-line no-shadow-restricted-names
bind(undefined, binding, vnode) {
target(vnode, binding, listen_types, ({targets, vnode}) => {
targets.forEach(target => {
vnode.context.$root.$emit('bv::show::modal', target, vnode.elm);
});
});
}
};