Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelyelfpop committed Apr 17, 2019
1 parent 91a1c2a commit d38e2bf
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@

## Android 视频演示

- [点击查看视频(mp4格式)](http://oqdxjvpc7.bkt.clouddn.com/111.mp4)<br>
- [点击查看视频(优酷)](http://v.youku.com/v_show/id_XMjg0NDg0NDIyMA==.html)

## iOS 视频演示

- [点击查看视频(mp4格式)](http://oqdxjvpc7.bkt.clouddn.com/ios1.mp4)<br>
- [点击查看视频(优酷)](http://v.youku.com/v_show/id_XMjg0NDg0NTU4OA==.html)

## 效果图
Expand All @@ -45,6 +43,7 @@
[一个粗糙的 cordova demo](https://github.com/giantss/ImagePickerDemo)

```javascript
// 选图
ImagePicker.getPictures(function(result) {
alert(JSON.stringify(result));
}, function(err) {
Expand All @@ -55,6 +54,17 @@ ImagePicker.getPictures(function(result) {
height : 1440,
quality : 100
});

// 拍照
ImagePicker.getPictures(function(result) {
alert(JSON.stringify(result));
}, function(err) {
alert(err);
}, {
width : 1920,
height : 1440,
quality : 50
});
```

返回结果如下:
Expand Down Expand Up @@ -85,8 +95,8 @@ ionic 中使用本插件,需要声明: `declare let ImagePicker:any`
| 配置参数 | 参数含义 |
|:------------------:|:-------------------------:|
| maximumImagesCount | 多选限制数量,默认为9 |
| width | 设置图片的width,默认为自动 |
| height | 设置图片的height,默认为自动 |
| width | 设置输出图片的width,默认为自动 |
| height | 设置输出图片的height,默认为自动 |
| quality | 图片质量 默认80 |
| enablePickOriginal | 允许选择原图 默认true |

Expand Down

0 comments on commit d38e2bf

Please sign in to comment.