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

[Upload] SourceTypeValues = 'album' | 'camera' 能加一个 “messagefile”吗? #3367

Open
HMFDream opened this issue Dec 18, 2024 · 2 comments
Labels
wontfix This will not be worked on

Comments

@HMFDream
Copy link

这个功能解决了什么问题

选择照片的时候,希望能给出三个选项,增加用户的选择。

你建议的方案是什么?

通过某一个属性配置,可以调整支持的选项

Copy link
Contributor

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

@anlyyao
Copy link
Collaborator

anlyyao commented Dec 19, 2024

@HMFDream 你好,Upload 组件目前主要用到 wx.chooseMedia() 和 wx.chooseMessageFile() 两个API, 通过 source 属性区分调用。如果 source 取 media,会走 wx.chooseMedia(), type SourceTypeValues 对齐的也是该api的 sourceType 属性,无法变更;如果 source 取 messageFile,会走 wx.chooseMessageFile()。

@anlyyao anlyyao added the wontfix This will not be worked on label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants