This commit is contained in:
BianLzhaoMin 2025-12-08 17:21:03 +08:00
parent 06a68a14c5
commit 45b11a12c5
4 changed files with 14 additions and 2 deletions

View File

@ -57,7 +57,9 @@
type="primary"
@click="$emit('start-upload', null)"
:disabled="
fileList.length === 0 || selectedTag.length === 0
fileList.length === 0 ||
selectedTag.length === 0 ||
newTagsList.length === 0
"
>
开始标注
@ -79,6 +81,10 @@ export default {
type: Array,
default: () => [],
},
newTagsList: {
type: Array,
default: () => [],
},
},
computed: {
uploadLimit() {

View File

@ -38,6 +38,7 @@
<FileUploader
:file-list="fileList"
:selected-tag="selectedTag"
:new-tags-list="newTagsList"
@file-change="
(file, fileList) => $emit('file-change', file, fileList)
"
@ -96,6 +97,10 @@ export default {
type: Array,
default: () => [],
},
newTagsList: {
type: Array,
default: () => [],
},
fileList: {
type: Array,
default: () => [],

View File

@ -1009,7 +1009,6 @@ export default {
this.$refs.saveTagInput.$refs.input.focus()
})
},
handleInputConfirm() {
let inputValue = this.inputValue

View File

@ -40,6 +40,7 @@
<FileUploader
:file-list="fileList"
:selected-tag="selectedTag"
:new-tags-list="newTagsList"
@file-change="handleFileChange"
@remove-image="removeImage"
@start-upload="startUpload"
@ -57,6 +58,7 @@
:tags="tags"
:visible-tags="visibleTags"
:selected-tag="selectedTag"
:new-tags-list="newTagsList"
:file-list="fileList"
:is-sure="isSure"
@hand-click="handleHandClick"