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

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