/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ export interface Image { /** * 图片资源地址 */ src?: string; /** * 图片裁剪、缩放的模式 */ mode?: | "scaleToFill" | "aspectFit" | "aspectFill" | "widthFix" | "heightFix" | "top" | "bottom" | "center" | "left" | "right" | "top left" | "top right" | "bottom left" | "bottom right"; /** * 无需指定,默认支持 */ webp?: boolean; /** * 受 scroll-view 按需渲染影响,默认生效 */ "lazy-load"?: boolean; /** * 长按图片显示发送给朋友、收藏、保存图片、搜一搜、打开名片/前往群聊/打开小程序(若图片中包含对应二维码或小程序码)的菜单。 */ "show-menu-by-longpress"?: boolean; /** * 是否渐显 */ "fade-in"?: boolean; /** * 当错误发生时触发,event.detail = {errMsg} */ bindError?: () => void; /** * 当图片载入完毕时触发,event.detail = {height, width} */ bindLoad?: () => void; }