bkui-vue 0.0.1-beta.8 → 0.0.1-beta.82

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 (556) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +57 -0
  3. package/dist/index.esm.js +24606 -0
  4. package/dist/index.umd.js +57 -0
  5. package/dist/style.css +1 -2348
  6. package/lib/affix/affix.css +3 -0
  7. package/lib/affix/affix.d.ts +47 -0
  8. package/lib/affix/affix.less +5 -0
  9. package/lib/affix/affix.variable.css +102 -0
  10. package/lib/affix/index.d.ts +143 -0
  11. package/lib/affix/index.js +1 -0
  12. package/lib/alert/alert.css +2 -0
  13. package/lib/alert/alert.d.ts +24 -15
  14. package/lib/alert/alert.less +2 -0
  15. package/lib/alert/alert.variable.css +31 -0
  16. package/lib/alert/index.d.ts +180 -0
  17. package/lib/alert/index.js +1 -1
  18. package/lib/animate-number/animate-number.d.ts +12 -7
  19. package/lib/animate-number/index.d.ts +97 -0
  20. package/lib/animate-number/index.js +1 -1
  21. package/lib/backtop/backtop.d.ts +27 -13
  22. package/lib/backtop/backtop.variable.css +29 -0
  23. package/lib/backtop/index.d.ts +166 -0
  24. package/lib/backtop/index.js +1 -1
  25. package/lib/badge/badge.css +5 -5
  26. package/lib/badge/badge.d.ts +64 -22
  27. package/lib/badge/badge.less +5 -6
  28. package/lib/badge/badge.variable.css +34 -5
  29. package/lib/badge/index.d.ts +267 -0
  30. package/lib/badge/index.js +1 -1
  31. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  32. package/lib/breadcrumb/breadcrumb.css +18 -1
  33. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  34. package/lib/breadcrumb/breadcrumb.less +13 -2
  35. package/lib/breadcrumb/breadcrumb.variable.css +47 -1
  36. package/lib/breadcrumb/index.d.ts +194 -0
  37. package/lib/breadcrumb/index.js +1 -1
  38. package/lib/button/button-group.d.ts +3 -5
  39. package/lib/button/button.css +73 -44
  40. package/lib/button/button.d.ts +66 -30
  41. package/lib/button/button.less +68 -47
  42. package/lib/button/button.variable.css +102 -44
  43. package/lib/button/index.d.ts +237 -0
  44. package/lib/button/index.js +1 -1
  45. package/lib/card/card.css +53 -1
  46. package/lib/card/card.d.ts +74 -18
  47. package/lib/card/card.less +50 -2
  48. package/lib/card/card.variable.css +82 -1
  49. package/lib/card/index.d.ts +283 -0
  50. package/lib/card/index.js +1 -1
  51. package/lib/cascader/cascader-panel.d.ts +48 -0
  52. package/lib/cascader/cascader.css +130 -0
  53. package/lib/cascader/cascader.d.ts +271 -0
  54. package/lib/cascader/cascader.less +146 -0
  55. package/lib/cascader/cascader.variable.css +229 -0
  56. package/lib/cascader/index.d.ts +721 -0
  57. package/lib/cascader/index.js +1 -0
  58. package/lib/cascader/interface.d.ts +44 -0
  59. package/lib/cascader/node.d.ts +24 -0
  60. package/lib/cascader/store.d.ts +15 -0
  61. package/lib/checkbox/checkbox-group.d.ts +13 -9
  62. package/lib/checkbox/checkbox.css +15 -2
  63. package/lib/checkbox/checkbox.d.ts +33 -30
  64. package/lib/checkbox/checkbox.less +20 -2
  65. package/lib/checkbox/checkbox.variable.css +44 -2
  66. package/lib/checkbox/common.d.ts +3 -3
  67. package/lib/checkbox/index.d.ts +253 -0
  68. package/lib/checkbox/index.js +1 -1
  69. package/lib/checkbox/type.d.ts +4 -8
  70. package/lib/code-diff/code-diff.css +186 -0
  71. package/lib/code-diff/code-diff.d.ts +80 -0
  72. package/lib/code-diff/code-diff.less +238 -0
  73. package/lib/code-diff/code-diff.variable.css +285 -0
  74. package/lib/code-diff/index.d.ts +154 -0
  75. package/lib/code-diff/index.js +1 -0
  76. package/lib/collapse/collapse.css +25 -1
  77. package/lib/collapse/collapse.d.ts +51 -22
  78. package/lib/collapse/collapse.less +34 -2
  79. package/lib/collapse/collapse.variable.css +124 -1
  80. package/lib/collapse/index.d.ts +182 -0
  81. package/lib/collapse/index.js +1 -1
  82. package/lib/collapse/utils.d.ts +11 -0
  83. package/lib/components.d.ts +25 -4
  84. package/lib/components.js +1 -0
  85. package/lib/container/col.d.ts +51 -0
  86. package/lib/container/container.css +48 -0
  87. package/lib/container/container.d.ts +83 -0
  88. package/lib/container/container.less +20 -0
  89. package/lib/container/container.variable.css +147 -0
  90. package/lib/container/index.d.ts +223 -0
  91. package/lib/container/index.js +1 -0
  92. package/lib/container/row.d.ts +4 -0
  93. package/lib/date-picker/date-picker.css +408 -0
  94. package/lib/date-picker/date-picker.d.ts +312 -0
  95. package/lib/date-picker/date-picker.less +527 -0
  96. package/lib/date-picker/date-picker.variable.css +507 -0
  97. package/lib/date-picker/fecha.d.ts +6 -0
  98. package/lib/date-picker/index.d.ts +753 -0
  99. package/lib/date-picker/index.js +1 -0
  100. package/lib/date-picker/interface.d.ts +22 -0
  101. package/lib/date-picker/props.d.ts +118 -0
  102. package/lib/date-picker/utils.d.ts +97 -0
  103. package/lib/dialog/dialog.css +52 -0
  104. package/lib/dialog/dialog.d.ts +305 -52
  105. package/lib/dialog/dialog.less +20 -0
  106. package/lib/dialog/dialog.variable.css +52 -0
  107. package/lib/dialog/index.d.ts +772 -0
  108. package/lib/dialog/index.js +1 -1
  109. package/lib/directives/clickoutside.d.ts +3 -23
  110. package/lib/directives/index.d.ts +3 -0
  111. package/lib/directives/index.js +2 -15
  112. package/lib/directives/index.js.LICENSE.txt +14 -0
  113. package/lib/directives/tooltips.d.ts +17 -0
  114. package/lib/dist.index.js +1 -0
  115. package/lib/divider/divider.css +38 -0
  116. package/lib/divider/divider.d.ts +48 -0
  117. package/lib/divider/divider.less +53 -0
  118. package/lib/divider/divider.variable.css +137 -0
  119. package/lib/divider/index.d.ts +142 -0
  120. package/lib/divider/index.js +1 -0
  121. package/lib/divider/props.d.ts +21 -0
  122. package/lib/dropdown/dropdown-item.d.ts +19 -0
  123. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  124. package/lib/dropdown/dropdown.css +47 -0
  125. package/lib/dropdown/dropdown.d.ts +63 -0
  126. package/lib/dropdown/dropdown.less +59 -0
  127. package/lib/dropdown/dropdown.variable.css +146 -0
  128. package/lib/dropdown/index.d.ts +200 -0
  129. package/lib/dropdown/index.js +1 -0
  130. package/lib/exception/exception.d.ts +11 -9
  131. package/lib/exception/exception.variable.css +29 -0
  132. package/lib/exception/index.d.ts +96 -0
  133. package/lib/exception/index.js +1 -1
  134. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  135. package/lib/fixed-navbar/fixed-navbar.variable.css +29 -0
  136. package/lib/fixed-navbar/index.d.ts +147 -0
  137. package/lib/fixed-navbar/index.js +1 -1
  138. package/lib/form/common.d.ts +3 -0
  139. package/lib/form/compose-form-item.d.ts +16 -0
  140. package/lib/form/form-item.d.ts +155 -0
  141. package/lib/form/form.css +125 -0
  142. package/lib/form/form.d.ts +67 -0
  143. package/lib/form/form.less +152 -0
  144. package/lib/form/form.variable.css +224 -0
  145. package/lib/form/index.d.ts +280 -0
  146. package/lib/form/index.js +1 -0
  147. package/lib/form/type.d.ts +22 -0
  148. package/lib/form/validator.d.ts +8 -0
  149. package/lib/icon/angle-double-down-line.d.ts +4 -0
  150. package/lib/icon/angle-double-down-line.js +1 -0
  151. package/lib/icon/angle-double-left-line.d.ts +4 -0
  152. package/lib/icon/angle-double-left-line.js +1 -0
  153. package/lib/icon/angle-double-left.d.ts +4 -0
  154. package/lib/icon/angle-double-left.js +1 -0
  155. package/lib/icon/angle-double-right-line.d.ts +4 -0
  156. package/lib/icon/angle-double-right-line.js +1 -0
  157. package/lib/icon/angle-double-right.d.ts +4 -0
  158. package/lib/icon/angle-double-right.js +1 -0
  159. package/lib/icon/angle-double-up-line.d.ts +4 -0
  160. package/lib/icon/angle-double-up-line.js +1 -0
  161. package/lib/icon/angle-down-fill.d.ts +4 -0
  162. package/lib/icon/angle-down-fill.js +1 -0
  163. package/lib/icon/angle-down-line.d.ts +4 -0
  164. package/lib/icon/angle-down-line.js +1 -0
  165. package/lib/icon/angle-down.d.ts +4 -0
  166. package/lib/icon/angle-down.js +1 -0
  167. package/lib/icon/angle-left.d.ts +4 -0
  168. package/lib/icon/angle-left.js +1 -0
  169. package/lib/icon/angle-right.d.ts +4 -0
  170. package/lib/icon/angle-right.js +1 -0
  171. package/lib/icon/angle-up-fill.d.ts +4 -0
  172. package/lib/icon/angle-up-fill.js +1 -0
  173. package/lib/icon/angle-up.js +1 -0
  174. package/lib/icon/archive-fill.d.ts +4 -0
  175. package/lib/icon/archive-fill.js +1 -0
  176. package/lib/icon/arrows-left.d.ts +4 -0
  177. package/lib/icon/arrows-left.js +1 -0
  178. package/lib/icon/arrows-right.d.ts +4 -0
  179. package/lib/icon/arrows-right.js +1 -0
  180. package/lib/icon/audio-fill.d.ts +4 -0
  181. package/lib/icon/audio-fill.js +1 -0
  182. package/lib/icon/bk.d.ts +4 -0
  183. package/lib/icon/bk.js +1 -0
  184. package/lib/icon/circle.d.ts +4 -0
  185. package/lib/icon/circle.js +1 -0
  186. package/lib/icon/close-line.d.ts +4 -0
  187. package/lib/icon/close-line.js +1 -0
  188. package/lib/icon/close.js +1 -0
  189. package/lib/icon/code.d.ts +4 -0
  190. package/lib/icon/code.js +1 -0
  191. package/lib/icon/cog-shape.d.ts +4 -0
  192. package/lib/icon/cog-shape.js +1 -0
  193. package/lib/icon/collapse-left.d.ts +4 -0
  194. package/lib/icon/collapse-left.js +1 -0
  195. package/lib/icon/copy.d.ts +4 -0
  196. package/lib/icon/copy.js +1 -0
  197. package/lib/icon/data-shape.d.ts +4 -0
  198. package/lib/icon/data-shape.js +1 -0
  199. package/lib/icon/del.d.ts +4 -0
  200. package/lib/icon/del.js +1 -0
  201. package/lib/icon/doc-fill.d.ts +4 -0
  202. package/lib/icon/doc-fill.js +1 -0
  203. package/lib/icon/done.d.ts +4 -0
  204. package/lib/icon/done.js +1 -0
  205. package/lib/icon/down-shape.d.ts +4 -0
  206. package/lib/icon/down-shape.js +1 -0
  207. package/lib/icon/down-small.js +1 -0
  208. package/lib/icon/edit-line.d.ts +4 -0
  209. package/lib/icon/edit-line.js +1 -0
  210. package/lib/icon/ellipsis.d.ts +4 -0
  211. package/lib/icon/ellipsis.js +1 -0
  212. package/lib/icon/error.d.ts +4 -0
  213. package/lib/icon/error.js +1 -0
  214. package/lib/icon/excel-fill.d.ts +4 -0
  215. package/lib/icon/excel-fill.js +1 -0
  216. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  217. package/lib/icon/exclamation-circle-shape.js +1 -0
  218. package/lib/icon/eye.js +1 -0
  219. package/lib/icon/folder-open.d.ts +4 -0
  220. package/lib/icon/folder-open.js +1 -0
  221. package/lib/icon/folder-shape-open.d.ts +4 -0
  222. package/lib/icon/folder-shape-open.js +1 -0
  223. package/lib/icon/folder-shape.d.ts +4 -0
  224. package/lib/icon/folder-shape.js +1 -0
  225. package/lib/icon/folder.d.ts +4 -0
  226. package/lib/icon/funnel.d.ts +4 -0
  227. package/lib/icon/funnel.js +1 -0
  228. package/lib/icon/help-document-fill.js +1 -0
  229. package/lib/icon/help-fill.js +1 -0
  230. package/lib/icon/help.js +1 -0
  231. package/lib/icon/image-fill.d.ts +4 -0
  232. package/lib/icon/image-fill.js +1 -0
  233. package/lib/icon/index.d.ts +69 -0
  234. package/lib/icon/index.js +1 -15
  235. package/lib/icon/info-line.js +1 -0
  236. package/lib/icon/info.d.ts +4 -0
  237. package/lib/icon/info.js +1 -0
  238. package/lib/icon/left-shape.d.ts +4 -0
  239. package/lib/icon/left-shape.js +1 -0
  240. package/lib/icon/pdf-fill.d.ts +4 -0
  241. package/lib/icon/pdf-fill.js +1 -0
  242. package/lib/icon/play-shape.d.ts +4 -0
  243. package/lib/icon/play-shape.js +1 -0
  244. package/lib/icon/plus.d.ts +4 -0
  245. package/lib/icon/plus.js +1 -0
  246. package/lib/icon/ppt-fill.d.ts +4 -0
  247. package/lib/icon/ppt-fill.js +1 -0
  248. package/lib/icon/qq.d.ts +4 -0
  249. package/lib/icon/qq.js +1 -0
  250. package/lib/icon/right-shape.d.ts +4 -0
  251. package/lib/icon/right-shape.js +1 -0
  252. package/lib/icon/search.js +1 -0
  253. package/lib/icon/share.d.ts +4 -0
  254. package/lib/icon/share.js +1 -0
  255. package/lib/icon/spinner.d.ts +4 -0
  256. package/lib/icon/spinner.js +1 -0
  257. package/lib/icon/success.d.ts +4 -0
  258. package/lib/icon/success.js +1 -0
  259. package/lib/icon/switcher-loading.js +1 -0
  260. package/lib/icon/text-file.d.ts +4 -0
  261. package/lib/icon/text-file.js +1 -0
  262. package/lib/icon/text-fill.d.ts +4 -0
  263. package/lib/icon/text-fill.js +1 -0
  264. package/lib/icon/tree-application-shape.d.ts +4 -0
  265. package/lib/icon/tree-application-shape.js +1 -0
  266. package/lib/icon/unvisible.js +1 -0
  267. package/lib/icon/up-shape.d.ts +4 -0
  268. package/lib/icon/up-shape.js +1 -0
  269. package/lib/icon/upload.d.ts +4 -0
  270. package/lib/icon/upload.js +1 -0
  271. package/lib/icon/video-fill.d.ts +4 -0
  272. package/lib/icon/video-fill.js +1 -0
  273. package/lib/icon/warn.d.ts +4 -0
  274. package/lib/icon/warn.js +1 -0
  275. package/lib/icon/weixin.d.ts +4 -0
  276. package/lib/icon/weixin.js +1 -0
  277. package/lib/index.d.ts +3 -0
  278. package/lib/index.js +1 -0
  279. package/lib/input/index.d.ts +541 -0
  280. package/lib/input/index.js +1 -15
  281. package/lib/input/input.css +78 -4
  282. package/lib/input/input.d.ts +178 -48
  283. package/lib/input/input.less +89 -8
  284. package/lib/input/input.variable.css +108 -4
  285. package/lib/link/index.d.ts +164 -0
  286. package/lib/link/index.js +1 -1
  287. package/lib/link/link.d.ts +25 -13
  288. package/lib/link/link.variable.css +29 -0
  289. package/lib/loading/index.d.ts +172 -0
  290. package/lib/loading/index.js +1 -1
  291. package/lib/loading/loading.css +122 -75
  292. package/lib/loading/loading.d.ts +67 -20
  293. package/lib/loading/loading.less +79 -60
  294. package/lib/loading/loading.variable.css +151 -75
  295. package/lib/menu/index.d.ts +176 -0
  296. package/lib/menu/index.js +1 -0
  297. package/lib/menu/menu-group.d.ts +14 -0
  298. package/lib/menu/menu-item.d.ts +16 -0
  299. package/lib/menu/menu.css +190 -0
  300. package/lib/menu/menu.d.ts +55 -0
  301. package/lib/menu/menu.less +180 -0
  302. package/lib/menu/menu.variable.css +289 -0
  303. package/lib/menu/submenu.css +3 -0
  304. package/lib/menu/submenu.d.ts +22 -0
  305. package/lib/menu/submenu.less +5 -0
  306. package/lib/menu/submenu.variable.css +102 -0
  307. package/lib/menu/utils.d.ts +41 -0
  308. package/lib/message/{message.d.ts → index.d.ts} +0 -0
  309. package/lib/message/index.js +1 -1
  310. package/lib/message/message.css +27 -1
  311. package/lib/message/message.less +30 -1
  312. package/lib/message/message.variable.css +56 -1
  313. package/lib/message/messageConstructor.d.ts +71 -20
  314. package/lib/modal/index.d.ts +605 -0
  315. package/lib/modal/index.js +1 -1
  316. package/lib/modal/modal.css +30 -1
  317. package/lib/modal/modal.d.ts +195 -24
  318. package/lib/modal/modal.less +39 -1
  319. package/lib/modal/modal.variable.css +30 -1
  320. package/lib/modal/props.mixin.d.ts +82 -10
  321. package/lib/navigation/index.d.ts +292 -0
  322. package/lib/navigation/index.js +1 -0
  323. package/lib/navigation/navigation-title.d.ts +25 -0
  324. package/lib/navigation/navigation.css +184 -0
  325. package/lib/navigation/navigation.d.ts +111 -0
  326. package/lib/navigation/navigation.less +210 -0
  327. package/lib/navigation/navigation.variable.css +283 -0
  328. package/lib/notify/index.d.ts +2 -0
  329. package/lib/notify/index.js +1 -0
  330. package/lib/notify/notify.css +65 -0
  331. package/lib/notify/notify.less +76 -0
  332. package/lib/notify/notify.variable.css +164 -0
  333. package/lib/notify/notifyConstructor.d.ts +135 -0
  334. package/lib/pagination/index.d.ts +395 -0
  335. package/lib/pagination/index.js +1 -0
  336. package/lib/pagination/pagination.css +179 -0
  337. package/lib/pagination/pagination.d.ts +220 -0
  338. package/lib/pagination/pagination.less +201 -0
  339. package/lib/pagination/pagination.variable.css +278 -0
  340. package/lib/pagination/type.d.ts +6 -0
  341. package/lib/pagination/use-limit.d.ts +8 -0
  342. package/lib/pagination/use-list.d.ts +8 -0
  343. package/lib/pagination/use-small-list.d.ts +5 -0
  344. package/lib/pagination/use-total.d.ts +5 -0
  345. package/lib/popover/index.d.ts +364 -0
  346. package/lib/popover/index.js +1 -1
  347. package/lib/popover/popover.css +28 -16
  348. package/lib/popover/popover.d.ts +111 -45
  349. package/lib/popover/popover.less +59 -46
  350. package/lib/popover/popover.variable.css +57 -16
  351. package/lib/popover/props.d.ts +99 -0
  352. package/lib/preset.d.ts +2 -3
  353. package/lib/preset.js +1 -0
  354. package/lib/process/index.d.ts +205 -0
  355. package/lib/process/index.js +1 -0
  356. package/lib/process/process.css +138 -0
  357. package/lib/process/process.d.ts +131 -0
  358. package/lib/process/process.less +178 -0
  359. package/lib/process/process.variable.css +237 -0
  360. package/lib/progress/index.d.ts +398 -0
  361. package/lib/progress/index.js +1 -1
  362. package/lib/progress/progress.css +8 -3
  363. package/lib/progress/progress.d.ts +88 -35
  364. package/lib/progress/progress.less +0 -4
  365. package/lib/progress/progress.variable.css +37 -3
  366. package/lib/radio/common.d.ts +5 -5
  367. package/lib/radio/index.d.ts +278 -0
  368. package/lib/radio/index.js +1 -1
  369. package/lib/radio/radio-button.d.ts +29 -20
  370. package/lib/radio/radio-group.d.ts +11 -10
  371. package/lib/radio/radio.css +14 -8
  372. package/lib/radio/radio.d.ts +27 -17
  373. package/lib/radio/radio.less +16 -9
  374. package/lib/radio/radio.variable.css +44 -9
  375. package/lib/radio/type.d.ts +10 -5
  376. package/lib/rate/index.d.ts +113 -0
  377. package/lib/rate/index.js +1 -1
  378. package/lib/rate/rate.d.ts +13 -10
  379. package/lib/rate/star.d.ts +33 -16
  380. package/lib/resize-layout/index.d.ts +336 -0
  381. package/lib/resize-layout/index.js +1 -0
  382. package/lib/resize-layout/resize-layout.css +189 -0
  383. package/lib/resize-layout/resize-layout.d.ts +127 -0
  384. package/lib/resize-layout/resize-layout.less +233 -0
  385. package/lib/resize-layout/resize-layout.variable.css +288 -0
  386. package/lib/select/common.d.ts +23 -17
  387. package/lib/select/index.d.ts +1728 -0
  388. package/lib/select/index.js +1 -1
  389. package/lib/select/option.d.ts +21 -21
  390. package/lib/select/optionGroup.d.ts +54 -0
  391. package/lib/select/select.css +229 -41
  392. package/lib/select/select.d.ts +388 -156
  393. package/lib/select/select.less +242 -53
  394. package/lib/select/select.variable.css +258 -41
  395. package/lib/select/selectTagInput.d.ts +71 -0
  396. package/lib/select/type.d.ts +35 -0
  397. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  398. package/lib/shared/index.d.ts +71 -0
  399. package/lib/shared/index.js +1 -1
  400. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  401. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  402. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +60 -6
  403. package/lib/shared/token.d.ts +2 -0
  404. package/lib/shared/utils.d.ts +6 -0
  405. package/lib/shared/vue-types.d.ts +12 -7
  406. package/lib/shared/z-index-manager.d.ts +6 -1
  407. package/lib/sideslider/index.d.ts +533 -0
  408. package/lib/sideslider/index.js +1 -1
  409. package/lib/sideslider/sideslider.css +48 -3
  410. package/lib/sideslider/sideslider.d.ts +205 -30
  411. package/lib/sideslider/sideslider.less +65 -6
  412. package/lib/sideslider/sideslider.variable.css +77 -3
  413. package/lib/slider/index.d.ts +440 -0
  414. package/lib/slider/index.js +1 -0
  415. package/lib/slider/slider-button.d.ts +80 -0
  416. package/lib/slider/slider.css +149 -0
  417. package/lib/slider/slider.d.ts +201 -0
  418. package/lib/slider/slider.less +179 -0
  419. package/lib/slider/slider.variable.css +248 -0
  420. package/lib/steps/index.d.ts +250 -0
  421. package/lib/steps/index.js +1 -15
  422. package/lib/steps/steps.css +4 -1
  423. package/lib/steps/steps.d.ts +42 -29
  424. package/lib/steps/steps.less +5 -1
  425. package/lib/steps/steps.variable.css +33 -1
  426. package/lib/styles/index.d.ts +51 -0
  427. package/lib/styles/mixins/clearfix.css +8 -0
  428. package/lib/styles/mixins/clearfix.less +10 -0
  429. package/lib/styles/mixins/clearfix.variable.css +8 -0
  430. package/lib/styles/mixins/mixins.css +8 -0
  431. package/lib/styles/mixins/mixins.less +1 -0
  432. package/lib/styles/mixins/mixins.variable.css +8 -0
  433. package/lib/styles/mixins/popper.css +43 -0
  434. package/lib/styles/mixins/popper.less +52 -0
  435. package/lib/styles/mixins/popper.variable.css +43 -0
  436. package/lib/styles/mixins/size.less +9 -0
  437. package/lib/styles/reset.css +273 -0
  438. package/lib/styles/reset.less +313 -0
  439. package/lib/styles/reset.variable.css +273 -0
  440. package/lib/styles/themes/themes.less +45 -1
  441. package/lib/swiper/index.d.ts +181 -0
  442. package/lib/swiper/index.js +1 -0
  443. package/lib/swiper/swiper.css +91 -0
  444. package/lib/swiper/swiper.d.ts +65 -0
  445. package/lib/swiper/swiper.less +107 -0
  446. package/lib/swiper/swiper.variable.css +91 -0
  447. package/lib/switcher/index.d.ts +286 -0
  448. package/lib/switcher/index.js +1 -1
  449. package/lib/switcher/switcher.css +157 -135
  450. package/lib/switcher/switcher.d.ts +48 -32
  451. package/lib/switcher/switcher.less +211 -153
  452. package/lib/switcher/switcher.variable.css +186 -135
  453. package/lib/tab/index.d.ts +440 -0
  454. package/lib/tab/index.js +1 -0
  455. package/lib/tab/props.d.ts +194 -0
  456. package/lib/tab/tab-nav.d.ts +169 -0
  457. package/lib/tab/tab-panel.d.ts +73 -0
  458. package/lib/tab/tab.css +167 -0
  459. package/lib/tab/tab.d.ts +139 -0
  460. package/lib/tab/tab.less +228 -0
  461. package/lib/tab/tab.variable.css +266 -0
  462. package/lib/table/const.d.ts +30 -0
  463. package/lib/table/index.d.ts +389 -0
  464. package/lib/table/index.js +1 -1
  465. package/lib/table/plugins/head-filter.css +68 -0
  466. package/lib/table/plugins/head-filter.less +83 -0
  467. package/lib/table/plugins/head-filter.variable.css +167 -0
  468. package/lib/table/plugins/head-sort.css +22 -0
  469. package/lib/table/plugins/head-sort.less +28 -0
  470. package/lib/table/plugins/head-sort.variable.css +121 -0
  471. package/lib/table/plugins/settings.css +110 -0
  472. package/lib/table/plugins/settings.less +136 -0
  473. package/lib/table/plugins/settings.variable.css +209 -0
  474. package/lib/table/props.d.ts +190 -0
  475. package/lib/table/render.d.ts +115 -0
  476. package/lib/table/table.css +387 -0
  477. package/lib/table/table.d.ts +126 -36
  478. package/lib/table/table.less +229 -1
  479. package/lib/table/table.variable.css +416 -0
  480. package/lib/table/use-common.d.ts +19 -0
  481. package/lib/table/utils.d.ts +93 -0
  482. package/lib/tag/index.d.ts +229 -0
  483. package/lib/tag/index.js +1 -1
  484. package/lib/tag/tag.css +97 -0
  485. package/lib/tag/tag.d.ts +83 -53
  486. package/lib/tag/tag.less +110 -2
  487. package/lib/tag/tag.variable.css +126 -0
  488. package/lib/tag-input/common.d.ts +24 -0
  489. package/lib/tag-input/index.d.ts +894 -0
  490. package/lib/tag-input/index.js +1 -0
  491. package/lib/tag-input/list-tag-render.d.ts +47 -0
  492. package/lib/tag-input/tag-input.css +209 -0
  493. package/lib/tag-input/tag-input.d.ts +374 -0
  494. package/lib/tag-input/tag-input.less +251 -0
  495. package/lib/tag-input/tag-input.variable.css +308 -0
  496. package/lib/tag-input/tag-props.d.ts +131 -0
  497. package/lib/tag-input/tag-render.d.ts +38 -0
  498. package/lib/timeline/index.d.ts +129 -0
  499. package/lib/timeline/index.js +1 -0
  500. package/lib/timeline/timeline.css +235 -0
  501. package/lib/timeline/timeline.d.ts +81 -0
  502. package/lib/timeline/timeline.less +239 -0
  503. package/lib/timeline/timeline.variable.css +334 -0
  504. package/lib/transfer/index.d.ts +351 -0
  505. package/lib/transfer/index.js +1 -0
  506. package/lib/transfer/transfer.css +139 -0
  507. package/lib/transfer/transfer.d.ts +185 -0
  508. package/lib/transfer/transfer.less +144 -0
  509. package/lib/transfer/transfer.variable.css +238 -0
  510. package/lib/tree/constant.d.ts +43 -0
  511. package/lib/tree/index.d.ts +449 -0
  512. package/lib/tree/index.js +1 -0
  513. package/lib/tree/props.d.ts +159 -0
  514. package/lib/tree/tree.css +53 -0
  515. package/lib/tree/tree.d.ts +193 -0
  516. package/lib/tree/tree.less +66 -0
  517. package/lib/tree/tree.variable.css +152 -0
  518. package/lib/tree/use-empty.d.ts +6 -0
  519. package/lib/tree/use-node-action.d.ts +11 -0
  520. package/lib/tree/use-node-async.d.ts +5 -0
  521. package/lib/tree/use-node-attribute.d.ts +31 -0
  522. package/lib/tree/use-node-drag.d.ts +3 -0
  523. package/lib/tree/use-search.d.ts +11 -0
  524. package/lib/tree/use-tree-init.d.ts +15 -0
  525. package/lib/tree/util.d.ts +66 -0
  526. package/lib/upload/index.d.ts +2 -0
  527. package/lib/upload/index.js +1 -0
  528. package/lib/upload/props.d.ts +113 -0
  529. package/lib/upload/upload-list.d.ts +46 -0
  530. package/lib/upload/upload-trigger.d.ts +54 -0
  531. package/lib/upload/upload.css +374 -0
  532. package/lib/upload/upload.d.ts +252 -0
  533. package/lib/upload/upload.less +455 -0
  534. package/lib/upload/upload.type.d.ts +78 -0
  535. package/lib/upload/upload.variable.css +473 -0
  536. package/lib/upload/use-ajax-upload.d.ts +3 -0
  537. package/lib/upload/use-file-handler.d.ts +44 -0
  538. package/lib/use-form.d.ts +3 -0
  539. package/lib/use-message.d.ts +2 -0
  540. package/lib/virtual-render/index.d.ts +579 -0
  541. package/lib/virtual-render/index.js +1 -0
  542. package/lib/virtual-render/props.d.ts +167 -0
  543. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  544. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  545. package/lib/virtual-render/virtual-render.css +33 -0
  546. package/lib/virtual-render/virtual-render.d.ts +255 -0
  547. package/lib/virtual-render/virtual-render.less +43 -0
  548. package/lib/virtual-render/virtual-render.variable.css +33 -0
  549. package/package.json +108 -81
  550. package/dist/bkui-vue.cjs.js +0 -5171
  551. package/dist/bkui-vue.esm.js +0 -5137
  552. package/dist/bkui-vue.umd.js +0 -5174
  553. package/lib/styles/index.js +0 -1
  554. package/lib/table/common.d.ts +0 -3
  555. package/lib/table/table-layout.d.ts +0 -14
  556. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,248 @@
1
+ :root {
2
+ --bk-prefix: bk;
3
+ --popover-max-height: 216px;
4
+ --primary-color: #3a84ff;
5
+ --success-color: #2dcb56;
6
+ --warning-color: #ff9c01;
7
+ --danger-color: #ea3636;
8
+ --default-color: #63656e;
9
+ --gray-color: #979ba5;
10
+ --light-gray: #c4c6cc;
11
+ --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
13
+ --disable-color: #dcdee5;
14
+ --font-size-base: 12px;
15
+ --font-size-medium: 14px;
16
+ --font-size-large: 16px;
17
+ --line-height-base: 16px;
18
+ --line-height-medium: 16px;
19
+ --line-height-large: 18px;
20
+ --component-size-small: 26px;
21
+ --component-size-base: 32px;
22
+ --component-size-large: 38px;
23
+ --border-width-base: 1px;
24
+ --border-style-base: solid;
25
+ --border-radius-base: 2px;
26
+ --input-disabled-bg: #fafbfd;
27
+ --input-disabled-border: var(--disable-color);
28
+ --input-height-base: var(--component-size-base);
29
+ --input-color: var(--default-color);
30
+ --input-bg: white;
31
+ --input-border-color: var(--light-gray);
32
+ --input-broder-radius: 3px;
33
+ --input-shadow-color: #a3c5fd;
34
+ --input-horizontal-padding: 10px;
35
+ --input-block-color: #f4f6fa;
36
+ --input-icon-size: var(--font-size-large);
37
+ --input-maxlength-color: #979ba5;
38
+ --button-primary-hover-color: #5594fa;
39
+ --button-danger-hover-color: #ff5656;
40
+ --button-success-hover-color: #45e35f;
41
+ --button-warning-hover-color: #ffb848;
42
+ --button-default-hover-border-color: #979ba5;
43
+ --button-primary-active-color: #2c77f4;
44
+ --button-danger-active-color: #db2626;
45
+ --button-success-active-color: #1ab943;
46
+ --button-warning-active-color: #eb9000;
47
+ --fixed-navbar-background: #fff;
48
+ --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
49
+ --switch-default-color: #fff;
50
+ --switch-grey-color: #c4c6cc;
51
+ --breadcrumb-black-color: #979ba5;
52
+ --breadcrumb-primary-hover-color: #0082ff;
53
+ --breadcrumb-fn-main-color: #63656e;
54
+ --link-default-hover-color: #979ba5;
55
+ --link-primary-hover-color: #699df4;
56
+ --link-success-hover-color: #45e35f;
57
+ --link-warning-hover-color: #ffb848;
58
+ --link-danger-hover-color: #ff5656;
59
+ --link-default-disabled-color: #dcdee5;
60
+ --link-primary-disabled-color: #a3c5fd;
61
+ --link-success-disabled-color: #94f5a4;
62
+ --link-warning-disabled-color: #ffd695;
63
+ --link-danger-disabled-color: #fd9c9c;
64
+ --message-color: var(--default-color);
65
+ --message-primary-bg-color: #f0f8ff;
66
+ --message-primary-border-color: #e1ecff;
67
+ --message-warning-bg-color: #fff4e2;
68
+ --message-warning-border-color: #ffe8c3;
69
+ --message-success-bg-color: #f2fff4;
70
+ --message-success-border-color: #dcffe2;
71
+ --message-danger-bg-color: #ffeded;
72
+ --message-danger-border-color: #ffdddd;
73
+ --slider-default-bg: #dcdee5;
74
+ --slider-disable-bar-bg: #979ba5;
75
+ --menu-bg-color: #182132;
76
+ --submenu-bg-color: #151d2c;
77
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
78
+ --menu-color: #96a2b9;
79
+ --menu-group-color: var(--default-color);
80
+ --menu-width: 260px;
81
+ --menu-collapse-width: 60px;
82
+ --menu-active-color: white;
83
+ --nav-header-bg-color: #182132;
84
+ --nav-bg-color: #182132;
85
+ --date-picker-disabled-bg: #fafbfd;
86
+ --date-picker-dropdown-mb: 4px;
87
+ --date-picker-dropdown-bg: #fff;
88
+ --table-bg-color: var(--white-color);
89
+ --table-border-color: #dcdee5;
90
+ --table-head-bg-color: #fafbfd;
91
+ --table-head-font-color: #313238;
92
+ --table-body-font-color: #575961;
93
+ --table-row-hover-bg-color: #f5f7fa;
94
+ --table-row-active-bg-color: #f0f1f5;
95
+ --cascader-panel-border-color: #dcdee5;
96
+ --cascader-panel-hover: #eaf3ff;
97
+ --cascader-panel-active: #f4f6fa;
98
+ --cascader-panel-disabled-bg: #fff;
99
+ }
100
+ .bk-slider {
101
+ display: flex;
102
+ flex-direction: row;
103
+ align-items: center;
104
+ }
105
+ .bk-slider .bk-slider-runway {
106
+ position: relative;
107
+ width: 100%;
108
+ height: 4px;
109
+ vertical-align: middle;
110
+ cursor: pointer;
111
+ background: var(--slider-default-bg);
112
+ border-radius: 2px;
113
+ opacity: 1;
114
+ }
115
+ .bk-slider .bk-slider-runway .bk-slider-bar {
116
+ position: absolute;
117
+ height: 4px;
118
+ background: var(--primary-color);
119
+ border-bottom-left-radius: 3px;
120
+ border-top-left-radius: 3px;
121
+ }
122
+ .bk-slider .bk-slider-runway .bk-slider-bar.vertical {
123
+ width: 4px;
124
+ }
125
+ .bk-slider .bk-slider-runway .bk-slider-bar.horizontal {
126
+ height: 4px;
127
+ }
128
+ .bk-slider .bk-slider-runway .disable {
129
+ background: var(--slider-disable-bar-bg);
130
+ }
131
+ .bk-slider .bk-slider-runway .bk-slider-labels {
132
+ position: relative;
133
+ }
134
+ .bk-slider .bk-slider-runway .bk-slider-labels.vertical {
135
+ left: 18px;
136
+ display: flex;
137
+ width: 10px;
138
+ height: 100%;
139
+ flex-direction: column;
140
+ justify-content: space-between;
141
+ }
142
+ .bk-slider .bk-slider-runway .bk-slider-labels.horizontal {
143
+ top: 10px;
144
+ display: flex;
145
+ width: 100%;
146
+ height: 10px;
147
+ flex-direction: row;
148
+ justify-content: space-between;
149
+ }
150
+ .bk-slider .bk-slider-runway .bk-slider-labels .bk-slider-label {
151
+ position: absolute;
152
+ display: flex;
153
+ width: 10px;
154
+ height: 10px;
155
+ text-align: center;
156
+ white-space: nowrap;
157
+ align-items: center;
158
+ justify-content: center;
159
+ }
160
+ .bk-slider .bk-slider-runway .bk-slider-labels .bk-slider-label.vertical {
161
+ left: 10px;
162
+ transform: translateY(50%);
163
+ }
164
+ .bk-slider .bk-slider-runway .bk-slider-labels .bk-slider-label.horizontal {
165
+ top: 10px;
166
+ transform: translateX(-50%);
167
+ }
168
+ .bk-slider .bk-slider-interval {
169
+ position: absolute;
170
+ width: 4px;
171
+ height: 4px;
172
+ background-color: #fff;
173
+ border-radius: 100%;
174
+ transform: translateX(-50%);
175
+ }
176
+ .bk-slider .bk-slider-interval.vertical {
177
+ left: 2px;
178
+ }
179
+ .bk-slider-input {
180
+ display: flex;
181
+ margin: 0 0 0 28px;
182
+ flex-direction: row;
183
+ align-items: center;
184
+ }
185
+ .bk-slider-input .input-item {
186
+ width: 92px;
187
+ }
188
+ .bk-slider-input .input-center {
189
+ margin: 0 7px;
190
+ }
191
+ .bk-slider-button {
192
+ position: absolute;
193
+ z-index: 1001;
194
+ display: flex;
195
+ width: 24px;
196
+ height: 24px;
197
+ line-height: normal;
198
+ text-align: center;
199
+ background-color: transparent;
200
+ user-select: none;
201
+ justify-content: center;
202
+ align-items: center;
203
+ }
204
+ .bk-slider-button:hover {
205
+ cursor: grab;
206
+ }
207
+ .bk-slider-button.grabbing {
208
+ cursor: grabbing;
209
+ }
210
+ .bk-slider-button.vertical {
211
+ left: -10px;
212
+ transform: translateY(50%);
213
+ }
214
+ .bk-slider-button.horizontal {
215
+ top: -10px;
216
+ transform: translateX(-50%);
217
+ }
218
+ .bk-slider-button .slider-button {
219
+ width: 12px;
220
+ height: 12px;
221
+ background-color: #fff;
222
+ border: 2px solid var(--primary-color);
223
+ border-radius: 50%;
224
+ transition: 0.2s;
225
+ user-select: none;
226
+ }
227
+ .bk-slider-button .slider-button-disable {
228
+ border: 2px solid #979ba5;
229
+ }
230
+ .bk-slider-button .slider-button:hover {
231
+ box-shadow: 0px 0px 0px 4px rgba(58, 132, 255, 0.3);
232
+ }
233
+ .bk-slider-button .slider-button:focus {
234
+ box-shadow: 0px 0px 10px 0px rgba(58, 132, 255, 0.9);
235
+ }
236
+ .bk-slider-button .slider-button-label {
237
+ position: absolute;
238
+ display: flex;
239
+ text-align: center;
240
+ align-items: center;
241
+ justify-content: center;
242
+ }
243
+ .bk-slider-button .slider-button-label.vertical {
244
+ left: 28px;
245
+ }
246
+ .bk-slider-button .slider-button-label.horizontal {
247
+ top: 20px;
248
+ }
@@ -0,0 +1,250 @@
1
+ declare const BkSteps: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ text: boolean;
7
+ theme: string;
8
+ extCls: string;
9
+ direction: string;
10
+ beforeChange: (...args: any[]) => any;
11
+ lineType: string;
12
+ controllable: boolean;
13
+ status: string;
14
+ curStep: number;
15
+ steps: unknown[];
16
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
17
+ theme: import("vue-types").VueTypeDef<string> & {
18
+ default: string;
19
+ };
20
+ size: import("vue-types").VueTypeDef<string>;
21
+ curStep: import("vue-types").VueTypeValidableDef<number> & {
22
+ default: number;
23
+ } & {
24
+ default: number;
25
+ };
26
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
27
+ default: boolean;
28
+ } & {
29
+ default: boolean;
30
+ };
31
+ direction: import("vue-types").VueTypeDef<string> & {
32
+ default: string;
33
+ };
34
+ status: import("vue-types").VueTypeDef<string> & {
35
+ default: string;
36
+ };
37
+ lineType: import("vue-types").VueTypeDef<string> & {
38
+ default: string;
39
+ };
40
+ text: import("vue-types").VueTypeValidableDef<boolean> & {
41
+ default: boolean;
42
+ };
43
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
44
+ default: string;
45
+ };
46
+ steps: import("vue-types").VueTypeValidableDef<unknown[]> & {
47
+ default: () => unknown[];
48
+ } & {
49
+ default: () => unknown[];
50
+ };
51
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
52
+ default: (...args: any[]) => any;
53
+ };
54
+ }>> & {
55
+ onClick?: (...args: any[]) => any;
56
+ "onUpdate:curStep"?: (...args: any[]) => any;
57
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "text" | "theme" | "extCls" | "direction" | "beforeChange" | "lineType" | "controllable" | "status" | "curStep" | "steps">;
58
+ $attrs: {
59
+ [x: string]: unknown;
60
+ };
61
+ $refs: {
62
+ [x: string]: unknown;
63
+ };
64
+ $slots: Readonly<{
65
+ [name: string]: import("vue").Slot;
66
+ }>;
67
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
68
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
69
+ $emit: (event: "click" | "update:curStep", ...args: any[]) => void;
70
+ $el: any;
71
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
72
+ theme: import("vue-types").VueTypeDef<string> & {
73
+ default: string;
74
+ };
75
+ size: import("vue-types").VueTypeDef<string>;
76
+ curStep: import("vue-types").VueTypeValidableDef<number> & {
77
+ default: number;
78
+ } & {
79
+ default: number;
80
+ };
81
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
82
+ default: boolean;
83
+ } & {
84
+ default: boolean;
85
+ };
86
+ direction: import("vue-types").VueTypeDef<string> & {
87
+ default: string;
88
+ };
89
+ status: import("vue-types").VueTypeDef<string> & {
90
+ default: string;
91
+ };
92
+ lineType: import("vue-types").VueTypeDef<string> & {
93
+ default: string;
94
+ };
95
+ text: import("vue-types").VueTypeValidableDef<boolean> & {
96
+ default: boolean;
97
+ };
98
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
99
+ default: string;
100
+ };
101
+ steps: import("vue-types").VueTypeValidableDef<unknown[]> & {
102
+ default: () => unknown[];
103
+ } & {
104
+ default: () => unknown[];
105
+ };
106
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
107
+ default: (...args: any[]) => any;
108
+ };
109
+ }>> & {
110
+ onClick?: (...args: any[]) => any;
111
+ "onUpdate:curStep"?: (...args: any[]) => any;
112
+ }, {
113
+ defaultSteps: import("vue").Ref<any[]>;
114
+ jumpTo: (index: any) => Promise<void>;
115
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curStep")[], string, {
116
+ text: boolean;
117
+ theme: string;
118
+ extCls: string;
119
+ direction: string;
120
+ beforeChange: (...args: any[]) => any;
121
+ lineType: string;
122
+ controllable: boolean;
123
+ status: string;
124
+ curStep: number;
125
+ steps: unknown[];
126
+ }> & {
127
+ beforeCreate?: (() => void) | (() => void)[];
128
+ created?: (() => void) | (() => void)[];
129
+ beforeMount?: (() => void) | (() => void)[];
130
+ mounted?: (() => void) | (() => void)[];
131
+ beforeUpdate?: (() => void) | (() => void)[];
132
+ updated?: (() => void) | (() => void)[];
133
+ activated?: (() => void) | (() => void)[];
134
+ deactivated?: (() => void) | (() => void)[];
135
+ beforeDestroy?: (() => void) | (() => void)[];
136
+ beforeUnmount?: (() => void) | (() => void)[];
137
+ destroyed?: (() => void) | (() => void)[];
138
+ unmounted?: (() => void) | (() => void)[];
139
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
140
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
141
+ 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)[];
142
+ };
143
+ $forceUpdate: () => void;
144
+ $nextTick: typeof import("vue").nextTick;
145
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
146
+ } & Readonly<import("vue").ExtractPropTypes<{
147
+ theme: import("vue-types").VueTypeDef<string> & {
148
+ default: string;
149
+ };
150
+ size: import("vue-types").VueTypeDef<string>;
151
+ curStep: import("vue-types").VueTypeValidableDef<number> & {
152
+ default: number;
153
+ } & {
154
+ default: number;
155
+ };
156
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
157
+ default: boolean;
158
+ } & {
159
+ default: boolean;
160
+ };
161
+ direction: import("vue-types").VueTypeDef<string> & {
162
+ default: string;
163
+ };
164
+ status: import("vue-types").VueTypeDef<string> & {
165
+ default: string;
166
+ };
167
+ lineType: import("vue-types").VueTypeDef<string> & {
168
+ default: string;
169
+ };
170
+ text: import("vue-types").VueTypeValidableDef<boolean> & {
171
+ default: boolean;
172
+ };
173
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
174
+ default: string;
175
+ };
176
+ steps: import("vue-types").VueTypeValidableDef<unknown[]> & {
177
+ default: () => unknown[];
178
+ } & {
179
+ default: () => unknown[];
180
+ };
181
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
182
+ default: (...args: any[]) => any;
183
+ };
184
+ }>> & {
185
+ onClick?: (...args: any[]) => any;
186
+ "onUpdate:curStep"?: (...args: any[]) => any;
187
+ } & import("vue").ShallowUnwrapRef<{
188
+ defaultSteps: import("vue").Ref<any[]>;
189
+ jumpTo: (index: any) => Promise<void>;
190
+ }> & {} & {} & import("vue").ComponentCustomProperties;
191
+ __isFragment?: never;
192
+ __isTeleport?: never;
193
+ __isSuspense?: never;
194
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
195
+ theme: import("vue-types").VueTypeDef<string> & {
196
+ default: string;
197
+ };
198
+ size: import("vue-types").VueTypeDef<string>;
199
+ curStep: import("vue-types").VueTypeValidableDef<number> & {
200
+ default: number;
201
+ } & {
202
+ default: number;
203
+ };
204
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
205
+ default: boolean;
206
+ } & {
207
+ default: boolean;
208
+ };
209
+ direction: import("vue-types").VueTypeDef<string> & {
210
+ default: string;
211
+ };
212
+ status: import("vue-types").VueTypeDef<string> & {
213
+ default: string;
214
+ };
215
+ lineType: import("vue-types").VueTypeDef<string> & {
216
+ default: string;
217
+ };
218
+ text: import("vue-types").VueTypeValidableDef<boolean> & {
219
+ default: boolean;
220
+ };
221
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
222
+ default: string;
223
+ };
224
+ steps: import("vue-types").VueTypeValidableDef<unknown[]> & {
225
+ default: () => unknown[];
226
+ } & {
227
+ default: () => unknown[];
228
+ };
229
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
230
+ default: (...args: any[]) => any;
231
+ };
232
+ }>> & {
233
+ onClick?: (...args: any[]) => any;
234
+ "onUpdate:curStep"?: (...args: any[]) => any;
235
+ }, {
236
+ defaultSteps: import("vue").Ref<any[]>;
237
+ jumpTo: (index: any) => Promise<void>;
238
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curStep")[], "click" | "update:curStep", {
239
+ text: boolean;
240
+ theme: string;
241
+ extCls: string;
242
+ direction: string;
243
+ beforeChange: (...args: any[]) => any;
244
+ lineType: string;
245
+ controllable: boolean;
246
+ status: string;
247
+ curStep: number;
248
+ steps: unknown[];
249
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
250
+ export default BkSteps;
@@ -1,15 +1 @@
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:{}};!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 j(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 S()}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 m(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));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 L(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 P(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){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(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:S}}function S(){return{value:e,done:!0}}return g.prototype=m,s(k,"constructor",m),s(m,"constructor",g),g.displayName=s(m,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,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},T(L.prototype),s(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(k),s(k,c,"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=N,j.prototype={constructor:j,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)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),_(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;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(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)}}(c);var s=c.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 u(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 l={theme:r.PropTypes.theme().def("primary"),size:r.PropTypes.size(),curStep:r.PropTypes.number.def(1),controllable:r.PropTypes.bool.def(!1),direction:r.PropTypes.commonType(["horizontal","vertical"],"direction").def("horizontal"),status:r.PropTypes.commonType(["","error","loading"],"status").def(""),lineType:r.PropTypes.commonType(["dashed","solid"],"lineType").def("dashed"),text:r.PropTypes.bool,extCls:r.PropTypes.string,steps:r.PropTypes.array.def([]),beforeChange:r.PropTypes.func},f=e.defineComponent({name:"BkSteps",props:l,emits:["update:curStep","click"],setup:function(t,r){var n=this,o=r.emit,i=e.ref([]);return e.onMounted((function(){var e,r,n,o,a;(e=i.value).splice.apply(e,[0,i.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)&&(n=t.steps,a=[],n.forEach((function(t){"string"==typeof t?a.push(t):a.push({title:t.title,icon:t.icon,description:t.description,status:t.status})})),(o=i.value).splice.apply(o,[0,i.value.length].concat(a)))})),{defaultSteps:i,jumpTo:function(e){return u(n,void 0,void 0,s.mark((function r(){var n=this;return s.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,o){return u(n,void 0,void 0,s.mark((function n(){var i;return s.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):o(i);case 4:case"end":return n.stop()}}),n)})))}));case 5:o("update:curStep",e),o("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 t,o=this,i="bk-steps",c=this.theme?"".concat(i,"-").concat(this.theme):"",s=this.size?"".concat(i,"-").concat(this.size):"",u=r.classes((a(t={},"".concat(this.extCls),!!this.extCls),a(t,"bk-steps-".concat(this.direction),this.direction),a(t,"bk-steps-".concat(this.lineType),this.lineType),t),"".concat(c," ").concat(i," ").concat(s)),l=function(t){return o.curStep>t+1||"done"===o.defaultSteps[t].status},f=function(t){return o.curStep===t+1},p=function(t){var e=t.icon;return e?"string"==typeof e:"string"==typeof t},h=function(t){return t.icon?t.icon:t},d=function(t,r){return f(t)&&"loading"===o.status||function(t){return"loading"===t.status}(r)?e.createVNode("i",{class:"bk-icon icon-circle-4-1 icon-loading"},null):f(t)&&"error"===o.status||function(t){return"error"===t.status}(r)?e.createVNode(n.Help,{class:"bk-steps-icon"},null):e.createVNode("span",{class:"number"},[h(r)])};return e.createVNode("div",{class:u},[this.defaultSteps.map((function(t,r){return e.createVNode("div",{class:["bk-step",t.title?"":"bk-step-no-content",l(r)?"done":"",f(r)?"current":"",o.status&&f(r)?["bk-step-".concat(o.status)]:""]},[e.createVNode("span",{class:["bk-step-indicator","bk-step-".concat(p(t)?"icon":"number")],style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(r+1)}},[d(r,t)]),t.title?e.createVNode("div",{class:"bk-step-content"},[e.createVNode("div",{class:"bk-step-title",style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(r+1)}},[t.title]),t.description&&e.createVNode("div",{class:"bk-step-description",title:t.description},[t.description])]):""])}))])}}),p=r.withInstall(f);t.default=p,Object.defineProperty(t,"__esModule",{value:!0})}));
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",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=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return _()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(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===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,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 p="suspendedStart",f="suspendedYield",h="executing",d="completed",y={};function v(){}function m(){}function g(){}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=g.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,a,c){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,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).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 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 P(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,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:_}}function _(){return{value:e,done:!0}}return m.prototype=g,s(k,"constructor",g),s(g,"constructor",m),m.displayName=s(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},T(j.prototype),s(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new j(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(k),s(k,c,"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(P),!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),P(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;P(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),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 a={};return(()=>{"use strict";i.r(a),i.d(a,{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 c(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())}))}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,a=(0,r.ref)([]);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)&&function(t){var e,r=[];t.forEach((function(t){"string"==typeof t?r.push(t):r.push({title:t.title,icon:t.icon,description:t.description,status:t.status})})),(e=a.value).splice.apply(e,[0,a.value.length].concat(r))}(t.steps)})),{defaultSteps:a,jumpTo:function(e){return c(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 c(n,void 0,void 0,o().mark((function n(){var a;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.beforeChange(e);case 2:(a=n.sent)?r(a):i(a);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",a=this.theme?"".concat(i,"-").concat(this.theme):"",c=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(a," ").concat(i," ").concat(c)),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+1},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",{class:"number"},[h(t,e)])};return(0,r.createVNode)("div",{class:u},[this.defaultSteps.map((function(t,e){var n,i,a;return(0,r.createVNode)("div",{class:["bk-step",t.title?"":"bk-step-no-content",l(e)?"done":"",p(e)?"current":"",t.status&&p(e)?["bk-step-".concat(t.status)]:""]},[(0,r.createVNode)("span",{class:["bk-step-indicator","bk-step-".concat(f(t)?"icon":"number")],style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[null!==(a=null===(i=(n=o.$slots)[e+1])||void 0===i?void 0:i.call(n))&&void 0!==a?a: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)})(),a})()));
@@ -117,6 +117,9 @@
117
117
  .bk-steps .bk-step.done .bk-step-description {
118
118
  color: #63656e;
119
119
  }
120
+ .bk-steps .bk-step.done .bk-steps-icon {
121
+ font-size: 22px;
122
+ }
120
123
  .bk-steps .bk-step.current .bk-step-number,
121
124
  .bk-steps .bk-step.current .bk-step-icon,
122
125
  .bk-steps .bk-step.current .bk-step-text {
@@ -266,7 +269,7 @@
266
269
  line-height: 20px;
267
270
  }
268
271
  .bk-steps-small .bk-step .bk-step-number {
269
- font-size: 1px;
272
+ font-size: 12px;
270
273
  }
271
274
  .bk-steps-small .bk-step .bk-icon {
272
275
  font-size: 20px;
@@ -105,44 +105,57 @@ declare const _default: import("vue").DefineComponent<{
105
105
  }, {
106
106
  defaultSteps: import("vue").Ref<any[]>;
107
107
  jumpTo: (index: any) => Promise<void>;
108
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curStep")[], "click" | "update:curStep", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
109
- theme?: unknown;
110
- size?: unknown;
111
- curStep?: unknown;
112
- controllable?: unknown;
113
- direction?: unknown;
114
- status?: unknown;
115
- lineType?: unknown;
116
- text?: unknown;
117
- extCls?: unknown;
118
- steps?: unknown;
119
- beforeChange?: unknown;
120
- } & {
121
- text: boolean;
122
- theme: string;
123
- extCls: string;
124
- direction: string;
125
- status: string;
126
- lineType: string;
127
- curStep: number;
128
- controllable: boolean;
129
- steps: unknown[];
130
- } & {
131
- size?: string;
132
- beforeChange?: (...args: any[]) => any;
133
- }> & {
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;
111
+ };
112
+ size: import("vue-types").VueTypeDef<string>;
113
+ curStep: import("vue-types").VueTypeValidableDef<number> & {
114
+ default: number;
115
+ } & {
116
+ default: number;
117
+ };
118
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
119
+ default: boolean;
120
+ } & {
121
+ default: boolean;
122
+ };
123
+ direction: import("vue-types").VueTypeDef<string> & {
124
+ default: string;
125
+ };
126
+ status: import("vue-types").VueTypeDef<string> & {
127
+ default: string;
128
+ };
129
+ lineType: import("vue-types").VueTypeDef<string> & {
130
+ default: string;
131
+ };
132
+ text: import("vue-types").VueTypeValidableDef<boolean> & {
133
+ default: boolean;
134
+ };
135
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
136
+ default: string;
137
+ };
138
+ steps: import("vue-types").VueTypeValidableDef<unknown[]> & {
139
+ default: () => unknown[];
140
+ } & {
141
+ default: () => unknown[];
142
+ };
143
+ beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
144
+ default: (...args: any[]) => any;
145
+ };
146
+ }>> & {
134
147
  onClick?: (...args: any[]) => any;
135
148
  "onUpdate:curStep"?: (...args: any[]) => any;
136
149
  }, {
137
150
  text: boolean;
138
151
  theme: string;
139
152
  extCls: string;
140
- beforeChange: (...args: any[]) => any;
141
153
  direction: string;
142
- status: string;
154
+ beforeChange: (...args: any[]) => any;
143
155
  lineType: string;
144
- curStep: number;
145
156
  controllable: boolean;
157
+ status: string;
158
+ curStep: number;
146
159
  steps: unknown[];
147
160
  }>;
148
161
  export default _default;