components.js
import { fullScreenContainer, borderBox12, scrollBoard, loading, borderBox10, borderBox11, decoration1 } from '@jiaminghi/data-view'
const components = {
fullScreenContainer, borderBox12, scrollBoard, loading, borderBox10, borderBox11, decoration1
}
function install(Vue){
Object.keys(components).forEach(key => Vue.use(components[key]))
}
export default { install }
main.js
import components from "./components";
Vue.use(components);