/* 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; /** * swiper-item 可见时的 class。 */ "active-class"?: string; /** * acceleration 设置为 {{true}} 时且处于滑动过程中,中间若干屏处于可见时的 class。 */ "changing-class"?: string; /** * 是否自动切换。 */ autoplay?: boolean; /** * 当前页面的 index,可以增加左右箭头来控制轮播滚动。 */ current?: number; /** * 滑动动画时长。 */ duration?: number; /** * 自动切换时间间隔。 */ interval?: number; /** * 是否启用无限滑动。 */ circular?: boolean; /** * 滑动方向是否为纵向。 */ vertical?: boolean; /** * 前边距,单位 px,1.9.0 暂时只支持水平方向。说明: 去除 previous-margin 的设置距离可删除 swiper 组件左右空白距离。 */ "previous-margin"?: string; /** * 后边距,单位 px,1.9.0 暂时只支持水平方向。说明: 去除 next-margin 的设置距离可删除 swiper 组件左右空白距离。 */ "next-margin"?: string; /** * 当开启时,会根据滑动速度,连续滑动多屏。 */ acceleration?: boolean; /** * 是否禁用代码变动触发 swiper 切换时使用动画。 */ "disable-programmatic-animation"?: boolean; /** * current 改变时会触发,event.detail = {current, isChanging},其中 isChanging 需 acceleration 设置为 {{true}} 时才有值,当连续滑动多屏时,中间若干屏触发 onChange 事件时 isChanging 为 true,最后一屏返回 false。 */ onChange?: () => void; /** * swiper 中 swiper-item 的位置发生改变时会触发 transition 事件。 * 其中{dx,dy} = event.detail 基础库 2.6.0 开始支持。 */ onTransition?: () => void; /** * 动画结束时会触发 animationEnd 事件,event.detail = {current, source},其中 source 的值有 autoplay 和  touch。 */ onAnimationEnd?: () => void; /** * 是否禁止用户 touch 操作。 */ "disable-touch"?: boolean; /** * 滑动距离阈值,当滑动距离超过阈值时进行 swiper-item 切换。 */ "swipe-ratio"?: number; /** * 滑动综合速度阈值,当超过阈值时进行 swiper-item 切换,数值越小越敏感。 */ "swipe-speed"?: number; /** * 计算用户手势时所依赖的滑动角度。角度根据 touchstart 事件和首次 touchmove 事件的坐标计算得出。数值越小越对用户的滑动方向准确度要求越高。 */ "touch-angle"?: number; /** * 同时显示的滑块数量。 */ "display-multiple-items"?: number; /** * 切换缓动动画类型。 */ "easing-function"?: string; /** * 当 swiper-item 个数大于等于 2,关闭 circular 并且开启 previous-margin 或 next-margin 时,可以指定这个边距是否应用到第一个、最后一个元素。 */ "snap-to-edge"?: boolean; /** * 自动以指定滑块的高度为整个容器的高度。当 vertical 为 true 时,默认不调整。可选值为: * * first:第一个滑块。 * current:实时的当前滑块。 * highest:高度最大的滑块。 * none:不根据滑块调整高度,容器高度取决于自身样式。 */ "adjust-height"?: string; /** * vertical 为 true 时强制使 adjust-height 生效。 */ "adjust-vertical-height"?: boolean; }