Skip to content

配置

顶层 props 指哪一侧

API顶层 props
createLayer / defineLayer容器
useLayer / open / clone内容

另一侧显式写 content / container

公开 flat 类型(Raw)

类型用于
LayerConfigCreatecreateLayer 第二参
LayerConfigContainerdefineLayer
LayerConfigContentuse / open / clone

Fragment / Adapter

类型说明
LayerConfigFragment双侧分栏;adapter / store
LayerAdapter(fragment) => fragment

命名与管线见 配置域命名

合并优先级

text
open > use > use:template > define > define:template > create

closeOn

  • 用户配置:CloseOnRaw(数组糖或 Record)
  • 跨 tier:按事件 patch,非整表替换
  • when: 'none' / false 去掉该事件
  • 数组糖默认 confirmed: falseconfirm() 成功路径需显式 confirmed: true

指南:用事件关闭弹层

未知字段

未知配置键不进入合并契约(见 ADR 0004)。

MIT Licensed