props.ts 759 B

1234567891011121314151617181920212223242526
  1. import type { PassThroughProps } from "../../types";
  2. import type { ClIconProps } from "../cl-icon/props";
  3. export type ClImagePassThrough = {
  4. className?: string;
  5. inner?: PassThroughProps;
  6. error?: ClIconProps;
  7. loading?: PassThroughProps;
  8. };
  9. export type ClImageProps = {
  10. className?: string;
  11. pt?: ClImagePassThrough;
  12. src?: string;
  13. mode?: "scaleToFill" | "aspectFit" | "aspectFill" | "widthFix" | "heightFix" | "top" | "bottom" | "center" | "left" | "right" | "top left" | "top right" | "bottom left" | "bottom right";
  14. border?: boolean;
  15. preview?: boolean;
  16. previewList?: string[];
  17. height?: string | number;
  18. width?: string | number;
  19. showLoading?: boolean;
  20. lazyLoad?: boolean;
  21. fadeShow?: boolean;
  22. webp?: boolean;
  23. showMenuByLongpress?: boolean;
  24. };