Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with sortable #372

Open
wants to merge 264 commits into
base: 1.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
264 commits
Select commit Hold shift + click to select a range
176ff0a
Allow non-string elements in data object
Feb 18, 2017
0195eca
Merge pull request #39 from xengulai/2.0
lian-yue Feb 19, 2017
e4705d3
version
lian-yue Feb 19, 2017
b782af2
Add example
lian-yue Mar 6, 2017
26f5305
Update devtool
lian-yue Mar 6, 2017
7be691b
.
lian-yue Mar 6, 2017
b3da037
fix 2 errors in example.
lukeb Mar 10, 2017
a59a2f8
Merge pull request #45 from lukeb/2.0
lian-yue Mar 10, 2017
e4287f7
fix devtool
lian-yue Mar 13, 2017
25d906a
Merge remote-tracking branch 'github/2.0' into 2.0
lian-yue Mar 13, 2017
656a9b6
fix example url
lian-yue Mar 13, 2017
cb7d7bc
Add Features #44
lian-yue Mar 13, 2017
0071bd5
Add props thread
lian-yue Mar 13, 2017
77e13e0
Update
lian-yue Mar 14, 2017
5e80c29
Merge branch 'gh-pages' of github.com:lian-yue/vue-upload-component i…
lian-yue Mar 14, 2017
fb6a940
Fix thread
lian-yue Mar 20, 2017
bfa1949
Merge branch '2.0' into gh-pages
lian-yue Mar 20, 2017
cdfaf3f
Adds slot for inner html
docnoe Apr 5, 2017
decbd7b
Merge pull request #1 from docnoe/docnoe-patch-1
docnoe Apr 5, 2017
a61c424
Switching from render function to template
docnoe Apr 5, 2017
44e033f
build
docnoe Apr 5, 2017
cab0135
2.3.0
docnoe Apr 5, 2017
7e8caa8
fix: InputFile component does not bind props
docnoe Apr 5, 2017
e9f72b0
Merge pull request #3 from docnoe/develop
docnoe Apr 5, 2017
6cf882b
Merge pull request #50 from docnoe/docnoe-patch-1
lian-yue Apr 26, 2017
75fd49b
Add SSR, props.title support HTML
lian-yue Apr 26, 2017
5076e38
Update md
lian-yue Apr 26, 2017
5be0900
fix #52
lian-yue May 1, 2017
cc404ad
fix #56
lian-yue May 7, 2017
e2f7e18
Merge branch '2.0' into gh-pages
lian-yue May 7, 2017
05d6158
V2.4.0-beta.1
lian-yue Jun 8, 2017
5b26b07
Add v-model
lian-yue Jun 15, 2017
4d43a30
Add Drop folder #32
lian-yue Jun 19, 2017
5aae7d5
Add upload directory
lian-yue Jun 19, 2017
2738d7a
Add script to import:
lian-yue Aug 10, 2017
dae502d
fix libraryTarget = 'umd';
lian-yue Aug 10, 2017
3d92f77
Fix #71
lian-yue Aug 14, 2017
c70dc2f
Fix the demo filter, Add post name
lian-yue Aug 16, 2017
f6e09f2
Add props inputId
lian-yue Aug 17, 2017
f0972e4
Detailed event type judgment
lian-yue Aug 17, 2017
5202df8
Fix #60, Remove props.filter
lian-yue Aug 17, 2017
993b56a
Fix example blob
lian-yue Aug 17, 2017
062b6fd
Fix #77
lian-yue Aug 21, 2017
a5a7a7d
Add unpkg
lian-yue Aug 22, 2017
7a3af5e
v2.5.0-beta.1
lian-yue Aug 31, 2017
7b9dac4
Fix es6-promise
lian-yue Aug 31, 2017
058c838
update version
lian-yue Aug 31, 2017
c933a66
Fix wrap
lian-yue Aug 31, 2017
104dbeb
Fix drag upload
lian-yue Aug 31, 2017
87ff993
Update README
lian-yue Sep 1, 2017
9429278
fix dropDirectory
lian-yue Sep 1, 2017
9615613
update README
lian-yue Sep 1, 2017
9a4f07f
Fix `firefox` upload folder prompt window
lian-yue Sep 3, 2017
f3867fb
fix dataTransfer `kind=string`
lian-yue Sep 17, 2017
8b847bb
fix dataTransfer `kind=string`
lian-yue Sep 17, 2017
14cec0d
Remove .babelrc
lian-yue Sep 19, 2017
7a32970
Update docs
lian-yue Sep 19, 2017
6f3379f
Update version
lian-yue Sep 19, 2017
71d98e0
Update docs
lian-yue Sep 19, 2017
3a5a235
`vue-upload-component\/src`
lian-yue Sep 19, 2017
24bb304
Fix `newFile.name`
lian-yue Sep 22, 2017
4207dc0
v2.6.0-beta.1
lian-yue Oct 8, 2017
c6b1011
Fix H2
lian-yue Oct 8, 2017
5ef5575
flx regeneratorRuntime is not defined
lian-yue Oct 8, 2017
9a5562e
fix Source code link
lian-yue Oct 8, 2017
ef614e5
fix Source code link
lian-yue Oct 8, 2017
5ce75ac
Add gzip icon
lian-yue Oct 8, 2017
f25f126
Add examples
lian-yue Oct 8, 2017
27dca17
Add viewport meta
lian-yue Oct 8, 2017
49eb5f6
update Source code
lian-yue Oct 8, 2017
f65a220
build
lian-yue Oct 8, 2017
a44e89a
Create CNAME
lian-yue Oct 8, 2017
bbba94e
Delete CNAME
lian-yue Oct 8, 2017
657fd2f
fix toBlob
lian-yue Oct 9, 2017
d25e9e2
fix className
lian-yue Oct 9, 2017
40790e8
build
lian-yue Oct 9, 2017
778122a
fix #94
lian-yue Oct 9, 2017
adfea6e
build
lian-yue Oct 9, 2017
207a000
Merge branch 'master' of github.com:lian-yue/vue-upload-component
lian-yue Oct 9, 2017
88047f6
fix to.hash
lian-yue Oct 14, 2017
9493161
fix to.hash
lian-yue Oct 14, 2017
17369cd
Add, props add-index, method replace. Modify method add(files, index)
lian-yue Oct 19, 2017
b794ecb
build
lian-yue Oct 19, 2017
ff2ecda
Update md
lian-yue Oct 19, 2017
28bb076
build
lian-yue Oct 19, 2017
be060d2
window.File -> window.Blob
lian-yue Oct 20, 2017
d4a85ca
update docs, add automatic compression
lian-yue Oct 20, 2017
e1251ba
add automatic compression
lian-yue Oct 20, 2017
d4c1a49
add ImageCompressor
lian-yue Oct 20, 2017
081b2ac
build
lian-yue Oct 20, 2017
bb4cc18
fix line feed
lian-yue Oct 20, 2017
b9534be
build
lian-yue Oct 20, 2017
50f5785
fix line feed
lian-yue Oct 20, 2017
396e269
build
lian-yue Oct 20, 2017
9307218
Add image-compressor script
lian-yue Oct 20, 2017
c0d5c65
Fix put-action
lian-yue Oct 21, 2017
d4c117f
Auto scrollTo hash
lian-yue Oct 21, 2017
815500d
Build
lian-yue Oct 21, 2017
94a09ce
Auto scrollTo hash
lian-yue Oct 21, 2017
d07f4bf
Auto scrollTo hash add decode
lian-yue Oct 21, 2017
57cd9c4
Build
lian-yue Oct 21, 2017
09ec1eb
fix. additional file upload with html5 post method
victorzhuk Oct 23, 2017
828b5b4
Merge pull request #104 from victorzhuk/master
lian-yue Oct 24, 2017
e11c4e4
Build v2.6.3
lian-yue Oct 24, 2017
fb0b1d3
fix cancel drop with ESC
vmartis Nov 17, 2017
76c890d
Merge pull request #111 from vmartis/dropfix
lian-yue Nov 18, 2017
ad06881
Add props.maximum
lian-yue Nov 18, 2017
1155bbe
fix props.maximum
lian-yue Nov 18, 2017
8f83f2b
Add doc maximum
lian-yue Nov 18, 2017
bf34813
update version
lian-yue Nov 18, 2017
b5743ad
build
lian-yue Nov 18, 2017
9c9d8aa
fix #114 upload a folder of more then 100 files
lian-yue Nov 22, 2017
b7530b8
build
lian-yue Nov 22, 2017
1d0e93a
fix #120
lian-yue Nov 30, 2017
cbb8fa5
build
lian-yue Nov 30, 2017
dacb0cf
fix addDataTransfer getAsFile
lian-yue Dec 11, 2017
fa5fe89
build
lian-yue Dec 11, 2017
6af5af4
fix #129
lian-yue Dec 25, 2017
7d88edc
build
lian-yue Dec 25, 2017
872c984
* Changes in `FileUload` to use `chunk upload` in some cases
codeserk Jan 22, 2018
2cfb93c
* Moved `chunkUpload` backend code to utils file
codeserk Jan 25, 2018
28df5d3
* Some changes in the documentation
codeserk Jan 25, 2018
dfc1e65
* Moved `bodyParser` require to the top of the document
codeserk Jan 25, 2018
5604efe
* Some minor changes in the documentation
codeserk Jan 25, 2018
961cc35
* Changes in `FileUload` to use `chunk upload` in some cases
codeserk Jan 22, 2018
902b316
* Moved `chunkUpload` backend code to utils file
codeserk Jan 25, 2018
54bf33d
* Some changes in the documentation
codeserk Jan 25, 2018
b81ab35
* Moved `bodyParser` require to the top of the document
codeserk Jan 25, 2018
bdf52d6
* Some minor changes in the documentation
codeserk Jan 25, 2018
c01a3ab
Add Special thanks
lian-yue Jan 26, 2018
48ce452
fix build
lian-yue Jan 26, 2018
86b5b71
build
lian-yue Jan 26, 2018
ab1612d
merge chunk uploads
lian-yue Jan 26, 2018
699c747
* Fixing `Chunk upload` problems:
codeserk Jan 30, 2018
78ca7c5
Merge branch 'master' into task/chunk-upload-functionality
codeserk Jan 30, 2018
a218cff
Merge pull request #2 from coosto/task/chunk-upload-functionality
wvds Jan 31, 2018
8e557d0
Merge branch 'master' of https://github.com/coosto/vue-upload-compone…
lian-yue Feb 5, 2018
5a7a4fc
Merge branch 'chunk'
lian-yue Feb 5, 2018
3285dd3
add props.customAction
lian-yue Feb 5, 2018
586c2bb
add custom-action
lian-yue Feb 5, 2018
29b541b
fix await
lian-yue Feb 5, 2018
e291993
build
lian-yue Feb 5, 2018
4e2530e
Add props.capture
lian-yue Feb 5, 2018
bca5bab
build
lian-yue Feb 5, 2018
8417e11
Chunk upload fix for `multipart/form-data` form request.
codeserk Feb 5, 2018
4d1a879
Merge pull request #3 from coosto/task/chunk-upload-functionality
wvds Feb 5, 2018
a6bc6b5
Merge branch 'master' of https://github.com/coosto/vue-upload-compone…
lian-yue Feb 6, 2018
c4f6a59
Merge branch 'chunk'
lian-yue Feb 6, 2018
bd3a507
build
lian-yue Feb 6, 2018
38f3da2
Add typescript support
DrSensor Mar 14, 2018
631ad4b
Make it import-able
DrSensor Mar 14, 2018
1ea52e2
Support `this.$refs.upload.___` using `as`
DrSensor Mar 14, 2018
43540ea
confi file
Mar 21, 2018
560d99c
Merge branch 'patch-1' of https://github.com/DrSensor/vue-upload-comp…
Mar 21, 2018
32d87b1
Merge branch 'ts'
Mar 21, 2018
5740af9
update version
Mar 21, 2018
28c9935
Fix missing declare and upload.file doesn't exist
DrSensor Mar 24, 2018
4156298
Merge pull request #167 from DrSensor/patch-2
lian-yue Mar 28, 2018
453a1a5
update version
lian-yue Mar 28, 2018
ea3767d
fixed ie11 upload error
May 21, 2018
fe9dedb
Merge pull request #192 from HKskn/master
lian-yue May 23, 2018
1a365fe
Update version
lian-yue May 23, 2018
49845c1
fixes #173
mikemcbride May 25, 2018
011d74d
Merge pull request #195 from mikemcbride/fix-173
lian-yue May 25, 2018
059ff1a
Update devDependencies
lian-yue May 25, 2018
f4df580
fix #196
lian-yue May 30, 2018
6a7eac5
build
lian-yue May 30, 2018
7026488
fix a key error in docs
Jun 4, 2018
c507c32
Merge remote-tracking branch 'origin/master' into dev
Jun 4, 2018
d1dc4ba
Merge pull request #202 from ahDDD/master
lian-yue Jun 5, 2018
9ae5172
fix config sourcemap -> sourceMap
lian-yue Jun 5, 2018
f45a552
build
lian-yue Jun 5, 2018
8a8c8c1
some docs supplements
Jun 7, 2018
6448720
fix #213
lian-yue Jul 18, 2018
47497ba
update package
lian-yue Jul 18, 2018
a0ceec8
fix #212
lian-yue Jul 27, 2018
3940224
build
lian-yue Jul 27, 2018
a194f9c
fix #225 #210
lian-yue Sep 13, 2018
d75ffa6
fix #226
lian-yue Sep 13, 2018
b39e76d
build
lian-yue Sep 13, 2018
0850fc0
fix ie dragleave
lian-yue Sep 13, 2018
ba5274c
build
lian-yue Sep 13, 2018
a969e16
fix #219
lian-yue Sep 26, 2018
229c583
remove config host 0.0.0.0
lian-yue Sep 26, 2018
f82e003
build
lian-yue Sep 26, 2018
6bbd4de
fix #236
lian-yue Oct 29, 2018
48a3a87
build
lian-yue Oct 29, 2018
c687bb1
add prop disabled #245
lian-yue Nov 27, 2018
4b58d01
build
lian-yue Nov 27, 2018
098cc95
Update Drag.vue
getsetbro Dec 6, 2018
8ad138d
Merge pull request #252 from getsetbro/patch-1
lian-yue Dec 9, 2018
fde412e
adding real examples intot docs with HTTP examples for chunked upload
Jan 4, 2019
b6e5bc3
fix #257
lian-yue Jan 5, 2019
3145c88
build
lian-yue Jan 5, 2019
aad7d18
Merge branch 'master' of github.com:lian-yue/vue-upload-component
lian-yue Jan 5, 2019
4541091
build
lian-yue Jan 5, 2019
7e8f232
fix
lian-yue Jan 5, 2019
6e44782
build
lian-yue Jan 5, 2019
53db208
Merge pull request #261 from bieli/update-docs-for-chunked-upload
lian-yue Jan 9, 2019
2d94656
Merge pull request #204 from ahDDD/dev
lian-yue Jan 9, 2019
60d1064
fix #264
lian-yue Jan 16, 2019
5a7201e
build
lian-yue Jan 16, 2019
8c2eba8
Merge branch 'master' of github.com:lian-yue/vue-upload-component
lian-yue Jan 16, 2019
0d307c1
build
lian-yue Jan 16, 2019
1f440b7
fix #283
lian-yue Mar 10, 2019
cb7a75e
build
lian-yue Mar 10, 2019
209a572
fix #294
lian-yue Mar 29, 2019
20d049f
Fix typo in method name
kinow Jun 30, 2020
f47bd37
[fix]fix wrong chinese word: 组建 -> 组件
amazingTest Sep 9, 2020
5e45f7f
Merge pull request #371 from amazingTest/amazing-vue-upload-component
lian-yue Sep 10, 2020
3f3f543
Merge pull request #357 from kinow/fix-typo-1
lian-yue Sep 10, 2020
48121e9
Update to vue3 support
lian-yue Dec 16, 2020
ab53a55
update config file
lian-yue Dec 16, 2020
bb9061f
update md
lian-yue Dec 16, 2020
b541cc8
Merge branch 'master' of github.com:lian-yue/vue-upload-component
lian-yue Dec 16, 2020
f54c403
v3.0.37
lian-yue Dec 16, 2020
aaa20c7
webpack publicPahh
lian-yue Dec 17, 2020
ab54324
window.speed rename this.speedInterval
lian-yue Dec 17, 2020
4eb43bc
build
lian-yue Dec 17, 2020
ffb3547
optimize typescript support
lian-yue Dec 18, 2020
1c3e5f9
flx drop querySelector
lian-yue Dec 18, 2020
3ef1c6a
fix default extensions
lian-yue Dec 18, 2020
982ee34
add ts example
lian-yue Dec 28, 2020
df595a2
fix #378
lian-yue Jan 6, 2021
0a6e3a7
fix #378
lian-yue Jan 6, 2021
dec0384
build
lian-yue Jan 6, 2021
5e2cc40
Add image width height field
lian-yue Jan 17, 2021
b5abe30
fix beforeUnmount watchActive
lian-yue Jan 23, 2021
dc7fd53
Bump url-parse from 1.4.7 to 1.5.1
dependabot[bot] May 6, 2021
90c3f06
Bump lodash from 4.17.20 to 4.17.21
dependabot[bot] May 6, 2021
5e2beab
Merge pull request #391 from lian-yue/dependabot/npm_and_yarn/lodash-…
lian-yue May 16, 2021
1b392b9
Merge pull request #390 from lian-yue/dependabot/npm_and_yarn/url-par…
lian-yue May 16, 2021
2a2ea88
Upgrade package dependencies
lian-yue Jan 27, 2022
1bd3be3
fix #410
lian-yue Jan 30, 2022
effa589
fix #420
lian-yue Jan 30, 2022
44c4411
fix #426
lian-yue Nov 8, 2022
4d5eb68
fix #432
lian-yue Nov 8, 2022
8fe5e97
build
lian-yue Nov 8, 2022
f33402c
fix drop active
lian-yue Nov 8, 2022
128da45
build
lian-yue Nov 8, 2022
ef6d252
v3.1.8
lian-yue Mar 4, 2023
b10d1e0
Update FileUpload.vue
LorincJuraj Apr 26, 2023
cec072b
Merge pull request #450 from LorincJuraj/patch-1
lian-yue Apr 27, 2023
6588124
feat(FileUpload): Add @vue/compat configuration to vue 3
fanta759 Nov 28, 2023
d4b2746
add browser module support
lian-yue Mar 12, 2024
e6c77ab
Merge pull request #456 from fanta759/master
lian-yue Aug 10, 2024
11af97d
support dragging to highlight the current container #451
lian-yue Aug 10, 2024
48d9d0e
updatedocs
lian-yue Aug 10, 2024
5570ce3
build and AsyncEvents examples
lian-yue Aug 11, 2024
d43db0e
v3.1.17
lian-yue Aug 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
{
"presets": ["es2015", "stage-2"],
"plugins": ["transform-runtime"],
"comments": false
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"useBuiltIns": false,
"targets": "ie >= 9",
"exclude": [
"transform-async-to-generator",
"proposal-async-generator-functions",
"transform-regenerator"
]
}
]
],
"sourceType": "unambiguous",
"plugins": [
["@babel/plugin-transform-runtime", {"helpers": false, "corejs": false, "regenerator": false, "useESModules": false, "absoluteRuntime": false}]
]
}
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 0.5%
IE 9
last 5 versions
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/*
dist/*
52 changes: 52 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
'alloy',
'alloy/typescript',
'plugin:vue/essential',
'@vue/typescript',

'prettier',
'plugin:prettier/recommended',
],
rules: {
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'complexity': ["error", 40],
'max-params': ["error", 10],
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/prefer-for-of': 'off',
'guard-for-in': 'off',
"@typescript-eslint/explicit-member-accessibility": "off"
},
parserOptions: {
parser: '@typescript-eslint/parser'
},
plugins: ['@typescript-eslint', 'prettier'],
overrides: [{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
},
// {
// // enable the rule specifically for TypeScript files
// "files": ["*.ts", "*.tsx"],
// "rules": {
// "@typescript-eslint/explicit-member-accessibility": ["error"]
// }
// },
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-member-accessibility": ["error"]
}
},
]
}
24 changes: 21 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
.DS_Store
node_modules/
npm-debug.log
*.log
*.tmp
*.db
*.ini
*.zip
*.rar
*.tar
*.gz
.*
*.dev.js
!.gitignore
!.eslintrc*
!.eslintrc.js
!.eslintignore
!.babelrc
!.flowconfig
!.vscode
!.browserslistrc
Icon
node_modules
_*
172 changes: 45 additions & 127 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,165 +1,83 @@
# vue-upload-component
[![npm](https://img.shields.io/npm/dm/vue-upload-component.svg?style=flat-square)](https://www.npmjs.com/package/vue-upload-component) [![npm](https://img.shields.io/npm/v/vue-upload-component.svg?style=flat-square)](https://www.npmjs.com/package/vue-upload-component) [![license](https://img.shields.io/github/license/lian-yue/vue-upload-component.svg?style=flat-square)](https://www.npmjs.com/package/vue-upload-component) [![gzip](http://img.badgesize.io/lian-yue/vue-upload-component/master/dist/vue-upload-component.min.js.svg?compression=gzip&style=flat-square)](https://github.com/lian-yue/vue-upload-component)

> Vue.js file upload component, Support for multiple file uploads, progress, html4, ie9
**Html4 does not support the progress bar, file size, accept, timeout, headers, response status code error of judgment**

> Vue.js file upload component
> The component is just a button


## Install
- [x] Multi-file upload
- [x] Upload directory
- [x] Drag upload
- [x] Drag the directory
- [x] Upload multiple files at the same time
- [x] html4 (IE 9)
- [x] `PUT` method
- [x] Customize the filter
- [x] thumbnails
- [x] Chunk upload

``` bash
npm install vue-upload-component --save
```
### CommonJS
```js
var FileUpload = require('vue-upload-component');

new Vue({
template: '<file-upload post-action="/post.method" put-action="/put.method"></file-upload>',
components: {
FileUpload: FileUpload
}
})

```

### ES6
```js
import FileUpload from 'vue-upload-component'
new Vue({
template: '<file-upload post-action="/post.method" put-action="/put.method"></file-upload>',
components: {
FileUpload
}
})

```


## Example
# Example

https://lian-yue.github.io/vue-upload-component/

``` html
<!-- Example file ./index.html -->
<!-- Example file ./src/example.js -->
<div id="app">
<file-upload title="Add upload files"></file-upload>
</div>

<script type="text/javascript">
var FileUpload = require('vue-upload-component');

new Vue({
el:'#app',
components: {
FileUpload:FileUpload,
},
});
</script>
```

## Build Setup
# Installation

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
npm install vue-upload-component --save
```
## Vue3
``` bash
npm install vue-upload-component@next --save
```

# Documentation

## $dispatch, methods
addFileUpload

removeFileUpload

fileUploadProgress
https://lian-yue.github.io/vue-upload-component/#/documents

beforeFileUpload

afterFileUpload




## Setting

### Data
``` js
{
files: [
{
id: 'String', // Read only
name: 'filename String',
size: 'filesize Number',
progress: 'progress String', // Read only
speed: "Speed Number", // Read only
active: 'active Boolean',
error: 'error String',
errno: 'errno String',
success: 'success Boolean', // Read only
data: 'Response data Object or String', // Read only
request: {
headers: {
"X-Csrf-Token": "xxxx",
},
data: {
"_csrf_token": "xxxxxx",
},
},
}
],
> Vue.js 文件上传组件
> 组件只是一个按钮

- [x] 上传多文件
- [x] 上传目录
- [x] 拖拽
- [x] 拖拽目录
- [x] 多线程
- [x] html4(IE 9)
- [x] `PUT` 方法
- [x] 自定义过滤器
- [x] 缩略图

// Global
request: {
headers: {
"X-Csrf-Token": "xxxx",
},
data: {
"_csrf_token": "xxxxxx",
},
},
# 演示

https://lian-yue.github.io/vue-upload-component/#/zh-cn/

active: false,

uploaded: true, // Read only

dropActive: false, // Read only
}
```
# 安装


### Props
``` html
<file-upload :title="Add upload files" :name="file" :drop="Boolean (true = $parent) or Element or Css Selector" :extensions="Array or String or Regular" :post-action="./post.method" :put-action="./put.method" :accept="accept" :multiple="true" :size="size" :timeout="3600000"></file-upload>
``` bash
npm install vue-upload-component --save
```

## Vue3
``` bash
npm install vue-upload-component@next --save
```
title="Add upload files"

name="post file name"

drop="Boolean (true = $parent) or Element or Css Selector"

extensions="Array or String or Regular" :post-action="./post.method"
# 文档

post-action="./post.method"
https://lian-yue.github.io/vue-upload-component/#/zh-cn/documents

put-action="./put.method"

accept="accept"

multiple="true or false"
# Special thanks (特别感谢)

size="max Size"

timeout="3600000"

```
- [@josec89](https://github.com/josec89)
Loading