bkui-vue 0.0.1-beta.7 → 0.0.1-beta.70

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 (567) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +57 -0
  3. package/dist/index.esm.js +23796 -0
  4. package/dist/index.umd.js +57 -0
  5. package/dist/style.css +1 -2312
  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 +40 -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 +38 -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 +43 -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 +56 -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 +64 -31
  40. package/lib/button/button.d.ts +66 -30
  41. package/lib/button/button.less +53 -33
  42. package/lib/button/button.variable.css +102 -31
  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 +91 -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 +53 -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 +46 -0
  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 +311 -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 +750 -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 +49 -0
  104. package/lib/dialog/dialog.d.ts +294 -52
  105. package/lib/dialog/dialog.less +16 -0
  106. package/lib/dialog/dialog.variable.css +49 -0
  107. package/lib/dialog/index.d.ts +749 -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 +38 -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 +38 -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.d.ts +4 -0
  174. package/lib/icon/angle-up.js +1 -0
  175. package/lib/icon/archive-fill.d.ts +4 -0
  176. package/lib/icon/archive-fill.js +1 -0
  177. package/lib/icon/arrows-left.d.ts +4 -0
  178. package/lib/icon/arrows-left.js +1 -0
  179. package/lib/icon/arrows-right.d.ts +4 -0
  180. package/lib/icon/arrows-right.js +1 -0
  181. package/lib/icon/audio-fill.d.ts +4 -0
  182. package/lib/icon/audio-fill.js +1 -0
  183. package/lib/icon/bk.d.ts +4 -0
  184. package/lib/icon/bk.js +1 -0
  185. package/lib/icon/circle.d.ts +4 -0
  186. package/lib/icon/circle.js +1 -0
  187. package/lib/icon/close-line.d.ts +4 -0
  188. package/lib/icon/close-line.js +1 -0
  189. package/lib/icon/close.d.ts +4 -0
  190. package/lib/icon/close.js +1 -0
  191. package/lib/icon/code.d.ts +4 -0
  192. package/lib/icon/code.js +1 -0
  193. package/lib/icon/cog-shape.d.ts +4 -0
  194. package/lib/icon/cog-shape.js +1 -0
  195. package/lib/icon/collapse-left.d.ts +4 -0
  196. package/lib/icon/collapse-left.js +1 -0
  197. package/lib/icon/copy.d.ts +4 -0
  198. package/lib/icon/copy.js +1 -0
  199. package/lib/icon/data-shape.d.ts +4 -0
  200. package/lib/icon/data-shape.js +1 -0
  201. package/lib/icon/del.d.ts +4 -0
  202. package/lib/icon/del.js +1 -0
  203. package/lib/icon/doc-fill.d.ts +4 -0
  204. package/lib/icon/doc-fill.js +1 -0
  205. package/lib/icon/done.d.ts +4 -0
  206. package/lib/icon/done.js +1 -0
  207. package/lib/icon/down-shape.d.ts +4 -0
  208. package/lib/icon/down-shape.js +1 -0
  209. package/lib/icon/down-small.d.ts +4 -0
  210. package/lib/icon/down-small.js +1 -0
  211. package/lib/icon/edit-line.d.ts +4 -0
  212. package/lib/icon/edit-line.js +1 -0
  213. package/lib/icon/ellipsis.d.ts +4 -0
  214. package/lib/icon/ellipsis.js +1 -0
  215. package/lib/icon/error.d.ts +4 -0
  216. package/lib/icon/error.js +1 -0
  217. package/lib/icon/excel-fill.d.ts +4 -0
  218. package/lib/icon/excel-fill.js +1 -0
  219. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  220. package/lib/icon/exclamation-circle-shape.js +1 -0
  221. package/lib/icon/eye.d.ts +4 -0
  222. package/lib/icon/eye.js +1 -0
  223. package/lib/icon/folder-open.d.ts +4 -0
  224. package/lib/icon/folder-open.js +1 -0
  225. package/lib/icon/folder-shape-open.d.ts +4 -0
  226. package/lib/icon/folder-shape-open.js +1 -0
  227. package/lib/icon/folder-shape.d.ts +4 -0
  228. package/lib/icon/folder-shape.js +1 -0
  229. package/lib/icon/folder.d.ts +4 -0
  230. package/lib/icon/funnel.d.ts +4 -0
  231. package/lib/icon/funnel.js +1 -0
  232. package/lib/icon/help-document-fill.d.ts +4 -0
  233. package/lib/icon/help-document-fill.js +1 -0
  234. package/lib/icon/help-fill.d.ts +4 -0
  235. package/lib/icon/help-fill.js +1 -0
  236. package/lib/icon/help.d.ts +4 -0
  237. package/lib/icon/help.js +1 -0
  238. package/lib/icon/icon.d.ts +12 -0
  239. package/lib/icon/image-fill.d.ts +4 -0
  240. package/lib/icon/image-fill.js +1 -0
  241. package/lib/icon/index.d.ts +69 -0
  242. package/lib/icon/index.js +1 -15
  243. package/lib/icon/info-line.d.ts +4 -0
  244. package/lib/icon/info-line.js +1 -0
  245. package/lib/icon/info.d.ts +4 -0
  246. package/lib/icon/info.js +1 -0
  247. package/lib/icon/left-shape.d.ts +4 -0
  248. package/lib/icon/left-shape.js +1 -0
  249. package/lib/icon/pdf-fill.d.ts +4 -0
  250. package/lib/icon/pdf-fill.js +1 -0
  251. package/lib/icon/play-shape.d.ts +4 -0
  252. package/lib/icon/play-shape.js +1 -0
  253. package/lib/icon/plus.d.ts +4 -0
  254. package/lib/icon/plus.js +1 -0
  255. package/lib/icon/ppt-fill.d.ts +4 -0
  256. package/lib/icon/ppt-fill.js +1 -0
  257. package/lib/icon/qq.d.ts +4 -0
  258. package/lib/icon/qq.js +1 -0
  259. package/lib/icon/right-shape.d.ts +4 -0
  260. package/lib/icon/right-shape.js +1 -0
  261. package/lib/icon/search.d.ts +4 -0
  262. package/lib/icon/search.js +1 -0
  263. package/lib/icon/share.d.ts +4 -0
  264. package/lib/icon/share.js +1 -0
  265. package/lib/icon/spinner.d.ts +4 -0
  266. package/lib/icon/spinner.js +1 -0
  267. package/lib/icon/success.d.ts +4 -0
  268. package/lib/icon/success.js +1 -0
  269. package/lib/icon/switcher-loading.d.ts +4 -0
  270. package/lib/icon/switcher-loading.js +1 -0
  271. package/lib/icon/text-file.d.ts +4 -0
  272. package/lib/icon/text-file.js +1 -0
  273. package/lib/icon/text-fill.d.ts +4 -0
  274. package/lib/icon/text-fill.js +1 -0
  275. package/lib/icon/tree-application-shape.d.ts +4 -0
  276. package/lib/icon/tree-application-shape.js +1 -0
  277. package/lib/icon/unvisible.d.ts +4 -0
  278. package/lib/icon/unvisible.js +1 -0
  279. package/lib/icon/up-shape.d.ts +4 -0
  280. package/lib/icon/up-shape.js +1 -0
  281. package/lib/icon/upload.d.ts +4 -0
  282. package/lib/icon/upload.js +1 -0
  283. package/lib/icon/video-fill.d.ts +4 -0
  284. package/lib/icon/video-fill.js +1 -0
  285. package/lib/icon/warn.d.ts +4 -0
  286. package/lib/icon/warn.js +1 -0
  287. package/lib/icon/weixin.d.ts +4 -0
  288. package/lib/icon/weixin.js +1 -0
  289. package/lib/index.d.ts +3 -0
  290. package/lib/index.js +1 -0
  291. package/lib/input/index.d.ts +541 -0
  292. package/lib/input/index.js +1 -15
  293. package/lib/input/input.css +78 -4
  294. package/lib/input/input.d.ts +178 -48
  295. package/lib/input/input.less +89 -8
  296. package/lib/input/input.variable.css +117 -4
  297. package/lib/link/index.d.ts +164 -0
  298. package/lib/link/index.js +1 -1
  299. package/lib/link/link.d.ts +25 -13
  300. package/lib/link/link.variable.css +38 -0
  301. package/lib/loading/index.d.ts +172 -0
  302. package/lib/loading/index.js +1 -1
  303. package/lib/loading/loading.css +121 -75
  304. package/lib/loading/loading.d.ts +67 -20
  305. package/lib/loading/loading.less +78 -60
  306. package/lib/loading/loading.variable.css +159 -75
  307. package/lib/menu/index.d.ts +188 -0
  308. package/lib/menu/index.js +1 -0
  309. package/lib/menu/menu-group.d.ts +14 -0
  310. package/lib/menu/menu-item.d.ts +16 -0
  311. package/lib/menu/menu.css +190 -0
  312. package/lib/menu/menu.d.ts +64 -0
  313. package/lib/menu/menu.less +180 -0
  314. package/lib/menu/menu.variable.css +289 -0
  315. package/lib/menu/submenu.css +3 -0
  316. package/lib/menu/submenu.d.ts +22 -0
  317. package/lib/menu/submenu.less +5 -0
  318. package/lib/menu/submenu.variable.css +102 -0
  319. package/lib/menu/utils.d.ts +41 -0
  320. package/lib/message/index.d.ts +2 -0
  321. package/lib/message/index.js +1 -0
  322. package/lib/message/message.css +62 -0
  323. package/lib/message/message.less +72 -0
  324. package/lib/message/message.variable.css +161 -0
  325. package/lib/message/messageConstructor.d.ts +106 -0
  326. package/lib/modal/index.d.ts +627 -0
  327. package/lib/modal/index.js +1 -1
  328. package/lib/modal/modal.css +30 -1
  329. package/lib/modal/modal.d.ts +204 -24
  330. package/lib/modal/modal.less +39 -1
  331. package/lib/modal/modal.variable.css +30 -1
  332. package/lib/modal/props.mixin.d.ts +87 -10
  333. package/lib/navigation/index.d.ts +292 -0
  334. package/lib/navigation/index.js +1 -0
  335. package/lib/navigation/navigation-title.d.ts +25 -0
  336. package/lib/navigation/navigation.css +184 -0
  337. package/lib/navigation/navigation.d.ts +111 -0
  338. package/lib/navigation/navigation.less +210 -0
  339. package/lib/navigation/navigation.variable.css +283 -0
  340. package/lib/notify/index.d.ts +2 -0
  341. package/lib/notify/index.js +1 -0
  342. package/lib/notify/notify.css +65 -0
  343. package/lib/notify/notify.less +76 -0
  344. package/lib/notify/notify.variable.css +164 -0
  345. package/lib/notify/notifyConstructor.d.ts +135 -0
  346. package/lib/pagination/index.d.ts +395 -0
  347. package/lib/pagination/index.js +1 -0
  348. package/lib/pagination/pagination.css +179 -0
  349. package/lib/pagination/pagination.d.ts +220 -0
  350. package/lib/pagination/pagination.less +201 -0
  351. package/lib/pagination/pagination.variable.css +278 -0
  352. package/lib/pagination/type.d.ts +6 -0
  353. package/lib/pagination/use-limit.d.ts +8 -0
  354. package/lib/pagination/use-list.d.ts +8 -0
  355. package/lib/pagination/use-small-list.d.ts +5 -0
  356. package/lib/pagination/use-total.d.ts +5 -0
  357. package/lib/popover/index.d.ts +364 -0
  358. package/lib/popover/index.js +1 -1
  359. package/lib/popover/popover.css +26 -14
  360. package/lib/popover/popover.d.ts +111 -45
  361. package/lib/popover/popover.less +59 -46
  362. package/lib/popover/popover.variable.css +64 -14
  363. package/lib/popover/props.d.ts +99 -0
  364. package/lib/preset.d.ts +7 -0
  365. package/lib/preset.js +1 -0
  366. package/lib/process/index.d.ts +205 -0
  367. package/lib/process/index.js +1 -0
  368. package/lib/process/process.css +138 -0
  369. package/lib/process/process.d.ts +131 -0
  370. package/lib/process/process.less +178 -0
  371. package/lib/process/process.variable.css +237 -0
  372. package/lib/progress/index.d.ts +398 -0
  373. package/lib/progress/index.js +1 -1
  374. package/lib/progress/progress.css +8 -3
  375. package/lib/progress/progress.d.ts +88 -35
  376. package/lib/progress/progress.less +0 -4
  377. package/lib/progress/progress.variable.css +46 -3
  378. package/lib/radio/common.d.ts +5 -5
  379. package/lib/radio/index.d.ts +278 -0
  380. package/lib/radio/index.js +1 -1
  381. package/lib/radio/radio-button.d.ts +29 -20
  382. package/lib/radio/radio-group.d.ts +11 -10
  383. package/lib/radio/radio.css +14 -8
  384. package/lib/radio/radio.d.ts +27 -17
  385. package/lib/radio/radio.less +16 -9
  386. package/lib/radio/radio.variable.css +53 -9
  387. package/lib/radio/type.d.ts +10 -5
  388. package/lib/rate/index.d.ts +113 -0
  389. package/lib/rate/index.js +1 -1
  390. package/lib/rate/rate.d.ts +13 -10
  391. package/lib/rate/star.d.ts +33 -16
  392. package/lib/resize-layout/index.d.ts +336 -0
  393. package/lib/resize-layout/index.js +1 -0
  394. package/lib/resize-layout/resize-layout.css +189 -0
  395. package/lib/resize-layout/resize-layout.d.ts +127 -0
  396. package/lib/resize-layout/resize-layout.less +233 -0
  397. package/lib/resize-layout/resize-layout.variable.css +288 -0
  398. package/lib/select/common.d.ts +23 -17
  399. package/lib/select/index.d.ts +1377 -0
  400. package/lib/select/index.js +1 -1
  401. package/lib/select/option.d.ts +12 -19
  402. package/lib/select/optionGroup.d.ts +54 -0
  403. package/lib/select/select.css +245 -29
  404. package/lib/select/select.d.ts +282 -156
  405. package/lib/select/select.less +237 -40
  406. package/lib/select/select.variable.css +283 -29
  407. package/lib/select/type.d.ts +31 -0
  408. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  409. package/lib/shared/index.d.ts +71 -0
  410. package/lib/shared/index.js +1 -1
  411. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  412. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  413. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +60 -6
  414. package/lib/shared/token.d.ts +2 -0
  415. package/lib/shared/utils.d.ts +6 -0
  416. package/lib/shared/vue-types.d.ts +12 -7
  417. package/lib/shared/z-index-manager.d.ts +6 -1
  418. package/lib/sideslider/index.d.ts +531 -0
  419. package/lib/sideslider/index.js +1 -1
  420. package/lib/sideslider/sideslider.css +48 -3
  421. package/lib/sideslider/sideslider.d.ts +205 -30
  422. package/lib/sideslider/sideslider.less +65 -6
  423. package/lib/sideslider/sideslider.variable.css +86 -3
  424. package/lib/slider/index.d.ts +440 -0
  425. package/lib/slider/index.js +1 -0
  426. package/lib/slider/slider-button.d.ts +80 -0
  427. package/lib/slider/slider.css +149 -0
  428. package/lib/slider/slider.d.ts +201 -0
  429. package/lib/slider/slider.less +179 -0
  430. package/lib/slider/slider.variable.css +248 -0
  431. package/lib/steps/index.d.ts +250 -0
  432. package/lib/steps/index.js +1 -15
  433. package/lib/steps/steps.css +4 -1
  434. package/lib/steps/steps.d.ts +42 -29
  435. package/lib/steps/steps.less +5 -1
  436. package/lib/steps/steps.variable.css +42 -1
  437. package/lib/styles/index.d.ts +51 -0
  438. package/lib/styles/mixins/clearfix.css +8 -0
  439. package/lib/styles/mixins/clearfix.less +10 -0
  440. package/lib/styles/mixins/clearfix.variable.css +8 -0
  441. package/lib/styles/mixins/mixins.css +8 -0
  442. package/lib/styles/mixins/mixins.less +1 -0
  443. package/lib/styles/mixins/mixins.variable.css +8 -0
  444. package/lib/styles/mixins/popper.css +43 -0
  445. package/lib/styles/mixins/popper.less +52 -0
  446. package/lib/styles/mixins/popper.variable.css +43 -0
  447. package/lib/styles/mixins/size.less +9 -0
  448. package/lib/styles/reset.css +273 -0
  449. package/lib/styles/reset.less +313 -0
  450. package/lib/styles/reset.variable.css +273 -0
  451. package/lib/styles/themes/themes.less +60 -2
  452. package/lib/swiper/index.d.ts +181 -0
  453. package/lib/swiper/index.js +1 -0
  454. package/lib/swiper/swiper.css +91 -0
  455. package/lib/swiper/swiper.d.ts +65 -0
  456. package/lib/swiper/swiper.less +107 -0
  457. package/lib/swiper/swiper.variable.css +91 -0
  458. package/lib/switcher/index.d.ts +286 -0
  459. package/lib/switcher/index.js +1 -1
  460. package/lib/switcher/switcher.css +157 -135
  461. package/lib/switcher/switcher.d.ts +48 -32
  462. package/lib/switcher/switcher.less +211 -153
  463. package/lib/switcher/switcher.variable.css +195 -135
  464. package/lib/tab/index.d.ts +440 -0
  465. package/lib/tab/index.js +1 -0
  466. package/lib/tab/props.d.ts +194 -0
  467. package/lib/tab/tab-nav.d.ts +169 -0
  468. package/lib/tab/tab-panel.d.ts +73 -0
  469. package/lib/tab/tab.css +167 -0
  470. package/lib/tab/tab.d.ts +139 -0
  471. package/lib/tab/tab.less +228 -0
  472. package/lib/tab/tab.variable.css +266 -0
  473. package/lib/table/const.d.ts +4 -0
  474. package/lib/table/index.d.ts +359 -0
  475. package/lib/table/index.js +1 -1
  476. package/lib/table/plugins/head-filter.css +68 -0
  477. package/lib/table/plugins/head-filter.less +83 -0
  478. package/lib/table/plugins/head-filter.variable.css +167 -0
  479. package/lib/table/plugins/head-sort.css +22 -0
  480. package/lib/table/plugins/head-sort.less +28 -0
  481. package/lib/table/plugins/head-sort.variable.css +121 -0
  482. package/lib/table/plugins/settings.css +110 -0
  483. package/lib/table/plugins/settings.less +136 -0
  484. package/lib/table/plugins/settings.variable.css +209 -0
  485. package/lib/table/props.d.ts +189 -0
  486. package/lib/table/render.d.ts +121 -0
  487. package/lib/table/table.css +387 -0
  488. package/lib/table/table.d.ts +114 -36
  489. package/lib/table/table.less +229 -1
  490. package/lib/table/table.variable.css +425 -0
  491. package/lib/table/use-common.d.ts +19 -0
  492. package/lib/table/utils.d.ts +93 -0
  493. package/lib/tag/index.d.ts +229 -0
  494. package/lib/tag/index.js +1 -1
  495. package/lib/tag/tag.css +97 -0
  496. package/lib/tag/tag.d.ts +83 -53
  497. package/lib/tag/tag.less +110 -2
  498. package/lib/tag/tag.variable.css +135 -0
  499. package/lib/tag-input/common.d.ts +24 -0
  500. package/lib/tag-input/index.d.ts +894 -0
  501. package/lib/tag-input/index.js +1 -0
  502. package/lib/tag-input/list-tag-render.d.ts +47 -0
  503. package/lib/tag-input/tag-input.css +209 -0
  504. package/lib/tag-input/tag-input.d.ts +374 -0
  505. package/lib/tag-input/tag-input.less +251 -0
  506. package/lib/tag-input/tag-input.variable.css +308 -0
  507. package/lib/tag-input/tag-props.d.ts +131 -0
  508. package/lib/tag-input/tag-render.d.ts +38 -0
  509. package/lib/timeline/index.d.ts +129 -0
  510. package/lib/timeline/index.js +1 -0
  511. package/lib/timeline/timeline.css +235 -0
  512. package/lib/timeline/timeline.d.ts +81 -0
  513. package/lib/timeline/timeline.less +239 -0
  514. package/lib/timeline/timeline.variable.css +334 -0
  515. package/lib/transfer/index.d.ts +351 -0
  516. package/lib/transfer/index.js +1 -0
  517. package/lib/transfer/transfer.css +158 -0
  518. package/lib/transfer/transfer.d.ts +185 -0
  519. package/lib/transfer/transfer.less +171 -0
  520. package/lib/transfer/transfer.variable.css +257 -0
  521. package/lib/tree/constant.d.ts +29 -0
  522. package/lib/tree/index.d.ts +404 -0
  523. package/lib/tree/index.js +1 -0
  524. package/lib/tree/props.d.ts +145 -0
  525. package/lib/tree/tree.css +53 -0
  526. package/lib/tree/tree.d.ts +172 -0
  527. package/lib/tree/tree.less +66 -0
  528. package/lib/tree/tree.variable.css +152 -0
  529. package/lib/tree/use-empty.d.ts +6 -0
  530. package/lib/tree/use-node-action.d.ts +10 -0
  531. package/lib/tree/use-node-async.d.ts +5 -0
  532. package/lib/tree/use-node-attribute.d.ts +22 -0
  533. package/lib/tree/use-node-drag.d.ts +3 -0
  534. package/lib/tree/use-search.d.ts +11 -0
  535. package/lib/tree/use-tree-init.d.ts +12 -0
  536. package/lib/tree/util.d.ts +66 -0
  537. package/lib/upload/index.d.ts +2 -0
  538. package/lib/upload/index.js +1 -0
  539. package/lib/upload/props.d.ts +113 -0
  540. package/lib/upload/upload-list.d.ts +46 -0
  541. package/lib/upload/upload-trigger.d.ts +54 -0
  542. package/lib/upload/upload.css +374 -0
  543. package/lib/upload/upload.d.ts +252 -0
  544. package/lib/upload/upload.less +455 -0
  545. package/lib/upload/upload.type.d.ts +78 -0
  546. package/lib/upload/upload.variable.css +473 -0
  547. package/lib/upload/use-ajax-upload.d.ts +3 -0
  548. package/lib/upload/use-file-handler.d.ts +44 -0
  549. package/lib/use-form.d.ts +3 -0
  550. package/lib/use-message.d.ts +2 -0
  551. package/lib/virtual-render/index.d.ts +579 -0
  552. package/lib/virtual-render/index.js +1 -0
  553. package/lib/virtual-render/props.d.ts +167 -0
  554. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  555. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  556. package/lib/virtual-render/virtual-render.css +33 -0
  557. package/lib/virtual-render/virtual-render.d.ts +255 -0
  558. package/lib/virtual-render/virtual-render.less +43 -0
  559. package/lib/virtual-render/virtual-render.variable.css +33 -0
  560. package/package.json +107 -78
  561. package/dist/bkui-vue.cjs.js +0 -4978
  562. package/dist/bkui-vue.esm.js +0 -4974
  563. package/dist/bkui-vue.umd.js +0 -4981
  564. package/lib/styles/index.js +0 -1
  565. package/lib/table/common.d.ts +0 -3
  566. package/lib/table/table-layout.d.ts +0 -14
  567. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,205 @@
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<import("vue").ExtractPropTypes<{
13
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
14
+ default: () => unknown[];
15
+ } & {
16
+ default: () => unknown[];
17
+ };
18
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
19
+ default: boolean;
20
+ } & {
21
+ default: boolean;
22
+ };
23
+ showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
24
+ default: boolean;
25
+ } & {
26
+ default: boolean;
27
+ };
28
+ curProcess: import("vue-types").VueTypeValidableDef<number> & {
29
+ default: number;
30
+ } & {
31
+ default: number;
32
+ };
33
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
34
+ default: string;
35
+ } & {
36
+ default: string;
37
+ };
38
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
39
+ default: string;
40
+ };
41
+ }>> & {
42
+ onClick?: (...args: any[]) => any;
43
+ "onUpdate:curProcess"?: (...args: any[]) => any;
44
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "list" | "extCls" | "controllable" | "showSteps" | "curProcess" | "displayKey">;
45
+ $attrs: {
46
+ [x: string]: unknown;
47
+ };
48
+ $refs: {
49
+ [x: string]: unknown;
50
+ };
51
+ $slots: Readonly<{
52
+ [name: string]: import("vue").Slot;
53
+ }>;
54
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
55
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
56
+ $emit: (event: "click" | "update:curProcess", ...args: any[]) => void;
57
+ $el: any;
58
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
59
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
60
+ default: () => unknown[];
61
+ } & {
62
+ default: () => unknown[];
63
+ };
64
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
65
+ default: boolean;
66
+ } & {
67
+ default: boolean;
68
+ };
69
+ showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
70
+ default: boolean;
71
+ } & {
72
+ default: boolean;
73
+ };
74
+ curProcess: import("vue-types").VueTypeValidableDef<number> & {
75
+ default: number;
76
+ } & {
77
+ default: number;
78
+ };
79
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
80
+ default: string;
81
+ } & {
82
+ default: string;
83
+ };
84
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
85
+ default: string;
86
+ };
87
+ }>> & {
88
+ onClick?: (...args: any[]) => any;
89
+ "onUpdate:curProcess"?: (...args: any[]) => any;
90
+ }, {
91
+ defaultProcessList: import("vue").Ref<any[]>;
92
+ paddingBottom: import("vue").Ref<number>;
93
+ jumpTo: (index: any) => Promise<void>;
94
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], string, {
95
+ list: unknown[];
96
+ extCls: string;
97
+ controllable: boolean;
98
+ showSteps: boolean;
99
+ curProcess: number;
100
+ displayKey: string;
101
+ }> & {
102
+ beforeCreate?: (() => void) | (() => void)[];
103
+ created?: (() => void) | (() => void)[];
104
+ beforeMount?: (() => void) | (() => void)[];
105
+ mounted?: (() => void) | (() => void)[];
106
+ beforeUpdate?: (() => void) | (() => void)[];
107
+ updated?: (() => void) | (() => void)[];
108
+ activated?: (() => void) | (() => void)[];
109
+ deactivated?: (() => void) | (() => void)[];
110
+ beforeDestroy?: (() => void) | (() => void)[];
111
+ beforeUnmount?: (() => void) | (() => void)[];
112
+ destroyed?: (() => void) | (() => void)[];
113
+ unmounted?: (() => void) | (() => void)[];
114
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
115
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
116
+ 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)[];
117
+ };
118
+ $forceUpdate: () => void;
119
+ $nextTick: typeof import("vue").nextTick;
120
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
121
+ } & Readonly<import("vue").ExtractPropTypes<{
122
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
123
+ default: () => unknown[];
124
+ } & {
125
+ default: () => unknown[];
126
+ };
127
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
128
+ default: boolean;
129
+ } & {
130
+ default: boolean;
131
+ };
132
+ showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
133
+ default: boolean;
134
+ } & {
135
+ default: boolean;
136
+ };
137
+ curProcess: import("vue-types").VueTypeValidableDef<number> & {
138
+ default: number;
139
+ } & {
140
+ default: number;
141
+ };
142
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
143
+ default: string;
144
+ } & {
145
+ default: string;
146
+ };
147
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
148
+ default: string;
149
+ };
150
+ }>> & {
151
+ onClick?: (...args: any[]) => any;
152
+ "onUpdate:curProcess"?: (...args: any[]) => any;
153
+ } & import("vue").ShallowUnwrapRef<{
154
+ defaultProcessList: import("vue").Ref<any[]>;
155
+ paddingBottom: import("vue").Ref<number>;
156
+ jumpTo: (index: any) => Promise<void>;
157
+ }> & {} & {} & import("vue").ComponentCustomProperties;
158
+ __isFragment?: never;
159
+ __isTeleport?: never;
160
+ __isSuspense?: never;
161
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
162
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
163
+ default: () => unknown[];
164
+ } & {
165
+ default: () => unknown[];
166
+ };
167
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
168
+ default: boolean;
169
+ } & {
170
+ default: boolean;
171
+ };
172
+ showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
173
+ default: boolean;
174
+ } & {
175
+ default: boolean;
176
+ };
177
+ curProcess: import("vue-types").VueTypeValidableDef<number> & {
178
+ default: number;
179
+ } & {
180
+ default: number;
181
+ };
182
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
183
+ default: string;
184
+ } & {
185
+ default: string;
186
+ };
187
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
188
+ default: string;
189
+ };
190
+ }>> & {
191
+ onClick?: (...args: any[]) => any;
192
+ "onUpdate:curProcess"?: (...args: any[]) => any;
193
+ }, {
194
+ defaultProcessList: import("vue").Ref<any[]>;
195
+ paddingBottom: import("vue").Ref<number>;
196
+ jumpTo: (index: any) => Promise<void>;
197
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], "click" | "update:curProcess", {
198
+ list: unknown[];
199
+ extCls: string;
200
+ controllable: boolean;
201
+ showSteps: boolean;
202
+ curProcess: number;
203
+ displayKey: string;
204
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
205
+ export default BkSteps;
@@ -0,0 +1 @@
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../icon")):e(t["../shared"],t.vue,t["../icon"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r)=>(()=>{var n={7162:(t,e,r)=>{t.exports=r(5047)},5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new T(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 u=l(t,e,r);if("normal"===u.type){if(n=r.done?d:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.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=s;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(k([])));x&&x!==r&&n.call(x,i)&&(b=x);var P=m.prototype=v.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.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){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.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 O(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 T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(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,u(P,"constructor",m),u(m,"constructor",g),g.displayName=u(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,u(t,c,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},L(j.prototype),u(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(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(P),u(P,c,"Generator"),u(P,i,(function(){return this})),u(P,"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=k,T.prototype={constructor:T,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 u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)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:k(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:()=>l});var t=i(4212);function e(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}var r=i(748),n=i(7162),o=i.n(n);Object.create,Object.create;var c=i(6870),u={list:t.PropTypes.array.def([]),controllable:t.PropTypes.bool.def(!1),showSteps:t.PropTypes.bool.def(!1),curProcess:t.PropTypes.number.def(0),displayKey:t.PropTypes.string.def("content"),extCls:t.PropTypes.string};const s=(0,r.defineComponent)({name:"BKProcess",props:u,emits:["update:curProcess","click"],setup:function(t,n){var i=this,a=n.emit,c=(0,r.ref)([]),u=(0,r.ref)(0);return(0,r.onMounted)((function(){var r,n,o,i;(r=c.value).splice.apply(r,[0,c.value.length].concat([{content:"步骤1"},{content:"步骤2"},{content:"步骤3"},{content:"步骤4"},{content:"步骤5"}])),console.log("props.list",t.list),(null===(n=t.list)||void 0===n?void 0:n.length)&&(o=c.value).splice.apply(o,[0,c.value.length].concat(function(t){if(Array.isArray(t))return e(t)}(i=t.list)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||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}}(i)||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.")}()))})),{defaultProcessList:c,paddingBottom:u,jumpTo:function(e){return r=i,n=void 0,c=void 0,u=o().mark((function r(){return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:console.log(e);try{t.controllable&&e!==t.curProcess&&(console.log(t.curProcess),a("update:curProcess",e),console.log(t.curProcess),a("click",e))}catch(t){console.warn(t)}case 2:case"end":return r.stop()}}),r)})),new(c||(c=Promise))((function(t,e){function o(t){try{a(u.next(t))}catch(t){e(t)}}function i(t){try{a(u.throw(t))}catch(t){e(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof c?r:new c((function(t){t(r)}))).then(o,i)}a((u=u.apply(r,n||[])).next())}));var r,n,c,u}}},render:function(){var e,n,o,i=this,a=(0,t.classes)((e={},n="".concat(this.extCls),o=!!this.extCls,n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e),"".concat("bk-process")),u=function(t){return"loading"===t.status},s=function(t){return t.icon?t.icon:""},l=function(t,e){return t===i.curProcess-1&&u(e)?(0,r.createVNode)(c.Circle,{class:"bk-icon bk-process-icon icon-loading"},null):function(t){return"error"===t.status}(e)?(0,r.createVNode)(c.Error,{class:"bk-process-icon"},null):function(t){return i.curProcess>=t+1||"done"===i.defaultProcessList[t].status}(t)?(0,r.createVNode)(c.Done,{class:"bk-process-icon-done"},null):(0,r.createVNode)("span",{class:"number"},[s(e)])};return(0,r.createVNode)("div",{class:a},[(0,r.createVNode)("ul",{style:{paddingBottom:"".concat(this.paddingBottom,"px")}},[this.defaultProcessList.map((function(t,e){return(0,r.createVNode)("li",{onClick:function(){i.jumpTo(e+1)},style:{cursor:i.controllable?"pointer":""},class:{success:i.curProcess>=e+1,current:u(t)&&e===i.curProcess-1}},[t[i.displayKey],l(e,t)])}))])])}}),l=(0,t.withInstall)(s)})(),a})()));
@@ -0,0 +1,138 @@
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
+ font-size: 22px;
35
+ line-height: 18px;
36
+ }
37
+ .bk-process .bk-icon.icon-loading {
38
+ display: inline-block;
39
+ font-size: 14px;
40
+ animation: loadingCircle 1s infinite linear;
41
+ }
42
+ .bk-process > ul {
43
+ -ms-display: flex;
44
+ -moz-display: flex;
45
+ -webkit-display: flex;
46
+ display: table;
47
+ display: flex;
48
+ width: 100%;
49
+ padding: 0;
50
+ margin: auto;
51
+ }
52
+ .bk-process li {
53
+ position: relative;
54
+ display: table-cell;
55
+ height: 24px;
56
+ font-family: PingFang SC,Microsoft Yahei,Helvetica,Aria;
57
+ font-size: 12px;
58
+ line-height: 24px;
59
+ color: #63656e;
60
+ text-align: center;
61
+ background-color: #f0f1f5;
62
+ flex: 1;
63
+ }
64
+ .bk-process li i {
65
+ display: none;
66
+ }
67
+ .bk-process li:first-of-type {
68
+ border-radius: 13px 0 0 13px;
69
+ }
70
+ .bk-process li:last-of-type {
71
+ border-radius: 0 13px 13px 0;
72
+ }
73
+ .bk-process li:last-of-type::before {
74
+ display: none;
75
+ }
76
+ .bk-process li:last-of-type::after {
77
+ display: none;
78
+ }
79
+ .bk-process li::before {
80
+ position: absolute;
81
+ top: 0;
82
+ right: -25px;
83
+ z-index: 1;
84
+ width: 0;
85
+ height: 0;
86
+ border: 12px solid;
87
+ border-color: transparent transparent transparent #fff;
88
+ content: '';
89
+ }
90
+ .bk-process li::after {
91
+ position: absolute;
92
+ top: 0;
93
+ right: -23px;
94
+ z-index: 1;
95
+ width: 0;
96
+ height: 0;
97
+ border: 12px solid;
98
+ border-color: transparent transparent transparent #f0f1f5;
99
+ content: '';
100
+ }
101
+ .bk-process li .bk-process-step {
102
+ font-size: 12px;
103
+ }
104
+ .bk-process li .bk-process-step dd {
105
+ margin: 0;
106
+ line-height: 32px;
107
+ }
108
+ .bk-process li .bk-process-step i {
109
+ display: none;
110
+ }
111
+ .bk-process li .bk-process-step .success i {
112
+ display: inline-block;
113
+ color: #2dcb56;
114
+ }
115
+ .bk-process li .bk-process-step .steps-loading {
116
+ top: -2px;
117
+ }
118
+ .bk-process li.success {
119
+ color: #fff;
120
+ background: #2dcb56;
121
+ }
122
+ .bk-process li.success::after {
123
+ border-color: transparent transparent transparent #2dcb56;
124
+ }
125
+ .bk-process li.success .icon-done {
126
+ font-size: 22px;
127
+ line-height: 18px;
128
+ }
129
+ .bk-process li.current {
130
+ color: #fff;
131
+ background: #3a84ff;
132
+ }
133
+ .bk-process li.current::after {
134
+ border-color: transparent transparent transparent #3a84ff;
135
+ }
136
+ .bk-process li.current > .bk-spin-loading {
137
+ vertical-align: -3px;
138
+ }
@@ -0,0 +1,131 @@
1
+ /**
2
+ * Tencent is pleased to support the open source community by making
3
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
4
+ *
5
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
6
+ *
7
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
8
+ *
9
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
10
+ *
11
+ * ---------------------------------------------------
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
13
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
14
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
15
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16
+ *
17
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
18
+ * the Software.
19
+ *
20
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
21
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
23
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
+ * IN THE SOFTWARE.
25
+ */
26
+ import { ExtractPropTypes } from 'vue';
27
+ declare const processProps: {
28
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
29
+ default: () => unknown[];
30
+ } & {
31
+ default: () => unknown[];
32
+ };
33
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
34
+ default: boolean;
35
+ } & {
36
+ default: boolean;
37
+ };
38
+ showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
39
+ default: boolean;
40
+ } & {
41
+ default: boolean;
42
+ };
43
+ curProcess: import("vue-types").VueTypeValidableDef<number> & {
44
+ default: number;
45
+ } & {
46
+ default: number;
47
+ };
48
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
49
+ default: string;
50
+ } & {
51
+ default: string;
52
+ };
53
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
54
+ default: string;
55
+ };
56
+ };
57
+ export declare type ProcessPropType = ExtractPropTypes<typeof processProps>;
58
+ declare const _default: import("vue").DefineComponent<{
59
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
60
+ default: () => unknown[];
61
+ } & {
62
+ default: () => unknown[];
63
+ };
64
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
65
+ default: boolean;
66
+ } & {
67
+ default: boolean;
68
+ };
69
+ showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
70
+ default: boolean;
71
+ } & {
72
+ default: boolean;
73
+ };
74
+ curProcess: import("vue-types").VueTypeValidableDef<number> & {
75
+ default: number;
76
+ } & {
77
+ default: number;
78
+ };
79
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
80
+ default: string;
81
+ } & {
82
+ default: string;
83
+ };
84
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
85
+ default: string;
86
+ };
87
+ }, {
88
+ defaultProcessList: import("vue").Ref<any[]>;
89
+ paddingBottom: import("vue").Ref<number>;
90
+ jumpTo: (index: any) => Promise<void>;
91
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:curProcess")[], "click" | "update:curProcess", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
92
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
93
+ default: () => unknown[];
94
+ } & {
95
+ default: () => unknown[];
96
+ };
97
+ controllable: import("vue-types").VueTypeValidableDef<boolean> & {
98
+ default: boolean;
99
+ } & {
100
+ default: boolean;
101
+ };
102
+ showSteps: import("vue-types").VueTypeValidableDef<boolean> & {
103
+ default: boolean;
104
+ } & {
105
+ default: boolean;
106
+ };
107
+ curProcess: import("vue-types").VueTypeValidableDef<number> & {
108
+ default: number;
109
+ } & {
110
+ default: number;
111
+ };
112
+ displayKey: import("vue-types").VueTypeValidableDef<string> & {
113
+ default: string;
114
+ } & {
115
+ default: string;
116
+ };
117
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
118
+ default: string;
119
+ };
120
+ }>> & {
121
+ onClick?: (...args: any[]) => any;
122
+ "onUpdate:curProcess"?: (...args: any[]) => any;
123
+ }, {
124
+ list: unknown[];
125
+ extCls: string;
126
+ controllable: boolean;
127
+ showSteps: boolean;
128
+ curProcess: number;
129
+ displayKey: string;
130
+ }>;
131
+ export default _default;
@@ -0,0 +1,178 @@
1
+ @import '../styles/themes/themes.less';
2
+
3
+ @themeSelectors: primary, warning, success, danger;
4
+
5
+ * {
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ .bk-process {
10
+ position: relative;
11
+ display: flex;
12
+
13
+ @keyframes loadingCircle {
14
+ 100% {
15
+ transform: rotate(360deg);
16
+ }
17
+ }
18
+
19
+ .bk-process-toggle {
20
+ position: relative;
21
+ left: 15px;
22
+ width: 24px;
23
+ height: 24px;
24
+ font-size: 12px;
25
+ line-height: 24px;
26
+ color: @default-color;
27
+ text-align: center;
28
+ text-decoration: none;
29
+ border: 1px solid @light-gray;
30
+ border-radius: 50%;
31
+
32
+ &.active,
33
+ &:hover {
34
+ color: #fff;
35
+ background: @primary-color;
36
+ border-color: @primary-color;
37
+ }
38
+ }
39
+
40
+ .bk-process-icon {
41
+ &-done {
42
+ display: inline-block;
43
+ font-size: 22px;
44
+ line-height: 18px;
45
+ }
46
+
47
+ }
48
+
49
+ .bk-icon {
50
+ &.icon-loading {
51
+ display: inline-block;
52
+ font-size: @font-size-medium;
53
+ animation: loadingCircle 1s infinite linear;
54
+ }
55
+ }
56
+
57
+
58
+
59
+ > ul {
60
+ -ms-display: flex;
61
+ -moz-display: flex;
62
+ -webkit-display: flex;
63
+ display: table;
64
+ display: flex;
65
+ width: 100%;
66
+ padding: 0;
67
+ margin: auto;
68
+ }
69
+
70
+ li {
71
+ position: relative;
72
+ display: table-cell;
73
+ height: 24px;
74
+ font-family: PingFang SC,Microsoft Yahei,Helvetica,Aria;
75
+ font-size: 12px;
76
+ line-height: 24px;
77
+ color: @default-color;
78
+ text-align: center;
79
+ background-color: #f0f1f5;
80
+ flex: 1;
81
+
82
+ i {
83
+ display: none;
84
+ }
85
+
86
+ &:first-of-type {
87
+ border-radius: 13px 0 0 13px;
88
+ }
89
+
90
+ &:last-of-type {
91
+ border-radius: 0 13px 13px 0;
92
+
93
+ &::before {
94
+ display: none;
95
+ }
96
+
97
+ &::after {
98
+ display: none;
99
+ }
100
+ }
101
+
102
+ &::before {
103
+ position: absolute;
104
+ top: 0;
105
+ right: -25px;
106
+ z-index: 1;
107
+ width: 0;
108
+ height: 0;
109
+ border: 12px solid;
110
+ border-color: transparent transparent transparent #fff;
111
+ content: '';
112
+ }
113
+
114
+ &::after {
115
+ position: absolute;
116
+ top: 0;
117
+ right: -23px;
118
+ z-index: 1;
119
+ width: 0;
120
+ height: 0;
121
+ border: 12px solid;
122
+ border-color: transparent transparent transparent #f0f1f5;
123
+ content: '';
124
+ }
125
+
126
+ .bk-process-step {
127
+ font-size: 12px;
128
+ // color: $fnMainColor;
129
+
130
+ dd {
131
+ margin: 0;
132
+ line-height: 32px;
133
+ }
134
+
135
+ i {
136
+ display: none;
137
+ }
138
+
139
+ .success {
140
+ i {
141
+ display: inline-block;
142
+ color: @success-color;
143
+ }
144
+ }
145
+
146
+ .steps-loading {
147
+ top: -2px;
148
+ }
149
+ }
150
+
151
+ &.success {
152
+ color: #fff;
153
+ background: @success-color;
154
+
155
+ &::after {
156
+ border-color: transparent transparent transparent @success-color;
157
+ }
158
+
159
+ .icon-done {
160
+ font-size: 22px;
161
+ line-height: 18px;
162
+ }
163
+ }
164
+
165
+ &.current {
166
+ color: #fff;
167
+ background: @primary-color;
168
+
169
+ &::after {
170
+ border-color: transparent transparent transparent @primary-color;
171
+ }
172
+
173
+ >.bk-spin-loading {
174
+ vertical-align: -3px;
175
+ }
176
+ }
177
+ }
178
+ }