vue按需引入第三方ui插件优化
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);
作者:Vam的金豆之路
主要领域:前端开发
我的微信:maomin9761
微信公众号:前端历劫之路