props.ts 567 B

12345678910111213141516171819202122232425
  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. minScale?: number;
  19. showButtons?: boolean;
  20. quality?: number;
  21. format?: "jpg" | "png";
  22. disabled?: boolean;
  23. };