This commit is contained in:
icssoa
2025-08-01 09:56:48 +08:00
parent e2e1980752
commit a9169134d0
5 changed files with 520 additions and 280 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -17,9 +17,10 @@ export type ClCropperProps = {
cropWidth?: string | number;
cropHeight?: string | number;
maxScale?: number;
minScale?: number;
showButtons?: boolean;
quality?: number;
format?: "jpg" | "png";
disabled?: boolean;
canResize?: boolean; // 是否可以自定义裁剪框大小
canFlip?: boolean; // 是否显示翻转功能
};

View File

@@ -152,3 +152,9 @@ declare type ClSignComponentPublicInstance = {
clear: () => void;
toPng: () => Promise<string>;
};
declare type ClCropperComponentPublicInstance = {
open: (url: string) => void;
close: () => void;
chooseImage: () => void;
};