版本发布
This commit is contained in:
26
uni_modules/cool-ui/components/cl-image/props.ts
Normal file
26
uni_modules/cool-ui/components/cl-image/props.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user