UNPKG

@meleon/uni-ui

Version:

A uniapp components library written in vue3 and typescript

52 lines (51 loc) 1.14 kB
export declare enum ImageModeEnum { SCALE_TO_FILL = "scaleToFill", ASPECT_FIT = "aspectFit", ASPECT_FILL = "aspectFill", WIDTH_FIX = "widthFix", HEIGHT_FIX = "heightFix" } export type ImageToolType = 'zoomIn' | 'zoomOut' | 'rotate' | 'reset'; export interface ImageToolEntity { name: string; icon: string; handler: () => void; } export interface ImageProps { /** * @description 当前页面是否包含导航栏 */ hasNav: boolean; /** * @description 图片地址 */ src: string; /** * @description 图片模式 */ mode: ImageModeEnum; /** * @description 图片宽度 */ width: number; /** * @description 图片高度 */ height: number; /** * @description 显示的工具栏列表 */ tools: string; /** * @description 是否显示预览 */ showPreview: boolean; /** * @description 是否显示加载中 */ showLoading: boolean; /** * @description 是否显示异常提示 */ showError: boolean; }