/* 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 Swiper { /** * 是否显示面板指示点 */ "indicator-dots"?: boolean; /** * 指示点颜色 */ "indicator-color"?: string; /** * 当前选中的指示点颜色 */ "indicator-active-color"?: string; /** * 是否自动切换 */ autoplay?: boolean; /** * 当前所在滑块的 index */ current?: number; /** * 当前所在滑块的 item-id ,不能与 current 被同时指定 */ "current-item-id"?: string; /** * 自动切换时间间隔 */ interval?: number; /** * 滑动动画时长 */ duration?: number; /** * 是否采用衔接滑动 */ circular?: boolean; /** * 滑动方向是否为纵向 */ vertical?: boolean; /** * 前边距,可用于露出前一项的一小部分,接受 px 和 rpx 值 */ "previous-margin"?: string; /** * 后边距,可用于露出后一项的一小部分,接受 px 和 rpx 值 */ "next-margin"?: string; /** * 同时显示的滑块数量 */ "display-multiple-items"?: number; /** * 是否跳过未显示的滑块布局,设为 true 可优化复杂情况下的滑动性能,但会丢失隐藏状态滑块的布局信息 */ "skip-hidden-item-layout"?: boolean; /** * current 改变时会触发 change 事件,event.detail = {current: current, source: source} */ bindChange?: () => void; /** * swiper-item 的位置发生改变时会触发 transition 事件,event.detail = {dx: dx, dy: dy} */ bindTransition?: () => void; /** * 动画结束时会触发 animationfinish 事件,event.detail 同上 */ bindAnimationFinish?: () => void; }