Skip to content

Commit

Permalink
fix(module:list): static query list-item-action template (#8527)
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperLife1119 committed May 20, 2024
1 parent c1e39e7 commit 85301e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/list/list-item-cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
TemplateRef,
ViewChild
} from '@angular/core';
import { defer, merge, Observable, of, Subject } from 'rxjs';
import { Observable, Subject, defer, merge, of } from 'rxjs';
import { mergeMap, startWith, takeUntil } from 'rxjs/operators';

import { NzDestroyService } from 'ng-zorro-antd/core/services';
Expand All @@ -26,7 +26,7 @@ import { NzSafeAny } from 'ng-zorro-antd/core/types';
selector: 'nz-list-item-extra, [nz-list-item-extra]',
exportAs: 'nzListItemExtra',
changeDetection: ChangeDetectionStrategy.OnPush,
template: ` <ng-content></ng-content> `,
template: `<ng-content></ng-content>`,
host: {
class: 'ant-list-item-extra'
},
Expand All @@ -38,11 +38,11 @@ export class NzListItemExtraComponent {}
selector: 'nz-list-item-action',
exportAs: 'nzListItemAction',
changeDetection: ChangeDetectionStrategy.OnPush,
template: ` <ng-template><ng-content></ng-content></ng-template> `,
template: `<ng-template><ng-content></ng-content></ng-template>`,
standalone: true
})
export class NzListItemActionComponent {
@ViewChild(TemplateRef) templateRef?: TemplateRef<void>;
@ViewChild(TemplateRef, { static: true }) templateRef?: TemplateRef<void>;
}

@Component({
Expand Down

0 comments on commit 85301e0

Please sign in to comment.