import copy from './copy.js'; const directives = { copy } export default { install(Vue){ Object.keys(directives).forEach(key=>{ Vue.directive(key, directives[key]) }) } }