get all global components to import in main.js

This commit is contained in:
jiaming 2018-12-05 13:42:52 +08:00
parent 1d632eaf36
commit ec02217c9f
1 changed files with 11 additions and 0 deletions

11
src/components/index.js Normal file
View File

@ -0,0 +1,11 @@
import borderBox1 from './borderBox1/index'
import borderBox2 from './borderBox2/index'
import borderBox3 from './borderBox3/index'
import borderBox4 from './borderBox4/index'
export default function (Vue) {
Vue.component('borderBox1', borderBox1)
Vue.component('borderBox2', borderBox2)
Vue.component('borderBox3', borderBox3)
Vue.component('borderBox4', borderBox4)
}