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

atinc / ngx-tethys / #71

06 Aug 2025 02:34AM UTC coverage: 9.672% (-80.6%) from 90.298%
#71

push

web-flow
feat(date-picker): add dateCellRender #TINFR-2386 (#3495) (#3499)

104 of 6813 branches covered (1.53%)

Branch coverage included in aggregate %.

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

11855 existing lines in 343 files now uncovered.

1969 of 14620 relevant lines covered (13.47%)

6.13 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',
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
     */
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