|
|
@ -5,7 +5,7 @@ import { AfterContentInit, ChangeDetectorRef, Directive, ElementRef, HostBinding |
|
|
}) |
|
|
}) |
|
|
export class EllipsisDirective implements AfterContentInit { |
|
|
export class EllipsisDirective implements AfterContentInit { |
|
|
@Input('abpEllipsis') |
|
|
@Input('abpEllipsis') |
|
|
witdh: string; |
|
|
width: string; |
|
|
|
|
|
|
|
|
@HostBinding('title') |
|
|
@HostBinding('title') |
|
|
@Input() |
|
|
@Input() |
|
|
@ -21,7 +21,7 @@ export class EllipsisDirective implements AfterContentInit { |
|
|
|
|
|
|
|
|
@HostBinding('style.max-width') |
|
|
@HostBinding('style.max-width') |
|
|
get maxWidth() { |
|
|
get maxWidth() { |
|
|
return this.enabled ? this.witdh || '160px' : undefined; |
|
|
return this.enabled ? this.width || '170px' : undefined; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
constructor(private cdRef: ChangeDetectorRef, private elRef: ElementRef) {} |
|
|
constructor(private cdRef: ChangeDetectorRef, private elRef: ElementRef) {} |
|
|
|