Components
BaseUploadList
Files being uploaded, each with its progress, and a close button once all are done.
components/ui/BaseUploadList.vue
View in the demo
Example
Uploading 1 files
Quarterly report.pdfDone
Team photo.jpg64%
Keep the uploads in your page or composable ({ id, name, progress, done }) and update progress as each file goes up. The list renders nothing while it is empty, so it can stay in the page. Position it with a class: the file manager pins it to the bottom corner through FileManagerUploads. The header text is yours, so it can say "Uploading 2 files" or "3 files uploaded".
API
Props
Name | Type | Default | Description |
|---|---|---|---|
uploadsrequired | BaseUpload[] | — | The files being uploaded { id, name, progress, done }; progress goes from 0 to 100. Nothing renders while it is empty. |
titlerequired | string | — | The header, such as "Uploading 2 files" or "3 files uploaded". |
done-text | string | — | The label of a finished file. |
close-text | string | — | The accessible name of the close button, shown once every upload is done. |
Events
Name | Payload | Description |
|---|---|---|
@clear | — | The close button was pressed after every upload finished. |