progress.d.ts 2.7 KB

12345678910111213141516171819202122232425262728293031
  1. import type { ExtractPropTypes } from 'vue';
  2. import type Progress from './progress.vue';
  3. export declare type ProgressColor = {
  4. color: string;
  5. percentage: number;
  6. };
  7. export declare 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: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  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[]) => ("round" | "inherit" | "butt" | "square") & {}) | (() => "round" | "inherit" | "butt" | "square") | ((new (...args: any[]) => ("round" | "inherit" | "butt" | "square") & {}) | (() => "round" | "inherit" | "butt" | "square"))[], unknown, unknown, "round", boolean>;
  16. readonly textInside: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  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 format: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => ProgressFn) | (() => ProgressFn) | {
  21. (): ProgressFn;
  22. new (): any;
  23. readonly prototype: any;
  24. } | ((new (...args: any[]) => ProgressFn) | (() => ProgressFn) | {
  25. (): ProgressFn;
  26. new (): any;
  27. readonly prototype: any;
  28. })[], unknown, unknown, (percentage: number) => string, boolean>;
  29. };
  30. export declare type ProgressProps = ExtractPropTypes<typeof progressProps>;
  31. export declare type ProgressInstance = InstanceType<typeof Progress>;