• 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/form/form-submit.directive.ts
1
import { Directive, EventEmitter, HostListener, OnInit, Output } from '@angular/core';
2

3
import { ThyFormDirective } from './form.directive';
4

5
/**
6
 * 表单提交指令
7
 * @name thyFormSubmit,[thy-form-submit]
8
 * @order 15
9
 */
1✔
10
@Directive({
11
    selector: '[thyFormSubmit],[thy-form-submit]',
×
12
    standalone: true
×
13
})
14
export class ThyFormSubmitDirective implements OnInit {
15
    /**
×
16
     * Form 验证通过的提交函数
×
17
     */
18
    @Output() thyFormSubmit = new EventEmitter();
19

20
    constructor(private thyFormDirective: ThyFormDirective) {}
×
21

22
    ngOnInit(): void {
1✔
23
        this.thyFormDirective.onSubmitSuccess = ($event: Event) => {
24
            this.thyFormSubmit.emit($event);
25
        };
1✔
26
    }
27

28
    @HostListener('click', ['$event'])
29
    onSubmit($event: Event) {
30
        this.thyFormDirective.submit($event);
1✔
31
    }
32
}
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