Page / 页面

展示页面内容的通用容器。

基础的

内容将会被展示在页面中间。

内容块

添加 HeaderFooter 得到更好的布局效果。

APIs / 接口文档

Page.Props

属性描述类型推荐值默认
render渲染方式PageRenderMode-default
dotBackdrop在背景中显示装饰样式boolean-false
dotSize背景中的点大小CSSProperties-1px
dotSpace背景中每个点的间距number-1
...原生属性HTMLAttributes'autoFocus', 'name', 'className', ...-

Page.Header.Props

属性描述类型推荐值默认
center居中对齐内容boolean-false
...原生属性HTMLAttributes'autoFocus', 'name', 'className', ...-

Page.Content.Props[别名: Page.Body]

属性描述类型推荐值默认
...原生属性HTMLAttributes'autoFocus', 'name', 'className', ...-

Page.Footer.Props

属性描述类型推荐值默认
...原生属性HTMLAttributes'autoFocus', 'name', 'className', ...-

PageRenderMode

type PageRenderMode =
  | 'default' // 正常渲染
  | 'effect' // 在 effect 第一次触发后渲染
  | 'effect-seo' // 类似于 "effect",但首屏为 SEO 额外返回字符串