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

atinc / ngx-tethys / 81f087e7-cb7d-4a5c-add8-ace5133e7e84

27 May 2025 08:22AM UTC coverage: 10.045% (-80.2%) from 90.262%
81f087e7-cb7d-4a5c-add8-ace5133e7e84

Pull #3457

circleci

pubuzhixing8
chore: remove useless code
Pull Request #3457: refactor(flexible-text): migrate to signal for flexible-text #TINFR-1471

108 of 6835 branches covered (1.58%)

Branch coverage included in aggregate %.

17 of 17 new or added lines in 1 file covered. (100.0%)

11669 existing lines in 344 files now uncovered.

2036 of 14508 relevant lines covered (14.03%)

6.24 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