bkui-vue 0.0.2-beta.7 → 0.0.2-beta.70
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.
- package/dist/index.cjs.js +80 -72
- package/dist/index.esm.js +16503 -15864
- package/dist/index.umd.js +80 -72
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.d.ts +1 -1
- package/lib/affix/index.d.ts +4 -4
- package/lib/alert/alert.css +7 -0
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +16 -6
- package/lib/alert/alert.variable.css +7 -0
- package/lib/alert/index.d.ts +10 -10
- package/lib/animate-number/index.d.ts +1 -1
- package/lib/backtop/index.d.ts +1 -1
- package/lib/badge/badge.d.ts +2 -2
- package/lib/badge/index.d.ts +7 -7
- package/lib/breadcrumb/index.d.ts +2 -2
- package/lib/button/button.css +20 -0
- package/lib/button/button.less +105 -94
- package/lib/button/button.variable.css +20 -0
- package/lib/button/index.d.ts +2 -2
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +4 -4
- package/lib/cascader/cascader.d.ts +1 -0
- package/lib/cascader/index.d.ts +5 -2
- package/lib/cascader/index.js +1 -1
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +6 -3
- package/lib/checkbox/checkbox.d.ts +4 -4
- package/lib/checkbox/index.d.ts +22 -19
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/index.d.ts +1 -1
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse-transition/index.d.ts +128 -2
- package/lib/collapse-transition/index.js +1 -1
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/components/recommend-colors.d.ts +16 -0
- package/lib/color-picker/index.d.ts +19 -1
- package/lib/color-picker/index.js +1 -1
- package/lib/components.d.ts +1 -1
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/index.js +1 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/config-provider/use-global-config.d.ts +2 -0
- package/lib/config-provider/use-prefix.d.ts +2 -0
- package/lib/container/index.d.ts +2 -2
- package/lib/container/index.js +1 -1
- package/lib/date-picker/date-picker.d.ts +3 -1
- package/lib/date-picker/index.d.ts +12 -5
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +3 -2
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown/dropdown.css +1 -0
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/exception/index.d.ts +2 -2
- package/lib/fixed-navbar/index.d.ts +1 -1
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +1 -1
- package/lib/hooks.d.ts +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icon/assistant.d.ts +4 -0
- package/lib/icon/assistant.js +1 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image/index.js +1 -1
- package/lib/info-box/index.js +1 -1
- package/lib/input/index.d.ts +146 -50
- package/lib/input/index.js +2 -1
- package/lib/input/index.js.LICENSE.txt +1 -0
- package/lib/input/input.css +22 -6
- package/lib/input/input.d.ts +100 -11
- package/lib/input/input.less +37 -14
- package/lib/input/input.variable.css +22 -6
- package/lib/input/util.d.ts +6 -0
- package/lib/link/index.d.ts +4 -4
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +2 -2
- package/lib/locale/index.js +1 -1
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.d.ts +2 -2
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +18 -8
- package/lib/message/message.less +65 -53
- package/lib/message/message.variable.css +18 -8
- package/lib/message/messageConstructor.d.ts +30 -8
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +1 -1
- package/lib/navigation/index.d.ts +4 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.d.ts +1 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +257 -1
- package/lib/overflow-title/index.d.ts +387 -2
- package/lib/overflow-title/index.js +1 -1
- package/lib/overflow-title/props.d.ts +129 -0
- package/lib/pagination/index.d.ts +2 -2
- package/lib/plugin-popover/index.js +1 -1
- package/lib/pop-confirm/index.d.ts +1 -1
- package/lib/popover/const.d.ts +22 -9
- package/lib/popover/content.d.ts +33 -0
- package/lib/popover/index.d.ts +154 -61
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +1 -0
- package/lib/popover/popover.d.ts +64 -23
- package/lib/popover/popover.less +3 -2
- package/lib/popover/popover.variable.css +1 -0
- package/lib/popover/props.d.ts +29 -4
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -1
- package/lib/popover2/index.d.ts +1 -1
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.d.ts +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/radio/index.d.ts +23 -23
- package/lib/radio/radio-button.d.ts +4 -4
- package/lib/radio/radio-group.d.ts +4 -4
- package/lib/radio/radio.d.ts +4 -4
- package/lib/rate/index.d.ts +8 -4
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +2 -1
- package/lib/resize-layout/index.d.ts +4 -4
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.css +12 -0
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/resize-layout/resize-layout.less +12 -0
- package/lib/resize-layout/resize-layout.variable.css +12 -0
- package/lib/search-select/index.d.ts +62 -29
- package/lib/search-select/index.js +1 -1
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/menu.d.ts +33 -2
- package/lib/search-select/search-select.css +31 -11
- package/lib/search-select/search-select.d.ts +23 -20
- package/lib/search-select/search-select.less +29 -10
- package/lib/search-select/search-select.variable.css +31 -11
- package/lib/search-select/selected.d.ts +5 -1
- package/lib/search-select/utils.d.ts +13 -5
- package/lib/select/index.d.ts +180 -84
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +11 -0
- package/lib/select/select.css +9 -1
- package/lib/select/select.d.ts +75 -37
- package/lib/select/select.less +11 -1
- package/lib/select/select.variable.css +9 -1
- package/lib/select/selectTagInput.d.ts +8 -5
- package/lib/shared/helper.d.ts +1 -1
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +3 -4
- package/lib/shared/pop-manager.d.ts +6 -2
- package/lib/shared/popover.d.ts +2 -2
- package/lib/shared/vue-types.d.ts +3 -2
- package/lib/sideslider/index.d.ts +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/steps/index.js +1 -1
- package/lib/styles/mixins/popper.less +6 -5
- package/lib/swiper/index.d.ts +1 -1
- package/lib/swiper/index.js +1 -1
- package/lib/swiper/swiper.css +0 -6
- package/lib/swiper/swiper.less +0 -8
- package/lib/swiper/swiper.variable.css +0 -6
- package/lib/switcher/index.d.ts +30 -16
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.d.ts +74 -5
- package/lib/tab/index.d.ts +3 -3
- package/lib/tab/tab-nav.d.ts +12 -2
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/table/components/table-cell.d.ts +22 -15
- package/lib/table/components/table-column.d.ts +153 -219
- package/lib/table/const.d.ts +16 -54
- package/lib/table/events.d.ts +180 -0
- package/lib/table/index.d.ts +712 -425
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +3 -0
- package/lib/table/plugins/head-filter.d.ts +3 -7
- package/lib/table/plugins/head-filter.less +3 -0
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/head-sort.d.ts +3 -7
- package/lib/table/plugins/settings.d.ts +12 -26
- package/lib/table/plugins/use-column-resize.d.ts +1 -1
- package/lib/table/plugins/use-fixed-column.d.ts +3 -2
- package/lib/table/props.d.ts +200 -174
- package/lib/table/render.d.ts +6 -4
- package/lib/table/table.css +88 -5
- package/lib/table/table.d.ts +203 -90
- package/lib/table/table.less +79 -8
- package/lib/table/table.variable.css +88 -5
- package/lib/table/use-column.d.ts +51 -1
- package/lib/table/use-common.d.ts +21 -14
- package/lib/table/utils.d.ts +8 -12
- package/lib/table-column/index.d.ts +234 -527
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +10 -10
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/index.d.ts +49 -13
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.css +6 -1
- package/lib/tag-input/tag-input.d.ts +46 -10
- package/lib/tag-input/tag-input.less +9 -4
- package/lib/tag-input/tag-input.variable.css +6 -1
- package/lib/tag-input/tag-props.d.ts +16 -4
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/timeline/index.d.ts +1 -1
- package/lib/transfer/index.d.ts +1 -1
- package/lib/tree/constant.d.ts +2 -2
- package/lib/tree/index.d.ts +37 -7
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +8 -1
- package/lib/tree/tree.d.ts +20 -2
- package/lib/tree/use-node-action.d.ts +3 -2
- package/lib/tree/use-node-attribute.d.ts +15 -8
- package/lib/tree/use-tree-init.d.ts +1 -2
- package/lib/tree/util.d.ts +7 -2
- package/lib/upload/index.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +31 -1
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +11 -0
- package/lib/virtual-render/virtual-render.d.ts +18 -0
- package/lib/volar.components.d.ts +24 -24
- package/package.json +17 -16
package/lib/table/table.less
CHANGED
@@ -14,7 +14,16 @@
|
|
14
14
|
position: relative;
|
15
15
|
height: auto;
|
16
16
|
overflow: hidden;
|
17
|
-
|
17
|
+
|
18
|
+
&-flex {
|
19
|
+
display: flex;
|
20
|
+
flex-direction: column;
|
21
|
+
max-height: 100%;
|
22
|
+
.@{bk-prefix}-table-body {
|
23
|
+
flex: 1;
|
24
|
+
overflow: auto;
|
25
|
+
}
|
26
|
+
}
|
18
27
|
|
19
28
|
&.has-scroll-y {
|
20
29
|
.@{bk-prefix}-table-head {
|
@@ -27,7 +36,7 @@
|
|
27
36
|
overflow: auto;
|
28
37
|
|
29
38
|
&::-webkit-scrollbar {
|
30
|
-
width:
|
39
|
+
width: 5px;
|
31
40
|
height: 6px;
|
32
41
|
}
|
33
42
|
|
@@ -42,6 +51,26 @@
|
|
42
51
|
}
|
43
52
|
}
|
44
53
|
|
54
|
+
.@{bk-prefix}-table-body-content {
|
55
|
+
&.@{bk-prefix}-stripe {
|
56
|
+
table {
|
57
|
+
tbody {
|
58
|
+
tr {
|
59
|
+
&:nth-child(even) {
|
60
|
+
td {
|
61
|
+
background-color: #FAFBFD;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
td {
|
66
|
+
border-bottom: none;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
45
74
|
.@{bk-prefix}-fixed-bottom-border {
|
46
75
|
position: sticky;
|
47
76
|
bottom: 0;
|
@@ -61,8 +90,8 @@
|
|
61
90
|
background: @table-bg-color;
|
62
91
|
|
63
92
|
&::-webkit-scrollbar {
|
64
|
-
width:
|
65
|
-
height:
|
93
|
+
width: 5px;
|
94
|
+
height: 5px;
|
66
95
|
}
|
67
96
|
|
68
97
|
&::-webkit-scrollbar-thumb {
|
@@ -82,6 +111,7 @@
|
|
82
111
|
width: 100%;
|
83
112
|
height: 100%;
|
84
113
|
padding-bottom: 20px;
|
114
|
+
position: relative;
|
85
115
|
}
|
86
116
|
|
87
117
|
}
|
@@ -116,6 +146,11 @@
|
|
116
146
|
cursor: pointer;
|
117
147
|
}
|
118
148
|
|
149
|
+
&.explain {
|
150
|
+
text-decoration-style: dashed;
|
151
|
+
text-decoration-line: underline;
|
152
|
+
}
|
153
|
+
|
119
154
|
.head-text {
|
120
155
|
overflow: hidden;
|
121
156
|
text-overflow: ellipsis;
|
@@ -147,7 +182,6 @@
|
|
147
182
|
&.column_fixed {
|
148
183
|
position: sticky;
|
149
184
|
z-index: 1;
|
150
|
-
background: #fff;
|
151
185
|
|
152
186
|
&.column_fixed_left {
|
153
187
|
left: 0;
|
@@ -194,7 +228,23 @@
|
|
194
228
|
|
195
229
|
th {
|
196
230
|
font-weight: 400;
|
197
|
-
|
231
|
+
background-color: var(--background-color);
|
232
|
+
position: relative;
|
233
|
+
|
234
|
+
&.col-resize-hover {
|
235
|
+
&::after {
|
236
|
+
content: '';
|
237
|
+
position: absolute;
|
238
|
+
right: 0;
|
239
|
+
top: 0;
|
240
|
+
bottom: 0;
|
241
|
+
width: 6px;
|
242
|
+
transform: translateX(50%);
|
243
|
+
background-color: #3785FF;
|
244
|
+
z-index: 1;
|
245
|
+
pointer-events: none;
|
246
|
+
}
|
247
|
+
}
|
198
248
|
.cell {
|
199
249
|
display: flex;
|
200
250
|
align-items: center;
|
@@ -205,6 +255,7 @@
|
|
205
255
|
&.active,
|
206
256
|
&:hover {
|
207
257
|
background: @table-row-active-bg-color;
|
258
|
+
cursor: pointer;
|
208
259
|
}
|
209
260
|
|
210
261
|
&.column_fixed {
|
@@ -216,6 +267,8 @@
|
|
216
267
|
tbody {
|
217
268
|
tr {
|
218
269
|
td {
|
270
|
+
background-color: #fff;
|
271
|
+
|
219
272
|
&.empty-cell {
|
220
273
|
padding-bottom: 30px;
|
221
274
|
}
|
@@ -252,6 +305,17 @@
|
|
252
305
|
position: relative;
|
253
306
|
transform: translateX(var(--scroll-head-left));
|
254
307
|
|
308
|
+
.col-resize-drag {
|
309
|
+
position: absolute;
|
310
|
+
right: 0;
|
311
|
+
top: 0;
|
312
|
+
bottom: 0;
|
313
|
+
width: 6px;
|
314
|
+
transform: translateX(-50%);
|
315
|
+
background-color: #3785FF;
|
316
|
+
z-index: 1;
|
317
|
+
}
|
318
|
+
|
255
319
|
.table-head-settings {
|
256
320
|
position: absolute;
|
257
321
|
top: 0;
|
@@ -282,7 +346,9 @@
|
|
282
346
|
|
283
347
|
.@{bk-prefix}-table-footer {
|
284
348
|
height: var(--footer-height);
|
285
|
-
|
349
|
+
width: 100%;
|
350
|
+
display: flex;
|
351
|
+
align-items: center;
|
286
352
|
|
287
353
|
&.is-hidden {
|
288
354
|
display: none;
|
@@ -359,8 +425,9 @@
|
|
359
425
|
top: 0;
|
360
426
|
right: 0;
|
361
427
|
bottom: var(--footer-height);
|
428
|
+
max-height: var(--fix-max-height);
|
362
429
|
left: 0;
|
363
|
-
|
430
|
+
height: var(--fix-height);
|
364
431
|
pointer-events: none;
|
365
432
|
|
366
433
|
.column_fixed {
|
@@ -415,4 +482,8 @@
|
|
415
482
|
margin-left: auto;
|
416
483
|
}
|
417
484
|
}
|
485
|
+
|
486
|
+
.stripe-row {
|
487
|
+
background: #FAFBFD;
|
488
|
+
}
|
418
489
|
}
|
@@ -300,6 +300,11 @@
|
|
300
300
|
border-color: #5594fa;
|
301
301
|
color: white;
|
302
302
|
}
|
303
|
+
.bk-button.bk-button-primary.is-outline:active {
|
304
|
+
background-color: #2c77f4;
|
305
|
+
border-color: #2c77f4;
|
306
|
+
color: white;
|
307
|
+
}
|
303
308
|
.bk-button.bk-button-primary.is-text {
|
304
309
|
color: #3a84ff;
|
305
310
|
background-color: transparent;
|
@@ -346,6 +351,11 @@
|
|
346
351
|
border-color: #ffb848;
|
347
352
|
color: white;
|
348
353
|
}
|
354
|
+
.bk-button.bk-button-warning.is-outline:active {
|
355
|
+
background-color: #eb9000;
|
356
|
+
border-color: #eb9000;
|
357
|
+
color: white;
|
358
|
+
}
|
349
359
|
.bk-button.bk-button-warning.is-text {
|
350
360
|
color: #ff9c01;
|
351
361
|
background-color: transparent;
|
@@ -392,6 +402,11 @@
|
|
392
402
|
border-color: #45e35f;
|
393
403
|
color: white;
|
394
404
|
}
|
405
|
+
.bk-button.bk-button-success.is-outline:active {
|
406
|
+
background-color: #1ab943;
|
407
|
+
border-color: #1ab943;
|
408
|
+
color: white;
|
409
|
+
}
|
395
410
|
.bk-button.bk-button-success.is-text {
|
396
411
|
color: #2dcb56;
|
397
412
|
background-color: transparent;
|
@@ -438,6 +453,11 @@
|
|
438
453
|
border-color: #ff5656;
|
439
454
|
color: white;
|
440
455
|
}
|
456
|
+
.bk-button.bk-button-danger.is-outline:active {
|
457
|
+
background-color: #db2626;
|
458
|
+
border-color: #db2626;
|
459
|
+
color: white;
|
460
|
+
}
|
441
461
|
.bk-button.bk-button-danger.is-text {
|
442
462
|
color: #ea3636;
|
443
463
|
background-color: transparent;
|
@@ -832,6 +852,7 @@
|
|
832
852
|
}
|
833
853
|
.bk-popover.bk-pop2-content .bk-pop2-arrow {
|
834
854
|
position: absolute;
|
855
|
+
z-index: -1;
|
835
856
|
width: 8px;
|
836
857
|
height: 8px;
|
837
858
|
background: #333;
|
@@ -854,6 +875,9 @@
|
|
854
875
|
cursor: pointer;
|
855
876
|
align-items: center;
|
856
877
|
}
|
878
|
+
.bk-table-head-action:last-of-type {
|
879
|
+
margin-right: -10px;
|
880
|
+
}
|
857
881
|
.bk-table-head-action.active {
|
858
882
|
color: #3a84ff;
|
859
883
|
}
|
@@ -1107,6 +1131,15 @@
|
|
1107
1131
|
height: auto;
|
1108
1132
|
overflow: hidden;
|
1109
1133
|
}
|
1134
|
+
.bk-table-flex {
|
1135
|
+
display: flex;
|
1136
|
+
flex-direction: column;
|
1137
|
+
max-height: 100%;
|
1138
|
+
}
|
1139
|
+
.bk-table-flex .bk-table-body {
|
1140
|
+
flex: 1;
|
1141
|
+
overflow: auto;
|
1142
|
+
}
|
1110
1143
|
.bk-table.has-scroll-y .bk-table-head {
|
1111
1144
|
padding-right: 4px;
|
1112
1145
|
}
|
@@ -1115,7 +1148,7 @@
|
|
1115
1148
|
overflow: auto;
|
1116
1149
|
}
|
1117
1150
|
.bk-table .bk-table-body::-webkit-scrollbar {
|
1118
|
-
width:
|
1151
|
+
width: 5px;
|
1119
1152
|
height: 6px;
|
1120
1153
|
}
|
1121
1154
|
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
@@ -1126,6 +1159,12 @@
|
|
1126
1159
|
.bk-table .bk-table-body .prepend-row {
|
1127
1160
|
transform: translateX(var(--prepend-left));
|
1128
1161
|
}
|
1162
|
+
.bk-table .bk-table-body-content.bk-stripe table tbody tr:nth-child(even) td {
|
1163
|
+
background-color: #FAFBFD;
|
1164
|
+
}
|
1165
|
+
.bk-table .bk-table-body-content.bk-stripe table tbody tr td {
|
1166
|
+
border-bottom: none;
|
1167
|
+
}
|
1129
1168
|
.bk-table .bk-fixed-bottom-border {
|
1130
1169
|
position: sticky;
|
1131
1170
|
bottom: 0;
|
@@ -1144,8 +1183,8 @@
|
|
1144
1183
|
}
|
1145
1184
|
.bk-table .bk-table-head::-webkit-scrollbar,
|
1146
1185
|
.bk-table .bk-table-body::-webkit-scrollbar {
|
1147
|
-
width:
|
1148
|
-
height:
|
1186
|
+
width: 5px;
|
1187
|
+
height: 5px;
|
1149
1188
|
}
|
1150
1189
|
.bk-table .bk-table-head::-webkit-scrollbar-thumb,
|
1151
1190
|
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
@@ -1166,6 +1205,7 @@
|
|
1166
1205
|
width: 100%;
|
1167
1206
|
height: 100%;
|
1168
1207
|
padding-bottom: 20px;
|
1208
|
+
position: relative;
|
1169
1209
|
}
|
1170
1210
|
.bk-table .bk-table-head table,
|
1171
1211
|
.bk-table .bk-table-body table {
|
@@ -1205,6 +1245,13 @@
|
|
1205
1245
|
.bk-table .bk-table-body table td .cell.has-sort {
|
1206
1246
|
cursor: pointer;
|
1207
1247
|
}
|
1248
|
+
.bk-table .bk-table-head table th .cell.explain,
|
1249
|
+
.bk-table .bk-table-body table th .cell.explain,
|
1250
|
+
.bk-table .bk-table-head table td .cell.explain,
|
1251
|
+
.bk-table .bk-table-body table td .cell.explain {
|
1252
|
+
text-decoration-style: dashed;
|
1253
|
+
text-decoration-line: underline;
|
1254
|
+
}
|
1208
1255
|
.bk-table .bk-table-head table th .cell .head-text,
|
1209
1256
|
.bk-table .bk-table-body table th .cell .head-text,
|
1210
1257
|
.bk-table .bk-table-head table td .cell .head-text,
|
@@ -1245,7 +1292,6 @@
|
|
1245
1292
|
.bk-table .bk-table-body table td.column_fixed {
|
1246
1293
|
position: sticky;
|
1247
1294
|
z-index: 1;
|
1248
|
-
background: #fff;
|
1249
1295
|
}
|
1250
1296
|
.bk-table .bk-table-head table th.column_fixed.column_fixed_left,
|
1251
1297
|
.bk-table .bk-table-body table th.column_fixed.column_fixed_left,
|
@@ -1296,6 +1342,21 @@
|
|
1296
1342
|
.bk-table .bk-table-head table thead th,
|
1297
1343
|
.bk-table .bk-table-body table thead th {
|
1298
1344
|
font-weight: 400;
|
1345
|
+
background-color: var(--background-color);
|
1346
|
+
position: relative;
|
1347
|
+
}
|
1348
|
+
.bk-table .bk-table-head table thead th.col-resize-hover::after,
|
1349
|
+
.bk-table .bk-table-body table thead th.col-resize-hover::after {
|
1350
|
+
content: '';
|
1351
|
+
position: absolute;
|
1352
|
+
right: 0;
|
1353
|
+
top: 0;
|
1354
|
+
bottom: 0;
|
1355
|
+
width: 6px;
|
1356
|
+
transform: translateX(50%);
|
1357
|
+
background-color: #3785FF;
|
1358
|
+
z-index: 1;
|
1359
|
+
pointer-events: none;
|
1299
1360
|
}
|
1300
1361
|
.bk-table .bk-table-head table thead th .cell,
|
1301
1362
|
.bk-table .bk-table-body table thead th .cell {
|
@@ -1309,11 +1370,16 @@
|
|
1309
1370
|
.bk-table .bk-table-head table thead th:hover,
|
1310
1371
|
.bk-table .bk-table-body table thead th:hover {
|
1311
1372
|
background: #f0f1f5;
|
1373
|
+
cursor: pointer;
|
1312
1374
|
}
|
1313
1375
|
.bk-table .bk-table-head table thead th.column_fixed,
|
1314
1376
|
.bk-table .bk-table-body table thead th.column_fixed {
|
1315
1377
|
transform: translateX(var(--scroll-left));
|
1316
1378
|
}
|
1379
|
+
.bk-table .bk-table-head table tbody tr td,
|
1380
|
+
.bk-table .bk-table-body table tbody tr td {
|
1381
|
+
background-color: #fff;
|
1382
|
+
}
|
1317
1383
|
.bk-table .bk-table-head table tbody tr td.empty-cell,
|
1318
1384
|
.bk-table .bk-table-body table tbody tr td.empty-cell {
|
1319
1385
|
padding-bottom: 30px;
|
@@ -1339,6 +1405,16 @@
|
|
1339
1405
|
position: relative;
|
1340
1406
|
transform: translateX(var(--scroll-head-left));
|
1341
1407
|
}
|
1408
|
+
.bk-table .bk-table-head .col-resize-drag {
|
1409
|
+
position: absolute;
|
1410
|
+
right: 0;
|
1411
|
+
top: 0;
|
1412
|
+
bottom: 0;
|
1413
|
+
width: 6px;
|
1414
|
+
transform: translateX(-50%);
|
1415
|
+
background-color: #3785FF;
|
1416
|
+
z-index: 1;
|
1417
|
+
}
|
1342
1418
|
.bk-table .bk-table-head .table-head-settings {
|
1343
1419
|
position: absolute;
|
1344
1420
|
top: 0;
|
@@ -1364,7 +1440,9 @@
|
|
1364
1440
|
}
|
1365
1441
|
.bk-table .bk-table-footer {
|
1366
1442
|
height: var(--footer-height);
|
1367
|
-
|
1443
|
+
width: 100%;
|
1444
|
+
display: flex;
|
1445
|
+
align-items: center;
|
1368
1446
|
}
|
1369
1447
|
.bk-table .bk-table-footer.is-hidden {
|
1370
1448
|
display: none;
|
@@ -1414,7 +1492,9 @@
|
|
1414
1492
|
top: 0;
|
1415
1493
|
right: 0;
|
1416
1494
|
bottom: var(--footer-height);
|
1495
|
+
max-height: var(--fix-max-height);
|
1417
1496
|
left: 0;
|
1497
|
+
height: var(--fix-height);
|
1418
1498
|
pointer-events: none;
|
1419
1499
|
}
|
1420
1500
|
.bk-table .bk-table-fixed .column_fixed {
|
@@ -1453,3 +1533,6 @@
|
|
1453
1533
|
.bk-table .bk-pagination .is-last {
|
1454
1534
|
margin-left: auto;
|
1455
1535
|
}
|
1536
|
+
.bk-table .stripe-row {
|
1537
|
+
background: #FAFBFD;
|
1538
|
+
}
|
@@ -7,6 +7,56 @@ import { TablePropTypes } from './props';
|
|
7
7
|
*/
|
8
8
|
declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) => {
|
9
9
|
initColumns: (column: ITableColumn | ITableColumn[], remove?: boolean) => void;
|
10
|
-
getColumns: () => import("./props").Column[]
|
10
|
+
getColumns: () => import("./props").Column[] | Partial<import("vue").ExtractPropTypes<{
|
11
|
+
label: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
|
12
|
+
field: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
|
13
|
+
render: import("vue-types").VueTypeDef<import("./props").RenderFunctionString>;
|
14
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
15
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
16
|
+
default: string | number;
|
17
|
+
};
|
18
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
19
|
+
default: string;
|
20
|
+
} & {
|
21
|
+
default: string;
|
22
|
+
};
|
23
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp>;
|
24
|
+
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
25
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
26
|
+
default: boolean;
|
27
|
+
} & {
|
28
|
+
default: boolean;
|
29
|
+
};
|
30
|
+
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
31
|
+
default: boolean | "right" | "left";
|
32
|
+
};
|
33
|
+
sort: import("vue-types").VueTypeDef<import("./props").ISortPropShape>;
|
34
|
+
filter: import("vue-types").VueTypeDef<import("./props").IFilterPropShape>;
|
35
|
+
colspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
|
36
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
37
|
+
column: any;
|
38
|
+
colIndex: any;
|
39
|
+
row: any;
|
40
|
+
rowIndex: any;
|
41
|
+
}) => number) | (() => Number);
|
42
|
+
};
|
43
|
+
rowspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
|
44
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
45
|
+
column: any;
|
46
|
+
colIndex: any;
|
47
|
+
row: any;
|
48
|
+
rowIndex: any;
|
49
|
+
}) => number) | (() => Number);
|
50
|
+
};
|
51
|
+
align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
|
52
|
+
className: import("vue-types").VueTypeDef<import("./props").RowClassFunctionString>;
|
53
|
+
prop: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
|
54
|
+
index: import("vue-types").VueTypeValidableDef<number> & {
|
55
|
+
default: number;
|
56
|
+
} & {
|
57
|
+
default: number;
|
58
|
+
};
|
59
|
+
}>>[];
|
60
|
+
getActiveColumn: () => any;
|
11
61
|
};
|
12
62
|
export default _default;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { ITableColumn } from './components/table-column';
|
2
|
+
import { Colgroups, Settings, TablePropTypes } from './props';
|
2
3
|
/**
|
3
4
|
* 渲染class settings
|
4
5
|
* @param props: TablePropTypes
|
@@ -7,7 +8,7 @@ import { Colgroups, Column, Settings, TablePropTypes } from './props';
|
|
7
8
|
* @param reactiveProp 组件内部定义的响应式对象
|
8
9
|
* @param pageData 当前页数据
|
9
10
|
*/
|
10
|
-
export declare const useClass: (props: TablePropTypes, targetColumns:
|
11
|
+
export declare const useClass: (props: TablePropTypes, targetColumns: ITableColumn[], root?: any, reactiveProp?: any, pageData?: any[]) => {
|
11
12
|
tableClass: import("vue").ComputedRef<string>;
|
12
13
|
headClass: string;
|
13
14
|
contentClass: {
|
@@ -21,16 +22,18 @@ export declare const useClass: (props: TablePropTypes, targetColumns: Column[],
|
|
21
22
|
height: string;
|
22
23
|
}>;
|
23
24
|
contentStyle: {
|
24
|
-
display: string;
|
25
|
-
|
26
|
-
height: string;
|
27
|
-
maxHeight: string;
|
25
|
+
display: string | boolean;
|
26
|
+
minHeight: string | number;
|
27
|
+
height: string | number;
|
28
|
+
maxHeight: string | number;
|
28
29
|
};
|
29
30
|
headStyle: import("vue").ComputedRef<{
|
30
31
|
'--row-height': string;
|
31
32
|
'--scroll-head-left': string;
|
32
33
|
'--scroll-left': string;
|
33
34
|
}>;
|
35
|
+
fixHeight: import("vue").Ref<number>;
|
36
|
+
maxFixHeight: import("vue").Ref<number>;
|
34
37
|
resetTableHeight: (rootEl: HTMLElement) => void;
|
35
38
|
updateBorderClass: (root: HTMLElement) => void;
|
36
39
|
getColumnsWidthOffsetWidth: () => number;
|
@@ -43,7 +46,7 @@ export declare const useClass: (props: TablePropTypes, targetColumns: Column[],
|
|
43
46
|
* @param props: TablePropTypes
|
44
47
|
* @param targetColumns 解析之后的column配置(主要用来处理通过<bk-column>配置的数据结构)
|
45
48
|
*/
|
46
|
-
export declare const useInit: (props: TablePropTypes, targetColumns:
|
49
|
+
export declare const useInit: (props: TablePropTypes, targetColumns: ITableColumn[]) => {
|
47
50
|
colgroups: Colgroups[];
|
48
51
|
dragOffsetXStyle: import("vue").ComputedRef<{
|
49
52
|
readonly position: "absolute";
|
@@ -51,7 +54,7 @@ export declare const useInit: (props: TablePropTypes, targetColumns: Column[]) =
|
|
51
54
|
readonly bottom: 0;
|
52
55
|
readonly left: 0;
|
53
56
|
readonly width: "1px";
|
54
|
-
readonly 'background-color': "#
|
57
|
+
readonly 'background-color': "#3785FF";
|
55
58
|
}>;
|
56
59
|
dragOffsetX: import("vue").Ref<number>;
|
57
60
|
reactiveSchema: {
|
@@ -63,20 +66,22 @@ export declare const useInit: (props: TablePropTypes, targetColumns: Column[]) =
|
|
63
66
|
};
|
64
67
|
activeColumns: any[];
|
65
68
|
settings: boolean | {
|
66
|
-
fields
|
69
|
+
fields?: {
|
67
70
|
label: string;
|
68
71
|
field?: string;
|
69
72
|
disabled?: boolean;
|
73
|
+
id?: string;
|
74
|
+
name?: string;
|
70
75
|
}[];
|
71
|
-
checked
|
72
|
-
limit
|
73
|
-
size
|
74
|
-
sizeList
|
76
|
+
checked?: string[];
|
77
|
+
limit?: number;
|
78
|
+
size?: string;
|
79
|
+
sizeList?: {
|
75
80
|
value?: string;
|
76
81
|
label?: string;
|
77
82
|
height?: number;
|
78
83
|
}[];
|
79
|
-
showLineHeight
|
84
|
+
showLineHeight?: boolean;
|
80
85
|
};
|
81
86
|
setting: {
|
82
87
|
size: string;
|
@@ -93,6 +98,7 @@ export declare const useInit: (props: TablePropTypes, targetColumns: Column[]) =
|
|
93
98
|
}[]>;
|
94
99
|
resolveColumnStyle: (colPos: string) => {
|
95
100
|
width: string;
|
101
|
+
backgroundColor: string;
|
96
102
|
bottom: string;
|
97
103
|
};
|
98
104
|
resolveColumnClass: (column: import("./props").GroupColumn, scrollX?: any, offsetRight?: any) => {
|
@@ -104,6 +110,7 @@ export declare const useInit: (props: TablePropTypes, targetColumns: Column[]) =
|
|
104
110
|
initIndexData: (keepLocalAction?: boolean) => void;
|
105
111
|
updateIndexData: (selectedAll?: boolean) => void;
|
106
112
|
setRowExpand: (row: any, expand?: any) => void;
|
113
|
+
setAllRowExpand: (expand?: any) => void;
|
107
114
|
updateColGroups: (settings?: Settings) => void;
|
108
115
|
clearSelection: () => void;
|
109
116
|
toggleAllSelection: (checked?: any) => void;
|
package/lib/table/utils.d.ts
CHANGED
@@ -79,19 +79,15 @@ export declare const isPercentPixOrNumber: (val: string | number) => boolean;
|
|
79
79
|
export declare const resolveHeadConfig: (props: TablePropTypes) => {
|
80
80
|
isShow: boolean;
|
81
81
|
height: number;
|
82
|
-
} &
|
83
|
-
height?: Number;
|
84
|
-
isShow?: boolean;
|
85
|
-
cellFn?: Function;
|
86
|
-
};
|
82
|
+
} & import("./props").Thead;
|
87
83
|
/**
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
84
|
+
* 获取当前行指定列的内容
|
85
|
+
* @param row 当前行
|
86
|
+
* @param key 指定列名
|
87
|
+
* @param column 列配置
|
88
|
+
* @param index 当前行Index
|
89
|
+
* @returns
|
90
|
+
*/
|
95
91
|
export declare const getRowText: (row: any, key: string, column: Column) => any;
|
96
92
|
/**
|
97
93
|
* 格式化prop配置为标准数组格式
|