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 组件支持禁用 drap & drop 功能 #48300

Open
Xheldon opened this issue Apr 6, 2024 · 2 comments
Open

Upload 组件支持禁用 drap & drop 功能 #48300

Xheldon opened this issue Apr 6, 2024 · 2 comments

Comments

@Xheldon
Copy link

Xheldon commented Apr 6, 2024

What problem does this feature solve?

目前默认情况,即使是一个 Upload 组件(不是 Dragger),也可以通过将文件拖拽到按钮的方式,进行上传,这不是符合预期的行为。(如果我需要拖拽上传,我会使用 Dragger)

What does the proposed API look like?

<Upload noDrop />
@afc163
Copy link
Member

afc163 commented Apr 7, 2024

What does the proposed API look like?

@Wxh16144
Copy link
Member

Wxh16144 commented Apr 7, 2024

应该不需要额外加 props,看起来是 antd 的逻辑需要调整一下,onDrop 应该任何时候都回调用, 开发者通过阻止默认行为去阻止。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants