typings.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { TemplateRef } from '@angular/core';
  6. import { NgStyleInterface } from 'ng-zorro-antd/core/types';
  7. export type NzProgressGapPositionType = 'top' | 'bottom' | 'left' | 'right';
  8. export type NzProgressStatusType = 'success' | 'exception' | 'active' | 'normal';
  9. export type NzProgressTypeType = 'line' | 'circle' | 'dashboard';
  10. export type NzProgressStrokeLinecapType = 'round' | 'square';
  11. export interface NzProgressGradientProgress {
  12. [percent: string]: string;
  13. }
  14. export interface NzProgressGradientFromTo {
  15. from: string;
  16. to: string;
  17. }
  18. export type NzProgressColorGradient = {
  19. direction?: string;
  20. } & (NzProgressGradientProgress | NzProgressGradientFromTo);
  21. export type NzProgressStrokeColorType = string | NzProgressColorGradient;
  22. export type NzProgressFormatter = ((percent: number) => string | null) | TemplateRef<{
  23. $implicit: number;
  24. }>;
  25. export interface NzProgressCirclePath {
  26. stroke: string | null;
  27. strokePathStyle: NgStyleInterface;
  28. }
  29. export interface NzProgressStepItem {
  30. backgroundColor: string;
  31. width: string;
  32. height: string;
  33. }