Ap-dropzone
Example
Supported formats : image/jpeg
ts
<ApDropZone title="Drop files here..." :multiple="true" :formats="[ 'image/jpeg']"/>
Props
Name | Type | Default | Required |
---|---|---|---|
title | String | Drop a file here or click to select one | false |
multiple | Boolean | false | false |
formats | array | ['*'] | false |
Emit
ts
const emitEvent = (fileList: File[]) => {
emit('update:dropFile', fileList)
}