• 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

85.71
/src/card/card.component.ts
1
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
2
import { InputBoolean } from 'ngx-tethys/core';
3

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

32
    /**
1✔
33
     * 是否是分割模式,分割模式头部和内容区之间有一条分割线
34
     * @default false
35
     */
36
    @Input('thyDivided')
37
    @InputBoolean()
38
    thyDivided: boolean | string;
39

40
    /**
41
     * 是否有边框,边框颜色为#eee
42
     * @default false
43
     */
44
    @Input('thyBordered')
45
    @InputBoolean()
46
    thyBordered: boolean | string;
47

48
    /**
49
     * 大小
50
     * @type sm | md | lg
51
     * @default md
52
     */
53
    @Input()
54
    thySize: 'md' | 'sm' | 'lg';
55
}
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