Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ubrorg/icon

Package Overview
Dependencies
Maintainers
11
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ubrorg/icon

icon

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
11
Created
Source

icon

icon

使用

在页面的 page.json 中配置:

{
  "usingComponents": {
    "icon": "@ubrorg/icon/lib/index"
  }
}

在页面的 page.axml 中直接使用:

<icon />

option参数

属性类型默认值解释
urlstring''图片地址
modestringaspectFill图片模式
widthstring''图片宽度
heightstring''图片高度
lazyLoadbooleanfalse懒加载
classNamestring''外部样式
onTapEventHandle 点击图片时触发
  • mode 属性

    • scaleToFill
    • aspectFit
    • aspectFill
    • widthFix

开发

  1. yarn 或者 ayarn阿里内网)安装依赖
  2. 小程序 IDE 打开组件(下载地址

更多命令

  • miapp newbranch: 新建分支
  • miapp push: 提交代码
  • miapp prepub: 预发(发布 beta 版本)
  • miapp publish: 正式发布

FAQs

Package last updated on 24 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc