Browse Source
perf: 裁剪组件默认输出格式调整 (#7673)
Co-authored-by: 吉远 <jiyuan@txhmo.com>
pull/7662/head
JyQAQ
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
packages/effects/common-ui/src/components/cropper/cropper.vue
|
|
|
@ -528,7 +528,7 @@ const handleImageLoad = () => { |
|
|
|
* @param {number} targetHeight - 目标高度(可选,不传则为原始裁剪高度) |
|
|
|
*/ |
|
|
|
const getCropImage = async ( |
|
|
|
format: 'image/jpeg' | 'image/png' = 'image/jpeg', |
|
|
|
format: 'image/jpeg' | 'image/png' = 'image/png', |
|
|
|
quality: number = 0.92, |
|
|
|
outputType: 'base64' | 'blob' = 'blob', |
|
|
|
targetWidth?: number, |
|
|
|
|