fix: 往 JSBlock 透传 id 属性

This commit is contained in:
lihao.ylh 2022-04-20 19:35:55 +08:00
parent 22cb676d14
commit e9beba4557
2 changed files with 2 additions and 0 deletions

View File

@ -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,
};

View File

@ -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,