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
@@ -1,26 +1,233 @@
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;
11
+ }; /**
12
+ * 监听Table 派发的相关事件
13
+ */
14
+ height: import("vue-types").VueTypeDef<string | number> & {
15
+ default: string | number;
10
16
  };
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
- }> & ({} | {}), {
17
+ minHeight: import("vue-types").VueTypeDef<string | number> & {
18
+ default: string | number;
19
+ };
20
+ maxHeight: import("vue-types").VueTypeDef<string | number> & {
21
+ default: string | number;
22
+ };
23
+ rowHeight: import("vue-types").VueTypeDef<any> & {
24
+ default: any;
25
+ };
26
+ headHeight: import("vue-types").VueTypeValidableDef<number> & {
27
+ default: number;
28
+ } & {
29
+ default: number;
30
+ };
31
+ showHead: import("vue-types").VueTypeValidableDef<boolean> & {
32
+ default: boolean;
33
+ } & {
34
+ default: boolean;
35
+ };
36
+ thead: import("vue-types").VueTypeShape<import("./props").Thead>;
37
+ virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
38
+ default: boolean;
39
+ } & {
40
+ default: boolean;
41
+ };
42
+ border: import("vue-types").VueTypeDef<string[]> & {
43
+ default: () => string[];
44
+ };
45
+ pagination: import("vue-types").VueTypeDef<boolean | {
46
+ [key: string]: any;
47
+ }> & {
48
+ default: boolean | (() => {
49
+ [key: string]: any;
50
+ });
51
+ };
52
+ remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
53
+ default: boolean;
54
+ } & {
55
+ default: boolean;
56
+ };
57
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
58
+ default: string;
59
+ } & {
60
+ default: string;
61
+ };
62
+ settings: import("vue-types").VueTypeDef<boolean | import("./props").Settings> & {
63
+ default: boolean | (() => import("./props").Settings);
64
+ };
65
+ rowClass: import("vue-types").VueTypeDef<any> & {
66
+ default: any;
67
+ };
68
+ rowStyle: import("vue-types").VueTypeDef<any> & {
69
+ default: any;
70
+ };
71
+ cellStyle: import("vue-types").VueTypeDef<any> & {
72
+ default: any;
73
+ };
74
+ cellClass: import("vue-types").VueTypeDef<any> & {
75
+ default: any;
76
+ };
77
+ scrollLoading: import("vue-types").VueTypeDef<boolean | {
78
+ [key: string]: any;
79
+ }> & {
80
+ default: boolean | (() => {
81
+ [key: string]: any;
82
+ });
83
+ };
84
+ reserveExpand: import("vue-types").VueTypeValidableDef<boolean> & {
85
+ default: boolean;
86
+ } & {
87
+ default: boolean;
88
+ };
89
+ rowKey: import("vue-types").VueTypeDef<any> & {
90
+ default: any;
91
+ };
92
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
93
+ columnPick: (..._args: any[]) => boolean;
94
+ columnFilter: (..._args: any[]) => boolean;
95
+ columnSort: (..._args: any[]) => boolean;
96
+ rowClick: (..._args: any[]) => boolean;
97
+ rowDblClick: (..._args: any[]) => boolean;
98
+ rowExpand: (..._args: any[]) => boolean;
99
+ pageLimitChange: (..._args: any[]) => boolean;
100
+ pageValueChange: (..._args: any[]) => boolean;
101
+ settingChange: (..._args: any[]) => boolean;
102
+ scrollBottom: (..._args: any[]) => boolean;
103
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
104
+ data: import("vue-types").VueTypeDef<any[]> & {
105
+ default: () => any[];
106
+ };
107
+ columns: import("vue-types").VueTypeDef<import("./props").Column[]> & {
108
+ default: () => import("./props").Column[];
109
+ };
110
+ activeColumn: import("vue-types").VueTypeDef<number | number[]>;
111
+ columnPick: import("vue-types").VueTypeDef<string> & {
112
+ default: string;
113
+ }; /**
114
+ * 监听Table 派发的相关事件
115
+ */
116
+ height: import("vue-types").VueTypeDef<string | number> & {
117
+ default: string | number;
118
+ };
119
+ minHeight: import("vue-types").VueTypeDef<string | number> & {
120
+ default: string | number;
121
+ };
122
+ maxHeight: import("vue-types").VueTypeDef<string | number> & {
123
+ default: string | number;
124
+ };
125
+ rowHeight: import("vue-types").VueTypeDef<any> & {
126
+ default: any;
127
+ };
128
+ headHeight: import("vue-types").VueTypeValidableDef<number> & {
129
+ default: number;
130
+ } & {
131
+ default: number;
132
+ };
133
+ showHead: import("vue-types").VueTypeValidableDef<boolean> & {
134
+ default: boolean;
135
+ } & {
136
+ default: boolean;
137
+ };
138
+ thead: import("vue-types").VueTypeShape<import("./props").Thead>;
139
+ virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
140
+ default: boolean;
141
+ } & {
142
+ default: boolean;
143
+ };
144
+ border: import("vue-types").VueTypeDef<string[]> & {
145
+ default: () => string[];
146
+ };
147
+ pagination: import("vue-types").VueTypeDef<boolean | {
148
+ [key: string]: any;
149
+ }> & {
150
+ default: boolean | (() => {
151
+ [key: string]: any;
152
+ });
153
+ };
154
+ remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
155
+ default: boolean;
156
+ } & {
157
+ default: boolean;
158
+ };
159
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
160
+ default: string;
161
+ } & {
162
+ default: string;
163
+ };
164
+ settings: import("vue-types").VueTypeDef<boolean | import("./props").Settings> & {
165
+ default: boolean | (() => import("./props").Settings);
166
+ };
167
+ rowClass: import("vue-types").VueTypeDef<any> & {
168
+ default: any;
169
+ };
170
+ rowStyle: import("vue-types").VueTypeDef<any> & {
171
+ default: any;
172
+ };
173
+ cellStyle: import("vue-types").VueTypeDef<any> & {
174
+ default: any;
175
+ };
176
+ cellClass: import("vue-types").VueTypeDef<any> & {
177
+ default: any;
178
+ };
179
+ scrollLoading: import("vue-types").VueTypeDef<boolean | {
180
+ [key: string]: any;
181
+ }> & {
182
+ default: boolean | (() => {
183
+ [key: string]: any;
184
+ });
185
+ };
186
+ reserveExpand: import("vue-types").VueTypeValidableDef<boolean> & {
187
+ default: boolean;
188
+ } & {
189
+ default: boolean;
190
+ };
191
+ rowKey: import("vue-types").VueTypeDef<any> & {
192
+ default: any;
193
+ };
194
+ }>> & {
195
+ onColumnPick?: (...args: any[]) => any;
196
+ onColumnSort?: (...args: any[]) => any;
197
+ onColumnFilter?: (...args: any[]) => any;
198
+ onRowClick?: (...args: any[]) => any;
199
+ onRowDblClick?: (...args: any[]) => any;
200
+ onRowExpand?: (...args: any[]) => any;
201
+ onPageLimitChange?: (...args: any[]) => any;
202
+ onPageValueChange?: (...args: any[]) => any;
203
+ onSettingChange?: (...args: any[]) => any;
204
+ onScrollBottom?: (...args: any[]) => any;
205
+ }, {
23
206
  data: any[];
207
+ height: string | number;
208
+ maxHeight: string | number;
209
+ minHeight: string | number;
210
+ border: string[];
211
+ columns: import("./props").Column[];
212
+ headHeight: number;
213
+ scrollLoading: boolean | {
214
+ [key: string]: any;
215
+ };
216
+ pagination: boolean | {
217
+ [key: string]: any;
218
+ };
24
219
  columnPick: string;
220
+ rowHeight: any;
221
+ showHead: boolean;
222
+ virtualEnabled: boolean;
223
+ remotePagination: boolean;
224
+ emptyText: string;
225
+ settings: boolean | import("./props").Settings;
226
+ rowClass: any;
227
+ rowStyle: any;
228
+ cellStyle: any;
229
+ cellClass: any;
230
+ reserveExpand: boolean;
231
+ rowKey: any;
25
232
  }>;
26
233
  export default _default;
@@ -1,66 +1,293 @@
1
1
  @import '../styles/themes/themes.less';
2
+ @import '../styles/mixins/scroll.less';
3
+ @import '../virtual-render/virtual-render.less';
4
+ @import '../checkbox/checkbox.less';
5
+ @import '../button/button.less';
6
+ @import '../exception/exception.less';
7
+ @import '../pagination/pagination.less';
8
+ @import '../popover2/popover2.less';
9
+ @import './plugins/head-filter.less';
10
+ @import './plugins/head-sort.less';
11
+ @import './plugins/settings.less';
2
12
 
3
13
  .@{bk-prefix}-table {
14
+ position: relative;
15
+ height: auto;
16
+ overflow: hidden;
17
+ border-top: 1px solid @table-border-color;
18
+
19
+ &.has-scroll-y {
20
+ border-bottom: 1px solid @table-border-color;
21
+
22
+ .@{bk-prefix}-table-head {
23
+ padding-right: 4px;
24
+ }
25
+
26
+ &.is-scroll-bottom {
27
+ border-bottom: 1px solid transparent;
28
+ }
29
+ }
30
+
4
31
  .@{bk-prefix}-table-body {
5
- height: 500px;
32
+ position: relative;
6
33
  overflow: auto;
7
- background: @white-color;
34
+ }
35
+
36
+ .@{bk-prefix}-table-head,
37
+ .@{bk-prefix}-table-body {
38
+ background: @table-bg-color;
39
+
40
+ &.__is-empty {
41
+ display: flex;
42
+ height: 100%;
43
+ justify-content: center;
44
+ align-items: center;
45
+
46
+ .@{bk-prefix}-table-body-content {
47
+ display: flex;
48
+ width: 100%;
49
+ height: 100%;
50
+ }
51
+ }
8
52
 
9
53
  table {
10
54
  width: 100%;
11
55
  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
-
56
+ table-layout: fixed;
57
+ align-self: flex-start;
58
+
22
59
  th,
23
60
  td {
24
61
  min-width: 80px;
25
- border-bottom: 1px solid #dfe0e5;
62
+ clear: both;
63
+
64
+ .cell {
65
+ height: var(--row-height);
66
+ padding: 0 15px;
67
+ overflow: hidden;
68
+ font-size: 12px;
69
+ line-height: var(--row-height);
70
+ color: @table-body-font-color;
71
+ text-align: left;
72
+ text-overflow: ellipsis;
73
+ white-space: nowrap;
74
+
75
+ &.expand-cell {
76
+ padding: 0;
77
+ text-overflow: unset;
78
+ }
79
+
80
+ .expand-btn-action {
81
+ display: flex;
82
+ padding: 0 15px;
83
+ cursor: pointer;
84
+ }
85
+ }
86
+
87
+ &.column_fixed {
88
+ position: sticky;
89
+ background: #fff;
90
+
91
+ &.column_fixed_left {
92
+ left: 0;
93
+ }
94
+
95
+ &.column_fixed_right {
96
+ right: 0;
97
+ }
98
+ }
99
+
100
+ &.row_expend {
101
+ .expand-cell-ctx {
102
+ min-height: 30px;
103
+ }
104
+ }
26
105
  }
27
106
 
28
107
  thead {
29
108
  th {
30
- position: sticky;
31
- top: 0;
32
- z-index: 1;
33
- background-color: #fff;
34
-
35
- &.active {
36
- background: #f0f1f5;
37
- // cursor: ;
109
+ font-weight: 400;
110
+ color: @table-head-font-color;
111
+ background-color: @table-head-bg-color;
112
+
113
+ .cell {
114
+ display: flex;
115
+ align-items: center;
116
+ }
117
+
118
+ &.active,
119
+ &:hover {
120
+ background: @table-row-active-bg-color;
121
+ }
122
+
123
+ &.column_fixed {
124
+ transform: translateX(var(--scroll-left));
38
125
  }
39
126
  }
40
127
  }
41
128
 
42
129
  tbody {
43
130
  tr {
131
+ td {
132
+ &.empty-cell {
133
+ padding-bottom: 30px;
134
+ }
135
+
136
+ .cell {
137
+ display: block;
138
+ width: 100%;
139
+ align-items: center;
140
+ box-sizing: border-box;
141
+ }
142
+ }
143
+
44
144
  &:hover {
45
145
  td {
46
- background: #f5f7fa;
146
+ &:not(.empty-cell) {
147
+ background: @table-row-hover-bg-color;
148
+ }
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+
156
+ .@{bk-prefix}-table-head {
157
+ position: relative;
158
+ transform: translateX(var(--scroll-head-left));
159
+
160
+ .table-head-settings {
161
+ position: absolute;
162
+ top: 0;
163
+ right: 1px;
164
+ bottom: 1px;
165
+ display: block;
166
+
167
+ display: flex;
168
+ width: calc(var(--row-height));
169
+ font-size: 18px;
170
+ cursor: pointer;
171
+
172
+ background: #f0f1f5;
173
+ border-right: 1px solid #dcdee5;
174
+ border-left: 1px solid #dcdee5;
175
+ border-radius: 0px 2px 0px 0px;
176
+ justify-content: center;
177
+ align-items: center;
178
+ }
179
+ }
180
+
181
+ .@{bk-prefix}-table-footer {
182
+ line-height: 40px;
183
+ border-top: 1px solid @table-border-color;
184
+ border-bottom: 1px solid @table-border-color;
185
+
186
+ &.is-hidden {
187
+ display: none;
188
+ }
189
+ }
190
+
191
+ &.bordered-row {
192
+ td,
193
+ th {
194
+ .cell {
195
+ border-bottom: 1px solid @table-border-color;
196
+ }
197
+ }
198
+
199
+ &.has-footer {
200
+ border-bottom: none;
201
+
202
+ &.has-scroll-y {
203
+ tr {
204
+ &:last-child {
205
+ td {
206
+ .cell {
207
+ border-bottom: none;
208
+ }
47
209
  }
48
210
  }
49
211
  }
50
212
  }
51
213
  }
52
214
  }
215
+
216
+ &.bordered-outer {
217
+ border-right: 1px solid @table-border-color;
218
+ border-left: 1px solid @table-border-color;
219
+ }
220
+
221
+ &.bordered-col {
222
+ th,
223
+ td {
224
+ border-right: 1px solid @table-border-color;
225
+
226
+ &:last-child {
227
+ border-right: none;
228
+ }
229
+ }
230
+
231
+ }
232
+
233
+ &.bordered-none {
234
+ th,
235
+ td {
236
+ border-top: none;
237
+ border-right: none;
238
+ border-left: none;
239
+
240
+ .cell {
241
+ border-bottom: none;
242
+ }
243
+ }
244
+ }
245
+
53
246
  .@{bk-prefix}-table-fixed {
247
+ position: absolute;
248
+ top: 0;
249
+ right: 0;
250
+ bottom: 0;
251
+ left: 0;
54
252
  width: 100%;
253
+ pointer-events: none;
254
+
255
+ .column_fixed {
256
+ position: absolute;
257
+
258
+ &.column_fixed_left {
259
+ top: 0;
260
+ left: 0;
261
+ box-shadow: 0 0 10px rgb(0 0 0 / 12%);
262
+ }
263
+
264
+ &.column_fixed_right {
265
+ top: 0;
266
+ right: 0;
267
+ box-shadow: 0 0 10px rgb(0 0 0 / 12%);
268
+ }
269
+ }
270
+
271
+ .scroll-loading {
272
+ &._bottom {
273
+ position: absolute;
274
+ right: 0;
275
+ bottom: 0;
276
+ left: 0;
277
+
278
+ display: flex;
279
+ justify-content: center;
280
+ }
281
+ }
55
282
  }
56
283
 
57
284
  colgroup {
58
285
  col {
59
- background: #fff;
286
+ background: @table-bg-color;
60
287
 
61
288
  &.active {
62
289
  position: relative;
63
- background: #f0f1f5;
290
+ background: @table-row-active-bg-color;
64
291
  }
65
292
  }
66
293
  }