This commit is contained in:
2025-09-18 18:48:55 +08:00
parent 3d7f8c3a75
commit 5665fcf44a
23 changed files with 1091 additions and 96 deletions
@@ -4,6 +4,7 @@
v-model="fileList"
:before-read="beforeRead"
:after-read="afterRead"
:before-delete="beforeDelete"
multiple
progress
:accept="accept"
@@ -128,12 +129,16 @@ module.exports = {
}
},
methods: {
beforeDelete(file) {
this.fileList = this.fileList.filter((f) => f.url !== file.url)
this.$emit("update:value", this.fileList)
},
beforeRead(file) {
return true
},
afterRead(files) {
this.fileList.map((f) => {
if (f.file && f.file.name === files.file.name ) {
if (f.file && f.file.name === files.file.name) {
f.status = "loading"
}
})