bkui-vue 0.0.1-beta.12 → 0.0.1-beta.120

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 (524) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +57 -0
  3. package/dist/index.esm.js +28538 -0
  4. package/dist/index.umd.js +57 -0
  5. package/dist/style.css +1 -4051
  6. package/lib/affix/affix.css +3 -0
  7. package/lib/affix/affix.d.ts +47 -0
  8. package/lib/affix/affix.less +5 -0
  9. package/lib/affix/affix.variable.css +105 -0
  10. package/lib/affix/index.d.ts +143 -0
  11. package/lib/affix/index.js +1 -0
  12. package/lib/alert/alert.css +5 -3
  13. package/lib/alert/alert.d.ts +24 -15
  14. package/lib/alert/alert.less +7 -3
  15. package/lib/alert/alert.variable.css +22 -4
  16. package/lib/alert/index.d.ts +96 -60
  17. package/lib/alert/index.js +1 -1
  18. package/lib/animate-number/animate-number.d.ts +12 -7
  19. package/lib/animate-number/index.d.ts +48 -28
  20. package/lib/animate-number/index.js +1 -1
  21. package/lib/backtop/backtop.d.ts +28 -14
  22. package/lib/backtop/backtop.variable.css +17 -1
  23. package/lib/backtop/index.d.ts +111 -55
  24. package/lib/backtop/index.js +1 -1
  25. package/lib/badge/badge.css +5 -5
  26. package/lib/badge/badge.d.ts +64 -22
  27. package/lib/badge/badge.less +5 -6
  28. package/lib/badge/badge.variable.css +22 -6
  29. package/lib/badge/index.d.ts +202 -84
  30. package/lib/badge/index.js +1 -1
  31. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  32. package/lib/breadcrumb/breadcrumb.css +18 -1
  33. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  34. package/lib/breadcrumb/breadcrumb.less +13 -2
  35. package/lib/breadcrumb/breadcrumb.variable.css +35 -2
  36. package/lib/breadcrumb/index.d.ts +118 -46
  37. package/lib/breadcrumb/index.js +1 -1
  38. package/lib/button/button-group.d.ts +3 -5
  39. package/lib/button/button.css +88 -44
  40. package/lib/button/button.d.ts +77 -27
  41. package/lib/button/button.less +81 -45
  42. package/lib/button/button.variable.css +105 -45
  43. package/lib/button/index.d.ts +194 -105
  44. package/lib/button/index.js +1 -1
  45. package/lib/card/card.css +53 -1
  46. package/lib/card/card.d.ts +74 -18
  47. package/lib/card/card.less +50 -2
  48. package/lib/card/card.variable.css +70 -2
  49. package/lib/card/index.d.ts +225 -69
  50. package/lib/card/index.js +1 -1
  51. package/lib/cascader/cascader-panel.d.ts +48 -0
  52. package/lib/cascader/cascader.css +130 -0
  53. package/lib/cascader/cascader.d.ts +271 -0
  54. package/lib/cascader/cascader.less +146 -0
  55. package/lib/cascader/cascader.variable.css +232 -0
  56. package/lib/cascader/index.d.ts +721 -0
  57. package/lib/cascader/index.js +1 -0
  58. package/lib/cascader/interface.d.ts +44 -0
  59. package/lib/cascader/node.d.ts +24 -0
  60. package/lib/cascader/store.d.ts +15 -0
  61. package/lib/checkbox/checkbox-group.d.ts +13 -9
  62. package/lib/checkbox/checkbox.css +15 -2
  63. package/lib/checkbox/checkbox.d.ts +33 -30
  64. package/lib/checkbox/checkbox.less +20 -2
  65. package/lib/checkbox/checkbox.variable.css +32 -3
  66. package/lib/checkbox/common.d.ts +3 -3
  67. package/lib/checkbox/index.d.ts +136 -104
  68. package/lib/checkbox/index.js +1 -1
  69. package/lib/checkbox/type.d.ts +4 -8
  70. package/lib/code-diff/code-diff.css +186 -0
  71. package/lib/code-diff/code-diff.d.ts +80 -0
  72. package/lib/code-diff/code-diff.less +238 -0
  73. package/lib/code-diff/code-diff.variable.css +288 -0
  74. package/lib/code-diff/index.d.ts +154 -0
  75. package/lib/code-diff/index.js +1 -0
  76. package/lib/collapse/collapse.css +17 -1
  77. package/lib/collapse/collapse.d.ts +51 -22
  78. package/lib/collapse/collapse.less +24 -2
  79. package/lib/collapse/collapse.variable.css +119 -1
  80. package/lib/collapse/index.d.ts +127 -75
  81. package/lib/collapse/index.js +1 -1
  82. package/lib/collapse/utils.d.ts +11 -0
  83. package/lib/components.d.ts +25 -5
  84. package/lib/components.js +1 -0
  85. package/lib/container/col.d.ts +51 -0
  86. package/lib/container/container.css +48 -0
  87. package/lib/container/container.d.ts +83 -0
  88. package/lib/container/container.less +20 -0
  89. package/lib/container/container.variable.css +150 -0
  90. package/lib/container/index.d.ts +223 -0
  91. package/lib/container/index.js +1 -0
  92. package/lib/container/row.d.ts +4 -0
  93. package/lib/date-picker/date-picker.css +3 -2
  94. package/lib/date-picker/date-picker.d.ts +92 -137
  95. package/lib/date-picker/date-picker.less +5 -2
  96. package/lib/date-picker/date-picker.variable.css +20 -3
  97. package/lib/date-picker/index.d.ts +504 -276
  98. package/lib/date-picker/index.js +1 -1
  99. package/lib/date-picker/interface.d.ts +1 -1
  100. package/lib/date-picker/props.d.ts +118 -0
  101. package/lib/date-picker/utils.d.ts +1 -1
  102. package/lib/dialog/dialog.css +68 -16
  103. package/lib/dialog/dialog.d.ts +285 -52
  104. package/lib/dialog/dialog.less +43 -17
  105. package/lib/dialog/dialog.variable.css +68 -16
  106. package/lib/dialog/index.d.ts +665 -115
  107. package/lib/dialog/index.js +1 -1
  108. package/lib/directives/clickoutside.d.ts +3 -23
  109. package/lib/directives/index.js +2 -15
  110. package/lib/directives/index.js.LICENSE.txt +14 -0
  111. package/lib/directives/tooltips.d.ts +2 -1
  112. package/lib/dist.index.js +1 -0
  113. package/lib/divider/divider.d.ts +21 -13
  114. package/lib/divider/divider.variable.css +17 -1
  115. package/lib/divider/index.d.ts +84 -52
  116. package/lib/divider/index.js +1 -1
  117. package/lib/divider/props.d.ts +21 -0
  118. package/lib/dropdown/dropdown-item.d.ts +6 -5
  119. package/lib/dropdown/dropdown-menu.d.ts +6 -5
  120. package/lib/dropdown/dropdown.css +4 -0
  121. package/lib/dropdown/dropdown.d.ts +29 -15
  122. package/lib/dropdown/dropdown.less +5 -0
  123. package/lib/dropdown/dropdown.variable.css +21 -1
  124. package/lib/dropdown/index.d.ts +112 -72
  125. package/lib/dropdown/index.js +1 -1
  126. package/lib/exception/exception.d.ts +11 -9
  127. package/lib/exception/exception.variable.css +17 -1
  128. package/lib/exception/index.d.ts +44 -36
  129. package/lib/exception/index.js +1 -1
  130. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  131. package/lib/fixed-navbar/fixed-navbar.variable.css +17 -1
  132. package/lib/fixed-navbar/index.d.ts +96 -37
  133. package/lib/fixed-navbar/index.js +1 -1
  134. package/lib/form/compose-form-item.d.ts +16 -0
  135. package/lib/form/form-item.d.ts +61 -45
  136. package/lib/form/form.css +96 -10
  137. package/lib/form/form.d.ts +45 -40
  138. package/lib/form/form.less +136 -34
  139. package/lib/form/form.variable.css +198 -10
  140. package/lib/form/index.d.ts +303 -3
  141. package/lib/form/index.js +1 -1
  142. package/lib/form/type.d.ts +8 -6
  143. package/lib/form/validator.d.ts +1 -0
  144. package/lib/icon/angle-double-down-line.d.ts +4 -0
  145. package/lib/icon/angle-double-down-line.js +1 -0
  146. package/lib/icon/angle-double-left-line.d.ts +4 -0
  147. package/lib/icon/angle-double-left-line.js +1 -0
  148. package/lib/icon/angle-double-left.js +1 -0
  149. package/lib/icon/angle-double-right-line.d.ts +4 -0
  150. package/lib/icon/angle-double-right-line.js +1 -0
  151. package/lib/icon/angle-double-right.js +1 -0
  152. package/lib/icon/angle-double-up-line.d.ts +4 -0
  153. package/lib/icon/angle-double-up-line.js +1 -0
  154. package/lib/icon/angle-down-fill.d.ts +4 -0
  155. package/lib/icon/angle-down-fill.js +1 -0
  156. package/lib/icon/angle-down-line.js +1 -0
  157. package/lib/icon/angle-down.js +1 -0
  158. package/lib/icon/angle-left.js +1 -0
  159. package/lib/icon/angle-right.js +1 -0
  160. package/lib/icon/angle-up-fill.d.ts +4 -0
  161. package/lib/icon/angle-up-fill.js +1 -0
  162. package/lib/icon/angle-up.js +1 -0
  163. package/lib/icon/archive-fill.d.ts +4 -0
  164. package/lib/icon/archive-fill.js +1 -0
  165. package/lib/icon/arrows-left.d.ts +4 -0
  166. package/lib/icon/arrows-left.js +1 -0
  167. package/lib/icon/arrows-right.d.ts +4 -0
  168. package/lib/icon/arrows-right.js +1 -0
  169. package/lib/icon/audio-fill.d.ts +4 -0
  170. package/lib/icon/audio-fill.js +1 -0
  171. package/lib/icon/bk.d.ts +4 -0
  172. package/lib/icon/bk.js +1 -0
  173. package/lib/icon/circle.js +1 -0
  174. package/lib/icon/close-line.d.ts +4 -0
  175. package/lib/icon/close-line.js +1 -0
  176. package/lib/icon/close.js +1 -0
  177. package/lib/icon/code.js +1 -0
  178. package/lib/icon/cog-shape.js +1 -0
  179. package/lib/icon/collapse-left.js +1 -0
  180. package/lib/icon/copy.js +1 -0
  181. package/lib/icon/data-shape.d.ts +4 -0
  182. package/lib/icon/data-shape.js +1 -0
  183. package/lib/icon/del.d.ts +4 -0
  184. package/lib/icon/del.js +1 -0
  185. package/lib/icon/doc-fill.d.ts +4 -0
  186. package/lib/icon/doc-fill.js +1 -0
  187. package/lib/icon/done.js +1 -0
  188. package/lib/icon/down-shape.js +1 -0
  189. package/lib/icon/down-small.js +1 -0
  190. package/lib/icon/edit-line.d.ts +4 -0
  191. package/lib/icon/edit-line.js +1 -0
  192. package/lib/icon/ellipsis.d.ts +4 -0
  193. package/lib/icon/ellipsis.js +1 -0
  194. package/lib/icon/error.js +1 -0
  195. package/lib/icon/excel-fill.d.ts +4 -0
  196. package/lib/icon/excel-fill.js +1 -0
  197. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  198. package/lib/icon/exclamation-circle-shape.js +1 -0
  199. package/lib/icon/eye.js +1 -0
  200. package/lib/icon/folder-open.js +1 -0
  201. package/lib/icon/folder-shape-open.js +1 -0
  202. package/lib/icon/folder-shape.js +1 -0
  203. package/lib/icon/funnel.d.ts +4 -0
  204. package/lib/icon/funnel.js +1 -0
  205. package/lib/icon/help-document-fill.js +1 -0
  206. package/lib/icon/help-fill.js +1 -0
  207. package/lib/icon/help.js +1 -0
  208. package/lib/icon/image-fill.d.ts +4 -0
  209. package/lib/icon/image-fill.js +1 -0
  210. package/lib/icon/index.d.ts +31 -0
  211. package/lib/icon/index.js +1 -15
  212. package/lib/icon/info-line.js +1 -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/pdf-fill.d.ts +4 -0
  217. package/lib/icon/pdf-fill.js +1 -0
  218. package/lib/icon/play-shape.js +1 -0
  219. package/lib/icon/plus.js +1 -0
  220. package/lib/icon/ppt-fill.d.ts +4 -0
  221. package/lib/icon/ppt-fill.js +1 -0
  222. package/lib/icon/qq.d.ts +4 -0
  223. package/lib/icon/qq.js +1 -0
  224. package/lib/icon/right-shape.js +1 -0
  225. package/lib/icon/search.js +1 -0
  226. package/lib/icon/share.js +1 -0
  227. package/lib/icon/spinner.d.ts +4 -0
  228. package/lib/icon/spinner.js +1 -0
  229. package/lib/icon/success.js +1 -0
  230. package/lib/icon/switcher-loading.js +1 -0
  231. package/lib/icon/text-file.js +1 -0
  232. package/lib/icon/text-fill.d.ts +4 -0
  233. package/lib/icon/text-fill.js +1 -0
  234. package/lib/icon/tree-application-shape.js +1 -0
  235. package/lib/icon/unvisible.js +1 -0
  236. package/lib/icon/up-shape.d.ts +4 -0
  237. package/lib/icon/up-shape.js +1 -0
  238. package/lib/icon/upload.d.ts +4 -0
  239. package/lib/icon/upload.js +1 -0
  240. package/lib/icon/video-fill.d.ts +4 -0
  241. package/lib/icon/video-fill.js +1 -0
  242. package/lib/icon/warn.js +1 -0
  243. package/lib/icon/weixin.d.ts +4 -0
  244. package/lib/icon/weixin.js +1 -0
  245. package/lib/index.d.ts +1 -1
  246. package/lib/index.js +1 -0
  247. package/lib/input/index.d.ts +462 -196
  248. package/lib/input/index.js +1 -15
  249. package/lib/input/input.css +178 -13
  250. package/lib/input/input.d.ts +182 -52
  251. package/lib/input/input.less +171 -18
  252. package/lib/input/input.variable.css +195 -13
  253. package/lib/link/index.d.ts +102 -54
  254. package/lib/link/index.js +1 -1
  255. package/lib/link/link.d.ts +25 -13
  256. package/lib/link/link.variable.css +17 -1
  257. package/lib/loading/index.d.ts +190 -57
  258. package/lib/loading/index.js +1 -1
  259. package/lib/loading/loading.css +136 -98
  260. package/lib/loading/loading.d.ts +115 -20
  261. package/lib/loading/loading.less +84 -73
  262. package/lib/loading/loading.variable.css +153 -99
  263. package/lib/menu/index.d.ts +82 -71
  264. package/lib/menu/index.js +1 -1
  265. package/lib/menu/menu-group.d.ts +6 -5
  266. package/lib/menu/menu-item.d.ts +6 -5
  267. package/lib/menu/menu.css +8 -0
  268. package/lib/menu/menu.d.ts +16 -21
  269. package/lib/menu/menu.variable.css +25 -1
  270. package/lib/menu/submenu.css +3 -0
  271. package/lib/menu/submenu.d.ts +6 -5
  272. package/lib/menu/submenu.less +1 -1
  273. package/lib/menu/submenu.variable.css +20 -1
  274. package/lib/menu/utils.d.ts +1 -1
  275. package/lib/message/index.js +1 -1
  276. package/lib/message/message.css +16 -2
  277. package/lib/message/message.less +18 -1
  278. package/lib/message/message.variable.css +33 -3
  279. package/lib/message/messageConstructor.d.ts +68 -20
  280. package/lib/modal/index.d.ts +517 -68
  281. package/lib/modal/index.js +1 -1
  282. package/lib/modal/modal.css +25 -1
  283. package/lib/modal/modal.d.ts +191 -24
  284. package/lib/modal/modal.less +33 -1
  285. package/lib/modal/modal.variable.css +25 -1
  286. package/lib/modal/props.mixin.d.ts +77 -10
  287. package/lib/navigation/index.d.ts +310 -1
  288. package/lib/navigation/index.js +1 -1
  289. package/lib/navigation/navigation-title.d.ts +10 -7
  290. package/lib/navigation/navigation.css +1 -1
  291. package/lib/navigation/navigation.d.ts +50 -24
  292. package/lib/navigation/navigation.less +1 -1
  293. package/lib/navigation/navigation.variable.css +18 -2
  294. package/lib/notify/index.js +1 -1
  295. package/lib/notify/notify.css +17 -1
  296. package/lib/notify/notify.less +19 -1
  297. package/lib/notify/notify.variable.css +34 -2
  298. package/lib/notify/notifyConstructor.d.ts +83 -23
  299. package/lib/pagination/index.d.ts +395 -0
  300. package/lib/pagination/index.js +1 -0
  301. package/lib/pagination/pagination.css +179 -0
  302. package/lib/pagination/pagination.d.ts +220 -0
  303. package/lib/pagination/pagination.less +201 -0
  304. package/lib/pagination/pagination.variable.css +281 -0
  305. package/lib/pagination/type.d.ts +6 -0
  306. package/lib/pagination/use-limit.d.ts +8 -0
  307. package/lib/pagination/use-list.d.ts +8 -0
  308. package/lib/pagination/use-small-list.d.ts +5 -0
  309. package/lib/pagination/use-total.d.ts +5 -0
  310. package/lib/popover/index.d.ts +322 -137
  311. package/lib/popover/index.js +1 -1
  312. package/lib/popover/popover.css +26 -13
  313. package/lib/popover/popover.d.ts +122 -45
  314. package/lib/popover/popover.less +59 -45
  315. package/lib/popover/popover.variable.css +43 -14
  316. package/lib/popover/props.d.ts +104 -0
  317. package/lib/popover2/arrow.d.ts +2 -0
  318. package/lib/popover2/const.d.ts +10 -0
  319. package/lib/popover2/content.d.ts +24 -0
  320. package/lib/popover2/index.d.ts +495 -0
  321. package/lib/popover2/index.js +1 -0
  322. package/lib/popover2/popover2.css +25 -0
  323. package/lib/popover2/popover2.d.ts +209 -0
  324. package/lib/popover2/popover2.less +35 -0
  325. package/lib/popover2/popover2.variable.css +127 -0
  326. package/lib/popover2/props.d.ts +108 -0
  327. package/lib/popover2/reference.d.ts +2 -0
  328. package/lib/popover2/root.d.ts +16 -0
  329. package/lib/popover2/use-floating.d.ts +20 -0
  330. package/lib/popover2/use-popper-id.d.ts +7 -0
  331. package/lib/preset.d.ts +2 -3
  332. package/lib/preset.js +1 -0
  333. package/lib/process/index.d.ts +205 -0
  334. package/lib/process/index.js +1 -0
  335. package/lib/process/process.css +138 -0
  336. package/lib/process/process.d.ts +131 -0
  337. package/lib/process/process.less +178 -0
  338. package/lib/process/process.variable.css +240 -0
  339. package/lib/progress/index.d.ts +305 -135
  340. package/lib/progress/index.js +1 -1
  341. package/lib/progress/progress.css +8 -3
  342. package/lib/progress/progress.d.ts +89 -36
  343. package/lib/progress/progress.less +0 -4
  344. package/lib/progress/progress.variable.css +25 -4
  345. package/lib/radio/common.d.ts +5 -5
  346. package/lib/radio/index.d.ts +146 -97
  347. package/lib/radio/index.js +1 -1
  348. package/lib/radio/radio-button.d.ts +28 -20
  349. package/lib/radio/radio-group.d.ts +11 -10
  350. package/lib/radio/radio.css +8 -8
  351. package/lib/radio/radio.d.ts +27 -17
  352. package/lib/radio/radio.less +9 -9
  353. package/lib/radio/radio.variable.css +26 -10
  354. package/lib/radio/type.d.ts +10 -5
  355. package/lib/rate/index.d.ts +52 -40
  356. package/lib/rate/index.js +1 -1
  357. package/lib/rate/rate.d.ts +13 -10
  358. package/lib/rate/star.d.ts +33 -16
  359. package/lib/resize-layout/index.d.ts +336 -0
  360. package/lib/resize-layout/index.js +1 -0
  361. package/lib/resize-layout/resize-layout.css +189 -0
  362. package/lib/resize-layout/resize-layout.d.ts +127 -0
  363. package/lib/resize-layout/resize-layout.less +233 -0
  364. package/lib/resize-layout/resize-layout.variable.css +291 -0
  365. package/lib/select/common.d.ts +20 -22
  366. package/lib/select/index.d.ts +1063 -707
  367. package/lib/select/index.js +1 -15
  368. package/lib/select/option.d.ts +23 -19
  369. package/lib/select/optionGroup.d.ts +36 -97
  370. package/lib/select/select.css +223 -70
  371. package/lib/select/select.d.ts +376 -192
  372. package/lib/select/select.less +257 -127
  373. package/lib/select/select.variable.css +240 -71
  374. package/lib/select/selectTagInput.d.ts +72 -0
  375. package/lib/select/type.d.ts +38 -0
  376. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  377. package/lib/shared/index.d.ts +26 -4
  378. package/lib/shared/index.js +1 -1
  379. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  380. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  381. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +50 -5
  382. package/lib/shared/token.d.ts +4 -0
  383. package/lib/shared/utils.d.ts +18 -0
  384. package/lib/shared/vue-types.d.ts +11 -7
  385. package/lib/sideslider/index.d.ts +424 -80
  386. package/lib/sideslider/index.js +1 -1
  387. package/lib/sideslider/sideslider.css +48 -3
  388. package/lib/sideslider/sideslider.d.ts +181 -30
  389. package/lib/sideslider/sideslider.less +65 -6
  390. package/lib/sideslider/sideslider.variable.css +65 -4
  391. package/lib/slider/index.d.ts +414 -1
  392. package/lib/slider/index.js +1 -15
  393. package/lib/slider/slider-button.d.ts +15 -7
  394. package/lib/slider/slider.d.ts +84 -42
  395. package/lib/slider/slider.variable.css +17 -1
  396. package/lib/steps/index.d.ts +162 -110
  397. package/lib/steps/index.js +1 -15
  398. package/lib/steps/steps.css +17 -3
  399. package/lib/steps/steps.d.ts +41 -28
  400. package/lib/steps/steps.less +27 -3
  401. package/lib/steps/steps.variable.css +34 -4
  402. package/lib/styles/index.d.ts +14 -0
  403. package/lib/styles/mixins/clearfix.css +8 -0
  404. package/lib/styles/mixins/clearfix.less +10 -0
  405. package/lib/styles/mixins/clearfix.variable.css +8 -0
  406. package/lib/styles/mixins/mixins.css +8 -0
  407. package/lib/styles/mixins/mixins.less +1 -0
  408. package/lib/styles/mixins/mixins.variable.css +8 -0
  409. package/lib/styles/themes/themes.less +25 -1
  410. package/lib/swiper/index.d.ts +181 -0
  411. package/lib/swiper/index.js +1 -0
  412. package/lib/swiper/swiper.css +91 -0
  413. package/lib/swiper/swiper.d.ts +65 -0
  414. package/lib/swiper/swiper.less +107 -0
  415. package/lib/swiper/swiper.variable.css +91 -0
  416. package/lib/switcher/index.d.ts +201 -137
  417. package/lib/switcher/index.js +1 -1
  418. package/lib/switcher/switcher.css +157 -135
  419. package/lib/switcher/switcher.d.ts +52 -36
  420. package/lib/switcher/switcher.less +211 -153
  421. package/lib/switcher/switcher.variable.css +174 -136
  422. package/lib/tab/index.d.ts +306 -282
  423. package/lib/tab/index.js +1 -1
  424. package/lib/tab/props.d.ts +194 -0
  425. package/lib/tab/tab-nav.d.ts +102 -87
  426. package/lib/tab/tab-panel.d.ts +53 -26
  427. package/lib/tab/tab.css +25 -1
  428. package/lib/tab/tab.d.ts +59 -51
  429. package/lib/tab/tab.less +31 -19
  430. package/lib/tab/tab.variable.css +42 -2
  431. package/lib/table/const.d.ts +49 -0
  432. package/lib/table/index.d.ts +498 -70
  433. package/lib/table/index.js +1 -1
  434. package/lib/table/plugins/head-filter.css +68 -0
  435. package/lib/table/plugins/head-filter.less +88 -0
  436. package/lib/table/plugins/head-filter.variable.css +170 -0
  437. package/lib/table/plugins/head-sort.css +22 -0
  438. package/lib/table/plugins/head-sort.less +28 -0
  439. package/lib/table/plugins/head-sort.variable.css +124 -0
  440. package/lib/table/plugins/settings.css +110 -0
  441. package/lib/table/plugins/settings.less +136 -0
  442. package/lib/table/plugins/settings.variable.css +212 -0
  443. package/lib/table/props.d.ts +204 -2
  444. package/lib/table/render.d.ts +76 -5
  445. package/lib/table/table.css +410 -15
  446. package/lib/table/table.d.ts +217 -14
  447. package/lib/table/table.less +246 -24
  448. package/lib/table/table.variable.css +428 -17
  449. package/lib/table/use-common.d.ts +55 -0
  450. package/lib/table/utils.d.ts +83 -1
  451. package/lib/tag/index.d.ts +165 -274
  452. package/lib/tag/index.js +1 -1
  453. package/lib/tag/tag.css +97 -0
  454. package/lib/tag/tag.d.ts +83 -53
  455. package/lib/tag/tag.less +110 -2
  456. package/lib/tag/tag.variable.css +114 -1
  457. package/lib/tag-input/common.d.ts +24 -0
  458. package/lib/tag-input/index.d.ts +894 -0
  459. package/lib/tag-input/index.js +1 -0
  460. package/lib/tag-input/list-tag-render.d.ts +47 -0
  461. package/lib/tag-input/tag-input.css +209 -0
  462. package/lib/tag-input/tag-input.d.ts +374 -0
  463. package/lib/tag-input/tag-input.less +251 -0
  464. package/lib/tag-input/tag-input.variable.css +311 -0
  465. package/lib/tag-input/tag-props.d.ts +131 -0
  466. package/lib/tag-input/tag-render.d.ts +38 -0
  467. package/lib/timeline/index.d.ts +129 -0
  468. package/lib/timeline/index.js +1 -0
  469. package/lib/timeline/timeline.css +235 -0
  470. package/lib/timeline/timeline.d.ts +81 -0
  471. package/lib/timeline/timeline.less +240 -0
  472. package/lib/timeline/timeline.variable.css +337 -0
  473. package/lib/transfer/const.d.ts +5 -0
  474. package/lib/transfer/index.d.ts +365 -0
  475. package/lib/transfer/index.js +1 -0
  476. package/lib/transfer/props.d.ts +54 -0
  477. package/lib/transfer/transfer.css +139 -0
  478. package/lib/transfer/transfer.d.ts +160 -0
  479. package/lib/transfer/transfer.less +144 -0
  480. package/lib/transfer/transfer.variable.css +241 -0
  481. package/lib/tree/constant.d.ts +43 -0
  482. package/lib/tree/index.d.ts +417 -94
  483. package/lib/tree/index.js +1 -1
  484. package/lib/tree/props.d.ts +168 -0
  485. package/lib/tree/tree.css +33 -15
  486. package/lib/tree/tree.d.ts +177 -31
  487. package/lib/tree/tree.less +49 -38
  488. package/lib/tree/tree.variable.css +135 -15
  489. package/lib/tree/use-empty.d.ts +6 -0
  490. package/lib/tree/use-node-action.d.ts +11 -0
  491. package/lib/tree/use-node-async.d.ts +5 -0
  492. package/lib/tree/use-node-attribute.d.ts +31 -0
  493. package/lib/tree/use-node-drag.d.ts +3 -0
  494. package/lib/tree/use-search.d.ts +11 -0
  495. package/lib/tree/use-tree-init.d.ts +15 -0
  496. package/lib/tree/util.d.ts +34 -57
  497. package/lib/upload/index.d.ts +2 -0
  498. package/lib/upload/index.js +1 -0
  499. package/lib/upload/props.d.ts +113 -0
  500. package/lib/upload/upload-list.d.ts +46 -0
  501. package/lib/upload/upload-trigger.d.ts +54 -0
  502. package/lib/upload/upload.css +374 -0
  503. package/lib/upload/upload.d.ts +252 -0
  504. package/lib/upload/upload.less +455 -0
  505. package/lib/upload/upload.type.d.ts +78 -0
  506. package/lib/upload/upload.variable.css +476 -0
  507. package/lib/upload/use-ajax-upload.d.ts +3 -0
  508. package/lib/upload/use-file-handler.d.ts +44 -0
  509. package/lib/virtual-render/index.d.ts +579 -0
  510. package/lib/virtual-render/index.js +1 -0
  511. package/lib/virtual-render/props.d.ts +167 -0
  512. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  513. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  514. package/lib/virtual-render/virtual-render.css +33 -0
  515. package/lib/virtual-render/virtual-render.d.ts +255 -0
  516. package/lib/virtual-render/virtual-render.less +43 -0
  517. package/lib/virtual-render/virtual-render.variable.css +33 -0
  518. package/lib/volar.components.d.ts +28 -0
  519. package/package.json +107 -84
  520. package/dist/bkui-vue.cjs.js +0 -9995
  521. package/dist/bkui-vue.esm.js +0 -9954
  522. package/dist/bkui-vue.umd.js +0 -9998
  523. package/lib/form/common.d.ts +0 -3
  524. package/lib/styles/index.js +0 -1
@@ -1,26 +1,229 @@
1
- import { Column } from './props';
2
1
  declare const _default: import("vue").DefineComponent<{
3
2
  data: import("vue-types").VueTypeDef<any[]> & {
4
3
  default: () => any[];
5
4
  };
6
- columns: import("vue-types").VueTypeDef<Column[]>;
5
+ columns: import("vue-types").VueTypeDef<import("./props").Column[]> & {
6
+ default: () => import("./props").Column[];
7
+ };
7
8
  activeColumn: import("vue-types").VueTypeDef<number | number[]>;
8
9
  columnPick: import("vue-types").VueTypeDef<string> & {
9
10
  default: string;
10
11
  };
11
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
12
- data?: unknown;
13
- columns?: unknown;
14
- activeColumn?: unknown;
15
- columnPick?: unknown;
16
- } & {
17
- data: any[];
18
- columnPick: string;
19
- } & {
20
- columns?: Column[];
21
- activeColumn?: number | number[];
22
- }> & ({} | {}), {
12
+ height: import("vue-types").VueTypeDef<string | number> & {
13
+ default: string | number;
14
+ };
15
+ minHeight: import("vue-types").VueTypeDef<string | number> & {
16
+ default: string | number;
17
+ };
18
+ maxHeight: import("vue-types").VueTypeDef<string | number> & {
19
+ default: string | number;
20
+ };
21
+ rowHeight: import("vue-types").VueTypeDef<any> & {
22
+ default: any;
23
+ };
24
+ headHeight: import("vue-types").VueTypeValidableDef<number> & {
25
+ default: number;
26
+ } & {
27
+ default: number;
28
+ };
29
+ showHead: import("vue-types").VueTypeValidableDef<boolean> & {
30
+ default: boolean;
31
+ } & {
32
+ default: boolean;
33
+ };
34
+ thead: import("vue-types").VueTypeShape<import("./props").Thead>;
35
+ virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
36
+ default: boolean;
37
+ } & {
38
+ default: boolean;
39
+ };
40
+ border: import("vue-types").VueTypeDef<string[]> & {
41
+ default: () => string[];
42
+ };
43
+ pagination: import("vue-types").VueTypeDef<boolean | {
44
+ [key: string]: any;
45
+ }> & {
46
+ default: boolean | (() => {
47
+ [key: string]: any;
48
+ });
49
+ };
50
+ remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
51
+ default: boolean;
52
+ } & {
53
+ default: boolean;
54
+ };
55
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
56
+ default: string;
57
+ } & {
58
+ default: string;
59
+ };
60
+ settings: import("vue-types").VueTypeDef<boolean | import("./props").Settings> & {
61
+ default: boolean | (() => import("./props").Settings);
62
+ };
63
+ rowClass: import("vue-types").VueTypeDef<any> & {
64
+ default: any;
65
+ };
66
+ rowStyle: import("vue-types").VueTypeDef<any> & {
67
+ default: any;
68
+ };
69
+ cellStyle: import("vue-types").VueTypeDef<any> & {
70
+ default: any;
71
+ };
72
+ cellClass: import("vue-types").VueTypeDef<any> & {
73
+ default: any;
74
+ };
75
+ scrollLoading: import("vue-types").VueTypeDef<boolean | {
76
+ [key: string]: any;
77
+ }> & {
78
+ default: boolean | (() => {
79
+ [key: string]: any;
80
+ });
81
+ };
82
+ reserveExpand: import("vue-types").VueTypeValidableDef<boolean> & {
83
+ default: boolean;
84
+ } & {
85
+ default: boolean;
86
+ };
87
+ rowKey: import("vue-types").VueTypeDef<any> & {
88
+ default: any;
89
+ };
90
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
91
+ columnPick: (..._args: any[]) => boolean;
92
+ columnFilter: (..._args: any[]) => boolean;
93
+ columnSort: (..._args: any[]) => boolean;
94
+ rowClick: (..._args: any[]) => boolean;
95
+ rowDblClick: (..._args: any[]) => boolean;
96
+ rowExpand: (..._args: any[]) => boolean;
97
+ pageLimitChange: (..._args: any[]) => boolean;
98
+ pageValueChange: (..._args: any[]) => boolean;
99
+ settingChange: (..._args: any[]) => boolean;
100
+ scrollBottom: (..._args: any[]) => boolean;
101
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
102
+ data: import("vue-types").VueTypeDef<any[]> & {
103
+ default: () => any[];
104
+ };
105
+ columns: import("vue-types").VueTypeDef<import("./props").Column[]> & {
106
+ default: () => import("./props").Column[];
107
+ };
108
+ activeColumn: import("vue-types").VueTypeDef<number | number[]>;
109
+ columnPick: import("vue-types").VueTypeDef<string> & {
110
+ default: string;
111
+ };
112
+ height: import("vue-types").VueTypeDef<string | number> & {
113
+ default: string | number;
114
+ };
115
+ minHeight: import("vue-types").VueTypeDef<string | number> & {
116
+ default: string | number;
117
+ };
118
+ maxHeight: import("vue-types").VueTypeDef<string | number> & {
119
+ default: string | number;
120
+ };
121
+ rowHeight: import("vue-types").VueTypeDef<any> & {
122
+ default: any;
123
+ };
124
+ headHeight: import("vue-types").VueTypeValidableDef<number> & {
125
+ default: number;
126
+ } & {
127
+ default: number;
128
+ };
129
+ showHead: import("vue-types").VueTypeValidableDef<boolean> & {
130
+ default: boolean;
131
+ } & {
132
+ default: boolean;
133
+ };
134
+ thead: import("vue-types").VueTypeShape<import("./props").Thead>;
135
+ virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
136
+ default: boolean;
137
+ } & {
138
+ default: boolean;
139
+ };
140
+ border: import("vue-types").VueTypeDef<string[]> & {
141
+ default: () => string[];
142
+ };
143
+ pagination: import("vue-types").VueTypeDef<boolean | {
144
+ [key: string]: any;
145
+ }> & {
146
+ default: boolean | (() => {
147
+ [key: string]: any;
148
+ });
149
+ };
150
+ remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
151
+ default: boolean;
152
+ } & {
153
+ default: boolean;
154
+ };
155
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
156
+ default: string;
157
+ } & {
158
+ default: string;
159
+ };
160
+ settings: import("vue-types").VueTypeDef<boolean | import("./props").Settings> & {
161
+ default: boolean | (() => import("./props").Settings);
162
+ };
163
+ rowClass: import("vue-types").VueTypeDef<any> & {
164
+ default: any;
165
+ };
166
+ rowStyle: import("vue-types").VueTypeDef<any> & {
167
+ default: any;
168
+ };
169
+ cellStyle: import("vue-types").VueTypeDef<any> & {
170
+ default: any;
171
+ };
172
+ cellClass: import("vue-types").VueTypeDef<any> & {
173
+ default: any;
174
+ };
175
+ scrollLoading: import("vue-types").VueTypeDef<boolean | {
176
+ [key: string]: any;
177
+ }> & {
178
+ default: boolean | (() => {
179
+ [key: string]: any;
180
+ });
181
+ };
182
+ reserveExpand: import("vue-types").VueTypeValidableDef<boolean> & {
183
+ default: boolean;
184
+ } & {
185
+ default: boolean;
186
+ };
187
+ rowKey: import("vue-types").VueTypeDef<any> & {
188
+ default: any;
189
+ };
190
+ }>> & {
191
+ onColumnPick?: (...args: any[]) => any;
192
+ onColumnSort?: (...args: any[]) => any;
193
+ onColumnFilter?: (...args: any[]) => any;
194
+ onRowClick?: (...args: any[]) => any;
195
+ onRowDblClick?: (...args: any[]) => any;
196
+ onRowExpand?: (...args: any[]) => any;
197
+ onPageLimitChange?: (...args: any[]) => any;
198
+ onPageValueChange?: (...args: any[]) => any;
199
+ onSettingChange?: (...args: any[]) => any;
200
+ onScrollBottom?: (...args: any[]) => any;
201
+ }, {
23
202
  data: any[];
203
+ height: string | number;
204
+ maxHeight: string | number;
205
+ minHeight: string | number;
206
+ border: string[];
207
+ columns: import("./props").Column[];
208
+ headHeight: number;
209
+ scrollLoading: boolean | {
210
+ [key: string]: any;
211
+ };
212
+ pagination: boolean | {
213
+ [key: string]: any;
214
+ };
24
215
  columnPick: string;
216
+ rowHeight: any;
217
+ showHead: boolean;
218
+ virtualEnabled: boolean;
219
+ remotePagination: boolean;
220
+ emptyText: string;
221
+ settings: boolean | import("./props").Settings;
222
+ rowClass: any;
223
+ rowStyle: any;
224
+ cellStyle: any;
225
+ cellClass: any;
226
+ reserveExpand: boolean;
227
+ rowKey: any;
25
228
  }>;
26
229
  export default _default;
@@ -1,66 +1,288 @@
1
1
  @import '../styles/themes/themes.less';
2
+ @import './plugins/head-filter.less';
3
+ @import './plugins/head-sort.less';
4
+ @import './plugins/settings.less';
2
5
 
3
6
  .@{bk-prefix}-table {
7
+ position: relative;
8
+ height: auto;
9
+ overflow: hidden;
10
+ border-top: 1px solid @table-border-color;
11
+
12
+ &.has-scroll-y {
13
+ border-bottom: 1px solid @table-border-color;
14
+
15
+ .@{bk-prefix}-table-head {
16
+ padding-right: 4px;
17
+ }
18
+
19
+ &.is-scroll-bottom {
20
+ border-bottom: 1px solid transparent;
21
+ }
22
+ }
23
+
4
24
  .@{bk-prefix}-table-body {
5
- height: 500px;
25
+ position: relative;
6
26
  overflow: auto;
7
- background: @white-color;
27
+
28
+ &::-webkit-scrollbar {
29
+ height: 6px;
30
+ }
31
+ }
32
+
33
+ .@{bk-prefix}-table-head,
34
+ .@{bk-prefix}-table-body {
35
+ background: @table-bg-color;
36
+
37
+ &.__is-empty {
38
+ display: flex;
39
+ height: 100%;
40
+ justify-content: center;
41
+ align-items: center;
42
+
43
+ .@{bk-prefix}-table-body-content {
44
+ display: flex;
45
+ height: 100%;
46
+ }
47
+ }
8
48
 
9
49
  table {
10
50
  width: 100%;
11
51
  border-collapse: collapse;
12
-
13
- .cell {
14
- height: 40px;
15
- padding: 0 15px;
16
- overflow: hidden;
17
- line-height: 40px;
18
- text-overflow: ellipsis;
19
- white-space: nowrap;
20
- }
21
-
52
+ table-layout: fixed;
53
+ align-self: flex-start;
54
+
22
55
  th,
23
56
  td {
24
57
  min-width: 80px;
25
- border-bottom: 1px solid #dfe0e5;
58
+ clear: both;
59
+
60
+ .cell {
61
+ height: var(--row-height);
62
+ padding: 0 15px;
63
+ overflow: hidden;
64
+ line-height: var(--row-height);
65
+ color: @table-body-font-color;
66
+ text-align: left;
67
+ text-overflow: ellipsis;
68
+ white-space: nowrap;
69
+
70
+ &.expand-cell {
71
+ padding: 0;
72
+ text-overflow: unset;
73
+ }
74
+
75
+ .expand-btn-action {
76
+ display: flex;
77
+ padding: 0 15px;
78
+ cursor: pointer;
79
+ }
80
+ }
81
+
82
+ &.column_fixed {
83
+ position: sticky;
84
+ background: #fff;
85
+
86
+ &.column_fixed_left {
87
+ left: 0;
88
+ }
89
+
90
+ &.column_fixed_right {
91
+ right: 0;
92
+ }
93
+ }
94
+
95
+ &.row_expend {
96
+ .expand-cell-ctx {
97
+ min-height: 30px;
98
+ }
99
+ }
26
100
  }
27
101
 
28
102
  thead {
29
103
  th {
30
- position: sticky;
31
- top: 0;
32
- z-index: 1;
33
- background-color: #fff;
34
-
35
- &.active {
36
- background: #f0f1f5;
37
- // cursor: ;
104
+ font-weight: 400;
105
+ color: @table-head-font-color;
106
+ background-color: @table-head-bg-color;
107
+
108
+ .cell {
109
+ display: flex;
110
+ align-items: center;
111
+ }
112
+
113
+ &.active,
114
+ &:hover {
115
+ background: @table-row-active-bg-color;
116
+ }
117
+
118
+ &.column_fixed {
119
+ transform: translateX(var(--scroll-left));
38
120
  }
39
121
  }
40
122
  }
41
123
 
42
124
  tbody {
43
125
  tr {
126
+ td {
127
+ &.empty-cell {
128
+ padding-bottom: 30px;
129
+ }
130
+
131
+ .cell {
132
+ display: block;
133
+ width: 100%;
134
+ align-items: center;
135
+ box-sizing: border-box;
136
+ }
137
+ }
138
+
44
139
  &:hover {
45
140
  td {
46
- background: #f5f7fa;
141
+ &:not(.empty-cell) {
142
+ background: @table-row-hover-bg-color;
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+
151
+ .@{bk-prefix}-table-head {
152
+ position: relative;
153
+ transform: translateX(var(--scroll-head-left));
154
+
155
+ .table-head-settings {
156
+ position: absolute;
157
+ top: 0;
158
+ right: 1px;
159
+ bottom: 1px;
160
+ display: block;
161
+
162
+ display: flex;
163
+ width: calc(var(--row-height));
164
+ font-size: 18px;
165
+ cursor: pointer;
166
+
167
+ background: #f0f1f5;
168
+ border-right: 1px solid #dcdee5;
169
+ border-left: 1px solid #dcdee5;
170
+ border-radius: 0px 2px 0px 0px;
171
+ justify-content: center;
172
+ align-items: center;
173
+ }
174
+ }
175
+
176
+ .@{bk-prefix}-table-footer {
177
+ line-height: 40px;
178
+ border-top: 1px solid @table-border-color;
179
+ border-bottom: 1px solid @table-border-color;
180
+
181
+ &.is-hidden {
182
+ display: none;
183
+ }
184
+ }
185
+
186
+ &.bordered-row {
187
+ td,
188
+ th {
189
+ .cell {
190
+ border-bottom: 1px solid @table-border-color;
191
+ }
192
+ }
193
+
194
+ &.has-footer {
195
+ border-bottom: none;
196
+
197
+ &.has-scroll-y {
198
+ tr {
199
+ &:last-child {
200
+ td {
201
+ .cell {
202
+ border-bottom: none;
203
+ }
47
204
  }
48
205
  }
49
206
  }
50
207
  }
51
208
  }
52
209
  }
210
+
211
+ &.bordered-outer {
212
+ border-right: 1px solid @table-border-color;
213
+ border-left: 1px solid @table-border-color;
214
+ }
215
+
216
+ &.bordered-col {
217
+ th,
218
+ td {
219
+ border-right: 1px solid @table-border-color;
220
+
221
+ &:last-child {
222
+ border-right: none;
223
+ }
224
+ }
225
+
226
+ }
227
+
228
+ &.bordered-none {
229
+ th,
230
+ td {
231
+ border-top: none;
232
+ border-right: none;
233
+ border-left: none;
234
+
235
+ .cell {
236
+ border-bottom: none;
237
+ }
238
+ }
239
+ }
240
+
53
241
  .@{bk-prefix}-table-fixed {
242
+ position: absolute;
243
+ top: 0;
244
+ right: 0;
245
+ bottom: 0;
246
+ left: 0;
54
247
  width: 100%;
248
+ pointer-events: none;
249
+
250
+ .column_fixed {
251
+ position: absolute;
252
+
253
+ &.column_fixed_left {
254
+ top: 0;
255
+ left: 0;
256
+ box-shadow: 0 0 10px rgb(0 0 0 / 12%);
257
+ }
258
+
259
+ &.column_fixed_right {
260
+ top: 0;
261
+ right: 0;
262
+ box-shadow: 0 0 10px rgb(0 0 0 / 12%);
263
+ }
264
+ }
265
+
266
+ .scroll-loading {
267
+ &._bottom {
268
+ position: absolute;
269
+ right: 0;
270
+ bottom: 0;
271
+ left: 0;
272
+
273
+ display: flex;
274
+ justify-content: center;
275
+ }
276
+ }
55
277
  }
56
278
 
57
279
  colgroup {
58
280
  col {
59
- background: #fff;
281
+ background: @table-bg-color;
60
282
 
61
283
  &.active {
62
284
  position: relative;
63
- background: #f0f1f5;
285
+ background: @table-row-active-bg-color;
64
286
  }
65
287
  }
66
288
  }