{
  "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": "#000000"
    },
    "autoplay": {
      "type": "boolean",
      "description": "是否自动切换",
      "defaultValue": false
    },
    "current": {
      "type": "number",
      "description": "当前所在滑块的 index",
      "defaultValue": 0
    },
    "interval": {
      "type": "number",
      "description": "自动切换时间间隔",
      "defaultValue": 5000
    },
    "duration": {
      "type": "number",
      "description": "滑动动画时长",
      "defaultValue": 500
    },
    "circular": {
      "type": "boolean",
      "description": "是否采用衔接滑动",
      "defaultValue": false
    },
    "vertical": {
      "type": "boolean",
      "description": "滑动方向是否为纵向",
      "defaultValue": false
    },
    "previous-margin": {
      "type": "string",
      "description": "前边距，可用于露出前一项的一小部分，接受 px 和 rpx 值",
      "defaultValue": "\"0px\""
    },
    "next-margin": {
      "type": "string",
      "description": "后边距，可用于露出后一项的一小部分，接受 px 和 rpx 值",
      "defaultValue": "\"0px\""
    },
    "snap-to-edge": {
      "type": "boolean",
      "description": "当 swiper-item 的个数大于等于 2，关闭 circular 并且开启 previous-margin 或 next-margin 的时候，可以指定这个边距是否应用到第一个、最后一个元素",
      "defaultValue": false
    },
    "display-multiple-items": {
      "type": "number",
      "description": "同时显示的滑块数量",
      "defaultValue": 1
    },
    "easing-function": {
      "type": "string",
      "description": "指定 swiper 切换缓动动画类型",
      "defaultValue": "\"default\"",
      "enum": [
        "default",
        "linear",
        "easeInCubic",
        "easeOutCubic",
        "easeInOutCubic"
      ]
    },
    "scroll-with-animation": {
      "type": "boolean",
      "description": "改变 current 时使用动画过渡",
      "defaultValue": true
    },
    "cache-extent": {
      "type": "number",
      "description": "缓存区域大小，值为 1 表示提前渲染上下各一屏区域（swiper 容器大小）",
      "defaultValue": 0
    },
    "bindChange": {
      "tsType": "() => void",
      "description": "current 改变时会触发 change 事件，event.detail = {current, source}"
    },
    "bindTransition": {
      "tsType": "() => void",
      "description": "swiper-item 的位置发生改变时会触发 transition 事件，event.detail = {dx: dx, dy: dy}"
    },
    "bindAnimationFinish": {
      "tsType": "() => void",
      "description": "动画结束时会触发 animationfinish 事件，event.detail 同上"
    }
  },
  "additionalProperties": false
}