jd-opensource / jd-opensource/taro-ui

建议 把Taro UI组件中的AtSearchBar图片上传组件中选择文件类型开放

Open
#1,124 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

### 这个特性解决了什么问题?
现阶段AtImagePicker无法上传文件类型

### 这个 API 长什么样?
node_modules/taro-ui/dist/h5/components/image-picker/index.js中是AtImagePicker的暴露方法,node_modules/@tarojs/taro-h5/src/api/image/chooseImage.js中是chooseImage上传核心类,其中obj.setAttribute('accept', 'image/*')的image/*希望能用*,或者在暴露方法中让用户自己去选择文件类型,这样更灵活一些,希望下个版本能更新

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.