AI销管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.0 KiB

2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <p align="center">
  2. <img alt="logo" src="https://uviewui.com/common/logo.png" width="120" height="120" style="margin-bottom: 10px;">
  3. </p>
  4. <h3 align="center" style="margin: 30px 0 30px;font-weight: bold;font-size:40px;">uView</h3>
  5. <h3 align="center">多平台快速开发的UI框架</h3>
  6. ## 说明
  7. uView UI,是[uni-app](https://uniapp.dcloud.io/)生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水
  8. ## 特性
  9. - 兼容安卓,iOS,微信小程序,H5,QQ小程序,百度小程序,支付宝小程序,头条小程序
  10. - 60+精选组件,功能丰富,多端兼容,让您快速集成,开箱即用
  11. - 众多贴心的JS利器,让您飞镖在手,召之即来,百步穿杨
  12. - 众多的常用页面和布局,让您专注逻辑,事半功倍
  13. - 详尽的文档支持,现代化的演示效果
  14. - 按需引入,精简打包体积
  15. ## 安装
  16. ```bash
  17. # npm方式安装
  18. npm i uview-ui
  19. ```
  20. ## 快速上手
  21. 1. `main.js`引入uView库
  22. ```js
  23. // main.js
  24. import uView from 'uview-ui';
  25. Vue.use(uView);
  26. ```
  27. 2. `App.vue`引入基础样式(注意style标签需声明scss属性支持)
  28. ```css
  29. /* App.vue */
  30. <style lang="scss">
  31. @import "uview-ui/index.scss";
  32. </style>
  33. ```
  34. 3. `uni.scss`引入全局scss变量文件
  35. ```css
  36. /* uni.scss */
  37. @import "uview-ui/theme.scss";
  38. ```
  39. 4. `pages.json`配置easycom规则(按需引入)
  40. ```js
  41. // pages.json
  42. {
  43. "easycom": {
  44. // npm安装的方式不需要前面的"@/",下载安装的方式需要"@/"
  45. // npm安装方式
  46. "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
  47. // 下载安装方式
  48. // "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
  49. },
  50. // 此为本身已有的内容
  51. "pages": [
  52. // ......
  53. ]
  54. }
  55. ```
  56. 请通过[快速上手](https://uviewui.com/components/quickstart.html)了解更详细的内容
  57. ## 使用方法
  58. 配置easycom规则后,自动按需引入,无需`import`组件,直接引用即可。
  59. ```html
  60. <template>
  61. <u-button>按钮</u-button>
  62. </template>
  63. ```
  64. 请通过[快速上手](https://uviewui.com/components/quickstart.html)了解更详细的内容
  65. ## 链接
  66. - [官方文档](https://uviewui.com/)
  67. - [更新日志](https://uviewui.com/components/changelog.html)
  68. - [升级指南](https://uviewui.com/components/changelog.html)
  69. - [关于我们](https://uviewui.com/cooperation/about.html)
  70. ## 预览
  71. 您可以通过**微信**扫码,查看最佳的演示效果。
  72. <br>
  73. <br>
  74. <img src="https://uviewui.com/common/weixin_mini_qrcode.png" width="220" height="220" >
  75. <!-- ## 捐赠uView的研发
  76. uView文档和源码全部开源免费,如果您认为uView帮到了您的开发工作,您可以捐赠uView的研发工作,捐赠无门槛,哪怕是一杯可乐也好(相信这比打赏主播更有意义)。
  77. <img src="https://uviewui.com/common/wechat.png" width="220" >
  78. <img style="margin-left: 100px;" src="https://uviewui.com/common/alipay.png" width="220" >
  79. -->
  80. ## 版权信息
  81. uView遵循[MIT](https://en.wikipedia.org/wiki/MIT_License)开源协议,意味着您无需支付任何费用,也无需授权,即可将uView应用到您的产品中。