• 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

22.22
/src/form/from-group-footer/form-group-footer.component.ts
1
import { Component, HostBinding, ViewEncapsulation, OnInit, Optional, Input, Inject, ContentChild, TemplateRef } from '@angular/core';
2
import { ThyFormDirective } from '../form.directive';
3
import { ThyFormGroupFooterAlign, THY_FORM_CONFIG, ThyFormConfig } from '../form.class';
4
import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common';
5

6
/**
7
 * 表单组底部组件
8
 * @name thy-form-group-footer
9
 * @order 55
10
 */
11
@Component({
12
    selector: 'thy-form-group-footer',
1✔
13
    templateUrl: './form-group-footer.component.html',
14
    encapsulation: ViewEncapsulation.None,
×
15
    standalone: true,
16
    imports: [NgClass, NgIf, NgTemplateOutlet]
17
})
×
18
export class ThyFormGroupFooterComponent implements OnInit {
×
19
    @HostBinding('class.form-group') _isFormGroup = true;
×
20

×
21
    @HostBinding('class.row') isHorizontal = true;
×
22

23
    @ContentChild('description') description: TemplateRef<any>;
24

×
25
    /**
×
26
     * 对齐方式
27
     * @type left | right | center
×
28
     * @default left
29
     */
30
    @Input() thyAlign: ThyFormGroupFooterAlign;
×
31

32
    public footerClassMap = {};
33

34
    private get align() {
35
        return !!this.thyAlign ? this.thyAlign : this.defaultConfig.footerAlign;
36
    }
1✔
37

38
    constructor(@Optional() private thyParentForm: ThyFormDirective, @Inject(THY_FORM_CONFIG) private defaultConfig: ThyFormConfig) {}
39

40
    ngOnInit() {
1✔
41
        if (this.thyParentForm) {
42
            this.isHorizontal = this.thyParentForm.isHorizontal;
43
        }
44
        this.setFooterClassMap();
45
    }
46

47
    setFooterClassMap() {
1✔
48
        this.footerClassMap = {
49
            'form-group-footer': true,
50
            'col-sm-10 offset-sm-2 col-form-control': this.isHorizontal,
51
            [`form-group-footer-align-${this.align}`]: true
52
        };
53
    }
54
}
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