vue-image-crop-upload
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -0,0 +0,0 @@ module.exports = { |
@@ -16,2 +16,5 @@ import 'babel-polyfill'; | ||
name: 'img' | ||
}, | ||
headers: { | ||
smail: '*_~' | ||
} | ||
@@ -18,0 +21,0 @@ }, |
{ | ||
"name": "vue-image-crop-upload", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "a vue plgin for image upload and crop(vue图片剪裁上传插件)", | ||
@@ -5,0 +5,0 @@ "main": "upload.vue", |
@@ -15,2 +15,6 @@ # vue-image-crop-upload | ||
## Change log | ||
#### @1.3.0 | ||
- Added the Russian language pack (thanks @bigperson) | ||
- Added a new Props: "headers" (Used to set the send header) | ||
#### @1.2.0 | ||
@@ -20,3 +24,3 @@ - Compatible vue2 | ||
#### @1.1.0 | ||
- Adjusted Props naming: otherParams=>params, langConf=>langExt | ||
- Adjusted Props naming: "otherParams"=>"params", "langConf"=>“langExt” | ||
- Optimized language packs | ||
@@ -53,2 +57,3 @@ | ||
| params | Object | null | POST Params,like "{k:v}" | | ||
| headers | Object | null | POST request header,like "{k:v}" | | ||
| langType | String | 'zh' | language type | | ||
@@ -107,3 +112,22 @@ | langExt | Object | | language extend | | ||
} | ||
} | ||
}, | ||
ru: { | ||
hint: 'Нажмите, или перетащите файл в это окно', | ||
loading: 'Загружаю……', | ||
noSupported: 'Ваш браузер не поддерживается, пожалуйста, используйте IE10 + или другие браузеры', | ||
success: 'Загрузка выполнена успешно', | ||
fail: 'Ошибка загрузки', | ||
preview: 'Предпросмотр', | ||
btn: { | ||
off: 'Отменить', | ||
close: 'Закрыть', | ||
back: 'Назад', | ||
save: 'Сохранить' | ||
}, | ||
error: { | ||
onlyImg: 'Только изображения', | ||
outOfSize: 'Изображение превышает предельный размер: ', | ||
lowestPx: 'Минимальный размер изображения: ' | ||
} | ||
} | ||
} | ||
@@ -121,2 +145,3 @@ ``` | ||
:params="params" | ||
:params="headers" | ||
lang-type="en" | ||
@@ -141,2 +166,5 @@ :value.sync="show" | ||
}, | ||
headers: { | ||
smail: '*_~' | ||
}, | ||
imgDataUrl: '' // the datebase64 url of created image | ||
@@ -204,2 +232,3 @@ }, | ||
:params="params" | ||
:params="headers" | ||
img-format="png"></my-upload> | ||
@@ -222,2 +251,5 @@ <img :src="imgDataUrl"> | ||
}, | ||
headers: { | ||
smail: '*_~' | ||
}, | ||
imgDataUrl: '' // the datebase64 url of created image | ||
@@ -274,2 +306,6 @@ }, | ||
## 更新日志 | ||
#### @1.3.0 | ||
- 添加了俄罗斯语言包 (thanks @bigperson) | ||
- 添加了新属性: "headers" (用于设置请求头部:setRequestHeader) | ||
#### @1.2.0 | ||
@@ -279,3 +315,3 @@ - 兼容vue@2版本 | ||
#### @1.1.0 | ||
- 调整了Props命名: otherParams=>params, langConf=>langExt | ||
- 调整了Props命名: "otherParams"=>"params", "langConf"=>"langExt" | ||
@@ -310,3 +346,4 @@ ## 示例 | ||
| url | String | '' | 上传接口地址 | | ||
| params | Object | null | 上传附带其他数据,如"{k:v}" | | ||
| params | Object | null | 上传附带其他数据,格式"{k:v}" | | ||
| headers | Object | null | 上传header设置,格式"{k:v}" | | ||
| langType | String | 'zh' | 语言类型,默认中文 | | ||
@@ -365,3 +402,22 @@ | langExt | Object | | 语言包自行扩展 | | ||
} | ||
} | ||
}, | ||
ru: { | ||
hint: 'Нажмите, или перетащите файл в это окно', | ||
loading: 'Загружаю……', | ||
noSupported: 'Ваш браузер не поддерживается, пожалуйста, используйте IE10 + или другие браузеры', | ||
success: 'Загрузка выполнена успешно', | ||
fail: 'Ошибка загрузки', | ||
preview: 'Предпросмотр', | ||
btn: { | ||
off: 'Отменить', | ||
close: 'Закрыть', | ||
back: 'Назад', | ||
save: 'Сохранить' | ||
}, | ||
error: { | ||
onlyImg: 'Только изображения', | ||
outOfSize: 'Изображение превышает предельный размер: ', | ||
lowestPx: 'Минимальный размер изображения: ' | ||
} | ||
} | ||
} | ||
@@ -379,2 +435,3 @@ ``` | ||
:params="params" | ||
:params="headers" | ||
:value.sync="show" | ||
@@ -398,2 +455,5 @@ img-format="png"></my-upload> | ||
}, | ||
headers: { | ||
smail: '*_~' | ||
}, | ||
imgDataUrl: '' // the datebase64 url of created image | ||
@@ -461,2 +521,3 @@ }, | ||
:params="params" | ||
:params="headers" | ||
img-format="png"></my-upload> | ||
@@ -479,2 +540,5 @@ <img :src="imgDataUrl"> | ||
}, | ||
headers: { | ||
smail: '*_~' | ||
}, | ||
imgDataUrl: '' // the datebase64 url of created image | ||
@@ -481,0 +545,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1611629
38191
574