SUPPORT-8932: fix
This commit is contained in:
parent
5ff1df5d2a
commit
40510aca34
1 changed files with 5 additions and 10 deletions
|
|
@ -1,12 +1,11 @@
|
|||
import {
|
||||
ChangeDetectionStrategy,
|
||||
ChangeDetectorRef,
|
||||
Component,
|
||||
ElementRef,
|
||||
Input,
|
||||
OnChanges,
|
||||
SimpleChanges
|
||||
} from '@angular/core';
|
||||
import {Control, Visible} from "@webbpm/base-package";
|
||||
import {Visible} from "@webbpm/base-package";
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
|
|
@ -14,21 +13,17 @@ import {Control, Visible} from "@webbpm/base-package";
|
|||
templateUrl: `./../../../../../src/resources/template/ervu-dashboard/ErvuChartTooltip.html`,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class ErvuChartTooltip extends Control {
|
||||
export class ErvuChartTooltip implements OnChanges {
|
||||
@Input()
|
||||
public tooltipModel: any;
|
||||
@Input()
|
||||
public visible: boolean = false;
|
||||
@Input()
|
||||
public position: any;
|
||||
|
||||
@Visible("false")
|
||||
public visible: boolean = false;
|
||||
@Visible("false")
|
||||
public items: any[];
|
||||
|
||||
constructor(el: ElementRef, cd: ChangeDetectorRef) {
|
||||
super(el, cd)
|
||||
}
|
||||
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
if ('position' in changes) {
|
||||
if (!this.tooltipModel || this.tooltipModel.opacity == 0 || this.tooltipModel.body.length == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue