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

atinc / ngx-tethys / 68ef226c-f83e-44c1-b8ed-e420a83c5d84

28 May 2025 10:31AM UTC coverage: 10.352% (-80.0%) from 90.316%
68ef226c-f83e-44c1-b8ed-e420a83c5d84

Pull #3460

circleci

pubuzhixing8
chore: xxx
Pull Request #3460: refactor(icon): migrate signal input #TINFR-1476

132 of 6823 branches covered (1.93%)

Branch coverage included in aggregate %.

10 of 14 new or added lines in 1 file covered. (71.43%)

11648 existing lines in 344 files now uncovered.

2078 of 14525 relevant lines covered (14.31%)

6.69 hits per line

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

57.14
/src/tabs/tab.component.ts
1
import { Component, OnInit, ChangeDetectionStrategy, ViewChild, TemplateRef, ContentChild, input } from '@angular/core';
2
import { coerceBooleanProperty, ThyBooleanInput } from 'ngx-tethys/util';
3

4
/**
5
 * 选项卡的选项组件
6
 * @name thy-tab
7
 */
8
@Component({
9
    selector: 'thy-tab',
1✔
10
    template: ` <ng-template #content><ng-content></ng-content></ng-template> `,
UNCOV
11
    changeDetection: ChangeDetectionStrategy.OnPush
×
UNCOV
12
})
×
UNCOV
13
export class ThyTab implements OnInit {
×
14
    /**
15
     * 自定义选项标题的模板
16
     * @type TemplateRef
1✔
17
     */
1✔
18
    @ContentChild('title') titleTemplateRef: TemplateRef<unknown>;
19

20
    @ViewChild('content', { static: true }) content: TemplateRef<HTMLElement>;
21

22
    /**
23
     * 选项标题
24
     */
25
    readonly thyTitle = input<string>(undefined);
1✔
26

27
    /**
28
     * 选项的唯一标识
29
     */
30
    readonly id = input<string>(undefined);
31

32
    /**
33
     * 是否禁用选项
34
     * @default false
35
     */
36
    readonly thyDisabled = input<boolean, ThyBooleanInput>(false, { transform: coerceBooleanProperty });
37

38
    constructor() {}
39

40
    ngOnInit(): void {}
41
}
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

© 2025 Coveralls, Inc