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

[新功能需求] wd-upload自定义上传支持promise类型的函数 #859

Open
Azir-11 opened this issue Jan 20, 2025 · 0 comments
Open
Labels
feature: need confirm 待确认的新特性

Comments

@Azir-11
Copy link

Azir-11 commented Jan 20, 2025

这个功能解决了什么问题?

在某些场景,我可能需要在自定义上传里面执行一些异步操作,比如转换图片类型、请求后端校验等,这个时候需要upload-method是异步等待的,现在还不支持,在当前直接传入async的方法没有任何反馈或提示,会直接不执行,使用组件默认的上传方法

你期望的 API 是什么样子的?

<wd-upload
        v-model:file-list="fileList"
        :upload-method="customUpload"
      />

async function customUpload(){
....
}
@Azir-11 Azir-11 added the feature: need confirm 待确认的新特性 label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: need confirm 待确认的新特性
Projects
None yet
Development

No branches or pull requests

1 participant