• 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

40.0
/src/card/header.component.ts
1
import { Component, OnInit, TemplateRef, ChangeDetectionStrategy, input, contentChild } from '@angular/core';
2
import { NgTemplateOutlet } from '@angular/common';
3

4
/**
5
 * 卡片头部组件
6
 * @name thy-card-header
7
 * @order 20
8
 */
9
@Component({
10
    selector: 'thy-card-header',
11
    preserveWhitespaces: false,
1✔
12
    templateUrl: './header.component.html',
UNCOV
13
    changeDetection: ChangeDetectionStrategy.OnPush,
×
UNCOV
14
    host: {
×
UNCOV
15
        class: 'thy-card-header',
×
UNCOV
16
        '[class.thy-card-header--sm]': 'thySize() === "sm"',
×
UNCOV
17
        '[class.thy-card-header--lg]': 'thySize() === "lg"',
×
UNCOV
18
        '[class.thy-card-header--md]': 'thySize() === "md"'
×
19
    },
20
    imports: [NgTemplateOutlet]
21
})
1✔
22
export class ThyCardHeader implements OnInit {
1✔
23
    public iconClass: string;
24

25
    /**
26
     * 头部,标题
27
     */
28
    readonly thyTitle = input<string>();
29

30
    /**
31
     * 头部,附加信息
1✔
32
     */
33
    readonly thyDescription = input<string>();
34

35
    /**
36
     * 已废弃,头部大小
37
     * @deprecated
38
     */
39
    readonly thySize = input<'sm' | 'lg' | 'md' | ''>('md');
40

41
    /**
42
     * 自定义头部标题
43
     * @type TemplateRef
44
     */
45
    public readonly titleTemplateRef = contentChild<TemplateRef<any>>('headerTitle');
46

47
    /**
48
     * 自定义头部描述
49
     * @type TemplateRef
50
     */
51
    public readonly descriptionTemplateRef = contentChild<TemplateRef<any>>('headerDescription');
52

53
    /**
54
     * 自定义头部操作区域
55
     * @type TemplateRef
56
     */
57
    public readonly operationTemplateRef = contentChild<TemplateRef<any>>('headerOperation');
58

59
    constructor() {}
60

61
    ngOnInit() {}
62
}
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