@@ -14,6 +14,9 @@ A beautiful vue component for image crop and upload. (vue图片剪裁上传组
14
14
## 中文文档在后面
15
15
16
16
## Change log
17
+ #### @2 .5.0
18
+ - added http method prop (thanks @sarco3t )
19
+
17
20
#### @2 .4.0
18
21
- Added the ** src-file-set** event, emit event when file is selected (thanks @choruru )
19
22
@@ -105,6 +108,7 @@ $ npm install vue-image-crop-upload
105
108
| Name | Type | Default | Description |
106
109
| ----------------| ---------------- | ---------------| ------------------------------------------|
107
110
| url | String | '' | Server api path,like "/avatar/upload", If empty, will not be uploaded |
111
+ | method | String | 'POST' | request http method |
108
112
| field | String | 'upload' | Upload input filename, used for server side get the file stream. |
109
113
| value | Boolean | twoWay | show or not |
110
114
| params | Object | null | POST Params,like "{k: v }" |
@@ -119,7 +123,6 @@ $ npm install vue-image-crop-upload
119
123
| noSquare | Boolean | false | disable square preview |
120
124
| noRotate | Boolean | true | disable rotate function |
121
125
| withCredentials | Boolean | false | support cross-domain |
122
- | method | String | 'POST' | request http method
123
126
124
127
#### Events
125
128
| Name | Description |
@@ -393,6 +396,7 @@ $ npm install vue-image-crop-upload
393
396
| 名称 | 类型 | 默认 | 说明 |
394
397
| ----------------| ---------------- | ---------------| ------------------------------------------|
395
398
| url | String | '' | 上传接口地址,如果为空,图片不会上传 |
399
+ | method | String | 'POST' | 上传方法 |
396
400
| field | String | 'upload' | 向服务器上传的文件名 |
397
401
| value | Boolean | twoWay | 是否显示控件,双向绑定 |
398
402
| params | Object | null | 上传附带其他数据,格式"{k: v }" |
0 commit comments