mirror of
https://github.com/keven1024/015.git
synced 2026-06-08 21:34:33 +00:00
feat: enhance FileIcon and FileUpload components to support size prop and multi-file uploads, improving user experience and flexibility
This commit is contained in:
@@ -28,9 +28,9 @@ useEventListener(document, 'paste', (evt: ClipboardEvent) => {
|
||||
<template>
|
||||
<FileUpload
|
||||
@onChange="
|
||||
(file) => {
|
||||
(files) => {
|
||||
// 这里没hash,我们姑且认为name和size,type都一样的为同一个文件
|
||||
setValue([...filterOutSameFile(value, [file]), file])
|
||||
setValue([...filterOutSameFile(value, files), ...files])
|
||||
}
|
||||
"
|
||||
v-slot="{ isOverDropZone }"
|
||||
|
||||
Reference in New Issue
Block a user