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

atinc / ngx-tethys / d9ae709b-3c27-4b69-b125-b8b80b54f90b

pending completion
d9ae709b-3c27-4b69-b125-b8b80b54f90b

Pull #2757

circleci

mengshuicmq
fix: fix code review
Pull Request #2757: feat(color-picker): color-picker support disabled (#INFR-8645)

98 of 6315 branches covered (1.55%)

Branch coverage included in aggregate %.

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

2392 of 13661 relevant lines covered (17.51%)

83.12 hits per line

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

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

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

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

23
    /**
24
     * @description 自定义 icon,作为 img 的 src 显示
25
     * @type string
26
     */
27
    @Input() thyIcon: string;
1✔
28

29
    /**
30
     * @description 标题
31
     * @type string
32
     */
33
    @Input() thyTitle: string;
34

35
    /**
36
     * @description 二级标题
37
     * @type string
38
     */
39
    @Input() thySubtitle: string;
40

41
    /**
42
     * @description 自定义 icon 模板
43
     * @type TemplateRef<any>
44
     */
45
    @ContentChild('thyIcon') iconTemplateRef: TemplateRef<any>;
46

47
    /**
48
     * @description 自定义标题模板
49
     * @type TemplateRef<any>
50
     */
51
    @ContentChild('thyTitle') titleTemplateRef: TemplateRef<any>;
52

53
    /**
54
     * @description 自定义二级标题模板
55
     * @type TemplateRef<any>
56
     */
57
    @ContentChild('thySubtitle') subtitleTemplateRef: TemplateRef<any>;
58

59
    /**
60
     * @description 自定义操作区域
61
     * @type TemplateRef<any>
62
     */
63
    @ContentChild('thyExtra') extraTemplateRef: TemplateRef<any>;
64

65
    @HostBinding('class.thy-result') className = true;
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

© 2025 Coveralls, Inc