Skip to content

Commit

Permalink
fix(module: step and slider-marks): fix aot build error (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
sWhite01111 authored and fisherspy committed Dec 11, 2018
1 parent 6998e40 commit 94cb387
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
4 changes: 1 addition & 3 deletions components/slider/slider-marks/slider-marks.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<span *ngFor="let item of markArray"
[ngClass]="item.className"
[ngStyle]="item.style"
(onMouseDown)="onClickLabel($event, point)"
(onTouchStart)="onClickLabel($events, point)">
[ngStyle]="item.style">
</span>
14 changes: 6 additions & 8 deletions components/steps/step/step.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class Step implements OnInit {
tailContent: string;
stepNumber: number;
isIconString: boolean = true;
iconSize: string;

private _status: StatusEnum;
private _title: string;
Expand Down Expand Up @@ -82,16 +83,13 @@ export class Step implements OnInit {
this.iconCls = {
[`${this.prefixCls}-icon`]: true
};
this.stepItemCls = Object.assign(this.stepItemCls,
{
[`${this.prefixCls}-item-${this.status}`]: true,
[`${this.prefixCls}-item-custom`]: this.icon
}
);
this.stepItemCls = Object.assign(this.stepItemCls, {
[`${this.prefixCls}-item-${this.status}`]: true,
[`${this.prefixCls}-item-custom`]: this.icon
});
}

ngOnInit() {
}
ngOnInit() {}
}

export enum StatusEnum {
Expand Down

0 comments on commit 94cb387

Please sign in to comment.