Files
WAI_Project_UNIX/uni_modules/cool-ui/components/cl-image/props.ts
2025-07-21 16:47:04 +08:00

27 lines
759 B
TypeScript

import type { PassThroughProps } from "../../types";
import type { ClIconProps } from "../cl-icon/props";
export type ClImagePassThrough = {
className?: string;
inner?: PassThroughProps;
error?: ClIconProps;
loading?: PassThroughProps;
};
export type ClImageProps = {
className?: string;
pt?: ClImagePassThrough;
src?: string;
mode?: "scaleToFill" | "aspectFit" | "aspectFill" | "widthFix" | "heightFix" | "top" | "bottom" | "center" | "left" | "right" | "top left" | "top right" | "bottom left" | "bottom right";
border?: boolean;
preview?: boolean;
previewList?: string[];
height?: string | number;
width?: string | number;
showLoading?: boolean;
lazyLoad?: boolean;
fadeShow?: boolean;
webp?: boolean;
showMenuByLongpress?: boolean;
};