自主项目,食堂系统,前端uniapp
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.

45 lines
1.1 KiB

  1. ## Icons 图标
  2. > **组件名:uni-icons**
  3. > 代码块: `uIcons`
  4. 用于展示 icons 图标 。
  5. ### 安装方式
  6. 本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`components`。
  7. 如需通过`npm`方式使用`uni-ui`组件,另见文档:[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55)
  8. ### 基本用法
  9. 在 ``template`` 中使用组件
  10. ```html
  11. <uni-icons type="contact" size="30"></uni-icons>
  12. ```
  13. ## API
  14. ### Icons Props
  15. |属性名 |类型 |默认值 |说明 |
  16. |:-: |:-: |:-: |:-: |
  17. |size |Number |24 |图标大小 |
  18. |type |String |- |图标图案,参考示例 |
  19. |color |String |- |图标颜色 |
  20. ### Icons Events
  21. |事件名 |说明 |返回值|
  22. |:-: |:-: |:-: |
  23. |@click|点击 Icon 触发事件|- |
  24. ## 组件示例
  25. 点击查看:[https://hellouniapp.dcloud.net.cn/pages/extUI/icons/icons](https://hellouniapp.dcloud.net.cn/pages/extUI/icons/icons)