Commit c3d3d408 authored by Li Mingzhe's avatar Li Mingzhe

feat: 渲染问题

parent 196c0114
<div class="model-content">
<div style="padding: 20px">
<div *ngFor="let group of groupArr; let gIdx = index;">
......
......@@ -89,7 +89,28 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.item.groupArr = [];
}
this.groupArr = this.item.groupArr;
this.groupArr = [];
this.curNgIndex = 0;
this.setAngularArr();
}
curNgIndex = 0
setAngularArr() {
if (this.item.groupArr.length <= 0) {
return;
}
if (this.item.groupArr[ this.curNgIndex ]) {
this.groupArr[this.curNgIndex] = this.item.groupArr[ this.curNgIndex ];
setTimeout(() => {
this.curNgIndex ++;
this.setAngularArr();
},1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment