Skip to content

Commit 211b66e

Browse files
authored
修改upload组件单词拼写错误导致终止上传失效,及进度条100后隐藏
1 parent b347774 commit 211b66e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uview-ui/components/u-upload/u-upload.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<u-icon class="u-icon" :name="delIcon" size="20" :color="delColor"></u-icon>
2222
</view>
2323
<u-line-progress
24-
v-if="showProgress && item.progress > 0 && !item.error"
24+
v-if="showProgress && item.progress > 0 && item.progress !=100 && !item.error"
2525
:show-percent="false"
2626
height="16"
2727
class="u-progress"
@@ -498,7 +498,7 @@ export default {
498498
// 执行移除图片的动作,上方代码只是判断是否可以移除
499499
handlerDeleteItem(index) {
500500
// 如果文件正在上传中,终止上传任务,进度在0 < progress < 100则意味着正在上传
501-
if (this.lists[index].process < 100 && this.lists[index].process > 0) {
501+
if (this.lists[index].progress < 100 && this.lists[index].progress > 0) {
502502
typeof this.lists[index].uploadTask != 'undefined' && this.lists[index].uploadTask.abort();
503503
}
504504
this.lists.splice(index, 1);

0 commit comments

Comments
 (0)