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