bkui-vue 1.0.3-beta.8 → 2.0.1-beta.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 (289) hide show
  1. package/dist/index.cjs.js +71 -73
  2. package/dist/index.esm.js +20956 -18684
  3. package/dist/index.umd.js +71 -73
  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.variable.css +3 -0
  15. package/lib/alert/alert.variable.css +3 -0
  16. package/lib/backtop/backtop.variable.css +3 -0
  17. package/lib/badge/badge.variable.css +3 -0
  18. package/lib/breadcrumb/breadcrumb.variable.css +3 -0
  19. package/lib/button/button.variable.css +3 -0
  20. package/lib/card/card.variable.css +3 -0
  21. package/lib/cascader/cascader.variable.css +3 -0
  22. package/lib/checkbox/checkbox.variable.css +3 -0
  23. package/lib/checkbox/index.js +4 -4
  24. package/lib/code-diff/code-diff.variable.css +3 -0
  25. package/lib/collapse/collapse.css +11 -0
  26. package/lib/collapse/collapse.d.ts +11 -0
  27. package/lib/collapse/collapse.less +15 -1
  28. package/lib/collapse/collapse.variable.css +14 -0
  29. package/lib/collapse/index.d.ts +23 -0
  30. package/lib/collapse/index.js +9 -1
  31. package/lib/collapse/props.d.ts +8 -0
  32. package/lib/collapse-transition/collapse-transition.variable.css +3 -0
  33. package/lib/color-picker/color-picker.variable.css +3 -0
  34. package/lib/components.d.ts +2 -0
  35. package/lib/components.js +62 -505
  36. package/lib/config-provider/config-provider.d.ts +3 -0
  37. package/lib/config-provider/config-provider.variable.css +3 -0
  38. package/lib/config-provider/index.d.ts +4 -0
  39. package/lib/config-provider/token.d.ts +1 -0
  40. package/lib/container/container.variable.css +3 -0
  41. package/lib/date-picker/base/month-table.d.ts +2 -2
  42. package/lib/date-picker/date-picker.d.ts +1 -0
  43. package/lib/date-picker/date-picker.variable.css +3 -0
  44. package/lib/date-picker/index.d.ts +3 -0
  45. package/lib/date-picker/index.js +70 -32
  46. package/lib/date-picker/interface.d.ts +1 -1
  47. package/lib/date-picker/time-picker.d.ts +1 -0
  48. package/lib/date-picker/utils.d.ts +4 -0
  49. package/lib/dialog/dialog.css +176 -150
  50. package/lib/dialog/dialog.d.ts +40 -109
  51. package/lib/dialog/dialog.less +51 -124
  52. package/lib/dialog/dialog.variable.css +179 -150
  53. package/lib/dialog/index.d.ts +99 -263
  54. package/lib/dialog/index.js +244 -246
  55. package/lib/dialog/props.d.ts +10 -35
  56. package/lib/directives/index.js +0 -1
  57. package/lib/dist.index.js +5 -62
  58. package/lib/divider/divider.variable.css +3 -0
  59. package/lib/dropdown/dropdown.css +3 -1
  60. package/lib/dropdown/dropdown.variable.css +6 -1
  61. package/lib/exception/exception.variable.css +3 -0
  62. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  63. package/lib/form/form.variable.css +3 -0
  64. package/lib/form/index.js +3 -1
  65. package/lib/hooks.js +1 -48
  66. package/lib/icon/image-fill.js +82 -167
  67. package/lib/icon/img-error.js +82 -167
  68. package/lib/icon/img-placehoulder.js +82 -167
  69. package/lib/icon/index.d.ts +1 -0
  70. package/lib/icon/index.js +87 -2427
  71. package/lib/icon/info-line.js +82 -167
  72. package/lib/icon/info.js +82 -167
  73. package/lib/icon/left-shape.js +82 -167
  74. package/lib/icon/left-turn-line.js +82 -167
  75. package/lib/icon/loading.js +82 -167
  76. package/lib/icon/narrow-line.js +82 -167
  77. package/lib/icon/original.js +82 -167
  78. package/lib/icon/pdf-fill.js +82 -167
  79. package/lib/icon/play-shape.js +82 -167
  80. package/lib/icon/plus.js +82 -167
  81. package/lib/icon/ppt-fill.js +82 -167
  82. package/lib/icon/qq.js +82 -167
  83. package/lib/icon/right-shape.js +82 -167
  84. package/lib/icon/right-turn-line.js +82 -167
  85. package/lib/icon/search.js +82 -167
  86. package/lib/icon/share.js +82 -167
  87. package/lib/icon/spinner.js +82 -167
  88. package/lib/icon/success.js +82 -167
  89. package/lib/icon/switcher-loading.js +82 -167
  90. package/lib/icon/text-all.d.ts +4 -0
  91. package/lib/icon/text-all.js +191 -0
  92. package/lib/icon/text-file.js +82 -167
  93. package/lib/icon/text-fill.js +82 -167
  94. package/lib/icon/transfer.js +82 -167
  95. package/lib/icon/tree-application-shape.js +82 -167
  96. package/lib/icon/unfull-screen.js +82 -167
  97. package/lib/icon/unvisible.js +82 -167
  98. package/lib/icon/up-shape.js +82 -167
  99. package/lib/icon/upload.js +82 -167
  100. package/lib/icon/video-fill.js +82 -167
  101. package/lib/icon/warn.js +82 -167
  102. package/lib/icon/weixin-pro.js +82 -167
  103. package/lib/icon/weixin.js +82 -167
  104. package/lib/image/image-viewer.variable.css +3 -0
  105. package/lib/image/image.variable.css +3 -0
  106. package/lib/image/index.js +5 -2
  107. package/lib/index.js +7 -72
  108. package/lib/info-box/index.d.ts +2 -2
  109. package/lib/info-box/index.js +257 -516
  110. package/lib/info-box/info-box.css +58 -28
  111. package/lib/info-box/info-box.d.ts +18 -16
  112. package/lib/info-box/info-box.less +82 -51
  113. package/lib/info-box/info-box.variable.css +61 -28
  114. package/lib/info-box/render-component.d.ts +4 -0
  115. package/lib/input/index.js +7 -1
  116. package/lib/input/input.variable.css +3 -0
  117. package/lib/link/link.variable.css +3 -0
  118. package/lib/loading/loading.variable.css +3 -0
  119. package/lib/locale/index.js +4 -2
  120. package/lib/locale/lang/en.d.ts +1 -0
  121. package/lib/menu/menu.variable.css +3 -0
  122. package/lib/menu/submenu.variable.css +3 -0
  123. package/lib/message/message.variable.css +3 -0
  124. package/lib/modal/hooks.d.ts +6 -0
  125. package/lib/modal/index.d.ts +41 -309
  126. package/lib/modal/index.js +285 -671
  127. package/lib/modal/mask.d.ts +6 -0
  128. package/lib/modal/modal.css +155 -76
  129. package/lib/modal/modal.d.ts +18 -116
  130. package/lib/modal/modal.less +107 -55
  131. package/lib/modal/modal.variable.css +158 -76
  132. package/lib/modal/props.mixin.d.ts +5 -41
  133. package/lib/navigation/navigation.variable.css +3 -0
  134. package/lib/notify/notify.variable.css +3 -0
  135. package/lib/overflow-title/index.js +46 -52
  136. package/lib/pagination/index.js +2 -1
  137. package/lib/pagination/pagination.variable.css +3 -0
  138. package/lib/plugin-popover/index.d.ts +1 -1
  139. package/lib/plugin-popover/index.js +45 -26
  140. package/lib/pop-confirm/index.js +8 -5
  141. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  142. package/lib/popover/content.d.ts +1 -1
  143. package/lib/popover/index.js +45 -26
  144. package/lib/popover/plugin-popover.d.ts +4 -1
  145. package/lib/popover/popover.css +3 -1
  146. package/lib/popover/popover.less +4 -1
  147. package/lib/popover/popover.variable.css +6 -1
  148. package/lib/preset.d.ts +2 -0
  149. package/lib/preset.js +18 -64
  150. package/lib/process/process.variable.css +3 -0
  151. package/lib/progress/progress.variable.css +3 -0
  152. package/lib/radio/index.d.ts +29 -0
  153. package/lib/radio/index.js +49 -26
  154. package/lib/radio/radio-button.d.ts +10 -0
  155. package/lib/radio/radio-group.d.ts +10 -0
  156. package/lib/radio/radio.d.ts +10 -0
  157. package/lib/radio/radio.variable.css +3 -0
  158. package/lib/rate/rate.variable.css +3 -0
  159. package/lib/rate/star.variable.css +3 -0
  160. package/lib/resize-layout/index.js +1 -1
  161. package/lib/resize-layout/resize-layout.variable.css +3 -0
  162. package/lib/scrollbar/index.d.ts +15 -0
  163. package/lib/scrollbar/index.js +18763 -0
  164. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
  165. package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
  166. package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
  167. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
  168. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
  169. package/lib/scrollbar/scrollbar.css +75 -0
  170. package/lib/scrollbar/scrollbar.less +94 -0
  171. package/lib/scrollbar/scrollbar.variable.css +204 -0
  172. package/lib/search-select/index.d.ts +375 -16
  173. package/lib/search-select/index.js +701 -366
  174. package/lib/search-select/input.d.ts +14 -5
  175. package/lib/search-select/search-select.css +20 -6
  176. package/lib/search-select/search-select.d.ts +129 -7
  177. package/lib/search-select/search-select.less +16 -12
  178. package/lib/search-select/search-select.variable.css +23 -6
  179. package/lib/search-select/selected.d.ts +116 -6
  180. package/lib/search-select/utils.d.ts +19 -6
  181. package/lib/select/index.d.ts +124 -6
  182. package/lib/select/index.js +1336 -72
  183. package/lib/select/option.d.ts +3 -1
  184. package/lib/select/pinyin/core.d.ts +14 -0
  185. package/lib/select/pinyin/dict.d.ts +34 -0
  186. package/lib/select/pinyin/index.d.ts +2 -0
  187. package/lib/select/select.css +55 -12
  188. package/lib/select/select.d.ts +50 -2
  189. package/lib/select/select.less +69 -19
  190. package/lib/select/select.variable.css +58 -12
  191. package/lib/select/selectTagInput.d.ts +7 -0
  192. package/lib/select/type.d.ts +2 -3
  193. package/lib/shared/index.d.ts +0 -1
  194. package/lib/shared/index.js +70 -50
  195. package/lib/shared/utils.d.ts +12 -0
  196. package/lib/shared/vue-types.d.ts +5 -0
  197. package/lib/sideslider/index.d.ts +55 -185
  198. package/lib/sideslider/index.js +81 -55
  199. package/lib/sideslider/sideslider.css +26 -90
  200. package/lib/sideslider/sideslider.d.ts +25 -87
  201. package/lib/sideslider/sideslider.less +56 -132
  202. package/lib/sideslider/sideslider.variable.css +29 -90
  203. package/lib/slider/index.d.ts +19 -0
  204. package/lib/slider/index.js +45 -5
  205. package/lib/slider/slider.css +14 -0
  206. package/lib/slider/slider.d.ts +9 -0
  207. package/lib/slider/slider.less +15 -0
  208. package/lib/slider/slider.variable.css +17 -0
  209. package/lib/steps/steps.variable.css +3 -0
  210. package/lib/styles/mixins/animate.variable.css +3 -0
  211. package/lib/styles/mixins/popper.variable.css +3 -0
  212. package/lib/styles/mixins/scroll.variable.css +3 -0
  213. package/lib/styles/reset.css +1 -3
  214. package/lib/styles/reset.less +3 -6
  215. package/lib/styles/reset.variable.css +4 -3
  216. package/lib/styles/themes/themes.less +5 -0
  217. package/lib/swiper/swiper.variable.css +3 -0
  218. package/lib/switcher/switcher.variable.css +3 -0
  219. package/lib/tab/tab.variable.css +3 -0
  220. package/lib/table/cache.d.ts +11 -3
  221. package/lib/table/components/table-cell.d.ts +3 -2
  222. package/lib/table/components/table-column.d.ts +7 -17
  223. package/lib/table/const.d.ts +4 -4
  224. package/lib/table/index.d.ts +29 -64
  225. package/lib/table/index.js +18068 -613
  226. package/lib/table/plugins/head-filter.css +8 -4
  227. package/lib/table/plugins/head-filter.less +6 -3
  228. package/lib/table/plugins/head-filter.variable.css +11 -4
  229. package/lib/table/plugins/head-sort.variable.css +3 -0
  230. package/lib/table/plugins/settings.variable.css +3 -0
  231. package/lib/table/plugins/use-active-columns.d.ts +2 -2
  232. package/lib/table/plugins/use-column-template.d.ts +7 -0
  233. package/lib/table/plugins/use-draggable.d.ts +2 -2
  234. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  235. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  236. package/lib/table/plugins/use-pagination.d.ts +3 -1
  237. package/lib/table/plugins/use-shift-key.d.ts +11 -0
  238. package/lib/table/props.d.ts +17 -7
  239. package/lib/table/table.css +112 -58
  240. package/lib/table/table.d.ts +11 -0
  241. package/lib/table/table.less +46 -58
  242. package/lib/table/table.variable.css +115 -58
  243. package/lib/table/use-attributes.d.ts +6 -43
  244. package/lib/table/use-column.d.ts +9 -10
  245. package/lib/table/use-common.d.ts +1 -1
  246. package/lib/table/use-render.d.ts +1 -1
  247. package/lib/table/utils.d.ts +1 -1
  248. package/lib/table-column/index.d.ts +92 -266
  249. package/lib/table-column/index.js +24 -98
  250. package/lib/tag/tag.variable.css +3 -0
  251. package/lib/tag-input/index.d.ts +4 -4
  252. package/lib/tag-input/tag-input.d.ts +2 -2
  253. package/lib/tag-input/tag-input.variable.css +3 -0
  254. package/lib/tag-input/tag-props.d.ts +1 -1
  255. package/lib/tag-input/tag-render.d.ts +1 -1
  256. package/lib/time-picker/index.d.ts +38 -35
  257. package/lib/time-picker/time-picker.variable.css +3 -0
  258. package/lib/timeline/index.d.ts +80 -44
  259. package/lib/timeline/index.js +54 -65
  260. package/lib/timeline/timeline.d.ts +46 -29
  261. package/lib/timeline/timeline.variable.css +3 -0
  262. package/lib/transfer/transfer.variable.css +3 -0
  263. package/lib/tree/constant.d.ts +3 -1
  264. package/lib/tree/index.d.ts +44 -0
  265. package/lib/tree/index.js +17548 -25
  266. package/lib/tree/props.d.ts +18 -0
  267. package/lib/tree/tree.css +76 -2
  268. package/lib/tree/tree.d.ts +28 -2
  269. package/lib/tree/tree.variable.css +79 -2
  270. package/lib/tree/use-intersection-observer.d.ts +27 -0
  271. package/lib/tree/use-node-attribute.d.ts +9 -0
  272. package/lib/upload/index.d.ts +12 -0
  273. package/lib/upload/index.js +21 -30
  274. package/lib/upload/props.d.ts +3 -0
  275. package/lib/upload/upload-trigger.d.ts +6 -0
  276. package/lib/upload/upload.d.ts +6 -0
  277. package/lib/upload/upload.variable.css +3 -0
  278. package/lib/virtual-render/index.d.ts +36 -9
  279. package/lib/virtual-render/index.js +295 -80
  280. package/lib/virtual-render/props.d.ts +16 -0
  281. package/lib/virtual-render/use-fix-top.d.ts +2 -7
  282. package/lib/virtual-render/use-scrollbar.d.ts +24 -0
  283. package/lib/virtual-render/v-virtual-render.d.ts +2 -1
  284. package/lib/virtual-render/virtual-render.css +76 -2
  285. package/lib/virtual-render/virtual-render.d.ts +16 -3
  286. package/lib/virtual-render/virtual-render.less +3 -3
  287. package/lib/virtual-render/virtual-render.variable.css +79 -2
  288. package/package.json +3 -2
  289. package/lib/shared/mask.d.ts +0 -11
@@ -27,10 +27,6 @@
27
27
  max-width: 300px;
28
28
  min-width: 200px;
29
29
  }
30
- .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
31
- max-height: 200px;
32
- min-height: 40px;
33
- }
34
30
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
35
31
  width: 100%;
36
32
  height: 32px;
@@ -43,11 +39,19 @@
43
39
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
44
40
  background: #f0f1f5;
45
41
  }
42
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
43
+ text-overflow: ellipsis;
44
+ white-space: nowrap;
45
+ overflow: hidden;
46
+ width: 100%;
47
+ }
46
48
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
47
49
  background: #f0f1f5;
48
50
  }
49
51
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
50
52
  white-space: nowrap;
53
+ text-overflow: ellipsis;
54
+ overflow: hidden;
51
55
  }
52
56
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
53
57
  margin-left: 0;
@@ -35,9 +35,6 @@
35
35
  min-width: 200px;
36
36
 
37
37
  .content-items {
38
- max-height: 200px;
39
- min-height: 40px;
40
-
41
38
  .list-item {
42
39
  width: 100%;
43
40
  height: 32px;
@@ -52,6 +49,10 @@
52
49
  }
53
50
 
54
51
  label {
52
+ text-overflow: ellipsis;
53
+ white-space: nowrap;
54
+ overflow: hidden;
55
+ width: 100%;
55
56
  &:hover {
56
57
  background: #f0f1f5;
57
58
  }
@@ -59,6 +60,8 @@
59
60
 
60
61
  .@{bk-prefix}-checkbox-label {
61
62
  white-space: nowrap;
63
+ text-overflow: ellipsis;
64
+ overflow: hidden;
62
65
  }
63
66
 
64
67
  .@{bk-prefix}-checkbox {
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-table-head-action {
128
131
  display: flex;
@@ -153,10 +156,6 @@
153
156
  max-width: 300px;
154
157
  min-width: 200px;
155
158
  }
156
- .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
157
- max-height: 200px;
158
- min-height: 40px;
159
- }
160
159
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
161
160
  width: 100%;
162
161
  height: 32px;
@@ -169,11 +168,19 @@
169
168
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
170
169
  background: #f0f1f5;
171
170
  }
171
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
172
+ text-overflow: ellipsis;
173
+ white-space: nowrap;
174
+ overflow: hidden;
175
+ width: 100%;
176
+ }
172
177
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
173
178
  background: #f0f1f5;
174
179
  }
175
180
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
176
181
  white-space: nowrap;
182
+ text-overflow: ellipsis;
183
+ overflow: hidden;
177
184
  }
178
185
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
179
186
  margin-left: 0;
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-head-cell-sort {
128
131
  display: flex;
@@ -12,6 +12,7 @@
12
12
  --whitesmoke-color: #fafbfd;
13
13
  --disable-color: #dcdee5;
14
14
  --disable-bg-color: #f9fafd;
15
+ --border-color: #dcdee5;
15
16
  --font-size-base: 12px;
16
17
  --font-size-medium: 14px;
17
18
  --font-size-large: 16px;
@@ -123,6 +124,8 @@
123
124
  --search-select-placeholder-color: var(--light-gray);
124
125
  --search-select-message-color: var(--danger-color);
125
126
  --search-select-menu-border-color: var(--disable-color);
127
+ --select-active-color: #e1ecff;
128
+ --select-hover-color: #f5f7fa;
126
129
  }
127
130
  .bk-table-settings[data-bk-table-settings-theme='true'] {
128
131
  padding: 0;
@@ -1,4 +1,4 @@
1
- import { Column, TablePropTypes } from '../props';
1
+ import { TablePropTypes } from '../props';
2
2
  /**
3
3
  * 处理Props中的ActiveColumn,解析为统一的数组格式
4
4
  * @param props
@@ -10,7 +10,7 @@ export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
10
10
  * @param props
11
11
  * @returns
12
12
  */
13
- declare const _default: (props: TablePropTypes, targetColumns: Column[]) => {
13
+ declare const _default: (props: TablePropTypes) => {
14
14
  activeColumns: any[];
15
15
  };
16
16
  export default _default;
@@ -0,0 +1,7 @@
1
+ import { ComponentInternalInstance } from 'vue';
2
+ declare const _default: () => {
3
+ resolveColumns: (instance: ComponentInternalInstance) => any[];
4
+ setNodeInstanceId: (column: any, uniqueId: string) => void;
5
+ columns: any[];
6
+ };
7
+ export default _default;
@@ -6,12 +6,12 @@ declare const _default: (props: TablePropTypes, resp: ITableResponse, ctx: Setup
6
6
  onDragleave?: undefined;
7
7
  onDragstart?: undefined;
8
8
  onDragover?: undefined;
9
- onDrop?: undefined;
9
+ onDragend?: undefined;
10
10
  } | {
11
11
  onDragenter: (event: DragEvent) => void;
12
12
  onDragleave: (event: DragEvent) => void;
13
13
  onDragstart: (event: DragEvent) => void;
14
14
  onDragover: (event: DragEvent) => void;
15
- onDrop: (event: DragEvent) => void;
15
+ onDragend: (event: DragEvent) => void;
16
16
  };
17
17
  export default _default;
@@ -6,7 +6,7 @@ import { ITableResponse } from '../use-attributes';
6
6
  */
7
7
  declare const _default: (props: TablePropTypes, tableResp: ITableResponse, head?: Ref<HTMLElement>) => {
8
8
  fixedWrapperClass: string;
9
- resolveFixedColumnStyle: (column: Column, hasScrollY?: boolean) => {
9
+ resolveFixedColumnStyle: (column: Column) => {
10
10
  [x: string]: string;
11
11
  };
12
12
  resolveFixedColumns: (tableOffsetRight: any) => void;
@@ -0,0 +1,5 @@
1
+ import { Ref } from 'vue';
2
+ declare const _default: (target: Ref<HTMLElement>, fn: any, args?: any[], immediate?: boolean) => {
3
+ instance: any;
4
+ };
5
+ export default _default;
@@ -14,8 +14,10 @@ declare const _default: (props: TablePropTypes) => {
14
14
  resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
15
15
  resolveIndexData: () => Promise<void>;
16
16
  resolvePageDataBySortList: (multiCol?: any) => void;
17
+ handlePaginationChange: (filterFn?: any, sortFn?: any) => void;
17
18
  resetStartEndIndex: () => void;
18
- multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[]) => void;
19
+ getCurrentPageData: () => any[];
20
+ multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[], origin?: any) => void;
19
21
  sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
20
22
  };
21
23
  export default _default;
@@ -0,0 +1,11 @@
1
+ import { TablePropTypes } from '../props';
2
+ declare const _default: (props: TablePropTypes) => {
3
+ isShiftKeyDown: import("vue").Ref<boolean>;
4
+ setStore: (row: any, index: number) => boolean;
5
+ getStore: () => {
6
+ start: any;
7
+ end: any;
8
+ };
9
+ clearStore: () => void;
10
+ };
11
+ export default _default;
@@ -17,7 +17,7 @@ export declare enum ColumnTypeEnum {
17
17
  SELECTION = "selection",
18
18
  INDEX = "index",
19
19
  EXPAND = "expand",
20
- NONE = "none"
20
+ NONE = "__COL_TYPE_NONE"
21
21
  }
22
22
  export declare enum TableAlignEnum {
23
23
  LEFT = "left",
@@ -25,7 +25,7 @@ export declare enum TableAlignEnum {
25
25
  CENTER = "center",
26
26
  NONE = ""
27
27
  }
28
- export declare const columnType: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
28
+ export declare const columnType: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
29
29
  export declare const TableAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
30
30
  export declare enum FullEnum {
31
31
  FULL = "full",
@@ -43,15 +43,16 @@ export declare enum FixedEnum {
43
43
  RIGHT = "right"
44
44
  }
45
45
  export declare const fixedType: import("vue-types").VueTypeValidableDef<"right" | "left">;
46
- export type IOverflowTooltipProp = {
47
- content: string | Function;
48
- disabled?: (col: Column, row: any) => boolean | boolean;
46
+ export type IOverflowTooltipOption = {
47
+ content: ((col: Column, row: any) => string) | string;
48
+ disabled?: ((col: Column, row: any) => boolean) | boolean;
49
49
  watchCellResize?: boolean;
50
50
  mode?: `${OverflowModeEnum}`;
51
51
  popoverOption?: any;
52
52
  resizerWay?: ResizerWay;
53
53
  showHead?: boolean;
54
- } | boolean;
54
+ };
55
+ export type IOverflowTooltipProp = IOverflowTooltipOption | boolean;
55
56
  export type IOverflowTooltip = IOverflowTooltipProp;
56
57
  export declare const IOverflowTooltipPropType: import("vue-types").VueTypeDef<IOverflowTooltipProp>;
57
58
  export type ISortOption = {
@@ -103,6 +104,7 @@ export type Settings = {
103
104
  size?: string;
104
105
  sizeList?: SizeItem[];
105
106
  showLineHeight?: boolean;
107
+ extCls?: string;
106
108
  trigger: 'manual';
107
109
  };
108
110
  export type ISettingPropType = Settings | boolean;
@@ -163,7 +165,7 @@ export type Column = {
163
165
  width?: number | string;
164
166
  minWidth?: number | string;
165
167
  columnKey?: string;
166
- showOverflowTooltip?: boolean | IOverflowTooltip;
168
+ showOverflowTooltip?: IOverflowTooltip;
167
169
  type?: string;
168
170
  fixed?: string | boolean;
169
171
  resizable?: boolean;
@@ -558,5 +560,13 @@ export declare const tableProps: {
558
560
  rowDraggable: import("vue-types").VueTypeDef<any> & {
559
561
  default: any;
560
562
  };
563
+ /**
564
+ * 是否支持shift键多行选择
565
+ */
566
+ shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
567
+ default: boolean;
568
+ } & {
569
+ default: boolean;
570
+ };
561
571
  };
562
572
  export {};
@@ -15,11 +15,85 @@
15
15
  .bk-F-scroll-y::-webkit-scrollbar-thumb {
16
16
  border-radius: 4px;
17
17
  }
18
+ .bk-scrollbar-wrapper {
19
+ position: relative;
20
+ overflow: hidden;
21
+ }
22
+ .bk-scrollbar-wrapper .bk-scrollbar-content-el {
23
+ display: inline-flex;
24
+ flex-direction: column;
25
+ width: 100%;
26
+ }
27
+ .bk-scrollbar-wrapper .bk-scrollbar-track {
28
+ z-index: 1;
29
+ position: absolute;
30
+ right: 0;
31
+ bottom: 0;
32
+ pointer-events: none;
33
+ overflow: hidden;
34
+ }
35
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
36
+ background-color: #F0F1F5;
37
+ cursor: pointer;
38
+ }
39
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
40
+ background-color: #979BA5;
41
+ }
42
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
43
+ top: 0;
44
+ width: 8px;
45
+ transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
46
+ }
47
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
48
+ left: 0;
49
+ height: 8px;
50
+ transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
51
+ }
52
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
53
+ right: auto;
54
+ left: 0;
55
+ top: 0;
56
+ bottom: 0;
57
+ min-height: 0;
58
+ min-width: 8px;
59
+ width: auto;
60
+ }
61
+ .bk-scrollbar-wrapper .bk-scrollbar-dragging {
62
+ pointer-events: none;
63
+ -webkit-touch-callout: none;
64
+ -webkit-user-select: none;
65
+ -khtml-user-select: none;
66
+ -moz-user-select: none;
67
+ -ms-user-select: none;
68
+ user-select: none;
69
+ }
70
+ .bk-scrollbar-wrapper .bk-scrollbar {
71
+ position: absolute;
72
+ left: 0;
73
+ right: 0;
74
+ min-height: 8px;
75
+ }
76
+ .bk-scrollbar-wrapper .bk-scrollbar::before {
77
+ position: absolute;
78
+ content: '';
79
+ background: #DCDEE5;
80
+ border-radius: 6px;
81
+ left: 1px;
82
+ right: 1px;
83
+ top: 1px;
84
+ bottom: 1px;
85
+ opacity: 0;
86
+ transition: opacity 0.2s 0.9s linear;
87
+ }
88
+ .bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
89
+ opacity: 0.9;
90
+ transition-delay: 0s;
91
+ transition-duration: 0s;
92
+ }
18
93
  .bk-virtual-render {
19
94
  position: relative;
20
95
  }
21
- .bk-virtual-render .bk-virtual-content,
22
- .bk-virtual-render.bk-virtual-content {
96
+ .bk-virtual-render .bk-virtual-content {
23
97
  position: absolute;
24
98
  top: 0;
25
99
  bottom: 0;
@@ -736,7 +810,6 @@
736
810
  }
737
811
  .bk-popover.bk-pop2-content {
738
812
  position: absolute;
739
- display: none;
740
813
  padding: 12px;
741
814
  font-size: 12px;
742
815
  color: #fff;
@@ -744,6 +817,9 @@
744
817
  border-radius: 4px;
745
818
  box-sizing: border-box;
746
819
  }
820
+ .bk-popover.bk-pop2-content.hidden {
821
+ display: none;
822
+ }
747
823
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
748
824
  position: absolute;
749
825
  z-index: -1;
@@ -789,10 +865,6 @@
789
865
  max-width: 300px;
790
866
  min-width: 200px;
791
867
  }
792
- .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
793
- max-height: 200px;
794
- min-height: 40px;
795
- }
796
868
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
797
869
  width: 100%;
798
870
  height: 32px;
@@ -805,11 +877,19 @@
805
877
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
806
878
  background: #f0f1f5;
807
879
  }
880
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
881
+ text-overflow: ellipsis;
882
+ white-space: nowrap;
883
+ overflow: hidden;
884
+ width: 100%;
885
+ }
808
886
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
809
887
  background: #f0f1f5;
810
888
  }
811
889
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
812
890
  white-space: nowrap;
891
+ text-overflow: ellipsis;
892
+ overflow: hidden;
813
893
  }
814
894
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
815
895
  margin-left: 0;
@@ -995,9 +1075,9 @@
995
1075
  }
996
1076
  .bk-table {
997
1077
  position: relative;
1078
+ width: 100%;
998
1079
  height: auto;
999
1080
  overflow: hidden;
1000
- width: 100%;
1001
1081
  }
1002
1082
  .bk-table-flex {
1003
1083
  display: flex;
@@ -1013,19 +1093,9 @@
1013
1093
  }
1014
1094
  .bk-table .bk-table-body {
1015
1095
  position: relative;
1016
- overflow: auto;
1017
- scrollbar-gutter: stable;
1096
+ overflow: hidden;
1018
1097
  border-bottom: 1px solid #dcdee5;
1019
1098
  }
1020
- .bk-table .bk-table-body::-webkit-scrollbar {
1021
- width: 5px;
1022
- height: 6px;
1023
- }
1024
- .bk-table .bk-table-body::-webkit-scrollbar-thumb {
1025
- background: #dcdee5;
1026
- border-radius: 10px;
1027
- box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
1028
- }
1029
1099
  .bk-table .bk-table-body .prepend-row {
1030
1100
  transform: translateX(var(--prepend-left));
1031
1101
  }
@@ -1052,17 +1122,6 @@
1052
1122
  background: white;
1053
1123
  transform: translateZ(0);
1054
1124
  }
1055
- .bk-table .bk-table-head::-webkit-scrollbar,
1056
- .bk-table .bk-table-body::-webkit-scrollbar {
1057
- width: 5px;
1058
- height: 5px;
1059
- }
1060
- .bk-table .bk-table-head::-webkit-scrollbar-thumb,
1061
- .bk-table .bk-table-body::-webkit-scrollbar-thumb {
1062
- background: #ddd;
1063
- border-radius: 20px;
1064
- box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
1065
- }
1066
1125
  .bk-table .bk-table-head.__is-empty,
1067
1126
  .bk-table .bk-table-body.__is-empty {
1068
1127
  display: flex;
@@ -1115,8 +1174,8 @@
1115
1174
  .bk-table .bk-table-body table th .cell .drag-cell,
1116
1175
  .bk-table .bk-table-head table td .cell .drag-cell,
1117
1176
  .bk-table .bk-table-body table td .cell .drag-cell {
1118
- font-size: 14px;
1119
1177
  height: 100%;
1178
+ font-size: 14px;
1120
1179
  }
1121
1180
  .bk-table .bk-table-head table th .cell.has-sort,
1122
1181
  .bk-table .bk-table-body table th .cell.has-sort,
@@ -1241,7 +1300,7 @@
1241
1300
  .bk-table .bk-table-body table thead th .cell {
1242
1301
  display: flex;
1243
1302
  align-items: center;
1244
- height: calc(var(--row-height) - 1px);
1303
+ height: calc(var(--row-height) - 2px);
1245
1304
  color: #313238;
1246
1305
  }
1247
1306
  .bk-table .bk-table-head table thead th.active,
@@ -1258,49 +1317,39 @@
1258
1317
  .bk-table .bk-table-head table tbody tr td,
1259
1318
  .bk-table .bk-table-body table tbody tr td {
1260
1319
  background-color: #fff;
1320
+ border-top: 1px solid transparent;
1321
+ border-bottom: 1px solid transparent;
1322
+ border-right: 1px solid transparent;
1323
+ box-sizing: border-box;
1261
1324
  }
1262
1325
  .bk-table .bk-table-head table tbody tr td.empty-cell,
1263
1326
  .bk-table .bk-table-body table tbody tr td.empty-cell {
1264
1327
  padding-bottom: 30px;
1265
1328
  }
1266
- .bk-table .bk-table-head table tbody tr td.is-last,
1267
- .bk-table .bk-table-body table tbody tr td.is-last {
1268
- border-bottom: none;
1269
- }
1270
1329
  .bk-table .bk-table-head table tbody tr td .cell,
1271
1330
  .bk-table .bk-table-body table tbody tr td .cell {
1272
1331
  display: block;
1273
1332
  width: 100%;
1274
- height: 100%;
1275
- line-height: calc(var(--row-height) - 1px);
1333
+ line-height: calc(var(--row-height) - 2px);
1276
1334
  box-sizing: border-box;
1277
1335
  align-items: center;
1278
1336
  }
1279
1337
  .bk-table .bk-table-head table tbody tr td .cell.drag,
1280
1338
  .bk-table .bk-table-body table tbody tr td .cell.drag {
1281
- cursor: move;
1282
1339
  text-align: center;
1340
+ cursor: move;
1283
1341
  }
1284
1342
  .bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
1285
1343
  .bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
1286
1344
  background: #f5f7fa;
1287
1345
  }
1288
- .bk-table .bk-table-head table tbody tr.--drag-enter.--bottom,
1289
- .bk-table .bk-table-body table tbody tr.--drag-enter.--bottom {
1290
- border-bottom: solid 1px #3785ff;
1291
- }
1292
- .bk-table .bk-table-head table tbody tr.--drag-enter.--top,
1293
- .bk-table .bk-table-body table tbody tr.--drag-enter.--top {
1294
- border-top: solid 1px #3785ff;
1295
- }
1296
- .bk-table .bk-table-head table tbody tr.--drag-start,
1297
- .bk-table .bk-table-body table tbody tr.--drag-start {
1298
- background: #fff;
1346
+ .bk-table .bk-table-head table tbody tr.--drag-start td,
1347
+ .bk-table .bk-table-body table tbody tr.--drag-start td {
1348
+ background: #fff !important;
1299
1349
  }
1300
1350
  .bk-table .bk-table-head {
1301
1351
  position: relative;
1302
1352
  z-index: 2;
1303
- scrollbar-gutter: stable;
1304
1353
  overflow: hidden;
1305
1354
  background-color: var(--background-color);
1306
1355
  }
@@ -1343,6 +1392,7 @@
1343
1392
  width: 100%;
1344
1393
  height: var(--footer-height);
1345
1394
  align-items: center;
1395
+ padding: 0 16px 0 22px;
1346
1396
  }
1347
1397
  .bk-table .bk-table-footer.is-hidden {
1348
1398
  display: none;
@@ -1350,10 +1400,10 @@
1350
1400
  .bk-table.bordered-row .bk-table-head {
1351
1401
  border-bottom: 1px solid #dcdee5;
1352
1402
  }
1353
- .bk-table.bordered-row td {
1354
- border-bottom: 1px solid #dcdee5;
1403
+ .bk-table.bordered-row .bk-table-body tbody tr td {
1404
+ border-bottom-color: #dcdee5;
1355
1405
  }
1356
- .bk-table.bordered-row tr:last-child td {
1406
+ .bk-table.bordered-row .bk-table-body tbody tr:last-child td {
1357
1407
  border-bottom: none;
1358
1408
  }
1359
1409
  .bk-table.bordered-outer {
@@ -1374,14 +1424,18 @@
1374
1424
  .bk-table.bordered-horizontal .__is-empty .bk-table-body-content {
1375
1425
  border-bottom: 1px solid #dcdee5;
1376
1426
  }
1377
- .bk-table.bordered-col th,
1378
- .bk-table.bordered-col td {
1427
+ .bk-table.bordered-col th {
1379
1428
  border-right: 1px solid #dcdee5;
1380
1429
  }
1381
- .bk-table.bordered-col th:last-child,
1382
- .bk-table.bordered-col td:last-child {
1430
+ .bk-table.bordered-col th:last-child {
1383
1431
  border-right: none;
1384
1432
  }
1433
+ .bk-table.bordered-col .bk-table-body tbody tr td {
1434
+ border-right-color: #dcdee5;
1435
+ }
1436
+ .bk-table.bordered-col .bk-table-body tbody tr td:last-child {
1437
+ border-right-color: transparent;
1438
+ }
1385
1439
  .bk-table th,
1386
1440
  .bk-table td {
1387
1441
  border-right: 1px solid transparent;
@@ -157,6 +157,11 @@ declare const _default: import("vue").DefineComponent<{
157
157
  rowDraggable: import("vue-types").VueTypeDef<any> & {
158
158
  default: any;
159
159
  };
160
+ shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
161
+ default: boolean;
162
+ } & {
163
+ default: boolean;
164
+ };
160
165
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
161
166
  columnPick: (_cols: import("./props").IColumnActive[]) => boolean;
162
167
  columnFilter: (_args: {
@@ -398,6 +403,11 @@ declare const _default: import("vue").DefineComponent<{
398
403
  rowDraggable: import("vue-types").VueTypeDef<any> & {
399
404
  default: any;
400
405
  };
406
+ shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
407
+ default: boolean;
408
+ } & {
409
+ default: boolean;
410
+ };
401
411
  }>> & {
402
412
  onDragend?: (_args: {
403
413
  sourceEvent: DragEvent;
@@ -524,5 +534,6 @@ declare const _default: import("vue").DefineComponent<{
524
534
  prependStyle: import("vue").CSSProperties;
525
535
  isFlex: boolean;
526
536
  rowDraggable: any;
537
+ shiftMultiChecked: boolean;
527
538
  }, {}>;
528
539
  export default _default;