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

[t-upload] 上传进度一直停在0%,如果用onProgress获取百分比,则会先快速到100%,然后再重新开始递进。 #1062

Closed
jasonxxp opened this issue Jun 24, 2022 · 3 comments
Labels
to be published to be published

Comments

@jasonxxp
Copy link

tdesign-vue-next 版本

0.16.1

重现链接

No response

重现步骤

<t-upload v-model="files" action="/" accept=".csv,.txt" tips="仅支持csv、txt格式上传"
:percent="percent" :format-response="formatResponse" @progress="onProgress" @fail="handleFail" />

methods: {
onProgress(obj) {
this.percent = obj.percent;
console.log(上传中:${obj.percent}%);
},
}

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

👋 @jasonxxp,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@PengYYYYY PengYYYYY added the to be published to be published label Jun 25, 2022
@PengYYYYY PengYYYYY mentioned this issue Jun 25, 2022
15 tasks
@github-actions github-actions bot mentioned this issue Jun 27, 2022
15 tasks
@PengYYYYY
Copy link
Collaborator

0.17.0已修复

@jasonxxp
Copy link
Author

现在不加:percent="percent" progress="onProgress" 是能显示进度了,但以上传三百多M的文件为例,进度一开始还是在乱跳,过了一会儿到了60%多才开始慢慢正常上升到100%。

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

No branches or pull requests

2 participants