progress.d.ts 2.6 KB

123456789101112131415161718192021222324252627282930313233
  1. import type { ExtractPropTypes } from 'vue';
  2. import type Progress from './progress.vue';
  3. export type ProgressColor = {
  4. color: string;
  5. percentage: number;
  6. };
  7. export type ProgressFn = (percentage: number) => string;
  8. export declare const progressProps: {
  9. readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "line" | "dashboard", unknown, "line", boolean>;
  10. readonly percentage: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  11. readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "exception", unknown, "", boolean>;
  12. readonly indeterminate: BooleanConstructor;
  13. readonly duration: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
  14. readonly strokeWidth: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
  15. readonly strokeLinecap: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "inherit" | "round" | "butt" | "square") | (() => NonNullable<"inherit" | "round" | "butt" | "square" | undefined>) | ((new (...args: any[]) => "inherit" | "round" | "butt" | "square") | (() => NonNullable<"inherit" | "round" | "butt" | "square" | undefined>))[], unknown, unknown, "round", boolean>;
  16. readonly textInside: BooleanConstructor;
  17. readonly width: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 126, boolean>;
  18. readonly showText: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  19. readonly color: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | ProgressFn | ProgressColor[]) | (() => string | ProgressFn | ProgressColor[]) | ((new (...args: any[]) => string | ProgressFn | ProgressColor[]) | (() => string | ProgressFn | ProgressColor[]))[], unknown, unknown, "", boolean>;
  20. readonly striped: BooleanConstructor;
  21. readonly stripedFlow: BooleanConstructor;
  22. readonly format: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => ProgressFn) | (() => ProgressFn) | {
  23. (): ProgressFn;
  24. new (): any;
  25. readonly prototype: any;
  26. } | ((new (...args: any[]) => ProgressFn) | (() => ProgressFn) | {
  27. (): ProgressFn;
  28. new (): any;
  29. readonly prototype: any;
  30. })[], unknown, unknown, (percentage: number) => string, boolean>;
  31. };
  32. export type ProgressProps = ExtractPropTypes<typeof progressProps>;
  33. export type ProgressInstance = InstanceType<typeof Progress> & unknown;