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

[t-upload] 图片上传不支持新版的基础库 #2505

Open
lixunhui opened this issue Dec 19, 2023 · 2 comments
Open

[t-upload] 图片上传不支持新版的基础库 #2505

lixunhui opened this issue Dec 19, 2023 · 2 comments
Labels
question This is a question, not a bug

Comments

@lixunhui
Copy link

lixunhui commented Dec 19, 2023

tdesign-miniprogram 版本

1.2.5

重现链接

No response

重现步骤

1、3.0.2基础库不支持chooseImage已经停止维护
t-upload模块调用了wx.chooseImage(Object object),但是wx.chooseImage(Object object)
从基础库 2.21.0 开始,本接口停止维护,请使用 wx.chooseMedia 代替;

期望结果

1、是否有计划升级最新的基础库,替换wx.chooseImage为wx.chooseMedia;

实际结果

wx.chooseImage停止维护

基础库版本

3.0.2

补充说明

No response

@lixunhui lixunhui changed the title [组件名称] 描述问题的标题 [t-upload] 图片上传不支持新版的基础库,配置config无法默认视频camera拍照 Dec 19, 2023
@lixunhui lixunhui changed the title [t-upload] 图片上传不支持新版的基础库,配置config无法默认视频camera拍照 [t-upload] 图片上传不支持新版的基础库,配置config后无法直接调起camera拍照 Dec 19, 2023
@lixunhui lixunhui changed the title [t-upload] 图片上传不支持新版的基础库,配置config后无法直接调起camera拍照 [t-upload] 图片上传不支持新版的基础库 Dec 19, 2023
Copy link
Contributor

👋 @lixunhui,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@betavs
Copy link
Collaborator

betavs commented Dec 20, 2023

目前就是wx.chooseMedia啊🤔,你目前用的版本号是多少呢

chooseMedia(mediaType) {
const { config, sizeLimit, customLimit } = this.data;
wx.chooseMedia({
count: customLimit,
mediaType,
...config,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants