/* 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 ScrollView { /** * 允许横向滚动 */ "scroll-x"?: boolean; /** * 允许纵向滚动 */ "scroll-y"?: boolean; /** * 距顶部 / 左边多远时(单位 px),触发 scrolltoupper 事件 */ "upper-threshold"?: number | string; /** * 距底部 / 右边多远时(单位 px),触发 scrolltolower 事件 */ "lower-threshold"?: number | string; /** * 启用 scroll-view 增强特性 */ enhanced?: boolean; /** * iOS 下 scroll-view 边界弹性控制 (同时开启 enhanced 属性后生效) */ bounces?: boolean; /** * 设置竖向滚动条位置。要动态设置滚动条位置,用法scroll-top="{= scrollTop =}"。 * 如果在设置组件渲染数据的同时设置了 scroll-top、scroll-left 值,需要在 swan.nextTick 回调中设置 scroll-top、scroll-left ,确保滚动条位置准确 */ "scroll-top"?: number | string; /** * 设置横向滚动条位置。要动态设置滚动条位置,用法scroll-left="{= scrollLeft =}"。 * 如果在设置组件渲染数据的同时设置了 scroll-top、scroll-left 值,需要在 swan.nextTick 回调中设置 scroll-top、scroll-left ,确保滚动条位置准确 */ "scroll-left"?: number | string; /** * 值应为某子元素 id(id 不能以数字开头)。设置滚动方向后,按方向滚动到该元素,动态设置用法scroll-into-view="{= scrollIntoView =}" */ "scroll-into-view"?: string; /** * 在设置滚动条位置时使用动画过渡 */ "scroll-with-animation"?: boolean; /** * 安卓双击标题栏时,滚动条返回顶部,只支持竖向 * 注:iOS 端暂不支持 */ "enable-back-to-top"?: boolean; /** * 滚动到顶部 / 左边,会触发 scrolltoupper 事件 */ bindScrollToUpper?: () => void; /** * 滚动到底部 / 右边,会触发 scrolltolower 事件 */ bindScrollToLower?: () => void; /** * 滚动时触发,event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY} */ bindScroll?: () => void; }