bkui-vue 0.0.1-beta.60 → 0.0.1-beta.63
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 +30 -30
- package/dist/index.esm.js +1736 -452
- package/dist/index.umd.js +29 -29
- package/dist/style.css +1 -1
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +102 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.variable.css +5 -0
- package/lib/alert/index.js +1 -1
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +5 -0
- package/lib/backtop/index.d.ts +4 -4
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/badge.variable.css +5 -0
- package/lib/badge/index.d.ts +4 -4
- package/lib/breadcrumb/breadcrumb.variable.css +5 -0
- package/lib/button/button.css +2 -1
- package/lib/button/button.less +9 -8
- package/lib/button/button.variable.css +7 -1
- package/lib/button/index.js +1 -1
- package/lib/card/card.variable.css +5 -0
- package/lib/cascader/cascader-panel.d.ts +48 -0
- package/lib/cascader/cascader.css +130 -0
- package/lib/cascader/cascader.d.ts +271 -0
- package/lib/cascader/cascader.less +146 -0
- package/lib/cascader/cascader.variable.css +229 -0
- package/lib/cascader/index.d.ts +721 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +44 -0
- package/lib/cascader/node.d.ts +24 -0
- package/lib/cascader/store.d.ts +15 -0
- package/lib/checkbox/checkbox.css +3 -2
- package/lib/checkbox/checkbox.less +3 -2
- package/lib/checkbox/checkbox.variable.css +8 -2
- package/lib/code-diff/code-diff.variable.css +5 -0
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse.css +17 -1
- package/lib/collapse/collapse.d.ts +11 -14
- package/lib/collapse/collapse.less +24 -2
- package/lib/collapse/collapse.variable.css +116 -1
- package/lib/collapse/index.d.ts +31 -15
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/components.d.ts +12 -9
- package/lib/components.js +1 -1
- package/lib/container/container.variable.css +5 -0
- package/lib/container/index.js +1 -1
- package/lib/date-picker/date-picker.css +1 -0
- package/lib/date-picker/date-picker.d.ts +20 -3
- package/lib/date-picker/date-picker.less +1 -0
- package/lib/date-picker/date-picker.variable.css +6 -0
- package/lib/date-picker/index.d.ts +47 -10
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/props.d.ts +7 -0
- package/lib/dialog/dialog.css +10 -1
- package/lib/dialog/dialog.d.ts +75 -8
- package/lib/dialog/dialog.variable.css +10 -1
- package/lib/dialog/index.d.ts +166 -25
- package/lib/dialog/index.js +1 -1
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/divider.variable.css +5 -0
- package/lib/divider/index.d.ts +4 -4
- package/lib/dropdown/dropdown.css +4 -0
- package/lib/dropdown/dropdown.less +5 -0
- package/lib/dropdown/dropdown.variable.css +9 -0
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.variable.css +5 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +17 -3
- package/lib/fixed-navbar/fixed-navbar.variable.css +5 -0
- package/lib/fixed-navbar/index.d.ts +43 -8
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/form.css +4 -0
- package/lib/form/form.d.ts +5 -2
- package/lib/form/form.less +4 -0
- package/lib/form/form.variable.css +9 -0
- package/lib/form/index.d.ts +19 -8
- package/lib/form/index.js +1 -1
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/index.d.ts +12 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/input/index.d.ts +8 -8
- package/lib/input/input.css +3 -0
- package/lib/input/input.d.ts +2 -2
- package/lib/input/input.less +3 -0
- package/lib/input/input.variable.css +8 -0
- package/lib/link/index.d.ts +4 -4
- package/lib/link/link.d.ts +1 -1
- package/lib/link/link.variable.css +5 -0
- package/lib/loading/loading.variable.css +5 -0
- package/lib/menu/menu.variable.css +5 -0
- package/lib/menu/submenu.variable.css +5 -0
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +4 -4
- package/lib/message/message.less +4 -4
- package/lib/message/message.variable.css +9 -4
- package/lib/modal/index.d.ts +277 -24
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +10 -1
- package/lib/modal/modal.d.ts +108 -9
- package/lib/modal/modal.less +15 -4
- package/lib/modal/modal.variable.css +10 -1
- package/lib/modal/props.mixin.d.ts +47 -3
- package/lib/navigation/index.d.ts +291 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.variable.css +5 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +17 -1
- package/lib/notify/notify.less +19 -1
- package/lib/notify/notify.variable.css +22 -1
- package/lib/notify/notifyConstructor.d.ts +49 -5
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/pagination/pagination.variable.css +5 -0
- package/lib/popover/index.d.ts +57 -11
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +26 -4
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +8 -0
- package/lib/popover/props.d.ts +11 -1
- package/lib/process/process.variable.css +5 -0
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress/progress.variable.css +5 -0
- package/lib/radio/radio.css +6 -6
- package/lib/radio/radio.less +7 -7
- package/lib/radio/radio.variable.css +12 -7
- package/lib/resize-layout/resize-layout.variable.css +5 -0
- package/lib/select/select.variable.css +5 -0
- package/lib/shared/index.d.ts +18 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +3 -2
- package/lib/shared/pop-manager.d.ts +3 -2
- package/lib/shared/popover.d.ts +3 -0
- package/lib/sideslider/index.d.ts +227 -33
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +48 -3
- package/lib/sideslider/sideslider.d.ts +103 -12
- package/lib/sideslider/sideslider.less +65 -6
- package/lib/sideslider/sideslider.variable.css +53 -3
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider.variable.css +5 -0
- package/lib/steps/steps.variable.css +5 -0
- package/lib/styles/index.d.ts +3 -0
- package/lib/styles/themes/themes.less +7 -0
- package/lib/switcher/switcher.variable.css +5 -0
- package/lib/tab/index.d.ts +6 -6
- package/lib/tab/tab-panel.d.ts +2 -2
- package/lib/tab/tab.d.ts +1 -1
- package/lib/tab/tab.variable.css +5 -0
- package/lib/table/index.d.ts +4 -4
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.variable.css +5 -0
- package/lib/table/plugins/head-sort.variable.css +5 -0
- package/lib/table/plugins/settings.variable.css +5 -0
- package/lib/table/props.d.ts +4 -0
- package/lib/table/render.d.ts +1 -0
- package/lib/table/table.css +55 -2
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +53 -2
- package/lib/table/table.variable.css +60 -2
- package/lib/table/use-common.d.ts +5 -3
- package/lib/table/utils.d.ts +10 -0
- package/lib/tag/index.d.ts +3 -3
- package/lib/tag/tag.d.ts +1 -1
- package/lib/tag/tag.variable.css +5 -0
- package/lib/tag-input/index.d.ts +893 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.d.ts +1 -1
- package/lib/tag-input/tag-input.variable.css +5 -0
- package/lib/timeline/timeline.variable.css +5 -0
- package/lib/transfer/transfer.variable.css +5 -0
- package/lib/tree/constant.d.ts +22 -0
- package/lib/tree/index.d.ts +54 -8
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +19 -0
- package/lib/tree/tree.css +4 -1
- package/lib/tree/tree.d.ts +23 -4
- package/lib/tree/tree.less +4 -1
- package/lib/tree/tree.variable.css +9 -1
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +2 -1
- package/lib/tree/use-node-attribute.d.ts +2 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +46 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +374 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +455 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +473 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +27 -4
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +10 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.d.ts +14 -3
- package/package.json +2 -2
package/lib/table/table.css
CHANGED
@@ -199,14 +199,19 @@
|
|
199
199
|
align-items: center;
|
200
200
|
}
|
201
201
|
.bk-table {
|
202
|
+
position: relative;
|
202
203
|
height: auto;
|
203
204
|
overflow: hidden;
|
204
205
|
border-top: 1px solid #dcdee5;
|
205
206
|
border-bottom: 1px solid #dcdee5;
|
206
207
|
}
|
207
208
|
.bk-table .bk-table-body {
|
209
|
+
position: relative;
|
208
210
|
overflow: auto;
|
209
211
|
}
|
212
|
+
.bk-table .bk-table-body::-webkit-scrollbar {
|
213
|
+
height: 6px;
|
214
|
+
}
|
210
215
|
.bk-table .bk-table-head,
|
211
216
|
.bk-table .bk-table-body {
|
212
217
|
background: white;
|
@@ -222,6 +227,8 @@
|
|
222
227
|
.bk-table .bk-table-head table td,
|
223
228
|
.bk-table .bk-table-body table td {
|
224
229
|
min-width: 80px;
|
230
|
+
padding: 0 15px;
|
231
|
+
clear: both;
|
225
232
|
}
|
226
233
|
.bk-table .bk-table-head table th .cell,
|
227
234
|
.bk-table .bk-table-body table th .cell,
|
@@ -229,7 +236,6 @@
|
|
229
236
|
.bk-table .bk-table-body table td .cell {
|
230
237
|
display: flex;
|
231
238
|
align-items: center;
|
232
|
-
padding: 0 15px;
|
233
239
|
overflow: hidden;
|
234
240
|
line-height: var(--row-height);
|
235
241
|
color: #575961;
|
@@ -237,8 +243,28 @@
|
|
237
243
|
text-overflow: ellipsis;
|
238
244
|
white-space: nowrap;
|
239
245
|
}
|
246
|
+
.bk-table .bk-table-head table th.column_fixed,
|
247
|
+
.bk-table .bk-table-body table th.column_fixed,
|
248
|
+
.bk-table .bk-table-head table td.column_fixed,
|
249
|
+
.bk-table .bk-table-body table td.column_fixed {
|
250
|
+
position: sticky;
|
251
|
+
background: #fff;
|
252
|
+
}
|
253
|
+
.bk-table .bk-table-head table th.column_fixed.column_fixed_left,
|
254
|
+
.bk-table .bk-table-body table th.column_fixed.column_fixed_left,
|
255
|
+
.bk-table .bk-table-head table td.column_fixed.column_fixed_left,
|
256
|
+
.bk-table .bk-table-body table td.column_fixed.column_fixed_left {
|
257
|
+
left: 0;
|
258
|
+
}
|
259
|
+
.bk-table .bk-table-head table th.column_fixed.column_fixed_right,
|
260
|
+
.bk-table .bk-table-body table th.column_fixed.column_fixed_right,
|
261
|
+
.bk-table .bk-table-head table td.column_fixed.column_fixed_right,
|
262
|
+
.bk-table .bk-table-body table td.column_fixed.column_fixed_right {
|
263
|
+
right: 0;
|
264
|
+
}
|
240
265
|
.bk-table .bk-table-head table thead th,
|
241
266
|
.bk-table .bk-table-body table thead th {
|
267
|
+
font-weight: 400;
|
242
268
|
color: #313238;
|
243
269
|
background-color: #fafbfd;
|
244
270
|
}
|
@@ -248,9 +274,13 @@
|
|
248
274
|
.bk-table .bk-table-body table thead th:hover {
|
249
275
|
background: #f0f1f5;
|
250
276
|
}
|
277
|
+
.bk-table .bk-table-head table thead th.column_fixed,
|
278
|
+
.bk-table .bk-table-body table thead th.column_fixed {
|
279
|
+
transform: translateX(var(--scroll-left));
|
280
|
+
}
|
251
281
|
.bk-table .bk-table-head table tbody tr td .cell,
|
252
282
|
.bk-table .bk-table-body table tbody tr td .cell {
|
253
|
-
display:
|
283
|
+
display: block;
|
254
284
|
width: 100%;
|
255
285
|
}
|
256
286
|
.bk-table .bk-table-head table tbody tr:hover td:not(.empty-cell),
|
@@ -259,6 +289,10 @@
|
|
259
289
|
}
|
260
290
|
.bk-table .bk-table-head {
|
261
291
|
position: relative;
|
292
|
+
transform: translateX(var(--scroll-head-left));
|
293
|
+
}
|
294
|
+
.bk-table .bk-table-head .table-head-settings {
|
295
|
+
display: block;
|
262
296
|
}
|
263
297
|
.bk-table .bk-table-head .table-head-settings .bk-popover-reference {
|
264
298
|
position: absolute;
|
@@ -310,7 +344,26 @@
|
|
310
344
|
border-left: none;
|
311
345
|
}
|
312
346
|
.bk-table .bk-table-fixed {
|
347
|
+
position: absolute;
|
348
|
+
top: 0;
|
349
|
+
right: 0;
|
350
|
+
bottom: 0;
|
351
|
+
left: 0;
|
313
352
|
width: 100%;
|
353
|
+
pointer-events: none;
|
354
|
+
}
|
355
|
+
.bk-table .bk-table-fixed .column_fixed {
|
356
|
+
position: absolute;
|
357
|
+
}
|
358
|
+
.bk-table .bk-table-fixed .column_fixed.column_fixed_left {
|
359
|
+
top: 0;
|
360
|
+
left: 0;
|
361
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
|
362
|
+
}
|
363
|
+
.bk-table .bk-table-fixed .column_fixed.column_fixed_right {
|
364
|
+
top: 0;
|
365
|
+
right: 0;
|
366
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
|
314
367
|
}
|
315
368
|
.bk-table colgroup col {
|
316
369
|
background: white;
|
package/lib/table/table.d.ts
CHANGED
@@ -125,8 +125,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
125
125
|
onRowClick?: (...args: any[]) => any;
|
126
126
|
onRowDblClick?: (...args: any[]) => any;
|
127
127
|
}, {
|
128
|
-
height: string | number;
|
129
128
|
data: any[];
|
129
|
+
height: string | number;
|
130
130
|
maxHeight: string | number;
|
131
131
|
minHeight: string | number;
|
132
132
|
border: string[];
|
package/lib/table/table.less
CHANGED
@@ -4,12 +4,19 @@
|
|
4
4
|
@import './plugins/settings.less';
|
5
5
|
|
6
6
|
.@{bk-prefix}-table {
|
7
|
+
position: relative;
|
7
8
|
height: auto;
|
8
9
|
overflow: hidden;
|
9
10
|
border-top: 1px solid @table-border-color;
|
10
11
|
border-bottom: 1px solid @table-border-color;
|
12
|
+
|
11
13
|
.@{bk-prefix}-table-body {
|
14
|
+
position: relative;
|
12
15
|
overflow: auto;
|
16
|
+
|
17
|
+
&::-webkit-scrollbar {
|
18
|
+
height: 6px;
|
19
|
+
}
|
13
20
|
}
|
14
21
|
|
15
22
|
.@{bk-prefix}-table-head,
|
@@ -24,11 +31,12 @@
|
|
24
31
|
th,
|
25
32
|
td {
|
26
33
|
min-width: 80px;
|
34
|
+
padding: 0 15px;
|
35
|
+
clear: both;
|
27
36
|
|
28
37
|
.cell {
|
29
38
|
display: flex;
|
30
39
|
align-items: center;
|
31
|
-
padding: 0 15px;
|
32
40
|
overflow: hidden;
|
33
41
|
line-height: var(--row-height);
|
34
42
|
color: @table-body-font-color;
|
@@ -36,10 +44,24 @@
|
|
36
44
|
text-overflow: ellipsis;
|
37
45
|
white-space: nowrap;
|
38
46
|
}
|
47
|
+
|
48
|
+
&.column_fixed {
|
49
|
+
position: sticky;
|
50
|
+
background: #fff;
|
51
|
+
|
52
|
+
&.column_fixed_left {
|
53
|
+
left: 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
&.column_fixed_right {
|
57
|
+
right: 0;
|
58
|
+
}
|
59
|
+
}
|
39
60
|
}
|
40
61
|
|
41
62
|
thead {
|
42
63
|
th {
|
64
|
+
font-weight: 400;
|
43
65
|
color: @table-head-font-color;
|
44
66
|
background-color: @table-head-bg-color;
|
45
67
|
|
@@ -47,6 +69,10 @@
|
|
47
69
|
&:hover {
|
48
70
|
background: @table-row-active-bg-color;
|
49
71
|
}
|
72
|
+
|
73
|
+
&.column_fixed {
|
74
|
+
transform: translateX(var(--scroll-left));
|
75
|
+
}
|
50
76
|
}
|
51
77
|
}
|
52
78
|
|
@@ -54,7 +80,7 @@
|
|
54
80
|
tr {
|
55
81
|
td {
|
56
82
|
.cell {
|
57
|
-
display:
|
83
|
+
display: block;
|
58
84
|
width: 100%;
|
59
85
|
}
|
60
86
|
}
|
@@ -73,8 +99,11 @@
|
|
73
99
|
|
74
100
|
.@{bk-prefix}-table-head {
|
75
101
|
position: relative;
|
102
|
+
transform: translateX(var(--scroll-head-left));
|
76
103
|
|
77
104
|
.table-head-settings {
|
105
|
+
display: block;
|
106
|
+
|
78
107
|
.bk-popover-reference {
|
79
108
|
position: absolute;
|
80
109
|
top: 0;
|
@@ -148,7 +177,29 @@
|
|
148
177
|
}
|
149
178
|
|
150
179
|
.@{bk-prefix}-table-fixed {
|
180
|
+
position: absolute;
|
181
|
+
top: 0;
|
182
|
+
right: 0;
|
183
|
+
bottom: 0;
|
184
|
+
left: 0;
|
151
185
|
width: 100%;
|
186
|
+
pointer-events: none;
|
187
|
+
|
188
|
+
.column_fixed {
|
189
|
+
position: absolute;
|
190
|
+
|
191
|
+
&.column_fixed_left {
|
192
|
+
top: 0;
|
193
|
+
left: 0;
|
194
|
+
box-shadow: 0 0 10px rgb(0 0 0 / 12%);
|
195
|
+
}
|
196
|
+
|
197
|
+
&.column_fixed_right {
|
198
|
+
top: 0;
|
199
|
+
right: 0;
|
200
|
+
box-shadow: 0 0 10px rgb(0 0 0 / 12%);
|
201
|
+
}
|
202
|
+
}
|
152
203
|
}
|
153
204
|
|
154
205
|
colgroup {
|
@@ -9,6 +9,7 @@
|
|
9
9
|
--gray-color: #979ba5;
|
10
10
|
--light-gray: #c4c6cc;
|
11
11
|
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
12
13
|
--disable-color: #dcdee5;
|
13
14
|
--font-size-base: 12px;
|
14
15
|
--font-size-medium: 14px;
|
@@ -91,6 +92,10 @@
|
|
91
92
|
--table-body-font-color: #575961;
|
92
93
|
--table-row-hover-bg-color: #f5f7fa;
|
93
94
|
--table-row-active-bg-color: #f0f1f5;
|
95
|
+
--cascader-panel-border-color: #dcdee5;
|
96
|
+
--cascader-panel-hover: #eaf3ff;
|
97
|
+
--cascader-panel-active: #f4f6fa;
|
98
|
+
--cascader-panel-disabled-bg: #fff;
|
94
99
|
}
|
95
100
|
.bk-table-head-action {
|
96
101
|
display: flex;
|
@@ -293,14 +298,19 @@
|
|
293
298
|
align-items: center;
|
294
299
|
}
|
295
300
|
.bk-table {
|
301
|
+
position: relative;
|
296
302
|
height: auto;
|
297
303
|
overflow: hidden;
|
298
304
|
border-top: 1px solid #dcdee5;
|
299
305
|
border-bottom: 1px solid #dcdee5;
|
300
306
|
}
|
301
307
|
.bk-table .bk-table-body {
|
308
|
+
position: relative;
|
302
309
|
overflow: auto;
|
303
310
|
}
|
311
|
+
.bk-table .bk-table-body::-webkit-scrollbar {
|
312
|
+
height: 6px;
|
313
|
+
}
|
304
314
|
.bk-table .bk-table-head,
|
305
315
|
.bk-table .bk-table-body {
|
306
316
|
background: white;
|
@@ -316,6 +326,8 @@
|
|
316
326
|
.bk-table .bk-table-head table td,
|
317
327
|
.bk-table .bk-table-body table td {
|
318
328
|
min-width: 80px;
|
329
|
+
padding: 0 15px;
|
330
|
+
clear: both;
|
319
331
|
}
|
320
332
|
.bk-table .bk-table-head table th .cell,
|
321
333
|
.bk-table .bk-table-body table th .cell,
|
@@ -323,7 +335,6 @@
|
|
323
335
|
.bk-table .bk-table-body table td .cell {
|
324
336
|
display: flex;
|
325
337
|
align-items: center;
|
326
|
-
padding: 0 15px;
|
327
338
|
overflow: hidden;
|
328
339
|
line-height: var(--row-height);
|
329
340
|
color: #575961;
|
@@ -331,8 +342,28 @@
|
|
331
342
|
text-overflow: ellipsis;
|
332
343
|
white-space: nowrap;
|
333
344
|
}
|
345
|
+
.bk-table .bk-table-head table th.column_fixed,
|
346
|
+
.bk-table .bk-table-body table th.column_fixed,
|
347
|
+
.bk-table .bk-table-head table td.column_fixed,
|
348
|
+
.bk-table .bk-table-body table td.column_fixed {
|
349
|
+
position: sticky;
|
350
|
+
background: #fff;
|
351
|
+
}
|
352
|
+
.bk-table .bk-table-head table th.column_fixed.column_fixed_left,
|
353
|
+
.bk-table .bk-table-body table th.column_fixed.column_fixed_left,
|
354
|
+
.bk-table .bk-table-head table td.column_fixed.column_fixed_left,
|
355
|
+
.bk-table .bk-table-body table td.column_fixed.column_fixed_left {
|
356
|
+
left: 0;
|
357
|
+
}
|
358
|
+
.bk-table .bk-table-head table th.column_fixed.column_fixed_right,
|
359
|
+
.bk-table .bk-table-body table th.column_fixed.column_fixed_right,
|
360
|
+
.bk-table .bk-table-head table td.column_fixed.column_fixed_right,
|
361
|
+
.bk-table .bk-table-body table td.column_fixed.column_fixed_right {
|
362
|
+
right: 0;
|
363
|
+
}
|
334
364
|
.bk-table .bk-table-head table thead th,
|
335
365
|
.bk-table .bk-table-body table thead th {
|
366
|
+
font-weight: 400;
|
336
367
|
color: #313238;
|
337
368
|
background-color: #fafbfd;
|
338
369
|
}
|
@@ -342,9 +373,13 @@
|
|
342
373
|
.bk-table .bk-table-body table thead th:hover {
|
343
374
|
background: #f0f1f5;
|
344
375
|
}
|
376
|
+
.bk-table .bk-table-head table thead th.column_fixed,
|
377
|
+
.bk-table .bk-table-body table thead th.column_fixed {
|
378
|
+
transform: translateX(var(--scroll-left));
|
379
|
+
}
|
345
380
|
.bk-table .bk-table-head table tbody tr td .cell,
|
346
381
|
.bk-table .bk-table-body table tbody tr td .cell {
|
347
|
-
display:
|
382
|
+
display: block;
|
348
383
|
width: 100%;
|
349
384
|
}
|
350
385
|
.bk-table .bk-table-head table tbody tr:hover td:not(.empty-cell),
|
@@ -353,6 +388,10 @@
|
|
353
388
|
}
|
354
389
|
.bk-table .bk-table-head {
|
355
390
|
position: relative;
|
391
|
+
transform: translateX(var(--scroll-head-left));
|
392
|
+
}
|
393
|
+
.bk-table .bk-table-head .table-head-settings {
|
394
|
+
display: block;
|
356
395
|
}
|
357
396
|
.bk-table .bk-table-head .table-head-settings .bk-popover-reference {
|
358
397
|
position: absolute;
|
@@ -404,7 +443,26 @@
|
|
404
443
|
border-left: none;
|
405
444
|
}
|
406
445
|
.bk-table .bk-table-fixed {
|
446
|
+
position: absolute;
|
447
|
+
top: 0;
|
448
|
+
right: 0;
|
449
|
+
bottom: 0;
|
450
|
+
left: 0;
|
407
451
|
width: 100%;
|
452
|
+
pointer-events: none;
|
453
|
+
}
|
454
|
+
.bk-table .bk-table-fixed .column_fixed {
|
455
|
+
position: absolute;
|
456
|
+
}
|
457
|
+
.bk-table .bk-table-fixed .column_fixed.column_fixed_left {
|
458
|
+
top: 0;
|
459
|
+
left: 0;
|
460
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
|
461
|
+
}
|
462
|
+
.bk-table .bk-table-fixed .column_fixed.column_fixed_right {
|
463
|
+
top: 0;
|
464
|
+
right: 0;
|
465
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
|
408
466
|
}
|
409
467
|
.bk-table colgroup col {
|
410
468
|
background: white;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TablePropTypes } from './props';
|
2
|
-
export declare const useClass: (props: TablePropTypes, root?: any) => {
|
2
|
+
export declare const useClass: (props: TablePropTypes, root?: any, reactiveProp?: any) => {
|
3
3
|
tableClass: import("vue").ComputedRef<string>;
|
4
4
|
headClass: string;
|
5
5
|
contentClass: string;
|
@@ -13,8 +13,10 @@ export declare const useClass: (props: TablePropTypes, root?: any) => {
|
|
13
13
|
'min-height': string;
|
14
14
|
height: string;
|
15
15
|
}>;
|
16
|
-
headStyle: {
|
16
|
+
headStyle: import("vue").ComputedRef<{
|
17
17
|
'--row-height': string;
|
18
|
-
|
18
|
+
'--scroll-head-left': string;
|
19
|
+
'--scroll-left': string;
|
20
|
+
}>;
|
19
21
|
resetTableHeight: (rootEl: HTMLElement) => void;
|
20
22
|
};
|
package/lib/table/utils.d.ts
CHANGED
@@ -34,6 +34,16 @@ export declare const resolveNumberOrStringToPix: (val: string | number, defaultV
|
|
34
34
|
* @returns
|
35
35
|
*/
|
36
36
|
export declare const resolvePropBorderToClassStr: (val: string | string[]) => string;
|
37
|
+
/**
|
38
|
+
* 获取当前列实际宽度
|
39
|
+
* width props中设置的默认宽度
|
40
|
+
* calcWidth 计算后的宽度
|
41
|
+
* resizeWidth 拖拽重置之后的宽度
|
42
|
+
* @param colmun 当前列配置
|
43
|
+
* @param orders 获取宽度顺序
|
44
|
+
* @returns
|
45
|
+
*/
|
46
|
+
export declare const getColumnReactWidth: (colmun: GroupColumn, orders?: string[]) => any;
|
37
47
|
/**
|
38
48
|
* 根据Props Column配置计算并设置列宽度
|
39
49
|
* @param root 当前根元素
|
package/lib/tag/index.d.ts
CHANGED
@@ -57,7 +57,7 @@ declare const BkTag: {
|
|
57
57
|
}>;
|
58
58
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
59
59
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
60
|
-
$emit: (event: "
|
60
|
+
$emit: (event: "change" | "close", ...args: any[]) => void;
|
61
61
|
$el: any;
|
62
62
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
63
63
|
theme: import("vue-types").VueTypeDef<string> & {
|
@@ -101,7 +101,7 @@ declare const BkTag: {
|
|
101
101
|
}>;
|
102
102
|
handleClose: (e: Event) => void;
|
103
103
|
handleClick: (e: Event) => void;
|
104
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
104
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], string, {
|
105
105
|
type: string;
|
106
106
|
theme: string;
|
107
107
|
closable: boolean;
|
@@ -217,7 +217,7 @@ declare const BkTag: {
|
|
217
217
|
}>;
|
218
218
|
handleClose: (e: Event) => void;
|
219
219
|
handleClick: (e: Event) => void;
|
220
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
220
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", {
|
221
221
|
type: string;
|
222
222
|
theme: string;
|
223
223
|
closable: boolean;
|
package/lib/tag/tag.d.ts
CHANGED
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
37
37
|
}>;
|
38
38
|
handleClose: (e: Event) => void;
|
39
39
|
handleClick: (e: Event) => void;
|
40
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
40
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
41
41
|
theme: import("vue-types").VueTypeDef<string> & {
|
42
42
|
default: string;
|
43
43
|
};
|
package/lib/tag/tag.variable.css
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
--gray-color: #979ba5;
|
10
10
|
--light-gray: #c4c6cc;
|
11
11
|
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
12
13
|
--disable-color: #dcdee5;
|
13
14
|
--font-size-base: 12px;
|
14
15
|
--font-size-medium: 14px;
|
@@ -91,6 +92,10 @@
|
|
91
92
|
--table-body-font-color: #575961;
|
92
93
|
--table-row-hover-bg-color: #f5f7fa;
|
93
94
|
--table-row-active-bg-color: #f0f1f5;
|
95
|
+
--cascader-panel-border-color: #dcdee5;
|
96
|
+
--cascader-panel-hover: #eaf3ff;
|
97
|
+
--cascader-panel-active: #f4f6fa;
|
98
|
+
--cascader-panel-disabled-bg: #fff;
|
94
99
|
}
|
95
100
|
.bk-tag {
|
96
101
|
display: inline-flex;
|