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]))

 

更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/118755478

posted @ 2022-05-09 18:19  忘川信使  阅读(65)  评论(0编辑  收藏  举报