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

atinc / ngx-tethys / 18db4a41-eb43-48f3-9d09-5f81f2e2cdc0

21 May 2025 03:32AM UTC coverage: 90.22% (-0.003%) from 90.223%
18db4a41-eb43-48f3-9d09-5f81f2e2cdc0

Pull #3448

circleci

luxiaobei
refactor(slide): migrate to signal #TINFR-1770
Pull Request #3448: refactor(slide): migrate to signal #TINFR-1770

5566 of 6830 branches covered (81.49%)

Branch coverage included in aggregate %.

5 of 6 new or added lines in 2 files covered. (83.33%)

1 existing line in 1 file now uncovered.

13586 of 14398 relevant lines covered (94.36%)

907.4 hits per line

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

76.92
/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],
16
    host: {
63✔
17
        class: 'thy-slide-header'
63✔
18
    }
63✔
19
})
63!
20
export class ThySlideHeader implements OnInit {
63✔
21
    private thySlideService = inject(ThySlideService);
63✔
22

23
    /**
24
     * 标题
UNCOV
25
     */
×
NEW
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