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

atinc / ngx-tethys / d9ae709b-3c27-4b69-b125-b8b80b54f90b

pending completion
d9ae709b-3c27-4b69-b125-b8b80b54f90b

Pull #2757

circleci

mengshuicmq
fix: fix code review
Pull Request #2757: feat(color-picker): color-picker support disabled (#INFR-8645)

98 of 6315 branches covered (1.55%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

2392 of 13661 relevant lines covered (17.51%)

83.12 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

© 2025 Coveralls, Inc