• 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

37.5
/src/property/properties.component.ts
1
import { ChangeDetectionStrategy, Component, numberAttribute, input, computed } 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',
11
    templateUrl: './properties.component.html',
×
12
    changeDetection: ChangeDetectionStrategy.OnPush,
×
13
    host: {
×
14
        class: 'thy-properties',
×
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
     */
27
    readonly layout = input<ThyPropertiesLayout>('horizontal', { alias: 'thyLayout' });
28

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

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

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