Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uview-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李晖
uview-ui
Commits
739cb489
Unverified
Commit
739cb489
authored
Dec 14, 2021
by
test
Committed by
GitHub
Dec 14, 2021
Browse files
Options
Browse Files
Download
Plain Diff
修改upload组件单词拼写错误导致终止上传失效,及进度条100后隐藏
修改upload组件单词拼写错误导致终止上传失效,及进度条100后隐藏
parents
2dc0717e
970c28da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
u-upload.vue
uview-ui/components/u-upload/u-upload.vue
+2
-2
No files found.
uview-ui/components/u-upload/u-upload.vue
View file @
739cb489
...
...
@@ -21,7 +21,7 @@
<u-icon
class=
"u-icon"
:name=
"delIcon"
size=
"20"
:color=
"delColor"
></u-icon>
</view>
<u-line-progress
v-if=
"showProgress && item.progress > 0 && !item.error"
v-if=
"showProgress && item.progress > 0 &&
item.progress != 100 &&
!item.error"
:show-percent=
"false"
height=
"16"
class=
"u-progress"
...
...
@@ -498,7 +498,7 @@ export default {
// 执行移除图片的动作,上方代码只是判断是否可以移除
handlerDeleteItem
(
index
)
{
// 如果文件正在上传中,终止上传任务,进度在0
<
progress
<
100
则意味着正在上传
if
(
this
.
lists
[
index
].
pro
cess
<
100
&&
this
.
lists
[
index
].
proc
ess
>
0
)
{
if
(
this
.
lists
[
index
].
pro
gress
<
100
&&
this
.
lists
[
index
].
progr
ess
>
0
)
{
typeof
this
.
lists
[
index
].
uploadTask
!=
'
undefined
'
&&
this
.
lists
[
index
].
uploadTask
.
abort
();
}
this
.
lists
.
splice
(
index
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment