github-actions[bot] 9d03b6f600 Release: uppy@3.0.0-beta.5 (#3991) 2 年之前
..
src 5e38c83564 @uppy/vue: enforce use of file extension within the import path (#3560) 3 年之前
types 6c80dfca86 @uppy/vue: add Vue FileInput component (#3125) 3 年之前
.gitignore b082e54029 Vue integration (#2500) 4 年之前
.npmignore e65f2b0397 add `.npmignore` files to ignore .gitignore when packing (#3380) 3 年之前
CHANGELOG.md 3f34af100b Release: uppy@2.11.0 (#3796) 3 年之前
LICENSE b082e54029 Vue integration (#2500) 4 年之前
README.md 6f9813d9b2 doc: update bundler recommendation (#3763) 3 年之前
package.json 9d03b6f600 Release: uppy@3.0.0-beta.5 (#3991) 2 年之前

README.md

@uppy/vue

npm version CI status for Uppy tests CI status for Companion tests CI status for browser tests

Vue component wrappers around Uppy’s officially maintained UI plugins.

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

<template>
  <dashboard-modal 
  :uppy="uppy" 
  :open="open" 
  :props="{
    onRequestCloseModal: handleClose
  }"/>
</template>

<script>
import Uppy from '@uppy/core'
import { DashboardModal } from '@uppy/vue'

export default {
  components: {
    DashboardModal
  },
  computed: {
    uppy: () => new Uppy()
  },
  data () {
    return {
      open: false
    }
  },
  methods: {
    handleClose() { this.open = false }
  }
}
</script>

Installation

$ npm install @uppy/vue

Alternatively, you can also use this plugin in a pre-built bundle from Transloadit’s CDN: Edgly. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.

Documentation

Documentation for this plugin can be found on the Uppy website.

License

The MIT License.