bkui-vue 0.0.1-beta.13 → 0.0.1-beta.132

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 (529) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +171 -0
  3. package/dist/index.esm.js +31713 -0
  4. package/dist/index.umd.js +171 -0
  5. package/dist/style.css +1 -4051
  6. package/dist/style.variable.css +1 -0
  7. package/lib/affix/affix.css +3 -0
  8. package/lib/affix/affix.d.ts +47 -0
  9. package/lib/affix/affix.less +5 -0
  10. package/lib/affix/affix.variable.css +105 -0
  11. package/lib/affix/index.d.ts +190 -0
  12. package/lib/affix/index.js +1 -0
  13. package/lib/alert/alert.css +5 -3
  14. package/lib/alert/alert.d.ts +24 -15
  15. package/lib/alert/alert.less +7 -3
  16. package/lib/alert/alert.variable.css +24 -6
  17. package/lib/alert/index.d.ts +159 -61
  18. package/lib/alert/index.js +1 -1
  19. package/lib/animate-number/animate-number.d.ts +12 -7
  20. package/lib/animate-number/index.d.ts +76 -29
  21. package/lib/animate-number/index.js +1 -1
  22. package/lib/backtop/backtop.d.ts +28 -14
  23. package/lib/backtop/backtop.variable.css +19 -3
  24. package/lib/backtop/index.d.ts +172 -56
  25. package/lib/backtop/index.js +1 -1
  26. package/lib/badge/badge.css +5 -5
  27. package/lib/badge/badge.d.ts +64 -22
  28. package/lib/badge/badge.less +5 -6
  29. package/lib/badge/badge.variable.css +24 -8
  30. package/lib/badge/index.d.ts +305 -85
  31. package/lib/badge/index.js +1 -1
  32. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  33. package/lib/breadcrumb/breadcrumb.css +61 -1
  34. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  35. package/lib/breadcrumb/breadcrumb.less +13 -2
  36. package/lib/breadcrumb/breadcrumb.variable.css +80 -4
  37. package/lib/breadcrumb/index.d.ts +172 -46
  38. package/lib/breadcrumb/index.js +1 -1
  39. package/lib/button/button-group.d.ts +3 -5
  40. package/lib/button/button.css +92 -44
  41. package/lib/button/button.d.ts +76 -26
  42. package/lib/button/button.less +89 -47
  43. package/lib/button/button.variable.css +111 -47
  44. package/lib/button/index.d.ts +288 -103
  45. package/lib/button/index.js +1 -1
  46. package/lib/card/card.css +96 -1
  47. package/lib/card/card.d.ts +74 -18
  48. package/lib/card/card.less +50 -2
  49. package/lib/card/card.variable.css +115 -4
  50. package/lib/card/index.d.ts +336 -70
  51. package/lib/card/index.js +1 -1
  52. package/lib/cascader/cascader-panel.d.ts +48 -0
  53. package/lib/cascader/cascader.css +130 -0
  54. package/lib/cascader/cascader.d.ts +271 -0
  55. package/lib/cascader/cascader.less +146 -0
  56. package/lib/cascader/cascader.variable.css +232 -0
  57. package/lib/cascader/index.d.ts +991 -0
  58. package/lib/cascader/index.js +1 -0
  59. package/lib/cascader/interface.d.ts +44 -0
  60. package/lib/cascader/node.d.ts +24 -0
  61. package/lib/cascader/store.d.ts +15 -0
  62. package/lib/checkbox/checkbox-group.d.ts +13 -9
  63. package/lib/checkbox/checkbox.css +33 -6
  64. package/lib/checkbox/checkbox.d.ts +43 -32
  65. package/lib/checkbox/checkbox.less +44 -6
  66. package/lib/checkbox/checkbox.variable.css +52 -9
  67. package/lib/checkbox/common.d.ts +3 -3
  68. package/lib/checkbox/index.d.ts +234 -105
  69. package/lib/checkbox/index.js +1 -1
  70. package/lib/checkbox/type.d.ts +4 -8
  71. package/lib/code-diff/code-diff.css +186 -0
  72. package/lib/code-diff/code-diff.d.ts +80 -0
  73. package/lib/code-diff/code-diff.less +238 -0
  74. package/lib/code-diff/code-diff.variable.css +288 -0
  75. package/lib/code-diff/index.d.ts +204 -0
  76. package/lib/code-diff/index.js +1 -0
  77. package/lib/collapse/collapse.css +17 -1
  78. package/lib/collapse/collapse.d.ts +51 -22
  79. package/lib/collapse/collapse.less +24 -2
  80. package/lib/collapse/collapse.variable.css +119 -1
  81. package/lib/collapse/index.d.ts +191 -76
  82. package/lib/collapse/index.js +1 -1
  83. package/lib/collapse/utils.d.ts +11 -0
  84. package/lib/components.d.ts +26 -5
  85. package/lib/components.js +1 -0
  86. package/lib/container/col.d.ts +51 -0
  87. package/lib/container/container.css +91 -0
  88. package/lib/container/container.d.ts +83 -0
  89. package/lib/container/container.less +20 -0
  90. package/lib/container/container.variable.css +193 -0
  91. package/lib/container/index.d.ts +281 -0
  92. package/lib/container/index.js +1 -0
  93. package/lib/container/row.d.ts +4 -0
  94. package/lib/date-picker/date-picker.css +3 -2
  95. package/lib/date-picker/date-picker.d.ts +92 -137
  96. package/lib/date-picker/date-picker.less +5 -2
  97. package/lib/date-picker/date-picker.variable.css +22 -5
  98. package/lib/date-picker/index.d.ts +816 -277
  99. package/lib/date-picker/index.js +1 -1
  100. package/lib/date-picker/interface.d.ts +1 -1
  101. package/lib/date-picker/props.d.ts +118 -0
  102. package/lib/date-picker/utils.d.ts +1 -1
  103. package/lib/dialog/dialog.css +68 -16
  104. package/lib/dialog/dialog.d.ts +285 -52
  105. package/lib/dialog/dialog.less +43 -17
  106. package/lib/dialog/dialog.variable.css +68 -16
  107. package/lib/dialog/index.d.ts +982 -116
  108. package/lib/dialog/index.js +1 -1
  109. package/lib/directives/clickoutside.d.ts +3 -23
  110. package/lib/directives/index.js +2 -15
  111. package/lib/directives/index.js.LICENSE.txt +14 -0
  112. package/lib/directives/tooltips.d.ts +1 -1
  113. package/lib/dist.index.js +1 -0
  114. package/lib/divider/divider.d.ts +21 -13
  115. package/lib/divider/divider.variable.css +19 -3
  116. package/lib/divider/index.d.ts +133 -53
  117. package/lib/divider/index.js +1 -1
  118. package/lib/divider/props.d.ts +21 -0
  119. package/lib/dropdown/dropdown-item.d.ts +6 -5
  120. package/lib/dropdown/dropdown-menu.d.ts +6 -5
  121. package/lib/dropdown/dropdown.css +4 -0
  122. package/lib/dropdown/dropdown.d.ts +29 -15
  123. package/lib/dropdown/dropdown.less +5 -0
  124. package/lib/dropdown/dropdown.variable.css +23 -3
  125. package/lib/dropdown/index.d.ts +168 -73
  126. package/lib/dropdown/index.js +1 -1
  127. package/lib/exception/exception.d.ts +11 -9
  128. package/lib/exception/exception.variable.css +19 -3
  129. package/lib/exception/index.d.ts +71 -37
  130. package/lib/exception/index.js +1 -1
  131. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  132. package/lib/fixed-navbar/fixed-navbar.variable.css +19 -3
  133. package/lib/fixed-navbar/index.d.ts +145 -38
  134. package/lib/fixed-navbar/index.js +1 -1
  135. package/lib/form/compose-form-item.d.ts +16 -0
  136. package/lib/form/form-item.d.ts +61 -45
  137. package/lib/form/form.css +96 -10
  138. package/lib/form/form.d.ts +45 -40
  139. package/lib/form/form.less +136 -34
  140. package/lib/form/form.variable.css +198 -10
  141. package/lib/form/index.d.ts +361 -3
  142. package/lib/form/index.js +1 -1
  143. package/lib/form/type.d.ts +8 -6
  144. package/lib/form/validator.d.ts +1 -0
  145. package/lib/icon/angle-double-down-line.d.ts +4 -0
  146. package/lib/icon/angle-double-down-line.js +1 -0
  147. package/lib/icon/angle-double-left-line.d.ts +4 -0
  148. package/lib/icon/angle-double-left-line.js +1 -0
  149. package/lib/icon/angle-double-left.js +1 -0
  150. package/lib/icon/angle-double-right-line.d.ts +4 -0
  151. package/lib/icon/angle-double-right-line.js +1 -0
  152. package/lib/icon/angle-double-right.js +1 -0
  153. package/lib/icon/angle-double-up-line.d.ts +4 -0
  154. package/lib/icon/angle-double-up-line.js +1 -0
  155. package/lib/icon/angle-down-fill.d.ts +4 -0
  156. package/lib/icon/angle-down-fill.js +1 -0
  157. package/lib/icon/angle-down-line.js +1 -0
  158. package/lib/icon/angle-down.js +1 -0
  159. package/lib/icon/angle-left.js +1 -0
  160. package/lib/icon/angle-right.js +1 -0
  161. package/lib/icon/angle-up-fill.d.ts +4 -0
  162. package/lib/icon/angle-up-fill.js +1 -0
  163. package/lib/icon/angle-up.js +1 -0
  164. package/lib/icon/archive-fill.d.ts +4 -0
  165. package/lib/icon/archive-fill.js +1 -0
  166. package/lib/icon/arrows-left.d.ts +4 -0
  167. package/lib/icon/arrows-left.js +1 -0
  168. package/lib/icon/arrows-right.d.ts +4 -0
  169. package/lib/icon/arrows-right.js +1 -0
  170. package/lib/icon/audio-fill.d.ts +4 -0
  171. package/lib/icon/audio-fill.js +1 -0
  172. package/lib/icon/bk.d.ts +4 -0
  173. package/lib/icon/bk.js +1 -0
  174. package/lib/icon/circle.js +1 -0
  175. package/lib/icon/close-line.d.ts +4 -0
  176. package/lib/icon/close-line.js +1 -0
  177. package/lib/icon/close.js +1 -0
  178. package/lib/icon/code.js +1 -0
  179. package/lib/icon/cog-shape.js +1 -0
  180. package/lib/icon/collapse-left.js +1 -0
  181. package/lib/icon/copy.js +1 -0
  182. package/lib/icon/data-shape.d.ts +4 -0
  183. package/lib/icon/data-shape.js +1 -0
  184. package/lib/icon/del.d.ts +4 -0
  185. package/lib/icon/del.js +1 -0
  186. package/lib/icon/doc-fill.d.ts +4 -0
  187. package/lib/icon/doc-fill.js +1 -0
  188. package/lib/icon/done.js +1 -0
  189. package/lib/icon/down-shape.js +1 -0
  190. package/lib/icon/down-small.js +1 -0
  191. package/lib/icon/edit-line.d.ts +4 -0
  192. package/lib/icon/edit-line.js +1 -0
  193. package/lib/icon/ellipsis.d.ts +4 -0
  194. package/lib/icon/ellipsis.js +1 -0
  195. package/lib/icon/error.js +1 -0
  196. package/lib/icon/excel-fill.d.ts +4 -0
  197. package/lib/icon/excel-fill.js +1 -0
  198. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  199. package/lib/icon/exclamation-circle-shape.js +1 -0
  200. package/lib/icon/eye.js +1 -0
  201. package/lib/icon/folder-open.js +1 -0
  202. package/lib/icon/folder-shape-open.js +1 -0
  203. package/lib/icon/folder-shape.js +1 -0
  204. package/lib/icon/funnel.d.ts +4 -0
  205. package/lib/icon/funnel.js +1 -0
  206. package/lib/icon/help-document-fill.js +1 -0
  207. package/lib/icon/help-fill.js +1 -0
  208. package/lib/icon/help.js +1 -0
  209. package/lib/icon/image-fill.d.ts +4 -0
  210. package/lib/icon/image-fill.js +1 -0
  211. package/lib/icon/index.d.ts +34 -3
  212. package/lib/icon/index.js +1 -15
  213. package/lib/icon/info-line.js +1 -0
  214. package/lib/icon/info.js +1 -0
  215. package/lib/icon/left-shape.d.ts +4 -0
  216. package/lib/icon/left-shape.js +1 -0
  217. package/lib/icon/pdf-fill.d.ts +4 -0
  218. package/lib/icon/pdf-fill.js +1 -0
  219. package/lib/icon/play-shape.js +1 -0
  220. package/lib/icon/plus.js +1 -0
  221. package/lib/icon/ppt-fill.d.ts +4 -0
  222. package/lib/icon/ppt-fill.js +1 -0
  223. package/lib/icon/qq.d.ts +4 -0
  224. package/lib/icon/qq.js +1 -0
  225. package/lib/icon/right-shape.js +1 -0
  226. package/lib/icon/search.js +1 -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.js +1 -0
  231. package/lib/icon/switcher-loading.js +1 -0
  232. package/lib/icon/text-file.js +1 -0
  233. package/lib/icon/text-fill.d.ts +4 -0
  234. package/lib/icon/text-fill.js +1 -0
  235. package/lib/icon/tree-application-shape.js +1 -0
  236. package/lib/icon/unvisible.js +1 -0
  237. package/lib/icon/up-shape.d.ts +4 -0
  238. package/lib/icon/up-shape.js +1 -0
  239. package/lib/icon/upload.d.ts +4 -0
  240. package/lib/icon/upload.js +1 -0
  241. package/lib/icon/video-fill.d.ts +4 -0
  242. package/lib/icon/video-fill.js +1 -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 +1 -1
  247. package/lib/index.js +1 -0
  248. package/lib/input/index.d.ts +688 -197
  249. package/lib/input/index.js +1 -15
  250. package/lib/input/input.css +232 -16
  251. package/lib/input/input.d.ts +182 -52
  252. package/lib/input/input.less +182 -19
  253. package/lib/input/input.variable.css +248 -15
  254. package/lib/link/index.d.ts +161 -55
  255. package/lib/link/index.js +1 -1
  256. package/lib/link/link.d.ts +25 -13
  257. package/lib/link/link.variable.css +19 -3
  258. package/lib/loading/index.d.ts +281 -72
  259. package/lib/loading/index.js +1 -1
  260. package/lib/loading/loading.css +177 -98
  261. package/lib/loading/loading.d.ts +109 -25
  262. package/lib/loading/loading.less +84 -73
  263. package/lib/loading/loading.variable.css +196 -101
  264. package/lib/menu/index.d.ts +122 -72
  265. package/lib/menu/index.js +1 -1
  266. package/lib/menu/menu-group.d.ts +6 -5
  267. package/lib/menu/menu-item.d.ts +6 -5
  268. package/lib/menu/menu.css +51 -0
  269. package/lib/menu/menu.d.ts +16 -21
  270. package/lib/menu/menu.variable.css +70 -3
  271. package/lib/menu/submenu.css +3 -0
  272. package/lib/menu/submenu.d.ts +6 -5
  273. package/lib/menu/submenu.less +1 -1
  274. package/lib/menu/submenu.variable.css +22 -3
  275. package/lib/menu/utils.d.ts +1 -1
  276. package/lib/message/index.js +1 -1
  277. package/lib/message/message.css +16 -2
  278. package/lib/message/message.less +18 -1
  279. package/lib/message/message.variable.css +35 -5
  280. package/lib/message/messageConstructor.d.ts +68 -20
  281. package/lib/modal/index.d.ts +732 -69
  282. package/lib/modal/index.js +1 -1
  283. package/lib/modal/modal.css +25 -1
  284. package/lib/modal/modal.d.ts +191 -24
  285. package/lib/modal/modal.less +33 -1
  286. package/lib/modal/modal.variable.css +25 -1
  287. package/lib/modal/props.mixin.d.ts +77 -10
  288. package/lib/navigation/index.d.ts +428 -1
  289. package/lib/navigation/index.js +1 -1
  290. package/lib/navigation/navigation-title.d.ts +10 -7
  291. package/lib/navigation/navigation.css +1 -1
  292. package/lib/navigation/navigation.d.ts +50 -24
  293. package/lib/navigation/navigation.less +1 -1
  294. package/lib/navigation/navigation.variable.css +20 -4
  295. package/lib/notify/index.js +1 -1
  296. package/lib/notify/notify.css +17 -1
  297. package/lib/notify/notify.less +19 -1
  298. package/lib/notify/notify.variable.css +36 -4
  299. package/lib/notify/notifyConstructor.d.ts +83 -23
  300. package/lib/pagination/index.d.ts +552 -0
  301. package/lib/pagination/index.js +1 -0
  302. package/lib/pagination/pagination.css +179 -0
  303. package/lib/pagination/pagination.d.ts +220 -0
  304. package/lib/pagination/pagination.less +201 -0
  305. package/lib/pagination/pagination.variable.css +281 -0
  306. package/lib/pagination/type.d.ts +6 -0
  307. package/lib/pagination/use-limit.d.ts +8 -0
  308. package/lib/pagination/use-list.d.ts +8 -0
  309. package/lib/pagination/use-small-list.d.ts +5 -0
  310. package/lib/pagination/use-total.d.ts +5 -0
  311. package/lib/popover/index.d.ts +488 -138
  312. package/lib/popover/index.js +1 -1
  313. package/lib/popover/popover.css +26 -13
  314. package/lib/popover/popover.d.ts +122 -45
  315. package/lib/popover/popover.less +59 -45
  316. package/lib/popover/popover.variable.css +45 -16
  317. package/lib/popover/props.d.ts +104 -0
  318. package/lib/popover2/arrow.d.ts +2 -0
  319. package/lib/popover2/const.d.ts +10 -0
  320. package/lib/popover2/content.d.ts +24 -0
  321. package/lib/popover2/index.d.ts +704 -0
  322. package/lib/popover2/index.js +1 -0
  323. package/lib/popover2/popover2.css +25 -0
  324. package/lib/popover2/popover2.d.ts +209 -0
  325. package/lib/popover2/popover2.less +35 -0
  326. package/lib/popover2/popover2.variable.css +127 -0
  327. package/lib/popover2/props.d.ts +108 -0
  328. package/lib/popover2/reference.d.ts +2 -0
  329. package/lib/popover2/root.d.ts +16 -0
  330. package/lib/popover2/use-floating.d.ts +20 -0
  331. package/lib/popover2/use-platform.d.ts +30 -0
  332. package/lib/popover2/use-popper-id.d.ts +7 -0
  333. package/lib/preset.d.ts +2 -3
  334. package/lib/preset.js +1 -0
  335. package/lib/process/index.d.ts +279 -0
  336. package/lib/process/index.js +1 -0
  337. package/lib/process/process.css +138 -0
  338. package/lib/process/process.d.ts +131 -0
  339. package/lib/process/process.less +178 -0
  340. package/lib/process/process.variable.css +240 -0
  341. package/lib/progress/index.d.ts +474 -136
  342. package/lib/progress/index.js +1 -1
  343. package/lib/progress/progress.css +51 -3
  344. package/lib/progress/progress.d.ts +89 -36
  345. package/lib/progress/progress.less +0 -4
  346. package/lib/progress/progress.variable.css +70 -6
  347. package/lib/radio/common.d.ts +5 -5
  348. package/lib/radio/index.d.ts +206 -95
  349. package/lib/radio/index.js +1 -1
  350. package/lib/radio/radio-button.d.ts +30 -23
  351. package/lib/radio/radio-group.d.ts +11 -10
  352. package/lib/radio/radio.css +12 -13
  353. package/lib/radio/radio.d.ts +27 -17
  354. package/lib/radio/radio.less +13 -14
  355. package/lib/radio/radio.variable.css +32 -17
  356. package/lib/radio/type.d.ts +10 -5
  357. package/lib/rate/index.d.ts +85 -41
  358. package/lib/rate/index.js +1 -1
  359. package/lib/rate/rate.d.ts +13 -10
  360. package/lib/rate/star.d.ts +33 -16
  361. package/lib/resize-layout/index.d.ts +463 -0
  362. package/lib/resize-layout/index.js +1 -0
  363. package/lib/resize-layout/resize-layout.css +189 -0
  364. package/lib/resize-layout/resize-layout.d.ts +127 -0
  365. package/lib/resize-layout/resize-layout.less +233 -0
  366. package/lib/resize-layout/resize-layout.variable.css +291 -0
  367. package/lib/select/common.d.ts +20 -22
  368. package/lib/select/index.d.ts +1522 -698
  369. package/lib/select/index.js +1 -15
  370. package/lib/select/option.d.ts +23 -19
  371. package/lib/select/optionGroup.d.ts +36 -97
  372. package/lib/select/select.css +226 -71
  373. package/lib/select/select.d.ts +376 -192
  374. package/lib/select/select.less +270 -130
  375. package/lib/select/select.variable.css +245 -74
  376. package/lib/select/selectTagInput.d.ts +72 -0
  377. package/lib/select/type.d.ts +38 -0
  378. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  379. package/lib/shared/index.d.ts +32 -6
  380. package/lib/shared/index.js +1 -1
  381. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  382. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  383. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +50 -5
  384. package/lib/shared/token.d.ts +4 -0
  385. package/lib/shared/utils.d.ts +18 -0
  386. package/lib/shared/vue-types.d.ts +11 -7
  387. package/lib/sideslider/index.d.ts +630 -81
  388. package/lib/sideslider/index.js +1 -1
  389. package/lib/sideslider/sideslider.css +48 -3
  390. package/lib/sideslider/sideslider.d.ts +181 -30
  391. package/lib/sideslider/sideslider.less +65 -6
  392. package/lib/sideslider/sideslider.variable.css +67 -6
  393. package/lib/slider/index.d.ts +588 -1
  394. package/lib/slider/index.js +1 -15
  395. package/lib/slider/slider-button.d.ts +15 -7
  396. package/lib/slider/slider.d.ts +84 -42
  397. package/lib/slider/slider.variable.css +19 -3
  398. package/lib/steps/index.d.ts +258 -111
  399. package/lib/steps/index.js +1 -15
  400. package/lib/steps/steps.css +17 -3
  401. package/lib/steps/steps.d.ts +41 -28
  402. package/lib/steps/steps.less +27 -3
  403. package/lib/steps/steps.variable.css +36 -6
  404. package/lib/styles/index.d.ts +14 -0
  405. package/lib/styles/mixins/clearfix.css +8 -0
  406. package/lib/styles/mixins/clearfix.less +10 -0
  407. package/lib/styles/mixins/clearfix.variable.css +8 -0
  408. package/lib/styles/mixins/mixins.css +51 -0
  409. package/lib/styles/mixins/mixins.less +2 -0
  410. package/lib/styles/mixins/mixins.variable.css +51 -0
  411. package/lib/styles/mixins/scroll.css +17 -0
  412. package/lib/styles/mixins/scroll.less +22 -0
  413. package/lib/styles/mixins/scroll.variable.css +119 -0
  414. package/lib/styles/themes/themes.less +27 -3
  415. package/lib/swiper/index.d.ts +246 -0
  416. package/lib/swiper/index.js +1 -0
  417. package/lib/swiper/swiper.css +91 -0
  418. package/lib/swiper/swiper.d.ts +65 -0
  419. package/lib/swiper/swiper.less +107 -0
  420. package/lib/swiper/swiper.variable.css +91 -0
  421. package/lib/switcher/index.d.ts +315 -138
  422. package/lib/switcher/index.js +1 -1
  423. package/lib/switcher/switcher.css +200 -135
  424. package/lib/switcher/switcher.d.ts +52 -36
  425. package/lib/switcher/switcher.less +211 -153
  426. package/lib/switcher/switcher.variable.css +219 -138
  427. package/lib/tab/index.d.ts +445 -282
  428. package/lib/tab/index.js +1 -1
  429. package/lib/tab/props.d.ts +194 -0
  430. package/lib/tab/tab-nav.d.ts +102 -87
  431. package/lib/tab/tab-panel.d.ts +53 -26
  432. package/lib/tab/tab.css +25 -1
  433. package/lib/tab/tab.d.ts +59 -51
  434. package/lib/tab/tab.less +31 -19
  435. package/lib/tab/tab.variable.css +44 -4
  436. package/lib/table/const.d.ts +67 -0
  437. package/lib/table/index.d.ts +728 -71
  438. package/lib/table/index.js +1 -1
  439. package/lib/table/plugins/head-filter.css +68 -0
  440. package/lib/table/plugins/head-filter.less +88 -0
  441. package/lib/table/plugins/head-filter.variable.css +170 -0
  442. package/lib/table/plugins/head-sort.css +22 -0
  443. package/lib/table/plugins/head-sort.less +28 -0
  444. package/lib/table/plugins/head-sort.variable.css +124 -0
  445. package/lib/table/plugins/settings.css +129 -0
  446. package/lib/table/plugins/settings.less +157 -0
  447. package/lib/table/plugins/settings.variable.css +231 -0
  448. package/lib/table/props.d.ts +210 -2
  449. package/lib/table/render.d.ts +76 -5
  450. package/lib/table/table.css +1089 -15
  451. package/lib/table/table.d.ts +221 -14
  452. package/lib/table/table.less +251 -24
  453. package/lib/table/table.variable.css +1109 -19
  454. package/lib/table/use-common.d.ts +72 -0
  455. package/lib/table/utils.d.ts +84 -2
  456. package/lib/tag/index.d.ts +249 -274
  457. package/lib/tag/index.js +1 -1
  458. package/lib/tag/tag.css +97 -0
  459. package/lib/tag/tag.d.ts +83 -53
  460. package/lib/tag/tag.less +110 -2
  461. package/lib/tag/tag.variable.css +116 -3
  462. package/lib/tag-input/common.d.ts +24 -0
  463. package/lib/tag-input/index.d.ts +1267 -0
  464. package/lib/tag-input/index.js +1 -0
  465. package/lib/tag-input/list-tag-render.d.ts +47 -0
  466. package/lib/tag-input/tag-input.css +209 -0
  467. package/lib/tag-input/tag-input.d.ts +374 -0
  468. package/lib/tag-input/tag-input.less +251 -0
  469. package/lib/tag-input/tag-input.variable.css +311 -0
  470. package/lib/tag-input/tag-props.d.ts +131 -0
  471. package/lib/tag-input/tag-render.d.ts +38 -0
  472. package/lib/timeline/index.d.ts +168 -0
  473. package/lib/timeline/index.js +1 -0
  474. package/lib/timeline/timeline.css +235 -0
  475. package/lib/timeline/timeline.d.ts +81 -0
  476. package/lib/timeline/timeline.less +240 -0
  477. package/lib/timeline/timeline.variable.css +337 -0
  478. package/lib/transfer/const.d.ts +5 -0
  479. package/lib/transfer/index.d.ts +500 -0
  480. package/lib/transfer/index.js +1 -0
  481. package/lib/transfer/props.d.ts +54 -0
  482. package/lib/transfer/transfer.css +139 -0
  483. package/lib/transfer/transfer.d.ts +160 -0
  484. package/lib/transfer/transfer.less +144 -0
  485. package/lib/transfer/transfer.variable.css +241 -0
  486. package/lib/tree/constant.d.ts +45 -0
  487. package/lib/tree/index.d.ts +695 -94
  488. package/lib/tree/index.js +1 -1
  489. package/lib/tree/props.d.ts +184 -0
  490. package/lib/tree/tree.css +176 -15
  491. package/lib/tree/tree.d.ts +201 -31
  492. package/lib/tree/tree.less +75 -38
  493. package/lib/tree/tree.variable.css +278 -15
  494. package/lib/tree/use-empty.d.ts +6 -0
  495. package/lib/tree/use-node-action.d.ts +12 -0
  496. package/lib/tree/use-node-async.d.ts +5 -0
  497. package/lib/tree/use-node-attribute.d.ts +33 -0
  498. package/lib/tree/use-node-drag.d.ts +3 -0
  499. package/lib/tree/use-search.d.ts +11 -0
  500. package/lib/tree/use-tree-init.d.ts +15 -0
  501. package/lib/tree/util.d.ts +34 -57
  502. package/lib/upload/index.d.ts +831 -0
  503. package/lib/upload/index.js +1 -0
  504. package/lib/upload/props.d.ts +113 -0
  505. package/lib/upload/upload-list.d.ts +46 -0
  506. package/lib/upload/upload-trigger.d.ts +54 -0
  507. package/lib/upload/upload.css +417 -0
  508. package/lib/upload/upload.d.ts +252 -0
  509. package/lib/upload/upload.less +455 -0
  510. package/lib/upload/upload.type.d.ts +78 -0
  511. package/lib/upload/upload.variable.css +519 -0
  512. package/lib/upload/use-ajax-upload.d.ts +3 -0
  513. package/lib/upload/use-file-handler.d.ts +44 -0
  514. package/lib/virtual-render/index.d.ts +834 -0
  515. package/lib/virtual-render/index.js +1 -0
  516. package/lib/virtual-render/props.d.ts +167 -0
  517. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  518. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  519. package/lib/virtual-render/virtual-render.css +33 -0
  520. package/lib/virtual-render/virtual-render.d.ts +255 -0
  521. package/lib/virtual-render/virtual-render.less +22 -0
  522. package/lib/virtual-render/virtual-render.variable.css +135 -0
  523. package/lib/volar.components.d.ts +31 -0
  524. package/package.json +107 -84
  525. package/dist/bkui-vue.cjs.js +0 -9999
  526. package/dist/bkui-vue.esm.js +0 -9958
  527. package/dist/bkui-vue.umd.js +0 -10002
  528. package/lib/form/common.d.ts +0 -3
  529. package/lib/styles/index.js +0 -1
@@ -0,0 +1 @@
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("lodash"));else if("function"==typeof define&&define.amd)define(["../shared","vue","lodash"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("lodash")):t(e["../shared"],e.vue,e.lodash);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t,o)=>(()=>{"use strict";var n={4212:t=>{t.exports=e},467:e=>{e.exports=o},748:e=>{e.exports=t}},r={};function l(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,l),o.exports}l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{l.r(s),l.d(s,{default:()=>h});var e=l(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function o(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,o){if(e){if("string"==typeof e)return t(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,o):void 0}}(e)||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.")}()}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r=l(748),i={onContentScroll:Function},a=Object.assign({list:e.PropTypes.array.def([]),enabled:e.PropTypes.bool.def(!0),scrollEvent:e.PropTypes.bool.def(!1),lineHeight:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.func]).def(30),minHeight:e.PropTypes.number.def(30),height:e.PropTypes.oneOfType([e.PropTypes.string.def("100%"),e.PropTypes.number]).def("100%"),width:e.PropTypes.oneOfType([e.PropTypes.string.def("100%"),e.PropTypes.number]).def("100%"),className:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.object,e.PropTypes.arrayOf(e.PropTypes.object),e.PropTypes.string]).def(""),contentClassName:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.object,e.PropTypes.arrayOf(e.PropTypes.object),e.PropTypes.string]).def(""),contentStyle:e.PropTypes.object.def({}),scrollXName:e.PropTypes.string.def((0,e.resolveClassName)("F-scroll-x")),scrollYName:e.PropTypes.string.def((0,e.resolveClassName)("F-scroll-y")),groupItemCount:e.PropTypes.number.def(1),preloadItemCount:e.PropTypes.number.def(1),renderAs:e.PropTypes.string.def("div"),contentAs:e.PropTypes.string.def("div"),scrollOffsetTop:e.PropTypes.number.def(0),scrollPosition:e.PropTypes.string.def("content"),abosuteHeight:e.PropTypes.oneOfType([e.PropTypes.string.def("auto"),e.PropTypes.number]).def("auto"),throttleDelay:e.PropTypes.number.def(60)},i),u=l(467),c=void 0;function p(e,t,o,n){for(var r=0,l=0,s=0,i=0;r<e;r++){if(l+(i=n(r,[r*o,(r+1)*o,"virtual"]))>t){s=t-l;break}l+=i}return{startIndex:r,height:l,diffHeight:s}}function f(e,t,o,n,r){if(n){var l=n.scrollTop,s=n.scrollLeft,i=o.scrollTop,a=o.count,u=o.groupItemCount,c=o.startIndex,f=o.endIndex,d=n.offsetHeight,y=0,v=0,m=0;if("number"==typeof e&&(y=Math.floor(l/e),v=Math.ceil(d/e)+y,m=l%e),"function"==typeof e){var h=p(a,l,u,e);y=h.startIndex>0?h.startIndex:0,m=h.diffHeight,v=p(a,d,u,e).startIndex+y+1}if(l!==i||y!==c||v!==f){var g=n.scrollHeight-n.offsetHeight-n.scrollTop;"function"==typeof t&&t(r,y,v,l,m,s,{bottom:g>=0?g:0})}}}function d(e,t,o){var n=o.value,r=n.lineHeight,l=void 0===r?30:r,s=n.handleScrollCallback,i=n.pagination,a=void 0===i?{}:i;if(n.onlyScroll){var u=t.scrollTop,c=t.scrollLeft,p=t.scrollHeight-t.offsetHeight-t.scrollTop;s(e,null,null,u,u,c,{bottom:p>=0?p:0})}else{var d=a.startIndex,y=a.endIndex,v=a.groupItemCount,m=a.count;f(l,s,{scrollTop:a.scrollTop,startIndex:d,endIndex:y,groupItemCount:v,count:m},t,e)}}var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60;return(0,u.throttle)((function(e,t,o){return d(e,t,o)}),e)};const v={mounted:function(e,t){var o=e.parentNode,n=t.value.throttleDelay;o.addEventListener("scroll",(function(e){!function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:60;Reflect.apply(y(n),c,[e,t,o])}(e,o,t,n)}))},unbind:function(e){if(e){var t=e.parentNode;if(!t)return;t.removeEventListener("scroll",y)}}},m=(0,r.defineComponent)({name:"VirtualRender",directives:{bkVirtualRender:v},props:a,emits:["content-scroll"],setup:function(t,l){var s=this,i=t.renderAs,a=t.contentAs,u=function(e){return"string"==typeof e?[e]:"object"!==n(e)||Array.isArray(e)?e:[e]};if(!t.enabled){var c=function(e,t){var o=e.renderAs,n=e.contentAs,l=(0,r.resolveDirective)("bkVirtualRender"),s={lineHeight:e.lineHeight,handleScrollCallback:function(e,o,n,r,l,s,i){t.emit("content-scroll",[e,{translateY:l,translateX:s,pos:i}])},pagination:{},throttleDelay:e.throttleDelay,onlyScroll:e.scrollEvent};return{rendAsTag:function(){var i,a,u,c,p,f,d,y,v;return(0,r.h)(o,{class:e.className},[null!==(u=null===(a=(i=t.slots).beforeContent)||void 0===a?void 0:a.call(i))&&void 0!==u?u:"",(0,r.withDirectives)((0,r.h)(n,{class:e.contentClassName,style:e.contentStyle},[null!==(f=null===(p=(c=t.slots).default)||void 0===p?void 0:p.call(c,{data:e.list}))&&void 0!==f?f:""]),[[l,s]]),null!==(v=null===(y=(d=t.slots).afterContent)||void 0===y?void 0:y.call(d))&&void 0!==v?v:""])}}}(t,l);return c.rendAsTag}var p=(0,r.ref)(null),d=(0,r.reactive)({startIndex:0,endIndex:0,scrollTop:1,translateY:0,translateX:0,count:0,pos:{},groupItemCount:t.groupItemCount}),y=function(e,t,o,n,r,s,i){d.startIndex=t,d.endIndex=o,d.scrollTop=n,d.translateY=r,d.translateX=s,d.pos=i,l.emit("content-scroll",[e,d])};(0,r.onMounted)((function(){(0,r.nextTick)((function(){g(t.list),b()}))})),(0,r.watch)((function(){return t.list}),(function(){v(),b()}),{deep:!0}),(0,r.watch)((function(){return t.lineHeight}),(function(){v(),b()}));var v=function(){g(t.list)},m=(0,r.ref)(0),h=(0,r.ref)(0),g=function(e){if(m.value=Math.ceil((e||[]).length/t.groupItemCount),d.count=m.value,d.startIndex=0,d.endIndex=0,d.translateY=0,d.scrollTop=0,"string"==typeof t.abosuteHeight&&"auto"===t.abosuteHeight)if("function"==typeof t.lineHeight){h.value=0;for(var o=0,n=0;n<m.value;n++){var r=t.lineHeight.call(s,n,e.slice(n*t.groupItemCount,t.groupItemCount));o+="number"==typeof r?r:0}h.value=o}else h.value=t.lineHeight*m.value;else h.value=t.abosuteHeight},b=function(){var e,o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=null===(e=p.value)||void 0===e?void 0:e.parentNode;f(t.lineHeight,y,d,n,null),o&&p.value&&p.value.scrollTo(0,0)},T=(0,r.computed)((function(){return(t.list||[]).map((function(e,t){return Object.assign(Object.assign({},e),{$index:t})}))})),P=(0,r.computed)((function(){return T.value.slice(d.startIndex*t.groupItemCount,(d.endIndex+t.preloadItemCount)*t.groupItemCount)})),x=(0,r.computed)((function(){return"content"===t.scrollPosition?{top:"".concat(d.scrollTop+t.scrollOffsetTop,"px"),transform:"translateY(-".concat(d.translateY,"px)")}:{}})),I=(0,r.computed)((function(){return Object.assign({height:"number"==typeof t.height?"".concat(t.height,"px"):t.height,width:"number"==typeof t.width?"".concat(t.width,"px"):t.width,display:"inline-block"},"container"===t.scrollPosition?x.value:{})})),C=(0,r.computed)((function(){var e="number"==typeof t.abosuteHeight&&0===t.abosuteHeight;return{height:"".concat(h.value<t.minHeight?t.minHeight:h.value,"px"),display:e?"none":"block"}})),H=(0,r.computed)((function(){return[(0,e.resolveClassName)("virtual-render"),t.scrollXName,t.scrollYName].concat(o(u(t.className)),["container"===t.scrollPosition?(0,e.resolveClassName)("virtual-content"):""])})),O=(0,r.computed)((function(){return["content"===t.scrollPosition?(0,e.resolveClassName)("virtual-content"):""].concat(o(u(t.contentClassName)))})),S=(0,r.resolveDirective)("bkVirtualRender"),j={lineHeight:t.lineHeight,handleScrollCallback:y,pagination:d,throttleDelay:t.throttleDelay};return l.expose({reset:function(){v(),b()}}),function(){var o,n,s,u,c,f,d,y,v;return(0,r.h)(i||"div",{ref:p,class:H.value,style:I.value},[null!==(s=null===(n=(o=l.slots).beforeContent)||void 0===n?void 0:n.call(o))&&void 0!==s?s:"",(0,r.withDirectives)((0,r.h)(a||"div",{class:O.value,style:Object.assign(Object.assign({},x.value),t.contentStyle)},[null!==(f=null===(c=(u=l.slots).default)||void 0===c?void 0:c.call(u,{data:P.value}))&&void 0!==f?f:""]),[[S,j]]),null!==(v=null===(y=(d=l.slots).afterContent)||void 0===y?void 0:y.call(d))&&void 0!==v?v:"",(0,r.h)("div",{class:[(0,e.resolveClassName)("virtual-section")],style:C.value})])}}}),h=(0,e.withInstall)(m)})(),s})()));
@@ -0,0 +1,167 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const virtualRenderProps: {
3
+ onContentScroll: FunctionConstructor;
4
+ /** 传入原始数据源 */
5
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
6
+ default: () => unknown[];
7
+ } & {
8
+ default: () => unknown[];
9
+ };
10
+ /**
11
+ * 是否启用此功能
12
+ * 如果设置为false,则此组件只会渲染两层指定的 容器,默认渲染两层 div
13
+ * 设置为true才会启用所有的虚拟渲染 & 滚动相关计算
14
+ * 此属性设置为了兼容需要按需开启\关闭虚拟渲染场景,避免外层设计两套样式架构
15
+ * Note: 目前此属性不支持动态修改
16
+ */
17
+ enabled: import("vue-types").VueTypeValidableDef<boolean> & {
18
+ default: boolean;
19
+ } & {
20
+ default: boolean;
21
+ };
22
+ /**
23
+ * 是否启用内置的Scroll Listener
24
+ * 当启用虚拟滚动时(enabled = true),滚动监听为内置生效
25
+ * 只有当(enabled = false)时此配置项才生效
26
+ */
27
+ scrollEvent: import("vue-types").VueTypeValidableDef<boolean> & {
28
+ default: boolean;
29
+ } & {
30
+ default: boolean;
31
+ };
32
+ /**
33
+ * 每行数据高度
34
+ * 默认为数值类型,默认高度 30px
35
+ * 如果每行高度不一致,可为回调函数:(index: number, row: any[]): number => {}
36
+ * 函数参数为当前行index & 当前行数据 row,row为数组,当不分组时,为当前行item
37
+ * 如果有分组展示, index 为当前分组 index, row为数组,当前行分组所有 item 数据
38
+ */
39
+ lineHeight: import("vue-types").VueTypeDef<any> & {
40
+ default: any;
41
+ };
42
+ /** 整体最小高度 */
43
+ minHeight: import("vue-types").VueTypeValidableDef<number> & {
44
+ default: number;
45
+ } & {
46
+ default: number;
47
+ };
48
+ /**
49
+ * 整体高度
50
+ * 可设置具体值,如果设置为 100%,则组件会自动计算外层DOM元素offsetHeight,用于计算可渲染行数
51
+ */
52
+ height: import("vue-types").VueTypeDef<string | number> & {
53
+ default: string | number;
54
+ };
55
+ /**
56
+ * 渲染区域宽度
57
+ * 如果设置 100% 则自适应外层元素宽度
58
+ */
59
+ width: import("vue-types").VueTypeDef<string | number> & {
60
+ default: string | number;
61
+ };
62
+ /** 最外层元素ClassName */
63
+ className: import("vue-types").VueTypeDef<string | string[] | {
64
+ [key: string]: any;
65
+ } | {
66
+ [key: string]: any;
67
+ }[]> & {
68
+ default: string | (() => {
69
+ [key: string]: any;
70
+ }) | (() => string[]) | (() => {
71
+ [key: string]: any;
72
+ }[]);
73
+ };
74
+ /** 内层层元素ClassName */
75
+ contentClassName: import("vue-types").VueTypeDef<string | string[] | {
76
+ [key: string]: any;
77
+ } | {
78
+ [key: string]: any;
79
+ }[]> & {
80
+ default: string | (() => {
81
+ [key: string]: any;
82
+ }) | (() => string[]) | (() => {
83
+ [key: string]: any;
84
+ }[]);
85
+ };
86
+ /** 内层元素样式 */
87
+ contentStyle: import("vue-types").VueTypeValidableDef<{
88
+ [key: string]: any;
89
+ }> & {
90
+ default: () => {
91
+ [key: string]: any;
92
+ };
93
+ } & {
94
+ default: () => {
95
+ [key: string]: any;
96
+ };
97
+ };
98
+ /** 用于自定义X轴滚动条样式 */
99
+ scrollXName: import("vue-types").VueTypeValidableDef<string> & {
100
+ default: string;
101
+ } & {
102
+ default: string;
103
+ };
104
+ /** 用于自定义Y轴滚动条样式 */
105
+ scrollYName: import("vue-types").VueTypeValidableDef<string> & {
106
+ default: string;
107
+ } & {
108
+ default: string;
109
+ };
110
+ /** 分组展示,一行数据可能有多条数据 */
111
+ groupItemCount: import("vue-types").VueTypeValidableDef<number> & {
112
+ default: number;
113
+ } & {
114
+ default: number;
115
+ };
116
+ /** 预加载行数,避免空白渲染 */
117
+ preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
118
+ default: number;
119
+ } & {
120
+ default: number;
121
+ };
122
+ /** 外层Dom元素需要渲染成的目标元素 */
123
+ renderAs: import("vue-types").VueTypeValidableDef<string> & {
124
+ default: string;
125
+ } & {
126
+ default: string;
127
+ };
128
+ /** 内容层渲染成目标元素 */
129
+ contentAs: import("vue-types").VueTypeValidableDef<string> & {
130
+ default: string;
131
+ } & {
132
+ default: string;
133
+ };
134
+ /** top 滚动填充 */
135
+ scrollOffsetTop: import("vue-types").VueTypeValidableDef<number> & {
136
+ default: number;
137
+ } & {
138
+ default: number;
139
+ };
140
+ /**
141
+ * 内置滚动位置
142
+ * 可选:container (最外层容器),content(内容层容器)
143
+ * Note: container 慎选,需要自己处理样式 & 位置
144
+ */
145
+ scrollPosition: import("vue-types").VueTypeValidableDef<string> & {
146
+ default: string;
147
+ } & {
148
+ default: string;
149
+ };
150
+ /**
151
+ * 绝对高度 | 实际高估
152
+ * 可选值: auto(根据行高和行数计算, LineHeight * List.length) number(外层给定高度,若为0,则不显示)
153
+ */
154
+ abosuteHeight: import("vue-types").VueTypeDef<string | number> & {
155
+ default: string | number;
156
+ };
157
+ /**
158
+ * 滚动刷新计算间隔时间
159
+ * 默认60 ms
160
+ */
161
+ throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
162
+ default: number;
163
+ } & {
164
+ default: number;
165
+ };
166
+ };
167
+ export declare type VirtualRenderProps = Readonly<ExtractPropTypes<typeof virtualRenderProps>>;
@@ -0,0 +1,7 @@
1
+ import { VirtualRenderProps } from './props';
2
+ declare const _default: (props: VirtualRenderProps, ctx: any) => {
3
+ rendAsTag: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
4
+ [key: string]: any;
5
+ }>;
6
+ };
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export declare function computedVirtualIndex(lineHeight: any, callback: any, pagination: any, el: any, event: any): void;
2
+ declare const _default: {
3
+ mounted(el: any, binding: any): void;
4
+ unbind(el: any): void;
5
+ };
6
+ export default _default;
@@ -0,0 +1,33 @@
1
+ .bk-F-scroll-x {
2
+ overflow-x: auto;
3
+ scrollbar-color: #a0a0a0 transparent;
4
+ scrollbar-width: thin;
5
+ }
6
+ .bk-F-scroll-x::-webkit-scrollbar {
7
+ height: 6px;
8
+ }
9
+ .bk-F-scroll-y {
10
+ overflow-y: auto;
11
+ }
12
+ .bk-F-scroll-y::-webkit-scrollbar {
13
+ width: 4px;
14
+ }
15
+ .bk-F-scroll-y::-webkit-scrollbar-thumb {
16
+ border-radius: 4px;
17
+ }
18
+ .bk-virtual-render {
19
+ position: relative;
20
+ }
21
+ .bk-virtual-render .bk-virtual-content,
22
+ .bk-virtual-render.bk-virtual-content {
23
+ position: absolute;
24
+ top: 0;
25
+ bottom: 0;
26
+ left: 0;
27
+ width: 100%;
28
+ height: 100%;
29
+ }
30
+ .bk-virtual-render .bk-virtual-section {
31
+ width: 1px;
32
+ background: transparent;
33
+ }
@@ -0,0 +1,255 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ onContentScroll: FunctionConstructor;
3
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
4
+ default: () => unknown[];
5
+ } & {
6
+ default: () => unknown[];
7
+ };
8
+ enabled: import("vue-types").VueTypeValidableDef<boolean> & {
9
+ default: boolean;
10
+ } & {
11
+ default: boolean;
12
+ };
13
+ scrollEvent: import("vue-types").VueTypeValidableDef<boolean> & {
14
+ default: boolean;
15
+ } & {
16
+ default: boolean;
17
+ };
18
+ lineHeight: import("vue-types").VueTypeDef<any> & {
19
+ default: any;
20
+ };
21
+ minHeight: import("vue-types").VueTypeValidableDef<number> & {
22
+ default: number;
23
+ } & {
24
+ default: number;
25
+ };
26
+ height: import("vue-types").VueTypeDef<string | number> & {
27
+ default: string | number;
28
+ };
29
+ width: import("vue-types").VueTypeDef<string | number> & {
30
+ default: string | number;
31
+ };
32
+ className: import("vue-types").VueTypeDef<string | string[] | {
33
+ [key: string]: any;
34
+ } | {
35
+ [key: string]: any;
36
+ }[]> & {
37
+ default: string | (() => {
38
+ [key: string]: any;
39
+ }) | (() => string[]) | (() => {
40
+ [key: string]: any;
41
+ }[]);
42
+ };
43
+ contentClassName: import("vue-types").VueTypeDef<string | string[] | {
44
+ [key: string]: any;
45
+ } | {
46
+ [key: string]: any;
47
+ }[]> & {
48
+ default: string | (() => {
49
+ [key: string]: any;
50
+ }) | (() => string[]) | (() => {
51
+ [key: string]: any;
52
+ }[]);
53
+ };
54
+ contentStyle: import("vue-types").VueTypeValidableDef<{
55
+ [key: string]: any;
56
+ }> & {
57
+ default: () => {
58
+ [key: string]: any;
59
+ };
60
+ } & {
61
+ default: () => {
62
+ [key: string]: any;
63
+ };
64
+ };
65
+ scrollXName: import("vue-types").VueTypeValidableDef<string> & {
66
+ default: string;
67
+ } & {
68
+ default: string;
69
+ };
70
+ scrollYName: import("vue-types").VueTypeValidableDef<string> & {
71
+ default: string;
72
+ } & {
73
+ default: string;
74
+ };
75
+ groupItemCount: import("vue-types").VueTypeValidableDef<number> & {
76
+ default: number;
77
+ } & {
78
+ default: number;
79
+ };
80
+ preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
81
+ default: number;
82
+ } & {
83
+ default: number;
84
+ };
85
+ renderAs: import("vue-types").VueTypeValidableDef<string> & {
86
+ default: string;
87
+ } & {
88
+ default: string;
89
+ };
90
+ contentAs: import("vue-types").VueTypeValidableDef<string> & {
91
+ default: string;
92
+ } & {
93
+ default: string;
94
+ };
95
+ scrollOffsetTop: import("vue-types").VueTypeValidableDef<number> & {
96
+ default: number;
97
+ } & {
98
+ default: number;
99
+ };
100
+ scrollPosition: import("vue-types").VueTypeValidableDef<string> & {
101
+ default: string;
102
+ } & {
103
+ default: string;
104
+ };
105
+ abosuteHeight: import("vue-types").VueTypeDef<string | number> & {
106
+ default: string | number;
107
+ };
108
+ throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
109
+ default: number;
110
+ } & {
111
+ default: number;
112
+ };
113
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
114
+ [key: string]: any;
115
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "content-scroll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
116
+ onContentScroll: FunctionConstructor;
117
+ list: import("vue-types").VueTypeValidableDef<unknown[]> & {
118
+ default: () => unknown[];
119
+ } & {
120
+ default: () => unknown[];
121
+ };
122
+ enabled: import("vue-types").VueTypeValidableDef<boolean> & {
123
+ default: boolean;
124
+ } & {
125
+ default: boolean;
126
+ };
127
+ scrollEvent: import("vue-types").VueTypeValidableDef<boolean> & {
128
+ default: boolean;
129
+ } & {
130
+ default: boolean;
131
+ };
132
+ lineHeight: import("vue-types").VueTypeDef<any> & {
133
+ default: any;
134
+ };
135
+ minHeight: import("vue-types").VueTypeValidableDef<number> & {
136
+ default: number;
137
+ } & {
138
+ default: number;
139
+ };
140
+ height: import("vue-types").VueTypeDef<string | number> & {
141
+ default: string | number;
142
+ };
143
+ width: import("vue-types").VueTypeDef<string | number> & {
144
+ default: string | number;
145
+ };
146
+ className: import("vue-types").VueTypeDef<string | string[] | {
147
+ [key: string]: any;
148
+ } | {
149
+ [key: string]: any;
150
+ }[]> & {
151
+ default: string | (() => {
152
+ [key: string]: any;
153
+ }) | (() => string[]) | (() => {
154
+ [key: string]: any;
155
+ }[]);
156
+ };
157
+ contentClassName: import("vue-types").VueTypeDef<string | string[] | {
158
+ [key: string]: any;
159
+ } | {
160
+ [key: string]: any;
161
+ }[]> & {
162
+ default: string | (() => {
163
+ [key: string]: any;
164
+ }) | (() => string[]) | (() => {
165
+ [key: string]: any;
166
+ }[]);
167
+ };
168
+ contentStyle: import("vue-types").VueTypeValidableDef<{
169
+ [key: string]: any;
170
+ }> & {
171
+ default: () => {
172
+ [key: string]: any;
173
+ };
174
+ } & {
175
+ default: () => {
176
+ [key: string]: any;
177
+ };
178
+ };
179
+ scrollXName: import("vue-types").VueTypeValidableDef<string> & {
180
+ default: string;
181
+ } & {
182
+ default: string;
183
+ };
184
+ scrollYName: import("vue-types").VueTypeValidableDef<string> & {
185
+ default: string;
186
+ } & {
187
+ default: string;
188
+ };
189
+ groupItemCount: import("vue-types").VueTypeValidableDef<number> & {
190
+ default: number;
191
+ } & {
192
+ default: number;
193
+ };
194
+ preloadItemCount: import("vue-types").VueTypeValidableDef<number> & {
195
+ default: number;
196
+ } & {
197
+ default: number;
198
+ };
199
+ renderAs: import("vue-types").VueTypeValidableDef<string> & {
200
+ default: string;
201
+ } & {
202
+ default: string;
203
+ };
204
+ contentAs: import("vue-types").VueTypeValidableDef<string> & {
205
+ default: string;
206
+ } & {
207
+ default: string;
208
+ };
209
+ scrollOffsetTop: import("vue-types").VueTypeValidableDef<number> & {
210
+ default: number;
211
+ } & {
212
+ default: number;
213
+ };
214
+ scrollPosition: import("vue-types").VueTypeValidableDef<string> & {
215
+ default: string;
216
+ } & {
217
+ default: string;
218
+ };
219
+ abosuteHeight: import("vue-types").VueTypeDef<string | number> & {
220
+ default: string | number;
221
+ };
222
+ throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
223
+ default: number;
224
+ } & {
225
+ default: number;
226
+ };
227
+ }>>, {
228
+ enabled: boolean;
229
+ width: string | number;
230
+ height: string | number;
231
+ list: unknown[];
232
+ lineHeight: any;
233
+ minHeight: number;
234
+ className: string | {
235
+ [key: string]: any;
236
+ };
237
+ scrollEvent: boolean;
238
+ contentClassName: string | {
239
+ [key: string]: any;
240
+ };
241
+ contentStyle: {
242
+ [key: string]: any;
243
+ };
244
+ scrollXName: string;
245
+ scrollYName: string;
246
+ groupItemCount: number;
247
+ preloadItemCount: number;
248
+ renderAs: string;
249
+ contentAs: string;
250
+ scrollOffsetTop: number;
251
+ scrollPosition: string;
252
+ abosuteHeight: string | number;
253
+ throttleDelay: number;
254
+ }>;
255
+ export default _default;
@@ -0,0 +1,22 @@
1
+ @import '../styles/themes/themes.less';
2
+ @import '../styles/mixins/scroll.less';
3
+
4
+ .bk-virtual-render {
5
+ position: relative;
6
+
7
+ .bk-virtual-content,
8
+ &.bk-virtual-content {
9
+ position: absolute;
10
+ top: 0;
11
+ bottom: 0;
12
+ left: 0;
13
+ width: 100%;
14
+ height: 100%;
15
+ }
16
+
17
+ .bk-virtual-section {
18
+ width: 1px;
19
+ background: transparent;
20
+ }
21
+ }
22
+
@@ -0,0 +1,135 @@
1
+ :root {
2
+ --bk-prefix: bk;
3
+ --popover-max-height: 216px;
4
+ --primary-color: #3a84ff;
5
+ --success-color: #2dcb56;
6
+ --warning-color: #ff9c01;
7
+ --danger-color: #ea3636;
8
+ --default-color: #63656e;
9
+ --gray-color: #979ba5;
10
+ --light-gray: #c4c6cc;
11
+ --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
13
+ --disable-color: #dcdee5;
14
+ --font-size-base: 12px;
15
+ --font-size-medium: 14px;
16
+ --font-size-large: 16px;
17
+ --line-height-base: 16px;
18
+ --line-height-medium: 16px;
19
+ --line-height-large: 18px;
20
+ --component-size-small: 26px;
21
+ --component-size-base: 32px;
22
+ --component-size-large: 40px;
23
+ --border-width-base: 1px;
24
+ --border-style-base: solid;
25
+ --border-radius-base: 2px;
26
+ --input-disabled-bg: #fafbfd;
27
+ --input-disabled-border: var(--disable-color);
28
+ --input-height-base: var(--component-size-base);
29
+ --input-color: var(--default-color);
30
+ --input-bg: white;
31
+ --input-border-color: var(--light-gray);
32
+ --input-broder-radius: 3px;
33
+ --input-shadow-color: #a3c5fd;
34
+ --input-horizontal-padding: 10px;
35
+ --input-block-color: #f5f7fa;
36
+ --input-block-hover-color: #eaebf0;
37
+ --input-icon-size: var(--font-size-medium);
38
+ --input-maxlength-color: #979ba5;
39
+ --button-primary-hover-color: #5594fa;
40
+ --button-danger-hover-color: #ff5656;
41
+ --button-success-hover-color: #45e35f;
42
+ --button-warning-hover-color: #ffb848;
43
+ --button-default-hover-border-color: #979ba5;
44
+ --button-primary-active-color: #2c77f4;
45
+ --button-danger-active-color: #db2626;
46
+ --button-success-active-color: #1ab943;
47
+ --button-warning-active-color: #eb9000;
48
+ --button-selected-bg-color: #e1ecff;
49
+ --button-disabled-selected-bg-color: #f0f1f5;
50
+ --fixed-navbar-background: #fff;
51
+ --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
52
+ --switch-default-color: #fff;
53
+ --switch-grey-color: #c4c6cc;
54
+ --breadcrumb-black-color: #979ba5;
55
+ --breadcrumb-primary-hover-color: #0082ff;
56
+ --breadcrumb-fn-main-color: #63656e;
57
+ --link-default-hover-color: #979ba5;
58
+ --link-primary-hover-color: #699df4;
59
+ --link-success-hover-color: #45e35f;
60
+ --link-warning-hover-color: #ffb848;
61
+ --link-danger-hover-color: #ff5656;
62
+ --link-default-disabled-color: #dcdee5;
63
+ --link-primary-disabled-color: #a3c5fd;
64
+ --link-success-disabled-color: #94f5a4;
65
+ --link-warning-disabled-color: #ffd695;
66
+ --link-danger-disabled-color: #fd9c9c;
67
+ --message-color: var(--default-color);
68
+ --message-primary-bg-color: #f0f8ff;
69
+ --message-primary-border-color: #e1ecff;
70
+ --message-warning-bg-color: #fff4e2;
71
+ --message-warning-border-color: #ffe8c3;
72
+ --message-success-bg-color: #f2fff4;
73
+ --message-success-border-color: #dcffe2;
74
+ --message-danger-bg-color: #ffeded;
75
+ --message-danger-border-color: #ffdddd;
76
+ --slider-default-bg: #dcdee5;
77
+ --slider-disable-bar-bg: #979ba5;
78
+ --menu-bg-color: #182132;
79
+ --submenu-bg-color: #151d2c;
80
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
81
+ --menu-color: #96a2b9;
82
+ --menu-group-color: var(--default-color);
83
+ --menu-width: 260px;
84
+ --menu-collapse-width: 60px;
85
+ --menu-active-color: white;
86
+ --nav-header-bg-color: #182132;
87
+ --nav-bg-color: #182132;
88
+ --date-picker-disabled-bg: #fafbfd;
89
+ --date-picker-dropdown-mb: 4px;
90
+ --date-picker-dropdown-bg: #fff;
91
+ --table-bg-color: var(--white-color);
92
+ --table-border-color: #dcdee5;
93
+ --table-head-bg-color: #fafbfd;
94
+ --table-head-font-color: #313238;
95
+ --table-body-font-color: #575961;
96
+ --table-row-hover-bg-color: #f5f7fa;
97
+ --table-row-active-bg-color: #f0f1f5;
98
+ --cascader-panel-border-color: #dcdee5;
99
+ --cascader-panel-hover: #eaf3ff;
100
+ --cascader-panel-active: #f4f6fa;
101
+ --cascader-panel-disabled-bg: #fff;
102
+ }
103
+ .bk-F-scroll-x {
104
+ overflow-x: auto;
105
+ scrollbar-color: #a0a0a0 transparent;
106
+ scrollbar-width: thin;
107
+ }
108
+ .bk-F-scroll-x::-webkit-scrollbar {
109
+ height: 6px;
110
+ }
111
+ .bk-F-scroll-y {
112
+ overflow-y: auto;
113
+ }
114
+ .bk-F-scroll-y::-webkit-scrollbar {
115
+ width: 4px;
116
+ }
117
+ .bk-F-scroll-y::-webkit-scrollbar-thumb {
118
+ border-radius: 4px;
119
+ }
120
+ .bk-virtual-render {
121
+ position: relative;
122
+ }
123
+ .bk-virtual-render .bk-virtual-content,
124
+ .bk-virtual-render.bk-virtual-content {
125
+ position: absolute;
126
+ top: 0;
127
+ bottom: 0;
128
+ left: 0;
129
+ width: 100%;
130
+ height: 100%;
131
+ }
132
+ .bk-virtual-render .bk-virtual-section {
133
+ width: 1px;
134
+ background: transparent;
135
+ }
@@ -0,0 +1,31 @@
1
+ import * as globalComponents from './components';
2
+ declare module '@vue/runtime-core' {
3
+ type ExtendOriginComponent<T> = {
4
+ [K in keyof T as (K extends string ? `Bk${K}` : never)]: T[K] extends {
5
+ C: infer COM;
6
+ } ? COM : never;
7
+ };
8
+ interface GlobalComponents extends ExtendOriginComponent<typeof globalComponents> {
9
+ BkBreadcrumbItem: typeof globalComponents.Breadcrumb.Item;
10
+ BkButtonGroup: typeof globalComponents.Button.ButtonGroup;
11
+ BkCascaderPanel: typeof globalComponents.Cascader.CascaderPanel;
12
+ BkCheckboxGroup: typeof globalComponents.Checkbox.Group;
13
+ BkRow: typeof globalComponents.Container.Row;
14
+ BkCol: typeof globalComponents.Container.Col;
15
+ BkDropdownMenu: typeof globalComponents.Dropdown.DropdownMenu;
16
+ BkDropdownItem: typeof globalComponents.Dropdown.DropdownItem;
17
+ BkFormItem: typeof globalComponents.Form.FormItem;
18
+ BkComposeFormItem: typeof globalComponents.Form.ComposeFormItem;
19
+ BkLoadingMode: typeof globalComponents.Loading.BkLoadingMode;
20
+ BkLoadingSize: typeof globalComponents.Loading.BkLoadingSize;
21
+ BkMenuItem: typeof globalComponents.Menu.Item;
22
+ BkSubmenu: typeof globalComponents.Menu.Submenu;
23
+ BkMenuGroup: typeof globalComponents.Menu.Group;
24
+ BkRadioGroup: typeof globalComponents.Radio.Group;
25
+ BkRadioButton: typeof globalComponents.Radio.Button;
26
+ BkOption: typeof globalComponents.Select.Option;
27
+ BkOptionGroup: typeof globalComponents.Select.Group;
28
+ BkTabPanel: typeof globalComponents.Tab.TabPanel;
29
+ }
30
+ }
31
+ export {};