@bytescale/upload-widget-vue
Advanced tools
Comparing version 4.5.0 to 4.5.1
{ | ||
"name": "@bytescale/upload-widget-vue", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)", | ||
@@ -93,3 +93,3 @@ "description": "Vue File Upload UI Widget โ Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more ๐ Comes with Cloud Storage ๐", | ||
"babel-plugin-transform-async-to-promises": "0.8.15", | ||
"chromedriver": "^115.0.0", | ||
"chromedriver": "^117.0.0", | ||
"enzyme": "3.11.0", | ||
@@ -96,0 +96,0 @@ "eslint": "7.32.0", |
@@ -135,4 +135,4 @@ <h1 align="center"> | ||
<UploadDropzone :options="options" | ||
:on-complete="onFilesUploaded" | ||
:on-update="onFileListChanged" | ||
:on-complete="onFilesUploaded" | ||
width="600px" | ||
@@ -165,5 +165,5 @@ height="375px" /> | ||
methods: { | ||
onFileListChanged(event: UploadWidgetOnUpdateEvent) { | ||
console.log("On update:"); | ||
console.log(JSON.stringify(event)); | ||
onFileListChanged({ uploadedFiles, pendingFiles }: UploadWidgetOnUpdateEvent) { | ||
const uploadedFileUrls = uploadedFiles.map(x => x.fileUrl).join("\n"); | ||
console.log(uploadedFileUrls); | ||
}, | ||
@@ -182,2 +182,10 @@ onFilesUploaded(files: UploadWidgetResult[]) { | ||
> **Special behaviour for dropzones:** | ||
> | ||
> `on-complete` only fires when `showFinishButton = true` (i.e. when the user clicks "Finish"). | ||
> | ||
> `on-update` must be used when `showFinishButton = false`. | ||
> | ||
> Default value: `showFinishButton = false` | ||
## Result | ||
@@ -184,0 +192,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48122
554