All files / lib/directives modal.js

25% Statements 1/4
100% Branches 0/0
0% Functions 0/2
25% Lines 1/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15    18x                        
import target from './_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('show::modal', target, vnode.elm);
            });
        });
    }
};