• 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

71.43
/src/menu/menu.component.ts
1
import { Component, OnInit, Input } from '@angular/core';
2
import { InputBoolean } from 'ngx-tethys/core';
3

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

6
/**
7
 * 菜单组件
8
 * @name thy-menu,[thy-menu],[thyMenu]
9
 * @order 5
10
 */
1✔
11
@Component({
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]': 'theme === "loose"',
18
        '[class.thy-menu-theme-dark]': 'theme === "dark"'
1✔
19
    },
1✔
20
    standalone: true
21
})
22
export class ThyMenuComponent implements OnInit {
23
    theme: ThyMenuTheme = 'compact';
24

1✔
25
    /**
26
     * 主题
27
     * @type compact | loose
28
     * @default compact
1✔
29
     */
30
    @Input() set thyTheme(value: ThyMenuTheme) {
31
        this.theme = value;
32
    }
33

34
    /**
35
     * 是否收起
36
     * @default false
37
     */
38
    @Input() @InputBoolean() thyCollapsed: boolean;
39

40
    constructor() {}
41

42
    ngOnInit(): void {}
43
}
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