1.1.1 • Published 3 years ago

file2upload v1.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

vue 文件(图片)上传组件

安装

npm install file2upload or yarn add file2upload

属性

字段描述值类型默认值
v-model文件数据Array[]
action文件上传的urlString''
max文件上传的最大数量Number10
simultaneous-uploads可同时上传的文件数量Number3
accept文件上传类型Stringimage/*
multiple是否允许用户选择多个文件Booleantrue
beforeUploadCheck上传前的校验方法,判断是否要上传Functionnull

事件

字段描述回调参数
file-success文件上传成功后触发file 对象,index 索引值
file-error文件上传失败后触发file 对象,index 索引值
file-removed文件删除后触发file 对象,index 索引值
file-click文件点击后触发file 对象,index 索引值

使用范例

通过 npm run dev 查看使用范例

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago