@quanxi/ui
Version:
全悉组件库
16 lines (15 loc) • 424 B
TypeScript
import { CSSProperties } from 'react';
import './style.scss';
export type ImageProps = {
style?: CSSProperties;
className?: string;
src: string;
alt?: string;
width?: string;
height?: string;
fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
preview?: boolean;
previewList?: Array<string>;
toIndex?: number;
};
export default function Image(props: ImageProps): JSX.Element;