bkui-vue 0.0.1-beta.6 → 0.0.1-beta.60

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 (506) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +57 -0
  3. package/dist/index.esm.js +21606 -0
  4. package/dist/index.umd.js +57 -0
  5. package/dist/style.css +1 -2009
  6. package/lib/alert/alert.d.ts +24 -15
  7. package/lib/alert/alert.variable.css +33 -0
  8. package/lib/alert/index.d.ts +180 -0
  9. package/lib/alert/index.js +1 -1
  10. package/lib/animate-number/animate-number.d.ts +12 -7
  11. package/lib/animate-number/index.d.ts +97 -0
  12. package/lib/animate-number/index.js +1 -1
  13. package/lib/backtop/backtop.d.ts +27 -13
  14. package/lib/backtop/backtop.variable.css +33 -0
  15. package/lib/backtop/index.d.ts +166 -0
  16. package/lib/backtop/index.js +1 -1
  17. package/lib/badge/badge.css +5 -5
  18. package/lib/badge/badge.d.ts +64 -22
  19. package/lib/badge/badge.less +5 -6
  20. package/lib/badge/badge.variable.css +38 -5
  21. package/lib/badge/index.d.ts +267 -0
  22. package/lib/badge/index.js +1 -1
  23. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  24. package/lib/breadcrumb/breadcrumb.css +18 -1
  25. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  26. package/lib/breadcrumb/breadcrumb.less +13 -2
  27. package/lib/breadcrumb/breadcrumb.variable.css +51 -1
  28. package/lib/breadcrumb/index.d.ts +194 -0
  29. package/lib/breadcrumb/index.js +1 -1
  30. package/lib/button/button-group.d.ts +3 -5
  31. package/lib/button/button.css +41 -21
  32. package/lib/button/button.d.ts +66 -30
  33. package/lib/button/button.less +44 -28
  34. package/lib/button/button.variable.css +74 -21
  35. package/lib/button/index.d.ts +237 -0
  36. package/lib/button/index.js +1 -1
  37. package/lib/card/card.css +53 -1
  38. package/lib/card/card.d.ts +74 -18
  39. package/lib/card/card.less +50 -2
  40. package/lib/card/card.variable.css +86 -1
  41. package/lib/card/index.d.ts +283 -0
  42. package/lib/card/index.js +1 -1
  43. package/lib/checkbox/checkbox-group.d.ts +13 -9
  44. package/lib/checkbox/checkbox.css +12 -0
  45. package/lib/checkbox/checkbox.d.ts +33 -30
  46. package/lib/checkbox/checkbox.less +17 -0
  47. package/lib/checkbox/checkbox.variable.css +45 -0
  48. package/lib/checkbox/common.d.ts +3 -3
  49. package/lib/checkbox/index.d.ts +253 -0
  50. package/lib/checkbox/index.js +1 -1
  51. package/lib/checkbox/type.d.ts +9 -12
  52. package/lib/code-diff/code-diff.css +186 -0
  53. package/lib/code-diff/code-diff.d.ts +80 -0
  54. package/lib/code-diff/code-diff.less +238 -0
  55. package/lib/code-diff/code-diff.variable.css +280 -0
  56. package/lib/code-diff/index.d.ts +154 -0
  57. package/lib/code-diff/index.js +1 -0
  58. package/lib/collapse/collapse.css +8 -0
  59. package/lib/collapse/collapse.d.ts +50 -18
  60. package/lib/collapse/collapse.less +10 -0
  61. package/lib/collapse/collapse.variable.css +8 -0
  62. package/lib/collapse/index.d.ts +166 -0
  63. package/lib/collapse/index.js +1 -1
  64. package/lib/components.d.ts +42 -0
  65. package/lib/components.js +1 -0
  66. package/lib/container/col.d.ts +51 -0
  67. package/lib/container/container.css +48 -0
  68. package/lib/container/container.d.ts +83 -0
  69. package/lib/container/container.less +20 -0
  70. package/lib/container/container.variable.css +142 -0
  71. package/lib/container/index.d.ts +223 -0
  72. package/lib/container/index.js +1 -0
  73. package/lib/container/row.d.ts +4 -0
  74. package/lib/date-picker/date-picker.css +407 -0
  75. package/lib/date-picker/date-picker.d.ts +294 -0
  76. package/lib/date-picker/date-picker.less +526 -0
  77. package/lib/date-picker/date-picker.variable.css +501 -0
  78. package/lib/date-picker/fecha.d.ts +6 -0
  79. package/lib/date-picker/index.d.ts +713 -0
  80. package/lib/date-picker/index.js +1 -0
  81. package/lib/date-picker/interface.d.ts +22 -0
  82. package/lib/date-picker/props.d.ts +111 -0
  83. package/lib/date-picker/utils.d.ts +97 -0
  84. package/lib/dialog/dialog.css +40 -0
  85. package/lib/dialog/dialog.d.ts +226 -51
  86. package/lib/dialog/dialog.less +16 -0
  87. package/lib/dialog/dialog.variable.css +40 -0
  88. package/lib/dialog/index.d.ts +608 -0
  89. package/lib/dialog/index.js +1 -1
  90. package/lib/directives/clickoutside.d.ts +3 -0
  91. package/lib/directives/index.d.ts +3 -0
  92. package/lib/directives/index.js +2 -15
  93. package/lib/directives/index.js.LICENSE.txt +14 -0
  94. package/lib/directives/tooltips.d.ts +17 -0
  95. package/lib/dist.index.js +1 -0
  96. package/lib/divider/divider.css +38 -0
  97. package/lib/divider/divider.d.ts +48 -0
  98. package/lib/divider/divider.less +53 -0
  99. package/lib/divider/divider.variable.css +132 -0
  100. package/lib/divider/index.d.ts +142 -0
  101. package/lib/divider/index.js +1 -0
  102. package/lib/divider/props.d.ts +21 -0
  103. package/lib/dropdown/dropdown-item.d.ts +19 -0
  104. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  105. package/lib/dropdown/dropdown.css +43 -0
  106. package/lib/dropdown/dropdown.d.ts +63 -0
  107. package/lib/dropdown/dropdown.less +54 -0
  108. package/lib/dropdown/dropdown.variable.css +137 -0
  109. package/lib/dropdown/index.d.ts +200 -0
  110. package/lib/dropdown/index.js +1 -0
  111. package/lib/exception/exception.d.ts +11 -9
  112. package/lib/exception/exception.variable.css +33 -0
  113. package/lib/exception/index.d.ts +96 -0
  114. package/lib/exception/index.js +1 -1
  115. package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
  116. package/lib/fixed-navbar/fixed-navbar.variable.css +33 -0
  117. package/lib/fixed-navbar/index.d.ts +112 -0
  118. package/lib/fixed-navbar/index.js +1 -1
  119. package/lib/form/common.d.ts +3 -0
  120. package/lib/form/compose-form-item.d.ts +16 -0
  121. package/lib/form/form-item.d.ts +145 -0
  122. package/lib/form/form.css +113 -0
  123. package/lib/form/form.d.ts +64 -0
  124. package/lib/form/form.less +141 -0
  125. package/lib/form/form.variable.css +207 -0
  126. package/lib/form/index.d.ts +262 -0
  127. package/lib/form/index.js +1 -0
  128. package/lib/form/type.d.ts +21 -0
  129. package/lib/form/validator.d.ts +8 -0
  130. package/lib/icon/angle-double-down-line.d.ts +4 -0
  131. package/lib/icon/angle-double-down-line.js +1 -0
  132. package/lib/icon/angle-double-left-line.d.ts +4 -0
  133. package/lib/icon/angle-double-left-line.js +1 -0
  134. package/lib/icon/angle-double-left.d.ts +4 -0
  135. package/lib/icon/angle-double-left.js +1 -0
  136. package/lib/icon/angle-double-right-line.d.ts +4 -0
  137. package/lib/icon/angle-double-right-line.js +1 -0
  138. package/lib/icon/angle-double-right.d.ts +4 -0
  139. package/lib/icon/angle-double-right.js +1 -0
  140. package/lib/icon/angle-double-up-line.d.ts +4 -0
  141. package/lib/icon/angle-double-up-line.js +1 -0
  142. package/lib/icon/angle-down-fill.d.ts +4 -0
  143. package/lib/icon/angle-down-fill.js +1 -0
  144. package/lib/icon/angle-down-line.d.ts +4 -0
  145. package/lib/icon/angle-down-line.js +1 -0
  146. package/lib/icon/angle-down.d.ts +4 -0
  147. package/lib/icon/angle-down.js +1 -0
  148. package/lib/icon/angle-left.d.ts +4 -0
  149. package/lib/icon/angle-left.js +1 -0
  150. package/lib/icon/angle-right.d.ts +4 -0
  151. package/lib/icon/angle-right.js +1 -0
  152. package/lib/icon/angle-up-fill.d.ts +4 -0
  153. package/lib/icon/angle-up-fill.js +1 -0
  154. package/lib/icon/angle-up.d.ts +4 -0
  155. package/lib/icon/angle-up.js +1 -0
  156. package/lib/icon/arrows-left.d.ts +4 -0
  157. package/lib/icon/arrows-left.js +1 -0
  158. package/lib/icon/arrows-right.d.ts +4 -0
  159. package/lib/icon/arrows-right.js +1 -0
  160. package/lib/icon/bk.d.ts +4 -0
  161. package/lib/icon/bk.js +1 -0
  162. package/lib/icon/circle.d.ts +4 -0
  163. package/lib/icon/circle.js +1 -0
  164. package/lib/icon/close-line.d.ts +4 -0
  165. package/lib/icon/close-line.js +1 -0
  166. package/lib/icon/close.d.ts +4 -0
  167. package/lib/icon/close.js +1 -0
  168. package/lib/icon/code.d.ts +4 -0
  169. package/lib/icon/code.js +1 -0
  170. package/lib/icon/cog-shape.d.ts +4 -0
  171. package/lib/icon/cog-shape.js +1 -0
  172. package/lib/icon/collapse-left.d.ts +4 -0
  173. package/lib/icon/collapse-left.js +1 -0
  174. package/lib/icon/copy.d.ts +4 -0
  175. package/lib/icon/copy.js +1 -0
  176. package/lib/icon/data-shape.d.ts +4 -0
  177. package/lib/icon/data-shape.js +1 -0
  178. package/lib/icon/done.d.ts +4 -0
  179. package/lib/icon/done.js +1 -0
  180. package/lib/icon/down-shape.d.ts +4 -0
  181. package/lib/icon/down-shape.js +1 -0
  182. package/lib/icon/down-small.d.ts +4 -0
  183. package/lib/icon/down-small.js +1 -0
  184. package/lib/icon/edit-line.d.ts +4 -0
  185. package/lib/icon/edit-line.js +1 -0
  186. package/lib/icon/ellipsis.d.ts +4 -0
  187. package/lib/icon/ellipsis.js +1 -0
  188. package/lib/icon/error.d.ts +4 -0
  189. package/lib/icon/error.js +1 -0
  190. package/lib/icon/eye.d.ts +4 -0
  191. package/lib/icon/eye.js +1 -0
  192. package/lib/icon/folder-open.d.ts +4 -0
  193. package/lib/icon/folder-open.js +1 -0
  194. package/lib/icon/folder-shape-open.d.ts +4 -0
  195. package/lib/icon/folder-shape-open.js +1 -0
  196. package/lib/icon/folder-shape.d.ts +4 -0
  197. package/lib/icon/folder-shape.js +1 -0
  198. package/lib/icon/folder.d.ts +4 -0
  199. package/lib/icon/folder.js +1 -0
  200. package/lib/icon/funnel.d.ts +4 -0
  201. package/lib/icon/help-document-fill.d.ts +4 -0
  202. package/lib/icon/help-document-fill.js +1 -0
  203. package/lib/icon/help-fill.d.ts +4 -0
  204. package/lib/icon/help-fill.js +1 -0
  205. package/lib/icon/help.d.ts +4 -0
  206. package/lib/icon/help.js +1 -0
  207. package/lib/icon/icon.d.ts +12 -0
  208. package/lib/icon/index.d.ts +57 -0
  209. package/lib/icon/index.js +1 -15
  210. package/lib/icon/info-line.d.ts +4 -0
  211. package/lib/icon/info-line.js +1 -0
  212. package/lib/icon/info.d.ts +4 -0
  213. package/lib/icon/info.js +1 -0
  214. package/lib/icon/left-shape.d.ts +4 -0
  215. package/lib/icon/left-shape.js +1 -0
  216. package/lib/icon/play-shape.d.ts +4 -0
  217. package/lib/icon/play-shape.js +1 -0
  218. package/lib/icon/plus.d.ts +4 -0
  219. package/lib/icon/plus.js +1 -0
  220. package/lib/icon/qq.d.ts +4 -0
  221. package/lib/icon/qq.js +1 -0
  222. package/lib/icon/right-shape.d.ts +4 -0
  223. package/lib/icon/right-shape.js +1 -0
  224. package/lib/icon/search.d.ts +4 -0
  225. package/lib/icon/search.js +1 -0
  226. package/lib/icon/share.d.ts +4 -0
  227. package/lib/icon/share.js +1 -0
  228. package/lib/icon/spinner.d.ts +4 -0
  229. package/lib/icon/spinner.js +1 -0
  230. package/lib/icon/success.d.ts +4 -0
  231. package/lib/icon/success.js +1 -0
  232. package/lib/icon/switcher-loading.d.ts +4 -0
  233. package/lib/icon/switcher-loading.js +1 -0
  234. package/lib/icon/text-file.d.ts +4 -0
  235. package/lib/icon/text-file.js +1 -0
  236. package/lib/icon/tree-application-shape.d.ts +4 -0
  237. package/lib/icon/tree-application-shape.js +1 -0
  238. package/lib/icon/unvisible.d.ts +4 -0
  239. package/lib/icon/unvisible.js +1 -0
  240. package/lib/icon/up-shape.d.ts +4 -0
  241. package/lib/icon/up-shape.js +1 -0
  242. package/lib/icon/warn.d.ts +4 -0
  243. package/lib/icon/warn.js +1 -0
  244. package/lib/icon/weixin.d.ts +4 -0
  245. package/lib/icon/weixin.js +1 -0
  246. package/lib/index.d.ts +3 -0
  247. package/lib/index.js +1 -0
  248. package/lib/input/index.d.ts +451 -0
  249. package/lib/input/index.js +1 -15
  250. package/lib/input/input.css +75 -4
  251. package/lib/input/input.d.ts +118 -43
  252. package/lib/input/input.less +86 -8
  253. package/lib/input/input.variable.css +109 -4
  254. package/lib/link/index.d.ts +164 -0
  255. package/lib/link/index.js +1 -1
  256. package/lib/link/link.d.ts +25 -13
  257. package/lib/link/link.variable.css +33 -0
  258. package/lib/loading/index.d.ts +172 -0
  259. package/lib/loading/index.js +1 -1
  260. package/lib/loading/loading.css +118 -73
  261. package/lib/loading/loading.d.ts +67 -20
  262. package/lib/loading/loading.less +75 -58
  263. package/lib/loading/loading.variable.css +151 -73
  264. package/lib/menu/index.d.ts +188 -0
  265. package/lib/menu/index.js +1 -0
  266. package/lib/menu/menu-group.d.ts +14 -0
  267. package/lib/menu/menu-item.d.ts +16 -0
  268. package/lib/menu/menu.css +190 -0
  269. package/lib/menu/menu.d.ts +64 -0
  270. package/lib/menu/menu.less +180 -0
  271. package/lib/menu/menu.variable.css +284 -0
  272. package/lib/menu/submenu.css +3 -0
  273. package/lib/menu/submenu.d.ts +22 -0
  274. package/lib/menu/submenu.less +5 -0
  275. package/lib/menu/submenu.variable.css +97 -0
  276. package/lib/menu/utils.d.ts +41 -0
  277. package/lib/message/index.d.ts +2 -0
  278. package/lib/message/index.js +1 -0
  279. package/lib/message/message.css +62 -0
  280. package/lib/message/message.less +72 -0
  281. package/lib/message/message.variable.css +156 -0
  282. package/lib/message/messageConstructor.d.ts +106 -0
  283. package/lib/modal/index.d.ts +374 -0
  284. package/lib/modal/index.js +1 -1
  285. package/lib/modal/modal.css +20 -0
  286. package/lib/modal/modal.d.ts +108 -27
  287. package/lib/modal/modal.less +27 -0
  288. package/lib/modal/modal.variable.css +20 -0
  289. package/lib/modal/props.mixin.d.ts +44 -11
  290. package/lib/navigation/index.d.ts +2 -0
  291. package/lib/navigation/index.js +1 -0
  292. package/lib/navigation/navigation-title.d.ts +25 -0
  293. package/lib/navigation/navigation.css +184 -0
  294. package/lib/navigation/navigation.d.ts +111 -0
  295. package/lib/navigation/navigation.less +210 -0
  296. package/lib/navigation/navigation.variable.css +278 -0
  297. package/lib/notify/index.d.ts +2 -0
  298. package/lib/notify/index.js +1 -0
  299. package/lib/notify/notify.css +49 -0
  300. package/lib/notify/notify.less +58 -0
  301. package/lib/notify/notify.variable.css +143 -0
  302. package/lib/notify/notifyConstructor.d.ts +91 -0
  303. package/lib/pagination/index.d.ts +395 -0
  304. package/lib/pagination/index.js +1 -0
  305. package/lib/pagination/pagination.css +179 -0
  306. package/lib/pagination/pagination.d.ts +220 -0
  307. package/lib/pagination/pagination.less +201 -0
  308. package/lib/pagination/pagination.variable.css +273 -0
  309. package/lib/pagination/type.d.ts +6 -0
  310. package/lib/pagination/use-limit.d.ts +8 -0
  311. package/lib/pagination/use-list.d.ts +8 -0
  312. package/lib/pagination/use-small-list.d.ts +5 -0
  313. package/lib/pagination/use-total.d.ts +5 -0
  314. package/lib/popover/index.d.ts +318 -0
  315. package/lib/popover/index.js +1 -1
  316. package/lib/popover/popover.css +23 -14
  317. package/lib/popover/popover.d.ts +90 -46
  318. package/lib/popover/popover.less +57 -46
  319. package/lib/popover/popover.variable.css +56 -14
  320. package/lib/popover/props.d.ts +89 -0
  321. package/lib/preset.d.ts +7 -0
  322. package/lib/preset.js +1 -0
  323. package/lib/process/index.d.ts +205 -0
  324. package/lib/process/index.js +1 -0
  325. package/lib/process/process.css +138 -0
  326. package/lib/process/process.d.ts +131 -0
  327. package/lib/process/process.less +178 -0
  328. package/lib/process/process.variable.css +232 -0
  329. package/lib/progress/index.d.ts +398 -0
  330. package/lib/progress/index.js +1 -1
  331. package/lib/progress/progress.css +8 -3
  332. package/lib/progress/progress.d.ts +88 -35
  333. package/lib/progress/progress.less +0 -4
  334. package/lib/progress/progress.variable.css +41 -3
  335. package/lib/radio/common.d.ts +5 -5
  336. package/lib/radio/index.d.ts +278 -0
  337. package/lib/radio/index.js +1 -1
  338. package/lib/radio/radio-button.d.ts +29 -20
  339. package/lib/radio/radio-group.d.ts +11 -10
  340. package/lib/radio/radio.css +8 -2
  341. package/lib/radio/radio.d.ts +27 -17
  342. package/lib/radio/radio.less +9 -2
  343. package/lib/radio/radio.variable.css +41 -2
  344. package/lib/radio/type.d.ts +10 -5
  345. package/lib/rate/index.d.ts +113 -0
  346. package/lib/rate/index.js +1 -1
  347. package/lib/rate/rate.d.ts +13 -10
  348. package/lib/rate/star.d.ts +33 -16
  349. package/lib/resize-layout/index.d.ts +336 -0
  350. package/lib/resize-layout/index.js +1 -0
  351. package/lib/resize-layout/resize-layout.css +189 -0
  352. package/lib/resize-layout/resize-layout.d.ts +127 -0
  353. package/lib/resize-layout/resize-layout.less +233 -0
  354. package/lib/resize-layout/resize-layout.variable.css +283 -0
  355. package/lib/select/common.d.ts +23 -17
  356. package/lib/select/index.d.ts +1377 -0
  357. package/lib/select/index.js +1 -1
  358. package/lib/select/option.d.ts +12 -19
  359. package/lib/select/optionGroup.d.ts +54 -0
  360. package/lib/select/select.css +248 -17
  361. package/lib/select/select.d.ts +282 -156
  362. package/lib/select/select.less +251 -46
  363. package/lib/select/select.variable.css +281 -17
  364. package/lib/select/type.d.ts +31 -0
  365. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  366. package/lib/shared/index.d.ts +52 -0
  367. package/lib/shared/index.js +1 -1
  368. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
  369. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
  370. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
  371. package/lib/shared/utils.d.ts +6 -0
  372. package/lib/shared/vue-types.d.ts +8 -7
  373. package/lib/shared/z-index-manager.d.ts +6 -1
  374. package/lib/sideslider/index.d.ts +337 -0
  375. package/lib/sideslider/index.js +1 -1
  376. package/lib/sideslider/sideslider.d.ts +114 -30
  377. package/lib/sideslider/sideslider.variable.css +33 -0
  378. package/lib/slider/index.d.ts +27 -0
  379. package/lib/slider/index.js +1 -0
  380. package/lib/slider/slider-button.d.ts +80 -0
  381. package/lib/slider/slider.css +149 -0
  382. package/lib/slider/slider.d.ts +201 -0
  383. package/lib/slider/slider.less +179 -0
  384. package/lib/slider/slider.variable.css +243 -0
  385. package/lib/steps/index.d.ts +250 -0
  386. package/lib/steps/index.js +1 -0
  387. package/lib/steps/steps.css +288 -0
  388. package/lib/steps/steps.d.ts +161 -0
  389. package/lib/steps/steps.less +324 -0
  390. package/lib/steps/steps.variable.css +382 -0
  391. package/lib/styles/index.d.ts +48 -0
  392. package/lib/styles/mixins/clearfix.css +8 -0
  393. package/lib/styles/mixins/clearfix.less +10 -0
  394. package/lib/styles/mixins/clearfix.variable.css +8 -0
  395. package/lib/styles/mixins/mixins.css +8 -0
  396. package/lib/styles/mixins/mixins.less +1 -0
  397. package/lib/styles/mixins/mixins.variable.css +8 -0
  398. package/lib/styles/mixins/popper.css +43 -0
  399. package/lib/styles/mixins/popper.less +52 -0
  400. package/lib/styles/mixins/popper.variable.css +43 -0
  401. package/lib/styles/mixins/size.less +9 -0
  402. package/lib/styles/reset.css +273 -0
  403. package/lib/styles/reset.less +313 -0
  404. package/lib/styles/reset.variable.css +273 -0
  405. package/lib/styles/themes/themes.less +53 -2
  406. package/lib/swiper/index.d.ts +181 -0
  407. package/lib/swiper/index.js +1 -0
  408. package/lib/swiper/swiper.css +91 -0
  409. package/lib/swiper/swiper.d.ts +65 -0
  410. package/lib/swiper/swiper.less +107 -0
  411. package/lib/swiper/swiper.variable.css +91 -0
  412. package/lib/switcher/index.d.ts +286 -0
  413. package/lib/switcher/index.js +1 -1
  414. package/lib/switcher/switcher.css +157 -135
  415. package/lib/switcher/switcher.d.ts +48 -32
  416. package/lib/switcher/switcher.less +211 -153
  417. package/lib/switcher/switcher.variable.css +190 -135
  418. package/lib/tab/index.d.ts +443 -0
  419. package/lib/tab/index.js +1 -0
  420. package/lib/tab/props.d.ts +191 -0
  421. package/lib/tab/tab-nav.d.ts +165 -0
  422. package/lib/tab/tab-panel.d.ts +73 -0
  423. package/lib/tab/tab.css +148 -0
  424. package/lib/tab/tab.d.ts +140 -0
  425. package/lib/tab/tab.less +222 -0
  426. package/lib/tab/tab.variable.css +242 -0
  427. package/lib/table/const.d.ts +4 -0
  428. package/lib/table/index.d.ts +359 -0
  429. package/lib/table/index.js +1 -1
  430. package/lib/table/plugins/head-filter.css +68 -0
  431. package/lib/table/plugins/head-filter.less +83 -0
  432. package/lib/table/plugins/head-filter.variable.css +162 -0
  433. package/lib/table/plugins/head-sort.css +22 -0
  434. package/lib/table/plugins/head-sort.less +28 -0
  435. package/lib/table/plugins/head-sort.variable.css +116 -0
  436. package/lib/table/plugins/settings.css +110 -0
  437. package/lib/table/plugins/settings.less +136 -0
  438. package/lib/table/plugins/settings.variable.css +204 -0
  439. package/lib/table/props.d.ts +184 -0
  440. package/lib/table/render.d.ts +120 -0
  441. package/lib/table/table.css +321 -0
  442. package/lib/table/table.d.ts +114 -36
  443. package/lib/table/table.less +160 -1
  444. package/lib/table/table.variable.css +354 -0
  445. package/lib/table/use-common.d.ts +20 -0
  446. package/lib/table/utils.d.ts +83 -0
  447. package/lib/tag/index.d.ts +229 -0
  448. package/lib/tag/index.js +1 -1
  449. package/lib/tag/tag.css +97 -0
  450. package/lib/tag/tag.d.ts +83 -53
  451. package/lib/tag/tag.less +110 -2
  452. package/lib/tag/tag.variable.css +130 -0
  453. package/lib/tag-input/common.d.ts +24 -0
  454. package/lib/tag-input/index.d.ts +2 -0
  455. package/lib/tag-input/index.js +1 -0
  456. package/lib/tag-input/list-tag-render.d.ts +47 -0
  457. package/lib/tag-input/tag-input.css +208 -0
  458. package/lib/tag-input/tag-input.d.ts +374 -0
  459. package/lib/tag-input/tag-input.less +250 -0
  460. package/lib/tag-input/tag-input.variable.css +302 -0
  461. package/lib/tag-input/tag-props.d.ts +131 -0
  462. package/lib/tag-input/tag-render.d.ts +38 -0
  463. package/lib/timeline/index.d.ts +129 -0
  464. package/lib/timeline/index.js +1 -0
  465. package/lib/timeline/timeline.css +235 -0
  466. package/lib/timeline/timeline.d.ts +81 -0
  467. package/lib/timeline/timeline.less +239 -0
  468. package/lib/timeline/timeline.variable.css +329 -0
  469. package/lib/transfer/index.d.ts +351 -0
  470. package/lib/transfer/index.js +1 -0
  471. package/lib/transfer/transfer.css +158 -0
  472. package/lib/transfer/transfer.d.ts +185 -0
  473. package/lib/transfer/transfer.less +171 -0
  474. package/lib/transfer/transfer.variable.css +252 -0
  475. package/lib/tree/index.d.ts +266 -0
  476. package/lib/tree/index.js +1 -0
  477. package/lib/tree/props.d.ts +99 -0
  478. package/lib/tree/tree.css +50 -0
  479. package/lib/tree/tree.d.ts +110 -0
  480. package/lib/tree/tree.less +63 -0
  481. package/lib/tree/tree.variable.css +144 -0
  482. package/lib/tree/use-async.d.ts +5 -0
  483. package/lib/tree/use-node-action.d.ts +6 -0
  484. package/lib/tree/use-node-attribute.d.ts +13 -0
  485. package/lib/tree/util.d.ts +70 -0
  486. package/lib/use-form.d.ts +3 -0
  487. package/lib/use-message.d.ts +2 -0
  488. package/lib/virtual-render/index.d.ts +556 -0
  489. package/lib/virtual-render/index.js +1 -0
  490. package/lib/virtual-render/props.d.ts +157 -0
  491. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  492. package/lib/virtual-render/virtual-render.css +33 -0
  493. package/lib/virtual-render/virtual-render.d.ts +244 -0
  494. package/lib/virtual-render/virtual-render.less +43 -0
  495. package/lib/virtual-render/virtual-render.variable.css +33 -0
  496. package/package.json +108 -79
  497. package/dist/bkui-vue.cjs.js +0 -4887
  498. package/dist/bkui-vue.esm.js +0 -4883
  499. package/dist/bkui-vue.umd.js +0 -4890
  500. package/lib/checkbox-group/index.js +0 -1
  501. package/lib/radio-button/index.js +0 -1
  502. package/lib/radio-group/index.js +0 -1
  503. package/lib/styles/index.js +0 -1
  504. package/lib/table/common.d.ts +0 -3
  505. package/lib/table/table-layout.d.ts +0 -14
  506. package/lib/table/type.d.ts +0 -12
@@ -5,67 +5,78 @@
5
5
  display: inline-block;
6
6
  }
7
7
 
8
- .bk-popover-content {
9
- display: none;
10
- padding: 4px 8px;
11
- font-size: 13px;
12
- font-weight: bold;
8
+ .fade-in-enter-active,
9
+ .fade-in-linear-leave-active {
10
+ transition: opacity 200ms linear;
11
+ }
12
+
13
+ .fade-in-enter,
14
+ .fade-in-leave,
15
+ .fade-in-leave-active {
16
+ opacity: 0;
17
+ }
18
+ }
19
+
20
+ .bk-popover-content {
21
+ display: none;
22
+ padding: 7px 14px;
23
+ font-size: 12px;
24
+ color: #fff;
25
+ background: #26323d;
26
+ border-radius: 4px;
27
+ box-sizing: border-box;
28
+
29
+ &[data-theme^='dark'] {
13
30
  color: #fff;
14
31
  background: #26323d;
15
- border-radius: 4px;
16
- box-sizing: border-box;
32
+ }
17
33
 
18
- &[data-theme='dark'] {
19
- color: #fff;
20
- background: #26323d;
21
- }
34
+ &[data-theme^='light'] {
35
+ color: #26323d;
36
+ background-color: #fff;
37
+ box-shadow: 0 0 6px 0 #dcdee5;
22
38
 
23
- &[data-theme='light'] {
24
- color: #26323d;
25
- background-color: #fff;
39
+ &[data-show] {
26
40
  box-shadow: 0 0 6px 0 #dcdee5;
27
-
28
- &[data-show] {
29
- box-shadow: 0 0 6px 0 #dcdee5;
30
- }
31
41
  }
42
+ }
32
43
 
33
- &[data-show] {
34
- display: block;
35
- }
44
+ &[data-show] {
45
+ display: block;
46
+ }
47
+
48
+ .arrow {
49
+ position: absolute;
50
+ z-index: -1;
51
+ width: 8px;
52
+ height: 8px;
53
+ background: inherit;
54
+ visibility: hidden;
36
55
 
37
- .arrow {
56
+ &::before {
38
57
  position: absolute;
39
58
  width: 8px;
40
59
  height: 8px;
41
60
  background: inherit;
42
- visibility: hidden;
43
-
44
- &::before {
45
- position: absolute;
46
- width: 8px;
47
- height: 8px;
48
- background: inherit;
49
- content: '';
50
- visibility: visible;
51
- transform: rotate(45deg);
52
- }
61
+ content: '';
62
+ visibility: visible;
63
+ transform: rotate(45deg);
53
64
  }
65
+ }
54
66
 
55
- &[data-popper-placement^='top'] > .arrow {
56
- bottom: -4px;
57
- }
67
+ &[data-popper-placement^='top'] > .arrow {
68
+ bottom: -4px;
69
+ }
58
70
 
59
- &[data-popper-placement^='bottom'] > .arrow {
60
- top: -4px;
61
- }
71
+ &[data-popper-placement^='bottom'] > .arrow {
72
+ top: -4px;
73
+ }
62
74
 
63
- &[data-popper-placement^='left'] > .arrow {
64
- right: -4px;
65
- }
75
+ &[data-popper-placement^='left'] > .arrow {
76
+ right: -4px;
77
+ }
66
78
 
67
- &[data-popper-placement^='right'] > .arrow {
68
- left: -4px;
69
- }
79
+ &[data-popper-placement^='right'] > .arrow {
80
+ left: -4px;
70
81
  }
71
- }
82
+ }
@@ -1,10 +1,12 @@
1
1
  :root {
2
2
  --bk-prefix: bk;
3
+ --popover-max-height: 216px;
3
4
  --primary-color: #3a84ff;
4
5
  --success-color: #2dcb56;
5
6
  --warning-color: #ff9c01;
6
7
  --danger-color: #ea3636;
7
8
  --default-color: #63656e;
9
+ --gray-color: #979ba5;
8
10
  --light-gray: #c4c6cc;
9
11
  --white-color: white;
10
12
  --disable-color: #dcdee5;
@@ -58,43 +60,83 @@
58
60
  --link-success-disabled-color: #94f5a4;
59
61
  --link-warning-disabled-color: #ffd695;
60
62
  --link-danger-disabled-color: #fd9c9c;
63
+ --message-color: var(--default-color);
64
+ --message-primary-bg-color: #f0f8ff;
65
+ --message-primary-border-color: #e1ecff;
66
+ --message-warning-bg-color: #fff4e2;
67
+ --message-warning-border-color: #ffe8c3;
68
+ --message-success-bg-color: #f2fff4;
69
+ --message-success-border-color: #dcffe2;
70
+ --message-danger-bg-color: #ffeded;
71
+ --message-danger-border-color: #ffdddd;
72
+ --slider-default-bg: #dcdee5;
73
+ --slider-disable-bar-bg: #979ba5;
74
+ --menu-bg-color: #182132;
75
+ --submenu-bg-color: #151d2c;
76
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
77
+ --menu-color: #96a2b9;
78
+ --menu-group-color: var(--default-color);
79
+ --menu-width: 260px;
80
+ --menu-collapse-width: 60px;
81
+ --menu-active-color: white;
82
+ --nav-header-bg-color: #182132;
83
+ --nav-bg-color: #182132;
84
+ --date-picker-disabled-bg: #fafbfd;
85
+ --date-picker-dropdown-mb: 4px;
86
+ --date-picker-dropdown-bg: #fff;
87
+ --table-bg-color: var(--white-color);
88
+ --table-border-color: #dcdee5;
89
+ --table-head-bg-color: #fafbfd;
90
+ --table-head-font-color: #313238;
91
+ --table-body-font-color: #575961;
92
+ --table-row-hover-bg-color: #f5f7fa;
93
+ --table-row-active-bg-color: #f0f1f5;
61
94
  }
62
95
  .bk-popover .bk-popover-reference {
63
96
  display: inline-block;
64
97
  }
65
- .bk-popover .bk-popover-content {
98
+ .bk-popover .fade-in-enter-active,
99
+ .bk-popover .fade-in-linear-leave-active {
100
+ transition: opacity 200ms linear;
101
+ }
102
+ .bk-popover .fade-in-enter,
103
+ .bk-popover .fade-in-leave,
104
+ .bk-popover .fade-in-leave-active {
105
+ opacity: 0;
106
+ }
107
+ .bk-popover-content {
66
108
  display: none;
67
- padding: 4px 8px;
68
- font-size: 13px;
69
- font-weight: bold;
109
+ padding: 7px 14px;
110
+ font-size: 12px;
70
111
  color: #fff;
71
112
  background: #26323d;
72
113
  border-radius: 4px;
73
114
  box-sizing: border-box;
74
115
  }
75
- .bk-popover .bk-popover-content[data-theme='dark'] {
116
+ .bk-popover-content[data-theme^='dark'] {
76
117
  color: #fff;
77
118
  background: #26323d;
78
119
  }
79
- .bk-popover .bk-popover-content[data-theme='light'] {
120
+ .bk-popover-content[data-theme^='light'] {
80
121
  color: #26323d;
81
122
  background-color: #fff;
82
123
  box-shadow: 0 0 6px 0 #dcdee5;
83
124
  }
84
- .bk-popover .bk-popover-content[data-theme='light'][data-show] {
125
+ .bk-popover-content[data-theme^='light'][data-show] {
85
126
  box-shadow: 0 0 6px 0 #dcdee5;
86
127
  }
87
- .bk-popover .bk-popover-content[data-show] {
128
+ .bk-popover-content[data-show] {
88
129
  display: block;
89
130
  }
90
- .bk-popover .bk-popover-content .arrow {
131
+ .bk-popover-content .arrow {
91
132
  position: absolute;
133
+ z-index: -1;
92
134
  width: 8px;
93
135
  height: 8px;
94
136
  background: inherit;
95
137
  visibility: hidden;
96
138
  }
97
- .bk-popover .bk-popover-content .arrow::before {
139
+ .bk-popover-content .arrow::before {
98
140
  position: absolute;
99
141
  width: 8px;
100
142
  height: 8px;
@@ -103,15 +145,15 @@
103
145
  visibility: visible;
104
146
  transform: rotate(45deg);
105
147
  }
106
- .bk-popover .bk-popover-content[data-popper-placement^='top'] > .arrow {
148
+ .bk-popover-content[data-popper-placement^='top'] > .arrow {
107
149
  bottom: -4px;
108
150
  }
109
- .bk-popover .bk-popover-content[data-popper-placement^='bottom'] > .arrow {
151
+ .bk-popover-content[data-popper-placement^='bottom'] > .arrow {
110
152
  top: -4px;
111
153
  }
112
- .bk-popover .bk-popover-content[data-popper-placement^='left'] > .arrow {
154
+ .bk-popover-content[data-popper-placement^='left'] > .arrow {
113
155
  right: -4px;
114
156
  }
115
- .bk-popover .bk-popover-content[data-popper-placement^='right'] > .arrow {
157
+ .bk-popover-content[data-popper-placement^='right'] > .arrow {
116
158
  left: -4px;
117
159
  }
@@ -0,0 +1,89 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { OnFirstUpdateFnType } from '@bkui-vue/shared';
3
+ export declare const PopoverProps: {
4
+ onAfterHidden: FunctionConstructor;
5
+ onAfterShow: FunctionConstructor;
6
+ isShow: import("vue-types").VueTypeValidableDef<boolean> & {
7
+ default: boolean;
8
+ } & {
9
+ default: boolean;
10
+ };
11
+ width: import("vue-types").VueTypeDef<string | number> & {
12
+ default: string | number;
13
+ };
14
+ height: import("vue-types").VueTypeDef<string | number> & {
15
+ default: string | number;
16
+ };
17
+ content: import("vue-types").VueTypeDef<string | number> & {
18
+ default: string | number;
19
+ };
20
+ /**
21
+ * 动画展示方式
22
+ */
23
+ transition: import("vue-types").VueTypeValidableDef<string> & {
24
+ default: string;
25
+ } & {
26
+ default: string;
27
+ };
28
+ /**
29
+ * 展示位置
30
+ */
31
+ placement: import("vue-types").VueTypeDef<string> & {
32
+ default: string;
33
+ };
34
+ theme: import("vue-types").VueTypeValidableDef<string> & {
35
+ default: string;
36
+ } & {
37
+ default: string;
38
+ };
39
+ /**
40
+ * handleFirstUpdate
41
+ */
42
+ handleFirstUpdate: {
43
+ type: PropType<OnFirstUpdateFnType>;
44
+ default: () => void;
45
+ };
46
+ /**
47
+ * 触发方式
48
+ * 支持 click hover manual
49
+ * manual: 通过isShow控制显示、隐藏
50
+ */
51
+ trigger: import("vue-types").VueTypeValidableDef<string> & {
52
+ default: string;
53
+ } & {
54
+ default: string;
55
+ };
56
+ arrow: import("vue-types").VueTypeValidableDef<boolean> & {
57
+ default: boolean;
58
+ } & {
59
+ default: boolean;
60
+ };
61
+ modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
62
+ default: () => unknown[];
63
+ } & {
64
+ default: () => unknown[];
65
+ };
66
+ /**
67
+ * 弹出内容绑定元素
68
+ */
69
+ boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
70
+ /**
71
+ * 如果设置了boundary为指定DOM,此配置项生效
72
+ * 是否将弹出内容固定到目标元素位置
73
+ * 例如:boundary = document.body, fixOnBoundary = true,则弹出内容会一直固定到body
74
+ */
75
+ fixOnBoundary: import("vue-types").VueTypeValidableDef<boolean> & {
76
+ default: boolean;
77
+ } & {
78
+ default: boolean;
79
+ };
80
+ /**
81
+ * 弹出框鼠标点击事件是否阻止的点击事件行为
82
+ * 支持 stopPropagation stopImmediatePropagation preventDefault
83
+ * 用于在嵌套弹出或者元素定位导致的点击触发关闭问题
84
+ */
85
+ stopBehaviors: import("vue-types").VueTypeDef<string | string[]> & {
86
+ default: string | (() => string[]);
87
+ };
88
+ };
89
+ export declare type PopoverPropTypes = Readonly<ExtractPropTypes<typeof PopoverProps>>;
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+ declare const _default: {
3
+ createInstall: (prefix?: string) => (app: App<any>) => void;
4
+ install: (app: App<any>) => void;
5
+ version: string;
6
+ };
7
+ export default _default;
package/lib/preset.js ADDED
@@ -0,0 +1 @@
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("./components"));else if("function"==typeof define&&define.amd)define(["./components"],o);else{var t="object"==typeof exports?o(require("./components")):o(e["./components"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,(e=>(()=>{"use strict";var o={4689:o=>{o.exports=e}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,r),i.exports}r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{default:()=>t});var e=r(4689),o=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Bk";return function(t){var r=t.config.globalProperties.bkUIPrefix||o;Object.keys(e).forEach((function(o){var n=e[o];"install"in n?t.use(n,{prefix:r}):t.component(r+o,e[o])}))}};const t={createInstall:o,install:o(),version:"0.0.1"}})(),n})()));
@@ -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})()));