@xsyx/hanzo-camera-photo
Advanced tools
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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6702
104
30