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

atinc / ngx-tethys / 5ef79b09-94c8-48ee-857b-c28d2ef76deb

25 Aug 2023 02:45AM UTC coverage: 90.055% (-0.08%) from 90.132%
5ef79b09-94c8-48ee-857b-c28d2ef76deb

Pull #2803

circleci

mengshuicmq
feat: #INFR-7478 use 'not-allowed' for  disabled styling
Pull Request #2803: feat: #INFR-7478 Use 'not-allowed' for disabled styling

5104 of 6321 branches covered (0.0%)

Branch coverage included in aggregate %.

12897 of 13668 relevant lines covered (94.36%)

977.87 hits per line

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

46.67
/src/table/table-skeleton.component.ts
1
import { NgFor } from '@angular/common';
2
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';
3
import { InputBoolean, InputCssPixel } from 'ngx-tethys/core';
4
import { ThySkeletonCircleComponent, ThySkeletonRectangleComponent } from 'ngx-tethys/skeleton';
5

6
const COLUMN_COUNT = 5;
7

1✔
8
/**
9
 * 表格的骨架屏组件
10
 * @name thy-table-skeleton
11
 */
12
@Component({
1✔
13
    selector: 'thy-table-skeleton',
14
    templateUrl: './table-skeleton.component.html',
×
15
    host: {
×
16
        class: 'thy-table-skeleton'
×
17
    },
×
18
    changeDetection: ChangeDetectionStrategy.OnPush,
×
19
    encapsulation: ViewEncapsulation.None,
×
20
    standalone: true,
×
21
    imports: [NgFor, ThySkeletonRectangleComponent, ThySkeletonCircleComponent]
22
})
23
export class ThyTableSkeletonComponent {
×
24
    /**
25
     * 骨架边框圆角
1✔
26
     */
27
    @Input()
28
    @InputCssPixel()
29
    thyBorderRadius: string | number;
30

31
    /**
32
     * 表格内容骨架高度
33
     */
34
    @Input()
35
    @InputCssPixel()
1✔
36
    thyRowHeight: string | number = '18px';
37

38
    /**
39
     * 是否开启动画
1✔
40
     * @default false
41
     */
42
    @Input()
43
    @InputBoolean()
1✔
44
    thyAnimated: boolean;
45

46
    /**
47
     * 动画速度
1✔
48
     */
49
    @Input() thyAnimatedInterval: string;
50

51
    /**
52
     * 骨架主色
53
     */
54
    @Input() thyPrimaryColor: string;
55

56
    /**
57
     * 骨架次色
58
     */
59
    @Input() thySecondaryColor: string;
60

61
    rowCount: number[] = [];
62

63
    /**
64
     * 行数
65
     */
66
    @Input()
67
    set thyRowCount(value: number | string) {
68
        this.rowCount = Array.from({ length: +value });
69
    }
70

71
    public titleHeight = '12px';
72

73
    public titleWidth = '50px';
74

75
    public checkBoxWidth = '18px';
76

77
    public avatarSize = '28px';
78

79
    columnCount = Array.from({ length: COLUMN_COUNT });
80
}
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