Skip to main content

AiUpdateComponentPropsOperation

@lowcode/shared-types


Interface: AiUpdateComponentPropsOperation

Defined in: ai.ts:435

Операция: изменение props и/или layout у существующего компонента.

Remarks​

Патчи применяются поверх текущих значений (shallow merge).

Extends​

Properties​

componentId​

componentId: string

Defined in: ai.ts:441

Идентификатор изменяемого компонента.


kind​

kind: "updateComponentProps"

Defined in: ai.ts:436

Тип операции.

Overrides​

AiBaseOperation.kind


layoutPatch?​

optional layoutPatch: Record<string, PropValue>

Defined in: ai.ts:447

Патч для layout (shallow).


pageId​

pageId: string

Defined in: ai.ts:439

Страница, на которой находится компонент.


propsPatch?​

optional propsPatch: Record<string, PropValue>

Defined in: ai.ts:444

Патч для props (shallow).


stylePatch?​

optional stylePatch: Record<string, PropValue>

Defined in: ai.ts:450

Патч для style (shallow).