vue按需引入第三方ui插件优化

2022-05-10 17:05:11 浏览数 (2)

代码语言:javascript复制
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

0 人点赞