bkui-vue 0.0.1-beta.340 → 0.0.1-beta.341

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/index.cjs.js +50 -50
  2. package/dist/index.esm.js +280 -116
  3. package/dist/index.umd.js +49 -49
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.d.ts +1 -1
  7. package/lib/affix/index.d.ts +4 -4
  8. package/lib/alert/alert.d.ts +5 -5
  9. package/lib/alert/index.d.ts +11 -11
  10. package/lib/alert/index.js +1 -1
  11. package/lib/animate-number/animate-number.d.ts +1 -1
  12. package/lib/animate-number/index.d.ts +4 -4
  13. package/lib/backtop/backtop.d.ts +1 -1
  14. package/lib/backtop/index.d.ts +4 -4
  15. package/lib/button/button-group.d.ts +2 -2
  16. package/lib/button/button.d.ts +29 -30
  17. package/lib/button/index.d.ts +45 -48
  18. package/lib/button/index.js +1 -1
  19. package/lib/cascader/cascader.d.ts +1 -1
  20. package/lib/cascader/index.d.ts +4 -4
  21. package/lib/checkbox/checkbox.d.ts +8 -8
  22. package/lib/checkbox/index.d.ts +14 -14
  23. package/lib/checkbox/index.js +1 -1
  24. package/lib/code-diff/code-diff.css +27 -7
  25. package/lib/code-diff/code-diff.less +42 -7
  26. package/lib/code-diff/code-diff.variable.css +27 -7
  27. package/lib/collapse/collapse-panel.d.ts +2 -7
  28. package/lib/collapse/index.d.ts +2 -7
  29. package/lib/collapse/index.js +1 -1
  30. package/lib/collapse/props.d.ts +1 -43
  31. package/lib/color-picker/color-picker.d.ts +7 -7
  32. package/lib/color-picker/index.d.ts +12 -12
  33. package/lib/color-picker/index.js +1 -1
  34. package/lib/date-picker/date-picker.d.ts +7 -7
  35. package/lib/date-picker/index.d.ts +18 -18
  36. package/lib/date-picker/panel/date-range.d.ts +1 -1
  37. package/lib/date-picker/panel/date.d.ts +1 -1
  38. package/lib/date-picker/panel/time-range.d.ts +7 -7
  39. package/lib/date-picker/panel/time.d.ts +8 -8
  40. package/lib/date-picker/props.d.ts +2 -2
  41. package/lib/date-picker/time-picker.d.ts +7 -7
  42. package/lib/dialog/dialog.d.ts +21 -46
  43. package/lib/dialog/index.d.ts +46 -101
  44. package/lib/dialog/index.js +1 -1
  45. package/lib/dialog/props.d.ts +9 -19
  46. package/lib/divider/divider.d.ts +15 -15
  47. package/lib/divider/index.d.ts +34 -34
  48. package/lib/divider/index.js +1 -1
  49. package/lib/divider/props.d.ts +6 -6
  50. package/lib/dropdown/dropdown.d.ts +17 -17
  51. package/lib/dropdown/index.d.ts +24 -24
  52. package/lib/dropdown/index.js +1 -1
  53. package/lib/exception/exception.d.ts +10 -10
  54. package/lib/exception/index.d.ts +22 -22
  55. package/lib/exception/index.js +1 -1
  56. package/lib/icon/angle-double-down-line.js +1 -1
  57. package/lib/icon/angle-double-left-line.js +1 -1
  58. package/lib/icon/angle-double-left.js +1 -1
  59. package/lib/icon/angle-double-right-line.js +1 -1
  60. package/lib/icon/angle-double-right.js +1 -1
  61. package/lib/icon/angle-double-up-line.js +1 -1
  62. package/lib/icon/angle-down-fill.js +1 -1
  63. package/lib/icon/angle-down-line.js +1 -1
  64. package/lib/icon/angle-down.js +1 -1
  65. package/lib/icon/angle-left.js +1 -1
  66. package/lib/icon/angle-right.js +1 -1
  67. package/lib/icon/angle-up-fill.js +1 -1
  68. package/lib/icon/angle-up.js +1 -1
  69. package/lib/icon/archive-fill.js +1 -1
  70. package/lib/icon/arrows-left.js +1 -1
  71. package/lib/icon/arrows-right.js +1 -1
  72. package/lib/icon/audio-fill.js +1 -1
  73. package/lib/icon/bk.js +1 -1
  74. package/lib/icon/circle.js +1 -1
  75. package/lib/icon/close-line.js +1 -1
  76. package/lib/icon/close.js +1 -1
  77. package/lib/icon/code.js +1 -1
  78. package/lib/icon/cog-shape.js +1 -1
  79. package/lib/icon/collapse-left.js +1 -1
  80. package/lib/icon/copy.js +1 -1
  81. package/lib/icon/data-shape.js +1 -1
  82. package/lib/icon/del.js +1 -1
  83. package/lib/icon/doc-fill.js +1 -1
  84. package/lib/icon/done.js +1 -1
  85. package/lib/icon/down-shape.js +1 -1
  86. package/lib/icon/down-small.js +1 -1
  87. package/lib/icon/edit-line.js +1 -1
  88. package/lib/icon/ellipsis.js +1 -1
  89. package/lib/icon/enlarge-line.js +1 -1
  90. package/lib/icon/error.js +1 -1
  91. package/lib/icon/excel-fill.js +1 -1
  92. package/lib/icon/exclamation-circle-shape.js +1 -1
  93. package/lib/icon/eye.js +1 -1
  94. package/lib/icon/filliscreen-line.js +1 -1
  95. package/lib/icon/folder-open.js +1 -1
  96. package/lib/icon/folder-shape-open.js +1 -1
  97. package/lib/icon/folder-shape.js +1 -1
  98. package/lib/icon/folder.js +1 -1
  99. package/lib/icon/funnel.js +1 -1
  100. package/lib/icon/help-document-fill.js +1 -1
  101. package/lib/icon/help-fill.js +1 -1
  102. package/lib/icon/help.js +1 -1
  103. package/lib/icon/img-error.js +1 -1
  104. package/lib/icon/img-placehoulder.js +1 -1
  105. package/lib/icon/index.d.ts +1 -1
  106. package/lib/icon/index.js +1 -1
  107. package/lib/icon/info-line.js +1 -1
  108. package/lib/icon/info.js +1 -1
  109. package/lib/icon/left-shape.js +1 -1
  110. package/lib/icon/left-turn-line.js +1 -1
  111. package/lib/icon/narrow-line.js +1 -1
  112. package/lib/icon/{original .d.ts → original.d.ts} +0 -0
  113. package/lib/icon/original.js +1 -0
  114. package/lib/icon/pdf-fill.js +1 -1
  115. package/lib/icon/play-shape.js +1 -1
  116. package/lib/icon/plus.js +1 -1
  117. package/lib/icon/ppt-fill.js +1 -1
  118. package/lib/icon/qq.js +1 -1
  119. package/lib/icon/right-shape.js +1 -1
  120. package/lib/icon/right-turn-line.js +1 -1
  121. package/lib/icon/search.js +1 -1
  122. package/lib/icon/share.js +1 -1
  123. package/lib/icon/spinner.js +1 -1
  124. package/lib/icon/success.js +1 -1
  125. package/lib/icon/switcher-loading.js +1 -1
  126. package/lib/icon/text-file.js +1 -1
  127. package/lib/icon/text-fill.js +1 -1
  128. package/lib/icon/transfer.js +1 -1
  129. package/lib/icon/tree-application-shape.js +1 -1
  130. package/lib/icon/unfull-screen.js +1 -1
  131. package/lib/icon/unvisible.js +1 -1
  132. package/lib/icon/up-shape.js +1 -1
  133. package/lib/icon/upload.js +1 -1
  134. package/lib/icon/video-fill.js +1 -1
  135. package/lib/icon/warn.js +1 -1
  136. package/lib/icon/weixin.js +1 -1
  137. package/lib/image/image.d.ts +5 -5
  138. package/lib/image/index.d.ts +11 -11
  139. package/lib/image/index.js +1 -1
  140. package/lib/image/props.d.ts +2 -2
  141. package/lib/info-box/index.js +1 -1
  142. package/lib/input/index.d.ts +16 -16
  143. package/lib/input/index.js +1 -1
  144. package/lib/input/input.d.ts +10 -10
  145. package/lib/link/index.d.ts +15 -15
  146. package/lib/link/index.js +1 -1
  147. package/lib/link/link.d.ts +6 -6
  148. package/lib/loading/index.d.ts +38 -22
  149. package/lib/loading/index.js +1 -1
  150. package/lib/loading/loading.d.ts +27 -15
  151. package/lib/message/index.js +1 -1
  152. package/lib/message/messageConstructor.d.ts +5 -5
  153. package/lib/modal/index.d.ts +24 -76
  154. package/lib/modal/index.js +1 -1
  155. package/lib/modal/modal.d.ts +9 -29
  156. package/lib/modal/props.mixin.d.ts +4 -12
  157. package/lib/notify/index.js +1 -1
  158. package/lib/notify/notifyConstructor.d.ts +5 -5
  159. package/lib/pagination/index.d.ts +8 -8
  160. package/lib/pagination/pagination.d.ts +4 -4
  161. package/lib/plugin-popover/index.js +1 -1
  162. package/lib/popover/index.d.ts +23 -31
  163. package/lib/popover/index.js +1 -1
  164. package/lib/popover/popover.d.ts +10 -14
  165. package/lib/popover/props.d.ts +4 -6
  166. package/lib/popover/use-floating.d.ts +4 -1
  167. package/lib/progress/index.d.ts +15 -15
  168. package/lib/progress/index.js +1 -1
  169. package/lib/progress/progress.d.ts +7 -7
  170. package/lib/radio/index.d.ts +2 -2
  171. package/lib/radio/radio-button.d.ts +3 -3
  172. package/lib/rate/index.d.ts +4 -4
  173. package/lib/rate/rate.d.ts +2 -2
  174. package/lib/resize-layout/index.d.ts +15 -15
  175. package/lib/resize-layout/resize-layout.d.ts +6 -6
  176. package/lib/select/index.d.ts +51 -92
  177. package/lib/select/index.js +1 -1
  178. package/lib/select/select.d.ts +20 -35
  179. package/lib/select/selectTagInput.d.ts +2 -7
  180. package/lib/shared/index.js +1 -1
  181. package/lib/shared/pop-manager.d.ts +9 -1
  182. package/lib/shared/vue-types.d.ts +85 -7
  183. package/lib/sideslider/index.d.ts +20 -64
  184. package/lib/sideslider/sideslider.d.ts +9 -29
  185. package/lib/slider/index.d.ts +4 -4
  186. package/lib/slider/index.js +1 -1
  187. package/lib/slider/slider-button.d.ts +2 -1
  188. package/lib/slider/slider.d.ts +1 -1
  189. package/lib/steps/index.d.ts +49 -49
  190. package/lib/steps/index.js +1 -1
  191. package/lib/steps/steps.d.ts +31 -31
  192. package/lib/switcher/index.d.ts +9 -20
  193. package/lib/switcher/index.js +1 -1
  194. package/lib/switcher/switcher.d.ts +4 -9
  195. package/lib/tab/index.d.ts +39 -44
  196. package/lib/tab/index.js +1 -1
  197. package/lib/tab/props.d.ts +11 -13
  198. package/lib/tab/tab-nav.d.ts +11 -11
  199. package/lib/tab/tab-panel.d.ts +2 -7
  200. package/lib/tab/tab.d.ts +16 -16
  201. package/lib/table/components/table-column.d.ts +22 -27
  202. package/lib/table/index.d.ts +160 -94
  203. package/lib/table/index.js +1 -1
  204. package/lib/table/props.d.ts +42 -18
  205. package/lib/table/table.d.ts +50 -15
  206. package/lib/table/use-common.d.ts +6 -6
  207. package/lib/table-column/index.d.ts +49 -60
  208. package/lib/table-column/index.js +1 -1
  209. package/lib/tag/index.d.ts +16 -27
  210. package/lib/tag/index.js +1 -1
  211. package/lib/tag/tag.d.ts +7 -12
  212. package/lib/tag-input/index.d.ts +28 -36
  213. package/lib/tag-input/index.js +1 -1
  214. package/lib/tag-input/tag-input.d.ts +13 -17
  215. package/lib/tag-input/tag-props.d.ts +6 -8
  216. package/lib/time-picker/index.d.ts +18 -18
  217. package/lib/tree/constant.d.ts +6 -1
  218. package/lib/tree/index.js +1 -1
  219. package/lib/tree/use-empty.d.ts +1 -1
  220. package/package.json +1 -1
  221. package/lib/dropdown/const.d.ts +0 -4
  222. package/lib/icon/original .js +0 -1
@@ -4,20 +4,20 @@ declare const BkSteps: {
4
4
  $data: {};
5
5
  $props: Partial<{
6
6
  text: boolean;
7
- theme: string;
7
+ direction: "horizontal" | "vertical";
8
+ lineType: "dashed" | "solid";
9
+ theme: "success" | "warning" | "danger" | "primary";
8
10
  extCls: string;
9
- direction: string;
10
11
  beforeChange: (...args: any[]) => any;
11
12
  steps: unknown[];
12
- lineType: string;
13
13
  controllable: boolean;
14
- status: string;
14
+ status: "" | "error" | "loading";
15
15
  curStep: number;
16
16
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
17
- theme: import("vue-types").VueTypeDef<string> & {
18
- default: string;
17
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
18
+ default: "success" | "warning" | "danger" | "primary";
19
19
  };
20
- size: import("vue-types").VueTypeDef<string>;
20
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
21
21
  curStep: import("vue-types").VueTypeValidableDef<number> & {
22
22
  default: number;
23
23
  } & {
@@ -28,14 +28,14 @@ declare const BkSteps: {
28
28
  } & {
29
29
  default: boolean;
30
30
  };
31
- direction: import("vue-types").VueTypeDef<string> & {
32
- default: string;
31
+ direction: import("vue-types").VueTypeDef<"horizontal" | "vertical"> & {
32
+ default: "horizontal" | "vertical";
33
33
  };
34
- status: import("vue-types").VueTypeDef<string> & {
35
- default: string;
34
+ status: import("vue-types").VueTypeDef<"" | "error" | "loading"> & {
35
+ default: "" | "error" | "loading";
36
36
  };
37
- lineType: import("vue-types").VueTypeDef<string> & {
38
- default: string;
37
+ lineType: import("vue-types").VueTypeDef<"dashed" | "solid"> & {
38
+ default: "dashed" | "solid";
39
39
  };
40
40
  text: import("vue-types").VueTypeValidableDef<boolean> & {
41
41
  default: boolean;
@@ -54,7 +54,7 @@ declare const BkSteps: {
54
54
  }>> & {
55
55
  onClick?: (...args: any[]) => any;
56
56
  "onUpdate:curStep"?: (...args: any[]) => any;
57
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "theme" | "extCls" | "direction" | "beforeChange" | "steps" | "lineType" | "controllable" | "status" | "curStep">;
57
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "direction" | "lineType" | "theme" | "extCls" | "beforeChange" | "steps" | "controllable" | "status" | "curStep">;
58
58
  $attrs: {
59
59
  [x: string]: unknown;
60
60
  };
@@ -69,10 +69,10 @@ declare const BkSteps: {
69
69
  $emit: (event: "click" | "update:curStep", ...args: any[]) => void;
70
70
  $el: any;
71
71
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
72
- theme: import("vue-types").VueTypeDef<string> & {
73
- default: string;
72
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
73
+ default: "success" | "warning" | "danger" | "primary";
74
74
  };
75
- size: import("vue-types").VueTypeDef<string>;
75
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
76
76
  curStep: import("vue-types").VueTypeValidableDef<number> & {
77
77
  default: number;
78
78
  } & {
@@ -83,14 +83,14 @@ declare const BkSteps: {
83
83
  } & {
84
84
  default: boolean;
85
85
  };
86
- direction: import("vue-types").VueTypeDef<string> & {
87
- default: string;
86
+ direction: import("vue-types").VueTypeDef<"horizontal" | "vertical"> & {
87
+ default: "horizontal" | "vertical";
88
88
  };
89
- status: import("vue-types").VueTypeDef<string> & {
90
- default: string;
89
+ status: import("vue-types").VueTypeDef<"" | "error" | "loading"> & {
90
+ default: "" | "error" | "loading";
91
91
  };
92
- lineType: import("vue-types").VueTypeDef<string> & {
93
- default: string;
92
+ lineType: import("vue-types").VueTypeDef<"dashed" | "solid"> & {
93
+ default: "dashed" | "solid";
94
94
  };
95
95
  text: import("vue-types").VueTypeValidableDef<boolean> & {
96
96
  default: boolean;
@@ -114,14 +114,14 @@ declare const BkSteps: {
114
114
  jumpTo: (index: any) => Promise<void>;
115
115
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curStep")[], string, {
116
116
  text: boolean;
117
- theme: string;
117
+ direction: "horizontal" | "vertical";
118
+ lineType: "dashed" | "solid";
119
+ theme: "success" | "warning" | "danger" | "primary";
118
120
  extCls: string;
119
- direction: string;
120
121
  beforeChange: (...args: any[]) => any;
121
122
  steps: unknown[];
122
- lineType: string;
123
123
  controllable: boolean;
124
- status: string;
124
+ status: "" | "error" | "loading";
125
125
  curStep: number;
126
126
  }> & {
127
127
  beforeCreate?: (() => void) | (() => void)[];
@@ -144,10 +144,10 @@ declare const BkSteps: {
144
144
  $nextTick: typeof import("vue").nextTick;
145
145
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
146
146
  } & Readonly<import("vue").ExtractPropTypes<{
147
- theme: import("vue-types").VueTypeDef<string> & {
148
- default: string;
147
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
148
+ default: "success" | "warning" | "danger" | "primary";
149
149
  };
150
- size: import("vue-types").VueTypeDef<string>;
150
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
151
151
  curStep: import("vue-types").VueTypeValidableDef<number> & {
152
152
  default: number;
153
153
  } & {
@@ -158,14 +158,14 @@ declare const BkSteps: {
158
158
  } & {
159
159
  default: boolean;
160
160
  };
161
- direction: import("vue-types").VueTypeDef<string> & {
162
- default: string;
161
+ direction: import("vue-types").VueTypeDef<"horizontal" | "vertical"> & {
162
+ default: "horizontal" | "vertical";
163
163
  };
164
- status: import("vue-types").VueTypeDef<string> & {
165
- default: string;
164
+ status: import("vue-types").VueTypeDef<"" | "error" | "loading"> & {
165
+ default: "" | "error" | "loading";
166
166
  };
167
- lineType: import("vue-types").VueTypeDef<string> & {
168
- default: string;
167
+ lineType: import("vue-types").VueTypeDef<"dashed" | "solid"> & {
168
+ default: "dashed" | "solid";
169
169
  };
170
170
  text: import("vue-types").VueTypeValidableDef<boolean> & {
171
171
  default: boolean;
@@ -192,10 +192,10 @@ declare const BkSteps: {
192
192
  __isTeleport?: never;
193
193
  __isSuspense?: never;
194
194
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
195
- theme: import("vue-types").VueTypeDef<string> & {
196
- default: string;
195
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
196
+ default: "success" | "warning" | "danger" | "primary";
197
197
  };
198
- size: import("vue-types").VueTypeDef<string>;
198
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
199
199
  curStep: import("vue-types").VueTypeValidableDef<number> & {
200
200
  default: number;
201
201
  } & {
@@ -206,14 +206,14 @@ declare const BkSteps: {
206
206
  } & {
207
207
  default: boolean;
208
208
  };
209
- direction: import("vue-types").VueTypeDef<string> & {
210
- default: string;
209
+ direction: import("vue-types").VueTypeDef<"horizontal" | "vertical"> & {
210
+ default: "horizontal" | "vertical";
211
211
  };
212
- status: import("vue-types").VueTypeDef<string> & {
213
- default: string;
212
+ status: import("vue-types").VueTypeDef<"" | "error" | "loading"> & {
213
+ default: "" | "error" | "loading";
214
214
  };
215
- lineType: import("vue-types").VueTypeDef<string> & {
216
- default: string;
215
+ lineType: import("vue-types").VueTypeDef<"dashed" | "solid"> & {
216
+ default: "dashed" | "solid";
217
217
  };
218
218
  text: import("vue-types").VueTypeValidableDef<boolean> & {
219
219
  default: boolean;
@@ -237,14 +237,14 @@ declare const BkSteps: {
237
237
  jumpTo: (index: any) => Promise<void>;
238
238
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curStep")[], "click" | "update:curStep", {
239
239
  text: boolean;
240
- theme: string;
240
+ direction: "horizontal" | "vertical";
241
+ lineType: "dashed" | "solid";
242
+ theme: "success" | "warning" | "danger" | "primary";
241
243
  extCls: string;
242
- direction: string;
243
244
  beforeChange: (...args: any[]) => any;
244
245
  steps: unknown[];
245
- lineType: string;
246
246
  controllable: boolean;
247
- status: string;
247
+ status: "" | "error" | "loading";
248
248
  curStep: number;
249
249
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
250
250
  export default BkSteps;
@@ -1 +1 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../icon")):e(t["../shared"],t.vue,t["../icon"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r)=>(()=>{var n={7162:(t,e,r)=>{t.exports=r(5047)},5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),c=new P(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return N()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=L(c,r);if(a){if(a===y)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,c),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==r&&n.call(x,i)&&(b=x);var k=m.prototype=v.prototype=Object.create(b);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,c,a){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,c,a)}),(function(t){r("throw",t,c,a)})):e.resolve(p).then((function(t){u.value=t,c(u)}),(function(t){return r("throw",t,c,a)}))}a(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function L(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return c.next=c}}return{next:N}}function N(){return{value:e,done:!0}}return g.prototype=m,s(k,"constructor",m),s(m,"constructor",g),g.displayName=s(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,a,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},T(j.prototype),s(j.prototype,c,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var c=new j(u(e,r,n,o),i);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},T(k),s(k,a,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var s=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(s&&u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},6870:t=>{"use strict";t.exports=r},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return n[t](r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return(()=>{"use strict";i.r(c),i.d(c,{default:()=>p});var t=i(4212);function e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var r=i(748),n=i(7162),o=i.n(n);function a(t,e,r,n){return new(r||(r=Promise))((function(o,i){function c(t){try{s(n.next(t))}catch(t){i(t)}}function a(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,a)}s((n=n.apply(t,e||[])).next())}))}Object.create,Object.create;var s=i(6870),u={theme:t.PropTypes.theme().def("primary"),size:t.PropTypes.size(),curStep:t.PropTypes.number.def(1),controllable:t.PropTypes.bool.def(!1),direction:t.PropTypes.commonType(["horizontal","vertical"],"direction").def("horizontal"),status:t.PropTypes.commonType(["","error","loading"],"status").def(""),lineType:t.PropTypes.commonType(["dashed","solid"],"lineType").def("dashed"),text:t.PropTypes.bool,extCls:t.PropTypes.string,steps:t.PropTypes.array.def([]),beforeChange:t.PropTypes.func};const l=(0,r.defineComponent)({name:"Steps",props:u,emits:["update:curStep","click"],setup:function(t,e){var n=this,i=e.emit,c=(0,r.ref)([]),s=function(t){var e,r=[];t.forEach((function(t){var e;"string"==typeof t?r.push(t):r.push({title:t.title,icon:t.icon,description:t.description,status:t.status,border:null===(e=t.border)||void 0===e||e})})),(e=c.value).splice.apply(e,[0,c.value.length].concat(r))};return(0,r.onMounted)((function(){var e,r;(e=c.value).splice.apply(e,[0,c.value.length].concat([{title:"步骤1",icon:1},{title:"步骤2",icon:2},{title:"步骤3",icon:3}])),(null===(r=t.steps)||void 0===r?void 0:r.length)&&s(t.steps)})),(0,r.watch)((function(){return t.steps}),(function(){s(t.steps)}),{deep:!0}),(0,r.watch)((function(){return t.curStep}),(function(){var e;e=t.curStep,u.curStep=e}),{deep:!0}),{defaultSteps:c,jumpTo:function(e){return a(n,void 0,void 0,o().mark((function r(){var n=this;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!t.controllable||e===t.curStep){r.next=7;break}if("function"!=typeof t.beforeChange){r.next=5;break}return r.next=5,new Promise((function(r,i){return a(n,void 0,void 0,o().mark((function n(){var c;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.beforeChange(e);case 2:(c=n.sent)?r(c):i(c);case 4:case"end":return n.stop()}}),n)})))}));case 5:i("update:curStep",e),i("click",e);case 7:r.next=12;break;case 9:r.prev=9,r.t0=r.catch(0),console.warn(r.t0);case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))}}},render:function(){var n,o=this,i="bk-steps",c=this.theme?"".concat(i,"-").concat(this.theme):"",a=this.size?"".concat(i,"-").concat(this.size):"",u=(0,t.classes)((e(n={},"".concat(this.extCls),!!this.extCls),e(n,"bk-steps-".concat(this.direction),this.direction),e(n,"bk-steps-".concat(this.lineType),this.lineType),n),"".concat(c," ").concat(i," ").concat(a)),l=function(t){return o.curStep>t+1||"done"===o.defaultSteps[t].status},p=function(t){return o.curStep===t+1},f=function(t){var e=t.icon;return e?"[object Object]"===Object.prototype.toString.call(e):"string"==typeof t},h=function(t,e){return e.icon||(e.icon=t),!isNaN(e.icon)},d=function(t,e){return p(t)&&"loading"===o.status||function(t){return"loading"===t.status}(e)?(0,r.createVNode)(s.Circle,{class:"bk-icon bk-steps-icon icon-loading"},null):p(t)&&"error"===o.status||function(t){return"error"===t.status}(e)?(0,r.createVNode)(s.Error,{class:"bk-steps-icon"},null):l(t)?(0,r.createVNode)(s.Done,{class:"bk-steps-icon"},null):(0,r.createVNode)("span",null,[h(t,e)?t+1:(0,r.createVNode)(e.icon,null,null)])};return(0,r.createVNode)("div",{class:u},[this.defaultSteps.map((function(t,e){var n,i,c;return(0,r.createVNode)("div",{class:["bk-step",t.title?"":"bk-step-no-content",l(e)?"done":"",p(e)?"current":"",p(e)&&"error"===o.status?"isError":"",t.status&&p(e)?["bk-step-".concat(t.status)]:""]},[(0,r.createVNode)("span",{class:["bk-step-indicator","bk-step-".concat(f(t)?"icon":"number"),"bk-step-icon".concat(t.status)],style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[null!==(c=null===(i=(n=o.$slots)[e+1])||void 0===i?void 0:i.call(n))&&void 0!==c?c:d(e,t)]),t.title?(0,r.createVNode)("div",{class:"bk-step-content"},[(0,r.createVNode)("div",{class:"bk-step-title",style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[t.title]),t.description&&(0,r.createVNode)("div",{class:"bk-step-description",title:t.description},[t.description])]):""])}))])}}),p=(0,t.withInstall)(l)})(),c})()));
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("vue-types"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types","../icon"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("vue-types"),require("../icon")):e(t["../shared"],t.vue,t["vue-types"],t["../icon"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r,n)=>(()=>{var o={7162:(t,e,r)=>{t.exports=r(5047)},5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),c=new O(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=N(c,r);if(a){if(a===v)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,c),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",v={};function y(){}function g(){}function m(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(S([])));x&&x!==r&&n.call(x,i)&&(b=x);var k=m.prototype=y.prototype=Object.create(b);function j(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,c,a){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,c,a)}),(function(t){r("throw",t,c,a)})):e.resolve(p).then((function(t){u.value=t,c(u)}),(function(t){return r("throw",t,c,a)}))}a(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function N(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,N(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function S(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return c.next=c}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=m,s(k,"constructor",m),s(m,"constructor",g),g.displayName=s(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,a,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},j(L.prototype),s(L.prototype,c,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var c=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},j(k),s(k,a,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var s=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(s&&u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},6870:t=>{"use strict";t.exports=n},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:t=>{"use strict";t.exports=r}},i={};function c(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return o[t](r,r.exports,c),r.exports}c.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return c.d(e,{a:e}),e},c.d=(t,e)=>{for(var r in e)c.o(e,r)&&!c.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),c.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{"use strict";c.r(a),c.d(a,{default:()=>h});var t=c(4212);function e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var r=c(748),n=c(7162),o=c.n(n);function i(t,e,r,n){return new(r||(r=Promise))((function(o,i){function c(t){try{s(n.next(t))}catch(t){i(t)}}function a(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,a)}s((n=n.apply(t,e||[])).next())}))}Object.create,Object.create;var s,u=c(210),l=c(6870);!function(t){t.UNKNOWN="",t.ERROR="error",t.LOADING="loading"}(s||(s={}));var p={theme:t.PropTypes.theme().def(t.ThemeEnum.PRIMARY),size:t.PropTypes.size(),curStep:t.PropTypes.number.def(1),controllable:t.PropTypes.bool.def(!1),direction:t.directionType,status:(0,u.toType)("status",{}).def(s.UNKNOWN),lineType:t.lineStyleType,text:t.PropTypes.bool,extCls:t.PropTypes.string,steps:t.PropTypes.array.def([]),beforeChange:t.PropTypes.func};const f=(0,r.defineComponent)({name:"Steps",props:p,emits:["update:curStep","click"],setup:function(t,e){var n=this,c=e.emit,a=(0,r.ref)([]),s=function(t){var e,r=[];t.forEach((function(t){var e;"string"==typeof t?r.push(t):r.push({title:t.title,icon:t.icon,description:t.description,status:t.status,border:null===(e=t.border)||void 0===e||e})})),(e=a.value).splice.apply(e,[0,a.value.length].concat(r))};return(0,r.onMounted)((function(){var e,r;(e=a.value).splice.apply(e,[0,a.value.length].concat([{title:"步骤1",icon:1},{title:"步骤2",icon:2},{title:"步骤3",icon:3}])),(null===(r=t.steps)||void 0===r?void 0:r.length)&&s(t.steps)})),(0,r.watch)((function(){return t.steps}),(function(){s(t.steps)}),{deep:!0}),(0,r.watch)((function(){return t.curStep}),(function(){var e;e=t.curStep,p.curStep=e}),{deep:!0}),{defaultSteps:a,jumpTo:function(e){return i(n,void 0,void 0,o().mark((function r(){var n=this;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!t.controllable||e===t.curStep){r.next=7;break}if("function"!=typeof t.beforeChange){r.next=5;break}return r.next=5,new Promise((function(r,c){return i(n,void 0,void 0,o().mark((function n(){var i;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.beforeChange(e);case 2:(i=n.sent)?r(i):c(i);case 4:case"end":return n.stop()}}),n)})))}));case 5:c("update:curStep",e),c("click",e);case 7:r.next=12;break;case 9:r.prev=9,r.t0=r.catch(0),console.warn(r.t0);case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))}}},render:function(){var n,o=this,i="bk-steps",c=this.theme?"".concat(i,"-").concat(this.theme):"",a=this.size?"".concat(i,"-").concat(this.size):"",s=(0,t.classes)((e(n={},"".concat(this.extCls),!!this.extCls),e(n,"bk-steps-".concat(this.direction),this.direction),e(n,"bk-steps-".concat(this.lineType),this.lineType),n),"".concat(c," ").concat(i," ").concat(a)),u=function(t){return o.curStep>t+1||"done"===o.defaultSteps[t].status},p=function(t){return o.curStep===t+1},f=function(t){var e=t.icon;return e?"[object Object]"===Object.prototype.toString.call(e):"string"==typeof t},h=function(t,e){return e.icon||(e.icon=t),!isNaN(e.icon)},d=function(t,e){return p(t)&&"loading"===o.status||function(t){return"loading"===t.status}(e)?(0,r.createVNode)(l.Circle,{class:"bk-icon bk-steps-icon icon-loading"},null):p(t)&&"error"===o.status||function(t){return"error"===t.status}(e)?(0,r.createVNode)(l.Error,{class:"bk-steps-icon"},null):u(t)?(0,r.createVNode)(l.Done,{class:"bk-steps-icon"},null):(0,r.createVNode)("span",null,[h(t,e)?t+1:(0,r.createVNode)(e.icon,null,null)])};return(0,r.createVNode)("div",{class:s},[this.defaultSteps.map((function(t,e){var n,i,c;return(0,r.createVNode)("div",{class:["bk-step",t.title?"":"bk-step-no-content",u(e)?"done":"",p(e)?"current":"",p(e)&&"error"===o.status?"isError":"",t.status&&p(e)?["bk-step-".concat(t.status)]:""]},[(0,r.createVNode)("span",{class:["bk-step-indicator","bk-step-".concat(f(t)?"icon":"number"),"bk-step-icon".concat(t.status)],style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[null!==(c=null===(i=(n=o.$slots)[e+1])||void 0===i?void 0:i.call(n))&&void 0!==c?c:d(e,t)]),t.title?(0,r.createVNode)("div",{class:"bk-step-content"},[(0,r.createVNode)("div",{class:"bk-step-title",style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[t.title]),t.description&&(0,r.createVNode)("div",{class:"bk-step-description",title:t.description},[t.description])]):""])}))])}}),h=(0,t.withInstall)(f)})(),a})()));
@@ -25,10 +25,10 @@
25
25
  */
26
26
  import { ExtractPropTypes } from 'vue';
27
27
  declare const stepsProps: {
28
- theme: import("vue-types").VueTypeDef<string> & {
29
- default: string;
28
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
29
+ default: "success" | "warning" | "danger" | "primary";
30
30
  };
31
- size: import("vue-types").VueTypeDef<string>;
31
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
32
32
  curStep: import("vue-types").VueTypeValidableDef<number> & {
33
33
  default: number;
34
34
  } & {
@@ -39,14 +39,14 @@ declare const stepsProps: {
39
39
  } & {
40
40
  default: boolean;
41
41
  };
42
- direction: import("vue-types").VueTypeDef<string> & {
43
- default: string;
42
+ direction: import("vue-types").VueTypeDef<"horizontal" | "vertical"> & {
43
+ default: "horizontal" | "vertical";
44
44
  };
45
- status: import("vue-types").VueTypeDef<string> & {
46
- default: string;
45
+ status: import("vue-types").VueTypeDef<"" | "error" | "loading"> & {
46
+ default: "" | "error" | "loading";
47
47
  };
48
- lineType: import("vue-types").VueTypeDef<string> & {
49
- default: string;
48
+ lineType: import("vue-types").VueTypeDef<"dashed" | "solid"> & {
49
+ default: "dashed" | "solid";
50
50
  };
51
51
  text: import("vue-types").VueTypeValidableDef<boolean> & {
52
52
  default: boolean;
@@ -65,10 +65,10 @@ declare const stepsProps: {
65
65
  };
66
66
  export declare type StepsPropTypes = ExtractPropTypes<typeof stepsProps>;
67
67
  declare const _default: import("vue").DefineComponent<{
68
- theme: import("vue-types").VueTypeDef<string> & {
69
- default: string;
68
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
69
+ default: "success" | "warning" | "danger" | "primary";
70
70
  };
71
- size: import("vue-types").VueTypeDef<string>;
71
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
72
72
  curStep: import("vue-types").VueTypeValidableDef<number> & {
73
73
  default: number;
74
74
  } & {
@@ -79,14 +79,14 @@ declare const _default: import("vue").DefineComponent<{
79
79
  } & {
80
80
  default: boolean;
81
81
  };
82
- direction: import("vue-types").VueTypeDef<string> & {
83
- default: string;
82
+ direction: import("vue-types").VueTypeDef<"horizontal" | "vertical"> & {
83
+ default: "horizontal" | "vertical";
84
84
  };
85
- status: import("vue-types").VueTypeDef<string> & {
86
- default: string;
85
+ status: import("vue-types").VueTypeDef<"" | "error" | "loading"> & {
86
+ default: "" | "error" | "loading";
87
87
  };
88
- lineType: import("vue-types").VueTypeDef<string> & {
89
- default: string;
88
+ lineType: import("vue-types").VueTypeDef<"dashed" | "solid"> & {
89
+ default: "dashed" | "solid";
90
90
  };
91
91
  text: import("vue-types").VueTypeValidableDef<boolean> & {
92
92
  default: boolean;
@@ -106,10 +106,10 @@ declare const _default: import("vue").DefineComponent<{
106
106
  defaultSteps: import("vue").Ref<any[]>;
107
107
  jumpTo: (index: any) => Promise<void>;
108
108
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curStep")[], "click" | "update:curStep", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
109
- theme: import("vue-types").VueTypeDef<string> & {
110
- default: string;
109
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
110
+ default: "success" | "warning" | "danger" | "primary";
111
111
  };
112
- size: import("vue-types").VueTypeDef<string>;
112
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
113
113
  curStep: import("vue-types").VueTypeValidableDef<number> & {
114
114
  default: number;
115
115
  } & {
@@ -120,14 +120,14 @@ declare const _default: import("vue").DefineComponent<{
120
120
  } & {
121
121
  default: boolean;
122
122
  };
123
- direction: import("vue-types").VueTypeDef<string> & {
124
- default: string;
123
+ direction: import("vue-types").VueTypeDef<"horizontal" | "vertical"> & {
124
+ default: "horizontal" | "vertical";
125
125
  };
126
- status: import("vue-types").VueTypeDef<string> & {
127
- default: string;
126
+ status: import("vue-types").VueTypeDef<"" | "error" | "loading"> & {
127
+ default: "" | "error" | "loading";
128
128
  };
129
- lineType: import("vue-types").VueTypeDef<string> & {
130
- default: string;
129
+ lineType: import("vue-types").VueTypeDef<"dashed" | "solid"> & {
130
+ default: "dashed" | "solid";
131
131
  };
132
132
  text: import("vue-types").VueTypeValidableDef<boolean> & {
133
133
  default: boolean;
@@ -148,14 +148,14 @@ declare const _default: import("vue").DefineComponent<{
148
148
  "onUpdate:curStep"?: (...args: any[]) => any;
149
149
  }, {
150
150
  text: boolean;
151
- theme: string;
151
+ direction: "horizontal" | "vertical";
152
+ lineType: "dashed" | "solid";
153
+ theme: "success" | "warning" | "danger" | "primary";
152
154
  extCls: string;
153
- direction: string;
154
155
  beforeChange: (...args: any[]) => any;
155
156
  steps: unknown[];
156
- lineType: string;
157
157
  controllable: boolean;
158
- status: string;
158
+ status: "" | "error" | "loading";
159
159
  curStep: number;
160
160
  }>;
161
161
  export default _default;
@@ -3,7 +3,6 @@ declare const BkSwitcher: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- theme: string;
7
6
  extCls: string;
8
7
  disabled: boolean;
9
8
  value: string | number | boolean;
@@ -18,10 +17,8 @@ declare const BkSwitcher: {
18
17
  trueValue: string | number | boolean;
19
18
  falseValue: string | number | boolean;
20
19
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
21
- theme: import("vue-types").VueTypeDef<string> & {
22
- default: string;
23
- };
24
- size: import("vue-types").VueTypeDef<string>;
20
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
21
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
25
22
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
26
23
  default: boolean;
27
24
  };
@@ -72,7 +69,7 @@ declare const BkSwitcher: {
72
69
  }>> & {
73
70
  onChange?: (...args: any[]) => any;
74
71
  "onUpdate:modelValue"?: (...args: any[]) => any;
75
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "extCls" | "disabled" | "value" | "modelValue" | "withValidate" | "beforeChange" | "showText" | "isOutline" | "onText" | "offText" | "isSquare" | "trueValue" | "falseValue">;
72
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "extCls" | "disabled" | "value" | "modelValue" | "withValidate" | "beforeChange" | "showText" | "isOutline" | "onText" | "offText" | "isSquare" | "trueValue" | "falseValue">;
76
73
  $attrs: {
77
74
  [x: string]: unknown;
78
75
  };
@@ -87,10 +84,8 @@ declare const BkSwitcher: {
87
84
  $emit: (event: "change" | "update:modelValue", ...args: any[]) => void;
88
85
  $el: any;
89
86
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
90
- theme: import("vue-types").VueTypeDef<string> & {
91
- default: string;
92
- };
93
- size: import("vue-types").VueTypeDef<string>;
87
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
88
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
94
89
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
95
90
  default: boolean;
96
91
  };
@@ -142,7 +137,6 @@ declare const BkSwitcher: {
142
137
  onChange?: (...args: any[]) => any;
143
138
  "onUpdate:modelValue"?: (...args: any[]) => any;
144
139
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], string, {
145
- theme: string;
146
140
  extCls: string;
147
141
  disabled: boolean;
148
142
  value: string | number | boolean;
@@ -177,10 +171,8 @@ declare const BkSwitcher: {
177
171
  $nextTick: typeof import("vue").nextTick;
178
172
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
179
173
  } & Readonly<import("vue").ExtractPropTypes<{
180
- theme: import("vue-types").VueTypeDef<string> & {
181
- default: string;
182
- };
183
- size: import("vue-types").VueTypeDef<string>;
174
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
175
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
184
176
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
185
177
  default: boolean;
186
178
  };
@@ -236,10 +228,8 @@ declare const BkSwitcher: {
236
228
  __isTeleport?: never;
237
229
  __isSuspense?: never;
238
230
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
239
- theme: import("vue-types").VueTypeDef<string> & {
240
- default: string;
241
- };
242
- size: import("vue-types").VueTypeDef<string>;
231
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
232
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
243
233
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
244
234
  default: boolean;
245
235
  };
@@ -291,7 +281,6 @@ declare const BkSwitcher: {
291
281
  onChange?: (...args: any[]) => any;
292
282
  "onUpdate:modelValue"?: (...args: any[]) => any;
293
283
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
294
- theme: string;
295
284
  extCls: string;
296
285
  disabled: boolean;
297
286
  value: string | number | boolean;
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],o);else{var r="object"==typeof exports?o(require("../shared"),require("vue"),require("../icon")):o(e["../shared"],e.vue,e["../icon"]);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(self,((e,o,r)=>(()=>{"use strict";var t={6870:e=>{e.exports=r},4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function u(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,u),r.exports}u.d=(e,o)=>{for(var r in o)u.o(o,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},u.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{u.r(i),u.d(i,{default:()=>a});var e=u(4212);function o(e,o,r){return o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}var r=u(748),t=u(6870);const n=(0,r.defineComponent)({name:"Switcher",props:{theme:e.PropTypes.theme().def(""),size:e.PropTypes.size(),disabled:e.PropTypes.bool,showText:e.PropTypes.bool,isOutline:e.PropTypes.bool,onText:e.PropTypes.string.def("ON"),offText:e.PropTypes.string.def("OFF"),isSquare:e.PropTypes.bool,extCls:e.PropTypes.string,beforeChange:e.PropTypes.func.def(void 0),trueValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!0),falseValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),value:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),withValidate:e.PropTypes.bool.def(!0)},emits:["update:modelValue","change"],setup:function(n,u){var i=u.emit,a=(0,e.useFormItem)(),s=(0,r.ref)(!1),l=(0,r.computed)((function(){return n.trueValue===f.value})),p=(0,r.ref)(!1!==n.modelValue),f=(0,r.computed)((function(){return p.value?n.modelValue:n.value})),d=(0,r.computed)((function(){var e,r=(o(e={},n.extCls,!!n.extCls),o(e,"bk-switcher",!0),o(e,"bk-switcher-outline",n.isOutline),o(e,"bk-switcher-square",n.isSquare),o(e,"show-label",n.showText),o(e,"is-disabled",n.disabled),o(e,"is-checked",l.value),o(e,"is-unchecked",!l.value),o(e,"is-loading",s.value),o(e,"bk-primary","primary"===n.theme),e);return n.size&&!n.showText&&(r["bk-switcher-".concat(n.size)]=!0),r}));(0,r.watch)((function(){return n.modelValue}),(function(){var e;p.value=!0,n.withValidate&&(null===(e=null==a?void 0:a.validate)||void 0===e||e.call(a,"change"))})),(0,r.watch)((function(){return n.value}),(function(){p.value=!1}));var c=function(e){if(e.stopPropagation(),e.preventDefault(),!n.disabled&&!s.value){var o=l.value?n.falseValue:n.trueValue,r=!l.value,t=function(){i("update:modelValue",o),i("change",r)},u=!0;if("function"==typeof n.beforeChange&&"function"==typeof(u=n.beforeChange(o)).then)return s.value=!0,u.then((function(){t()})).finally((function(){s.value=!1}));u&&t()}},y=function(e){"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||c(e)};return function(){return(0,r.createVNode)("div",{class:d.value,onClick:c,tabindex:"0",onKeydown:y},[s.value?(0,r.createVNode)(t.SwitcherLoading,{class:"bk-switcher-loading"},null):"",n.showText?(0,r.createVNode)("span",{class:"switcher-text"},[l.value?n.onText:n.offText]):""])}}}),a=(0,e.withInstall)(n)})(),i})()));
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],o);else{var r="object"==typeof exports?o(require("../shared"),require("vue"),require("../icon")):o(e["../shared"],e.vue,e["../icon"]);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(self,((e,o,r)=>(()=>{"use strict";var t={6870:e=>{e.exports=r},4212:o=>{o.exports=e},748:e=>{e.exports=o}},n={};function u(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,u),r.exports}u.d=(e,o)=>{for(var r in o)u.o(o,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},u.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{u.r(i),u.d(i,{default:()=>a});var e=u(4212);function o(e,o,r){return o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}var r=u(748),t=u(6870);const n=(0,r.defineComponent)({name:"Switcher",props:{theme:e.PropTypes.theme(),size:e.PropTypes.size(),disabled:e.PropTypes.bool,showText:e.PropTypes.bool,isOutline:e.PropTypes.bool,onText:e.PropTypes.string.def("ON"),offText:e.PropTypes.string.def("OFF"),isSquare:e.PropTypes.bool,extCls:e.PropTypes.string,beforeChange:e.PropTypes.func.def(void 0),trueValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!0),falseValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),value:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.bool]).def(!1),withValidate:e.PropTypes.bool.def(!0)},emits:["update:modelValue","change"],setup:function(n,u){var i=u.emit,a=(0,e.useFormItem)(),s=(0,r.ref)(!1),l=(0,r.computed)((function(){return n.trueValue===f.value})),p=(0,r.ref)(!1!==n.modelValue),f=(0,r.computed)((function(){return p.value?n.modelValue:n.value})),c=(0,r.computed)((function(){var e,r=(o(e={},n.extCls,!!n.extCls),o(e,"bk-switcher",!0),o(e,"bk-switcher-outline",n.isOutline),o(e,"bk-switcher-square",n.isSquare),o(e,"show-label",n.showText),o(e,"is-disabled",n.disabled),o(e,"is-checked",l.value),o(e,"is-unchecked",!l.value),o(e,"is-loading",s.value),o(e,"bk-primary","primary"===n.theme),e);return n.size&&!n.showText&&(r["bk-switcher-".concat(n.size)]=!0),r}));(0,r.watch)((function(){return n.modelValue}),(function(){var e;p.value=!0,n.withValidate&&(null===(e=null==a?void 0:a.validate)||void 0===e||e.call(a,"change"))})),(0,r.watch)((function(){return n.value}),(function(){p.value=!1}));var d=function(e){if(e.stopPropagation(),e.preventDefault(),!n.disabled&&!s.value){var o=l.value?n.falseValue:n.trueValue,r=!l.value,t=function(){i("update:modelValue",o),i("change",r)},u=!0;if("function"==typeof n.beforeChange&&"function"==typeof(u=n.beforeChange(o)).then)return s.value=!0,u.then((function(){t()})).finally((function(){s.value=!1}));u&&t()}},y=function(e){"Enter"!==e.code&&"Enter"!==e.key&&13!==e.keyCode||d(e)};return function(){return(0,r.createVNode)("div",{class:c.value,onClick:d,tabindex:"0",onKeydown:y},[s.value?(0,r.createVNode)(t.SwitcherLoading,{class:"bk-switcher-loading"},null):"",n.showText?(0,r.createVNode)("span",{class:"switcher-text"},[l.value?n.onText:n.offText]):""])}}}),a=(0,e.withInstall)(n)})(),i})()));
@@ -1,8 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- theme: import("vue-types").VueTypeDef<string> & {
3
- default: string;
4
- };
5
- size: import("vue-types").VueTypeDef<string>;
2
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
3
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
6
4
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
7
5
  default: boolean;
8
6
  };
@@ -51,10 +49,8 @@ declare const _default: import("vue").DefineComponent<{
51
49
  default: boolean;
52
50
  };
53
51
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
54
- theme: import("vue-types").VueTypeDef<string> & {
55
- default: string;
56
- };
57
- size: import("vue-types").VueTypeDef<string>;
52
+ theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
53
+ size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
58
54
  disabled: import("vue-types").VueTypeValidableDef<boolean> & {
59
55
  default: boolean;
60
56
  };
@@ -106,7 +102,6 @@ declare const _default: import("vue").DefineComponent<{
106
102
  onChange?: (...args: any[]) => any;
107
103
  "onUpdate:modelValue"?: (...args: any[]) => any;
108
104
  }, {
109
- theme: string;
110
105
  extCls: string;
111
106
  disabled: boolean;
112
107
  value: string | number | boolean;