|
@@ -22,7 +22,9 @@ export class CompController{
|
|
|
this.state.content = designData.content || [];
|
|
|
const arr = this.state.content;
|
|
|
this.designCompMap.clear();
|
|
|
-
|
|
|
+
|
|
|
+ debugger;
|
|
|
+
|
|
|
const ParseComp = (obj:any)=> {
|
|
|
if (typeof obj != "object") return;
|
|
|
//作为组件
|
|
@@ -30,7 +32,7 @@ export class CompController{
|
|
|
this.designCompMap.set(obj.id, obj);
|
|
|
} else {
|
|
|
for (const c in obj) {
|
|
|
- ParseComp(c);
|
|
|
+ ParseComp(obj[c]);
|
|
|
}
|
|
|
}
|
|
|
}
|