bkui-vue 0.0.1-beta.10 → 0.0.1-beta.14

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 (240) hide show
  1. package/dist/bkui-vue.cjs.js +5628 -472
  2. package/dist/bkui-vue.esm.js +5620 -474
  3. package/dist/bkui-vue.umd.js +5628 -472
  4. package/dist/style.css +1858 -16
  5. package/lib/alert/alert.variable.css +16 -0
  6. package/lib/alert/index.js +1 -1
  7. package/lib/animate-number/index.js +1 -1
  8. package/lib/backtop/backtop.variable.css +16 -0
  9. package/lib/backtop/index.js +1 -1
  10. package/lib/badge/badge.variable.css +16 -0
  11. package/lib/badge/index.js +1 -1
  12. package/lib/breadcrumb/breadcrumb.variable.css +16 -0
  13. package/lib/breadcrumb/index.d.ts +1 -1
  14. package/lib/breadcrumb/index.js +1 -1
  15. package/lib/button/button.d.ts +12 -12
  16. package/lib/button/button.less +6 -6
  17. package/lib/button/button.variable.css +16 -0
  18. package/lib/button/index.d.ts +16 -19
  19. package/lib/button/index.js +1 -1
  20. package/lib/card/card.variable.css +16 -0
  21. package/lib/card/index.js +1 -1
  22. package/lib/checkbox/checkbox.variable.css +16 -0
  23. package/lib/checkbox/index.d.ts +1 -1
  24. package/lib/checkbox/index.js +1 -1
  25. package/lib/checkbox/type.d.ts +1 -1
  26. package/lib/collapse/collapse.css +8 -0
  27. package/lib/collapse/collapse.less +10 -0
  28. package/lib/collapse/collapse.variable.css +8 -0
  29. package/lib/collapse/index.js +1 -1
  30. package/lib/components.d.ts +6 -1
  31. package/lib/date-picker/date-picker.css +407 -0
  32. package/lib/date-picker/date-picker.d.ts +357 -0
  33. package/lib/date-picker/date-picker.less +526 -0
  34. package/lib/date-picker/date-picker.variable.css +493 -0
  35. package/lib/date-picker/fecha.d.ts +6 -0
  36. package/lib/date-picker/index.d.ts +525 -0
  37. package/lib/date-picker/index.js +1 -0
  38. package/lib/date-picker/interface.d.ts +22 -0
  39. package/lib/date-picker/utils.d.ts +97 -0
  40. package/lib/dialog/index.js +1 -1
  41. package/lib/directives/index.d.ts +1 -0
  42. package/lib/directives/index.js +14 -14
  43. package/lib/directives/tooltips.d.ts +17 -0
  44. package/lib/divider/divider.css +38 -0
  45. package/lib/divider/divider.d.ts +40 -0
  46. package/lib/divider/divider.less +53 -0
  47. package/lib/divider/divider.variable.css +124 -0
  48. package/lib/divider/index.d.ts +110 -0
  49. package/lib/divider/index.js +1 -0
  50. package/lib/dropdown/dropdown-item.d.ts +18 -0
  51. package/lib/dropdown/dropdown-menu.d.ts +15 -0
  52. package/lib/dropdown/dropdown.css +43 -0
  53. package/lib/dropdown/dropdown.d.ts +49 -0
  54. package/lib/dropdown/dropdown.less +54 -0
  55. package/lib/dropdown/dropdown.variable.css +129 -0
  56. package/lib/dropdown/index.d.ts +160 -0
  57. package/lib/dropdown/index.js +1 -0
  58. package/lib/exception/exception.variable.css +16 -0
  59. package/lib/exception/index.js +1 -1
  60. package/lib/fixed-navbar/fixed-navbar.variable.css +16 -0
  61. package/lib/fixed-navbar/index.js +1 -1
  62. package/lib/form/common.d.ts +3 -0
  63. package/lib/form/form-item.d.ts +140 -0
  64. package/lib/form/form.css +39 -0
  65. package/lib/form/form.d.ts +76 -0
  66. package/lib/form/form.less +50 -0
  67. package/lib/form/form.variable.css +39 -0
  68. package/lib/form/index.d.ts +4 -0
  69. package/lib/form/index.js +1 -0
  70. package/lib/form/type.d.ts +21 -0
  71. package/lib/form/validator.d.ts +8 -0
  72. package/lib/icon/angle-double-left.d.ts +4 -0
  73. package/lib/icon/angle-double-right.d.ts +4 -0
  74. package/lib/icon/angle-down-line.d.ts +4 -0
  75. package/lib/icon/angle-down.d.ts +4 -0
  76. package/lib/icon/angle-left.d.ts +4 -0
  77. package/lib/icon/angle-right.d.ts +4 -0
  78. package/lib/icon/circle.d.ts +4 -0
  79. package/lib/icon/code.d.ts +4 -0
  80. package/lib/icon/cog-shape.d.ts +4 -0
  81. package/lib/icon/collapse-left.d.ts +4 -0
  82. package/lib/icon/copy.d.ts +4 -0
  83. package/lib/icon/done.d.ts +4 -0
  84. package/lib/icon/down-shape.d.ts +4 -0
  85. package/lib/icon/error.d.ts +4 -0
  86. package/lib/icon/folder-open.d.ts +4 -0
  87. package/lib/icon/folder-shape-open.d.ts +4 -0
  88. package/lib/icon/folder-shape.d.ts +4 -0
  89. package/lib/icon/folder.d.ts +4 -0
  90. package/lib/icon/index.d.ts +27 -0
  91. package/lib/icon/index.js +1 -1
  92. package/lib/icon/info.d.ts +4 -0
  93. package/lib/icon/play-shape.d.ts +4 -0
  94. package/lib/icon/plus.d.ts +4 -0
  95. package/lib/icon/right-shape.d.ts +4 -0
  96. package/lib/icon/share.d.ts +4 -0
  97. package/lib/icon/success.d.ts +4 -0
  98. package/lib/icon/text-file.d.ts +4 -0
  99. package/lib/icon/tree-application-shape.d.ts +4 -0
  100. package/lib/icon/warn.d.ts +4 -0
  101. package/lib/index.d.ts +1 -0
  102. package/lib/input/index.d.ts +36 -36
  103. package/lib/input/index.js +1 -1
  104. package/lib/input/input.d.ts +10 -10
  105. package/lib/input/input.variable.css +16 -0
  106. package/lib/link/index.js +1 -1
  107. package/lib/link/link.variable.css +16 -0
  108. package/lib/loading/index.d.ts +21 -4
  109. package/lib/loading/index.js +1 -1
  110. package/lib/loading/loading.d.ts +13 -2
  111. package/lib/loading/loading.variable.css +16 -0
  112. package/lib/menu/index.d.ts +169 -0
  113. package/lib/menu/index.js +1 -0
  114. package/lib/menu/menu-group.d.ts +13 -0
  115. package/lib/menu/menu-item.d.ts +15 -0
  116. package/lib/menu/menu.css +182 -0
  117. package/lib/menu/menu.d.ts +60 -0
  118. package/lib/menu/menu.less +180 -0
  119. package/lib/menu/menu.variable.css +268 -0
  120. package/lib/menu/submenu.d.ts +21 -0
  121. package/lib/menu/submenu.less +5 -0
  122. package/lib/menu/submenu.variable.css +86 -0
  123. package/lib/menu/utils.d.ts +41 -0
  124. package/lib/message/index.d.ts +1 -1
  125. package/lib/message/index.js +1 -1
  126. package/lib/message/message.css +17 -0
  127. package/lib/message/message.less +18 -0
  128. package/lib/message/message.variable.css +33 -0
  129. package/lib/message/messageConstructor.d.ts +12 -6
  130. package/lib/modal/index.js +1 -1
  131. package/lib/navigation/index.d.ts +2 -0
  132. package/lib/navigation/index.js +1 -0
  133. package/lib/navigation/navigation-title.d.ts +22 -0
  134. package/lib/navigation/navigation.css +184 -0
  135. package/lib/navigation/navigation.d.ts +94 -0
  136. package/lib/navigation/navigation.less +210 -0
  137. package/lib/navigation/navigation.variable.css +270 -0
  138. package/lib/notify/index.d.ts +2 -0
  139. package/lib/notify/index.js +1 -0
  140. package/lib/notify/notify.css +49 -0
  141. package/lib/notify/notify.less +58 -0
  142. package/lib/notify/notify.variable.css +135 -0
  143. package/lib/notify/notifyConstructor.d.ts +75 -0
  144. package/lib/popover/index.d.ts +19 -19
  145. package/lib/popover/index.js +1 -1
  146. package/lib/popover/popover.css +2 -3
  147. package/lib/popover/popover.d.ts +8 -8
  148. package/lib/popover/popover.less +2 -3
  149. package/lib/popover/popover.variable.css +18 -3
  150. package/lib/preset.d.ts +2 -3
  151. package/lib/process/index.d.ts +145 -0
  152. package/lib/process/index.js +15 -0
  153. package/lib/process/process.css +139 -0
  154. package/lib/process/process.d.ts +116 -0
  155. package/lib/process/process.less +179 -0
  156. package/lib/process/process.variable.css +225 -0
  157. package/lib/progress/index.d.ts +4 -4
  158. package/lib/progress/index.js +1 -1
  159. package/lib/progress/progress.d.ts +1 -1
  160. package/lib/progress/progress.variable.css +16 -0
  161. package/lib/radio/index.d.ts +2 -2
  162. package/lib/radio/index.js +1 -1
  163. package/lib/radio/radio.css +6 -0
  164. package/lib/radio/radio.less +7 -0
  165. package/lib/radio/radio.variable.css +22 -0
  166. package/lib/rate/index.js +1 -1
  167. package/lib/rate/star.d.ts +2 -2
  168. package/lib/select/common.d.ts +4 -3
  169. package/lib/select/index.d.ts +211 -60
  170. package/lib/select/index.js +15 -1
  171. package/lib/select/option.d.ts +2 -2
  172. package/lib/select/optionGroup.d.ts +115 -0
  173. package/lib/select/select.css +52 -12
  174. package/lib/select/select.d.ts +24 -21
  175. package/lib/select/select.less +73 -7
  176. package/lib/select/select.variable.css +68 -12
  177. package/lib/shared/bk-popover.d.ts +11 -1
  178. package/lib/shared/index.d.ts +7 -0
  179. package/lib/shared/index.js +1 -1
  180. package/lib/shared/vue-types.d.ts +1 -0
  181. package/lib/shared/z-index-manager.d.ts +6 -1
  182. package/lib/sideslider/index.js +1 -1
  183. package/lib/sideslider/sideslider.variable.css +16 -0
  184. package/lib/slider/index.d.ts +27 -0
  185. package/lib/slider/index.js +15 -0
  186. package/lib/slider/slider-button.d.ts +72 -0
  187. package/lib/slider/slider.css +149 -0
  188. package/lib/slider/slider.d.ts +159 -0
  189. package/lib/slider/slider.less +179 -0
  190. package/lib/slider/slider.variable.css +235 -0
  191. package/lib/steps/index.d.ts +15 -15
  192. package/lib/steps/index.js +2 -2
  193. package/lib/steps/steps.css +1 -1
  194. package/lib/steps/steps.d.ts +4 -4
  195. package/lib/steps/steps.less +1 -1
  196. package/lib/steps/steps.variable.css +17 -1
  197. package/lib/styles/index.d.ts +12 -0
  198. package/lib/styles/index.js +1 -1
  199. package/lib/styles/mixins/popper.css +43 -0
  200. package/lib/styles/mixins/popper.less +52 -0
  201. package/lib/styles/mixins/popper.variable.css +43 -0
  202. package/lib/styles/mixins/size.less +9 -0
  203. package/lib/styles/reset.css +273 -0
  204. package/lib/styles/reset.less +313 -0
  205. package/lib/styles/reset.variable.css +273 -0
  206. package/lib/styles/themes/themes.less +26 -1
  207. package/lib/switcher/index.js +1 -1
  208. package/lib/switcher/switcher.variable.css +16 -0
  209. package/lib/tab/index.d.ts +416 -0
  210. package/lib/tab/index.js +1 -0
  211. package/lib/tab/tab-nav.d.ts +154 -0
  212. package/lib/tab/tab-panel.d.ts +46 -0
  213. package/lib/tab/tab.css +147 -0
  214. package/lib/tab/tab.d.ts +131 -0
  215. package/lib/tab/tab.less +221 -0
  216. package/lib/tab/tab.variable.css +233 -0
  217. package/lib/table/index.d.ts +71 -60
  218. package/lib/table/index.js +1 -1
  219. package/lib/table/props.d.ts +41 -0
  220. package/lib/table/render.d.ts +47 -0
  221. package/lib/table/table.css +44 -0
  222. package/lib/table/table.d.ts +22 -63
  223. package/lib/table/table.less +63 -1
  224. package/lib/table/table.variable.css +60 -0
  225. package/lib/table/utils.d.ts +22 -0
  226. package/lib/tag/index.js +1 -1
  227. package/lib/tag/tag.variable.css +16 -0
  228. package/lib/tree/index.d.ts +149 -0
  229. package/lib/tree/index.js +1 -0
  230. package/lib/tree/tree.css +35 -0
  231. package/lib/tree/tree.d.ts +58 -0
  232. package/lib/tree/tree.less +55 -0
  233. package/lib/tree/tree.variable.css +35 -0
  234. package/lib/tree/util.d.ts +89 -0
  235. package/lib/use-message.d.ts +2 -0
  236. package/package.json +9 -1
  237. package/lib/message/message.d.ts +0 -2
  238. package/lib/table/common.d.ts +0 -3
  239. package/lib/table/table-layout.d.ts +0 -14
  240. package/lib/table/type.d.ts +0 -12
@@ -8,14 +8,13 @@ declare const BkPopover: {
8
8
  $props: Partial<{
9
9
  placement: string;
10
10
  modifiers: unknown[];
11
- onFirstUpdate: (...args: any[]) => any;
12
11
  width: string | number;
13
12
  height: string | number;
14
13
  theme: string;
15
14
  content: string | number;
16
- isShow: boolean;
17
15
  trigger: string;
18
16
  arrow: boolean;
17
+ isShow: boolean;
19
18
  }> & Omit<Readonly<{
20
19
  isShow?: unknown;
21
20
  width?: unknown;
@@ -23,10 +22,10 @@ declare const BkPopover: {
23
22
  content?: unknown;
24
23
  placement?: unknown;
25
24
  theme?: unknown;
25
+ handleFirstUpdate?: unknown;
26
26
  trigger?: unknown;
27
27
  arrow?: unknown;
28
28
  modifiers?: unknown;
29
- onFirstUpdate?: unknown;
30
29
  } & {
31
30
  placement: string;
32
31
  modifiers: unknown[];
@@ -34,12 +33,12 @@ declare const BkPopover: {
34
33
  height: string | number;
35
34
  theme: string;
36
35
  content: string | number;
37
- isShow: boolean;
38
36
  trigger: string;
39
37
  arrow: boolean;
38
+ isShow: boolean;
40
39
  } & {
41
- onFirstUpdate?: (...args: any[]) => any;
42
- }> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "modifiers" | "onFirstUpdate" | "width" | "height" | "theme" | "content" | "isShow" | "trigger" | "arrow">;
40
+ handleFirstUpdate?: import("@bkui-vue/shared").OnFirstUpdateFnType;
41
+ }> & {} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "modifiers" | "width" | "height" | "theme" | "content" | "trigger" | "arrow" | "isShow">;
43
42
  $attrs: {
44
43
  [x: string]: unknown;
45
44
  };
@@ -60,10 +59,10 @@ declare const BkPopover: {
60
59
  content?: unknown;
61
60
  placement?: unknown;
62
61
  theme?: unknown;
62
+ handleFirstUpdate?: unknown;
63
63
  trigger?: unknown;
64
64
  arrow?: unknown;
65
65
  modifiers?: unknown;
66
- onFirstUpdate?: unknown;
67
66
  } & {
68
67
  placement: string;
69
68
  modifiers: unknown[];
@@ -71,15 +70,16 @@ declare const BkPopover: {
71
70
  height: string | number;
72
71
  theme: string;
73
72
  content: string | number;
74
- isShow: boolean;
75
73
  trigger: string;
76
74
  arrow: boolean;
75
+ isShow: boolean;
77
76
  } & {
78
- onFirstUpdate?: (...args: any[]) => any;
77
+ handleFirstUpdate?: import("@bkui-vue/shared").OnFirstUpdateFnType;
79
78
  }> & {}, {
80
79
  compStyle: import("vue").ComputedRef<{
81
80
  width: any;
82
81
  height: any;
82
+ zIndex: number;
83
83
  }>;
84
84
  }, {
85
85
  popoverInstance: any;
@@ -89,14 +89,13 @@ declare const BkPopover: {
89
89
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
90
90
  placement: string;
91
91
  modifiers: unknown[];
92
- onFirstUpdate: (...args: any[]) => any;
93
92
  width: string | number;
94
93
  height: string | number;
95
94
  theme: string;
96
95
  content: string | number;
97
- isShow: boolean;
98
96
  trigger: string;
99
97
  arrow: boolean;
98
+ isShow: boolean;
100
99
  }> & {
101
100
  beforeCreate?: (() => void) | (() => void)[];
102
101
  created?: (() => void) | (() => void)[];
@@ -124,10 +123,10 @@ declare const BkPopover: {
124
123
  content?: unknown;
125
124
  placement?: unknown;
126
125
  theme?: unknown;
126
+ handleFirstUpdate?: unknown;
127
127
  trigger?: unknown;
128
128
  arrow?: unknown;
129
129
  modifiers?: unknown;
130
- onFirstUpdate?: unknown;
131
130
  } & {
132
131
  placement: string;
133
132
  modifiers: unknown[];
@@ -135,15 +134,16 @@ declare const BkPopover: {
135
134
  height: string | number;
136
135
  theme: string;
137
136
  content: string | number;
138
- isShow: boolean;
139
137
  trigger: string;
140
138
  arrow: boolean;
139
+ isShow: boolean;
141
140
  } & {
142
- onFirstUpdate?: (...args: any[]) => any;
141
+ handleFirstUpdate?: import("@bkui-vue/shared").OnFirstUpdateFnType;
143
142
  }> & {} & import("vue").ShallowUnwrapRef<{
144
143
  compStyle: import("vue").ComputedRef<{
145
144
  width: any;
146
145
  height: any;
146
+ zIndex: number;
147
147
  }>;
148
148
  }> & {
149
149
  popoverInstance: any;
@@ -161,10 +161,10 @@ declare const BkPopover: {
161
161
  content?: unknown;
162
162
  placement?: unknown;
163
163
  theme?: unknown;
164
+ handleFirstUpdate?: unknown;
164
165
  trigger?: unknown;
165
166
  arrow?: unknown;
166
167
  modifiers?: unknown;
167
- onFirstUpdate?: unknown;
168
168
  } & {
169
169
  placement: string;
170
170
  modifiers: unknown[];
@@ -172,15 +172,16 @@ declare const BkPopover: {
172
172
  height: string | number;
173
173
  theme: string;
174
174
  content: string | number;
175
- isShow: boolean;
176
175
  trigger: string;
177
176
  arrow: boolean;
177
+ isShow: boolean;
178
178
  } & {
179
- onFirstUpdate?: (...args: any[]) => any;
179
+ handleFirstUpdate?: import("@bkui-vue/shared").OnFirstUpdateFnType;
180
180
  }> & {}, {
181
181
  compStyle: import("vue").ComputedRef<{
182
182
  width: any;
183
183
  height: any;
184
+ zIndex: number;
184
185
  }>;
185
186
  }, {
186
187
  popoverInstance: any;
@@ -190,13 +191,12 @@ declare const BkPopover: {
190
191
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
191
192
  placement: string;
192
193
  modifiers: unknown[];
193
- onFirstUpdate: (...args: any[]) => any;
194
194
  width: string | number;
195
195
  height: string | number;
196
196
  theme: string;
197
197
  content: string | number;
198
- isShow: boolean;
199
198
  trigger: string;
200
199
  arrow: boolean;
200
+ isShow: boolean;
201
201
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
202
202
  export default BkPopover;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,o){"use strict";var n=t.defineComponent({name:"BkPopover",props:{isShow:o.PropTypes.bool,width:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),height:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),content:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def(""),placement:o.PropTypes.placement().def("top"),theme:o.PropTypes.theme(["dark","light"]).def("light"),trigger:o.PropTypes.string.def("hover"),arrow:o.PropTypes.bool.def(!0),modifiers:o.PropTypes.array.def([]),onFirstUpdate:o.PropTypes.func},data:function(){return{popoverInstance:Object.create(null),isPopInstance:!1}},watch:{isShow:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(){"manual"===t.trigger&&t.isPopInstance&&(e?t.popoverInstance.show():t.popoverInstance.hide())}))}}},mounted:function(){var e=this;this.$nextTick((function(){e.popoverInstance=new o.BKPopover(e.$refs.reference,e.$refs.refContent,{theme:e.theme,placement:e.placement,trigger:e.trigger,modifiers:e.modifiers,onFirstUpdate:e.onFirstUpdate}),e.isPopInstance=!0}))},beforeUnmount:function(){var e=this.popoverInstance;e.isShow&&e.hide(),e.destroy(),this.popoverInstance=Object.create(null)},methods:{handleClose:function(){this.$emit("update:isShow",!1)}},setup:function(e){var o=t.toRefs(e),n=o.width,r=o.height;return{compStyle:t.computed((function(){return{width:/^\d+$/.test(n.value)?"".concat(n.value,"px"):n.value,height:/^\d+$/.test(r.value)?"".concat(r.value,"px"):r.value}}))}},render:function(){var e,o,n,r,s;return t.createVNode("div",{class:"bk-popover"},[t.createVNode("div",{ref:"reference",class:"bk-popover-reference"},[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e)]),t.createVNode("div",{ref:"refContent",class:"bk-popover-content",style:this.compStyle},[null!==(s=null===(r=(n=this.$slots).content)||void 0===r?void 0:r.call(n))&&void 0!==s?s:this.content,this.arrow&&t.createVNode("div",{class:"arrow","data-popper-arrow":!0},null)])])}}),r=o.withInstall(n);e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,t,o){"use strict";var n=t.defineComponent({name:"Popover",props:{isShow:o.PropTypes.bool,width:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),height:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),content:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def(""),placement:o.PropTypes.placement().def("top"),theme:o.PropTypes.theme(["dark","light"]).def("light"),handleFirstUpdate:Function,trigger:o.PropTypes.string.def("hover"),arrow:o.PropTypes.bool.def(!0),modifiers:o.PropTypes.array.def([{name:"offset",options:{offset:[0,8]}}])},data:function(){return{popoverInstance:Object.create(null),isPopInstance:!1}},watch:{isShow:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(){"manual"===t.trigger&&t.isPopInstance&&(e?t.popoverInstance.show():t.popoverInstance.hide())}))}}},mounted:function(){var e=this;this.$nextTick((function(){e.popoverInstance=new o.BKPopover(e.$refs.reference,e.$refs.refContent,{theme:e.theme,placement:e.placement,trigger:e.trigger,modifiers:e.modifiers,onFirstUpdate:e.handleFirstUpdate}),e.isPopInstance=!0}))},beforeUnmount:function(){var e=this.popoverInstance;e.isShow&&e.hide(),e.destroy(),this.popoverInstance=Object.create(null)},methods:{handleClose:function(){this.$emit("update:isShow",!1)}},setup:function(e){var n=t.toRefs(e),r=n.width,s=n.height;return{compStyle:t.computed((function(){return{width:/^\d+$/.test(r.value)?"".concat(r.value,"px"):r.value,height:/^\d+$/.test(s.value)?"".concat(s.value,"px"):s.value,zIndex:o.bkZIndexManager.getModalNextIndex()}}))}},render:function(){var e,o,n,r,s;return t.createVNode("div",{class:"bk-popover"},[t.createVNode("div",{ref:"reference",class:"bk-popover-reference"},[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e)]),t.createVNode("div",{ref:"refContent",class:"bk-popover-content",style:this.compStyle},[null!==(s=null===(r=(n=this.$slots).content)||void 0===r?void 0:r.call(n))&&void 0!==s?s:this.content,this.arrow&&t.createVNode("div",{class:"arrow","data-popper-arrow":!0},null)])])}}),r=o.withInstall(n);e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -3,9 +3,8 @@
3
3
  }
4
4
  .bk-popover .bk-popover-content {
5
5
  display: none;
6
- padding: 4px 8px;
7
- font-size: 13px;
8
- font-weight: bold;
6
+ padding: 7px 14px;
7
+ font-size: 12px;
9
8
  color: #fff;
10
9
  background: #26323d;
11
10
  border-radius: 4px;
@@ -1,3 +1,5 @@
1
+ import { PropType } from 'vue';
2
+ import { OnFirstUpdateFnType } from '@bkui-vue/shared';
1
3
  declare const _default: import("vue").DefineComponent<{
2
4
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
3
5
  default: boolean;
@@ -17,6 +19,7 @@ declare const _default: import("vue").DefineComponent<{
17
19
  theme: import("vue-types").VueTypeDef<string> & {
18
20
  default: string;
19
21
  };
22
+ handleFirstUpdate: PropType<OnFirstUpdateFnType>;
20
23
  /**
21
24
  * 触发方式
22
25
  * 支持 click hover manual
@@ -37,13 +40,11 @@ declare const _default: import("vue").DefineComponent<{
37
40
  } & {
38
41
  default: () => unknown[];
39
42
  };
40
- onFirstUpdate: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
41
- default: (...args: any[]) => any;
42
- };
43
43
  }, {
44
44
  compStyle: import("vue").ComputedRef<{
45
45
  width: any;
46
46
  height: any;
47
+ zIndex: number;
47
48
  }>;
48
49
  }, {
49
50
  popoverInstance: any;
@@ -57,10 +58,10 @@ declare const _default: import("vue").DefineComponent<{
57
58
  content?: unknown;
58
59
  placement?: unknown;
59
60
  theme?: unknown;
61
+ handleFirstUpdate?: unknown;
60
62
  trigger?: unknown;
61
63
  arrow?: unknown;
62
64
  modifiers?: unknown;
63
- onFirstUpdate?: unknown;
64
65
  } & {
65
66
  placement: string;
66
67
  modifiers: unknown[];
@@ -68,21 +69,20 @@ declare const _default: import("vue").DefineComponent<{
68
69
  height: string | number;
69
70
  theme: string;
70
71
  content: string | number;
71
- isShow: boolean;
72
72
  trigger: string;
73
73
  arrow: boolean;
74
+ isShow: boolean;
74
75
  } & {
75
- onFirstUpdate?: (...args: any[]) => any;
76
+ handleFirstUpdate?: OnFirstUpdateFnType;
76
77
  }> & {}, {
77
78
  placement: string;
78
79
  modifiers: unknown[];
79
- onFirstUpdate: (...args: any[]) => any;
80
80
  width: string | number;
81
81
  height: string | number;
82
82
  theme: string;
83
83
  content: string | number;
84
- isShow: boolean;
85
84
  trigger: string;
86
85
  arrow: boolean;
86
+ isShow: boolean;
87
87
  }>;
88
88
  export default _default;
@@ -7,9 +7,8 @@
7
7
 
8
8
  .bk-popover-content {
9
9
  display: none;
10
- padding: 4px 8px;
11
- font-size: 13px;
12
- font-weight: bold;
10
+ padding: 7px 14px;
11
+ font-size: 12px;
13
12
  color: #fff;
14
13
  background: #26323d;
15
14
  border-radius: 4px;
@@ -5,6 +5,7 @@
5
5
  --warning-color: #ff9c01;
6
6
  --danger-color: #ea3636;
7
7
  --default-color: #63656e;
8
+ --gray-color: #979ba5;
8
9
  --light-gray: #c4c6cc;
9
10
  --white-color: white;
10
11
  --disable-color: #dcdee5;
@@ -67,15 +68,29 @@
67
68
  --message-success-border-color: #dcffe2;
68
69
  --message-danger-bg-color: #ffeded;
69
70
  --message-danger-border-color: #ffdddd;
71
+ --slider-default-bg: #dcdee5;
72
+ --slider-disable-bar-bg: #979ba5;
73
+ --menu-bg-color: #182132;
74
+ --submenu-bg-color: #151d2c;
75
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
76
+ --menu-color: #96a2b9;
77
+ --menu-group-color: var(--default-color);
78
+ --menu-width: 260px;
79
+ --menu-collapse-width: 60px;
80
+ --menu-active-color: white;
81
+ --nav-header-bg-color: #182132;
82
+ --nav-bg-color: #182132;
83
+ --date-picker-disabled-bg: #fafbfd;
84
+ --date-picker-dropdown-mb: 4px;
85
+ --date-picker-dropdown-bg: #fff;
70
86
  }
71
87
  .bk-popover .bk-popover-reference {
72
88
  display: inline-block;
73
89
  }
74
90
  .bk-popover .bk-popover-content {
75
91
  display: none;
76
- padding: 4px 8px;
77
- font-size: 13px;
78
- font-weight: bold;
92
+ padding: 7px 14px;
93
+ font-size: 12px;
79
94
  color: #fff;
80
95
  background: #26323d;
81
96
  border-radius: 4px;
package/lib/preset.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import { App } from 'vue';
2
2
  declare const _default: {
3
- createInstall: (prefix?: string) => (app: App<any>) => App<any>[];
4
- componentPrefix: string;
5
- install: (app: App<any>) => App<any>[];
3
+ createInstall: (prefix?: string) => (app: App<any>) => void;
4
+ install: (app: App<any>) => void;
6
5
  version: string;
7
6
  };
8
7
  export default _default;
@@ -0,0 +1,145 @@
1
+ declare const BkSteps: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ list: unknown[];
7
+ extCls: string;
8
+ controllable: boolean;
9
+ showSteps: boolean;
10
+ curProcess: number;
11
+ displayKey: string;
12
+ }> & Omit<Readonly<{
13
+ list?: unknown;
14
+ controllable?: unknown;
15
+ showSteps?: unknown;
16
+ curProcess?: unknown;
17
+ displayKey?: unknown;
18
+ extCls?: unknown;
19
+ } & {
20
+ list: unknown[];
21
+ extCls: string;
22
+ controllable: boolean;
23
+ showSteps: boolean;
24
+ curProcess: number;
25
+ displayKey: string;
26
+ } & {}> & {
27
+ onClick?: (...args: any[]) => any;
28
+ "onUpdate:curProcess"?: (...args: any[]) => any;
29
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "list" | "extCls" | "controllable" | "showSteps" | "curProcess" | "displayKey">;
30
+ $attrs: {
31
+ [x: string]: unknown;
32
+ };
33
+ $refs: {
34
+ [x: string]: unknown;
35
+ };
36
+ $slots: Readonly<{
37
+ [name: string]: import("vue").Slot;
38
+ }>;
39
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
40
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
41
+ $emit: (event: "click" | "update:curProcess", ...args: any[]) => void;
42
+ $el: any;
43
+ $options: import("vue").ComponentOptionsBase<Readonly<{
44
+ list?: unknown;
45
+ controllable?: unknown;
46
+ showSteps?: unknown;
47
+ curProcess?: unknown;
48
+ displayKey?: unknown;
49
+ extCls?: unknown;
50
+ } & {
51
+ list: unknown[];
52
+ extCls: string;
53
+ controllable: boolean;
54
+ showSteps: boolean;
55
+ curProcess: number;
56
+ displayKey: string;
57
+ } & {}> & {
58
+ onClick?: (...args: any[]) => any;
59
+ "onUpdate:curProcess"?: (...args: any[]) => any;
60
+ }, {
61
+ defaultProcessList: import("vue").Ref<any[]>;
62
+ paddingBottom: import("vue").Ref<number>;
63
+ jumpTo: (index: any) => Promise<void>;
64
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], string, {
65
+ list: unknown[];
66
+ extCls: string;
67
+ controllable: boolean;
68
+ showSteps: boolean;
69
+ curProcess: number;
70
+ displayKey: string;
71
+ }> & {
72
+ beforeCreate?: (() => void) | (() => void)[];
73
+ created?: (() => void) | (() => void)[];
74
+ beforeMount?: (() => void) | (() => void)[];
75
+ mounted?: (() => void) | (() => void)[];
76
+ beforeUpdate?: (() => void) | (() => void)[];
77
+ updated?: (() => void) | (() => void)[];
78
+ activated?: (() => void) | (() => void)[];
79
+ deactivated?: (() => void) | (() => void)[];
80
+ beforeDestroy?: (() => void) | (() => void)[];
81
+ beforeUnmount?: (() => void) | (() => void)[];
82
+ destroyed?: (() => void) | (() => void)[];
83
+ unmounted?: (() => void) | (() => void)[];
84
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
85
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
86
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
87
+ };
88
+ $forceUpdate: () => void;
89
+ $nextTick: typeof import("vue").nextTick;
90
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
91
+ } & Readonly<{
92
+ list?: unknown;
93
+ controllable?: unknown;
94
+ showSteps?: unknown;
95
+ curProcess?: unknown;
96
+ displayKey?: unknown;
97
+ extCls?: unknown;
98
+ } & {
99
+ list: unknown[];
100
+ extCls: string;
101
+ controllable: boolean;
102
+ showSteps: boolean;
103
+ curProcess: number;
104
+ displayKey: string;
105
+ } & {}> & {
106
+ onClick?: (...args: any[]) => any;
107
+ "onUpdate:curProcess"?: (...args: any[]) => any;
108
+ } & import("vue").ShallowUnwrapRef<{
109
+ defaultProcessList: import("vue").Ref<any[]>;
110
+ paddingBottom: import("vue").Ref<number>;
111
+ jumpTo: (index: any) => Promise<void>;
112
+ }> & {} & {} & import("vue").ComponentCustomProperties;
113
+ __isFragment?: never;
114
+ __isTeleport?: never;
115
+ __isSuspense?: never;
116
+ } & import("vue").ComponentOptionsBase<Readonly<{
117
+ list?: unknown;
118
+ controllable?: unknown;
119
+ showSteps?: unknown;
120
+ curProcess?: unknown;
121
+ displayKey?: unknown;
122
+ extCls?: unknown;
123
+ } & {
124
+ list: unknown[];
125
+ extCls: string;
126
+ controllable: boolean;
127
+ showSteps: boolean;
128
+ curProcess: number;
129
+ displayKey: string;
130
+ } & {}> & {
131
+ onClick?: (...args: any[]) => any;
132
+ "onUpdate:curProcess"?: (...args: any[]) => any;
133
+ }, {
134
+ defaultProcessList: import("vue").Ref<any[]>;
135
+ paddingBottom: import("vue").Ref<number>;
136
+ jumpTo: (index: any) => Promise<void>;
137
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], "click" | "update:curProcess", {
138
+ list: unknown[];
139
+ extCls: string;
140
+ controllable: boolean;
141
+ showSteps: boolean;
142
+ curProcess: number;
143
+ displayKey: string;
144
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
145
+ export default BkSteps;
@@ -0,0 +1,15 @@
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue"),require("../shared"),require("@bkui-vue/icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","@bkui-vue/icon"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bkuiVue={},t.Vue,t.Shared,t["@bkui-vue/icon/icons"])}(this,(function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0}(i);var a=o(i.exports),c={exports:{}},s={exports:{}},u={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.default=t.exports,t.exports.__esModule=!0}(u),function(t){var e=u.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.default=t.exports,t.exports.__esModule=!0}(s);var l={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0}(l);var f={exports:{}};!function(t){var e=u.exports;t.exports=function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0}(f);var p={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}(p),function(t){var e=s.exports,r=l.exports,n=f.exports,o=p.exports;t.exports=function(t){return e(t)||r(t)||n(t)||o()},t.exports.default=t.exports,t.exports.__esModule=!0}(c);var h=o(c.exports),d={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=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),a=new O(n||[]);return i._invoke=function(t,e,r){var n=f;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 a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)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:p,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,a),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 f="suspendedStart",p="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function x(){}var m={};s(m,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==r&&n.call(w,i)&&(m=w);var _=x.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(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 E(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,E(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 j(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(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,a=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 a.next=a}}return{next:N}}function N(){return{value:e,done:!0}}return g.prototype=x,s(_,"constructor",x),s(x,"constructor",g),g.displayName=s(x,c,"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,x):(t.__proto__=x,s(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},L(P.prototype),s(P.prototype,a,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(_),s(_,c,"Generator"),s(_,i,(function(){return this})),s(_,"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=T,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(k),!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 c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.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 a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},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),k(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;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(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)}}(d);var y=d.exports;
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function v(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(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(a,c)}s((n=n.apply(t,e||[])).next())}))}var g={list:r.PropTypes.array.def([]),controllable:r.PropTypes.bool.def(!1),showSteps:r.PropTypes.bool.def(!1),curProcess:r.PropTypes.number.def(0),displayKey:r.PropTypes.string.def("content"),extCls:r.PropTypes.string},x=e.defineComponent({name:"BKProcess",props:g,emits:["update:curProcess","click"],setup:function(t,r){var n=this,o=r.emit,i=e.ref([]),a=e.ref(0);return e.onMounted((function(){var e,r,n;((e=i.value).splice.apply(e,[0,i.value.length].concat([{content:"步骤1"},{content:"步骤2"},{content:"步骤3"},{content:"步骤4"},{content:"步骤5"}])),console.log("props.list",t.list),null===(r=t.list)||void 0===r?void 0:r.length)&&(n=i.value).splice.apply(n,[0,i.value.length].concat(h(t.list)))})),{defaultProcessList:i,paddingBottom:a,jumpTo:function(e){return v(n,void 0,void 0,y.mark((function r(){return y.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:console.log(e);try{t.controllable&&e!==t.curProcess&&(console.log(t.curProcess),o("update:curProcess",e),console.log(t.curProcess),o("click",e))}catch(t){console.warn(t)}case 2:case"end":return r.stop()}}),r)})))}}},render:function(){var t=this,o=r.classes(a({},"".concat(this.extCls),!!this.extCls),"".concat("bk-process")),i=function(t){return"loading"===t.status},c=function(t){return t.icon?t.icon:""},s=function(r,o){return r===t.curProcess-1&&i(o)?e.createVNode(n.Circle,{class:"bk-icon bk-process-icon icon-loading"},null):function(t){return"error"===t.status}(o)?e.createVNode(n.Error,{class:"bk-process-icon"},null):function(e){return t.curProcess>=e+1||"done"===t.defaultProcessList[e].status}(r)?e.createVNode(n.Done,{class:"bk-process-icon-done"},null):e.createVNode("span",{class:"number"},[c(o)])};return e.createVNode("div",{class:o},[e.createVNode("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(r,n){return e.createVNode("li",{onClick:function(){t.jumpTo(n+1)},style:{cursor:t.controllable?"pointer":""},class:{success:t.curProcess>=n+1,current:i(r)&&n===t.curProcess-1}},[r[t.displayKey],s(n,r)])}))])])}}),m=r.withInstall(x);t.default=m,Object.defineProperty(t,"__esModule",{value:!0})}));
@@ -0,0 +1,139 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+ .bk-process {
5
+ position: relative;
6
+ display: flex;
7
+ }
8
+ @keyframes loadingCircle {
9
+ 100% {
10
+ transform: rotate(360deg);
11
+ }
12
+ }
13
+ .bk-process .bk-process-toggle {
14
+ position: relative;
15
+ left: 15px;
16
+ width: 24px;
17
+ height: 24px;
18
+ font-size: 12px;
19
+ line-height: 24px;
20
+ color: #63656e;
21
+ text-align: center;
22
+ text-decoration: none;
23
+ border: 1px solid #c4c6cc;
24
+ border-radius: 50%;
25
+ }
26
+ .bk-process .bk-process-toggle.active,
27
+ .bk-process .bk-process-toggle:hover {
28
+ color: #fff;
29
+ background: #3a84ff;
30
+ border-color: #3a84ff;
31
+ }
32
+ .bk-process .bk-process-icon-done {
33
+ display: inline-block;
34
+ height: 20px;
35
+ font-size: 21px;
36
+ line-height: 20px;
37
+ }
38
+ .bk-process .bk-icon.icon-loading {
39
+ display: inline-block;
40
+ font-size: 14px;
41
+ animation: loadingCircle 1s infinite linear;
42
+ }
43
+ .bk-process > ul {
44
+ -ms-display: flex;
45
+ -moz-display: flex;
46
+ -webkit-display: flex;
47
+ display: table;
48
+ display: flex;
49
+ width: 100%;
50
+ padding: 0;
51
+ margin: auto;
52
+ }
53
+ .bk-process li {
54
+ position: relative;
55
+ display: table-cell;
56
+ height: 24px;
57
+ font-family: PingFang SC,Microsoft Yahei,Helvetica,Aria;
58
+ font-size: 12px;
59
+ line-height: 24px;
60
+ color: #63656e;
61
+ text-align: center;
62
+ background-color: #f0f1f5;
63
+ flex: 1;
64
+ }
65
+ .bk-process li i {
66
+ display: none;
67
+ }
68
+ .bk-process li:first-of-type {
69
+ border-radius: 13px 0 0 13px;
70
+ }
71
+ .bk-process li:last-of-type {
72
+ border-radius: 0 13px 13px 0;
73
+ }
74
+ .bk-process li:last-of-type::before {
75
+ display: none;
76
+ }
77
+ .bk-process li:last-of-type::after {
78
+ display: none;
79
+ }
80
+ .bk-process li::before {
81
+ position: absolute;
82
+ top: 0;
83
+ right: -25px;
84
+ z-index: 1;
85
+ width: 0;
86
+ height: 0;
87
+ border: 12px solid;
88
+ border-color: transparent transparent transparent #fff;
89
+ content: '';
90
+ }
91
+ .bk-process li::after {
92
+ position: absolute;
93
+ top: 0;
94
+ right: -23px;
95
+ z-index: 1;
96
+ width: 0;
97
+ height: 0;
98
+ border: 12px solid;
99
+ border-color: transparent transparent transparent #f0f1f5;
100
+ content: '';
101
+ }
102
+ .bk-process li .bk-process-step {
103
+ font-size: 12px;
104
+ }
105
+ .bk-process li .bk-process-step dd {
106
+ margin: 0;
107
+ line-height: 32px;
108
+ }
109
+ .bk-process li .bk-process-step i {
110
+ display: none;
111
+ }
112
+ .bk-process li .bk-process-step .success i {
113
+ display: inline-block;
114
+ color: #2dcb56;
115
+ }
116
+ .bk-process li .bk-process-step .steps-loading {
117
+ top: -2px;
118
+ }
119
+ .bk-process li.success {
120
+ color: #fff;
121
+ background: #2dcb56;
122
+ }
123
+ .bk-process li.success::after {
124
+ border-color: transparent transparent transparent #2dcb56;
125
+ }
126
+ .bk-process li.success .icon-done {
127
+ font-size: 22px;
128
+ line-height: 18px;
129
+ }
130
+ .bk-process li.current {
131
+ color: #fff;
132
+ background: #3a84ff;
133
+ }
134
+ .bk-process li.current::after {
135
+ border-color: transparent transparent transparent #3a84ff;
136
+ }
137
+ .bk-process li.current > .bk-spin-loading {
138
+ vertical-align: -3px;
139
+ }