bkui-vue 2.0.1-beta.60.fix.1 → 2.0.1-beta.62

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 (324) hide show
  1. package/README.md +15 -0
  2. package/dist/index.cjs.js +57 -57
  3. package/dist/index.esm.js +18238 -17775
  4. package/dist/index.umd.js +58 -58
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/affix.css +130 -0
  8. package/lib/affix/affix.variable.css +262 -1
  9. package/lib/alert/alert.css +133 -3
  10. package/lib/alert/alert.d.ts +0 -7
  11. package/lib/alert/alert.variable.css +262 -1
  12. package/lib/alert/index.d.ts +0 -15
  13. package/lib/alert/index.js +6 -6
  14. package/lib/backtop/backtop.css +133 -3
  15. package/lib/backtop/backtop.variable.css +395 -4
  16. package/lib/badge/badge.css +156 -26
  17. package/lib/badge/badge.variable.css +262 -1
  18. package/lib/breadcrumb/breadcrumb.css +135 -5
  19. package/lib/breadcrumb/breadcrumb.variable.css +397 -6
  20. package/lib/button/button.css +273 -143
  21. package/lib/button/button.variable.css +262 -1
  22. package/lib/card/card.css +134 -4
  23. package/lib/card/card.variable.css +396 -5
  24. package/lib/cascader/cascader.css +153 -23
  25. package/lib/cascader/cascader.variable.css +415 -24
  26. package/lib/cascader/index.js +7 -6
  27. package/lib/checkbox/checkbox-group.d.ts +0 -16
  28. package/lib/checkbox/checkbox.css +147 -9
  29. package/lib/checkbox/checkbox.d.ts +32 -0
  30. package/lib/checkbox/checkbox.less +12 -0
  31. package/lib/checkbox/checkbox.variable.css +270 -1
  32. package/lib/checkbox/index.d.ts +46 -11
  33. package/lib/checkbox/index.js +9 -4
  34. package/lib/code-diff/code-diff.css +130 -0
  35. package/lib/code-diff/code-diff.variable.css +262 -1
  36. package/lib/collapse/collapse.css +131 -1
  37. package/lib/collapse/collapse.variable.css +262 -1
  38. package/lib/collapse-transition/collapse-transition.css +130 -0
  39. package/lib/collapse-transition/collapse-transition.variable.css +262 -1
  40. package/lib/color-picker/color-picker.css +130 -0
  41. package/lib/color-picker/color-picker.variable.css +262 -1
  42. package/lib/config-provider/config-provider.css +130 -0
  43. package/lib/config-provider/config-provider.variable.css +262 -1
  44. package/lib/container/container.css +130 -0
  45. package/lib/container/container.variable.css +392 -1
  46. package/lib/date-picker/date-picker.css +147 -17
  47. package/lib/date-picker/date-picker.d.ts +0 -9
  48. package/lib/date-picker/date-picker.variable.css +262 -1
  49. package/lib/date-picker/index.d.ts +0 -19
  50. package/lib/date-picker/index.js +29 -17
  51. package/lib/date-picker/panel/time-range.d.ts +0 -9
  52. package/lib/date-picker/panel/time.d.ts +1 -10
  53. package/lib/date-picker/props.d.ts +0 -4
  54. package/lib/date-picker/time-picker.d.ts +0 -9
  55. package/lib/dialog/dialog.css +138 -8
  56. package/lib/dialog/dialog.d.ts +16 -5
  57. package/lib/dialog/dialog.variable.css +400 -9
  58. package/lib/dialog/index.d.ts +34 -11
  59. package/lib/dialog/props.d.ts +7 -2
  60. package/lib/directives/index.js +12 -6
  61. package/lib/divider/divider.css +133 -3
  62. package/lib/divider/divider.variable.css +262 -1
  63. package/lib/dropdown/dropdown-item.d.ts +1 -1
  64. package/lib/dropdown/dropdown-menu.d.ts +1 -1
  65. package/lib/dropdown/dropdown.css +130 -0
  66. package/lib/dropdown/dropdown.variable.css +392 -1
  67. package/lib/dropdown/index.d.ts +2 -2
  68. package/lib/exception/exception.css +130 -0
  69. package/lib/exception/exception.variable.css +262 -1
  70. package/lib/fixed-navbar/fixed-navbar.css +134 -4
  71. package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
  72. package/lib/form/form-item.d.ts +6 -18
  73. package/lib/form/form.css +130 -0
  74. package/lib/form/form.variable.css +262 -1
  75. package/lib/form/index.d.ts +6 -13
  76. package/lib/form/index.js +8 -6
  77. package/lib/image/image-viewer.css +130 -0
  78. package/lib/image/image-viewer.variable.css +262 -1
  79. package/lib/image/image.css +130 -0
  80. package/lib/image/image.variable.css +392 -1
  81. package/lib/index.js +1 -1
  82. package/lib/info-box/index.js +3 -5
  83. package/lib/info-box/info-box.css +134 -4
  84. package/lib/info-box/info-box.variable.css +262 -1
  85. package/lib/input/index.js +37 -10
  86. package/lib/input/input.css +221 -72
  87. package/lib/input/input.less +26 -0
  88. package/lib/input/input.variable.css +483 -73
  89. package/lib/link/link.css +146 -16
  90. package/lib/link/link.variable.css +262 -1
  91. package/lib/loading/loading.css +146 -16
  92. package/lib/loading/loading.variable.css +408 -17
  93. package/lib/menu/menu.css +148 -18
  94. package/lib/menu/menu.variable.css +410 -19
  95. package/lib/menu/submenu.css +130 -0
  96. package/lib/menu/submenu.variable.css +262 -1
  97. package/lib/message/message.css +153 -22
  98. package/lib/message/message.less +3 -2
  99. package/lib/message/message.variable.css +264 -2
  100. package/lib/modal/index.d.ts +41 -13
  101. package/lib/modal/index.js +33 -18
  102. package/lib/modal/modal.css +134 -4
  103. package/lib/modal/modal.d.ts +16 -5
  104. package/lib/modal/modal.variable.css +396 -5
  105. package/lib/modal/props.mixin.d.ts +7 -2
  106. package/lib/navigation/navigation.css +132 -2
  107. package/lib/navigation/navigation.variable.css +262 -1
  108. package/lib/notify/notify.css +137 -7
  109. package/lib/notify/notify.variable.css +262 -1
  110. package/lib/overflow-title/components/overflow-title.d.ts +0 -7
  111. package/lib/overflow-title/index.d.ts +0 -15
  112. package/lib/overflow-title/index.js +0 -1
  113. package/lib/overflow-title/props.d.ts +0 -3
  114. package/lib/pagination/index.d.ts +0 -19
  115. package/lib/pagination/index.js +47 -9
  116. package/lib/pagination/pagination.css +139 -9
  117. package/lib/pagination/pagination.d.ts +0 -13
  118. package/lib/pagination/pagination.less +14 -13
  119. package/lib/pagination/pagination.variable.css +270 -9
  120. package/lib/pop-confirm/index.d.ts +0 -32
  121. package/lib/pop-confirm/index.js +16 -18
  122. package/lib/pop-confirm/pop-confirm.css +133 -1
  123. package/lib/pop-confirm/pop-confirm.d.ts +0 -14
  124. package/lib/pop-confirm/pop-confirm.less +3 -1
  125. package/lib/pop-confirm/pop-confirm.variable.css +265 -2
  126. package/lib/pop-confirm/props.d.ts +1 -7
  127. package/lib/popover/popover.css +130 -0
  128. package/lib/popover/popover.variable.css +262 -1
  129. package/lib/process/process.css +143 -13
  130. package/lib/process/process.variable.css +262 -1
  131. package/lib/progress/progress.css +134 -4
  132. package/lib/progress/progress.variable.css +396 -5
  133. package/lib/radio/index.d.ts +21 -21
  134. package/lib/radio/radio-button.d.ts +7 -7
  135. package/lib/radio/radio-group.d.ts +7 -7
  136. package/lib/radio/radio.css +172 -42
  137. package/lib/radio/radio.d.ts +7 -7
  138. package/lib/radio/radio.variable.css +262 -1
  139. package/lib/rate/rate.css +130 -0
  140. package/lib/rate/rate.variable.css +262 -1
  141. package/lib/resize-layout/resize-layout.css +130 -0
  142. package/lib/resize-layout/resize-layout.variable.css +262 -1
  143. package/lib/scrollbar/css/scrollbar.css +239 -0
  144. package/lib/scrollbar/css/scrollbar.less +139 -0
  145. package/lib/scrollbar/css/scrollbar.variable.css +499 -0
  146. package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
  147. package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
  148. package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
  149. package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
  150. package/lib/scrollbar/handlers/touch.d.ts +4 -0
  151. package/lib/scrollbar/helper/class-names.d.ts +21 -0
  152. package/lib/scrollbar/helper/css.d.ts +3 -0
  153. package/lib/scrollbar/helper/dom.d.ts +4 -0
  154. package/lib/scrollbar/helper/event-manager.d.ts +20 -0
  155. package/lib/scrollbar/helper/util.d.ts +11 -0
  156. package/lib/scrollbar/index.d.ts +133 -13
  157. package/lib/scrollbar/index.js +1332 -18433
  158. package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
  159. package/lib/scrollbar/update-geometry.d.ts +8 -0
  160. package/lib/search-select/index.d.ts +40 -72
  161. package/lib/search-select/index.js +85 -67
  162. package/lib/search-select/input.d.ts +5 -4
  163. package/lib/search-select/search-select.css +163 -33
  164. package/lib/search-select/search-select.d.ts +15 -39
  165. package/lib/search-select/search-select.variable.css +425 -34
  166. package/lib/search-select/selected.d.ts +11 -9
  167. package/lib/search-select/utils.d.ts +3 -3
  168. package/lib/select/common.d.ts +3 -3
  169. package/lib/select/index.d.ts +32 -4
  170. package/lib/select/index.js +128 -66
  171. package/lib/select/option.d.ts +4 -5
  172. package/lib/select/select.css +175 -43
  173. package/lib/select/select.d.ts +12 -0
  174. package/lib/select/select.less +7 -4
  175. package/lib/select/select.variable.css +437 -44
  176. package/lib/select/type.d.ts +9 -10
  177. package/lib/shared/frame-throttle.d.ts +15 -0
  178. package/lib/shared/index.d.ts +1 -0
  179. package/lib/shared/index.js +72 -1
  180. package/lib/sideslider/index.d.ts +34 -11
  181. package/lib/sideslider/index.js +1 -0
  182. package/lib/sideslider/sideslider.css +138 -9
  183. package/lib/sideslider/sideslider.d.ts +16 -5
  184. package/lib/sideslider/sideslider.less +7 -8
  185. package/lib/sideslider/sideslider.variable.css +269 -9
  186. package/lib/slider/slider.css +135 -5
  187. package/lib/slider/slider.variable.css +262 -1
  188. package/lib/steps/index.d.ts +3 -18
  189. package/lib/steps/index.js +0 -1
  190. package/lib/steps/steps.css +168 -38
  191. package/lib/steps/steps.d.ts +1 -11
  192. package/lib/steps/steps.variable.css +262 -1
  193. package/lib/styles/index.d.ts +1 -0
  194. package/lib/styles/mixins/animate.css +130 -0
  195. package/lib/styles/mixins/animate.variable.css +262 -1
  196. package/lib/styles/mixins/mixins.css +130 -0
  197. package/lib/styles/mixins/mixins.variable.css +130 -0
  198. package/lib/styles/mixins/popper.css +130 -0
  199. package/lib/styles/mixins/popper.variable.css +262 -1
  200. package/lib/styles/mixins/scroll.css +130 -0
  201. package/lib/styles/mixins/scroll.variable.css +262 -1
  202. package/lib/styles/reset.css +130 -0
  203. package/lib/styles/reset.variable.css +262 -1
  204. package/lib/{scrollbar/scrollbar.variable.css → styles/themes/themes.css} +2 -76
  205. package/lib/styles/themes/themes.less +299 -129
  206. package/lib/styles/themes/themes.variable.css +130 -0
  207. package/lib/swiper/swiper.css +130 -0
  208. package/lib/swiper/swiper.variable.css +262 -1
  209. package/lib/switcher/switcher.css +147 -17
  210. package/lib/switcher/switcher.variable.css +409 -18
  211. package/lib/tab/index.d.ts +22 -92
  212. package/lib/tab/index.js +33 -24
  213. package/lib/tab/props.d.ts +10 -35
  214. package/lib/tab/tab-nav.d.ts +14 -47
  215. package/lib/tab/tab-panel.d.ts +22 -0
  216. package/lib/tab/tab.css +211 -17
  217. package/lib/tab/tab.d.ts +0 -44
  218. package/lib/tab/tab.less +91 -4
  219. package/lib/tab/tab.variable.css +326 -1
  220. package/lib/table/components/ghost-body.d.ts +2 -0
  221. package/lib/table/components/table-cell.d.ts +22 -0
  222. package/lib/table/components/table-column.d.ts +1 -44
  223. package/lib/table/const.d.ts +15 -2
  224. package/lib/table/events.d.ts +2 -98
  225. package/lib/table/hooks/use-cell.d.ts +20 -0
  226. package/lib/table/hooks/use-column-resize.d.ts +7 -0
  227. package/lib/table/hooks/use-column-template.d.ts +5 -0
  228. package/lib/table/hooks/use-columns.d.ts +69 -0
  229. package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
  230. package/lib/table/hooks/use-fixed-column.d.ts +10 -0
  231. package/lib/table/hooks/use-head.d.ts +16 -0
  232. package/lib/table/hooks/use-layout.d.ts +25 -0
  233. package/lib/table/hooks/use-pagination.d.ts +16 -0
  234. package/lib/table/hooks/use-render.d.ts +21 -0
  235. package/lib/table/hooks/use-rows.d.ts +30 -0
  236. package/lib/table/hooks/use-settings.d.ts +134 -0
  237. package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
  238. package/lib/table/index.d.ts +89 -561
  239. package/lib/table/index.js +4024 -3539
  240. package/lib/table/plugins/head-filter.css +131 -0
  241. package/lib/table/plugins/head-filter.d.ts +2 -1
  242. package/lib/table/plugins/head-filter.less +1 -0
  243. package/lib/table/plugins/head-filter.variable.css +263 -1
  244. package/lib/table/plugins/head-sort.css +130 -0
  245. package/lib/table/plugins/head-sort.variable.css +262 -1
  246. package/lib/table/plugins/settings.css +131 -0
  247. package/lib/table/plugins/settings.less +1 -0
  248. package/lib/table/plugins/settings.variable.css +263 -1
  249. package/lib/table/props.d.ts +92 -30
  250. package/lib/table/table.css +597 -327
  251. package/lib/table/table.d.ts +47 -181
  252. package/lib/table/table.less +228 -101
  253. package/lib/table/table.variable.css +859 -328
  254. package/lib/table/utils.d.ts +45 -18
  255. package/lib/table-column/index.d.ts +3 -132
  256. package/lib/table-column/index.js +17367 -28
  257. package/lib/tag/index.js +0 -1
  258. package/lib/tag/tag.css +136 -6
  259. package/lib/tag/tag.less +1 -1
  260. package/lib/tag/tag.variable.css +263 -2
  261. package/lib/tag-input/index.js +4 -2
  262. package/lib/tag-input/tag-input.css +148 -18
  263. package/lib/tag-input/tag-input.variable.css +262 -1
  264. package/lib/time-picker/index.d.ts +0 -19
  265. package/lib/time-picker/time-picker.css +130 -0
  266. package/lib/time-picker/time-picker.variable.css +262 -1
  267. package/lib/timeline/timeline.css +149 -19
  268. package/lib/timeline/timeline.variable.css +262 -1
  269. package/lib/transfer/transfer.css +149 -19
  270. package/lib/transfer/transfer.variable.css +262 -1
  271. package/lib/tree/constant.d.ts +3 -1
  272. package/lib/tree/index.d.ts +21 -7
  273. package/lib/tree/index.js +61 -18
  274. package/lib/tree/props.d.ts +12 -5
  275. package/lib/tree/tree.css +242 -78
  276. package/lib/tree/tree.d.ts +9 -3
  277. package/lib/tree/tree.variable.css +504 -79
  278. package/lib/tree/use-node-action.d.ts +10 -9
  279. package/lib/tree/use-node-async.d.ts +2 -1
  280. package/lib/tree/use-node-attribute.d.ts +42 -34
  281. package/lib/tree/use-search.d.ts +1 -1
  282. package/lib/tree/use-tree-init.d.ts +8 -5
  283. package/lib/tree/util.d.ts +21 -21
  284. package/lib/upload/index.d.ts +27 -4
  285. package/lib/upload/index.js +30 -7
  286. package/lib/upload/props.d.ts +7 -2
  287. package/lib/upload/upload.css +157 -27
  288. package/lib/upload/upload.d.ts +13 -2
  289. package/lib/upload/upload.type.d.ts +6 -0
  290. package/lib/upload/upload.variable.css +419 -28
  291. package/lib/virtual-render/index.d.ts +12 -46
  292. package/lib/virtual-render/index.js +17468 -147
  293. package/lib/virtual-render/props.d.ts +2 -9
  294. package/lib/virtual-render/use-fix-top.d.ts +1 -1
  295. package/lib/virtual-render/use-scrollbar.d.ts +4 -17
  296. package/lib/virtual-render/v-virtual-render.d.ts +7 -1
  297. package/lib/virtual-render/virtual-render.css +225 -69
  298. package/lib/virtual-render/virtual-render.d.ts +6 -22
  299. package/lib/virtual-render/virtual-render.less +2 -11
  300. package/lib/virtual-render/virtual-render.variable.css +487 -70
  301. package/lib/volar.components.d.ts +2 -0
  302. package/package.json +1 -1
  303. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  304. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  305. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
  306. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  307. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  308. package/lib/scrollbar/scrollbar.css +0 -75
  309. package/lib/scrollbar/scrollbar.less +0 -94
  310. package/lib/table/plugins/col-group.d.ts +0 -38
  311. package/lib/table/plugins/settings.d.ts +0 -16
  312. package/lib/table/plugins/use-active-columns.d.ts +0 -16
  313. package/lib/table/plugins/use-column-resize.d.ts +0 -35
  314. package/lib/table/plugins/use-column-template.d.ts +0 -7
  315. package/lib/table/plugins/use-fixed-column.d.ts +0 -27
  316. package/lib/table/plugins/use-head-cell.d.ts +0 -7
  317. package/lib/table/plugins/use-pagination.d.ts +0 -23
  318. package/lib/table/use-attributes.d.ts +0 -62
  319. package/lib/table/use-column.d.ts +0 -155
  320. package/lib/table/use-common.d.ts +0 -1679
  321. package/lib/table/use-render.d.ts +0 -11
  322. /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
  323. /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
  324. /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -13,32 +13,45 @@
13
13
  .@{bk-prefix}-table {
14
14
  position: relative;
15
15
  width: 100%;
16
- height: auto;
16
+ height: 100%;
17
17
  overflow: hidden;
18
+ border-spacing: 0;
19
+ display: flex;
20
+ flex-direction: column;
21
+ max-height: fit-content;
18
22
 
19
- &-flex {
20
- display: flex;
21
- flex-direction: column;
22
- max-height: fit-content;
23
- .@{bk-prefix}-table-body {
24
- flex: 1;
25
- overflow: auto;
23
+ .@{bk-prefix}-table-body {
24
+ position: relative;
25
+ overflow: auto;
26
+ flex: 1;
27
+
28
+ &::-webkit-scrollbar {
29
+ width: 8px;
30
+ height: 8px;
26
31
  }
27
- }
28
32
 
29
- &.has-scroll-y {
30
- .@{bk-prefix}-table-head {
31
- padding-right: 4px;
33
+ &::-webkit-scrollbar-thumb {
34
+ background: #ddd;
35
+ border-radius: 20px;
36
+ box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
32
37
  }
33
- }
34
38
 
35
- .@{bk-prefix}-table-body {
36
- position: relative;
37
- overflow: hidden;
38
- border-bottom: 1px solid @table-border-color;
39
+ &.is-bk-scrollbar {
40
+ overflow: hidden;
41
+ }
39
42
 
40
43
  .prepend-row {
41
- transform: translateX(var(--prepend-left));
44
+ transform: translate(var(--translate-x), 0);
45
+ }
46
+
47
+ .resize-column {
48
+ position: absolute;
49
+ top: 0;
50
+ bottom: 0;
51
+ left: 0;
52
+ width: 1px;
53
+ background-color: #3785ff;
54
+ transform: translate(var(--drag-offset-x), var(--translate-y));
42
55
  }
43
56
  }
44
57
 
@@ -49,7 +62,7 @@
49
62
  tr {
50
63
  &:nth-child(even) {
51
64
  td {
52
- background-color: #fafbfd;
65
+ background-color: @table-strip-color;
53
66
  }
54
67
  }
55
68
 
@@ -62,20 +75,6 @@
62
75
  }
63
76
  }
64
77
 
65
- .@{bk-prefix}-fixed-bottom-border {
66
- position: sticky;
67
- bottom: 0;
68
- left: 0;
69
- z-index: 1;
70
- width: 100%;
71
- border-top: 1px solid @table-border-color;
72
- transform: translateX(var(--scroll-head-left));
73
-
74
- &._is-empty {
75
- display: none;
76
- }
77
- }
78
-
79
78
  .@{bk-prefix}-table-head,
80
79
  .@{bk-prefix}-table-body {
81
80
  background: @table-bg-color;
@@ -94,16 +93,22 @@
94
93
  height: 100%;
95
94
  padding-bottom: 20px;
96
95
  }
97
-
98
96
  }
99
97
 
100
98
  table {
101
99
  width: 100%;
102
- border-collapse: collapse;
100
+ border-collapse: separate;
101
+
103
102
  transform: translateZ(0);
104
103
  table-layout: fixed;
105
104
  align-self: flex-start;
106
105
 
106
+ &.@{bk-prefix}-table-col-resizing {
107
+ th {
108
+ cursor: col-resize !important;
109
+ }
110
+ }
111
+
107
112
  th,
108
113
  td {
109
114
  height: var(--row-height);
@@ -147,6 +152,10 @@
147
152
  &.selection {
148
153
  padding: 0;
149
154
  text-align: center;
155
+ display: flex;
156
+ align-items: center;
157
+ justify-content: center;
158
+ height: 100%;
150
159
  }
151
160
 
152
161
  &.expand-cell {
@@ -158,7 +167,6 @@
158
167
  }
159
168
  }
160
169
 
161
-
162
170
  .expand-btn-action {
163
171
  display: flex;
164
172
  padding: 0 16px;
@@ -169,14 +177,6 @@
169
177
  &.column_fixed {
170
178
  position: sticky;
171
179
  z-index: 1;
172
-
173
- &.column_fixed_left {
174
- left: 0;
175
- }
176
-
177
- &.column_fixed_right {
178
- right: 0;
179
- }
180
180
  }
181
181
 
182
182
  &.row_expend {
@@ -221,19 +221,64 @@
221
221
  font-weight: 400;
222
222
  background-color: var(--background-color);
223
223
 
224
- &.col-resize-hover {
225
- &::after {
224
+ &.col-pointer-hover {
225
+ &.poiner-right {
226
+ &::after {
227
+ content: '';
228
+ position: absolute;
229
+ top: 0;
230
+ bottom: 0;
231
+ right: 0;
232
+ width: 3px;
233
+ background-color: #3785ff;
234
+ transform: translateX(1px);
235
+ pointer-events: none;
236
+ }
237
+ }
238
+ &.poiner-left {
239
+ &::after {
240
+ content: '';
241
+ position: absolute;
242
+ top: 0;
243
+ bottom: 0;
244
+ left: 0;
245
+ width: 3px;
246
+ transform: translateX(-1px);
247
+ background-color: #3785ff;
248
+ pointer-events: none;
249
+ }
250
+ }
251
+ }
252
+
253
+
254
+ .across-page-cell {
255
+ position: relative;
256
+
257
+ .dropwn-icon {
258
+ display: block;
226
259
  position: absolute;
227
- top: 0;
260
+ width: 16px;
261
+ height: 16px;
262
+ top: 50%;
228
263
  right: 0;
229
- bottom: 0;
230
- z-index: 1;
231
- width: 6px;
232
- pointer-events: none;
233
- background-color: #3785ff;
234
- content: '';
235
- transform: translateX(50%);
264
+ transform: translate(18px, -50%);
265
+
266
+ &::after {
267
+ position: absolute;
268
+ top: 50%;
269
+ right: 0;
270
+ left: 50%;
271
+ width: 5px;
272
+ height: 5px;
273
+ border: 1px solid #63656e;
274
+ border-top: 0;
275
+ border-left: 0;
276
+ transform: translate(-50%, -100%) scaleY(1) rotate(45deg);
277
+ transform-origin: center;
278
+ content: '';
279
+ }
236
280
  }
281
+
237
282
  }
238
283
 
239
284
  .cell {
@@ -241,27 +286,45 @@
241
286
  align-items: center;
242
287
  height: calc(var(--row-height) - 2px);
243
288
  color: @table-head-font-color;
244
- }
245
289
 
246
- &.active,
247
- &:hover {
248
- cursor: pointer;
249
- background: @table-row-active-bg-color;
290
+ &.cell-resize {
291
+ cursor: col-resize;
292
+ }
250
293
  }
251
294
 
252
295
  &.column_fixed {
253
- transform: translateX(var(--scroll-left));
296
+ transform: translateX(var(--translate-x));
297
+ }
298
+ }
299
+ }
300
+
301
+ &:not(.col-resize-hover) {
302
+ thead {
303
+ th {
304
+ &.active,
305
+ &:hover {
306
+ cursor: pointer;
307
+ background: @table-row-active-bg-color;
308
+ }
254
309
  }
255
310
  }
256
311
  }
257
312
 
258
313
  tbody {
259
314
  tr {
315
+
316
+ &.stripe-row {
317
+ background: #fafbfd;
318
+ td {
319
+ background-color: #fafbfd;
320
+ }
321
+ }
322
+
260
323
  td {
261
324
  background-color: #fff;
262
- border-top: 1px solid transparent;
263
- border-bottom: 1px solid transparent;
264
- border-right: 1px solid transparent;
325
+ border-top: 1px solid @table-bg-color;
326
+ border-bottom: 1px solid @table-bg-color;
327
+ border-right: 1px solid @table-bg-color;
265
328
 
266
329
  box-sizing: border-box;
267
330
 
@@ -272,7 +335,7 @@
272
335
  .cell {
273
336
  display: block;
274
337
  width: 100%;
275
- line-height: calc(var(--row-height) - 2px);
338
+ line-height: calc(var(--row-height) - 4px);
276
339
  box-sizing: border-box;
277
340
 
278
341
  &.drag {
@@ -287,6 +350,7 @@
287
350
  td {
288
351
  &:not(.empty-cell) {
289
352
  background: @table-row-hover-bg-color;
353
+ border-right-color: @table-row-hover-bg-color;
290
354
  }
291
355
  }
292
356
  }
@@ -294,7 +358,7 @@
294
358
 
295
359
  &.--drag-start {
296
360
  td {
297
- background: #fff!important;
361
+ background: #fff !important;
298
362
  }
299
363
  }
300
364
  }
@@ -307,20 +371,41 @@
307
371
  z-index: 2;
308
372
  overflow: hidden;
309
373
  background-color: var(--background-color);
374
+ height: var(--row-height);
375
+ min-height: var(--row-height);
376
+
377
+ &.has-group {
378
+ .is-head-group {
379
+ border-bottom: 1px solid @table-border-color;
380
+ }
381
+
382
+ th {
383
+ border-right: 1px solid @table-border-color;
384
+
385
+ &.is-last-child {
386
+ border-right: none;
387
+ }
388
+ }
389
+ }
310
390
 
311
391
  .col-resize-drag {
312
392
  position: absolute;
313
393
  top: 0;
314
- right: 0;
394
+ left: 0;
315
395
  bottom: 0;
316
396
  z-index: 1;
317
397
  width: 6px;
318
398
  background-color: #3785ff;
319
- transform: translateX(-50%);
399
+ transform: translate3d(var(--drag-offset-h-x), 0, 0);
400
+ pointer-events: none;
401
+ }
402
+
403
+ .@{bk-prefix}-table-fixed {
404
+ transform: translate(0, 0);
320
405
  }
321
406
 
322
407
  thead {
323
- transform: translateX(var(--scroll-head-left));
408
+ transform: translate(var(--translate-x-1), 0);
324
409
  }
325
410
 
326
411
  .table-head-settings {
@@ -352,6 +437,7 @@
352
437
  display: flex;
353
438
  width: 100%;
354
439
  height: var(--footer-height);
440
+ min-height: var(--footer-height);
355
441
  align-items: center;
356
442
  padding: 0 16px 0 22px;
357
443
 
@@ -384,15 +470,11 @@
384
470
  .@{bk-prefix}-table-footer {
385
471
  border-bottom: 1px solid @table-border-color;
386
472
  }
387
-
388
473
  }
389
474
 
390
475
  &.bordered-horizontal {
391
476
  border-top: 1px solid @table-border-color;
392
-
393
- .@{bk-prefix}-table-footer {
394
- border-bottom: 1px solid @table-border-color;
395
- }
477
+ border-bottom: 1px solid @table-border-color;
396
478
  }
397
479
 
398
480
  &.bordered-outer,
@@ -405,6 +487,12 @@
405
487
  }
406
488
 
407
489
  &.bordered-col {
490
+ .@{bk-prefix}-table-head {
491
+ border-right: 1px solid @table-border-color;
492
+ .is-head-group {
493
+ border-bottom: 1px solid @table-border-color;
494
+ }
495
+ }
408
496
  th {
409
497
  border-right: 1px solid @table-border-color;
410
498
 
@@ -413,32 +501,42 @@
413
501
  }
414
502
  }
415
503
 
416
- .bk-table-body {
504
+ .@{bk-prefix}-table-body {
505
+ border-right: 1px solid @table-border-color;
417
506
  tbody {
418
507
  tr {
419
508
  td {
420
509
  border-right-color: @table-border-color;
421
510
 
422
511
  &:last-child {
423
- border-right-color: transparent;
512
+ border-right: none;
513
+ }
514
+ }
515
+
516
+ &:hover {
517
+ &.hover-highlight {
518
+ td {
519
+ &:not(.empty-cell) {
520
+ border-right-color: @table-border-color;
521
+ }
522
+ }
424
523
  }
425
524
  }
426
525
  }
427
526
  }
428
527
  }
429
-
430
528
  }
431
529
 
432
530
  th,
433
531
  td {
434
- border-right: 1px solid transparent;
532
+ border-right: 1px solid @table-bg-color;
435
533
  }
436
534
 
437
535
  &.bordered-none {
438
536
  th,
439
537
  td {
440
538
  border-top: none;
441
- border-right: 1px solid transparent;
539
+ border-right: 1px solid @table-bg-color;
442
540
  border-bottom: none;
443
541
  border-left: none;
444
542
  }
@@ -448,32 +546,28 @@
448
546
  position: absolute;
449
547
  top: 0;
450
548
  right: 0;
451
- bottom: var(--footer-height);
549
+ bottom: 0;
452
550
  left: 0;
453
551
  pointer-events: none;
552
+ transform: translate(var(--translate-x), var(--translate-y));
454
553
 
455
- .column_fixed {
456
- position: absolute;
457
- z-index: 2;
458
-
459
- &.column_fixed_left {
460
- top: 0;
461
- left: 0;
462
-
463
- &.shadow {
464
- box-shadow: 0 0 10px rgb(0 0 0 / 12%);
465
- }
466
- }
554
+ &.has-virtual-scroll {
555
+ transform: translate(var(--translate-x), 0);
556
+ }
467
557
 
468
- &.column_fixed_right {
469
- top: 0;
470
- right: 0;
558
+ .column_fixed_right {
559
+ box-shadow: var(--shadow-right);
560
+ }
471
561
 
562
+ .column_fixed_left {
563
+ box-shadow: var(--shadow-left);
564
+ }
472
565
 
473
- &.shadow {
474
- box-shadow: 0 0 10px rgb(0 0 0 / 12%);
475
- }
476
- }
566
+ .column_fixed {
567
+ position: absolute;
568
+ z-index: 2;
569
+ bottom: 0;
570
+ top: 0;
477
571
  }
478
572
 
479
573
  .scroll-loading {
@@ -489,6 +583,13 @@
489
583
  }
490
584
  }
491
585
 
586
+ .@{bk-prefix}-table-fixed-bottom {
587
+ position: absolute;
588
+ right: 0;
589
+ bottom: 0;
590
+ left: 0;
591
+ text-align: center;
592
+ }
492
593
  colgroup {
493
594
  col {
494
595
  background: @table-bg-color;
@@ -505,8 +606,34 @@
505
606
  margin-left: auto;
506
607
  }
507
608
  }
609
+ }
610
+
611
+ .@{bk-prefix}-across-page-popover {
612
+ padding: 0!important;
613
+
614
+ .dropwn-content {
615
+ min-width: 100%;
616
+ padding: 5px 0;
617
+ margin: 0;
618
+ background: #fff;
619
+ border: 1px solid #dcdee5;
620
+ border-radius: 2px;
621
+ box-sizing: border-box;
622
+
623
+ > div {
624
+ display: block;
625
+ height: 32px;
626
+ padding: 0 16px;
627
+ font-size: 12px;
628
+ line-height: 33px;
629
+ color: #63656e;
630
+ white-space: nowrap;
631
+ list-style: none;
632
+ cursor: pointer;
508
633
 
509
- .stripe-row {
510
- background: #fafbfd;
634
+ &:hover {
635
+ background-color: #f5f7fa;
636
+ }
637
+ }
511
638
  }
512
- }
639
+ }