mirror of https://github.com/abpframework/abp.git
3 changed files with 78 additions and 20 deletions
@ -1,23 +1,42 @@ |
|||||
<ng-container *ngIf="form"> |
<ng-container *ngIf="form"> |
||||
<ng-container *abpPropData="let data; fromList: propList; withRecord: record"> |
|
||||
<ng-container *ngFor="let prop of propList; let first = first; trackBy: track.by('name')"> |
<ng-container *ngFor="let g of groupedPropList.items"> |
||||
<ng-container *ngIf="prop.visible(data)"> |
<ng-container *abpPropData="let data; fromList: g.formPropList; withRecord: record"> |
||||
<ng-container |
|
||||
[formGroupName]="extraPropertiesKey" |
<div *ngIf="g.group?.className; else withoutClassName" |
||||
*ngIf="extraProperties.controls[prop.name]; else tempDefault" |
[class]="g.group?.className" [attr.data-name]="g.group?.className"> |
||||
> |
<ng-container [ngTemplateOutlet]="propListTemplate" [ngTemplateOutletContext]="{g:g,data:data}"> |
||||
<abp-extensible-form-prop [prop]="prop" [data]="data"></abp-extensible-form-prop> |
|
||||
</ng-container> |
</ng-container> |
||||
|
</div> |
||||
|
|
||||
<ng-template #tempDefault> |
<ng-template #withoutClassName> |
||||
<abp-extensible-form-prop |
<ng-container [ngTemplateOutlet]="propListTemplate" [ngTemplateOutletContext]="{g:g,data:data}"> |
||||
*ngIf="form.get(prop.name)" |
</ng-container> |
||||
[prop]="prop" |
</ng-template> |
||||
[data]="data" |
|
||||
[first]="first" |
|
||||
></abp-extensible-form-prop> |
|
||||
</ng-template> |
|
||||
</ng-container> |
|
||||
</ng-container> |
</ng-container> |
||||
|
|
||||
</ng-container> |
</ng-container> |
||||
</ng-container> |
</ng-container> |
||||
|
|
||||
|
|
||||
|
<ng-template let-g="g" let-data="data" #propListTemplate> |
||||
|
<ng-container *ngFor="let prop of g.formPropList; let first = first; trackBy: track.by('name')"> |
||||
|
<ng-container *ngIf="prop.visible(data)"> |
||||
|
<ng-container |
||||
|
[formGroupName]="extraPropertiesKey" |
||||
|
*ngIf="extraProperties.controls[prop.name]; else tempDefault" |
||||
|
> |
||||
|
<abp-extensible-form-prop [prop]="prop" [data]="data"></abp-extensible-form-prop> |
||||
|
</ng-container> |
||||
|
|
||||
|
<ng-template #tempDefault> |
||||
|
<abp-extensible-form-prop |
||||
|
*ngIf="form.get(prop.name)" |
||||
|
[prop]="prop" |
||||
|
[data]="data" |
||||
|
[first]="first" |
||||
|
></abp-extensible-form-prop> |
||||
|
</ng-template> |
||||
|
</ng-container> |
||||
|
</ng-container> |
||||
|
</ng-template> |
||||
|
|||||
Loading…
Reference in new issue