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

@ubrorg/image

Package Overview
Dependencies
Maintainers
11
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ubrorg/image

image

  • 1.5.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
11
Weekly downloads
 
Created
Source

image

image

使用

在页面的 page.json 中配置:

{
  "usingComponents": {
    "ma-image": "@ubrorg/image/lib/index"
  }
}

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

  <ma-image url='' width='' height='' mode='' className='' lazyLoad='' />

option参数

属性类型默认值解释
urlstring''图片地址
netOutstringfalse是否为网络请求图片(加了错误处理)
modestringaspectFill图片模式
widthstring''图片宽度
heightstring''图片高度
lazyLoadbooleanfalse懒加载
classNamestring''外部样式
onTapEventHandle 点击图片时触发
catchTapEventHandle 点击图片时触发,阻止事件冒泡
  • mode 属性

    • scaleToFill
    • aspectFit
    • aspectFill
    • widthFix

开发

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

更多命令

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

FAQs

Package last updated on 27 Jan 2021

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