|  | 2 年之前 | |
|---|---|---|
| .. | ||
| components | 2 年之前 | |
| changelog.md | 2 年之前 | |
| package.json | 2 年之前 | |
| readme.md | 2 年之前 | |
代码块:
uIcons
用于展示 icons 图标 。
本组件符合easycom规范,HBuilderX 2.5.5起,只需将本组件导入项目,在页面template中即可直接使用,无需在页面中import和注册components。
如需通过npm方式使用uni-ui组件,另见文档:https://ext.dcloud.net.cn/plugin?id=55
在 template 中使用组件
<uni-icons type="contact" size="30"></uni-icons>
点击复制图标类型
| 属性名 | 类型 | 默认值 | 说明 | 
|---|---|---|---|
| size | Number | 24 | 图标大小 | 
| type | String | - | 图标图案,参考示例 | 
| color | String | - | 图标颜色 | 
| 事件名 | 说明 | 返回值 | 
|---|---|---|
| @click | 点击 Icon 触发事件 | - |