bkui-vue 0.0.1-beta.9 → 0.0.1-beta.90

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 (556) hide show
  1. package/README.md +31 -19
  2. package/dist/index.cjs.js +57 -0
  3. package/dist/index.esm.js +24736 -0
  4. package/dist/index.umd.js +57 -0
  5. package/dist/style.css +1 -2348
  6. package/lib/affix/affix.css +3 -0
  7. package/lib/affix/affix.d.ts +47 -0
  8. package/lib/affix/affix.less +5 -0
  9. package/lib/affix/affix.variable.css +102 -0
  10. package/lib/affix/index.d.ts +143 -0
  11. package/lib/affix/index.js +1 -0
  12. package/lib/alert/alert.css +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 +34 -3
  16. package/lib/alert/index.d.ts +180 -0
  17. package/lib/alert/index.js +1 -1
  18. package/lib/animate-number/animate-number.d.ts +12 -7
  19. package/lib/animate-number/index.d.ts +97 -0
  20. package/lib/animate-number/index.js +1 -1
  21. package/lib/backtop/backtop.d.ts +27 -13
  22. package/lib/backtop/backtop.variable.css +29 -0
  23. package/lib/backtop/index.d.ts +166 -0
  24. package/lib/backtop/index.js +1 -1
  25. package/lib/badge/badge.css +5 -5
  26. package/lib/badge/badge.d.ts +64 -22
  27. package/lib/badge/badge.less +5 -6
  28. package/lib/badge/badge.variable.css +34 -5
  29. package/lib/badge/index.d.ts +267 -0
  30. package/lib/badge/index.js +1 -1
  31. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  32. package/lib/breadcrumb/breadcrumb.css +18 -1
  33. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  34. package/lib/breadcrumb/breadcrumb.less +13 -2
  35. package/lib/breadcrumb/breadcrumb.variable.css +47 -1
  36. package/lib/breadcrumb/index.d.ts +194 -0
  37. package/lib/breadcrumb/index.js +1 -1
  38. package/lib/button/button-group.d.ts +3 -5
  39. package/lib/button/button.css +73 -44
  40. package/lib/button/button.d.ts +67 -31
  41. package/lib/button/button.less +68 -47
  42. package/lib/button/button.variable.css +102 -44
  43. package/lib/button/index.d.ts +237 -0
  44. package/lib/button/index.js +1 -1
  45. package/lib/card/card.css +53 -1
  46. package/lib/card/card.d.ts +74 -18
  47. package/lib/card/card.less +50 -2
  48. package/lib/card/card.variable.css +82 -1
  49. package/lib/card/index.d.ts +283 -0
  50. package/lib/card/index.js +1 -1
  51. package/lib/cascader/cascader-panel.d.ts +48 -0
  52. package/lib/cascader/cascader.css +130 -0
  53. package/lib/cascader/cascader.d.ts +271 -0
  54. package/lib/cascader/cascader.less +146 -0
  55. package/lib/cascader/cascader.variable.css +229 -0
  56. package/lib/cascader/index.d.ts +721 -0
  57. package/lib/cascader/index.js +1 -0
  58. package/lib/cascader/interface.d.ts +44 -0
  59. package/lib/cascader/node.d.ts +24 -0
  60. package/lib/cascader/store.d.ts +15 -0
  61. package/lib/checkbox/checkbox-group.d.ts +13 -9
  62. package/lib/checkbox/checkbox.css +15 -2
  63. package/lib/checkbox/checkbox.d.ts +33 -30
  64. package/lib/checkbox/checkbox.less +20 -2
  65. package/lib/checkbox/checkbox.variable.css +44 -2
  66. package/lib/checkbox/common.d.ts +3 -3
  67. package/lib/checkbox/index.d.ts +253 -0
  68. package/lib/checkbox/index.js +1 -1
  69. package/lib/checkbox/type.d.ts +4 -8
  70. package/lib/code-diff/code-diff.css +186 -0
  71. package/lib/code-diff/code-diff.d.ts +80 -0
  72. package/lib/code-diff/code-diff.less +238 -0
  73. package/lib/code-diff/code-diff.variable.css +285 -0
  74. package/lib/code-diff/index.d.ts +154 -0
  75. package/lib/code-diff/index.js +1 -0
  76. package/lib/collapse/collapse.css +25 -1
  77. package/lib/collapse/collapse.d.ts +51 -22
  78. package/lib/collapse/collapse.less +34 -2
  79. package/lib/collapse/collapse.variable.css +124 -1
  80. package/lib/collapse/index.d.ts +182 -0
  81. package/lib/collapse/index.js +1 -1
  82. package/lib/collapse/utils.d.ts +11 -0
  83. package/lib/components.d.ts +25 -4
  84. package/lib/components.js +1 -0
  85. package/lib/container/col.d.ts +51 -0
  86. package/lib/container/container.css +48 -0
  87. package/lib/container/container.d.ts +83 -0
  88. package/lib/container/container.less +20 -0
  89. package/lib/container/container.variable.css +147 -0
  90. package/lib/container/index.d.ts +223 -0
  91. package/lib/container/index.js +1 -0
  92. package/lib/container/row.d.ts +4 -0
  93. package/lib/date-picker/date-picker.css +408 -0
  94. package/lib/date-picker/date-picker.d.ts +312 -0
  95. package/lib/date-picker/date-picker.less +527 -0
  96. package/lib/date-picker/date-picker.variable.css +507 -0
  97. package/lib/date-picker/fecha.d.ts +6 -0
  98. package/lib/date-picker/index.d.ts +753 -0
  99. package/lib/date-picker/index.js +1 -0
  100. package/lib/date-picker/interface.d.ts +22 -0
  101. package/lib/date-picker/props.d.ts +118 -0
  102. package/lib/date-picker/utils.d.ts +97 -0
  103. package/lib/dialog/dialog.css +66 -14
  104. package/lib/dialog/dialog.d.ts +305 -52
  105. package/lib/dialog/dialog.less +34 -14
  106. package/lib/dialog/dialog.variable.css +66 -14
  107. package/lib/dialog/index.d.ts +772 -0
  108. package/lib/dialog/index.js +1 -1
  109. package/lib/directives/clickoutside.d.ts +3 -23
  110. package/lib/directives/index.d.ts +3 -0
  111. package/lib/directives/index.js +2 -15
  112. package/lib/directives/index.js.LICENSE.txt +14 -0
  113. package/lib/directives/tooltips.d.ts +17 -0
  114. package/lib/dist.index.js +1 -0
  115. package/lib/divider/divider.css +38 -0
  116. package/lib/divider/divider.d.ts +48 -0
  117. package/lib/divider/divider.less +53 -0
  118. package/lib/divider/divider.variable.css +137 -0
  119. package/lib/divider/index.d.ts +142 -0
  120. package/lib/divider/index.js +1 -0
  121. package/lib/divider/props.d.ts +21 -0
  122. package/lib/dropdown/dropdown-item.d.ts +19 -0
  123. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  124. package/lib/dropdown/dropdown.css +47 -0
  125. package/lib/dropdown/dropdown.d.ts +63 -0
  126. package/lib/dropdown/dropdown.less +59 -0
  127. package/lib/dropdown/dropdown.variable.css +146 -0
  128. package/lib/dropdown/index.d.ts +200 -0
  129. package/lib/dropdown/index.js +1 -0
  130. package/lib/exception/exception.d.ts +11 -9
  131. package/lib/exception/exception.variable.css +29 -0
  132. package/lib/exception/index.d.ts +96 -0
  133. package/lib/exception/index.js +1 -1
  134. package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
  135. package/lib/fixed-navbar/fixed-navbar.variable.css +29 -0
  136. package/lib/fixed-navbar/index.d.ts +147 -0
  137. package/lib/fixed-navbar/index.js +1 -1
  138. package/lib/form/compose-form-item.d.ts +16 -0
  139. package/lib/form/form-item.d.ts +155 -0
  140. package/lib/form/form.css +125 -0
  141. package/lib/form/form.d.ts +81 -0
  142. package/lib/form/form.less +152 -0
  143. package/lib/form/form.variable.css +224 -0
  144. package/lib/form/index.d.ts +303 -0
  145. package/lib/form/index.js +1 -0
  146. package/lib/form/type.d.ts +23 -0
  147. package/lib/form/validator.d.ts +9 -0
  148. package/lib/icon/angle-double-down-line.d.ts +4 -0
  149. package/lib/icon/angle-double-down-line.js +1 -0
  150. package/lib/icon/angle-double-left-line.d.ts +4 -0
  151. package/lib/icon/angle-double-left-line.js +1 -0
  152. package/lib/icon/angle-double-left.d.ts +4 -0
  153. package/lib/icon/angle-double-left.js +1 -0
  154. package/lib/icon/angle-double-right-line.d.ts +4 -0
  155. package/lib/icon/angle-double-right-line.js +1 -0
  156. package/lib/icon/angle-double-right.d.ts +4 -0
  157. package/lib/icon/angle-double-right.js +1 -0
  158. package/lib/icon/angle-double-up-line.d.ts +4 -0
  159. package/lib/icon/angle-double-up-line.js +1 -0
  160. package/lib/icon/angle-down-fill.d.ts +4 -0
  161. package/lib/icon/angle-down-fill.js +1 -0
  162. package/lib/icon/angle-down-line.d.ts +4 -0
  163. package/lib/icon/angle-down-line.js +1 -0
  164. package/lib/icon/angle-down.d.ts +4 -0
  165. package/lib/icon/angle-down.js +1 -0
  166. package/lib/icon/angle-left.d.ts +4 -0
  167. package/lib/icon/angle-left.js +1 -0
  168. package/lib/icon/angle-right.d.ts +4 -0
  169. package/lib/icon/angle-right.js +1 -0
  170. package/lib/icon/angle-up-fill.d.ts +4 -0
  171. package/lib/icon/angle-up-fill.js +1 -0
  172. package/lib/icon/angle-up.js +1 -0
  173. package/lib/icon/archive-fill.d.ts +4 -0
  174. package/lib/icon/archive-fill.js +1 -0
  175. package/lib/icon/arrows-left.d.ts +4 -0
  176. package/lib/icon/arrows-left.js +1 -0
  177. package/lib/icon/arrows-right.d.ts +4 -0
  178. package/lib/icon/arrows-right.js +1 -0
  179. package/lib/icon/audio-fill.d.ts +4 -0
  180. package/lib/icon/audio-fill.js +1 -0
  181. package/lib/icon/bk.d.ts +4 -0
  182. package/lib/icon/bk.js +1 -0
  183. package/lib/icon/circle.d.ts +4 -0
  184. package/lib/icon/circle.js +1 -0
  185. package/lib/icon/close-line.d.ts +4 -0
  186. package/lib/icon/close-line.js +1 -0
  187. package/lib/icon/close.js +1 -0
  188. package/lib/icon/code.d.ts +4 -0
  189. package/lib/icon/code.js +1 -0
  190. package/lib/icon/cog-shape.d.ts +4 -0
  191. package/lib/icon/cog-shape.js +1 -0
  192. package/lib/icon/collapse-left.d.ts +4 -0
  193. package/lib/icon/collapse-left.js +1 -0
  194. package/lib/icon/copy.d.ts +4 -0
  195. package/lib/icon/copy.js +1 -0
  196. package/lib/icon/data-shape.d.ts +4 -0
  197. package/lib/icon/data-shape.js +1 -0
  198. package/lib/icon/del.d.ts +4 -0
  199. package/lib/icon/del.js +1 -0
  200. package/lib/icon/doc-fill.d.ts +4 -0
  201. package/lib/icon/doc-fill.js +1 -0
  202. package/lib/icon/done.d.ts +4 -0
  203. package/lib/icon/done.js +1 -0
  204. package/lib/icon/down-shape.d.ts +4 -0
  205. package/lib/icon/down-shape.js +1 -0
  206. package/lib/icon/down-small.js +1 -0
  207. package/lib/icon/edit-line.d.ts +4 -0
  208. package/lib/icon/edit-line.js +1 -0
  209. package/lib/icon/ellipsis.d.ts +4 -0
  210. package/lib/icon/ellipsis.js +1 -0
  211. package/lib/icon/error.d.ts +4 -0
  212. package/lib/icon/error.js +1 -0
  213. package/lib/icon/excel-fill.d.ts +4 -0
  214. package/lib/icon/excel-fill.js +1 -0
  215. package/lib/icon/exclamation-circle-shape.d.ts +4 -0
  216. package/lib/icon/exclamation-circle-shape.js +1 -0
  217. package/lib/icon/eye.js +1 -0
  218. package/lib/icon/folder-open.d.ts +4 -0
  219. package/lib/icon/folder-open.js +1 -0
  220. package/lib/icon/folder-shape-open.d.ts +4 -0
  221. package/lib/icon/folder-shape-open.js +1 -0
  222. package/lib/icon/folder-shape.d.ts +4 -0
  223. package/lib/icon/folder-shape.js +1 -0
  224. package/lib/icon/folder.d.ts +4 -0
  225. package/lib/icon/funnel.d.ts +4 -0
  226. package/lib/icon/funnel.js +1 -0
  227. package/lib/icon/help-document-fill.js +1 -0
  228. package/lib/icon/help-fill.js +1 -0
  229. package/lib/icon/help.js +1 -0
  230. package/lib/icon/image-fill.d.ts +4 -0
  231. package/lib/icon/image-fill.js +1 -0
  232. package/lib/icon/index.d.ts +69 -0
  233. package/lib/icon/index.js +1 -15
  234. package/lib/icon/info-line.js +1 -0
  235. package/lib/icon/info.d.ts +4 -0
  236. package/lib/icon/info.js +1 -0
  237. package/lib/icon/left-shape.d.ts +4 -0
  238. package/lib/icon/left-shape.js +1 -0
  239. package/lib/icon/pdf-fill.d.ts +4 -0
  240. package/lib/icon/pdf-fill.js +1 -0
  241. package/lib/icon/play-shape.d.ts +4 -0
  242. package/lib/icon/play-shape.js +1 -0
  243. package/lib/icon/plus.d.ts +4 -0
  244. package/lib/icon/plus.js +1 -0
  245. package/lib/icon/ppt-fill.d.ts +4 -0
  246. package/lib/icon/ppt-fill.js +1 -0
  247. package/lib/icon/qq.d.ts +4 -0
  248. package/lib/icon/qq.js +1 -0
  249. package/lib/icon/right-shape.d.ts +4 -0
  250. package/lib/icon/right-shape.js +1 -0
  251. package/lib/icon/search.js +1 -0
  252. package/lib/icon/share.d.ts +4 -0
  253. package/lib/icon/share.js +1 -0
  254. package/lib/icon/spinner.d.ts +4 -0
  255. package/lib/icon/spinner.js +1 -0
  256. package/lib/icon/success.d.ts +4 -0
  257. package/lib/icon/success.js +1 -0
  258. package/lib/icon/switcher-loading.js +1 -0
  259. package/lib/icon/text-file.d.ts +4 -0
  260. package/lib/icon/text-file.js +1 -0
  261. package/lib/icon/text-fill.d.ts +4 -0
  262. package/lib/icon/text-fill.js +1 -0
  263. package/lib/icon/tree-application-shape.d.ts +4 -0
  264. package/lib/icon/tree-application-shape.js +1 -0
  265. package/lib/icon/unvisible.js +1 -0
  266. package/lib/icon/up-shape.d.ts +4 -0
  267. package/lib/icon/up-shape.js +1 -0
  268. package/lib/icon/upload.d.ts +4 -0
  269. package/lib/icon/upload.js +1 -0
  270. package/lib/icon/video-fill.d.ts +4 -0
  271. package/lib/icon/video-fill.js +1 -0
  272. package/lib/icon/warn.d.ts +4 -0
  273. package/lib/icon/warn.js +1 -0
  274. package/lib/icon/weixin.d.ts +4 -0
  275. package/lib/icon/weixin.js +1 -0
  276. package/lib/index.d.ts +1 -1
  277. package/lib/index.js +1 -0
  278. package/lib/input/index.d.ts +541 -0
  279. package/lib/input/index.js +1 -15
  280. package/lib/input/input.css +82 -5
  281. package/lib/input/input.d.ts +181 -51
  282. package/lib/input/input.less +93 -9
  283. package/lib/input/input.variable.css +112 -5
  284. package/lib/link/index.d.ts +164 -0
  285. package/lib/link/index.js +1 -1
  286. package/lib/link/link.d.ts +25 -13
  287. package/lib/link/link.variable.css +29 -0
  288. package/lib/loading/index.d.ts +172 -0
  289. package/lib/loading/index.js +1 -1
  290. package/lib/loading/loading.css +122 -75
  291. package/lib/loading/loading.d.ts +67 -20
  292. package/lib/loading/loading.less +79 -60
  293. package/lib/loading/loading.variable.css +151 -75
  294. package/lib/menu/index.d.ts +176 -0
  295. package/lib/menu/index.js +1 -0
  296. package/lib/menu/menu-group.d.ts +14 -0
  297. package/lib/menu/menu-item.d.ts +16 -0
  298. package/lib/menu/menu.css +190 -0
  299. package/lib/menu/menu.d.ts +55 -0
  300. package/lib/menu/menu.less +180 -0
  301. package/lib/menu/menu.variable.css +289 -0
  302. package/lib/menu/submenu.css +3 -0
  303. package/lib/menu/submenu.d.ts +22 -0
  304. package/lib/menu/submenu.less +5 -0
  305. package/lib/menu/submenu.variable.css +102 -0
  306. package/lib/menu/utils.d.ts +41 -0
  307. package/lib/message/{message.d.ts → index.d.ts} +0 -0
  308. package/lib/message/index.js +1 -1
  309. package/lib/message/message.css +27 -1
  310. package/lib/message/message.less +30 -1
  311. package/lib/message/message.variable.css +56 -1
  312. package/lib/message/messageConstructor.d.ts +71 -20
  313. package/lib/modal/index.d.ts +605 -0
  314. package/lib/modal/index.js +1 -1
  315. package/lib/modal/modal.css +30 -1
  316. package/lib/modal/modal.d.ts +195 -24
  317. package/lib/modal/modal.less +39 -1
  318. package/lib/modal/modal.variable.css +30 -1
  319. package/lib/modal/props.mixin.d.ts +82 -10
  320. package/lib/navigation/index.d.ts +292 -0
  321. package/lib/navigation/index.js +1 -0
  322. package/lib/navigation/navigation-title.d.ts +25 -0
  323. package/lib/navigation/navigation.css +184 -0
  324. package/lib/navigation/navigation.d.ts +111 -0
  325. package/lib/navigation/navigation.less +210 -0
  326. package/lib/navigation/navigation.variable.css +283 -0
  327. package/lib/notify/index.d.ts +2 -0
  328. package/lib/notify/index.js +1 -0
  329. package/lib/notify/notify.css +65 -0
  330. package/lib/notify/notify.less +76 -0
  331. package/lib/notify/notify.variable.css +164 -0
  332. package/lib/notify/notifyConstructor.d.ts +135 -0
  333. package/lib/pagination/index.d.ts +395 -0
  334. package/lib/pagination/index.js +1 -0
  335. package/lib/pagination/pagination.css +179 -0
  336. package/lib/pagination/pagination.d.ts +220 -0
  337. package/lib/pagination/pagination.less +201 -0
  338. package/lib/pagination/pagination.variable.css +278 -0
  339. package/lib/pagination/type.d.ts +6 -0
  340. package/lib/pagination/use-limit.d.ts +8 -0
  341. package/lib/pagination/use-list.d.ts +8 -0
  342. package/lib/pagination/use-small-list.d.ts +5 -0
  343. package/lib/pagination/use-total.d.ts +5 -0
  344. package/lib/popover/index.d.ts +387 -0
  345. package/lib/popover/index.js +1 -1
  346. package/lib/popover/popover.css +28 -16
  347. package/lib/popover/popover.d.ts +122 -45
  348. package/lib/popover/popover.less +59 -46
  349. package/lib/popover/popover.variable.css +57 -16
  350. package/lib/popover/props.d.ts +104 -0
  351. package/lib/preset.d.ts +2 -3
  352. package/lib/preset.js +1 -0
  353. package/lib/process/index.d.ts +205 -0
  354. package/lib/process/index.js +1 -0
  355. package/lib/process/process.css +138 -0
  356. package/lib/process/process.d.ts +131 -0
  357. package/lib/process/process.less +178 -0
  358. package/lib/process/process.variable.css +237 -0
  359. package/lib/progress/index.d.ts +398 -0
  360. package/lib/progress/index.js +1 -1
  361. package/lib/progress/progress.css +8 -3
  362. package/lib/progress/progress.d.ts +89 -36
  363. package/lib/progress/progress.less +0 -4
  364. package/lib/progress/progress.variable.css +37 -3
  365. package/lib/radio/common.d.ts +5 -5
  366. package/lib/radio/index.d.ts +277 -0
  367. package/lib/radio/index.js +1 -1
  368. package/lib/radio/radio-button.d.ts +28 -20
  369. package/lib/radio/radio-group.d.ts +11 -10
  370. package/lib/radio/radio.css +14 -8
  371. package/lib/radio/radio.d.ts +27 -17
  372. package/lib/radio/radio.less +16 -9
  373. package/lib/radio/radio.variable.css +44 -9
  374. package/lib/radio/type.d.ts +10 -5
  375. package/lib/rate/index.d.ts +113 -0
  376. package/lib/rate/index.js +1 -1
  377. package/lib/rate/rate.d.ts +13 -10
  378. package/lib/rate/star.d.ts +33 -16
  379. package/lib/resize-layout/index.d.ts +336 -0
  380. package/lib/resize-layout/index.js +1 -0
  381. package/lib/resize-layout/resize-layout.css +189 -0
  382. package/lib/resize-layout/resize-layout.d.ts +127 -0
  383. package/lib/resize-layout/resize-layout.less +233 -0
  384. package/lib/resize-layout/resize-layout.variable.css +288 -0
  385. package/lib/select/common.d.ts +23 -17
  386. package/lib/select/index.d.ts +1675 -0
  387. package/lib/select/index.js +1 -1
  388. package/lib/select/option.d.ts +15 -20
  389. package/lib/select/optionGroup.d.ts +54 -0
  390. package/lib/select/select.css +229 -41
  391. package/lib/select/select.d.ts +381 -157
  392. package/lib/select/select.less +242 -53
  393. package/lib/select/select.variable.css +258 -41
  394. package/lib/select/selectTagInput.d.ts +71 -0
  395. package/lib/select/type.d.ts +35 -0
  396. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  397. package/lib/shared/index.d.ts +73 -0
  398. package/lib/shared/index.js +1 -1
  399. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
  400. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
  401. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +60 -6
  402. package/lib/shared/token.d.ts +4 -0
  403. package/lib/shared/utils.d.ts +6 -0
  404. package/lib/shared/vue-types.d.ts +12 -7
  405. package/lib/shared/z-index-manager.d.ts +6 -1
  406. package/lib/sideslider/index.d.ts +533 -0
  407. package/lib/sideslider/index.js +1 -1
  408. package/lib/sideslider/sideslider.css +48 -3
  409. package/lib/sideslider/sideslider.d.ts +205 -30
  410. package/lib/sideslider/sideslider.less +65 -6
  411. package/lib/sideslider/sideslider.variable.css +77 -3
  412. package/lib/slider/index.d.ts +440 -0
  413. package/lib/slider/index.js +1 -0
  414. package/lib/slider/slider-button.d.ts +80 -0
  415. package/lib/slider/slider.css +149 -0
  416. package/lib/slider/slider.d.ts +201 -0
  417. package/lib/slider/slider.less +179 -0
  418. package/lib/slider/slider.variable.css +248 -0
  419. package/lib/steps/index.d.ts +250 -0
  420. package/lib/steps/index.js +1 -15
  421. package/lib/steps/steps.css +4 -1
  422. package/lib/steps/steps.d.ts +42 -29
  423. package/lib/steps/steps.less +5 -1
  424. package/lib/steps/steps.variable.css +33 -1
  425. package/lib/styles/index.d.ts +51 -0
  426. package/lib/styles/mixins/clearfix.css +8 -0
  427. package/lib/styles/mixins/clearfix.less +10 -0
  428. package/lib/styles/mixins/clearfix.variable.css +8 -0
  429. package/lib/styles/mixins/mixins.css +8 -0
  430. package/lib/styles/mixins/mixins.less +1 -0
  431. package/lib/styles/mixins/mixins.variable.css +8 -0
  432. package/lib/styles/mixins/popper.css +43 -0
  433. package/lib/styles/mixins/popper.less +52 -0
  434. package/lib/styles/mixins/popper.variable.css +43 -0
  435. package/lib/styles/mixins/size.less +9 -0
  436. package/lib/styles/reset.css +273 -0
  437. package/lib/styles/reset.less +313 -0
  438. package/lib/styles/reset.variable.css +273 -0
  439. package/lib/styles/themes/themes.less +45 -1
  440. package/lib/swiper/index.d.ts +181 -0
  441. package/lib/swiper/index.js +1 -0
  442. package/lib/swiper/swiper.css +91 -0
  443. package/lib/swiper/swiper.d.ts +65 -0
  444. package/lib/swiper/swiper.less +107 -0
  445. package/lib/swiper/swiper.variable.css +91 -0
  446. package/lib/switcher/index.d.ts +286 -0
  447. package/lib/switcher/index.js +1 -1
  448. package/lib/switcher/switcher.css +157 -135
  449. package/lib/switcher/switcher.d.ts +51 -35
  450. package/lib/switcher/switcher.less +211 -153
  451. package/lib/switcher/switcher.variable.css +186 -135
  452. package/lib/tab/index.d.ts +440 -0
  453. package/lib/tab/index.js +1 -0
  454. package/lib/tab/props.d.ts +194 -0
  455. package/lib/tab/tab-nav.d.ts +169 -0
  456. package/lib/tab/tab-panel.d.ts +73 -0
  457. package/lib/tab/tab.css +167 -0
  458. package/lib/tab/tab.d.ts +139 -0
  459. package/lib/tab/tab.less +228 -0
  460. package/lib/tab/tab.variable.css +266 -0
  461. package/lib/table/const.d.ts +43 -0
  462. package/lib/table/index.d.ts +547 -0
  463. package/lib/table/index.js +1 -1
  464. package/lib/table/plugins/head-filter.css +68 -0
  465. package/lib/table/plugins/head-filter.less +83 -0
  466. package/lib/table/plugins/head-filter.variable.css +167 -0
  467. package/lib/table/plugins/head-sort.css +22 -0
  468. package/lib/table/plugins/head-sort.less +28 -0
  469. package/lib/table/plugins/head-sort.variable.css +121 -0
  470. package/lib/table/plugins/settings.css +110 -0
  471. package/lib/table/plugins/settings.less +136 -0
  472. package/lib/table/plugins/settings.variable.css +209 -0
  473. package/lib/table/props.d.ts +243 -0
  474. package/lib/table/render.d.ts +118 -0
  475. package/lib/table/table.css +436 -0
  476. package/lib/table/table.d.ts +194 -32
  477. package/lib/table/table.less +282 -1
  478. package/lib/table/table.variable.css +465 -0
  479. package/lib/table/use-common.d.ts +71 -0
  480. package/lib/table/utils.d.ts +102 -0
  481. package/lib/tag/index.d.ts +229 -0
  482. package/lib/tag/index.js +1 -1
  483. package/lib/tag/tag.css +97 -0
  484. package/lib/tag/tag.d.ts +83 -53
  485. package/lib/tag/tag.less +110 -2
  486. package/lib/tag/tag.variable.css +126 -0
  487. package/lib/tag-input/common.d.ts +24 -0
  488. package/lib/tag-input/index.d.ts +894 -0
  489. package/lib/tag-input/index.js +1 -0
  490. package/lib/tag-input/list-tag-render.d.ts +47 -0
  491. package/lib/tag-input/tag-input.css +209 -0
  492. package/lib/tag-input/tag-input.d.ts +374 -0
  493. package/lib/tag-input/tag-input.less +251 -0
  494. package/lib/tag-input/tag-input.variable.css +308 -0
  495. package/lib/tag-input/tag-props.d.ts +131 -0
  496. package/lib/tag-input/tag-render.d.ts +38 -0
  497. package/lib/timeline/index.d.ts +129 -0
  498. package/lib/timeline/index.js +1 -0
  499. package/lib/timeline/timeline.css +235 -0
  500. package/lib/timeline/timeline.d.ts +81 -0
  501. package/lib/timeline/timeline.less +239 -0
  502. package/lib/timeline/timeline.variable.css +334 -0
  503. package/lib/transfer/const.d.ts +5 -0
  504. package/lib/transfer/index.d.ts +365 -0
  505. package/lib/transfer/index.js +1 -0
  506. package/lib/transfer/props.d.ts +54 -0
  507. package/lib/transfer/transfer.css +139 -0
  508. package/lib/transfer/transfer.d.ts +160 -0
  509. package/lib/transfer/transfer.less +144 -0
  510. package/lib/transfer/transfer.variable.css +238 -0
  511. package/lib/tree/constant.d.ts +43 -0
  512. package/lib/tree/index.d.ts +472 -0
  513. package/lib/tree/index.js +1 -0
  514. package/lib/tree/props.d.ts +168 -0
  515. package/lib/tree/tree.css +53 -0
  516. package/lib/tree/tree.d.ts +204 -0
  517. package/lib/tree/tree.less +66 -0
  518. package/lib/tree/tree.variable.css +152 -0
  519. package/lib/tree/use-empty.d.ts +6 -0
  520. package/lib/tree/use-node-action.d.ts +11 -0
  521. package/lib/tree/use-node-async.d.ts +5 -0
  522. package/lib/tree/use-node-attribute.d.ts +31 -0
  523. package/lib/tree/use-node-drag.d.ts +3 -0
  524. package/lib/tree/use-search.d.ts +11 -0
  525. package/lib/tree/use-tree-init.d.ts +15 -0
  526. package/lib/tree/util.d.ts +66 -0
  527. package/lib/upload/index.d.ts +2 -0
  528. package/lib/upload/index.js +1 -0
  529. package/lib/upload/props.d.ts +113 -0
  530. package/lib/upload/upload-list.d.ts +46 -0
  531. package/lib/upload/upload-trigger.d.ts +54 -0
  532. package/lib/upload/upload.css +374 -0
  533. package/lib/upload/upload.d.ts +252 -0
  534. package/lib/upload/upload.less +455 -0
  535. package/lib/upload/upload.type.d.ts +78 -0
  536. package/lib/upload/upload.variable.css +473 -0
  537. package/lib/upload/use-ajax-upload.d.ts +3 -0
  538. package/lib/upload/use-file-handler.d.ts +44 -0
  539. package/lib/use-message.d.ts +2 -0
  540. package/lib/virtual-render/index.d.ts +579 -0
  541. package/lib/virtual-render/index.js +1 -0
  542. package/lib/virtual-render/props.d.ts +167 -0
  543. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  544. package/lib/virtual-render/v-virtual-render.d.ts +6 -0
  545. package/lib/virtual-render/virtual-render.css +33 -0
  546. package/lib/virtual-render/virtual-render.d.ts +255 -0
  547. package/lib/virtual-render/virtual-render.less +43 -0
  548. package/lib/virtual-render/virtual-render.variable.css +33 -0
  549. package/package.json +108 -81
  550. package/dist/bkui-vue.cjs.js +0 -5171
  551. package/dist/bkui-vue.esm.js +0 -5137
  552. package/dist/bkui-vue.umd.js +0 -5174
  553. package/lib/styles/index.js +0 -1
  554. package/lib/table/common.d.ts +0 -3
  555. package/lib/table/table-layout.d.ts +0 -14
  556. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,136 @@
1
+ @import '../styles/themes/themes.less';
2
+
3
+ .@{bk-prefix}-table-settings {
4
+ &[data-bk-table-settings-theme='true'] {
5
+ padding: 0;
6
+
7
+ .setting-content {
8
+ width: 515px;
9
+ border: 1px solid #dcdee5;
10
+ border-radius: 2px;
11
+ opacity: 1;
12
+
13
+ .setting-head {
14
+ position: relative;
15
+ display: flex;
16
+ padding: 0 24px;
17
+ margin: 0;
18
+ font-size: 16px;
19
+ font-weight: 400;
20
+ line-height: 32px;
21
+ color: #313238;
22
+
23
+ .icon-close-action {
24
+ position: absolute;
25
+ top: 10px;
26
+ right: 15px;
27
+ cursor: pointer;
28
+ }
29
+ }
30
+
31
+ .setting-body {
32
+ padding: 0 24px;
33
+
34
+ .setting-body-title {
35
+ display: flex;
36
+ font-size: 14px;
37
+ line-height: 19px;
38
+ color: #63656e;
39
+ justify-content: space-between;
40
+
41
+ .limit {
42
+ color: #c4c6cc;
43
+ }
44
+
45
+ .check-all {
46
+ color: #3a84ff;
47
+ cursor: pointer;
48
+ }
49
+ }
50
+
51
+ .setting-body-fields {
52
+ display: flex;
53
+ max-height: 150px;
54
+ align-items: flex-start;
55
+ flex-wrap: wrap;
56
+
57
+ .field-item {
58
+ width: 150px;
59
+ height: 42px;
60
+ line-height: 42px;
61
+
62
+ > label {
63
+ overflow: hidden;
64
+ text-overflow: ellipsis;
65
+ white-space: nowrap;
66
+ }
67
+ }
68
+ }
69
+
70
+ .setting-body-line-height {
71
+ display: flex;
72
+ height: 76px;
73
+ font-size: 14px;
74
+ border-top: solid 1px #f0f1f5;
75
+ align-items: center;
76
+
77
+ .line-size {
78
+ display: flex;
79
+ width: 68px;
80
+ height: 26px;
81
+ color: #63656e;
82
+ cursor: pointer;
83
+
84
+ border: 1px solid #c4c6cc;
85
+ justify-content: center;
86
+ align-items: center;
87
+
88
+
89
+ &.active {
90
+ color: #3a84ff;
91
+ background: #e1ecff;
92
+ border: 1px solid #a3c5fd;
93
+ }
94
+
95
+ &:not(.active) {
96
+ border-right: none;
97
+ border-left: none;
98
+ }
99
+
100
+ &:first-child {
101
+ border-right: 1px solid #c4c6cc;
102
+ border-left: 1px solid #c4c6cc;
103
+ border-bottom-left-radius: 2px;
104
+ border-top-left-radius: 2px;
105
+
106
+ &.is-default {
107
+ border-right: none;
108
+ }
109
+ }
110
+
111
+ &:last-child {
112
+ border-right: 1px solid #c4c6cc;
113
+ border-left: 1px solid #c4c6cc;
114
+ border-top-right-radius: 2px;
115
+ border-bottom-right-radius: 2px;
116
+
117
+ &.is-default {
118
+ border-left: none;
119
+ }
120
+ }
121
+ }
122
+ }
123
+
124
+ }
125
+
126
+ .setting-footer {
127
+ display: flex;
128
+ height: 56px;
129
+ padding: 0 24px;
130
+ background-color: #fafbfd;
131
+ justify-content: flex-end;
132
+ align-items: center;
133
+ }
134
+ }
135
+ }
136
+ }
@@ -0,0 +1,209 @@
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: 38px;
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: #f4f6fa;
36
+ --input-icon-size: var(--font-size-large);
37
+ --input-maxlength-color: #979ba5;
38
+ --button-primary-hover-color: #5594fa;
39
+ --button-danger-hover-color: #ff5656;
40
+ --button-success-hover-color: #45e35f;
41
+ --button-warning-hover-color: #ffb848;
42
+ --button-default-hover-border-color: #979ba5;
43
+ --button-primary-active-color: #2c77f4;
44
+ --button-danger-active-color: #db2626;
45
+ --button-success-active-color: #1ab943;
46
+ --button-warning-active-color: #eb9000;
47
+ --fixed-navbar-background: #fff;
48
+ --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
49
+ --switch-default-color: #fff;
50
+ --switch-grey-color: #c4c6cc;
51
+ --breadcrumb-black-color: #979ba5;
52
+ --breadcrumb-primary-hover-color: #0082ff;
53
+ --breadcrumb-fn-main-color: #63656e;
54
+ --link-default-hover-color: #979ba5;
55
+ --link-primary-hover-color: #699df4;
56
+ --link-success-hover-color: #45e35f;
57
+ --link-warning-hover-color: #ffb848;
58
+ --link-danger-hover-color: #ff5656;
59
+ --link-default-disabled-color: #dcdee5;
60
+ --link-primary-disabled-color: #a3c5fd;
61
+ --link-success-disabled-color: #94f5a4;
62
+ --link-warning-disabled-color: #ffd695;
63
+ --link-danger-disabled-color: #fd9c9c;
64
+ --message-color: var(--default-color);
65
+ --message-primary-bg-color: #f0f8ff;
66
+ --message-primary-border-color: #e1ecff;
67
+ --message-warning-bg-color: #fff4e2;
68
+ --message-warning-border-color: #ffe8c3;
69
+ --message-success-bg-color: #f2fff4;
70
+ --message-success-border-color: #dcffe2;
71
+ --message-danger-bg-color: #ffeded;
72
+ --message-danger-border-color: #ffdddd;
73
+ --slider-default-bg: #dcdee5;
74
+ --slider-disable-bar-bg: #979ba5;
75
+ --menu-bg-color: #182132;
76
+ --submenu-bg-color: #151d2c;
77
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
78
+ --menu-color: #96a2b9;
79
+ --menu-group-color: var(--default-color);
80
+ --menu-width: 260px;
81
+ --menu-collapse-width: 60px;
82
+ --menu-active-color: white;
83
+ --nav-header-bg-color: #182132;
84
+ --nav-bg-color: #182132;
85
+ --date-picker-disabled-bg: #fafbfd;
86
+ --date-picker-dropdown-mb: 4px;
87
+ --date-picker-dropdown-bg: #fff;
88
+ --table-bg-color: var(--white-color);
89
+ --table-border-color: #dcdee5;
90
+ --table-head-bg-color: #fafbfd;
91
+ --table-head-font-color: #313238;
92
+ --table-body-font-color: #575961;
93
+ --table-row-hover-bg-color: #f5f7fa;
94
+ --table-row-active-bg-color: #f0f1f5;
95
+ --cascader-panel-border-color: #dcdee5;
96
+ --cascader-panel-hover: #eaf3ff;
97
+ --cascader-panel-active: #f4f6fa;
98
+ --cascader-panel-disabled-bg: #fff;
99
+ }
100
+ .bk-table-settings[data-bk-table-settings-theme='true'] {
101
+ padding: 0;
102
+ }
103
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content {
104
+ width: 515px;
105
+ border: 1px solid #dcdee5;
106
+ border-radius: 2px;
107
+ opacity: 1;
108
+ }
109
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-head {
110
+ position: relative;
111
+ display: flex;
112
+ padding: 0 24px;
113
+ margin: 0;
114
+ font-size: 16px;
115
+ font-weight: 400;
116
+ line-height: 32px;
117
+ color: #313238;
118
+ }
119
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-head .icon-close-action {
120
+ position: absolute;
121
+ top: 10px;
122
+ right: 15px;
123
+ cursor: pointer;
124
+ }
125
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body {
126
+ padding: 0 24px;
127
+ }
128
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-title {
129
+ display: flex;
130
+ font-size: 14px;
131
+ line-height: 19px;
132
+ color: #63656e;
133
+ justify-content: space-between;
134
+ }
135
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-title .limit {
136
+ color: #c4c6cc;
137
+ }
138
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-title .check-all {
139
+ color: #3a84ff;
140
+ cursor: pointer;
141
+ }
142
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-fields {
143
+ display: flex;
144
+ max-height: 150px;
145
+ align-items: flex-start;
146
+ flex-wrap: wrap;
147
+ }
148
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-fields .field-item {
149
+ width: 150px;
150
+ height: 42px;
151
+ line-height: 42px;
152
+ }
153
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-fields .field-item > label {
154
+ overflow: hidden;
155
+ text-overflow: ellipsis;
156
+ white-space: nowrap;
157
+ }
158
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-line-height {
159
+ display: flex;
160
+ height: 76px;
161
+ font-size: 14px;
162
+ border-top: solid 1px #f0f1f5;
163
+ align-items: center;
164
+ }
165
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-line-height .line-size {
166
+ display: flex;
167
+ width: 68px;
168
+ height: 26px;
169
+ color: #63656e;
170
+ cursor: pointer;
171
+ border: 1px solid #c4c6cc;
172
+ justify-content: center;
173
+ align-items: center;
174
+ }
175
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-line-height .line-size.active {
176
+ color: #3a84ff;
177
+ background: #e1ecff;
178
+ border: 1px solid #a3c5fd;
179
+ }
180
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-line-height .line-size:not(.active) {
181
+ border-right: none;
182
+ border-left: none;
183
+ }
184
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-line-height .line-size:first-child {
185
+ border-right: 1px solid #c4c6cc;
186
+ border-left: 1px solid #c4c6cc;
187
+ border-bottom-left-radius: 2px;
188
+ border-top-left-radius: 2px;
189
+ }
190
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-line-height .line-size:first-child.is-default {
191
+ border-right: none;
192
+ }
193
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-line-height .line-size:last-child {
194
+ border-right: 1px solid #c4c6cc;
195
+ border-left: 1px solid #c4c6cc;
196
+ border-top-right-radius: 2px;
197
+ border-bottom-right-radius: 2px;
198
+ }
199
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-line-height .line-size:last-child.is-default {
200
+ border-left: none;
201
+ }
202
+ .bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-footer {
203
+ display: flex;
204
+ height: 56px;
205
+ padding: 0 24px;
206
+ background-color: #fafbfd;
207
+ justify-content: flex-end;
208
+ align-items: center;
209
+ }
@@ -0,0 +1,243 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare enum SortScope {
3
+ CURRENT = "current",
4
+ ALL = "all"
5
+ }
6
+ export declare type ColumnFilterListItem = {
7
+ text?: string;
8
+ value?: string;
9
+ };
10
+ export declare const tableProps: {
11
+ /**
12
+ * 渲染列表
13
+ */
14
+ data: import("vue-types").VueTypeDef<any[]> & {
15
+ default: () => any[];
16
+ };
17
+ /**
18
+ * Table 列渲染
19
+ */
20
+ columns: import("vue-types").VueTypeDef<Column[]> & {
21
+ default: () => Column[];
22
+ };
23
+ /**
24
+ * 当前选中列
25
+ * 当设置选中多列时(columnPick = multi),配置为数组[index1, index2, index3],只能选中单列时,可以为数值或者数组[index]
26
+ */
27
+ activeColumn: import("vue-types").VueTypeDef<number | number[]>;
28
+ /**
29
+ * 表格列选中方式
30
+ * 支持:单列(single),多列(multi),禁用(disabled)
31
+ * 默认:disabled
32
+ */
33
+ columnPick: import("vue-types").VueTypeDef<string> & {
34
+ default: string;
35
+ };
36
+ /**
37
+ * 设置表格高度
38
+ * 默认:auto 根据行数自动填充高度
39
+ * 100%,依赖初始化时父级容器高度
40
+ */
41
+ height: import("vue-types").VueTypeDef<string | number> & {
42
+ default: string | number;
43
+ };
44
+ /**
45
+ * 设置表格最小高度
46
+ * 默认:300
47
+ */
48
+ minHeight: import("vue-types").VueTypeDef<string | number> & {
49
+ default: string | number;
50
+ };
51
+ /**
52
+ * 设置表格最d大高度
53
+ * 默认:auto,依赖外层高度
54
+ */
55
+ maxHeight: import("vue-types").VueTypeDef<string | number> & {
56
+ default: string | number;
57
+ };
58
+ /**
59
+ * 行高,可以为固定数值类型
60
+ * 可以是函数,返回当前行的高度,返回值为数值类型
61
+ */
62
+ rowHeight: import("vue-types").VueTypeDef<any> & {
63
+ default: any;
64
+ };
65
+ /**
66
+ * Thead行高,可以为固定数值类型
67
+ */
68
+ headHeight: import("vue-types").VueTypeValidableDef<number> & {
69
+ default: number;
70
+ } & {
71
+ default: number;
72
+ };
73
+ /**
74
+ * 是否显示Head
75
+ */
76
+ showHead: import("vue-types").VueTypeValidableDef<boolean> & {
77
+ default: boolean;
78
+ } & {
79
+ default: boolean;
80
+ };
81
+ /**
82
+ * table header config
83
+ */
84
+ thead: import("vue-types").VueTypeShape<Thead>;
85
+ /**
86
+ * 是否启用虚拟渲染 & 滚动
87
+ * 当数据量很大时,启用虚拟渲染可以解决压面卡顿问题
88
+ */
89
+ virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
90
+ default: boolean;
91
+ } & {
92
+ default: boolean;
93
+ };
94
+ /**
95
+ * 表格边框显示设置,可以是一个组合
96
+ * 生效规则: 除非单独设置 none,否则会追加每个设置
97
+ */
98
+ border: import("vue-types").VueTypeDef<string[]> & {
99
+ default: () => string[];
100
+ };
101
+ /**
102
+ * 分页配置
103
+ * 默认值为false,不启用分页
104
+ * 设置为 true,启用分页功能,默认值参考分页组件 Pagination
105
+ */
106
+ pagination: import("vue-types").VueTypeDef<boolean | {
107
+ [key: string]: any;
108
+ }> & {
109
+ default: boolean | (() => {
110
+ [key: string]: any;
111
+ });
112
+ };
113
+ /**
114
+ * 是否启用远程分页
115
+ */
116
+ remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
117
+ default: boolean;
118
+ } & {
119
+ default: boolean;
120
+ };
121
+ /**
122
+ * 空数据展示
123
+ */
124
+ emptyText: import("vue-types").VueTypeValidableDef<string> & {
125
+ default: string;
126
+ } & {
127
+ default: string;
128
+ };
129
+ /**
130
+ * bk-table-setting-content
131
+ */
132
+ settings: import("vue-types").VueTypeDef<boolean | Settings> & {
133
+ default: boolean | (() => Settings);
134
+ };
135
+ /**
136
+ * 行的 class 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
137
+ */
138
+ rowClass: import("vue-types").VueTypeDef<any> & {
139
+ default: any;
140
+ };
141
+ /**
142
+ * 行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
143
+ */
144
+ rowStyle: import("vue-types").VueTypeDef<any> & {
145
+ default: any;
146
+ };
147
+ /**
148
+ * 单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style
149
+ */
150
+ cellStyle: import("vue-types").VueTypeDef<any> & {
151
+ default: any;
152
+ };
153
+ /**
154
+ * 单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className
155
+ */
156
+ cellClass: import("vue-types").VueTypeDef<any> & {
157
+ default: any;
158
+ };
159
+ /**
160
+ * 表格底部loading加载效果,可以配合表格scroll-bottom事件使用
161
+ * 详细配置可参考bk-loading组件
162
+ */
163
+ scrollLoading: import("vue-types").VueTypeDef<boolean | {
164
+ [key: string]: any;
165
+ }> & {
166
+ default: boolean | (() => {
167
+ [key: string]: any;
168
+ });
169
+ };
170
+ /**
171
+ * 仅对 type=selection 的列有效,类型为 Boolean,为 true 则会在数据更新之后保留之前选中的展开收起操作(需指定 row-key)
172
+ */
173
+ reserveExpand: import("vue-types").VueTypeValidableDef<boolean> & {
174
+ default: boolean;
175
+ } & {
176
+ default: boolean;
177
+ };
178
+ /**
179
+ * 行数据的 Key,用来优化 Table 的渲染;
180
+ * 在使用 reserve-selection, reserve-expand 功能的情况下,该属性是必填的。
181
+ * 类型为 String 时,支持多层访问:user.info.id,但不支持 user.info[0].id,此种情况请使用 Function
182
+ */
183
+ rowKey: import("vue-types").VueTypeDef<any> & {
184
+ default: any;
185
+ };
186
+ };
187
+ /**
188
+ * 配置自定义行高选项
189
+ */
190
+ export declare type SizeItem = {
191
+ value?: string;
192
+ label?: string;
193
+ height?: number;
194
+ };
195
+ export declare type Settings = {
196
+ fields?: Field[];
197
+ checked?: string[];
198
+ limit?: number;
199
+ size?: string;
200
+ sizeList?: SizeItem[];
201
+ };
202
+ export declare type Field = {
203
+ label: string;
204
+ field?: string;
205
+ };
206
+ export declare type Column = {
207
+ label: Function | string;
208
+ field?: Function | string;
209
+ render?: Function | string;
210
+ width?: number | string;
211
+ minWidth?: number | string;
212
+ type?: string;
213
+ fixed?: string | boolean;
214
+ resizable?: boolean;
215
+ sort?: {
216
+ sortFn?: Function;
217
+ sortScope?: string;
218
+ } | boolean | string;
219
+ filter?: {
220
+ list?: any;
221
+ filterFn?: Function;
222
+ } | boolean | string;
223
+ };
224
+ export declare type Thead = {
225
+ height?: Number;
226
+ isShow?: boolean;
227
+ cellFn?: Function;
228
+ };
229
+ export declare type GroupColumn = {
230
+ calcWidth?: number;
231
+ resizeWidth?: number;
232
+ isHidden?: boolean;
233
+ listeners?: Map<string, any>;
234
+ } & Column;
235
+ export declare type Columns = ReadonlyArray<Column>;
236
+ export declare type TablePropTypes = Readonly<ExtractPropTypes<typeof tableProps>>;
237
+ export declare type IColumnActive = {
238
+ index: number;
239
+ active: boolean;
240
+ };
241
+ export declare type IReactiveProp = {
242
+ activeColumns: IColumnActive[];
243
+ };
@@ -0,0 +1,118 @@
1
+ import { TablePlugins } from './plugins/index';
2
+ import { GroupColumn, IColumnActive, IReactiveProp, TablePropTypes } from './props';
3
+ export default class TableRender {
4
+ props: TablePropTypes;
5
+ context: any;
6
+ reactiveProp: any;
7
+ colgroups: GroupColumn[];
8
+ uuid: string;
9
+ events: Map<string, any[]>;
10
+ plugins: TablePlugins;
11
+ constructor(props: any, ctx: any, reactiveProp: IReactiveProp, colgroups: GroupColumn[]);
12
+ get propActiveCols(): IColumnActive[];
13
+ /**
14
+ * 渲染Table Head
15
+ * @param activeColumns 当前选中的列
16
+ * @returns
17
+ */
18
+ renderTableHeadSchema(): (string | JSX.Element)[];
19
+ /**
20
+ * 渲染Table主体
21
+ * @param activeColumns 当前选中的列
22
+ * @returns
23
+ */
24
+ renderTableBodySchema(rows: any[]): any;
25
+ renderTableFooter(options: any): JSX.Element;
26
+ getRowHeight: (row?: any, rowIndex?: number) => any;
27
+ /**
28
+ * 注册监听事件
29
+ * @param eventName
30
+ * @param wartcher
31
+ */
32
+ on(eventName: string, wartcher: Function): this;
33
+ destroy(): void;
34
+ /**
35
+ * 派发事件
36
+ * @param eventName
37
+ * @param args
38
+ */
39
+ private emitEvent;
40
+ private handlePageLimitChange;
41
+ private hanlePageChange;
42
+ /**
43
+ * 指定列选中状态
44
+ * @param index 指定选中的列Index
45
+ * @param single 是否重置其他列,当只允许选中一列的情况下需要先重置
46
+ */
47
+ private setColumnActive;
48
+ /**
49
+ * 点击选中一列事件
50
+ * @param index 当前选中列Index
51
+ */
52
+ private handleColumnHeadClick;
53
+ /**
54
+ * 获取排序设置表头
55
+ * @param column 当前渲染排序列
56
+ * @param index 排序列所在index
57
+ * @returns
58
+ */
59
+ private getSortCell;
60
+ private getFilterCell;
61
+ /**
62
+ * 渲染Table Header
63
+ * @returns
64
+ */
65
+ private renderHeader;
66
+ /**
67
+ * 渲染Table Body
68
+ * @returns
69
+ */
70
+ private renderTBody;
71
+ private renderExpandRow;
72
+ private getColumnClass;
73
+ private getHeadColumnClass;
74
+ /**
75
+ * table row click handle
76
+ * @param e
77
+ * @param row
78
+ * @param index
79
+ * @param rows
80
+ */
81
+ private handleRowClick;
82
+ /**
83
+ * table row click handle
84
+ * @param e
85
+ * @param row
86
+ * @param index
87
+ * @param rows
88
+ */
89
+ private handleRowDblClick;
90
+ private getExpandCell;
91
+ private handleRowExpandClick;
92
+ /**
93
+ * 渲染表格Cell内容
94
+ * @param row 当前行
95
+ * @param column 当前列
96
+ * @returns
97
+ */
98
+ private renderCell;
99
+ /**
100
+ * 判定指定列是否为选中状态
101
+ * @param colIndex 指定列Index
102
+ * @returns
103
+ */
104
+ private isColActive;
105
+ /**
106
+ * 渲染表格Col分组
107
+ * @returns
108
+ */
109
+ private renderColGroup;
110
+ /**
111
+ * 过滤当前可渲染的列
112
+ */
113
+ private get filterColgroups();
114
+ /**
115
+ * 当前Table Setting
116
+ */
117
+ private get setting();
118
+ }