• 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

42.86
/src/card/card.component.ts
1
import { Component, ChangeDetectionStrategy, input } from '@angular/core';
2
import { coerceBooleanProperty } from 'ngx-tethys/util';
3

4
/**
5
 * 卡片组件
6
 * @name thy-card
7
 * @order 10
8
 */
9
@Component({
10
    selector: 'thy-card',
1✔
11
    template: ` <ng-content></ng-content> `,
UNCOV
12
    changeDetection: ChangeDetectionStrategy.OnPush,
×
UNCOV
13
    host: {
×
UNCOV
14
        class: 'thy-card',
×
UNCOV
15
        '[class.thy-card--divided]': '!!thyDivided()',
×
16
        '[class.thy-card--bordered]': '!!thyBordered()',
17
        '[class.thy-card--clear-left-right-padding]': '!thyHasLeftRightPadding()',
1✔
18
        '[class.thy-card-sm]': 'thySize() === "sm"',
19
        '[class.thy-card-lg]': 'thySize() === "lg"'
20
    }
21
})
22
export class ThyCard {
23
    /**
24
     * 左右是否有内边距,已废弃,如需配置间距使用 spacing 工具样式覆盖默认间距
1✔
25
     * @deprecated
26
     */
27
    readonly thyHasLeftRightPadding = input(true, { transform: coerceBooleanProperty });
28

29
    /**
30
     * 是否是分割模式,分割模式头部和内容区之间有一条分割线
31
     */
32
    readonly thyDivided = input(false, { transform: coerceBooleanProperty });
33

34
    /**
35
     * 是否有边框,边框颜色为#eee
36
     */
37
    readonly thyBordered = input(false, { transform: coerceBooleanProperty });
38

39
    /**
40
     * 大小
41
     * @type sm | md | lg
42
     */
43
    readonly thySize = input<'md' | 'sm' | 'lg'>('md');
44
}
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