mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
chore: fix lint
This commit is contained in:
parent
0a3e60da6a
commit
b09818195d
@ -71,7 +71,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
handleFileListChange (value) {
|
||||
message.info("Yes, file-list changed.")
|
||||
message.info('Yes, file-list changed.')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
handleFileListChange (value) {
|
||||
message.info("是的,file-list 的值变了")
|
||||
message.info('是的,file-list 的值变了')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -327,21 +327,23 @@ export default defineComponent({
|
||||
file: file,
|
||||
url: null
|
||||
}
|
||||
if (!onBeforeUpload || await onBeforeUpload({
|
||||
if (
|
||||
!onBeforeUpload ||
|
||||
(await onBeforeUpload({
|
||||
file: fileInfo,
|
||||
fileList: mergedFileListRef.value
|
||||
}) !== false) {
|
||||
})) !== false
|
||||
) {
|
||||
doChange(fileInfo, e, {
|
||||
append: true
|
||||
})
|
||||
}
|
||||
})
|
||||
)
|
||||
.then(() => {
|
||||
if (props.defaultUpload) {
|
||||
submit()
|
||||
}
|
||||
})
|
||||
).then(() => {
|
||||
if (props.defaultUpload) {
|
||||
submit()
|
||||
}
|
||||
})
|
||||
}
|
||||
function submit (fileId?: string): void {
|
||||
const {
|
||||
|
Loading…
Reference in New Issue
Block a user