• 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

38.46
/src/drag-drop/drag-handle.directive.ts
1
import { Directive, ElementRef, Input, Optional } from '@angular/core';
2
import { coerceBooleanProperty } from '@angular/cdk/coercion';
3
import { ThyDragDirective } from './drag.directive';
4
import { InputBoolean } from 'ngx-tethys/core';
5

6
/**
7
 * 自定义可拖拽区域内容
8
 * @name thy-drag-handle,[thyDragHandle]
9
 * @order 20
10
 */
11
@Directive({
1✔
12
    selector: 'thy-drag-handle,[thyDragHandle]',
13
    standalone: true
×
14
})
15
export class ThyDragHandleDirective {
16
    private _disabled = false;
×
17

18
    /**
19
     * 是否禁用
×
20
     * @default false
×
21
     */
×
22
    @Input('thyDisabled')
×
23
    @InputBoolean()
24
    set disabled(value: boolean) {
25
        this._disabled = coerceBooleanProperty(value);
1✔
26
    }
27
    get disabled(): boolean {
28
        return this._disabled;
29
    }
1✔
30

31
    constructor(public element: ElementRef<HTMLElement>, @Optional() drag: ThyDragDirective) {
32
        if (drag) {
33
            drag.dragRef.withHandles(this);
1✔
34
        }
35
    }
36
}
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