master
git 8 years ago
parent 058c83858d
commit c933a66773

@ -152,7 +152,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `this.name` * **Default:** `this.name`
* **Description:** * **Description:**
The `id` attribute of the input tag The `id` attribute of the input tag
* **Usage:** * **Usage:**
@ -171,7 +171,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `file` * **Default:** `file`
* **Description:** * **Description:**
The `name` attribute of the input tag The `name` attribute of the input tag
* **Usage:** * **Usage:**
@ -190,7 +190,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `undefined` * **Default:** `undefined`
* **Description:** * **Description:**
`POST` Request upload URL `POST` Request upload URL
* **Usage:** * **Usage:**
@ -207,9 +207,9 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `undefined` * **Default:** `undefined`
* **Description:** * **Description:**
`PUT` Request upload URL `PUT` Request upload URL
`put-action` is not empty Please give priority to` PUT` request `put-action` is not empty Please give priority to` PUT` request
Required `html5` support Required `html5` support
* **Usage:** * **Usage:**
@ -226,8 +226,8 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `{}` * **Default:** `{}`
* **Description:** * **Description:**
Attach `header` data Attach `header` data
Required `html5` support Required `html5` support
* **Usage:** * **Usage:**
@ -244,8 +244,8 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `{}` * **Default:** `{}`
* **Description:** * **Description:**
`POST request`: Append request `body` `POST request`: Append request `body`
`PUT request`: Append request `query` `PUT request`: Append request `query`
* **Usage:** * **Usage:**
@ -262,8 +262,8 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `[]` * **Default:** `[]`
* **Description:** * **Description:**
File List File List
**In order to prevent unpredictable errors, can not directly modify the `files`, please use` add`, `update`,` remove` method to modify** **In order to prevent unpredictable errors, can not directly modify the `files`, please use` add`, `update`,` remove` method to modify**
* **[File object](#file)** * **[File object](#file)**
@ -283,9 +283,9 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `undefined` * **Default:** `undefined`
* **Description:** * **Description:**
The `accept` attribute of the input tag, MIME type The `accept` attribute of the input tag, MIME type
Required `html5` support Required `html5` support
* **Usage:** * **Usage:**
```html ```html
@ -302,9 +302,9 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `false` * **Default:** `false`
* **Description:** * **Description:**
The `multiple` attribute of the input tag The `multiple` attribute of the input tag
Whether to allow multiple files to be selected Whether to allow multiple files to be selected
If it is `false` file inside only one file will be automatically deleted If it is `false` file inside only one file will be automatically deleted
* **Usage:** * **Usage:**
@ -319,10 +319,10 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `false` * **Default:** `false`
* **Description:** * **Description:**
The `directory` attribute of the input tag The `directory` attribute of the input tag
Whether it is a upload folder Whether it is a upload folder
[View supported browsers](http://caniuse.com/#feat=input-file-directory) [View supported browsers](http://caniuse.com/#feat=input-file-directory)
* **Usage:** * **Usage:**
```html ```html
@ -338,8 +338,8 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `undefined` * **Default:** `undefined`
* **Description:** * **Description:**
Allow upload file extensions Allow upload file extensions
* **Usage:** * **Usage:**
```html ```html
@ -356,7 +356,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `0` * **Default:** `0`
* **Description:** * **Description:**
Allow the maximum byte to upload Allow the maximum byte to upload
* **Usage:** * **Usage:**
@ -372,7 +372,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `0` * **Default:** `0`
* **Description:** * **Description:**
Upload timeout time in milliseconds Upload timeout time in milliseconds
* **Usage:** * **Usage:**
@ -388,8 +388,8 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `1` * **Default:** `1`
* **Description:** * **Description:**
Also upload the number of files at the same time (number of threads) Also upload the number of files at the same time (number of threads)
Required `html5` support Required `html5` support
* **Usage:** * **Usage:**
@ -406,9 +406,9 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `false` * **Default:** `false`
* **Description:** * **Description:**
Drag and drop upload Drag and drop upload
If set to `true`, read the parent component as a container If set to `true`, read the parent component as a container
Required `html5` support Required `html5` support
* **Usage:** * **Usage:**
@ -425,8 +425,8 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `true` * **Default:** `true`
* **Description:** * **Description:**
Whether to open the drag directory Whether to open the drag directory
If set to `false` filter out the directory If set to `false` filter out the directory
* **Usage:** * **Usage:**
@ -445,8 +445,8 @@ const nodeExternals = require('webpack-node-externals');
* **Arguments:** * **Arguments:**
* `files: Array<Object>` * `files: Array<Object>`
* **Description:** * **Description:**
The files is changed to trigger the method The files is changed to trigger the method
Default for `v-model` binding Default for `v-model` binding
* **Usage:** * **Usage:**
@ -477,10 +477,10 @@ const nodeExternals = require('webpack-node-externals');
* `oldFile: Object | undefined` `Read only` * `oldFile: Object | undefined` `Read only`
* `prevent: Function` * `prevent: Function`
* **Description:** * **Description:**
Add, update, remove pre-filter Add, update, remove pre-filter
You can not use `update`,` add`, `remove`,` clear` methods in the event You can not use `update`,` add`, `remove`,` clear` methods in the event
The `newFile` object can be modified within the event The `newFile` object can be modified within the event
`prevent()` can prevent modification `prevent()` can prevent modification
* **Usage:** * **Usage:**
@ -545,10 +545,10 @@ const nodeExternals = require('webpack-node-externals');
* `newFile: Object | undefined` `Read only` * `newFile: Object | undefined` `Read only`
* `oldFile: Object | undefined` `Read only` * `oldFile: Object | undefined` `Read only`
* **Description:** * **Description:**
Add, update, remove after Add, update, remove after
You can use `update`,` add`, `remove`,` clear` methods in the event You can use `update`,` add`, `remove`,` clear` methods in the event
You can not modify the `newFile` object in the event You can not modify the `newFile` object in the event
You can not modify the `oldFile` object in the event You can not modify the `oldFile` object in the event
* **Usage:** * **Usage:**
@ -630,7 +630,7 @@ const nodeExternals = require('webpack-node-externals');
* **Result** `Object | Boolean` There is a return file object that otherwise returns `false` * **Result** `Object | Boolean` There is a return file object that otherwise returns `false`
* **Description:** * **Description:**
Use `id` to get a file object Use `id` to get a file object
@ -641,7 +641,7 @@ const nodeExternals = require('webpack-node-externals');
* **Result** `Object | Array<Object> | Boolean` The incoming array is returned to the array otherwise the object or `false` * **Result** `Object | Array<Object> | Boolean` The incoming array is returned to the array otherwise the object or `false`
* **Description:** * **Description:**
Add one or more files Add one or more files
* **Usage:** * **Usage:**
@ -681,7 +681,7 @@ const nodeExternals = require('webpack-node-externals');
* **Result** `Object | Boolean` Successfully returned `newFile` failed to return` false` * **Result** `Object | Boolean` Successfully returned `newFile` failed to return` false`
* **Description:** * **Description:**
Update a file object Update a file object
* **Usage:** * **Usage:**
@ -718,7 +718,7 @@ const nodeExternals = require('webpack-node-externals');
* **Result** `Object | Boolean` Successfully returned `oldFile` failed to return` false` * **Result** `Object | Boolean` Successfully returned `oldFile` failed to return` false`
* **Description:** * **Description:**
Remove a file object Remove a file object
* **Usage:** * **Usage:**
@ -750,7 +750,7 @@ const nodeExternals = require('webpack-node-externals');
### clear ### clear
* **Result** `Boolean` Always return `true` * **Result** `Boolean` Always return `true`
* **Description:** * **Description:**
Empty the file list Empty the file list
@ -766,7 +766,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `{html5: true, directory: false, drag: false}` * **Default:** `{html5: true, directory: false, drag: false}`
* **Description:** * **Description:**
Used to determine the browser support features Used to determine the browser support features
@ -789,7 +789,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `false` * **Default:** `false`
* **Description:** * **Description:**
Activation or abort upload Activation or abort upload
* **Usage:** * **Usage:**
@ -810,7 +810,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `false` * **Default:** `false`
* **Description:** * **Description:**
Is dragging Is dragging
* **Usage:** * **Usage:**
@ -832,7 +832,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `true` * **Default:** `true`
* **Description:** * **Description:**
All uploaded All uploaded
* **Usage:** * **Usage:**
@ -865,7 +865,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `Math.random().toString(36).substr(2)` * **Default:** `Math.random().toString(36).substr(2)`
* **Description:** * **Description:**
File ID File ID
@ -878,7 +878,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `-1` * **Default:** `-1`
* **Description:** * **Description:**
File size File size
Required `html5` support Required `html5` support
@ -892,12 +892,12 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** ` ` * **Default:** ` `
* **Description:** * **Description:**
Filename Filename
Format: Format:
`directory/filename.gif` `directory/filename.gif`
`filename.gif` `filename.gif`
@ -908,12 +908,12 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `empty` * **Default:** `empty`
* **Description:** * **Description:**
MIME type MIME type
Format: Format:
`image/gif` `image/gif`
`image/png` `image/png`
`text/html` `text/html`
Required `html5` support Required `html5` support
@ -927,11 +927,11 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `false` * **Default:** `false`
* **Description:** * **Description:**
Activation or abort upload Activation or abort upload
`true` = Upload `true` = Upload
`false` = Abort `false` = Abort
@ -945,10 +945,10 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** ` ` * **Default:** ` `
* **Description:** * **Description:**
Upload failed error code Upload failed error code
Built-in Built-in
`size`, `extension`, `timeout`, `abort`, `network`, `server`, `denied` `size`, `extension`, `timeout`, `abort`, `network`, `server`, `denied`
@ -961,7 +961,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `false` * **Default:** `false`
* **Description:** * **Description:**
Whether the upload was successful Whether the upload was successful
@ -973,7 +973,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `this.putAction` * **Default:** `this.putAction`
* **Description:** * **Description:**
Customize the current file `PUT` URL Customize the current file `PUT` URL
@ -985,7 +985,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `this.postAction` * **Default:** `this.postAction`
* **Description:** * **Description:**
Customize the current file `POST` URL Customize the current file `POST` URL
@ -999,7 +999,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `this.headers` * **Default:** `this.headers`
* **Description:** * **Description:**
Customize the current file `HTTP` Header Customize the current file `HTTP` Header
@ -1011,7 +1011,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `this.data` * **Default:** `this.data`
* **Description:** * **Description:**
Customize the current file `body` or` query` to attach content Customize the current file `body` or` query` to attach content
@ -1023,7 +1023,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `0` * **Default:** `0`
* **Description:** * **Description:**
Customize the upload timeout for a current single file Customize the upload timeout for a current single file
@ -1036,7 +1036,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `{}` * **Default:** `{}`
* **Description:** * **Description:**
Response data Response data
@ -1049,7 +1049,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `0.00` * **Default:** `0.00`
* **Description:** * **Description:**
Upload progress Upload progress
@ -1062,7 +1062,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `0` * **Default:** `0`
* **Description:** * **Description:**
Per second upload speed Per second upload speed
@ -1075,7 +1075,7 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `undefined` * **Default:** `undefined`
* **Description:** * **Description:**
`HTML5` upload` XMLHttpRequest` object `HTML5` upload` XMLHttpRequest` object
@ -1088,5 +1088,5 @@ const nodeExternals = require('webpack-node-externals');
* **Default:** `undefined` * **Default:** `undefined`
* **Description:** * **Description:**
`HTML4` upload` iframe` element `HTML4` upload` iframe` element

@ -150,7 +150,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `this.name` * **默认值:** `this.name`
* **描述:** * **描述:**
input标签的 `id` 属性 input标签的 `id` 属性
* **用法:** * **用法:**
@ -169,7 +169,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `file` * **默认值:** `file`
* **描述:** * **描述:**
input标签的 `name` 属性 input标签的 `name` 属性
* **用法:** * **用法:**
@ -188,7 +188,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `undefined` * **默认值:** `undefined`
* **描述:** * **描述:**
`POST` 请求的上传URL `POST` 请求的上传URL
* **用法:** * **用法:**
@ -205,10 +205,10 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `undefined` * **默认值:** `undefined`
* **描述:** * **描述:**
`PUT` 请求的上传URL `PUT` 请求的上传URL
`put-action` 不为空请优先 `PUT` 请求 `put-action` 不为空请优先 `PUT` 请求
需要`HTML5`支持 需要`HTML5`支持
* **用法:** * **用法:**
```html ```html
@ -226,9 +226,9 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `{}` * **默认值:** `{}`
* **描述:** * **描述:**
自定义 `HTTP Header` 自定义 `HTTP Header`
需要`HTML5`支持 需要`HTML5`支持
* **用法:** * **用法:**
```html ```html
@ -244,9 +244,9 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `{}` * **默认值:** `{}`
* **描述:** * **描述:**
`POST 请求`: 附加请求的 body `POST 请求`: 附加请求的 body
`PUT 请求`: 附加请求的 query `PUT 请求`: 附加请求的 query
* **用法:** * **用法:**
```html ```html
@ -261,7 +261,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `[]` * **默认值:** `[]`
* **描述:** * **描述:**
文件列表 文件列表
**为了防止不可预知的错误,不可直接修改 `files`,请使用 `add`, `update`, `remove` 方法修改** **为了防止不可预知的错误,不可直接修改 `files`,请使用 `add`, `update`, `remove` 方法修改**
@ -282,9 +282,9 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `undefined` * **默认值:** `undefined`
* **描述:** * **描述:**
表单的`accept`属性, MIME type 表单的`accept`属性, MIME type
需要`HTML5`支持 需要`HTML5`支持
* **用法:** * **用法:**
```html ```html
@ -300,10 +300,10 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `false` * **默认值:** `false`
* **描述:** * **描述:**
文件表单的 `multiple` 属性 文件表单的 `multiple` 属性
是否允许选择多个文件 是否允许选择多个文件
如果是 `false` files 里面最多只有一个文件 多的会自动删除 如果是 `false` `files` 里面最多只有一个文件 多的会自动删除
* **用法:** * **用法:**
```html ```html
@ -317,10 +317,10 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `false` * **默认值:** `false`
* **描述:** * **描述:**
文件表单的 `directory` 属性 文件表单的 `directory` 属性
是否是上传文件夹 是否是上传文件夹
[查看支持的浏览器](http://caniuse.com/#feat=input-file-directory) [查看支持的浏览器](http://caniuse.com/#feat=input-file-directory)
* **用法:** * **用法:**
```html ```html
@ -336,7 +336,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `undefined` * **默认值:** `undefined`
* **描述:** * **描述:**
允许上传的文件后缀 允许上传的文件后缀
* **用法:** * **用法:**
@ -354,7 +354,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `0` * **默认值:** `0`
* **描述:** * **描述:**
允许上传的最大字节 允许上传的最大字节
* **用法:** * **用法:**
@ -370,7 +370,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `0` * **默认值:** `0`
* **描述:** * **描述:**
上传超时时间毫秒 上传超时时间毫秒
* **用法:** * **用法:**
@ -386,9 +386,9 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `1` * **默认值:** `1`
* **描述:** * **描述:**
同时并发上传的文件数量 线程数 同时并发上传的文件数量 线程数
需要`HTML5`支持 需要`HTML5`支持
* **用法:** * **用法:**
```html ```html
@ -404,9 +404,9 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `false` * **默认值:** `false`
* **描述:** * **描述:**
拖拽上传 拖拽上传
如果设置成 `true` 则读取父组件作为容器 如果设置成 `true` 则读取父组件作为容器
需要`HTML5`支持 需要`HTML5`支持
* **用法:** * **用法:**
@ -425,8 +425,8 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `true` * **默认值:** `true`
* **描述:** * **描述:**
是否开启拖拽目录 是否开启拖拽目录
如果设置成 `false` 则过滤掉目录 如果设置成 `false` 则过滤掉目录
* **用法:** * **用法:**
@ -445,8 +445,8 @@ const nodeExternals = require('webpack-node-externals');
* **参数:** * **参数:**
* `files: Array<Object>` * `files: Array<Object>`
* **描述:** * **描述:**
文件被改变触发的方法 文件被改变触发的方法
默认用于`v-model`绑定 默认用于`v-model`绑定
* **用法:** * **用法:**
@ -477,10 +477,11 @@ const nodeExternals = require('webpack-node-externals');
* `oldFile: Object | undefined` `只读` * `oldFile: Object | undefined` `只读`
* `prevent: Function` * `prevent: Function`
* **描述:** * **描述:**
添加,更新,移除 前过滤器 添加,更新,移除 前过滤器
事件内不可使用 `update`, `add`, `remove`, `clear` 方法 事件内不可使用 `update`, `add`, `remove`, `clear` 方法
事件内可修改 `newFile` 对象 事件内可修改 `newFile` 对象
`prevent()` 用于阻止修改
* **用法:** * **用法:**
```html ```html
@ -545,10 +546,10 @@ const nodeExternals = require('webpack-node-externals');
* `newFile: Object | undefined` `读写` * `newFile: Object | undefined` `读写`
* `oldFile: Object | undefined` `只读` * `oldFile: Object | undefined` `只读`
* **描述:** * **描述:**
添加,更新,移除 后 添加,更新,移除 后
事件内可使用 `update`, `add`, `remove`, `clear` 方法 事件内可使用 `update`, `add`, `remove`, `clear` 方法
事件内不可修改 `newFile` 对象 事件内不可修改 `newFile` 对象
事件内不可修改 `oldFile` 对象 事件内不可修改 `oldFile` 对象
* **用法:** * **用法:**
@ -630,7 +631,7 @@ const nodeExternals = require('webpack-node-externals');
* **返回值:** `Object | Boolean` 存在返回文件对象否则返回`false` * **返回值:** `Object | Boolean` 存在返回文件对象否则返回`false`
* **描述:** * **描述:**
使用`id`获得某个文件对象 使用`id`获得某个文件对象
@ -641,7 +642,7 @@ const nodeExternals = require('webpack-node-externals');
* **返回值:** `Object | Array<Object> | Boolean` 传入的是数组返回数组否则对象或`false` * **返回值:** `Object | Array<Object> | Boolean` 传入的是数组返回数组否则对象或`false`
* **描述:** * **描述:**
添加一个或多个文件 添加一个或多个文件
* **用法:** * **用法:**
@ -681,7 +682,7 @@ const nodeExternals = require('webpack-node-externals');
* **返回值:** `Object | Boolean` 成功返回`newFile` 失败返回 `false` * **返回值:** `Object | Boolean` 成功返回`newFile` 失败返回 `false`
* **描述:** * **描述:**
更新某个文件对象 更新某个文件对象
* **用法:** * **用法:**
@ -718,7 +719,7 @@ const nodeExternals = require('webpack-node-externals');
* **返回值:** `Object | Boolean` 成功返回 `oldFile` 失败返回 `false` * **返回值:** `Object | Boolean` 成功返回 `oldFile` 失败返回 `false`
* **描述:** * **描述:**
移除某个文件对象 移除某个文件对象
* **用法:** * **用法:**
@ -766,7 +767,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `{html5: true, directory: false, drag: false}` * **默认值:** `{html5: true, directory: false, drag: false}`
* **描述:** * **描述:**
用于判断浏览器支持的特性 用于判断浏览器支持的特性
* **用法:** * **用法:**
@ -788,7 +789,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `false` * **默认值:** `false`
* **描述:** * **描述:**
激活或停止上传 激活或停止上传
* **用法:** * **用法:**
@ -809,7 +810,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `false` * **默认值:** `false`
* **描述:** * **描述:**
是否正在拖拽 是否正在拖拽
* **用法:** * **用法:**
@ -832,7 +833,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `true` * **默认值:** `true`
* **描述:** * **描述:**
是否全部已上传 是否全部已上传
* **用法:** * **用法:**
@ -864,7 +865,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `Math.random().toString(36).substr(2)` * **默认值:** `Math.random().toString(36).substr(2)`
* **描述:** * **描述:**
文件id 文件id
@ -877,7 +878,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `-1` * **默认值:** `-1`
* **描述:** * **描述:**
文件大小 文件大小
需要`HTML5`支持 需要`HTML5`支持
@ -891,11 +892,11 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `empty` * **默认值:** `empty`
* **描述:** * **描述:**
文件名 文件名
格式: 格式:
`directory/filename.gif` `directory/filename.gif`
`filename.gif` `filename.gif`
@ -907,13 +908,13 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** ` ` * **默认值:** ` `
* **描述:** * **描述:**
MIME类型 MIME类型
格式: 格式:
`image/gif` `image/gif`
`image/png` `image/png`
`text/html` `text/html`
需要`HTML5`支持 需要`HTML5`支持
@ -926,10 +927,10 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `false` * **默认值:** `false`
* **描述:** * **描述:**
激活或终止上传 激活或终止上传
`true` = 上传 `true` = 上传
`false` = 停止 `false` = 停止
@ -944,10 +945,10 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** ` ` * **默认值:** ` `
* **描述:** * **描述:**
上传失败错误代码 上传失败错误代码
内置 内置
`size`, `extension`, `timeout`, `abort`, `network`, `server`, `denied` `size`, `extension`, `timeout`, `abort`, `network`, `server`, `denied`
@ -960,7 +961,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `false` * **默认值:** `false`
* **描述:** * **描述:**
是否上传成功 是否上传成功
@ -972,7 +973,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `this.putAction` * **默认值:** `this.putAction`
* **描述:** * **描述:**
自定义当前文件 `PUT` 地址 自定义当前文件 `PUT` 地址
@ -984,7 +985,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `this.postAction` * **默认值:** `this.postAction`
* **描述:** * **描述:**
自定义当前文件 `POST` 地址 自定义当前文件 `POST` 地址
@ -998,7 +999,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `this.headers` * **默认值:** `this.headers`
* **描述:** * **描述:**
自定义当前文件 `HTTP` Header 自定义当前文件 `HTTP` Header
@ -1010,7 +1011,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `this.data` * **默认值:** `this.data`
* **描述:** * **描述:**
自定义当前文件 `body``query` 附加内容 自定义当前文件 `body``query` 附加内容
@ -1022,7 +1023,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `0` * **默认值:** `0`
* **描述:** * **描述:**
自定义当前单个文件的上传超时时间 自定义当前单个文件的上传超时时间
@ -1035,7 +1036,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `{}` * **默认值:** `{}`
* **描述:** * **描述:**
响应的数据 响应的数据
@ -1048,7 +1049,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `0.00` * **默认值:** `0.00`
* **描述:** * **描述:**
上传进度 上传进度
@ -1061,7 +1062,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `0` * **默认值:** `0`
* **描述:** * **描述:**
每秒的上传速度 每秒的上传速度
@ -1074,7 +1075,7 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `undefined` * **默认值:** `undefined`
* **描述:** * **描述:**
`HTML5` 上传 `XMLHttpRequest` 对象 `HTML5` 上传 `XMLHttpRequest` 对象
@ -1087,5 +1088,5 @@ const nodeExternals = require('webpack-node-externals');
* **默认值:** `undefined` * **默认值:** `undefined`
* **描述:** * **描述:**
`HTML4` 上传 `iframe` 元素 `HTML4` 上传 `iframe` 元素

Loading…
Cancel
Save