[RFC] Sender onPasteFile 回调增加 files 参数,以支持获取到黏贴文件列表 #504
ztkuaikuai
started this conversation in
RFC
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
给 Sender 组件中
onPasteFile
回调添加files: FileList
参数。当用户复制多个文件黏贴在 Sender 输入框中,开发者能够获取到所有复制的文件,从而方便后续处理。
link to: #494
Motivation
Sender 的
onPasteFile
回调只能获取到黏贴的第一个文件,开发者难以获取到黏贴的全部文件进行后续处理。相关代码:
API
usage
修改自粘贴图片 Demo :
2 votes ·
Beta Was this translation helpful? Give feedback.
All reactions