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

atinc / ngx-tethys / 0bbb2cec-209e-4d8a-b1b3-6bc54e05daa6

04 Sep 2023 08:40AM UTC coverage: 15.616% (-74.6%) from 90.2%
0bbb2cec-209e-4d8a-b1b3-6bc54e05daa6

Pull #2829

circleci

cmm-va
fix: add test
Pull Request #2829: fix: add tabIndex

300 of 6386 branches covered (0.0%)

Branch coverage included in aggregate %.

78 of 78 new or added lines in 26 files covered. (100.0%)

2849 of 13779 relevant lines covered (20.68%)

83.41 hits per line

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

42.86
/src/card/content.component.ts
1
import { coerceBooleanProperty } from 'ngx-tethys/util';
2

3
import { ChangeDetectionStrategy, Component, HostBinding, Input, OnInit } from '@angular/core';
4

5
/**
6
 * 卡片内容组件
7
 * @name thy-card-content
8
 * @order 30
9
 */
1✔
10
@Component({
11
    selector: 'thy-card-content',
×
12
    preserveWhitespaces: false,
×
13
    template: ` <ng-content></ng-content> `,
14
    changeDetection: ChangeDetectionStrategy.OnPush,
15
    host: {
×
16
        class: 'thy-card-content'
17
    },
18
    standalone: true
×
19
})
20
export class ThyCardContentComponent implements OnInit {
21
    @HostBinding('class.thy-card-content--scroll') scrollClassName = false;
1✔
22

23
    /**
24
     * 内容区,滚动
25
     * @default false
26
     */
27
    @Input('thyScroll')
28
    set thyScroll(value: any) {
1✔
29
        this.scrollClassName = coerceBooleanProperty(value);
30
    }
31

32
    @HostBinding('class.thy-card-content--sm') _thySizeSm = false;
33

34
    /**
35
     * 已废弃,Content 大小,sm 时 padding-top 间距变小
36
     * @deprecated
37
     * @default md
38
     */
39
    @Input('thySize')
40
    set thySize(value: string) {
41
        this._thySizeSm = value === 'sm';
42
    }
43

44
    ngOnInit() {}
45
}
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

© 2026 Coveralls, Inc