光束流向图 <BeamFlow />
左列输入、中间一个枢纽、右列输出,用曲线相连,线上有光点沿方向流动,表示数据或请求的走向。
Template and style descriptions are currently available in Chinese only.
- Group
- 技术 · 架构 · 多进一出
- Component
BeamFlow·#beam-flow- Interaction
- build 模式下依次出现:输入列、枢纽、输出列;光点动画在减少动态效果和打印时关闭
Good for
- 讲一个枢纽连接多个来源和去处:网关、数据库进程、消息总线
- 方向比层级更重要
Avoid when
- 有分层关系:用 ArchLayers
- 有先后步骤:用 FlowDiagram
- 节点间是任意网状关系:用 NodeGraph
Content limits
| 1 | inputs、outputs 各 2–4 个;label ≤ 10 字或 ≤ 18 个字符;sub ≤ 14 字 |
| 2 | hub 同上 |
| 3 | heads 每项 ≤ 8 字 |
Fields
| Field | Type | |
|---|---|---|
kicker · required | string | 标题上方的小节名,2–8 字 |
title · required | string | string[] | 页面标题;传数组可手动断行,每项一行 |
lead | string | 一到两句导语,≤ 60 字 |
source | string | 事实出处;页面上有任何数据或事实时必填 |
hint | ReactNode | 页眉中间的操作提示,可用 <kbd> |
inputs · required | { label, sub? }[] | 左列 |
hub · required | { label, sub? } | 中间枢纽 |
outputs · required | { label, sub? }[] | 右列 |
heads | [string, string] | 左右两列的列名 |
Example
<BeamFlow kicker="架构" title="…" inputs={[{ label: 'psql' }, …]} hub={{ label: 'postmaster' }} outputs={[{ label: '共享缓冲区' }, …]} />