props.d.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import type { VueNode } from '../_util/type';
  2. import type { PropType, ExtractPropTypes } from 'vue';
  3. export declare const progressStatuses: ["normal", "exception", "active", "success"];
  4. export declare type ProgressStatusesType = typeof progressStatuses[number];
  5. declare const ProgressType: ["line", "circle", "dashboard"];
  6. export declare type ProgressType = typeof ProgressType[number];
  7. declare const ProgressSize: ["default", "small"];
  8. export declare type ProgressSize = typeof ProgressSize[number];
  9. export declare type StringGradients = {
  10. [percentage: string]: string;
  11. };
  12. declare type FromToGradients = {
  13. from: string;
  14. to: string;
  15. };
  16. export declare type ProgressGradient = {
  17. direction?: string;
  18. } & (StringGradients | FromToGradients);
  19. export interface SuccessProps {
  20. percent?: number;
  21. strokeColor?: string;
  22. }
  23. export declare const progressProps: () => {
  24. prefixCls: StringConstructor;
  25. type: import("vue-types").VueTypeDef<"circle" | "line" | "dashboard">;
  26. percent: NumberConstructor;
  27. format: {
  28. type: PropType<(percent?: number, successPercent?: number) => VueNode>;
  29. };
  30. status: import("vue-types").VueTypeDef<"normal" | "active" | "success" | "exception">;
  31. showInfo: {
  32. type: BooleanConstructor;
  33. default: any;
  34. };
  35. strokeWidth: NumberConstructor;
  36. strokeLinecap: PropType<"round" | "butt" | "square">;
  37. strokeColor: {
  38. type: PropType<string | ProgressGradient>;
  39. default: string | ProgressGradient;
  40. };
  41. trailColor: StringConstructor;
  42. width: NumberConstructor;
  43. success: {
  44. type: PropType<SuccessProps>;
  45. default: () => SuccessProps;
  46. };
  47. gapDegree: NumberConstructor;
  48. gapPosition: PropType<"left" | "right" | "bottom" | "top">;
  49. size: import("vue-types").VueTypeDef<"default" | "small">;
  50. steps: NumberConstructor;
  51. /** @deprecated Use `success` instead */
  52. successPercent: NumberConstructor;
  53. title: StringConstructor;
  54. };
  55. export declare type ProgressProps = Partial<ExtractPropTypes<ReturnType<typeof progressProps>>>;
  56. export {};