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

@xsyx/hanzo-camera-photo

Package Overview
Dependencies
Maintainers
11
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xsyx/hanzo-camera-photo

camera-photo 组件

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
11
Created
Source

拍照和从相册选择图片组件

变更记录

v0.1.1 -- 2020年2月25日

修改选取框图片大小

v0.1.1 -- 2020年2月25日

拍照方式抛出onOK: imgType, 'camera':拍照, 'choose':相册选择

v0.1.0 -- 2020年2月19日

适用场景

基本调用

 <camera-photo isShow="{{showCamera}}" pattern="idcard-just" bind:onOk="cameraOK"></camera-photo>   

参数 props

参数说明类型可选值默认值版本号
isShow是否显示组件Boolen-false0.1.0
pattern拍照时的背景图片Stringidcard-just:身份证-正面
idcard-reverse:身份证-反面
drive-lic:驾驶证
idcard-just0.1.0

事件 event

名称参数说明备注
bind:onOk返回图片地址-

相关演示

FAQs

Package last updated on 25 Feb 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