typings.d.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. export type NzMark = string | NzMarkObj;
  6. export interface NzMarkObj {
  7. style?: object;
  8. label: string;
  9. }
  10. export declare class NzMarks {
  11. [key: string]: NzMark;
  12. }
  13. /**
  14. * Processed steps that would be passed to sub components.
  15. */
  16. export interface NzExtendedMark {
  17. value: number;
  18. offset: number;
  19. config: NzMark;
  20. }
  21. /**
  22. * Marks that would be rendered.
  23. */
  24. export interface NzDisplayedMark extends NzExtendedMark {
  25. active: boolean;
  26. label: string;
  27. style?: object;
  28. }
  29. /**
  30. * Steps that would be rendered.
  31. */
  32. export interface NzDisplayedStep extends NzExtendedMark {
  33. active: boolean;
  34. style?: object;
  35. }
  36. export type NzSliderShowTooltip = 'always' | 'never' | 'default';
  37. export type NzSliderValue = number[] | number;
  38. export interface NzSliderHandler {
  39. offset: number | null;
  40. value: number | null;
  41. active: boolean;
  42. }