-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #636 from brianzhang/feat/upload-allow-duplicated-…
…file feat(upload): add allowUploadDuplicateFile props
- Loading branch information
Showing
11 changed files
with
214 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<div class="t-upload__file-flow-demo"> | ||
<div>是否重复文件上传:<t-switch v-model="allowUploadDuplicateFile"></t-switch></div> | ||
<t-upload | ||
v-model="files" | ||
action="https://service-bv448zsw-1257786608.gz.apigw.tencentcs.com/api/upload-demo" | ||
placeholder="支持批量上传文件,文件格式不限,最多只能上传 10 份文件" | ||
theme="file-flow" | ||
multiple | ||
:allowUploadDuplicateFile="allowUploadDuplicateFile" | ||
:auto-upload="false" | ||
:max="10" | ||
></t-upload> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'TUploadFileFlow', | ||
data() { | ||
return { | ||
files: [], | ||
allowUploadDuplicateFile: false, | ||
}; | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule _common
updated
8 files
+7 −0 | docs/web/api/upload.md | |
+2 −1 | js/tree/tree-store.ts | |
+2 −0 | js/tree/types.ts | |
+1 −1 | js/upload/types.ts | |
+2 −2 | js/upload/xhr.ts | |
+9 −0 | style/mobile/components/back-top/_index.less | |
+8 −0 | style/web/components/select/_index.less | |
+11 −9 | style/web/components/select/_var.less |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters