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

Co-authored-by: 吉远 <jiyuan@txhmo.com>
vite8^2
JyQAQ 2026-03-16 18:25:04 +08:00 committed by GitHub
parent 186914bcac
commit 3dcfd23036
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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