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

atinc / ngx-tethys / #55

30 Jul 2025 07:08AM UTC coverage: 9.866% (-80.4%) from 90.297%
#55

push

why520crazy
feat(empty): add setMessage for update display text #TINFR-2616

92 of 6794 branches covered (1.35%)

Branch coverage included in aggregate %.

2014 of 14552 relevant lines covered (13.84%)

6.15 hits per line

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

44.44
/src/menu/menu.component.ts
1
import { Component, input, OnInit } from '@angular/core';
2
import { coerceBooleanProperty } from 'ngx-tethys/util';
3

4
export type ThyMenuTheme = 'compact' | 'loose' | 'dark';
5

6
/**
7
 * 菜单组件
8
 * @name thy-menu,[thy-menu],[thyMenu]
9
 * @order 5
10
 */
11
@Component({
1✔
12
    selector: 'thy-menu,[thy-menu],[thyMenu]',
13
    templateUrl: './menu.component.html',
×
14
    host: {
×
15
        class: 'thy-menu',
16
        '[class.thy-menu-collapsed]': 'thyCollapsed()',
×
17
        '[class.thy-menu-theme-loose]': 'thyTheme() === "loose"',
18
        '[class.thy-menu-theme-dark]': 'thyTheme() === "dark"'
19
    }
1✔
20
})
1✔
21
export class ThyMenu implements OnInit {
22
    /**
23
     * 主题
24
     * @type compact | loose
25
     */
1✔
26
    readonly thyTheme = input<ThyMenuTheme, ThyMenuTheme>('compact', {
27
        transform: (value: ThyMenuTheme) => value || 'compact'
28
    });
29

30
    /**
31
     * 是否收起
32
     */
33
    readonly thyCollapsed = input(false, { transform: coerceBooleanProperty });
34

35
    constructor() {}
36

37
    ngOnInit(): void {}
38
}
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