• 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

28.57
/src/timeline/timeline-item.component.ts
1
import {
2
    Component,
3
    OnInit,
4
    TemplateRef,
5
    ChangeDetectorRef,
6
    ChangeDetectionStrategy,
7
    inject,
8
    input,
9
    viewChild,
10
    contentChild
11
} from '@angular/core';
1✔
12
import { SafeAny } from 'ngx-tethys/types';
UNCOV
13
import { ThyTimeMode } from './timeline.type';
×
UNCOV
14
import { NgTemplateOutlet } from '@angular/common';
×
UNCOV
15

×
UNCOV
16
export type thyColor = 'primary' | 'success' | 'warning' | 'danger' | 'info';
×
UNCOV
17

×
UNCOV
18
/**
×
UNCOV
19
 * 时间轴节点组件
×
UNCOV
20
 * @name thy-timeline-item
×
UNCOV
21
 * @order 20
×
22
 */
23
@Component({
UNCOV
24
    changeDetection: ChangeDetectionStrategy.OnPush,
×
25
    selector: 'thy-timeline-item',
26
    templateUrl: './timeline-item.component.html',
27
    exportAs: 'ThyTimelineItem',
1✔
28
    imports: [NgTemplateOutlet]
1✔
29
})
30
export class ThyTimelineItem implements OnInit {
31
    private cdr = inject(ChangeDetectorRef);
32

33
    readonly template = viewChild<TemplateRef<void>>('timelineItem');
34

35
    public isLast = false;
36

1✔
37
    public isFirst = false;
38

39
    public position: ThyTimeMode;
40

41
    public reverse: Boolean = false;
42

43
    /**
44
     * 指定圆圈颜色
45
     * @type primary | success | warning | danger | info
46
     * @default primary
47
     */
48
    readonly thyColor = input<thyColor>('primary');
49

50
    /**
51
     * 自定义节点位置
52
     * @type left | right | center
53
     */
54
    readonly thyPosition = input<ThyTimeMode>(undefined);
55

56
    /**
57
     * 自定义时间轴点模板
58
     * @type TemplateRef
59
     */
60
    readonly dot = contentChild<TemplateRef<SafeAny>>('dot');
61

62
    /**
63
     * 自定义另一侧的模板
64
     * @type TemplateRef
65
     */
66
    readonly description = contentChild<TemplateRef<SafeAny>>('description');
67

68
    constructor() {}
69

70
    detectChanges(): void {
71
        this.cdr.detectChanges();
72
    }
73

74
    ngOnInit() {}
75
}
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