/* 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 PageMeta { /** * 下拉背景字体、loading 图的样式,仅支持 dark 和 light */ "background-text-style"?: string; /** * 窗口的背景色,必须为十六进制颜色值 */ "background-color"?: string; /** * 顶部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持 */ "background-color-top"?: string; /** * 底部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持 */ "background-color-bottom"?: string; /** * 页面内容的背景色,用于页面中的空白部分和页面大小变化 resize 动画期间的临时空闲区域 */ "root-background-color"?: string; /** * 滚动位置,可以使用 px 或者 rpx 为单位,在被设置时,页面会滚动到对应位置 */ "scroll-top"?: string; /** * 滚动动画时长 */ "scroll-duration"?: number; /** * 页面根节点样式,页面根节点是所有页面节点的祖先节点,相当于 HTML 中的 body 节点 */ "page-style"?: string; /** * 页面 page 的字体大小,可以设置为 system ,表示使用当前用户设置的微信字体大小 */ "page-font-size"?: string; /** * 页面的根字体大小,页面中的所有 rem 单位,将使用这个字体大小作为参考值,即 1rem 等于这个字体大小;自小程序版本 2.11.0 起,也可以设置为 system */ "root-font-size"?: string; /** * 页面的方向,可为 auto portrait 或 landscape */ "page-orientation"?: string; /** * 页面尺寸变化时会触发 resize 事件, event.detail = { size: { windowWidth, windowHeight } } */ bindResize?: () => void; /** * 页面滚动时会触发 scroll 事件, event.detail = { scrollTop } */ bindScroll?: () => void; /** * 如果通过改变 scroll-top 属性来使页面滚动,页面滚动结束后会触发 scrolldone 事件 */ bindScrollDone?: () => void; }