bkui-vue 0.0.2-beta.8 → 0.0.2-beta.80

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 (395) hide show
  1. package/dist/index.cjs.js +70 -62
  2. package/dist/index.esm.js +15668 -15161
  3. package/dist/index.umd.js +73 -65
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.d.ts +1 -1
  15. package/lib/affix/index.d.ts +4 -4
  16. package/lib/affix/index.js +1 -1
  17. package/lib/alert/alert.css +7 -0
  18. package/lib/alert/alert.d.ts +5 -5
  19. package/lib/alert/alert.less +16 -6
  20. package/lib/alert/alert.variable.css +7 -0
  21. package/lib/alert/index.d.ts +10 -10
  22. package/lib/alert/index.js +1 -1
  23. package/lib/animate-number/index.d.ts +1 -1
  24. package/lib/animate-number/index.js +1 -1
  25. package/lib/backtop/backtop.css +8 -8
  26. package/lib/backtop/backtop.less +3 -1
  27. package/lib/backtop/backtop.variable.css +11 -11
  28. package/lib/backtop/index.d.ts +1 -1
  29. package/lib/backtop/index.js +1 -1
  30. package/lib/badge/badge.d.ts +2 -2
  31. package/lib/badge/index.d.ts +7 -7
  32. package/lib/badge/index.js +1 -1
  33. package/lib/breadcrumb/breadcrumb.css +4 -4
  34. package/lib/breadcrumb/breadcrumb.variable.css +4 -4
  35. package/lib/breadcrumb/index.d.ts +2 -2
  36. package/lib/breadcrumb/index.js +1 -1
  37. package/lib/button/button.css +20 -0
  38. package/lib/button/button.less +105 -94
  39. package/lib/button/button.variable.css +20 -0
  40. package/lib/button/index.d.ts +2 -2
  41. package/lib/button/index.js +1 -1
  42. package/lib/card/card.css +4 -4
  43. package/lib/card/card.d.ts +1 -1
  44. package/lib/card/card.variable.css +4 -4
  45. package/lib/card/index.d.ts +4 -4
  46. package/lib/card/index.js +1 -1
  47. package/lib/cascader/cascader.css +4 -4
  48. package/lib/cascader/cascader.d.ts +1 -0
  49. package/lib/cascader/cascader.variable.css +4 -4
  50. package/lib/cascader/index.d.ts +5 -2
  51. package/lib/cascader/index.js +1 -1
  52. package/lib/cascader/interface.d.ts +1 -1
  53. package/lib/checkbox/checkbox-group.d.ts +6 -3
  54. package/lib/checkbox/checkbox.d.ts +4 -4
  55. package/lib/checkbox/index.d.ts +22 -19
  56. package/lib/checkbox/index.js +1 -1
  57. package/lib/code-diff/index.d.ts +1 -1
  58. package/lib/code-diff/index.js +1 -1
  59. package/lib/collapse/index.d.ts +2 -2
  60. package/lib/collapse/index.js +1 -1
  61. package/lib/collapse-transition/index.d.ts +128 -2
  62. package/lib/collapse-transition/index.js +1 -1
  63. package/lib/color-picker/color-picker.d.ts +16 -0
  64. package/lib/color-picker/components/recommend-colors.d.ts +16 -0
  65. package/lib/color-picker/index.d.ts +19 -1
  66. package/lib/color-picker/index.js +1 -1
  67. package/lib/components.d.ts +1 -1
  68. package/lib/components.js +1 -1
  69. package/lib/config-provider/config-provider.d.ts +3 -0
  70. package/lib/config-provider/index.d.ts +5 -1
  71. package/lib/config-provider/index.js +1 -1
  72. package/lib/config-provider/token.d.ts +1 -0
  73. package/lib/config-provider/use-global-config.d.ts +2 -0
  74. package/lib/config-provider/use-prefix.d.ts +2 -0
  75. package/lib/container/container.css +4 -4
  76. package/lib/container/container.variable.css +4 -4
  77. package/lib/container/index.d.ts +2 -2
  78. package/lib/container/index.js +1 -1
  79. package/lib/date-picker/date-picker.d.ts +4 -2
  80. package/lib/date-picker/index.d.ts +15 -8
  81. package/lib/date-picker/index.js +1 -1
  82. package/lib/date-picker/panel/date-range.d.ts +2 -1
  83. package/lib/date-picker/time-picker.d.ts +1 -1
  84. package/lib/dialog/dialog.css +2 -0
  85. package/lib/dialog/dialog.variable.css +2 -0
  86. package/lib/dialog/index.d.ts +1 -1
  87. package/lib/dialog/index.js +1 -1
  88. package/lib/directives/index.js +1 -1
  89. package/lib/directives/tooltips.d.ts +3 -2
  90. package/lib/dist.index.js +1 -1
  91. package/lib/divider/index.d.ts +1 -1
  92. package/lib/divider/index.js +1 -1
  93. package/lib/dropdown/dropdown.css +1 -0
  94. package/lib/dropdown/dropdown.d.ts +1 -1
  95. package/lib/dropdown/dropdown.variable.css +1 -0
  96. package/lib/dropdown/index.d.ts +7 -7
  97. package/lib/dropdown/index.js +1 -1
  98. package/lib/exception/index.d.ts +2 -2
  99. package/lib/exception/index.js +1 -1
  100. package/lib/fixed-navbar/index.d.ts +1 -1
  101. package/lib/fixed-navbar/index.js +1 -1
  102. package/lib/form/index.d.ts +3 -3
  103. package/lib/form/index.js +1 -1
  104. package/lib/hooks.d.ts +1 -1
  105. package/lib/hooks.js +1 -1
  106. package/lib/icon/angle-double-down-line.js +1 -1
  107. package/lib/icon/angle-double-left-line.js +1 -1
  108. package/lib/icon/angle-double-left.js +1 -1
  109. package/lib/icon/angle-double-right-line.js +1 -1
  110. package/lib/icon/angle-double-right.js +1 -1
  111. package/lib/icon/angle-double-up-line.js +1 -1
  112. package/lib/icon/angle-down-fill.js +1 -1
  113. package/lib/icon/angle-down-line.js +1 -1
  114. package/lib/icon/angle-down.js +1 -1
  115. package/lib/icon/angle-left.js +1 -1
  116. package/lib/icon/angle-right.js +1 -1
  117. package/lib/icon/angle-up-fill.js +1 -1
  118. package/lib/icon/angle-up.js +1 -1
  119. package/lib/icon/archive-fill.js +1 -1
  120. package/lib/icon/arrows-left.js +1 -1
  121. package/lib/icon/arrows-right.js +1 -1
  122. package/lib/icon/assistant.d.ts +4 -0
  123. package/lib/icon/assistant.js +1 -0
  124. package/lib/icon/audio-fill.js +1 -1
  125. package/lib/icon/bk.js +1 -1
  126. package/lib/icon/circle.js +1 -1
  127. package/lib/icon/close-line.js +1 -1
  128. package/lib/icon/close.js +1 -1
  129. package/lib/icon/code.js +1 -1
  130. package/lib/icon/cog-shape.js +1 -1
  131. package/lib/icon/collapse-left.js +1 -1
  132. package/lib/icon/copy-shape.js +1 -1
  133. package/lib/icon/copy.js +1 -1
  134. package/lib/icon/data-shape.js +1 -1
  135. package/lib/icon/del.js +1 -1
  136. package/lib/icon/doc-fill.js +1 -1
  137. package/lib/icon/done.js +1 -1
  138. package/lib/icon/down-shape.js +1 -1
  139. package/lib/icon/down-small.js +1 -1
  140. package/lib/icon/edit-line.js +1 -1
  141. package/lib/icon/ellipsis.js +1 -1
  142. package/lib/icon/enlarge-line.js +1 -1
  143. package/lib/icon/error.js +1 -1
  144. package/lib/icon/excel-fill.js +1 -1
  145. package/lib/icon/exclamation-circle-shape.js +1 -1
  146. package/lib/icon/eye.js +1 -1
  147. package/lib/icon/filliscreen-line.js +1 -1
  148. package/lib/icon/fix-line.js +1 -1
  149. package/lib/icon/fix-shape.js +1 -1
  150. package/lib/icon/folder-open.js +1 -1
  151. package/lib/icon/folder-shape-open.js +1 -1
  152. package/lib/icon/folder-shape.js +1 -1
  153. package/lib/icon/folder.js +1 -1
  154. package/lib/icon/funnel.js +1 -1
  155. package/lib/icon/help-document-fill.js +1 -1
  156. package/lib/icon/help-fill.js +1 -1
  157. package/lib/icon/help.js +1 -1
  158. package/lib/icon/image-fill.js +1 -1
  159. package/lib/icon/img-error.js +1 -1
  160. package/lib/icon/img-placehoulder.js +1 -1
  161. package/lib/icon/index.d.ts +1 -0
  162. package/lib/icon/index.js +1 -1
  163. package/lib/icon/info-line.js +1 -1
  164. package/lib/icon/info.js +1 -1
  165. package/lib/icon/left-shape.js +1 -1
  166. package/lib/icon/left-turn-line.js +1 -1
  167. package/lib/icon/narrow-line.js +1 -1
  168. package/lib/icon/original.js +1 -1
  169. package/lib/icon/pdf-fill.js +1 -1
  170. package/lib/icon/play-shape.js +1 -1
  171. package/lib/icon/plus.js +1 -1
  172. package/lib/icon/ppt-fill.js +1 -1
  173. package/lib/icon/qq.js +1 -1
  174. package/lib/icon/right-shape.js +1 -1
  175. package/lib/icon/right-turn-line.js +1 -1
  176. package/lib/icon/search.js +1 -1
  177. package/lib/icon/share.js +1 -1
  178. package/lib/icon/spinner.js +1 -1
  179. package/lib/icon/success.js +1 -1
  180. package/lib/icon/switcher-loading.js +1 -1
  181. package/lib/icon/text-file.js +1 -1
  182. package/lib/icon/text-fill.js +1 -1
  183. package/lib/icon/transfer.js +1 -1
  184. package/lib/icon/tree-application-shape.js +1 -1
  185. package/lib/icon/unfull-screen.js +1 -1
  186. package/lib/icon/unvisible.js +1 -1
  187. package/lib/icon/up-shape.js +1 -1
  188. package/lib/icon/upload.js +1 -1
  189. package/lib/icon/video-fill.js +1 -1
  190. package/lib/icon/warn.js +1 -1
  191. package/lib/icon/weixin-pro.js +1 -1
  192. package/lib/icon/weixin.js +1 -1
  193. package/lib/image/index.d.ts +1 -1
  194. package/lib/image/index.js +1 -1
  195. package/lib/index.js +1 -1
  196. package/lib/info-box/index.js +1 -1
  197. package/lib/info-box/info-box.css +2 -0
  198. package/lib/info-box/info-box.less +2 -1
  199. package/lib/info-box/info-box.variable.css +2 -0
  200. package/lib/input/index.d.ts +146 -50
  201. package/lib/input/index.js +2 -1
  202. package/lib/input/index.js.LICENSE.txt +1 -0
  203. package/lib/input/input.css +38 -10
  204. package/lib/input/input.d.ts +100 -11
  205. package/lib/input/input.less +53 -14
  206. package/lib/input/input.variable.css +38 -10
  207. package/lib/input/util.d.ts +6 -0
  208. package/lib/link/index.d.ts +4 -4
  209. package/lib/link/index.js +1 -1
  210. package/lib/link/link.d.ts +1 -1
  211. package/lib/loading/index.d.ts +2 -2
  212. package/lib/loading/index.js +1 -1
  213. package/lib/loading/loading.css +4 -4
  214. package/lib/loading/loading.variable.css +4 -4
  215. package/lib/locale/index.js +1 -1
  216. package/lib/locale/lang/en.d.ts +1 -0
  217. package/lib/menu/index.d.ts +2 -2
  218. package/lib/menu/index.js +1 -1
  219. package/lib/menu/menu.css +4 -4
  220. package/lib/menu/menu.variable.css +4 -4
  221. package/lib/message/index.js +1 -1
  222. package/lib/message/message.css +33 -9
  223. package/lib/message/message.less +78 -54
  224. package/lib/message/message.variable.css +33 -9
  225. package/lib/message/messageConstructor.d.ts +30 -8
  226. package/lib/modal/index.d.ts +2 -2
  227. package/lib/modal/index.js +1 -1
  228. package/lib/modal/modal.css +2 -0
  229. package/lib/modal/modal.variable.css +2 -0
  230. package/lib/navigation/index.d.ts +4 -1
  231. package/lib/navigation/index.js +1 -1
  232. package/lib/navigation/navigation.d.ts +1 -0
  233. package/lib/notify/index.js +1 -1
  234. package/lib/notify/notifyConstructor.d.ts +1 -1
  235. package/lib/overflow-title/components/overflow-title.d.ts +257 -1
  236. package/lib/overflow-title/index.d.ts +387 -2
  237. package/lib/overflow-title/index.js +1 -1
  238. package/lib/overflow-title/props.d.ts +129 -0
  239. package/lib/pagination/index.d.ts +2 -2
  240. package/lib/pagination/index.js +1 -1
  241. package/lib/plugin-popover/index.js +1 -1
  242. package/lib/plugins/index.js +1 -1
  243. package/lib/pop-confirm/index.d.ts +1 -1
  244. package/lib/pop-confirm/index.js +1 -1
  245. package/lib/popover/const.d.ts +22 -9
  246. package/lib/popover/content.d.ts +33 -0
  247. package/lib/popover/index.d.ts +154 -61
  248. package/lib/popover/index.js +1 -1
  249. package/lib/popover/popover.css +1 -0
  250. package/lib/popover/popover.d.ts +64 -23
  251. package/lib/popover/popover.less +3 -2
  252. package/lib/popover/popover.variable.css +1 -0
  253. package/lib/popover/props.d.ts +29 -4
  254. package/lib/popover/use-floating.d.ts +2 -2
  255. package/lib/popover/use-popover-init.d.ts +2 -1
  256. package/lib/popover2/index.d.ts +1 -1
  257. package/lib/popover2/index.js +1 -1
  258. package/lib/preset.d.ts +2 -0
  259. package/lib/preset.js +1 -1
  260. package/lib/process/index.d.ts +1 -1
  261. package/lib/process/index.js +1 -1
  262. package/lib/progress/index.d.ts +1 -1
  263. package/lib/progress/index.js +1 -1
  264. package/lib/progress/progress.css +4 -4
  265. package/lib/progress/progress.variable.css +4 -4
  266. package/lib/radio/index.d.ts +23 -23
  267. package/lib/radio/index.js +1 -1
  268. package/lib/radio/radio-button.d.ts +4 -4
  269. package/lib/radio/radio-group.d.ts +4 -4
  270. package/lib/radio/radio.d.ts +4 -4
  271. package/lib/rate/index.d.ts +8 -4
  272. package/lib/rate/index.js +1 -1
  273. package/lib/rate/rate.d.ts +2 -1
  274. package/lib/resize-layout/index.d.ts +4 -4
  275. package/lib/resize-layout/index.js +1 -1
  276. package/lib/resize-layout/resize-layout.css +12 -0
  277. package/lib/resize-layout/resize-layout.d.ts +1 -1
  278. package/lib/resize-layout/resize-layout.less +12 -0
  279. package/lib/resize-layout/resize-layout.variable.css +12 -0
  280. package/lib/search-select/index.d.ts +62 -29
  281. package/lib/search-select/index.js +1 -1
  282. package/lib/search-select/input.d.ts +5 -1
  283. package/lib/search-select/menu.d.ts +33 -2
  284. package/lib/search-select/search-select.css +37 -17
  285. package/lib/search-select/search-select.d.ts +23 -20
  286. package/lib/search-select/search-select.less +34 -11
  287. package/lib/search-select/search-select.variable.css +37 -17
  288. package/lib/search-select/selected.d.ts +5 -1
  289. package/lib/search-select/utils.d.ts +13 -5
  290. package/lib/select/common.d.ts +1 -0
  291. package/lib/select/index.d.ts +203 -84
  292. package/lib/select/index.js +1 -1
  293. package/lib/select/option.d.ts +11 -0
  294. package/lib/select/select.css +13 -5
  295. package/lib/select/select.d.ts +86 -37
  296. package/lib/select/select.less +11 -1
  297. package/lib/select/select.variable.css +37 -29
  298. package/lib/select/selectTagInput.d.ts +8 -5
  299. package/lib/shared/helper.d.ts +1 -1
  300. package/lib/shared/index.js +1 -1
  301. package/lib/shared/mask-manager.d.ts +3 -4
  302. package/lib/shared/pop-manager.d.ts +6 -2
  303. package/lib/shared/popover.d.ts +2 -2
  304. package/lib/shared/vue-types.d.ts +3 -2
  305. package/lib/sideslider/index.d.ts +1 -1
  306. package/lib/sideslider/index.js +1 -1
  307. package/lib/slider/index.d.ts +1 -1
  308. package/lib/slider/index.js +1 -1
  309. package/lib/steps/index.d.ts +1 -1
  310. package/lib/steps/index.js +1 -1
  311. package/lib/styles/mixins/animate.css +4 -4
  312. package/lib/styles/mixins/animate.less +10 -6
  313. package/lib/styles/mixins/animate.variable.css +126 -4
  314. package/lib/styles/mixins/mixins.css +4 -4
  315. package/lib/styles/mixins/mixins.variable.css +4 -4
  316. package/lib/styles/mixins/popper.less +6 -5
  317. package/lib/swiper/index.d.ts +1 -1
  318. package/lib/swiper/index.js +1 -1
  319. package/lib/swiper/swiper.css +0 -6
  320. package/lib/swiper/swiper.less +0 -8
  321. package/lib/swiper/swiper.variable.css +0 -6
  322. package/lib/switcher/index.d.ts +30 -16
  323. package/lib/switcher/index.js +1 -1
  324. package/lib/switcher/switcher.css +4 -4
  325. package/lib/switcher/switcher.d.ts +74 -5
  326. package/lib/switcher/switcher.variable.css +4 -4
  327. package/lib/tab/index.d.ts +3 -3
  328. package/lib/tab/index.js +1 -1
  329. package/lib/tab/tab-nav.d.ts +12 -2
  330. package/lib/tab/tab-panel.d.ts +1 -1
  331. package/lib/table/components/table-cell.d.ts +22 -15
  332. package/lib/table/components/table-column.d.ts +155 -219
  333. package/lib/table/const.d.ts +40 -56
  334. package/lib/table/events.d.ts +180 -0
  335. package/lib/table/index.d.ts +747 -440
  336. package/lib/table/index.js +1 -1
  337. package/lib/table/plugins/head-filter.css +3 -0
  338. package/lib/table/plugins/head-filter.d.ts +3 -7
  339. package/lib/table/plugins/head-filter.less +3 -0
  340. package/lib/table/plugins/head-filter.variable.css +3 -0
  341. package/lib/table/plugins/head-sort.d.ts +3 -7
  342. package/lib/table/plugins/settings.d.ts +12 -26
  343. package/lib/table/plugins/use-column-resize.d.ts +30 -10
  344. package/lib/table/plugins/use-fixed-column.d.ts +10 -9
  345. package/lib/table/plugins/use-pagination.d.ts +7 -4
  346. package/lib/table/props.d.ts +220 -181
  347. package/lib/table/render.d.ts +12 -20
  348. package/lib/table/table.css +89 -6
  349. package/lib/table/table.d.ts +227 -104
  350. package/lib/table/table.less +79 -9
  351. package/lib/table/table.variable.css +89 -6
  352. package/lib/table/use-attributes.d.ts +55 -0
  353. package/lib/table/use-column.d.ts +177 -3
  354. package/lib/table/use-common.d.ts +1609 -76
  355. package/lib/table/use-render.d.ts +11 -0
  356. package/lib/table/utils.d.ts +30 -28
  357. package/lib/table-column/index.d.ts +240 -527
  358. package/lib/table-column/index.js +1 -1
  359. package/lib/tag/index.d.ts +10 -10
  360. package/lib/tag/index.js +1 -1
  361. package/lib/tag/tag.d.ts +5 -5
  362. package/lib/tag-input/index.d.ts +49 -13
  363. package/lib/tag-input/index.js +1 -1
  364. package/lib/tag-input/tag-input.css +9 -1
  365. package/lib/tag-input/tag-input.d.ts +46 -10
  366. package/lib/tag-input/tag-input.less +13 -4
  367. package/lib/tag-input/tag-input.variable.css +9 -1
  368. package/lib/tag-input/tag-props.d.ts +16 -4
  369. package/lib/time-picker/index.d.ts +4 -4
  370. package/lib/time-picker/index.js +1 -1
  371. package/lib/timeline/index.d.ts +1 -1
  372. package/lib/timeline/index.js +1 -1
  373. package/lib/transfer/index.d.ts +1 -1
  374. package/lib/transfer/index.js +1 -1
  375. package/lib/tree/constant.d.ts +2 -2
  376. package/lib/tree/index.d.ts +49 -7
  377. package/lib/tree/index.js +1 -1
  378. package/lib/tree/props.d.ts +16 -2
  379. package/lib/tree/tree.d.ts +27 -2
  380. package/lib/tree/use-node-action.d.ts +5 -3
  381. package/lib/tree/use-node-attribute.d.ts +17 -8
  382. package/lib/tree/use-search.d.ts +2 -2
  383. package/lib/tree/use-tree-init.d.ts +1 -2
  384. package/lib/tree/util.d.ts +8 -3
  385. package/lib/upload/index.d.ts +1 -1
  386. package/lib/upload/index.js +1 -1
  387. package/lib/upload/upload.css +4 -4
  388. package/lib/upload/upload.variable.css +4 -4
  389. package/lib/virtual-render/index.d.ts +43 -1
  390. package/lib/virtual-render/index.js +1 -1
  391. package/lib/virtual-render/props.d.ts +15 -0
  392. package/lib/virtual-render/v-virtual-render.d.ts +19 -1
  393. package/lib/virtual-render/virtual-render.d.ts +25 -0
  394. package/lib/volar.components.d.ts +24 -24
  395. package/package.json +17 -16
@@ -300,6 +300,11 @@
300
300
  border-color: #5594fa;
301
301
  color: white;
302
302
  }
303
+ .bk-button.bk-button-primary.is-outline:active {
304
+ background-color: #2c77f4;
305
+ border-color: #2c77f4;
306
+ color: white;
307
+ }
303
308
  .bk-button.bk-button-primary.is-text {
304
309
  color: #3a84ff;
305
310
  background-color: transparent;
@@ -346,6 +351,11 @@
346
351
  border-color: #ffb848;
347
352
  color: white;
348
353
  }
354
+ .bk-button.bk-button-warning.is-outline:active {
355
+ background-color: #eb9000;
356
+ border-color: #eb9000;
357
+ color: white;
358
+ }
349
359
  .bk-button.bk-button-warning.is-text {
350
360
  color: #ff9c01;
351
361
  background-color: transparent;
@@ -392,6 +402,11 @@
392
402
  border-color: #45e35f;
393
403
  color: white;
394
404
  }
405
+ .bk-button.bk-button-success.is-outline:active {
406
+ background-color: #1ab943;
407
+ border-color: #1ab943;
408
+ color: white;
409
+ }
395
410
  .bk-button.bk-button-success.is-text {
396
411
  color: #2dcb56;
397
412
  background-color: transparent;
@@ -438,6 +453,11 @@
438
453
  border-color: #ff5656;
439
454
  color: white;
440
455
  }
456
+ .bk-button.bk-button-danger.is-outline:active {
457
+ background-color: #db2626;
458
+ border-color: #db2626;
459
+ color: white;
460
+ }
441
461
  .bk-button.bk-button-danger.is-text {
442
462
  color: #ea3636;
443
463
  background-color: transparent;
@@ -832,6 +852,7 @@
832
852
  }
833
853
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
834
854
  position: absolute;
855
+ z-index: -1;
835
856
  width: 8px;
836
857
  height: 8px;
837
858
  background: #333;
@@ -854,6 +875,9 @@
854
875
  cursor: pointer;
855
876
  align-items: center;
856
877
  }
878
+ .bk-table-head-action:last-of-type {
879
+ margin-right: -10px;
880
+ }
857
881
  .bk-table-head-action.active {
858
882
  color: #3a84ff;
859
883
  }
@@ -1107,6 +1131,15 @@
1107
1131
  height: auto;
1108
1132
  overflow: hidden;
1109
1133
  }
1134
+ .bk-table-flex {
1135
+ display: flex;
1136
+ flex-direction: column;
1137
+ max-height: 100%;
1138
+ }
1139
+ .bk-table-flex .bk-table-body {
1140
+ flex: 1;
1141
+ overflow: auto;
1142
+ }
1110
1143
  .bk-table.has-scroll-y .bk-table-head {
1111
1144
  padding-right: 4px;
1112
1145
  }
@@ -1115,7 +1148,7 @@
1115
1148
  overflow: auto;
1116
1149
  }
1117
1150
  .bk-table .bk-table-body::-webkit-scrollbar {
1118
- width: 6px;
1151
+ width: 5px;
1119
1152
  height: 6px;
1120
1153
  }
1121
1154
  .bk-table .bk-table-body::-webkit-scrollbar-thumb {
@@ -1126,6 +1159,12 @@
1126
1159
  .bk-table .bk-table-body .prepend-row {
1127
1160
  transform: translateX(var(--prepend-left));
1128
1161
  }
1162
+ .bk-table .bk-table-body-content.bk-stripe table tbody tr:nth-child(even) td {
1163
+ background-color: #FAFBFD;
1164
+ }
1165
+ .bk-table .bk-table-body-content.bk-stripe table tbody tr td {
1166
+ border-bottom: none;
1167
+ }
1129
1168
  .bk-table .bk-fixed-bottom-border {
1130
1169
  position: sticky;
1131
1170
  bottom: 0;
@@ -1141,11 +1180,12 @@
1141
1180
  .bk-table .bk-table-head,
1142
1181
  .bk-table .bk-table-body {
1143
1182
  background: white;
1183
+ transform: translateZ(0);
1144
1184
  }
1145
1185
  .bk-table .bk-table-head::-webkit-scrollbar,
1146
1186
  .bk-table .bk-table-body::-webkit-scrollbar {
1147
- width: 4px;
1148
- height: 4px;
1187
+ width: 5px;
1188
+ height: 5px;
1149
1189
  }
1150
1190
  .bk-table .bk-table-head::-webkit-scrollbar-thumb,
1151
1191
  .bk-table .bk-table-body::-webkit-scrollbar-thumb {
@@ -1166,6 +1206,7 @@
1166
1206
  width: 100%;
1167
1207
  height: 100%;
1168
1208
  padding-bottom: 20px;
1209
+ position: relative;
1169
1210
  }
1170
1211
  .bk-table .bk-table-head table,
1171
1212
  .bk-table .bk-table-body table {
@@ -1173,6 +1214,7 @@
1173
1214
  border-collapse: collapse;
1174
1215
  table-layout: fixed;
1175
1216
  align-self: flex-start;
1217
+ transform: translateZ(0);
1176
1218
  }
1177
1219
  .bk-table .bk-table-head table th,
1178
1220
  .bk-table .bk-table-body table th,
@@ -1205,6 +1247,13 @@
1205
1247
  .bk-table .bk-table-body table td .cell.has-sort {
1206
1248
  cursor: pointer;
1207
1249
  }
1250
+ .bk-table .bk-table-head table th .cell.explain,
1251
+ .bk-table .bk-table-body table th .cell.explain,
1252
+ .bk-table .bk-table-head table td .cell.explain,
1253
+ .bk-table .bk-table-body table td .cell.explain {
1254
+ text-decoration-style: dashed;
1255
+ text-decoration-line: underline;
1256
+ }
1208
1257
  .bk-table .bk-table-head table th .cell .head-text,
1209
1258
  .bk-table .bk-table-body table th .cell .head-text,
1210
1259
  .bk-table .bk-table-head table td .cell .head-text,
@@ -1245,7 +1294,6 @@
1245
1294
  .bk-table .bk-table-body table td.column_fixed {
1246
1295
  position: sticky;
1247
1296
  z-index: 1;
1248
- background: #fff;
1249
1297
  }
1250
1298
  .bk-table .bk-table-head table th.column_fixed.column_fixed_left,
1251
1299
  .bk-table .bk-table-body table th.column_fixed.column_fixed_left,
@@ -1296,6 +1344,21 @@
1296
1344
  .bk-table .bk-table-head table thead th,
1297
1345
  .bk-table .bk-table-body table thead th {
1298
1346
  font-weight: 400;
1347
+ background-color: var(--background-color);
1348
+ position: relative;
1349
+ }
1350
+ .bk-table .bk-table-head table thead th.col-resize-hover::after,
1351
+ .bk-table .bk-table-body table thead th.col-resize-hover::after {
1352
+ content: '';
1353
+ position: absolute;
1354
+ right: 0;
1355
+ top: 0;
1356
+ bottom: 0;
1357
+ width: 6px;
1358
+ transform: translateX(50%);
1359
+ background-color: #3785FF;
1360
+ z-index: 1;
1361
+ pointer-events: none;
1299
1362
  }
1300
1363
  .bk-table .bk-table-head table thead th .cell,
1301
1364
  .bk-table .bk-table-body table thead th .cell {
@@ -1309,11 +1372,16 @@
1309
1372
  .bk-table .bk-table-head table thead th:hover,
1310
1373
  .bk-table .bk-table-body table thead th:hover {
1311
1374
  background: #f0f1f5;
1375
+ cursor: pointer;
1312
1376
  }
1313
1377
  .bk-table .bk-table-head table thead th.column_fixed,
1314
1378
  .bk-table .bk-table-body table thead th.column_fixed {
1315
1379
  transform: translateX(var(--scroll-left));
1316
1380
  }
1381
+ .bk-table .bk-table-head table tbody tr td,
1382
+ .bk-table .bk-table-body table tbody tr td {
1383
+ background-color: #fff;
1384
+ }
1317
1385
  .bk-table .bk-table-head table tbody tr td.empty-cell,
1318
1386
  .bk-table .bk-table-body table tbody tr td.empty-cell {
1319
1387
  padding-bottom: 30px;
@@ -1338,6 +1406,17 @@
1338
1406
  .bk-table .bk-table-head {
1339
1407
  position: relative;
1340
1408
  transform: translateX(var(--scroll-head-left));
1409
+ z-index: 2;
1410
+ }
1411
+ .bk-table .bk-table-head .col-resize-drag {
1412
+ position: absolute;
1413
+ right: 0;
1414
+ top: 0;
1415
+ bottom: 0;
1416
+ width: 6px;
1417
+ transform: translateX(-50%);
1418
+ background-color: #3785FF;
1419
+ z-index: 1;
1341
1420
  }
1342
1421
  .bk-table .bk-table-head .table-head-settings {
1343
1422
  position: absolute;
@@ -1364,7 +1443,9 @@
1364
1443
  }
1365
1444
  .bk-table .bk-table-footer {
1366
1445
  height: var(--footer-height);
1367
- line-height: var(--footer-height);
1446
+ width: 100%;
1447
+ display: flex;
1448
+ align-items: center;
1368
1449
  }
1369
1450
  .bk-table .bk-table-footer.is-hidden {
1370
1451
  display: none;
@@ -1414,11 +1495,14 @@
1414
1495
  top: 0;
1415
1496
  right: 0;
1416
1497
  bottom: var(--footer-height);
1498
+ max-height: var(--fix-max-height);
1417
1499
  left: 0;
1500
+ height: var(--fix-height);
1418
1501
  pointer-events: none;
1419
1502
  }
1420
1503
  .bk-table .bk-table-fixed .column_fixed {
1421
1504
  position: absolute;
1505
+ z-index: 2;
1422
1506
  }
1423
1507
  .bk-table .bk-table-fixed .column_fixed.column_fixed_left {
1424
1508
  top: 0;
@@ -1430,7 +1514,6 @@
1430
1514
  .bk-table .bk-table-fixed .column_fixed.column_fixed_right {
1431
1515
  top: 0;
1432
1516
  right: 0;
1433
- z-index: 1;
1434
1517
  }
1435
1518
  .bk-table .bk-table-fixed .column_fixed.column_fixed_right.shadow {
1436
1519
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
@@ -0,0 +1,55 @@
1
+ import { IEmptyObject } from './const';
2
+ import { Column, Settings, SortScope, TablePropTypes } from './props';
3
+ export type ITableFormatData = {
4
+ data: any[];
5
+ dataSchema: WeakMap<object, any>;
6
+ columnSchema: WeakMap<object, any>;
7
+ columns: Column[];
8
+ settings: {
9
+ size: string;
10
+ height: number;
11
+ };
12
+ layout: {
13
+ bottom: number;
14
+ hasScrollY: boolean;
15
+ translateX: number;
16
+ translateY: number;
17
+ };
18
+ };
19
+ export type ITableResponse = {
20
+ formatColumns: (columns: Column[]) => void;
21
+ formatDataSchema: (data: any[]) => void;
22
+ setRowSelection: (row: any, isSelected: boolean) => void;
23
+ setRowExpand: (row: any, isExpand: boolean) => void;
24
+ setRowIndex: (row: any, index: number) => void;
25
+ setColumnAttribute: (col: Column, attrName: string, attrValue: ((...args: any[]) => boolean | number | void | string) | string | boolean | number) => void;
26
+ setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
27
+ setAllColumnAttribute: (attrName: string, attrValue: ((...args: any[]) => boolean | number | void | string) | string | boolean | number) => void;
28
+ getColumnAttribute: (col: Column, attributeName: string) => string | boolean | Record<string, any>;
29
+ getColumnId: (col: Column) => string;
30
+ getColumnOrderWidth: (column: Column, orders?: string[]) => number;
31
+ isActiveColumn: (col: Column) => boolean;
32
+ isHiddenColumn: (col: Column) => boolean;
33
+ resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: SortScope) => void;
34
+ resetStartEndIndex: () => void;
35
+ toggleRowSelection: (row: any) => void;
36
+ toggleAllSelection: (value?: boolean) => void;
37
+ setAllRowExpand: (value?: boolean) => void;
38
+ clearSelection: () => void;
39
+ clearColumnSort: (reset?: boolean) => void;
40
+ setColumnSortActive: (column: Column, active: boolean) => void;
41
+ getRowAttribute: (row: any | IEmptyObject, attrName: string) => any;
42
+ getRowSelection: () => any[];
43
+ resolveColumnWidth: (root: HTMLElement, autoWidth?: any, offsetWidth?: any) => void;
44
+ filter: () => void;
45
+ sortData: (column: Column) => void;
46
+ isCheckedAll: () => boolean;
47
+ hasCheckedRow: () => boolean;
48
+ setRowSelectionAll: (val: boolean) => void;
49
+ setRowIndeterminate: () => void;
50
+ pageData: any[];
51
+ localPagination: any;
52
+ formatData: ITableFormatData;
53
+ };
54
+ declare const _default: (props: TablePropTypes) => ITableResponse;
55
+ export default _default;
@@ -1,12 +1,186 @@
1
1
  import { ITableColumn } from './components/table-column';
2
- import { TablePropTypes } from './props';
2
+ import { SORT_OPTION } from './const';
3
+ import { Column, TablePropTypes } from './props';
3
4
  /**
4
5
  * 渲染column settings
5
6
  * @param props: TablePropTypes
6
7
  * @param targetColumns 解析之后的column配置(主要用来处理通过<bk-column>配置的数据结构)
7
8
  */
8
9
  declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) => {
9
- initColumns: (column: ITableColumn | ITableColumn[], remove?: boolean) => void;
10
- getColumns: () => import("./props").Column[];
10
+ initColumns: (column: ITableColumn[], remove?: boolean) => void;
11
+ getColumns: () => {
12
+ label: import("./props").LabelFunctionString;
13
+ field?: import("./props").LabelFunctionString;
14
+ render?: import("./props").RenderFunctionString;
15
+ renderHead?: import("./props").RenderFunctionString;
16
+ width?: string | number;
17
+ minWidth?: string | number;
18
+ columnKey?: string;
19
+ showOverflowTooltip?: boolean | {
20
+ content: string | Function;
21
+ disabled?: (col: Column, row: any) => boolean;
22
+ watchCellResize?: boolean;
23
+ mode?: "auto" | "static";
24
+ popoverOption?: any;
25
+ resizerWay?: import("./props").ResizerWay;
26
+ };
27
+ type?: string;
28
+ fixed?: string | boolean;
29
+ resizable?: boolean;
30
+ sort?: string | boolean | {
31
+ sortFn?: Function;
32
+ sortScope?: import("./props").SortScope;
33
+ value?: SORT_OPTION;
34
+ };
35
+ filter?: string | boolean | {
36
+ list: any[];
37
+ filterFn?: Function;
38
+ match?: import("./props").FullEnum;
39
+ checked?: any[];
40
+ filterScope?: import("./props").SortScope;
41
+ btnSave?: string | boolean;
42
+ btnReset?: string | boolean;
43
+ height?: number;
44
+ maxHeight?: number;
45
+ };
46
+ colspan?: (({ column, colIndex, row, rowIndex }: {
47
+ column: any;
48
+ colIndex: any;
49
+ row: any;
50
+ rowIndex: any;
51
+ }) => number) | {
52
+ toString: (radix?: number) => string;
53
+ toFixed: (fractionDigits?: number) => string;
54
+ toExponential: (fractionDigits?: number) => string;
55
+ toPrecision: (precision?: number) => string;
56
+ valueOf: () => number;
57
+ toLocaleString: {
58
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
59
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
60
+ };
61
+ };
62
+ rowspan?: (({ column, colIndex, row, rowIndex }: {
63
+ column: any;
64
+ colIndex: any;
65
+ row: any;
66
+ rowIndex: any;
67
+ }) => number) | {
68
+ toString: (radix?: number) => string;
69
+ toFixed: (fractionDigits?: number) => string;
70
+ toExponential: (fractionDigits?: number) => string;
71
+ toPrecision: (precision?: number) => string;
72
+ valueOf: () => number;
73
+ toLocaleString: {
74
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
75
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
76
+ };
77
+ };
78
+ textAlign?: string;
79
+ className?: import("./props").RowClassFunctionString;
80
+ align?: string;
81
+ prop?: import("./props").LabelFunctionString;
82
+ index?: {
83
+ toString: (radix?: number) => string;
84
+ toFixed: (fractionDigits?: number) => string;
85
+ toExponential: (fractionDigits?: number) => string;
86
+ toPrecision: (precision?: number) => string;
87
+ valueOf: () => number;
88
+ toLocaleString: {
89
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
90
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
91
+ };
92
+ };
93
+ explain?: boolean | {
94
+ content: import("./props").LabelFunctionString;
95
+ head: import("./props").LabelFunctionString;
96
+ };
97
+ }[];
98
+ getActiveColumn: () => {
99
+ label: import("./props").LabelFunctionString;
100
+ field?: import("./props").LabelFunctionString;
101
+ render?: import("./props").RenderFunctionString;
102
+ renderHead?: import("./props").RenderFunctionString;
103
+ width?: string | number;
104
+ minWidth?: string | number;
105
+ columnKey?: string;
106
+ showOverflowTooltip?: boolean | {
107
+ content: string | Function;
108
+ disabled?: (col: Column, row: any) => boolean;
109
+ watchCellResize?: boolean;
110
+ mode?: "auto" | "static";
111
+ popoverOption?: any;
112
+ resizerWay?: import("./props").ResizerWay;
113
+ };
114
+ type?: string;
115
+ fixed?: string | boolean;
116
+ resizable?: boolean;
117
+ sort?: string | boolean | {
118
+ sortFn?: Function;
119
+ sortScope?: import("./props").SortScope;
120
+ value?: SORT_OPTION;
121
+ };
122
+ filter?: string | boolean | {
123
+ list: any[];
124
+ filterFn?: Function;
125
+ match?: import("./props").FullEnum;
126
+ checked?: any[];
127
+ filterScope?: import("./props").SortScope;
128
+ btnSave?: string | boolean;
129
+ btnReset?: string | boolean;
130
+ height?: number;
131
+ maxHeight?: number;
132
+ };
133
+ colspan?: (({ column, colIndex, row, rowIndex }: {
134
+ column: any;
135
+ colIndex: any;
136
+ row: any;
137
+ rowIndex: any;
138
+ }) => number) | {
139
+ toString: (radix?: number) => string;
140
+ toFixed: (fractionDigits?: number) => string;
141
+ toExponential: (fractionDigits?: number) => string;
142
+ toPrecision: (precision?: number) => string;
143
+ valueOf: () => number;
144
+ toLocaleString: {
145
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
146
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
147
+ };
148
+ };
149
+ rowspan?: (({ column, colIndex, row, rowIndex }: {
150
+ column: any;
151
+ colIndex: any;
152
+ row: any;
153
+ rowIndex: any;
154
+ }) => number) | {
155
+ toString: (radix?: number) => string;
156
+ toFixed: (fractionDigits?: number) => string;
157
+ toExponential: (fractionDigits?: number) => string;
158
+ toPrecision: (precision?: number) => string;
159
+ valueOf: () => number;
160
+ toLocaleString: {
161
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
162
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
163
+ };
164
+ };
165
+ textAlign?: string;
166
+ className?: import("./props").RowClassFunctionString;
167
+ align?: string;
168
+ prop?: import("./props").LabelFunctionString;
169
+ index?: {
170
+ toString: (radix?: number) => string;
171
+ toFixed: (fractionDigits?: number) => string;
172
+ toExponential: (fractionDigits?: number) => string;
173
+ toPrecision: (precision?: number) => string;
174
+ valueOf: () => number;
175
+ toLocaleString: {
176
+ (locales?: string | string[], options?: Intl.NumberFormatOptions): string;
177
+ (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
178
+ };
179
+ };
180
+ explain?: boolean | {
181
+ content: import("./props").LabelFunctionString;
182
+ head: import("./props").LabelFunctionString;
183
+ };
184
+ };
11
185
  };
12
186
  export default _default;