代替:
import comp1 from './widgets/comp1.vue';
import comp2 from './widgets/comp2.vue';
import comp3 from './widgets/comp3.vue';
...
export default{
components: {
comp1,
comp2,
comp3,
...
},
如果我不想对eace组件进行全局Vue.use
设置,我如何插入完整的widgets文件夹以对其内部的所有组件进行注册。有想法吗?