测试bug修改

This commit is contained in:
仲么了
2023-08-17 09:24:59 +08:00
parent 792e1ce7d7
commit 6bc28e4f44
33 changed files with 1066 additions and 826 deletions

View File

@@ -106,7 +106,10 @@
}
},
// #endif
beforeRemove: {
type: Function,
default: () => {}
},
disabled: {
type: Boolean,
default: false
@@ -514,7 +517,12 @@
* 删除文件
* @param {Object} index
*/
delFile(index) {
async delFile(index) {
let res = await this.beforeRemove({
tempFile: this.files[index],
tempFilePath: this.files[index].url
})
if (res === false) return
this.$emit('delete', {
tempFile: this.files[index],
tempFilePath: this.files[index].url
@@ -569,6 +577,7 @@
let newFilesData = []
files.forEach(v => {
newFilesData.push({
...v,
extname: v.extname,
fileType: v.fileType,
image: v.image,