We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
上传组件在微信端使用部分机型出现除图库外其他所有目录图片均为灰色无法选择状态,经作者解答是因为图片的mime_type有限制,解决方法只需要在调用组件的页面的mounted生命周期动态修改掉accept属性即可 代码如下: mounted () { let fileInput = document.querySelector('input[type="file"]') fileInput.setAttribute('accept', 'image/*') // console.log(fileInput) }
mounted () { let fileInput = document.querySelector('input[type="file"]') fileInput.setAttribute('accept', 'image/*') // console.log(fileInput) }
The text was updated successfully, but these errors were encountered:
这个组件的inputAccept属性可以支持将accept设为image/*,但是我设置了之后,依然会存在你这个问题。
Sorry, something went wrong.
No branches or pull requests
上传组件在微信端使用部分机型出现除图库外其他所有目录图片均为灰色无法选择状态,经作者解答是因为图片的mime_type有限制,解决方法只需要在调用组件的页面的mounted生命周期动态修改掉accept属性即可
代码如下:
mounted () { let fileInput = document.querySelector('input[type="file"]') fileInput.setAttribute('accept', 'image/*') // console.log(fileInput) }
The text was updated successfully, but these errors were encountered: