Browse Source

perf: 裁剪组件默认输出格式调整 (#7673)

Co-authored-by: 吉远 <jiyuan@txhmo.com>
pull/7662/head
JyQAQ 1 week ago
committed by GitHub
parent
commit
3dcfd23036
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/effects/common-ui/src/components/cropper/cropper.vue

2
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,

Loading…
Cancel
Save