← All templates

别名指向 <AliasRoute />

左边 2–5 个 API 名或别名(旧名用虚线),连线汇到右边一个强调色卡片,写明实际提供服务的版本。

Template and style descriptions are currently available in Chinese only.

See it in the demo deck →

Group
AI · 几个名字指向同一个版本
Component
AliasRoute · #alias-route
Interaction
每按一次 → 出现一个名字和它的连线

Good for

  • 模型别名、旧名迁移、版本映射
  • 开场先核对“我们说的是哪个模型”

Avoid when

  • 一对多或多对多的映射:用 FlowDiagram 或 Sankey
  • 名字超过 30 个字符

Content limits

1sources 2–5 个:name ≤ 30 个等宽字符,tag ≤ 6 字
2target.label ≤ 14 字,name ≤ 26 个等宽字符,note ≤ 40 字

Fields

FieldType
kicker · requiredstring标题上方的小节名,2–8 字
title · requiredstring | string[]页面标题;传数组可手动断行,每项一行
leadstring一到两句导语,≤ 60 字
sourcestring事实出处;页面上有任何数据或事实时必填
hintReactNode页眉中间的操作提示,可用 <kbd>
sources · required{ name, tag?, legacy? }[]左侧名字,每个一个 build 步骤
target · required{ label, name, note? }右侧目标版本

Example

<AliasRoute kicker="先核对名字" title="三个 API 名,同一个模型" sources={[{ name: 'model-flash', tag: '当前' }, { name: 'model-v4-flash', tag: '旧名', legacy: true }]} target={{ label: '实际版本', name: 'Model-V4.1-Flash' }} />