index.js 259 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 13 import FileExplorer from './FileExplorer.vue' const components = { FileExplorer: FileExplorer, } const install = function (Vue) { Object.keys(components).forEach(key => { Vue.component(key, components[key]); }); } export default install