• 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

23.08
/src/slide/slide-header/slide-header.component.ts
1
import { Component, TemplateRef, OnInit, inject, input, computed, contentChild } from '@angular/core';
2
import { ThySlideService } from '../slide.service';
3
import { ThyAction } from 'ngx-tethys/action';
4
import { ThyIcon } from 'ngx-tethys/icon';
5
import { NgTemplateOutlet } from '@angular/common';
6

7
/**
8
 * 滑动弹出框的头部组件
9
 * @name thy-slide-header
10
 * @order 40
11
 */
12
@Component({
13
    selector: 'thy-slide-header',
14
    templateUrl: './slide-header.component.html',
1✔
15
    imports: [NgTemplateOutlet, ThyIcon, ThyAction],
UNCOV
16
    host: {
×
UNCOV
17
        class: 'thy-slide-header'
×
UNCOV
18
    }
×
UNCOV
19
})
×
UNCOV
20
export class ThySlideHeader implements OnInit {
×
UNCOV
21
    private thySlideService = inject(ThySlideService);
×
22

23
    /**
24
     * 标题
25
     */
×
26
    readonly thyTitle = input<string>(undefined);
×
27

28
    /**
1✔
29
     * 标题的图标
30
     */
31
    readonly thyIcon = input<string>(undefined);
32

33
    readonly isIconFont = computed(() => (this.thyIcon() || '').includes('wtf'));
34

35
    /**
1✔
36
     * 自定义头模板
37
     * @type TemplateRef
38
     */
39
    readonly headerTemplate = contentChild<TemplateRef<any>>('thyHeader');
40

41
    /**
42
     * 头部操作区域模板
43
     * @type TemplateRef
44
     */
45
    readonly headerOperateTemplate = contentChild<TemplateRef<any>>('thyHeaderOperate');
46

47
    ngOnInit() {}
48

49
    closeModal(event: Event) {
50
        event.stopPropagation();
51
        this.thySlideService.close();
52
    }
53
}
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