index.d.ts 16 KB

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