Browse Source
Merge pull request #19160 from abpframework/auto-merge/rel-8-1/2544
Merge branch dev with rel-8.1
pull/19180/head
maliming
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
npm/ng-packs/packages/components/extensible/src/lib/models/form-props.ts
|
|
|
@ -34,6 +34,7 @@ export interface FormPropTooltip { |
|
|
|
|
|
|
|
export class GroupedFormPropList<R = any> { |
|
|
|
public readonly items: GroupedFormPropItem[] = []; |
|
|
|
count = 1; |
|
|
|
addItem(item: FormProp<R>) { |
|
|
|
const groupName = item.group?.name; |
|
|
|
let group = this.items.find(i => i.group?.name === groupName); |
|
|
|
@ -42,7 +43,7 @@ export class GroupedFormPropList<R = any> { |
|
|
|
} else { |
|
|
|
group = { |
|
|
|
formPropList: new FormPropList(), |
|
|
|
group: item.group, |
|
|
|
group: item.group || { name: `default${this.count++}`, className: item.group?.className }, |
|
|
|
}; |
|
|
|
group.formPropList.addHead(item); |
|
|
|
this.items.push(group); |
|
|
|
|