Skip to content

Commit

Permalink
Release 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwagerfield committed Dec 6, 2022
1 parent c76f23e commit bcc2bbb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,13 @@ Create a file upload dropzone using the `UploadDropzone` component:
<script>
import { Uploader } from "uploader";
import { UploadDropzone } from "@upload-io/vue-uploader";
import type { UploaderOptions, UploaderResult } from "uploader";
// One instance per app.
const uploader = Uploader({ apiKey: "free" });
// See "customization" below.
const options = {
const options: UploaderOptions = {
multi: true
};
Expand All @@ -204,12 +205,11 @@ export default {
};
},
methods: {
onFileUploaded: (files) => {
onFileUploaded: (files: UploaderResult[]) => {
if (files.length === 0) {
console.log("No files selected.");
alert("No files selected.");
} else {
console.log("Files uploaded:");
console.log(files.map(f => f.fileUrl));
alert(files.map(f => f.fileUrl).join("\n"));
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@upload-io/vue-uploader",
"version": "2.1.0",
"version": "2.2.0",
"author": "Upload <hello@upload.io> (https://upload.io)",
"description": "Vue File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐",
"license": "MIT",
Expand Down Expand Up @@ -75,7 +75,7 @@
"vue": ">=3.0.0"
},
"dependencies": {
"uploader": "^2.6.0"
"uploader": "^2.7.0"
},
"devDependencies": {
"@babel/cli": "7.17.6",
Expand Down
2 changes: 1 addition & 1 deletion src/UploadDropzone.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
ref="container"
:style="{ position: 'relative', width: '100%', maxWidth: widthOrDefault, height: heightOrDefault }"
:style="{ position: 'relative', width: '100%', minWidth: '280px', maxWidth: widthOrDefault, height: heightOrDefault }"
></div>
</template>

Expand Down

0 comments on commit bcc2bbb

Please sign in to comment.