diff --git a/components/progress/nz-progress.component.ts b/components/progress/nz-progress.component.ts index bd5d4bfbf3e..f73b9f22aca 100644 --- a/components/progress/nz-progress.component.ts +++ b/components/progress/nz-progress.component.ts @@ -177,9 +177,10 @@ export class NzProgressComponent implements OnInit, OnChanges { transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s' }; this.strokePathStyle = { + stroke: this.nzStrokeColor || (null as any), // tslint:disable-line:no-any strokeDasharray: `${(this.nzPercent / 100) * (len - gapDegree)}px ${len}px`, strokeDashoffset: `-${gapDegree / 2}px`, - transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s' // eslint-disable-line + transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s' }; }