New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-image-crop-upload

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-image-crop-upload - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

3

package.json
{
"name": "vue-image-crop-upload",
"version": "1.0.2",
"version": "1.1.0",
"description": "a vue plgin for image upload and crop(vue图片剪裁上传插件)",

@@ -20,2 +20,3 @@ "main": "upload.vue",

"crop",
"cropper",
"file",

@@ -22,0 +23,0 @@ "avatar",

@@ -7,2 +7,7 @@ # vue-image-crop-upload

## Change log
#### @1.1.0
- Adjusted Props naming: otherParams=>params, langConf=>langExt
- Optimized language packs
## Demo

@@ -36,5 +41,5 @@ [Click me](http://dai-siki.github.io/vue-image-crop-upload/example/demo.html).

| url | String | '' | Server api path,like "/avatar/upload" |
| otherParams | Object | null | POST Params,like "{k:v}" |
| params | Object | null | POST Params,like "{k:v}" |
| langType | String | 'zh' | language type |
| langConf | Object | | language extend |
| langExt | Object | | language extend |
| width | Number | 200 | width of receive image |

@@ -59,2 +64,3 @@ | height | Number | 200 | height of receive image |

success: '上传成功',
fail: '图片上传失败',
preview: '头像预览',

@@ -74,9 +80,10 @@ btn: {

en: {
hint: 'Click, or drag picture to there',
hint: 'Click, or drag the file here',
loading: 'Uploading……',
noSupported: 'Browser not supported, please use IE10+ or else browser',
noSupported: 'Browser does not support, please use IE10+ or other browsers',
success: 'Upload success',
fail: 'Upload failed',
preview: 'Preview',
btn: {
off: 'Off',
off: 'Cancel',
close: 'Close',

@@ -87,8 +94,8 @@ back: 'Back',

error: {
onlyImg: 'Only image',
outOfSize: 'Image is out of size: ',
lowestPx: 'Image lowest pixel(width*height):'
onlyImg: 'Image only',
outOfSize: 'Image exceeds size limit: ',
lowestPx: 'The lowest pixel in the image: '
}
}
};
}
```

@@ -103,3 +110,3 @@

:value.sync="show"
:other-params="otherParams"></my-upload>
:params="params"></my-upload>
</div>

@@ -116,3 +123,3 @@

show: true,
otherParams: {
params: {
token: '123456798',

@@ -171,3 +178,7 @@ name: 'avatar'

--------------------------------
# 中文文档
## 更新日志
#### @1.1.0
- 调整了Props命名: otherParams=>params, langConf=>langExt

@@ -202,5 +213,5 @@ ## 示例

| url | String | '' | 上传接口地址 |
| otherParams | Object | null | 上传附带其他数据,如"{k:v}" |
| params | Object | null | 上传附带其他数据,如"{k:v}" |
| langType | String | 'zh' | 语言类型,默认中文 |
| langConf | Object | | 语言包自行扩展 |
| langExt | Object | | 语言包自行扩展 |
| width | Number | 200 | 最终得到的图片宽度 |

@@ -225,2 +236,3 @@ | height | Number | 200 | 最终得到的图片高度 |

success: '上传成功',
fail: '图片上传失败',
preview: '头像预览',

@@ -240,9 +252,10 @@ btn: {

en: {
hint: 'Click, or drag picture to there',
hint: 'Click, or drag the file here',
loading: 'Uploading……',
noSupported: 'Browser not supported, please use IE10+ or else browser',
noSupported: 'Browser does not support, please use IE10+ or other browsers',
success: 'Upload success',
fail: 'Upload failed',
preview: 'Preview',
btn: {
off: 'Off',
off: 'Cancel',
close: 'Close',

@@ -253,8 +266,8 @@ back: 'Back',

error: {
onlyImg: 'Only image',
outOfSize: 'Image is out of size: ',
lowestPx: 'Image lowest pixel(width*height):'
onlyImg: 'Image only',
outOfSize: 'Image exceeds size limit: ',
lowestPx: 'The lowest pixel in the image: '
}
}
};
}
```

@@ -269,3 +282,3 @@

:value.sync="show"
:other-params="otherParams"></my-upload>
:params="params"></my-upload>
</div>

@@ -282,3 +295,3 @@

show: true,
otherParams: {
params: {
token: '123456798',

@@ -285,0 +298,0 @@ name: 'avatar'

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc