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