vue-image-crop-upload
Advanced tools
Comparing version 2.2.3 to 2.3.0
{ | ||
"name": "vue-image-crop-upload", | ||
"version": "2.2.3", | ||
"version": "2.3.0", | ||
"description": "a vue plgin for image upload and crop(vue图片剪裁上传插件)", | ||
@@ -5,0 +5,0 @@ "main": "upload-2.vue", |
@@ -17,2 +17,9 @@ # vue-image-crop-upload | ||
## Change log | ||
#### @2.3.0 | ||
- If the exported picture is in jpg format, the background is white by default, and you can customize it with the "imgBgc" attribute. If it is png, the default transparent color | ||
- Optimized image rotation | ||
- Added the **Italian** language pack (thanks @phaberest) | ||
- Added the **Arabic** language pack (thanks @barakat-turki) | ||
- Added the **Ukrainian** language pack (thanks @dvomaks) | ||
#### @2.2.3 | ||
@@ -97,3 +104,4 @@ - Added the **Japanese** language pack (thanks @KangYoosam) | ||
| height | Number | 200 | height of receive image | | ||
| imgFormat | string | 'jpg' | jpg/png, Server api receive file type. | | ||
| imgFormat | string | 'png' | jpg/png, Server api receive file type. | | ||
| imgBgc | string | '#fff' | background color, if the imgFormat prop is jpg | | ||
| noCircle | Boolean | false | disable circle preview | | ||
@@ -126,2 +134,5 @@ | noSquare | Boolean | false | disable square preview | | ||
| Japanese | ja | KangYoosam | | ||
| Italian | it | phaberest | | ||
| Arabic | ar | barakat-turki | | ||
| ukrainian | ua | dvomaks | | ||
@@ -321,2 +332,6 @@ ```js | ||
## 更新日志 | ||
#### @2.3.0 | ||
- 如果导出图片格式为jpg,则背景默认白色,你也可以通过新增的“imgBgc”属性自定义。如果导出格式为png,则默认透明 | ||
- 优化了旋转效果 | ||
#### @2.1.0 | ||
@@ -371,3 +386,4 @@ - 增加了图片旋转和不显示方形预览图片的功能 | ||
| height | Number | 200 | 最终得到的图片高度 | | ||
| imgFormat | string | 'jpg' | jpg/png, 最终得到的图片格式 | | ||
| imgFormat | string | 'png' | jpg/png, 最终得到的图片格式 | | ||
| imgBgc | string | '#fff' | 导出图片背景色,当imgFormat属性为jpg时生效 | | ||
| noCircle | Boolean | false | 关闭 圆形图像预览 | | ||
@@ -374,0 +390,0 @@ | noSquare | Boolean | false | 关闭 方形图像预览 | |
@@ -176,18 +176,18 @@ export default { | ||
'es-MX': { | ||
hint:'Selecciona o arrastra una imagen', | ||
loading:'Subiendo...', | ||
noSupported:'Tu navegador no es soportado, porfavor usa IE10+ u otros navegadores mas recientes', | ||
success:'Subido exitosamente', | ||
fail:'Sucedió un error', | ||
preview:'Vista previa', | ||
btn:{ | ||
off:'Cancelar', | ||
close:'Cerrar', | ||
back:'Atras', | ||
save:'Guardar' | ||
hint: 'Selecciona o arrastra una imagen', | ||
loading: 'Subiendo...', | ||
noSupported: 'Tu navegador no es soportado, porfavor usa IE10+ u otros navegadores mas recientes', | ||
success: 'Subido exitosamente', | ||
fail: 'Sucedió un error', | ||
preview: 'Vista previa', | ||
btn: { | ||
off: 'Cancelar', | ||
close: 'Cerrar', | ||
back: 'Atras', | ||
save: 'Guardar' | ||
}, | ||
error:{ | ||
onlyImg:'Unicamente imagenes', | ||
outOfSize:'La imagen excede el tamaño maximo:', | ||
lowestPx:'La imagen es demasiado pequeño. Se espera por lo menos:' | ||
error: { | ||
onlyImg: 'Unicamente imagenes', | ||
outOfSize: 'La imagen excede el tamaño maximo:', | ||
lowestPx: 'La imagen es demasiado pequeño. Se espera por lo menos:' | ||
} | ||
@@ -232,3 +232,60 @@ }, | ||
} | ||
}, | ||
ua: { | ||
hint: 'Натисніть, або перетягніть файл в це вікно', | ||
loading: 'Завантажую……', | ||
noSupported: 'Ваш браузер не підтримується, будь ласка скористайтесь IE10 + або іншими браузерами', | ||
success: 'Завантаження виконано успішно', | ||
fail: 'Помилка завантаження', | ||
preview: 'Попередній перегляд', | ||
btn: { | ||
off: 'Відмінити', | ||
close: 'Закрити', | ||
back: 'Назад', | ||
save: 'Зберегти' | ||
}, | ||
error: { | ||
onlyImg: 'Тільки зображення', | ||
outOfSize: 'Зображення перевищує граничний розмір: ', | ||
lowestPx: 'Мінімальний розмір зображення: ' | ||
} | ||
}, | ||
it: { | ||
hint: 'Clicca o trascina qui il file per caricarlo', | ||
loading: 'Caricamento del file…', | ||
noSupported: 'Browser non supportato, per favore usa IE10+ o un altro browser', | ||
success: 'Caricamento completato', | ||
fail: 'Caricamento fallito', | ||
preview: 'Anteprima', | ||
btn: { | ||
off: 'Annulla', | ||
close: 'Chiudi', | ||
back: 'Indietro', | ||
save: 'Salva' | ||
}, | ||
error: { | ||
onlyImg: 'Sono accettate solo immagini', | ||
outOfSize: 'L\'immagine eccede i limiti di dimensione: ', | ||
lowestPx: 'L\'immagine è troppo piccola. Il requisito minimo è: ' | ||
} | ||
}, | ||
ar: { | ||
hint: 'اضغط أو اسحب الملف هنا للتحميل', | ||
loading: 'جاري التحميل...', | ||
noSupported: 'المتصفح غير مدعوم ، يرجى استخدام IE10 + أو متصفح أخر', | ||
success: 'تم التحميل بنجاح', | ||
fail: 'فشل التحميل', | ||
preview: 'معاينه', | ||
btn: { | ||
off: 'إلغاء', | ||
close: 'إغلاق', | ||
back: 'رجوع', | ||
save: 'حفظ' | ||
}, | ||
error: { | ||
onlyImg: 'صور فقط', | ||
outOfSize: 'تتجاوز الصوره الحجم المحدد: ', | ||
lowestPx: 'حجم الصورة صغير جدا. من المتوقع على الأقل: ' | ||
} | ||
} | ||
}; |
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 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
1971056
25
40240
581