bkui-vue 0.0.1-beta.61 → 0.0.1-beta.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +30 -30
- package/dist/index.esm.js +1434 -298
- package/dist/index.umd.js +28 -28
- 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/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.variable.css +5 -0
- package/lib/code-diff/code-diff.variable.css +5 -0
- package/lib/code-diff/index.js +1 -1
- 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 +9 -2
- 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 +22 -7
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/props.d.ts +3 -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.variable.css +5 -0
- 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 +54 -2
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +52 -2
- package/lib/table/table.variable.css +59 -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/index.d.ts +39 -1
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +19 -0
- package/lib/tree/tree.css +3 -1
- package/lib/tree/tree.d.ts +18 -0
- package/lib/tree/tree.less +3 -1
- package/lib/tree/tree.variable.css +8 -1
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-attribute.d.ts +1 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/util.d.ts +2 -1
- 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,6 +243,25 @@
|
|
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 {
|
242
267
|
color: #313238;
|
@@ -248,9 +273,13 @@
|
|
248
273
|
.bk-table .bk-table-body table thead th:hover {
|
249
274
|
background: #f0f1f5;
|
250
275
|
}
|
276
|
+
.bk-table .bk-table-head table thead th.column_fixed,
|
277
|
+
.bk-table .bk-table-body table thead th.column_fixed {
|
278
|
+
transform: translateX(var(--scroll-left));
|
279
|
+
}
|
251
280
|
.bk-table .bk-table-head table tbody tr td .cell,
|
252
281
|
.bk-table .bk-table-body table tbody tr td .cell {
|
253
|
-
display:
|
282
|
+
display: block;
|
254
283
|
width: 100%;
|
255
284
|
}
|
256
285
|
.bk-table .bk-table-head table tbody tr:hover td:not(.empty-cell),
|
@@ -259,6 +288,10 @@
|
|
259
288
|
}
|
260
289
|
.bk-table .bk-table-head {
|
261
290
|
position: relative;
|
291
|
+
transform: translateX(var(--scroll-head-left));
|
292
|
+
}
|
293
|
+
.bk-table .bk-table-head .table-head-settings {
|
294
|
+
display: block;
|
262
295
|
}
|
263
296
|
.bk-table .bk-table-head .table-head-settings .bk-popover-reference {
|
264
297
|
position: absolute;
|
@@ -310,7 +343,26 @@
|
|
310
343
|
border-left: none;
|
311
344
|
}
|
312
345
|
.bk-table .bk-table-fixed {
|
346
|
+
position: absolute;
|
347
|
+
top: 0;
|
348
|
+
right: 0;
|
349
|
+
bottom: 0;
|
350
|
+
left: 0;
|
313
351
|
width: 100%;
|
352
|
+
pointer-events: none;
|
353
|
+
}
|
354
|
+
.bk-table .bk-table-fixed .column_fixed {
|
355
|
+
position: absolute;
|
356
|
+
}
|
357
|
+
.bk-table .bk-table-fixed .column_fixed.column_fixed_left {
|
358
|
+
top: 0;
|
359
|
+
left: 0;
|
360
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
|
361
|
+
}
|
362
|
+
.bk-table .bk-table-fixed .column_fixed.column_fixed_right {
|
363
|
+
top: 0;
|
364
|
+
right: 0;
|
365
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
|
314
366
|
}
|
315
367
|
.bk-table colgroup col {
|
316
368
|
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,6 +44,19 @@
|
|
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 {
|
@@ -47,6 +68,10 @@
|
|
47
68
|
&:hover {
|
48
69
|
background: @table-row-active-bg-color;
|
49
70
|
}
|
71
|
+
|
72
|
+
&.column_fixed {
|
73
|
+
transform: translateX(var(--scroll-left));
|
74
|
+
}
|
50
75
|
}
|
51
76
|
}
|
52
77
|
|
@@ -54,7 +79,7 @@
|
|
54
79
|
tr {
|
55
80
|
td {
|
56
81
|
.cell {
|
57
|
-
display:
|
82
|
+
display: block;
|
58
83
|
width: 100%;
|
59
84
|
}
|
60
85
|
}
|
@@ -73,8 +98,11 @@
|
|
73
98
|
|
74
99
|
.@{bk-prefix}-table-head {
|
75
100
|
position: relative;
|
101
|
+
transform: translateX(var(--scroll-head-left));
|
76
102
|
|
77
103
|
.table-head-settings {
|
104
|
+
display: block;
|
105
|
+
|
78
106
|
.bk-popover-reference {
|
79
107
|
position: absolute;
|
80
108
|
top: 0;
|
@@ -148,7 +176,29 @@
|
|
148
176
|
}
|
149
177
|
|
150
178
|
.@{bk-prefix}-table-fixed {
|
179
|
+
position: absolute;
|
180
|
+
top: 0;
|
181
|
+
right: 0;
|
182
|
+
bottom: 0;
|
183
|
+
left: 0;
|
151
184
|
width: 100%;
|
185
|
+
pointer-events: none;
|
186
|
+
|
187
|
+
.column_fixed {
|
188
|
+
position: absolute;
|
189
|
+
|
190
|
+
&.column_fixed_left {
|
191
|
+
top: 0;
|
192
|
+
left: 0;
|
193
|
+
box-shadow: 0 0 10px rgb(0 0 0 / 12%);
|
194
|
+
}
|
195
|
+
|
196
|
+
&.column_fixed_right {
|
197
|
+
top: 0;
|
198
|
+
right: 0;
|
199
|
+
box-shadow: 0 0 10px rgb(0 0 0 / 12%);
|
200
|
+
}
|
201
|
+
}
|
152
202
|
}
|
153
203
|
|
154
204
|
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,6 +342,25 @@
|
|
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 {
|
336
366
|
color: #313238;
|
@@ -342,9 +372,13 @@
|
|
342
372
|
.bk-table .bk-table-body table thead th:hover {
|
343
373
|
background: #f0f1f5;
|
344
374
|
}
|
375
|
+
.bk-table .bk-table-head table thead th.column_fixed,
|
376
|
+
.bk-table .bk-table-body table thead th.column_fixed {
|
377
|
+
transform: translateX(var(--scroll-left));
|
378
|
+
}
|
345
379
|
.bk-table .bk-table-head table tbody tr td .cell,
|
346
380
|
.bk-table .bk-table-body table tbody tr td .cell {
|
347
|
-
display:
|
381
|
+
display: block;
|
348
382
|
width: 100%;
|
349
383
|
}
|
350
384
|
.bk-table .bk-table-head table tbody tr:hover td:not(.empty-cell),
|
@@ -353,6 +387,10 @@
|
|
353
387
|
}
|
354
388
|
.bk-table .bk-table-head {
|
355
389
|
position: relative;
|
390
|
+
transform: translateX(var(--scroll-head-left));
|
391
|
+
}
|
392
|
+
.bk-table .bk-table-head .table-head-settings {
|
393
|
+
display: block;
|
356
394
|
}
|
357
395
|
.bk-table .bk-table-head .table-head-settings .bk-popover-reference {
|
358
396
|
position: absolute;
|
@@ -404,7 +442,26 @@
|
|
404
442
|
border-left: none;
|
405
443
|
}
|
406
444
|
.bk-table .bk-table-fixed {
|
445
|
+
position: absolute;
|
446
|
+
top: 0;
|
447
|
+
right: 0;
|
448
|
+
bottom: 0;
|
449
|
+
left: 0;
|
407
450
|
width: 100%;
|
451
|
+
pointer-events: none;
|
452
|
+
}
|
453
|
+
.bk-table .bk-table-fixed .column_fixed {
|
454
|
+
position: absolute;
|
455
|
+
}
|
456
|
+
.bk-table .bk-table-fixed .column_fixed.column_fixed_left {
|
457
|
+
top: 0;
|
458
|
+
left: 0;
|
459
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
|
460
|
+
}
|
461
|
+
.bk-table .bk-table-fixed .column_fixed.column_fixed_right {
|
462
|
+
top: 0;
|
463
|
+
right: 0;
|
464
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
|
408
465
|
}
|
409
466
|
.bk-table colgroup col {
|
410
467
|
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;
|