{
  "title": "scroll-view",
  "type": "object",
  "properties": {
    "class": {
      "type": "string",
      "description": "外部样式名。"
    },
    "style": {
      "type": "string",
      "description": "内联样式名。"
    },
    "scroll-x": {
      "type": "boolean",
      "description": "允许横向滚动。",
      "defaultValue": false
    },
    "scroll-y": {
      "type": "boolean",
      "description": "允许纵向滚动。",
      "defaultValue": false
    },
    "upper-threshold": {
      "type": "number",
      "description": "距顶部/左边多远时（单位px），触发 scrolltoupper 事件。",
      "defaultValue": 50
    },
    "lower-threshold": {
      "type": "number",
      "description": "距底部/右边多远时（单位px），触发 scrolltolower 事件。",
      "defaultValue": 50
    },
    "scroll-top": {
      "type": "number",
      "description": "设置竖向滚动条位置。"
    },
    "scroll-left": {
      "type": "number",
      "description": "设置横向滚动条位置。"
    },
    "scroll-into-view": {
      "type": "string",
      "description": "滚动到子元素，值应为某子元素的 id。当滚动到该元素时，元素顶部对齐滚动区域顶部。\n说明：scroll-into-view 的优先级高于 scroll-top。"
    },
    "scroll-with-animation": {
      "type": "boolean",
      "description": "在设置滚动条位置时使用动画过渡。",
      "defaultValue": false
    },
    "scroll-animation-duration": {
      "type": "number",
      "description": "当 scroll-with-animation设置为 true 时，可以设置 scroll-animation-duration 来控制动画的执行时间，单位 ms。"
    },
    "enable-back-to-top": {
      "type": "boolean",
      "description": "当点击 iOS 顶部状态栏或者双击 Android 标题栏时，滚动条返回顶部，只支持竖向。",
      "defaultValue": false
    },
    "trap-scroll": {
      "type": "boolean",
      "description": "纵向滚动时，当滚动到顶部或底部时，强制禁止触发页面滚动，仍然只触发 scroll-view 自身的滚动。",
      "defaultValue": false
    },
    "onScrollToUpper": {
      "tsType": "() => void",
      "description": "滚动到顶部/左边，会触发 scrolltoupper 事件。"
    },
    "onScrollToLower": {
      "tsType": "() => void",
      "description": "滚动到底部/右边，会触发 scrolltolower事件。"
    },
    "onScroll": {
      "tsType": "() => void",
      "description": "滚动时触发，event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth}。"
    },
    "onTouchStart": {
      "tsType": "() => void",
      "description": "触摸动作开始。"
    },
    "onTouchMove": {
      "tsType": "() => void",
      "description": "触摸后移动。"
    },
    "onTouchEnd": {
      "tsType": "() => void",
      "description": "触摸动作结束。"
    },
    "onTouchCancel": {
      "tsType": "() => void",
      "description": "触摸动作被打断，如来电提醒、弹窗。"
    },
    "disable-lower-scroll": {
      "type": "string",
      "description": "发生滚动前，对滚动方向进行判断，当方向是顶部/左边时，如果值为 always 将始终禁止滚动，如果值为 out-of-bounds 且当前已经滚动到顶部/左边，禁止滚动。"
    },
    "disable-upper-scroll": {
      "type": "string",
      "description": "发生滚动前，对滚动方向进行判断，当方向是底部/右边时，如果值为 always 将始终禁止滚动，如果值为 out-of-bounds 且当前已经滚动到底部/右边，禁止滚动。"
    }
  },
  "additionalProperties": false
}