vue按需引入第三方ui插件优化 太过爱你忘了你带给我的痛 2021-09-07 06:04 426阅读 0赞 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);
还没有评论,来说两句吧...