Files
WAI_Project_UNIX/uni_modules/cool-ui/components/cl-cropper/props.ts
2025-08-01 09:56:48 +08:00

26 lines
657 B
TypeScript

import type { PassThroughProps } from "../../types";
export type ClCropperPassThrough = {
className?: string;
inner?: PassThroughProps;
image?: PassThroughProps;
cropBox?: PassThroughProps;
button?: PassThroughProps;
};
export type ClCropperProps = {
className?: string;
pt?: ClCropperPassThrough;
src?: string;
width?: string | number;
height?: string | number;
cropWidth?: string | number;
cropHeight?: string | number;
maxScale?: number;
showButtons?: boolean;
quality?: number;
format?: "jpg" | "png";
disabled?: boolean;
canResize?: boolean; // 是否可以自定义裁剪框大小
canFlip?: boolean; // 是否显示翻转功能
};