vue-image-upload-resize
Version:
A simple Vue.js component for client-side image upload with resizing
20 lines (15 loc) • 370 B
JavaScript
import ImageUploader from './ImageUploader.vue'
function plugin (Vue) {
Vue.component('image-uploader', ImageUploader)
}
// Install by default if using the script tag
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin)
}
export default plugin
const version = '__VERSION__'
// Export all components too
export {
ImageUploader,
version
}