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

@file-added="onFileAdded"中的参数失去响应式 #204

Open
squanchxiong opened this issue Oct 31, 2022 · 0 comments
Open

@file-added="onFileAdded"中的参数失去响应式 #204

squanchxiong opened this issue Oct 31, 2022 · 0 comments

Comments

@squanchxiong
Copy link

bug:onFileAdded(file)的参数file中有很多key->value,第一次传文件的参数file里面的set和get都齐全,但第二次就有一些没有set和get,例如_prevProgress。

发生场景:通过file对象拿_prevProgress,以显示自定义进度条。发现第一次传文件进度条是正常的,第二次进度条不动。

解决方案:file.progress()可以拿到上传进度。但不是响应式,需要在@file-progress="onFileProgress"里面人工调用。

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

1 participant