Skip to content
On this page

Upload

This is an upload component that has three types: inline, file and image.

Usage

Props

ComponentSkin skinIndicates which skin should be used for the component Default value: ComponentSkin.DESIGN_SYSTEM
pandads
string uploaderTypeIndicates the type of uploader Default value: inline
boolean fileUploadingIndicates if there is a file uploading Default value: false
boolean fileErrorIndicates if there is an error with the file Default value: false
boolean disabledIndicates if the uploader is disabled Default value: false
string fileUrlContains the file url Default value: test.com
string fileNameContains the file name Default value: test.jpg

Slots

defaultUse this default slot for uploader inline type title
action-textUse this slot for uploader action text
supplement-textUse this slot for file uploader supplement text

Events

FileList upload-fileEmitted when you have selected a file to upload
delete-fileEmitted when you click on trash icon to delete the uploaded file
show-fileEmitted when you click on the uploaded file green title