Skip to content

Commit 956148d

Browse files
committed
'增加了上传方法属性'
1 parent 4c3b610 commit 956148d

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ A beautiful vue component for image crop and upload. (vue图片剪裁上传组
1414
## 中文文档在后面
1515

1616
## Change log
17+
#### @2.5.0
18+
- added http method prop (thanks @sarco3t)
19+
1720
#### @2.4.0
1821
- Added the **src-file-set** event, emit event when file is selected (thanks @choruru)
1922

@@ -105,6 +108,7 @@ $ npm install vue-image-crop-upload
105108
| Name | Type | Default | Description |
106109
| ----------------| ---------------- | ---------------| ------------------------------------------|
107110
| url | String | '' | Server api path,like "/avatar/upload", If empty, will not be uploaded |
111+
| method | String | 'POST' | request http method |
108112
| field | String | 'upload' | Upload input filename, used for server side get the file stream. |
109113
| value | Boolean | twoWay | show or not |
110114
| params | Object | null | POST Params,like "{k:v}" |
@@ -119,7 +123,6 @@ $ npm install vue-image-crop-upload
119123
| noSquare | Boolean | false | disable square preview |
120124
| noRotate | Boolean | true | disable rotate function |
121125
| withCredentials | Boolean | false | support cross-domain |
122-
| method | String | 'POST' | request http method
123126

124127
#### Events
125128
| Name | Description |
@@ -393,6 +396,7 @@ $ npm install vue-image-crop-upload
393396
| 名称 | 类型 | 默认 | 说明 |
394397
| ----------------| ---------------- | ---------------| ------------------------------------------|
395398
| url | String | '' | 上传接口地址,如果为空,图片不会上传 |
399+
| method | String | 'POST' | 上传方法 |
396400
| field | String | 'upload' | 向服务器上传的文件名 |
397401
| value | Boolean | twoWay | 是否显示控件,双向绑定 |
398402
| params | Object | null | 上传附带其他数据,格式"{k:v}" |

0 commit comments

Comments
 (0)