element-expand-library
Version:
A simple expanding library for element-ui
18 lines (15 loc) • 420 B
JavaScript
import checkTabel from './components/check-table.vue' // 导入组件
let components = [
checkTabel,
]
const elementExpandLibrary = {
install(Vue, options) {
components.forEach(item => {
Vue.component(item.name, item)
})
}
}
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(elementExpandLibrary)
}
export default elementExpandLibrary