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);
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 成长之路 设计师:Amelia_0503 返回首页