• 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

44.44
/src/menu/item/icon/menu-item-icon.component.ts
1
import { Component, OnInit, Input, ChangeDetectionStrategy } from '@angular/core';
2
import { useHostRenderer } from '@tethys/cdk/dom';
3

4
/**
5
 * 菜单项图标组件
6
 * @name thy-menu-item-icon,[thy-menu-item-icon],[thyMenuItemIcon]
7
 * @order 15
8
 */
9
@Component({
10
    selector: 'thy-menu-item-icon,[thy-menu-item-icon],[thyMenuItemIcon]',
1✔
11
    templateUrl: './menu-item-icon.component.html',
12
    host: {
×
13
        class: 'thy-menu-item-icon'
×
14
    },
15
    changeDetection: ChangeDetectionStrategy.OnPush,
16
    standalone: true
17
})
×
18
export class ThyMenuItemIconComponent implements OnInit {
19
    /**
20
     * 设置图标颜色
1✔
21
     */
1✔
22
    @Input()
23
    set thyColor(value: string) {
24
        if (value) {
25
            this.hostRenderer.setStyle('color', value);
1✔
26
        }
27
    }
28

29
    private hostRenderer = useHostRenderer();
30

31
    constructor() {}
32

33
    ngOnInit(): void {}
34
}
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