index.d.ts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. export declare const ElProgress: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
  2. readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "line" | "dashboard", unknown, "line", boolean>;
  3. readonly percentage: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  4. readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "exception", unknown, "", boolean>;
  5. readonly indeterminate: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  6. readonly duration: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
  7. readonly strokeWidth: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
  8. 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>;
  9. readonly textInside: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  10. readonly width: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 126, boolean>;
  11. readonly showText: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  12. readonly color: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) & {}) | (() => string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) | ((new (...args: any[]) => (string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) & {}) | (() => string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]))[], unknown, unknown, "", boolean>;
  13. readonly format: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/progress").ProgressFn) | (() => import("./src/progress").ProgressFn) | {
  14. (): import("./src/progress").ProgressFn;
  15. new (): any;
  16. readonly prototype: any;
  17. } | ((new (...args: any[]) => import("./src/progress").ProgressFn) | (() => import("./src/progress").ProgressFn) | {
  18. (): import("./src/progress").ProgressFn;
  19. new (): any;
  20. readonly prototype: any;
  21. })[], unknown, unknown, (percentage: number) => string, boolean>;
  22. }, {
  23. STATUS_COLOR_MAP: Record<string, string>;
  24. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  25. readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "line" | "dashboard", unknown, "line", boolean>;
  26. readonly percentage: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  27. readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "exception", unknown, "", boolean>;
  28. readonly indeterminate: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  29. readonly duration: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
  30. readonly strokeWidth: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
  31. 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>;
  32. readonly textInside: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  33. readonly width: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 126, boolean>;
  34. readonly showText: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  35. readonly color: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) & {}) | (() => string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) | ((new (...args: any[]) => (string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) & {}) | (() => string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]))[], unknown, unknown, "", boolean>;
  36. readonly format: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/progress").ProgressFn) | (() => import("./src/progress").ProgressFn) | {
  37. (): import("./src/progress").ProgressFn;
  38. new (): any;
  39. readonly prototype: any;
  40. } | ((new (...args: any[]) => import("./src/progress").ProgressFn) | (() => import("./src/progress").ProgressFn) | {
  41. (): import("./src/progress").ProgressFn;
  42. new (): any;
  43. readonly prototype: any;
  44. })[], unknown, unknown, (percentage: number) => string, boolean>;
  45. }>> & {
  46. [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
  47. }>>;
  48. ns: {
  49. namespace: import("vue").Ref<string>;
  50. b: (blockSuffix?: string) => string;
  51. e: (element?: string | undefined) => string;
  52. m: (modifier?: string | undefined) => string;
  53. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  54. em: (element?: string | undefined, modifier?: string | undefined) => string;
  55. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  56. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  57. is: {
  58. (name: string, state: boolean | undefined): string;
  59. (name: string): string;
  60. };
  61. cssVar: (object: Record<string, string>) => Record<string, string>;
  62. cssVarName: (name: string) => string;
  63. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  64. cssVarBlockName: (name: string) => string;
  65. };
  66. barStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
  67. relativeStrokeWidth: import("vue").ComputedRef<string>;
  68. radius: import("vue").ComputedRef<number>;
  69. trackPath: import("vue").ComputedRef<string>;
  70. perimeter: import("vue").ComputedRef<number>;
  71. rate: import("vue").ComputedRef<1 | 0.75>;
  72. strokeDashoffset: import("vue").ComputedRef<string>;
  73. trailPathStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
  74. circlePathStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
  75. stroke: import("vue").ComputedRef<string>;
  76. statusIcon: import("vue").ComputedRef<import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
  77. progressTextSize: import("vue").ComputedRef<number>;
  78. content: import("vue").ComputedRef<string>;
  79. getColors: (color: import("./src/progress").ProgressColor[]) => import("./src/progress").ProgressColor[];
  80. getCurrentColor: (percentage: number) => string;
  81. ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
  82. readonly size: {
  83. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
  84. readonly required: false;
  85. readonly validator: ((val: unknown) => boolean) | undefined;
  86. __epPropKey: true;
  87. };
  88. readonly color: {
  89. readonly type: import("vue").PropType<string>;
  90. readonly required: false;
  91. readonly validator: ((val: unknown) => boolean) | undefined;
  92. __epPropKey: true;
  93. };
  94. }, {
  95. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  96. readonly size: {
  97. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
  98. readonly required: false;
  99. readonly validator: ((val: unknown) => boolean) | undefined;
  100. __epPropKey: true;
  101. };
  102. readonly color: {
  103. readonly type: import("vue").PropType<string>;
  104. readonly required: false;
  105. readonly validator: ((val: unknown) => boolean) | undefined;
  106. __epPropKey: true;
  107. };
  108. }>> & {
  109. [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
  110. }>>;
  111. ns: {
  112. namespace: import("vue").Ref<string>;
  113. b: (blockSuffix?: string) => string;
  114. e: (element?: string | undefined) => string;
  115. m: (modifier?: string | undefined) => string;
  116. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  117. em: (element?: string | undefined, modifier?: string | undefined) => string;
  118. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  119. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  120. is: {
  121. (name: string, state: boolean | undefined): string;
  122. (name: string): string;
  123. };
  124. cssVar: (object: Record<string, string>) => Record<string, string>;
  125. cssVarName: (name: string) => string;
  126. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  127. cssVarBlockName: (name: string) => string;
  128. };
  129. style: import("vue").ComputedRef<import("vue").CSSProperties>;
  130. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  131. readonly size: {
  132. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
  133. readonly required: false;
  134. readonly validator: ((val: unknown) => boolean) | undefined;
  135. __epPropKey: true;
  136. };
  137. readonly color: {
  138. readonly type: import("vue").PropType<string>;
  139. readonly required: false;
  140. readonly validator: ((val: unknown) => boolean) | undefined;
  141. __epPropKey: true;
  142. };
  143. }>>, {}>> & Record<string, any>;
  144. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  145. readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "line" | "dashboard", unknown, "line", boolean>;
  146. readonly percentage: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  147. readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "exception", unknown, "", boolean>;
  148. readonly indeterminate: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  149. readonly duration: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
  150. readonly strokeWidth: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
  151. 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>;
  152. readonly textInside: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  153. readonly width: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 126, boolean>;
  154. readonly showText: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  155. readonly color: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) & {}) | (() => string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) | ((new (...args: any[]) => (string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) & {}) | (() => string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]))[], unknown, unknown, "", boolean>;
  156. readonly format: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/progress").ProgressFn) | (() => import("./src/progress").ProgressFn) | {
  157. (): import("./src/progress").ProgressFn;
  158. new (): any;
  159. readonly prototype: any;
  160. } | ((new (...args: any[]) => import("./src/progress").ProgressFn) | (() => import("./src/progress").ProgressFn) | {
  161. (): import("./src/progress").ProgressFn;
  162. new (): any;
  163. readonly prototype: any;
  164. })[], unknown, unknown, (percentage: number) => string, boolean>;
  165. }>>, {
  166. readonly type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "circle" | "line" | "dashboard", unknown>;
  167. readonly color: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) & {}) | (() => string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) | ((new (...args: any[]) => (string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]) & {}) | (() => string | import("./src/progress").ProgressFn | import("./src/progress").ProgressColor[]))[], unknown, unknown>;
  168. readonly width: number;
  169. readonly strokeLinecap: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("round" | "inherit" | "butt" | "square") & {}) | (() => "round" | "inherit" | "butt" | "square") | ((new (...args: any[]) => ("round" | "inherit" | "butt" | "square") & {}) | (() => "round" | "inherit" | "butt" | "square"))[], unknown, unknown>;
  170. readonly strokeWidth: number;
  171. readonly indeterminate: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  172. readonly format: import("./src/progress").ProgressFn;
  173. readonly percentage: number;
  174. readonly status: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "exception", unknown>;
  175. readonly duration: number;
  176. readonly textInside: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  177. readonly showText: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  178. }>> & Record<string, any>;
  179. export default ElProgress;
  180. export * from './src/progress';