viewScreen

[English]

概览

viewScreen 是可挂载的 top-level screen,运行时可由 mount_screen(...)screenFlow 挂载,挂载路径为 /<id>

相关文档

字段

Key

类型

默认值

是否必填

说明

type

string

固定为 "viewScreen"

id

string

screen id;挂载路径为 /<id>

mountMode

eager / dynamic

eager

dynamic 表示首次 mount 时创建子树

commonProps

object

baseline

通用状态,见 commonProps

layout

object

baseline

直接子节点布局,见 布局

placement

object

baseline

当前节点摆放,见 定位

style

object

theme 合并结果

视觉样式,见 样式

stateStyles

object

{}

状态样式覆盖,见 State Styles

styleRefs

string[]

[]

命名样式引用,见 视图

events

array

[]

事件声明,见 事件

animations

array

[]

声明式动画,见 动画

bindings

object

{}

store 绑定,见 绑定

children

array

[]

子节点或 templateRef

{
    "type": "viewScreen",
    "id": "home",
    "children": [
        {"type": "label", "id": "title", "labelProps": {"text": "Home"}}
    ]
}