props.ts 657 B

1234567891011121314151617181920212223242526
  1. import type { PassThroughProps } from "../../types";
  2. export type ClCropperPassThrough = {
  3. className?: string;
  4. inner?: PassThroughProps;
  5. image?: PassThroughProps;
  6. cropBox?: PassThroughProps;
  7. button?: PassThroughProps;
  8. };
  9. export type ClCropperProps = {
  10. className?: string;
  11. pt?: ClCropperPassThrough;
  12. src?: string;
  13. width?: string | number;
  14. height?: string | number;
  15. cropWidth?: string | number;
  16. cropHeight?: string | number;
  17. maxScale?: number;
  18. showButtons?: boolean;
  19. quality?: number;
  20. format?: "jpg" | "png";
  21. disabled?: boolean;
  22. canResize?: boolean; // 是否可以自定义裁剪框大小
  23. canFlip?: boolean; // 是否显示翻转功能
  24. };