|
|
|
@ -377,6 +377,31 @@ The `name` attribute of the input tag
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### custom-action
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Custom upload method
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* **Type:** `async Function`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* **Default:** `undefined`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* **Details:**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`custom-action` priority than `put-action, post-action`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* **Usage:**
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
|
|
|
<file-upload :custom-action="customAction"></file-upload>
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```js
|
|
|
|
|
|
|
|
async function customAction(file, component) {
|
|
|
|
|
|
|
|
// return component.uploadPut(file)
|
|
|
|
|
|
|
|
return component.uploadHtml4(file)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### headers
|
|
|
|
### headers
|
|
|
|
@ -1445,4 +1470,4 @@ Per second upload speed
|
|
|
|
|
|
|
|
|
|
|
|
* **Default:** `undefined`
|
|
|
|
* **Default:** `undefined`
|
|
|
|
|
|
|
|
|
|
|
|
* **Browser:** `= IE9`
|
|
|
|
* **Browser:** `= IE9`
|
|
|
|
|