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] Upload上传后,点击图片的事件,能否完全给开发者自定义 #3099

Closed
dadtakesmefly opened this issue Aug 26, 2024 · 3 comments

Comments

@dadtakesmefly
Copy link
Contributor

这个功能解决了什么问题

因为有的业务需求,点击图片后,实现预览,需要有删除按钮。这样可以和ImageViewer结合。但是现在因为官方默认使用了preview API,所以这个没办法自定义。

你建议的方案是什么

建议将图片点击的事件完全暴露出来。给一个配置,默认使用官方的预览或者开发者自定义实现预览。

Copy link
Contributor

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

@dadtakesmefly
Copy link
Contributor Author

目前我自己打了一个patches,实现了想要的效果。

@Tencent Tencent deleted a comment from dadtakesmefly Sep 1, 2024
@jarmywang
Copy link
Collaborator

感谢建议,目前暂不考虑,可以通过hook onProofTap方法改掉原来的处理方式

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