/* 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?: string; /** * 外部样式。 */ class?: string; /** * 内联样式。 */ style?: string; /** * 支持图片懒加载,不支持通过 css 来控制 image 展示隐藏的场景。 */ "lazy-load"?: boolean; /** * 默认图片地址,若设置默认图片地址,会先显示默认图片,等 src 对应的图片加载成功后,再渲染对应的图片。 */ "default-source"?: string; /** * 图片载入完毕时触发,事件对象 event.detail = {height: '图片高度px', width: '图片宽度px'}。 */ onLoad?: () => void; /** * 当图片加载错误时触发,事件对象 event.detail = {errMsg: 'something wrong'。 */ onError?: () => void; /** * 点击图片时触发。 */ onTap?: () => void; /** * 点击图片时触发,阻止事件冒泡。 */ catchTap?: () => void; }