Skip to main content
Version: 2.x

API Reference > @next-core/brick-types > UseSingleBrickConf

UseSingleBrickConf interface

使用 useBrick 自行渲染子构件的配置(单个)。

Signature:

export interface UseSingleBrickConf

Properties

PropertyTypeDescription
brickstring构件名。
eventsBrickEventsMap构件的事件配置表。
ifstring | boolean | ResolveConf条件渲染配置,根据 if 的计算结果来决定是否渲染该构件。
iidstring构件编排 ID
lifeCyclePick<BrickLifeCycle, "useResolves">构件生命周期配置。在 useBrick 中仅支持 useResolves
propertiesRecord<string, unknown>构件属性。
refstring用于在自定义模板内部引用的 ID。
slotsUseBrickSlotsConfuseBrick 中使用的插槽配置表。
transformGeneralTransform数据转换配置。
transformFromstring | string[]使用返回数据的指定字段作为数据源。