• 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

42.86
/src/loading/loading.component.ts
1
import { Component, Input, HostBinding, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
2
import { coerceBooleanProperty } from 'ngx-tethys/util';
3
import { NgIf } from '@angular/common';
4
import { InputBoolean } from 'ngx-tethys/core';
5

6
/**
7
 * 加载组件,页面调用接口等待请求时,给用户的反馈
8
 * @name thy-loading
9
 * @order 10
10
 */
11
@Component({
12
    selector: 'thy-loading',
1✔
13
    templateUrl: './loading.component.html',
14
    changeDetection: ChangeDetectionStrategy.OnPush,
×
15
    standalone: true,
×
16
    imports: [NgIf]
17
})
18
export class ThyLoadingComponent {
×
19
    public isDone: boolean;
×
20

21
    public tip: string;
22

×
23
    public isMask: boolean;
×
24

25
    /**
26
     * 数据是否加载完成
×
27
     * @default false
×
28
     */
29
    @Input()
1✔
30
    @InputBoolean()
31
    set thyDone(value: boolean | string) {
32
        this.isDone = coerceBooleanProperty(value);
1✔
33
        this.changeDetectorRef.markForCheck();
34
    }
35

36
    /**
37
     * 自定义加载提示文案
38
     */
39
    @Input()
1✔
40
    set thyTip(value: string) {
41
        this.tip = value;
42
        this.changeDetectorRef.markForCheck();
43
    }
44

1✔
45
    /**
46
     * 加载时是否启用嵌套遮罩模式,不传或传 false,没有遮罩层,加载完成出现内容
47
     */
48
    @Input()
49
    @InputBoolean()
1✔
50
    set thyIsMask(value: boolean | string) {
51
        this.isMask = coerceBooleanProperty(value);
52
        this.changeDetectorRef.markForCheck();
53
    }
54

55
    @HostBinding('class.thy-loading') loadingClassName = true;
56

57
    constructor(private changeDetectorRef: ChangeDetectorRef) {}
58
}
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