bkui-vue 2.0.1-beta.22 → 2.0.1-beta.24
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 +63 -63
- package/dist/index.esm.js +14221 -14252
- package/dist/index.umd.js +63 -63
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +130 -0
- package/lib/affix/affix.variable.css +262 -1
- package/lib/alert/alert.css +133 -3
- package/lib/alert/alert.variable.css +262 -1
- package/lib/backtop/backtop.css +133 -3
- package/lib/backtop/backtop.variable.css +395 -4
- package/lib/badge/badge.css +156 -26
- package/lib/badge/badge.variable.css +262 -1
- package/lib/breadcrumb/breadcrumb.css +135 -5
- package/lib/breadcrumb/breadcrumb.variable.css +397 -6
- package/lib/button/button.css +273 -143
- package/lib/button/button.variable.css +262 -1
- package/lib/card/card.css +134 -4
- package/lib/card/card.variable.css +396 -5
- package/lib/cascader/cascader.css +153 -23
- package/lib/cascader/cascader.variable.css +415 -24
- package/lib/checkbox/checkbox.css +139 -9
- package/lib/checkbox/checkbox.variable.css +262 -1
- package/lib/code-diff/code-diff.css +130 -0
- package/lib/code-diff/code-diff.variable.css +262 -1
- package/lib/collapse/collapse.css +131 -1
- package/lib/collapse/collapse.variable.css +262 -1
- package/lib/collapse-transition/collapse-transition.css +130 -0
- package/lib/collapse-transition/collapse-transition.variable.css +262 -1
- package/lib/color-picker/color-picker.css +130 -0
- package/lib/color-picker/color-picker.variable.css +262 -1
- package/lib/config-provider/config-provider.css +130 -0
- package/lib/config-provider/config-provider.variable.css +262 -1
- package/lib/container/container.css +130 -0
- package/lib/container/container.variable.css +392 -1
- package/lib/date-picker/date-picker.css +147 -17
- package/lib/date-picker/date-picker.variable.css +262 -1
- package/lib/dialog/dialog.css +138 -8
- package/lib/dialog/dialog.variable.css +400 -9
- package/lib/divider/divider.css +133 -3
- package/lib/divider/divider.variable.css +262 -1
- package/lib/dropdown/dropdown.css +130 -0
- package/lib/dropdown/dropdown.variable.css +392 -1
- package/lib/exception/exception.css +130 -0
- package/lib/exception/exception.variable.css +262 -1
- package/lib/fixed-navbar/fixed-navbar.css +134 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
- package/lib/form/form.css +130 -0
- package/lib/form/form.variable.css +262 -1
- package/lib/image/image-viewer.css +130 -0
- package/lib/image/image-viewer.variable.css +262 -1
- package/lib/image/image.css +130 -0
- package/lib/image/image.variable.css +392 -1
- package/lib/index.js +1 -1
- package/lib/info-box/info-box.css +134 -4
- package/lib/info-box/info-box.variable.css +262 -1
- package/lib/input/input.css +202 -72
- package/lib/input/input.variable.css +464 -73
- package/lib/link/link.css +146 -16
- package/lib/link/link.variable.css +262 -1
- package/lib/loading/loading.css +146 -16
- package/lib/loading/loading.variable.css +408 -17
- package/lib/menu/menu.css +148 -18
- package/lib/menu/menu.variable.css +410 -19
- package/lib/menu/submenu.css +130 -0
- package/lib/menu/submenu.variable.css +262 -1
- package/lib/message/message.css +151 -21
- package/lib/message/message.variable.css +262 -1
- package/lib/modal/modal.css +134 -4
- package/lib/modal/modal.variable.css +396 -5
- package/lib/navigation/navigation.css +132 -2
- package/lib/navigation/navigation.variable.css +262 -1
- package/lib/notify/notify.css +137 -7
- package/lib/notify/notify.variable.css +262 -1
- package/lib/pagination/pagination.css +131 -1
- package/lib/pagination/pagination.variable.css +262 -1
- package/lib/pop-confirm/pop-confirm.css +130 -0
- package/lib/pop-confirm/pop-confirm.variable.css +262 -1
- package/lib/popover/popover.css +130 -0
- package/lib/popover/popover.variable.css +262 -1
- package/lib/process/process.css +143 -13
- package/lib/process/process.variable.css +262 -1
- package/lib/progress/progress.css +134 -4
- package/lib/progress/progress.variable.css +396 -5
- package/lib/radio/radio.css +172 -42
- package/lib/radio/radio.variable.css +262 -1
- package/lib/rate/rate.css +130 -0
- package/lib/rate/rate.variable.css +262 -1
- package/lib/resize-layout/resize-layout.css +130 -0
- package/lib/resize-layout/resize-layout.variable.css +262 -1
- package/lib/scrollbar/index.js +38 -12
- package/lib/scrollbar/scrollbar-core/index.d.ts +2 -1
- package/lib/scrollbar/scrollbar.css +130 -0
- package/lib/scrollbar/scrollbar.variable.css +262 -1
- package/lib/search-select/search-select.css +163 -33
- package/lib/search-select/search-select.variable.css +425 -34
- package/lib/select/index.js +31 -27
- package/lib/select/select.css +172 -43
- package/lib/select/select.less +3 -4
- package/lib/select/select.variable.css +434 -44
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +72 -1
- package/lib/sideslider/sideslider.css +131 -1
- package/lib/sideslider/sideslider.variable.css +262 -1
- package/lib/slider/slider.css +135 -5
- package/lib/slider/slider.variable.css +262 -1
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/steps.css +168 -38
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.variable.css +262 -1
- package/lib/styles/mixins/animate.css +130 -0
- package/lib/styles/mixins/animate.variable.css +262 -1
- package/lib/styles/mixins/mixins.css +130 -0
- package/lib/styles/mixins/mixins.variable.css +130 -0
- package/lib/styles/mixins/popper.css +130 -0
- package/lib/styles/mixins/popper.variable.css +262 -1
- package/lib/styles/mixins/scroll.css +130 -0
- package/lib/styles/mixins/scroll.variable.css +262 -1
- package/lib/styles/reset.css +130 -0
- package/lib/styles/reset.variable.css +262 -1
- package/lib/styles/themes/themes.css +130 -0
- package/lib/styles/themes/themes.less +299 -129
- package/lib/styles/themes/themes.variable.css +130 -0
- package/lib/swiper/swiper.css +130 -0
- package/lib/swiper/swiper.variable.css +262 -1
- package/lib/switcher/switcher.css +147 -17
- package/lib/switcher/switcher.variable.css +409 -18
- package/lib/tab/tab.css +147 -17
- package/lib/tab/tab.variable.css +262 -1
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-column.d.ts +3 -44
- package/lib/table/const.d.ts +12 -0
- package/lib/table/events.d.ts +2 -98
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-resize.d.ts +7 -0
- package/lib/table/hooks/use-column-template.d.ts +5 -0
- package/lib/table/hooks/use-columns.d.ts +54 -0
- package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
- package/lib/table/hooks/use-fixed-column.d.ts +10 -0
- package/lib/table/hooks/use-head.d.ts +15 -0
- package/lib/table/hooks/use-layout.d.ts +22 -0
- package/lib/table/hooks/use-pagination.d.ts +16 -0
- package/lib/table/hooks/use-render.d.ts +23 -0
- package/lib/table/hooks/use-rows.d.ts +25 -0
- package/lib/table/hooks/use-settings.d.ts +24 -0
- package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +49 -561
- package/lib/table/index.js +3410 -3554
- package/lib/table/plugins/head-filter.css +130 -0
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.variable.css +262 -1
- package/lib/table/plugins/head-sort.css +130 -0
- package/lib/table/plugins/head-sort.variable.css +262 -1
- package/lib/table/plugins/settings.css +131 -0
- package/lib/table/plugins/settings.less +1 -0
- package/lib/table/plugins/settings.variable.css +263 -1
- package/lib/table/props.d.ts +31 -12
- package/lib/table/table.css +361 -243
- package/lib/table/table.d.ts +27 -181
- package/lib/table/table.less +69 -91
- package/lib/table/table.variable.css +623 -244
- package/lib/table/utils.d.ts +26 -3
- package/lib/table-column/index.d.ts +9 -132
- package/lib/table-column/index.js +17314 -25
- package/lib/tag/tag.css +135 -5
- package/lib/tag/tag.variable.css +262 -1
- package/lib/tag-input/tag-input.css +148 -18
- package/lib/tag-input/tag-input.variable.css +262 -1
- package/lib/time-picker/time-picker.css +130 -0
- package/lib/time-picker/time-picker.variable.css +262 -1
- package/lib/timeline/timeline.css +149 -19
- package/lib/timeline/timeline.variable.css +262 -1
- package/lib/transfer/transfer.css +149 -19
- package/lib/transfer/transfer.variable.css +262 -1
- package/lib/tree/index.js +10 -0
- package/lib/tree/tree.css +139 -9
- package/lib/tree/tree.variable.css +401 -10
- package/lib/upload/upload.css +157 -27
- package/lib/upload/upload.variable.css +419 -28
- package/lib/virtual-render/index.d.ts +4 -15
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +1 -3
- package/lib/virtual-render/virtual-render.css +130 -0
- package/lib/virtual-render/virtual-render.d.ts +2 -7
- package/lib/virtual-render/virtual-render.variable.css +392 -1
- package/package.json +1 -1
- package/lib/table/plugins/col-group.d.ts +0 -38
- package/lib/table/plugins/settings.d.ts +0 -16
- package/lib/table/plugins/use-active-columns.d.ts +0 -16
- package/lib/table/plugins/use-column-resize.d.ts +0 -35
- package/lib/table/plugins/use-column-template.d.ts +0 -7
- package/lib/table/plugins/use-fixed-column.d.ts +0 -27
- package/lib/table/plugins/use-head-cell.d.ts +0 -7
- package/lib/table/plugins/use-pagination.d.ts +0 -23
- package/lib/table/use-attributes.d.ts +0 -62
- package/lib/table/use-column.d.ts +0 -155
- package/lib/table/use-common.d.ts +0 -1679
- package/lib/table/use-render.d.ts +0 -11
- /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
package/lib/table/table.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
import { Column } from './props';
|
2
1
|
declare const _default: import("vue").DefineComponent<{
|
3
2
|
data: import("vue-types").VueTypeDef<any[]> & {
|
4
3
|
default: () => any[];
|
5
4
|
};
|
6
|
-
columns: import("vue-types").VueTypeDef<Column[]> & {
|
7
|
-
default: () => Column[];
|
5
|
+
columns: import("vue-types").VueTypeDef<import("./props").Column[]> & {
|
6
|
+
default: () => import("./props").Column[];
|
8
7
|
};
|
9
8
|
activeColumn: import("vue-types").VueTypeDef<number | number[]>;
|
10
9
|
columnPick: import("vue-types").VueTypeDef<"disabled" | "single" | "multi"> & {
|
@@ -24,9 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
23
|
maxHeight: import("vue-types").VueTypeDef<string | number> & {
|
25
24
|
default: string | number;
|
26
25
|
};
|
27
|
-
rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber
|
28
|
-
default: import("./props").RowHeightFunctionNumber;
|
29
|
-
};
|
26
|
+
rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber>;
|
30
27
|
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
31
28
|
default: number;
|
32
29
|
} & {
|
@@ -162,95 +159,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
162
159
|
} & {
|
163
160
|
default: boolean;
|
164
161
|
};
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
index: number;
|
175
|
-
type: import("./const").SORT_OPTION;
|
176
|
-
}) => boolean;
|
177
|
-
colFilterSave: (_args: {
|
178
|
-
column: Column;
|
179
|
-
values: any[];
|
180
|
-
}) => boolean;
|
181
|
-
rowClick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
182
|
-
rowDblclick: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
183
|
-
rowExpand: (_args: {
|
184
|
-
row: any;
|
185
|
-
column: Column;
|
186
|
-
index: number;
|
187
|
-
rows: any[];
|
188
|
-
e: MouseEvent;
|
189
|
-
}) => boolean;
|
190
|
-
select: (_args: {
|
191
|
-
row: any;
|
192
|
-
index: number;
|
193
|
-
checked: string;
|
194
|
-
data: any[];
|
195
|
-
}) => boolean;
|
196
|
-
selectAll: (_args: {
|
197
|
-
checked: string;
|
198
|
-
data: any[];
|
199
|
-
}) => boolean;
|
200
|
-
selectionChange: (_args: {
|
201
|
-
row: any;
|
202
|
-
index: number;
|
203
|
-
checked: string;
|
204
|
-
data: any[];
|
205
|
-
isAll: boolean;
|
206
|
-
}) => boolean;
|
207
|
-
pageLimitChange: (_arg: number) => boolean;
|
208
|
-
pageValueChange: (_arg: number) => boolean;
|
209
|
-
settingChange: (_args: {
|
210
|
-
checked: string[];
|
211
|
-
size: string;
|
212
|
-
height: number;
|
213
|
-
fields: Record<string, any>[];
|
214
|
-
}) => boolean;
|
215
|
-
scrollBottom: (_args: {
|
216
|
-
translateX: number;
|
217
|
-
translateY: number;
|
218
|
-
scrollTop: number;
|
219
|
-
scrollLeft: number;
|
220
|
-
bottom: number;
|
221
|
-
}) => boolean;
|
222
|
-
cellClick: (_args: {
|
223
|
-
event: MouseEvent;
|
224
|
-
row: any;
|
225
|
-
column: Column;
|
226
|
-
cell: {
|
227
|
-
getValue: () => string;
|
228
|
-
};
|
229
|
-
rowIndex: number;
|
230
|
-
columnIndex: number;
|
231
|
-
}) => boolean;
|
232
|
-
cellDblclick: (_args: {
|
233
|
-
event: MouseEvent;
|
234
|
-
row: any;
|
235
|
-
column: Column;
|
236
|
-
cell: {
|
237
|
-
getValue: () => string;
|
238
|
-
};
|
239
|
-
rowIndex: number;
|
240
|
-
columnIndex: number;
|
241
|
-
}) => boolean;
|
242
|
-
rowMouseEnter: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
243
|
-
rowMouseLeave: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => boolean;
|
244
|
-
dragend: (_args: {
|
245
|
-
sourceEvent: DragEvent;
|
246
|
-
data: any[];
|
247
|
-
}) => boolean;
|
248
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
162
|
+
scrollbar: import("vue-types").VueTypeValidableDef<boolean> & {
|
163
|
+
default: boolean;
|
164
|
+
} & {
|
165
|
+
default: boolean;
|
166
|
+
};
|
167
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
168
|
+
default: () => import("./props").FixedBottomOption;
|
169
|
+
};
|
170
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, (...args: any[]) => boolean>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
249
171
|
data: import("vue-types").VueTypeDef<any[]> & {
|
250
172
|
default: () => any[];
|
251
173
|
};
|
252
|
-
columns: import("vue-types").VueTypeDef<Column[]> & {
|
253
|
-
default: () => Column[];
|
174
|
+
columns: import("vue-types").VueTypeDef<import("./props").Column[]> & {
|
175
|
+
default: () => import("./props").Column[];
|
254
176
|
};
|
255
177
|
activeColumn: import("vue-types").VueTypeDef<number | number[]>;
|
256
178
|
columnPick: import("vue-types").VueTypeDef<"disabled" | "single" | "multi"> & {
|
@@ -270,9 +192,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
270
192
|
maxHeight: import("vue-types").VueTypeDef<string | number> & {
|
271
193
|
default: string | number;
|
272
194
|
};
|
273
|
-
rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber
|
274
|
-
default: import("./props").RowHeightFunctionNumber;
|
275
|
-
};
|
195
|
+
rowHeight: import("vue-types").VueTypeDef<import("./props").RowHeightFunctionNumber>;
|
276
196
|
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
277
197
|
default: number;
|
278
198
|
} & {
|
@@ -408,94 +328,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
408
328
|
} & {
|
409
329
|
default: boolean;
|
410
330
|
};
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
}
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
data: any[];
|
421
|
-
}) => any;
|
422
|
-
onCellClick?: (_args: {
|
423
|
-
event: MouseEvent;
|
424
|
-
row: any;
|
425
|
-
column: Column;
|
426
|
-
cell: {
|
427
|
-
getValue: () => string;
|
428
|
-
};
|
429
|
-
rowIndex: number;
|
430
|
-
columnIndex: number;
|
431
|
-
}) => any;
|
432
|
-
onCellDblclick?: (_args: {
|
433
|
-
event: MouseEvent;
|
434
|
-
row: any;
|
435
|
-
column: Column;
|
436
|
-
cell: {
|
437
|
-
getValue: () => string;
|
438
|
-
};
|
439
|
-
rowIndex: number;
|
440
|
-
columnIndex: number;
|
441
|
-
}) => any;
|
442
|
-
onColumnFilter?: (_args: {
|
443
|
-
checked: string[];
|
444
|
-
column: Column;
|
445
|
-
index: number;
|
446
|
-
}) => any;
|
447
|
-
onColFilterSave?: (_args: {
|
448
|
-
column: Column;
|
449
|
-
values: any[];
|
450
|
-
}) => any;
|
451
|
-
onColumnPick?: (_cols: import("./props").IColumnActive[]) => any;
|
452
|
-
onColumnSort?: (_args: {
|
453
|
-
column: Column;
|
454
|
-
index: number;
|
455
|
-
type: import("./const").SORT_OPTION;
|
456
|
-
}) => any;
|
457
|
-
onPageLimitChange?: (_arg: number) => any;
|
458
|
-
onPageValueChange?: (_arg: number) => any;
|
459
|
-
onRowClick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
460
|
-
onRowDblclick?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
461
|
-
onRowExpand?: (_args: {
|
462
|
-
row: any;
|
463
|
-
column: Column;
|
464
|
-
index: number;
|
465
|
-
rows: any[];
|
466
|
-
e: MouseEvent;
|
467
|
-
}) => any;
|
468
|
-
onRowMouseEnter?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
469
|
-
onRowMouseLeave?: (_e: MouseEvent, _row: any, _index: number, _rows: any[], _this: any) => any;
|
470
|
-
onSelectAll?: (_args: {
|
471
|
-
checked: string;
|
472
|
-
data: any[];
|
473
|
-
}) => any;
|
474
|
-
onSelectionChange?: (_args: {
|
475
|
-
row: any;
|
476
|
-
index: number;
|
477
|
-
checked: string;
|
478
|
-
data: any[];
|
479
|
-
isAll: boolean;
|
480
|
-
}) => any;
|
481
|
-
onScrollBottom?: (_args: {
|
482
|
-
translateX: number;
|
483
|
-
translateY: number;
|
484
|
-
scrollTop: number;
|
485
|
-
scrollLeft: number;
|
486
|
-
bottom: number;
|
487
|
-
}) => any;
|
488
|
-
onSettingChange?: (_args: {
|
489
|
-
checked: string[];
|
490
|
-
size: string;
|
491
|
-
height: number;
|
492
|
-
fields: Record<string, any>[];
|
493
|
-
}) => any;
|
494
|
-
}, {
|
331
|
+
scrollbar: import("vue-types").VueTypeValidableDef<boolean> & {
|
332
|
+
default: boolean;
|
333
|
+
} & {
|
334
|
+
default: boolean;
|
335
|
+
};
|
336
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
337
|
+
default: () => import("./props").FixedBottomOption;
|
338
|
+
};
|
339
|
+
}>>, {
|
495
340
|
data: any[];
|
496
341
|
thead: import("./props").Thead;
|
497
342
|
height: string | number;
|
498
343
|
maxHeight: string | number;
|
344
|
+
scrollbar: boolean;
|
499
345
|
border: string | ("col" | "none" | "row" | "horizontal" | "outer")[];
|
500
346
|
pagination: boolean | {
|
501
347
|
[key: string]: any;
|
@@ -510,9 +356,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
510
356
|
[key: string]: any;
|
511
357
|
};
|
512
358
|
columnPick: "disabled" | "single" | "multi";
|
513
|
-
columns: Column[];
|
359
|
+
columns: import("./props").Column[];
|
514
360
|
stripe: boolean;
|
515
|
-
rowHeight: import("./props").RowHeightFunctionNumber;
|
516
361
|
showHead: boolean;
|
517
362
|
sortValFormat: any[];
|
518
363
|
virtualEnabled: boolean;
|
@@ -535,5 +380,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
535
380
|
isFlex: boolean;
|
536
381
|
rowDraggable: any;
|
537
382
|
shiftMultiChecked: boolean;
|
383
|
+
fixedBottom: import("./props").FixedBottomOption;
|
538
384
|
}, {}>;
|
539
385
|
export default _default;
|
package/lib/table/table.less
CHANGED
@@ -13,32 +13,30 @@
|
|
13
13
|
.@{bk-prefix}-table {
|
14
14
|
position: relative;
|
15
15
|
width: 100%;
|
16
|
-
height:
|
16
|
+
height: 100%;
|
17
17
|
overflow: hidden;
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
max-height: fit-content;
|
23
|
-
.@{bk-prefix}-table-body {
|
24
|
-
flex: 1;
|
25
|
-
overflow: auto;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
&.has-scroll-y {
|
30
|
-
.@{bk-prefix}-table-head {
|
31
|
-
padding-right: 4px;
|
32
|
-
}
|
33
|
-
}
|
18
|
+
border-spacing: 0;
|
19
|
+
display: flex;
|
20
|
+
flex-direction: column;
|
21
|
+
max-height: fit-content;
|
34
22
|
|
35
23
|
.@{bk-prefix}-table-body {
|
36
24
|
position: relative;
|
37
25
|
overflow: hidden;
|
38
|
-
|
26
|
+
flex: 1;
|
39
27
|
|
40
28
|
.prepend-row {
|
41
|
-
transform:
|
29
|
+
transform: translate3d(var(--translate-x), 0, 0);
|
30
|
+
}
|
31
|
+
|
32
|
+
.resize-column {
|
33
|
+
position: absolute;
|
34
|
+
top: 0;
|
35
|
+
bottom: 0;
|
36
|
+
left: 0;
|
37
|
+
width: 1px;
|
38
|
+
background-color: #3785ff;
|
39
|
+
transform: translate3d(var(--drag-offset-x), var(--translate-y), 0);
|
42
40
|
}
|
43
41
|
}
|
44
42
|
|
@@ -49,7 +47,7 @@
|
|
49
47
|
tr {
|
50
48
|
&:nth-child(even) {
|
51
49
|
td {
|
52
|
-
background-color:
|
50
|
+
background-color: @table-strip-color;
|
53
51
|
}
|
54
52
|
}
|
55
53
|
|
@@ -62,20 +60,6 @@
|
|
62
60
|
}
|
63
61
|
}
|
64
62
|
|
65
|
-
.@{bk-prefix}-fixed-bottom-border {
|
66
|
-
position: sticky;
|
67
|
-
bottom: 0;
|
68
|
-
left: 0;
|
69
|
-
z-index: 1;
|
70
|
-
width: 100%;
|
71
|
-
border-top: 1px solid @table-border-color;
|
72
|
-
transform: translateX(var(--scroll-head-left));
|
73
|
-
|
74
|
-
&._is-empty {
|
75
|
-
display: none;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
63
|
.@{bk-prefix}-table-head,
|
80
64
|
.@{bk-prefix}-table-body {
|
81
65
|
background: @table-bg-color;
|
@@ -94,12 +78,12 @@
|
|
94
78
|
height: 100%;
|
95
79
|
padding-bottom: 20px;
|
96
80
|
}
|
97
|
-
|
98
81
|
}
|
99
82
|
|
100
83
|
table {
|
101
84
|
width: 100%;
|
102
|
-
border-collapse:
|
85
|
+
border-collapse: separate;
|
86
|
+
|
103
87
|
transform: translateZ(0);
|
104
88
|
table-layout: fixed;
|
105
89
|
align-self: flex-start;
|
@@ -147,6 +131,9 @@
|
|
147
131
|
&.selection {
|
148
132
|
padding: 0;
|
149
133
|
text-align: center;
|
134
|
+
display: flex;
|
135
|
+
align-items: center;
|
136
|
+
justify-content: center;
|
150
137
|
}
|
151
138
|
|
152
139
|
&.expand-cell {
|
@@ -158,7 +145,6 @@
|
|
158
145
|
}
|
159
146
|
}
|
160
147
|
|
161
|
-
|
162
148
|
.expand-btn-action {
|
163
149
|
display: flex;
|
164
150
|
padding: 0 16px;
|
@@ -169,14 +155,6 @@
|
|
169
155
|
&.column_fixed {
|
170
156
|
position: sticky;
|
171
157
|
z-index: 1;
|
172
|
-
|
173
|
-
&.column_fixed_left {
|
174
|
-
left: 0;
|
175
|
-
}
|
176
|
-
|
177
|
-
&.column_fixed_right {
|
178
|
-
right: 0;
|
179
|
-
}
|
180
158
|
}
|
181
159
|
|
182
160
|
&.row_expend {
|
@@ -233,6 +211,11 @@
|
|
233
211
|
background-color: #3785ff;
|
234
212
|
content: '';
|
235
213
|
transform: translateX(50%);
|
214
|
+
cursor: col-resize;
|
215
|
+
}
|
216
|
+
|
217
|
+
.cell {
|
218
|
+
cursor: col-resize;
|
236
219
|
}
|
237
220
|
}
|
238
221
|
|
@@ -250,7 +233,7 @@
|
|
250
233
|
}
|
251
234
|
|
252
235
|
&.column_fixed {
|
253
|
-
transform: translateX(var(--
|
236
|
+
transform: translateX(var(--translate-x));
|
254
237
|
}
|
255
238
|
}
|
256
239
|
}
|
@@ -259,9 +242,9 @@
|
|
259
242
|
tr {
|
260
243
|
td {
|
261
244
|
background-color: #fff;
|
262
|
-
border-top: 1px solid
|
263
|
-
border-bottom: 1px solid
|
264
|
-
border-right: 1px solid
|
245
|
+
border-top: 1px solid @table-bg-color;
|
246
|
+
border-bottom: 1px solid @table-bg-color;
|
247
|
+
border-right: 1px solid @table-bg-color;
|
265
248
|
|
266
249
|
box-sizing: border-box;
|
267
250
|
|
@@ -272,7 +255,7 @@
|
|
272
255
|
.cell {
|
273
256
|
display: block;
|
274
257
|
width: 100%;
|
275
|
-
line-height: calc(var(--row-height) -
|
258
|
+
line-height: calc(var(--row-height) - 4px);
|
276
259
|
box-sizing: border-box;
|
277
260
|
|
278
261
|
&.drag {
|
@@ -287,6 +270,7 @@
|
|
287
270
|
td {
|
288
271
|
&:not(.empty-cell) {
|
289
272
|
background: @table-row-hover-bg-color;
|
273
|
+
border-right-color: @table-row-hover-bg-color;
|
290
274
|
}
|
291
275
|
}
|
292
276
|
}
|
@@ -294,7 +278,7 @@
|
|
294
278
|
|
295
279
|
&.--drag-start {
|
296
280
|
td {
|
297
|
-
background: #fff!important;
|
281
|
+
background: #fff !important;
|
298
282
|
}
|
299
283
|
}
|
300
284
|
}
|
@@ -307,20 +291,28 @@
|
|
307
291
|
z-index: 2;
|
308
292
|
overflow: hidden;
|
309
293
|
background-color: var(--background-color);
|
294
|
+
height: var(--row-height);
|
310
295
|
|
311
296
|
.col-resize-drag {
|
312
297
|
position: absolute;
|
313
298
|
top: 0;
|
314
|
-
|
299
|
+
left: 0;
|
315
300
|
bottom: 0;
|
316
301
|
z-index: 1;
|
317
302
|
width: 6px;
|
318
303
|
background-color: #3785ff;
|
319
|
-
transform:
|
304
|
+
transform: translate3d(var(--drag-offset-h-x), 0, 0);
|
305
|
+
&:hover {
|
306
|
+
cursor: ew-resize !important;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
|
310
|
+
.@{bk-prefix}-table-fixed {
|
311
|
+
transform: translate3d(0, 0, 0);
|
320
312
|
}
|
321
313
|
|
322
314
|
thead {
|
323
|
-
transform:
|
315
|
+
transform: translate3d(var(--translate-x-1), 0, 0);
|
324
316
|
}
|
325
317
|
|
326
318
|
.table-head-settings {
|
@@ -380,19 +372,11 @@
|
|
380
372
|
border-top: 1px solid @table-border-color;
|
381
373
|
border-right: 1px solid @table-border-color;
|
382
374
|
border-left: 1px solid @table-border-color;
|
383
|
-
|
384
|
-
.@{bk-prefix}-table-footer {
|
385
|
-
border-bottom: 1px solid @table-border-color;
|
386
|
-
}
|
387
|
-
|
388
375
|
}
|
389
376
|
|
390
377
|
&.bordered-horizontal {
|
391
378
|
border-top: 1px solid @table-border-color;
|
392
|
-
|
393
|
-
.@{bk-prefix}-table-footer {
|
394
|
-
border-bottom: 1px solid @table-border-color;
|
395
|
-
}
|
379
|
+
border-bottom: 1px solid @table-border-color;
|
396
380
|
}
|
397
381
|
|
398
382
|
&.bordered-outer,
|
@@ -418,27 +402,22 @@
|
|
418
402
|
tr {
|
419
403
|
td {
|
420
404
|
border-right-color: @table-border-color;
|
421
|
-
|
422
|
-
&:last-child {
|
423
|
-
border-right-color: transparent;
|
424
|
-
}
|
425
405
|
}
|
426
406
|
}
|
427
407
|
}
|
428
408
|
}
|
429
|
-
|
430
409
|
}
|
431
410
|
|
432
411
|
th,
|
433
412
|
td {
|
434
|
-
border-right: 1px solid
|
413
|
+
border-right: 1px solid @table-bg-color;
|
435
414
|
}
|
436
415
|
|
437
416
|
&.bordered-none {
|
438
417
|
th,
|
439
418
|
td {
|
440
419
|
border-top: none;
|
441
|
-
border-right: 1px solid
|
420
|
+
border-right: 1px solid @table-bg-color;
|
442
421
|
border-bottom: none;
|
443
422
|
border-left: none;
|
444
423
|
}
|
@@ -448,32 +427,24 @@
|
|
448
427
|
position: absolute;
|
449
428
|
top: 0;
|
450
429
|
right: 0;
|
451
|
-
bottom:
|
430
|
+
bottom: 0;
|
452
431
|
left: 0;
|
453
432
|
pointer-events: none;
|
433
|
+
transform: translate3d(var(--translate-x), var(--translate-y), 0);
|
434
|
+
|
435
|
+
.column_fixed_right {
|
436
|
+
box-shadow: var(--shadow-right);
|
437
|
+
}
|
438
|
+
|
439
|
+
.column_fixed_left {
|
440
|
+
box-shadow: var(--shadow-left);
|
441
|
+
}
|
454
442
|
|
455
443
|
.column_fixed {
|
456
444
|
position: absolute;
|
457
445
|
z-index: 2;
|
458
|
-
|
459
|
-
|
460
|
-
top: 0;
|
461
|
-
left: 0;
|
462
|
-
|
463
|
-
&.shadow {
|
464
|
-
box-shadow: 0 0 10px rgb(0 0 0 / 12%);
|
465
|
-
}
|
466
|
-
}
|
467
|
-
|
468
|
-
&.column_fixed_right {
|
469
|
-
top: 0;
|
470
|
-
right: 0;
|
471
|
-
|
472
|
-
|
473
|
-
&.shadow {
|
474
|
-
box-shadow: 0 0 10px rgb(0 0 0 / 12%);
|
475
|
-
}
|
476
|
-
}
|
446
|
+
bottom: 0;
|
447
|
+
top: 0;
|
477
448
|
}
|
478
449
|
|
479
450
|
.scroll-loading {
|
@@ -489,6 +460,13 @@
|
|
489
460
|
}
|
490
461
|
}
|
491
462
|
|
463
|
+
.@{bk-prefix}-table-fixed-bottom {
|
464
|
+
position: absolute;
|
465
|
+
right: 0;
|
466
|
+
bottom: 0;
|
467
|
+
left: 0;
|
468
|
+
text-align: center;
|
469
|
+
}
|
492
470
|
colgroup {
|
493
471
|
col {
|
494
472
|
background: @table-bg-color;
|
@@ -509,4 +487,4 @@
|
|
509
487
|
.stripe-row {
|
510
488
|
background: #fafbfd;
|
511
489
|
}
|
512
|
-
}
|
490
|
+
}
|