• 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

33.33
/src/result/result.component.ts
1
import { Component, ContentChild, HostBinding, OnInit, TemplateRef, contentChild, input } from '@angular/core';
2
import { NgTemplateOutlet } from '@angular/common';
3

4
type ThyResultStatus = 'success' | 'warning' | 'error';
5

6
/**
7
 * 结果页组件
8
 * @name thy-result
9
 */
10
@Component({
1✔
11
    selector: 'thy-result',
12
    templateUrl: './result.component.html',
×
13
    imports: [NgTemplateOutlet],
×
14
    host: {
×
15
        class: 'thy-result'
×
16
    }
×
17
})
×
18
export class ThyResult implements OnInit {
×
19
    /**
×
20
     * @description 结果的状态,决定显示的图标
21
     * @type success | warning | error
22
     */
1✔
23
    readonly thyStatus = input<ThyResultStatus>(undefined);
1✔
24

25
    /**
26
     * @description 自定义 icon,作为 img 的 src 显示
27
     * @type string
28
     */
29
    readonly thyIcon = input<string>(undefined);
30

31
    /**
32
     * @description 标题
33
     * @type string
34
     */
1✔
35
    readonly thyTitle = input<string>(undefined);
36

37
    /**
38
     * @description 二级标题
39
     * @type string
40
     */
41
    readonly thySubtitle = input<string>(undefined);
42

43
    /**
44
     * @description 自定义 icon 模板
45
     * @type TemplateRef<any>
46
     */
47
    protected readonly iconTemplateRef = contentChild<TemplateRef<any>>('thyIcon');
48

49
    /**
50
     * @description 自定义标题模板
51
     * @type TemplateRef<any>
52
     */
53
    protected readonly titleTemplateRef = contentChild<TemplateRef<any>>('thyTitle');
54

55
    /**
56
     * @description 自定义二级标题模板
57
     * @type TemplateRef<any>
58
     */
59
    protected readonly subtitleTemplateRef = contentChild<TemplateRef<any>>('thySubtitle');
60

61
    /**
62
     * @description 自定义操作区域
63
     * @type TemplateRef<any>
64
     */
65
    protected readonly extraTemplateRef = contentChild<TemplateRef<any>>('thyExtra');
66

67
    constructor() {}
68

69
    ngOnInit() {}
70
}
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