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 - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

16

index.js

@@ -66,6 +66,14 @@

var imgSrc = this.data.imgSrc;
// var orientation = "up";
// wx.getImageInfo({
// src: imgSrc,
// success (res) {
// console.log("1图片信息", res)
// orientation = (res || {}).orientation
// }
// })
this.resetControl();
this.triggerEvent('onOk', {
tempFilePath: imgSrc
tempFilePath: imgSrc,
imgType: "camera"
});

@@ -89,5 +97,5 @@ },

that.resetControl();
that.triggerEvent('onOk', {
tempFilePath: res.tempFilePaths[0]
tempFilePath: res.tempFilePaths[0],
imgType: "choose"
});

@@ -94,0 +102,0 @@ }

{
"component": true,
"usingComponents": {}
"component": true,
"usingComponents": {}
}
{
"name": "@xsyx/hanzo-camera-photo",
"version": "0.1.0",
"version": "0.1.1",
"description": "camera-photo 组件",

@@ -5,0 +5,0 @@ "main": "index.js",

### 拍照和从相册选择图片组件
### 变更记录
#### v0.1.1 -- 2020年2月25日
拍照方式抛出onOK: imgType, 'camera':拍照, 'choose':相册选择
#### v0.1.0 -- 2020年2月19日

@@ -5,0 +8,0 @@

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