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

atinc / ngx-tethys / 68ef226c-f83e-44c1-b8ed-e420a83c5d84

28 May 2025 10:31AM UTC coverage: 10.352% (-80.0%) from 90.316%
68ef226c-f83e-44c1-b8ed-e420a83c5d84

Pull #3460

circleci

pubuzhixing8
chore: xxx
Pull Request #3460: refactor(icon): migrate signal input #TINFR-1476

132 of 6823 branches covered (1.93%)

Branch coverage included in aggregate %.

10 of 14 new or added lines in 1 file covered. (71.43%)

11648 existing lines in 344 files now uncovered.

2078 of 14525 relevant lines covered (14.31%)

6.69 hits per line

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

37.5
/src/property/properties.component.ts
1
import { ChangeDetectionStrategy, Component, numberAttribute, input, computed, effect } from '@angular/core';
2

3
export type ThyPropertiesLayout = 'horizontal' | 'vertical';
4

5
/**
6
 * 属性列表组件
7
 * @name thy-properties
8
 */
9
@Component({
1✔
10
    selector: 'thy-properties',
UNCOV
11
    templateUrl: './properties.component.html',
×
UNCOV
12
    changeDetection: ChangeDetectionStrategy.OnPush,
×
UNCOV
13
    host: {
×
UNCOV
14
        class: 'thy-properties',
×
UNCOV
15
        '[class.thy-properties-vertical]': 'layout() === "vertical"',
×
16
        '[class.thy-properties-horizontal]': 'layout() === "horizontal"',
17
        '[class.thy-property-edit-trigger-hover]': 'thyEditTrigger() === "hover"',
18
        '[class.thy-property-edit-trigger-click]': 'thyEditTrigger() === "click"',
1✔
19
        '[style.grid-template-columns]': 'gridTemplateColumns()'
20
    }
21
})
22
export class ThyProperties {
23
    /**
24
     * 展示布局
1✔
25
     * @type "horizontal" | "vertical"
26
     * @default horizontal
27
     */
28
    readonly layout = input<ThyPropertiesLayout>('horizontal', { alias: 'thyLayout' });
29

30
    /**
31
     * 设置一行的可以 property-item 的数量
32
     * @type  number
33
     */
34
    readonly thyColumn = input(1, { transform: numberAttribute });
35

36
    /**
37
     * 设置编辑状态触发方法
38
     * @type 'hover' | 'click'
39
     */
40
    readonly thyEditTrigger = input<'hover' | 'click'>('hover');
41

42
    protected readonly gridTemplateColumns = computed(() => {
43
        return `repeat(${this.thyColumn()}, 1fr)`;
44
    });
45
}
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