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控件没有删除文件方法 #355

Open
1 task
superuirui opened this issue Dec 18, 2023 · 2 comments
Open
1 task

upload控件没有删除文件方法 #355

superuirui opened this issue Dec 18, 2023 · 2 comments

Comments

@superuirui
Copy link

Basic Info

What are the similar cases of this feature

比如在功能弹窗里,使用该控件,每次打开不同的弹窗,都会显示上次已上传的文件,需要增加一个删除已上传文件的方法来重置这个状态

What problem does this feature solve?

希望能增加删除文件方法clearFile

@ChinaYC
Copy link

ChinaYC commented Dec 18, 2023

组件的有个@before-remove你看看能不能满足, 或者每次加载组件的时候手动清空下绑定的数据。

@superuirui
Copy link
Author

组件的有个@before-remove你看看能不能满足, 或者每次加载组件的时候手动清空下绑定的数据。

不行哦,@before-remove这个只是在点击删除按钮的时候会触发,用不到...
清空绑定数据也不行,我是手动上传的,用的是@onchange来获取已选择的文件,然后在用户点击【确定】按钮的时候手动去上传。

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