记录下uni-ui项目中引入ColorUI的方法

发布时间:2022-05-23 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了记录下uni-ui项目中引入ColorUI的方法脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
ColorUI是一款适应于H5、微信小程序、安卓、ios、支付宝的高颜值,高度自定义的Css组件库。那么在uni-ui项目中怎么引入ColorUI?下面本篇文章给大家介绍一下uni-ui项目引入ColorUI-UniApp插件的方法。

记录下uni-ui项目中引入ColorUI的方法

一、uniapp插件市场搜索ColorUI-UniApp插件,下载,解压

记录下uni-ui项目中引入ColorUI的方法

记录下uni-ui项目中引入ColorUI的方法

记录下uni-ui项目中引入ColorUI的方法

二、将colorui文件复制到uni-ui项目根目录下,如图:

记录下uni-ui项目中引入ColorUI的方法

三、uni-ui项目App.vue文件配置如下:

记录下uni-ui项目中引入ColorUI的方法

至此uni-ui项目引入ColorUI-UniApp插件结束

四、自定义导航栏

cu-custom.vue配置如下:

记录下uni-ui项目中引入ColorUI的方法

main.js配置如下:

记录下uni-ui项目中引入ColorUI的方法

pages.json配置如下:

记录下uni-ui项目中引入ColorUI的方法

五、页面使用如下:

记录下uni-ui项目中引入ColorUI的方法

页面效果图:

记录下uni-ui项目中引入ColorUI的方法

推荐:《uniapp教程》

以上就是记录下uni-ui项目中引入ColorUI的方法的详细内容,更多请关注脚本宝典其它相关文章!

脚本宝典总结

以上是脚本宝典为你收集整理的记录下uni-ui项目中引入ColorUI的方法全部内容,希望文章能够帮你解决记录下uni-ui项目中引入ColorUI的方法所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:uni app