• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atinc / ngx-tethys / #55

30 Jul 2025 07:08AM UTC coverage: 9.866% (-80.4%) from 90.297%
#55

push

why520crazy
feat(empty): add setMessage for update display text #TINFR-2616

92 of 6794 branches covered (1.35%)

Branch coverage included in aggregate %.

2014 of 14552 relevant lines covered (13.84%)

6.15 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

28.57
/src/image/image-group.component.ts
1
import { ChangeDetectionStrategy, Component, ViewEncapsulation, Injector, ElementRef, inject } from '@angular/core';
2
import { IThyImageDirective, IThyImageGroupComponent, THY_IMAGE_GROUP_COMPONENT } from './image.token';
3

4
/**
5
 * 图片分组,提供 thyImageGroup 指令和 thy-image-group 标签两种使用方式
6
 * @name thy-image-group,[thyImageGroup]
7
 */
8
@Component({
1✔
9
    selector: 'thy-image-group, [thyImageGroup]',
10
    template: '<ng-content></ng-content>',
×
11
    changeDetection: ChangeDetectionStrategy.OnPush,
×
12
    encapsulation: ViewEncapsulation.None,
×
13
    providers: [
14
        {
15
            provide: THY_IMAGE_GROUP_COMPONENT,
×
16
            useClass: ThyImageGroup
17
        }
18
    ]
×
19
})
20
export class ThyImageGroup implements IThyImageGroupComponent {
21
    injector = inject(Injector);
1✔
22

23
    element = inject(ElementRef);
24

25
    images: IThyImageDirective[] = [];
26

27
    addImage(image: IThyImageDirective, index: number): void {
28
        this.images.splice(index, 0, image);
29
    }
30

31
    removeImage(index: number) {
32
        this.images.splice(index, 1);
33
    }
34
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc