跳到主要内容

容器

system:container

保存物品槽内容或布局子元素。

节点写入资源包卡片模板的 body 或 children。除各自字段外,所有节点共享 id、style、when、unless、repeat;见节点公共字段。

JSON 字段​

字段类型必填默认值说明
type资源 ID是—system:container
children卡片节点数组是—子节点数组。
text_separator字符串否省略提取为纯文本时的连接符,不改变可视布局。

JSON 示例​

{
"type": "system:container",
"children": [
{
"type": "system:text",
"text": "{{summary}}"
}
]
}

放入卡片模板的 body 或容器的 children。占位符来自服务端快照及客户端构建事件;仅修改 JSON 不会自动产生缺失的数据或业务处理器。

Java 入口​

com.iafenvoy.system.screen.card.node.container.ContainerNode。本页按当前 26.1.2 源码的 Codec 整理。