/* 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; /** * 设置竖向滚动条位置(单位px) */ "scroll-top"?: number | string; /** * 设置横向滚动条位置(单位px) */ "scroll-left"?: number | string; /** * 值应为某子元素id(id不能以数字开头)。设置哪个方向可滚动,则在哪个方向滚动到该元素 */ "scroll-into-view"?: string; /** * 在设置滚动条位置时使用动画过渡 */ "scroll-with-animation"?: boolean; /** * iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向 */ "enable-back-to-top"?: boolean; /** * 无障碍访问,(属性)元素的额外描述 */ "aria-label"?: string; /** * 滚动到顶部/左边,会触发 scrolltoupper 事件 */ bindScrollToUpper?: () => void; /** * 滚动到底部/右边,会触发 scrolltolower 事件 */ bindScrollToLower?: () => void; /** * 滚动时触发,event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY} */ bindScroll?: () => void; }