wip fix
This commit is contained in:
parent
9ebb28884a
commit
07e2343700
|
|
@ -10,15 +10,17 @@ export const scopeMapExportImport = (p: PG, meta: IMeta, parents: IMeta[]) => {
|
||||||
for (const m of parents) {
|
for (const m of parents) {
|
||||||
next_parent = parents[i + 1];
|
next_parent = parents[i + 1];
|
||||||
|
|
||||||
// if (active.comp_id && m.parent?.id === "root" && active.instance) {
|
let def = m.scope.def;
|
||||||
// const meta = p.page.meta[active.instance.item_id];
|
|
||||||
// if (meta) {
|
if (active.comp_id && m.parent?.id === "root" && active.instance) {
|
||||||
// if (!m.scope.def) m.scope.def = {};
|
const meta = p.page.meta[active.instance.item_id];
|
||||||
// m.scope.def.props = { ...m.scope.def.props, ...meta.scope?.def?.props };
|
if (meta) {
|
||||||
// }
|
if (!m.scope.def) m.scope.def = {};
|
||||||
// }
|
def = m.scope.def;
|
||||||
|
def.props = { ...m.scope.def.props, ...meta.scope?.def?.props };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const def = m.scope.def;
|
|
||||||
if (def) {
|
if (def) {
|
||||||
const ex = extractExportImport(p, m, imports);
|
const ex = extractExportImport(p, m, imports);
|
||||||
if (next_parent) {
|
if (next_parent) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue