Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H5 chooseImage的sourceType配置单个选项 不起作用 #2578

Closed
hblz opened this issue Mar 25, 2019 · 9 comments
Closed

H5 chooseImage的sourceType配置单个选项 不起作用 #2578

hblz opened this issue Mar 25, 2019 · 9 comments
Assignees

Comments

@hblz
Copy link

hblz commented Mar 25, 2019

问题描述
H5 下chooseImage的sourceType配置单个选项 不起作用,不管怎么配置,都是显示album和camera
复现步骤
[复现问题的步骤]

Taro.chooseImage({
      count: 1,
      sizeType: ['compressed'],
      sourceType: ['album'],
      success: () => {

      }
    })

期望行为
可以根据sourceType配置 显示相应的功能,如果是配置单个,就直接吊起单个的功能

报错信息

系统信息

Taro v1.2 及以上版本已添加 taro info 命令,方便大家查看系统及依赖信息,运行该命令后将结果贴下面即可。
Taro CLI 1.2.21 environment info:
System:
OS: macOS High Sierra 10.13.3
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.2 - /usr/local/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 5.6.0 - /usr/local/bin/npm
npmPackages:
@tarojs/async-await: ^1.2.21 => 1.2.21
@tarojs/components: ^1.2.21 => 1.2.21
@tarojs/plugin-babel: ^1.2.21 => 1.2.21
@tarojs/plugin-csso: ^1.2.21 => 1.2.21
@tarojs/plugin-sass: ^1.2.21 => 1.2.21
@tarojs/plugin-uglifyjs: ^1.2.21 => 1.2.21
@tarojs/redux: ^1.2.21 => 1.2.21
@tarojs/redux-h5: ^1.2.21 => 1.2.21
@tarojs/router: ^1.2.21 => 1.2.21
@tarojs/taro: ^1.2.21 => 1.2.21
@tarojs/taro-alipay: ^1.2.21 => 1.2.21
@tarojs/taro-h5: ^1.2.21 => 1.2.21
@tarojs/taro-swan: ^1.2.21 => 1.2.21
@tarojs/taro-tt: ^1.2.21 => 1.2.21
@tarojs/taro-weapp: ^1.2.21 => 1.2.21
@tarojs/webpack-runner: ^1.2.21 => 1.2.21
eslint-config-taro: ^1.2.21 => 1.2.21
eslint-plugin-taro: ^1.2.21 => 1.2.21
nervjs: ^1.3.13 => 1.3.13

@taro-bot
Copy link

taro-bot bot commented Mar 25, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@jinjinjin0731 jinjinjin0731 self-assigned this Mar 25, 2019
@hblz
Copy link
Author

hblz commented Mar 27, 2019

这个 啥时候修复啊

@hblz
Copy link
Author

hblz commented Mar 27, 2019

急需要

@hblz
Copy link
Author

hblz commented Mar 29, 2019

啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 没人回复吗 搞死了

@hblz
Copy link
Author

hblz commented Mar 29, 2019

@jinjinjin0731

@jinjinjin0731
Copy link
Contributor

下周发版。近两天修复

@xoptimal
Copy link

xoptimal commented Jul 4, 2019

@jinjinjin0731
版本: v1.3.4
问题: H5端设置 sourceType 仍然无效 ~

chooseImage({sourceType: ['camera'] ...)

@xoptimal
Copy link

更新版本后 仍然无效 @Garfield550

@shenghanqin
Copy link
Collaborator

@hblz 试试看最新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants