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

组件在微信端使用部分机型会出现除图库外其他目录均不可选状态 #232

Open
awen1988 opened this issue Apr 24, 2019 · 1 comment

Comments

@awen1988
Copy link

上传组件在微信端使用部分机型出现除图库外其他所有目录图片均为灰色无法选择状态,经作者解答是因为图片的mime_type有限制,解决方法只需要在调用组件的页面的mounted生命周期动态修改掉accept属性即可
代码如下:
mounted () { let fileInput = document.querySelector('input[type="file"]') fileInput.setAttribute('accept', 'image/*') // console.log(fileInput) }

@awen1988 awen1988 changed the title 组件在微信端使用不会机型会出现除图库外其他目录均不可选状态 组件在微信端使用部分机型会出现除图库外其他目录均不可选状态 Apr 24, 2019
@Tammeny
Copy link

Tammeny commented Aug 19, 2019

这个组件的inputAccept属性可以支持将accept设为image/*,但是我设置了之后,依然会存在你这个问题。

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

2 participants