fix meta
This commit is contained in:
parent
bedc8a57ce
commit
122aba4339
File diff suppressed because one or more lines are too long
|
|
@ -103,20 +103,22 @@ export const genComp = (p: GenMetaP, arg: GenMetaArg) => {
|
||||||
for (const child of Object.values(item.childs)) {
|
for (const child of Object.values(item.childs)) {
|
||||||
if (child?.name?.startsWith("jsx:")) continue;
|
if (child?.name?.startsWith("jsx:")) continue;
|
||||||
|
|
||||||
genMeta(
|
if (child && Object.keys(child).length > 1) {
|
||||||
{ ...p, mode: "comp" },
|
genMeta(
|
||||||
{
|
{ ...p, mode: "comp" },
|
||||||
item: child,
|
{
|
||||||
is_root: false,
|
item: child,
|
||||||
root: arg.root || arg.item,
|
is_root: false,
|
||||||
parent: {
|
root: arg.root || arg.item,
|
||||||
item,
|
parent: {
|
||||||
instance_id: item.id,
|
item,
|
||||||
root_instances: instances,
|
instance_id: item.id,
|
||||||
comp: item_comp,
|
root_instances: instances,
|
||||||
},
|
comp: item_comp,
|
||||||
}
|
},
|
||||||
);
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue