项目
在 GitHub 查看
TerryZ/v-uploader
关于
A Vue2 plugin make files upload simple and easier, single file upload with image preview, multiple upload with drag and drop
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
v-uploader
A Vue2 plugin make files upload simple and easier,
single file upload with image preview, multiple upload with drag and drop
Examples and Documentation
Explorer on
Plugin preview
Single file upload with image preview

Multiple files upload with drag and drop

Installation
npm i v-uploader -S
Include and install plugin in your main.js file.
import Vue from 'vue'
import Uploader from 'v-uploader'
import { DialogAlert } from 'v-dialogs'
/**
* v-uploader plugin global config
*/
const uploaderConfig = {
uploadFileUrl: 'https://some-site/upload',
deleteFileUrl: 'https://some-site/delete',
showMessage: (vue, message) => {
// using v-dialogs to display error message
DialogAlert(message, { messageType: 'error' })
}
}
// Globally install plugin with options
Vue.use(Uploader, uploaderConfig)
Use v-dialogs plugin to display message for example
Dependencies
License
探索相关项目
加载中…