mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 08:58:15 +00:00
fix: 往 JSBlock 透传 id 属性
This commit is contained in:
parent
22cb676d14
commit
e9beba4557
@ -313,6 +313,7 @@ export class Prop implements IPropParent {
|
||||
componentName: 'Slot',
|
||||
title: data.title,
|
||||
name: data.name,
|
||||
id: data.id,
|
||||
params: data.params,
|
||||
children: data.value,
|
||||
};
|
||||
|
||||
@ -14,6 +14,7 @@ export function upgradePropsReducer(props: any): any {
|
||||
if (props.value.componentName === 'Slot') {
|
||||
return {
|
||||
type: 'JSSlot',
|
||||
id: props.value.id,
|
||||
title: (props.value.props as any)?.slotTitle,
|
||||
name: (props.value.props as any)?.slotName,
|
||||
value: props.value.children,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user