• 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

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> `,
11
    changeDetection: ChangeDetectionStrategy.OnPush
×
12
})
×
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

© 2026 Coveralls, Inc