API Reference > @next-core/brick-types > SlotsConf
SlotsConf interface
插槽配置表。
Signature:
export interface SlotsConf
Remarks
对于容器类构件,会有特定的插槽以供插入子构件,容器构件通常会对这些插槽内的子构件有不同的布局及交互处理。
slots 为 key-value 键值对配置,其中 key 为插槽名称,value 为插槽配置。
每个插槽配置有两种模式:构件列表和路由列表。 对于构件列表,容器将直接插入这些子构件。 而对于路由构件,系统将根据路由匹配进行渲染。
Example
brick: "basic-bricks.micro-view"
slots:
toolbar:
type: "bricks"
bricks: ...
content:
type: "routes"
routes: ...