bkui-vue 2.0.1-beta.60 → 2.0.1-beta.60.fix.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -15
- package/dist/index.cjs.js +59 -59
- package/dist/index.esm.js +18048 -18492
- package/dist/index.umd.js +60 -60
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -262
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.d.ts +7 -0
- package/lib/alert/alert.variable.css +1 -262
- package/lib/alert/index.d.ts +15 -0
- package/lib/alert/index.js +6 -6
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.variable.css +4 -395
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -262
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -397
- package/lib/button/button.css +143 -273
- package/lib/button/button.variable.css +1 -262
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -396
- package/lib/cascader/cascader.css +23 -153
- package/lib/cascader/cascader.variable.css +24 -415
- package/lib/cascader/index.js +1 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +9 -147
- package/lib/checkbox/checkbox.d.ts +0 -32
- package/lib/checkbox/checkbox.less +0 -12
- package/lib/checkbox/checkbox.variable.css +1 -270
- package/lib/checkbox/index.d.ts +11 -46
- package/lib/checkbox/index.js +4 -9
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -262
- package/lib/collapse/collapse.css +1 -131
- package/lib/collapse/collapse.variable.css +1 -262
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -262
- package/lib/color-picker/color-picker.css +0 -130
- package/lib/color-picker/color-picker.variable.css +1 -262
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -262
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -392
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.d.ts +9 -0
- package/lib/date-picker/date-picker.variable.css +1 -262
- package/lib/date-picker/index.d.ts +19 -0
- package/lib/date-picker/index.js +17 -29
- package/lib/date-picker/panel/time-range.d.ts +9 -0
- package/lib/date-picker/panel/time.d.ts +10 -1
- package/lib/date-picker/props.d.ts +4 -0
- package/lib/date-picker/time-picker.d.ts +9 -0
- package/lib/dialog/dialog.css +8 -138
- package/lib/dialog/dialog.d.ts +5 -16
- package/lib/dialog/dialog.variable.css +9 -400
- package/lib/dialog/index.d.ts +11 -34
- package/lib/dialog/props.d.ts +2 -7
- package/lib/directives/index.js +6 -12
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.variable.css +1 -262
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.variable.css +1 -392
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.variable.css +1 -262
- package/lib/fixed-navbar/fixed-navbar.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -262
- package/lib/form/form-item.d.ts +18 -6
- package/lib/form/form.css +0 -130
- package/lib/form/form.variable.css +1 -262
- package/lib/form/index.d.ts +13 -6
- package/lib/form/index.js +6 -8
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.variable.css +1 -262
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -392
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +5 -3
- package/lib/info-box/info-box.css +4 -134
- package/lib/info-box/info-box.variable.css +1 -262
- package/lib/input/index.js +9 -36
- package/lib/input/input.css +72 -202
- package/lib/input/input.variable.css +73 -464
- package/lib/link/link.css +16 -146
- package/lib/link/link.variable.css +1 -262
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.variable.css +17 -408
- package/lib/menu/menu.css +18 -148
- package/lib/menu/menu.variable.css +19 -410
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -262
- package/lib/message/message.css +22 -153
- package/lib/message/message.less +2 -3
- package/lib/message/message.variable.css +2 -264
- package/lib/modal/index.d.ts +13 -41
- package/lib/modal/index.js +18 -33
- package/lib/modal/modal.css +4 -134
- package/lib/modal/modal.d.ts +5 -16
- package/lib/modal/modal.variable.css +5 -396
- package/lib/modal/props.mixin.d.ts +2 -7
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.variable.css +1 -262
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -262
- package/lib/overflow-title/components/overflow-title.d.ts +7 -0
- package/lib/overflow-title/index.d.ts +15 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/props.d.ts +3 -0
- package/lib/pagination/index.d.ts +19 -0
- package/lib/pagination/index.js +9 -47
- package/lib/pagination/pagination.css +9 -139
- package/lib/pagination/pagination.d.ts +13 -0
- package/lib/pagination/pagination.less +13 -14
- package/lib/pagination/pagination.variable.css +9 -270
- package/lib/pop-confirm/index.d.ts +32 -0
- package/lib/pop-confirm/index.js +18 -16
- package/lib/pop-confirm/pop-confirm.css +1 -133
- package/lib/pop-confirm/pop-confirm.d.ts +14 -0
- package/lib/pop-confirm/pop-confirm.less +1 -3
- package/lib/pop-confirm/pop-confirm.variable.css +2 -265
- package/lib/pop-confirm/props.d.ts +7 -1
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.variable.css +1 -262
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -262
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.variable.css +5 -396
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.variable.css +1 -262
- package/lib/rate/rate.css +0 -130
- package/lib/rate/rate.variable.css +1 -262
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.variable.css +1 -262
- package/lib/scrollbar/index.d.ts +13 -133
- package/lib/scrollbar/index.js +18444 -1343
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/{styles/themes/themes.css → scrollbar/scrollbar.variable.css} +76 -2
- package/lib/search-select/index.d.ts +72 -40
- package/lib/search-select/index.js +67 -85
- package/lib/search-select/input.d.ts +4 -5
- package/lib/search-select/search-select.css +33 -163
- package/lib/search-select/search-select.d.ts +39 -15
- package/lib/search-select/search-select.variable.css +34 -425
- package/lib/search-select/selected.d.ts +9 -11
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/common.d.ts +2 -2
- package/lib/select/index.d.ts +4 -32
- package/lib/select/index.js +59 -119
- package/lib/select/option.d.ts +5 -4
- package/lib/select/select.css +43 -175
- package/lib/select/select.d.ts +0 -12
- package/lib/select/select.less +4 -7
- package/lib/select/select.variable.css +44 -437
- package/lib/select/type.d.ts +10 -9
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +1 -72
- package/lib/sideslider/index.d.ts +11 -34
- package/lib/sideslider/index.js +0 -1
- package/lib/sideslider/sideslider.css +9 -138
- package/lib/sideslider/sideslider.d.ts +5 -16
- package/lib/sideslider/sideslider.less +8 -7
- package/lib/sideslider/sideslider.variable.css +9 -269
- package/lib/slider/slider.css +5 -135
- package/lib/slider/slider.variable.css +1 -262
- package/lib/steps/index.d.ts +18 -3
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.d.ts +11 -1
- package/lib/steps/steps.variable.css +1 -262
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -262
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -262
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -262
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -262
- package/lib/styles/themes/themes.less +129 -299
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -262
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.variable.css +18 -409
- package/lib/tab/index.d.ts +92 -0
- package/lib/tab/index.js +14 -1
- package/lib/tab/props.d.ts +35 -0
- package/lib/tab/tab-nav.d.ts +45 -2
- package/lib/tab/tab.css +17 -147
- package/lib/tab/tab.d.ts +44 -0
- package/lib/tab/tab.variable.css +1 -262
- package/lib/table/components/table-cell.d.ts +0 -22
- package/lib/table/components/table-column.d.ts +44 -1
- package/lib/table/const.d.ts +2 -15
- package/lib/table/events.d.ts +98 -2
- package/lib/table/index.d.ts +561 -89
- package/lib/table/index.js +3333 -3812
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +0 -131
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.less +0 -1
- package/lib/table/plugins/head-filter.variable.css +1 -263
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -262
- package/lib/table/plugins/settings.css +0 -131
- package/lib/table/plugins/settings.d.ts +16 -0
- package/lib/table/plugins/settings.less +0 -1
- package/lib/table/plugins/settings.variable.css +1 -263
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +35 -0
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +27 -0
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +23 -0
- package/lib/table/{hooks → plugins}/use-shift-key.d.ts +2 -4
- package/lib/table/props.d.ts +30 -92
- package/lib/table/table.css +327 -597
- package/lib/table/table.d.ts +181 -47
- package/lib/table/table.less +101 -228
- package/lib/table/table.variable.css +328 -859
- package/lib/table/use-attributes.d.ts +62 -0
- package/lib/table/use-column.d.ts +155 -0
- package/lib/table/use-common.d.ts +1679 -0
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +18 -45
- package/lib/table-column/index.d.ts +132 -3
- package/lib/table-column/index.js +28 -17367
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.css +6 -136
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -263
- package/lib/tag-input/index.js +3 -3
- package/lib/tag-input/tag-input.css +18 -148
- package/lib/tag-input/tag-input.d.ts +14 -2
- package/lib/tag-input/tag-input.variable.css +1 -262
- package/lib/time-picker/index.d.ts +19 -0
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -262
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -262
- package/lib/transfer/transfer.css +19 -149
- package/lib/transfer/transfer.variable.css +1 -262
- package/lib/tree/constant.d.ts +1 -3
- package/lib/tree/index.d.ts +7 -21
- package/lib/tree/index.js +18 -61
- package/lib/tree/props.d.ts +5 -12
- package/lib/tree/tree.css +78 -242
- package/lib/tree/tree.d.ts +3 -9
- package/lib/tree/tree.variable.css +79 -504
- package/lib/tree/use-node-action.d.ts +9 -10
- package/lib/tree/use-node-async.d.ts +1 -2
- package/lib/tree/use-node-attribute.d.ts +34 -42
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +5 -8
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +4 -27
- package/lib/upload/index.js +7 -30
- package/lib/upload/props.d.ts +2 -7
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.d.ts +2 -13
- package/lib/upload/upload.type.d.ts +0 -6
- package/lib/upload/upload.variable.css +28 -419
- package/lib/virtual-render/index.d.ts +46 -12
- package/lib/virtual-render/index.js +148 -17469
- package/lib/virtual-render/props.d.ts +9 -2
- package/lib/virtual-render/use-fix-top.d.ts +1 -1
- package/lib/virtual-render/use-scrollbar.d.ts +17 -4
- package/lib/virtual-render/v-virtual-render.d.ts +1 -7
- package/lib/virtual-render/virtual-render.css +69 -225
- package/lib/virtual-render/virtual-render.d.ts +22 -6
- package/lib/virtual-render/virtual-render.less +11 -2
- package/lib/virtual-render/virtual-render.variable.css +70 -487
- package/lib/volar.components.d.ts +0 -2
- package/package.json +1 -1
- package/lib/scrollbar/css/scrollbar.css +0 -239
- package/lib/scrollbar/css/scrollbar.less +0 -139
- package/lib/scrollbar/css/scrollbar.variable.css +0 -499
- package/lib/scrollbar/handlers/click-rail.d.ts +0 -2
- package/lib/scrollbar/handlers/drag-thumb.d.ts +0 -1
- package/lib/scrollbar/handlers/keyboard.d.ts +0 -2
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +0 -2
- package/lib/scrollbar/handlers/touch.d.ts +0 -4
- package/lib/scrollbar/helper/class-names.d.ts +0 -21
- package/lib/scrollbar/helper/css.d.ts +0 -3
- package/lib/scrollbar/helper/dom.d.ts +0 -4
- package/lib/scrollbar/helper/event-manager.d.ts +0 -20
- package/lib/scrollbar/helper/util.d.ts +0 -11
- package/lib/scrollbar/process-scroll-diff.d.ts +0 -1
- package/lib/scrollbar/update-geometry.d.ts +0 -8
- package/lib/shared/frame-throttle.d.ts +0 -15
- package/lib/styles/themes/themes.variable.css +0 -130
- package/lib/table/components/ghost-body.d.ts +0 -2
- package/lib/table/hooks/use-cell.d.ts +0 -20
- package/lib/table/hooks/use-column-resize.d.ts +0 -7
- package/lib/table/hooks/use-column-template.d.ts +0 -5
- package/lib/table/hooks/use-columns.d.ts +0 -69
- package/lib/table/hooks/use-fixed-column.d.ts +0 -10
- package/lib/table/hooks/use-head.d.ts +0 -16
- package/lib/table/hooks/use-layout.d.ts +0 -25
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -21
- package/lib/table/hooks/use-rows.d.ts +0 -30
- package/lib/table/hooks/use-settings.d.ts +0 -134
- /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-scroll-loading.d.ts +0 -0
@@ -1,263 +1,3 @@
|
|
1
|
-
:root {
|
2
|
-
--bk-prefix: bk;
|
3
|
-
--popover-max-height: var(--popover-max-height);
|
4
|
-
--primary-color: var(--primary-color);
|
5
|
-
--success-color: var(--success-color);
|
6
|
-
--warning-color: var(--warning-color);
|
7
|
-
--danger-color: var(--danger-color);
|
8
|
-
--default-color: var(--default-color);
|
9
|
-
--gray-color: var(--gray-color);
|
10
|
-
--light-gray: var(--light-gray);
|
11
|
-
--white-color: var(--white-color);
|
12
|
-
--whitesmoke-color: var(--whitesmoke-color);
|
13
|
-
--disable-color: var(--disable-color);
|
14
|
-
--disable-bg-color: var(--disable-bg-color);
|
15
|
-
--border-color: var(--border-color);
|
16
|
-
--font-size-base: var(--font-size-base);
|
17
|
-
--font-size-medium: var(--font-size-medium);
|
18
|
-
--font-size-large: var(--font-size-large);
|
19
|
-
--line-height-base: var(--line-height-base);
|
20
|
-
--line-height-medium: var(--line-height-medium);
|
21
|
-
--line-height-large: var(--line-height-large);
|
22
|
-
--component-size-small: var(--component-size-small);
|
23
|
-
--component-size-base: var(--component-size-base);
|
24
|
-
--component-size-large: var(--component-size-large);
|
25
|
-
--component-size-small-padding: var(--component-size-small-padding);
|
26
|
-
--component-size-base-padding: var(--component-size-base-padding);
|
27
|
-
--component-size-large-padding: var(--component-size-large-padding);
|
28
|
-
--border-width-base: var(--border-width-base);
|
29
|
-
--border-style-base: var(--border-style-base);
|
30
|
-
--border-radius-base: var(--border-radius-base);
|
31
|
-
--border-style-color: var(--border-style-color);
|
32
|
-
--input-disabled-bg: var(--input-disabled-bg);
|
33
|
-
--input-disabled-border: var(--input-disabled-border);
|
34
|
-
--input-height-base: var(--input-height-base);
|
35
|
-
--input-color: var(--input-color);
|
36
|
-
--input-bg: var(--input-bg);
|
37
|
-
--input-border-color: var(--input-border-color);
|
38
|
-
--input-broder-radius: var(--input-broder-radius);
|
39
|
-
--input-shadow-color: var(--input-shadow-color);
|
40
|
-
--input-horizontal-padding: var(--input-horizontal-padding);
|
41
|
-
--input-block-color: var(--input-block-color);
|
42
|
-
--input-block-hover-color: var(--input-block-hover-color);
|
43
|
-
--input-icon-size: var(--input-icon-size);
|
44
|
-
--input-maxlength-color: var(--input-maxlength-color);
|
45
|
-
--button-primary-hover-color: var(--button-primary-hover-color);
|
46
|
-
--button-danger-hover-color: var(--button-danger-hover-color);
|
47
|
-
--button-success-hover-color: var(--button-success-hover-color);
|
48
|
-
--button-warning-hover-color: var(--button-warning-hover-color);
|
49
|
-
--button-default-hover-border-color: var(--button-default-hover-border-color);
|
50
|
-
--button-primary-active-color: var(--button-primary-active-color);
|
51
|
-
--button-danger-active-color: var(--button-danger-active-color);
|
52
|
-
--button-success-active-color: var(--button-success-active-color);
|
53
|
-
--button-warning-active-color: var(--button-warning-active-color);
|
54
|
-
--button-selected-bg-color: var(--button-selected-bg-color);
|
55
|
-
--button-disabled-selected-bg-color: var(--button-disabled-selected-bg-color);
|
56
|
-
--radio-font-color: var(--radio-font-color);
|
57
|
-
--radio-active-color: var(--radio-active-color);
|
58
|
-
--radio-hover-border-color: var(--radio-hover-border-color);
|
59
|
-
--radio-disabled-border: var(--radio-disabled-border);
|
60
|
-
--radio-disabled-font-color: var(--radio-disabled-font-color);
|
61
|
-
--radio-disabled-checked-bg: var(--radio-disabled-checked-bg);
|
62
|
-
--radio-button-checked-bg: var(--radio-button-checked-bg);
|
63
|
-
--radio-button-disabled-checked-bg: var(--radio-button-disabled-checked-bg);
|
64
|
-
--checkbox-disabled-checked-bg: var(--checkbox-disabled-checked-bg);
|
65
|
-
--fixed-navbar-background: var(--fixed-navbar-background);
|
66
|
-
--fixed-navbar-boxshadow-color: var(--fixed-navbar-boxshadow-color);
|
67
|
-
--switch-default-color: var(--switch-default-color);
|
68
|
-
--switch-grey-color: var(--switch-grey-color);
|
69
|
-
--breadcrumb-black-color: var(--breadcrumb-black-color);
|
70
|
-
--breadcrumb-primary-hover-color: var(--breadcrumb-primary-hover-color);
|
71
|
-
--breadcrumb-fn-main-color: var(--breadcrumb-fn-main-color);
|
72
|
-
--link-default-hover-color: var(--link-default-hover-color);
|
73
|
-
--link-primary-hover-color: var(--link-primary-hover-color);
|
74
|
-
--link-success-hover-color: var(--link-success-hover-color);
|
75
|
-
--link-warning-hover-color: var(--link-warning-hover-color);
|
76
|
-
--link-danger-hover-color: var(--link-danger-hover-color);
|
77
|
-
--link-default-disabled-color: var(--link-default-disabled-color);
|
78
|
-
--link-primary-disabled-color: var(--link-primary-disabled-color);
|
79
|
-
--link-success-disabled-color: var(--link-success-disabled-color);
|
80
|
-
--link-warning-disabled-color: var(--link-warning-disabled-color);
|
81
|
-
--link-danger-disabled-color: var(--link-danger-disabled-color);
|
82
|
-
--message-color: var(--message-color);
|
83
|
-
--message-primary-bg-color: var(--message-primary-bg-color);
|
84
|
-
--message-primary-border-color: var(--message-primary-border-color);
|
85
|
-
--message-primary-shadow-color: var(--message-primary-shadow-color);
|
86
|
-
--message-warning-bg-color: var(--message-warning-bg-color);
|
87
|
-
--message-warning-border-color: var(--message-warning-border-color);
|
88
|
-
--message-warning-shadow-color: var(--message-warning-shadow-color);
|
89
|
-
--message-success-bg-color: var(--message-success-bg-color);
|
90
|
-
--message-success-border-color: var(--message-success-border-color);
|
91
|
-
--message-success-shadow-color: var(--message-success-shadow-color);
|
92
|
-
--message-danger-bg-color: var(--message-danger-bg-color);
|
93
|
-
--message-danger-border-color: var(--message-danger-border-color);
|
94
|
-
--message-danger-shadow-color: var(--message-danger-shadow-color);
|
95
|
-
--slider-default-bg: var(--slider-default-bg);
|
96
|
-
--slider-disable-bar-bg: var(--slider-disable-bar-bg);
|
97
|
-
--menu-bg-color: var(--menu-bg-color);
|
98
|
-
--submenu-bg-color: var(--submenu-bg-color);
|
99
|
-
--menu-active-bg-color: var(--menu-active-bg-color);
|
100
|
-
--menu-color: var(--menu-color);
|
101
|
-
--menu-group-color: var(--menu-group-color);
|
102
|
-
--menu-width: var(--menu-width);
|
103
|
-
--menu-collapse-width: var(--menu-collapse-width);
|
104
|
-
--menu-active-color: var(--menu-active-color);
|
105
|
-
--nav-header-bg-color: var(--nav-header-bg-color);
|
106
|
-
--nav-bg-color: var(--nav-bg-color);
|
107
|
-
--date-picker-disabled-bg: var(--date-picker-disabled-bg);
|
108
|
-
--date-picker-dropdown-mb: var(--date-picker-dropdown-mb);
|
109
|
-
--date-picker-dropdown-bg: var(--date-picker-dropdown-bg);
|
110
|
-
--table-bg-color: var(--table-bg-color);
|
111
|
-
--table-border-color: var(--table-border-color);
|
112
|
-
--table-strip-color: var(--table-strip-color);
|
113
|
-
--table-head-bg-color: var(--table-head-bg-color);
|
114
|
-
--table-head-font-color: var(--table-head-font-color);
|
115
|
-
--table-body-font-color: var(--table-body-font-color);
|
116
|
-
--table-row-hover-bg-color: var(--table-row-hover-bg-color);
|
117
|
-
--table-row-active-bg-color: var(--table-row-active-bg-color);
|
118
|
-
--cascader-panel-border-color: var(--cascader-panel-border-color);
|
119
|
-
--cascader-panel-hover: var(--cascader-panel-hover);
|
120
|
-
--cascader-panel-active: var(--cascader-panel-active);
|
121
|
-
--cascader-panel-disabled-bg: var(--cascader-panel-disabled-bg);
|
122
|
-
--search-select-focus-border-color: var(--search-select-focus-border-color);
|
123
|
-
--search-select-focus-color: var(--search-select-focus-color);
|
124
|
-
--search-select-font-color: var(--search-select-font-color);
|
125
|
-
--search-select-placeholder-color: var(--search-select-placeholder-color);
|
126
|
-
--search-select-message-color: var(--search-select-message-color);
|
127
|
-
--search-select-menu-border-color: var(--search-select-menu-border-color);
|
128
|
-
--select-active-color: var(--select-active-color);
|
129
|
-
--select-hover-color: var(--select-hover-color);
|
130
|
-
}
|
131
|
-
:root :root {
|
132
|
-
--bk-prefix: bk;
|
133
|
-
--popover-max-height: 216px;
|
134
|
-
--primary-color: #3a84ff;
|
135
|
-
--success-color: #2dcb56;
|
136
|
-
--warning-color: #ff9c01;
|
137
|
-
--danger-color: #ea3636;
|
138
|
-
--default-color: #63656e;
|
139
|
-
--gray-color: #979ba5;
|
140
|
-
--light-gray: #c4c6cc;
|
141
|
-
--white-color: white;
|
142
|
-
--whitesmoke-color: #fafbfd;
|
143
|
-
--disable-color: #dcdee5;
|
144
|
-
--disable-bg-color: #f9fafd;
|
145
|
-
--border-color: #dcdee5;
|
146
|
-
--font-size-base: 12px;
|
147
|
-
--font-size-medium: 14px;
|
148
|
-
--font-size-large: 16px;
|
149
|
-
--line-height-base: 16px;
|
150
|
-
--line-height-medium: 16px;
|
151
|
-
--line-height-large: 18px;
|
152
|
-
--component-size-small: 26px;
|
153
|
-
--component-size-base: 32px;
|
154
|
-
--component-size-large: 40px;
|
155
|
-
--component-size-small-padding: 0 12px;
|
156
|
-
--component-size-base-padding: 0 14px;
|
157
|
-
--component-size-large-padding: 0 16px;
|
158
|
-
--border-width-base: 1px;
|
159
|
-
--border-style-base: solid;
|
160
|
-
--border-radius-base: 2px;
|
161
|
-
--border-style-color: var(--light-gray);
|
162
|
-
--input-disabled-bg: #fafbfd;
|
163
|
-
--input-disabled-border: var(--disable-color);
|
164
|
-
--input-height-base: var(--component-size-base);
|
165
|
-
--input-color: var(--default-color);
|
166
|
-
--input-bg: white;
|
167
|
-
--input-border-color: var(--light-gray);
|
168
|
-
--input-broder-radius: 3px;
|
169
|
-
--input-shadow-color: #a3c5fd;
|
170
|
-
--input-horizontal-padding: 8px;
|
171
|
-
--input-block-color: #f5f7fa;
|
172
|
-
--input-block-hover-color: #eaebf0;
|
173
|
-
--input-icon-size: var(--font-size-medium);
|
174
|
-
--input-maxlength-color: #979ba5;
|
175
|
-
--button-primary-hover-color: #5594fa;
|
176
|
-
--button-danger-hover-color: #ff5656;
|
177
|
-
--button-success-hover-color: #45e35f;
|
178
|
-
--button-warning-hover-color: #ffb848;
|
179
|
-
--button-default-hover-border-color: #979ba5;
|
180
|
-
--button-primary-active-color: #2c77f4;
|
181
|
-
--button-danger-active-color: #db2626;
|
182
|
-
--button-success-active-color: #1ab943;
|
183
|
-
--button-warning-active-color: #eb9000;
|
184
|
-
--button-selected-bg-color: #e1ecff;
|
185
|
-
--button-disabled-selected-bg-color: #f0f1f5;
|
186
|
-
--radio-font-color: #63656e;
|
187
|
-
--radio-active-color: #3a84ff;
|
188
|
-
--radio-hover-border-color: #979ba5;
|
189
|
-
--radio-disabled-border: #dcdee5;
|
190
|
-
--radio-disabled-font-color: #c4c6cc;
|
191
|
-
--radio-disabled-checked-bg: #a3c5fd;
|
192
|
-
--radio-button-checked-bg: #e1ecff;
|
193
|
-
--radio-button-disabled-checked-bg: #fafbfd;
|
194
|
-
--checkbox-disabled-checked-bg: #a3c5fd;
|
195
|
-
--fixed-navbar-background: #fff;
|
196
|
-
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
197
|
-
--switch-default-color: #fff;
|
198
|
-
--switch-grey-color: #c4c6cc;
|
199
|
-
--breadcrumb-black-color: #979ba5;
|
200
|
-
--breadcrumb-primary-hover-color: #0082ff;
|
201
|
-
--breadcrumb-fn-main-color: #63656e;
|
202
|
-
--link-default-hover-color: #979ba5;
|
203
|
-
--link-primary-hover-color: #699df4;
|
204
|
-
--link-success-hover-color: #45e35f;
|
205
|
-
--link-warning-hover-color: #ffb848;
|
206
|
-
--link-danger-hover-color: #ff5656;
|
207
|
-
--link-default-disabled-color: #dcdee5;
|
208
|
-
--link-primary-disabled-color: #a3c5fd;
|
209
|
-
--link-success-disabled-color: #94f5a4;
|
210
|
-
--link-warning-disabled-color: #ffd695;
|
211
|
-
--link-danger-disabled-color: #fd9c9c;
|
212
|
-
--message-color: var(--default-color);
|
213
|
-
--message-primary-bg-color: #f0f8ff;
|
214
|
-
--message-primary-border-color: #e1ecff;
|
215
|
-
--message-primary-shadow-color: #e1e8f4;
|
216
|
-
--message-warning-bg-color: #fff4e2;
|
217
|
-
--message-warning-border-color: #ffe8c3;
|
218
|
-
--message-warning-shadow-color: #ede6db;
|
219
|
-
--message-success-bg-color: #f2fff4;
|
220
|
-
--message-success-border-color: #dcffe2;
|
221
|
-
--message-success-shadow-color: #cef0d7;
|
222
|
-
--message-danger-bg-color: #ffeded;
|
223
|
-
--message-danger-border-color: #ffdddd;
|
224
|
-
--message-danger-shadow-color: #f6dada;
|
225
|
-
--slider-default-bg: #dcdee5;
|
226
|
-
--slider-disable-bar-bg: #979ba5;
|
227
|
-
--menu-bg-color: #182132;
|
228
|
-
--submenu-bg-color: #151d2c;
|
229
|
-
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
230
|
-
--menu-color: #96a2b9;
|
231
|
-
--menu-group-color: var(--default-color);
|
232
|
-
--menu-width: 260px;
|
233
|
-
--menu-collapse-width: 60px;
|
234
|
-
--menu-active-color: white;
|
235
|
-
--nav-header-bg-color: #182132;
|
236
|
-
--nav-bg-color: #182132;
|
237
|
-
--date-picker-disabled-bg: #fafbfd;
|
238
|
-
--date-picker-dropdown-mb: 4px;
|
239
|
-
--date-picker-dropdown-bg: #fff;
|
240
|
-
--table-bg-color: var(--white-color);
|
241
|
-
--table-border-color: #dcdee5;
|
242
|
-
--table-strip-color: #fafbfd;
|
243
|
-
--table-head-bg-color: #fafbfd;
|
244
|
-
--table-head-font-color: #313238;
|
245
|
-
--table-body-font-color: #63656e;
|
246
|
-
--table-row-hover-bg-color: #f5f7fa;
|
247
|
-
--table-row-active-bg-color: #f0f1f5;
|
248
|
-
--cascader-panel-border-color: #dcdee5;
|
249
|
-
--cascader-panel-hover: #f5f7fa;
|
250
|
-
--cascader-panel-active: #e1ecff;
|
251
|
-
--cascader-panel-disabled-bg: #fff;
|
252
|
-
--search-select-focus-border-color: var(--primary-color);
|
253
|
-
--search-select-focus-color: #3c96ff;
|
254
|
-
--search-select-font-color: var(--default-color);
|
255
|
-
--search-select-placeholder-color: var(--light-gray);
|
256
|
-
--search-select-message-color: var(--danger-color);
|
257
|
-
--search-select-menu-border-color: var(--disable-color);
|
258
|
-
--select-active-color: #e1ecff;
|
259
|
-
--select-hover-color: #f5f7fa;
|
260
|
-
}
|
261
1
|
:root {
|
262
2
|
--bk-prefix: bk;
|
263
3
|
--popover-max-height: 216px;
|
@@ -369,10 +109,9 @@
|
|
369
109
|
--date-picker-dropdown-bg: #fff;
|
370
110
|
--table-bg-color: var(--white-color);
|
371
111
|
--table-border-color: #dcdee5;
|
372
|
-
--table-strip-color: #fafbfd;
|
373
112
|
--table-head-bg-color: #fafbfd;
|
374
113
|
--table-head-font-color: #313238;
|
375
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656E;
|
376
115
|
--table-row-hover-bg-color: #f5f7fa;
|
377
116
|
--table-row-active-bg-color: #f0f1f5;
|
378
117
|
--cascader-panel-border-color: #dcdee5;
|
@@ -469,7 +208,6 @@
|
|
469
208
|
align-items: flex-start;
|
470
209
|
flex-wrap: wrap;
|
471
210
|
margin-bottom: 16px;
|
472
|
-
overflow: auto;
|
473
211
|
}
|
474
212
|
.bk-table-settings[data-bk-table-settings-theme='true'] .setting-content .setting-body .setting-body-fields .field-item {
|
475
213
|
width: 150px;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { TablePropTypes } from '../props';
|
2
|
+
/**
|
3
|
+
* 处理Props中的ActiveColumn,解析为统一的数组格式
|
4
|
+
* @param props
|
5
|
+
* @returns
|
6
|
+
*/
|
7
|
+
export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
|
8
|
+
/**
|
9
|
+
* table列处理模块
|
10
|
+
* @param props
|
11
|
+
* @returns
|
12
|
+
*/
|
13
|
+
declare const _default: (props: TablePropTypes) => {
|
14
|
+
activeColumns: any[];
|
15
|
+
};
|
16
|
+
export default _default;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { type Ref } from 'vue';
|
2
|
+
import { ITableResponse } from '../use-attributes';
|
3
|
+
declare const _default: (tableResp: ITableResponse, immediate: boolean, head: Ref<HTMLElement>) => {
|
4
|
+
registerResizeEvent: () => void;
|
5
|
+
resetResizeEvents: () => void;
|
6
|
+
dragOffsetX: Ref<number>;
|
7
|
+
dragOffsetXStyle: {
|
8
|
+
position: "absolute";
|
9
|
+
top: number;
|
10
|
+
bottom: number;
|
11
|
+
left: number;
|
12
|
+
width: string;
|
13
|
+
backgroundColor: string;
|
14
|
+
transform: string;
|
15
|
+
};
|
16
|
+
resizeColumnStyle: import("vue").ComputedRef<{
|
17
|
+
transform: string;
|
18
|
+
position: "absolute";
|
19
|
+
top: number;
|
20
|
+
bottom: number;
|
21
|
+
left: number;
|
22
|
+
width: string;
|
23
|
+
backgroundColor: string;
|
24
|
+
}>;
|
25
|
+
resizeHeadColStyle: import("vue").ComputedRef<{
|
26
|
+
width: string;
|
27
|
+
transform: string;
|
28
|
+
position: "absolute";
|
29
|
+
top: number;
|
30
|
+
bottom: number;
|
31
|
+
left: number;
|
32
|
+
backgroundColor: string;
|
33
|
+
}>;
|
34
|
+
};
|
35
|
+
export default _default;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SetupContext } from 'vue';
|
2
2
|
import { TablePropTypes } from '../props';
|
3
|
-
import {
|
4
|
-
declare const _default: (props: TablePropTypes,
|
3
|
+
import { ITableResponse } from '../use-attributes';
|
4
|
+
declare const _default: (props: TablePropTypes, resp: ITableResponse, ctx: SetupContext<any>) => {
|
5
5
|
onDragenter?: undefined;
|
6
6
|
onDragleave?: undefined;
|
7
7
|
onDragstart?: undefined;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { Column, TablePropTypes } from '../props';
|
3
|
+
import { ITableResponse } from '../use-attributes';
|
4
|
+
/**
|
5
|
+
* 固定列Hooks
|
6
|
+
*/
|
7
|
+
declare const _default: (props: TablePropTypes, tableResp: ITableResponse, head?: Ref<HTMLElement>) => {
|
8
|
+
fixedWrapperClass: string;
|
9
|
+
resolveFixedColumnStyle: (column: Column) => {
|
10
|
+
[x: string]: string;
|
11
|
+
};
|
12
|
+
resolveFixedColumns: (tableOffsetRight: any) => void;
|
13
|
+
fixedColumns: any[];
|
14
|
+
resolveColumnStyle: (colPos: string) => {
|
15
|
+
width: string;
|
16
|
+
backgroundColor: string;
|
17
|
+
bottom: string;
|
18
|
+
};
|
19
|
+
resolveColumnClass: (column: Column, scrollX?: any, offsetRight?: any) => {
|
20
|
+
column_fixed: boolean;
|
21
|
+
column_fixed_left: boolean;
|
22
|
+
column_fixed_right: boolean;
|
23
|
+
shadow: boolean;
|
24
|
+
};
|
25
|
+
updateFixClass: (tableOffsetRight: any) => void;
|
26
|
+
};
|
27
|
+
export default _default;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { SetupContext } from 'vue';
|
2
|
+
import { Column } from '../props';
|
3
|
+
import { ITableResponse } from '../use-attributes';
|
4
|
+
declare const _default: (props: any, context: SetupContext<any>, column: Column, tableResp: ITableResponse) => {
|
5
|
+
getTH: (classList: any, style: any, index: any) => JSX.Element;
|
6
|
+
};
|
7
|
+
export default _default;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Column, SortScope, TablePropTypes } from '../props';
|
2
|
+
/**
|
3
|
+
* 处理 Prop中的分页配置
|
4
|
+
* prop中的配置会覆盖本地的配置
|
5
|
+
* @param propPagination 用户传入的配置
|
6
|
+
* @param defVal 默认配置
|
7
|
+
* @returns 返回值
|
8
|
+
*/
|
9
|
+
export declare const resolvePaginationOption: (propPagination: any, defVal: any) => any;
|
10
|
+
declare const _default: (props: TablePropTypes) => {
|
11
|
+
pageData: any[];
|
12
|
+
indexData: any[];
|
13
|
+
localPagination: import("vue").Ref<any>;
|
14
|
+
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
|
15
|
+
resolveIndexData: () => Promise<void>;
|
16
|
+
resolvePageDataBySortList: (multiCol?: any) => void;
|
17
|
+
handlePaginationChange: (filterFn?: any, sortFn?: any) => void;
|
18
|
+
resetStartEndIndex: () => void;
|
19
|
+
getCurrentPageData: () => any[];
|
20
|
+
multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[], origin?: any) => void;
|
21
|
+
sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
|
22
|
+
};
|
23
|
+
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TablePropTypes } from '../props';
|
2
|
-
declare const
|
2
|
+
declare const _default: (props: TablePropTypes) => {
|
3
3
|
isShiftKeyDown: import("vue").Ref<boolean>;
|
4
4
|
setStore: (row: any, index: number) => boolean;
|
5
5
|
getStore: () => {
|
@@ -9,7 +9,5 @@ declare const multiShiftKey: (props: TablePropTypes) => {
|
|
9
9
|
clearStore: () => void;
|
10
10
|
setStoreStart: (row?: any, index?: any) => void;
|
11
11
|
clearStoreStart: () => void;
|
12
|
-
removeMultiCheckedEvents: () => void;
|
13
12
|
};
|
14
|
-
export
|
15
|
-
export default multiShiftKey;
|
13
|
+
export default _default;
|
package/lib/table/props.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ExtractPropTypes
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
2
|
import { IHeadColor, ROW_HOVER, SORT_OPTION } from './const';
|
3
3
|
export declare enum SortScope {
|
4
4
|
ALL = "all",
|
@@ -44,12 +44,11 @@ export declare enum FixedEnum {
|
|
44
44
|
}
|
45
45
|
export declare const fixedType: import("vue-types").VueTypeValidableDef<"left" | "right">;
|
46
46
|
export type IOverflowTooltipOption = {
|
47
|
-
content: ((col: Column, row:
|
48
|
-
disabled?: ((col: Column, row:
|
49
|
-
allowHtml?: boolean;
|
47
|
+
content: ((col: Column, row: any) => string) | string;
|
48
|
+
disabled?: ((col: Column, row: any) => boolean) | boolean;
|
50
49
|
watchCellResize?: boolean;
|
51
50
|
mode?: `${OverflowModeEnum}`;
|
52
|
-
popoverOption?:
|
51
|
+
popoverOption?: any;
|
53
52
|
resizerWay?: ResizerWay;
|
54
53
|
showHead?: boolean;
|
55
54
|
};
|
@@ -61,20 +60,16 @@ export type ISortOption = {
|
|
61
60
|
};
|
62
61
|
export declare const ISortType: import("vue-types").VueTypeDef<ISortPropShape>;
|
63
62
|
export type ISortShape = {
|
64
|
-
sortFn?:
|
63
|
+
sortFn?: Function;
|
65
64
|
sortScope?: SortScope;
|
66
65
|
value?: SORT_OPTION;
|
67
66
|
};
|
68
67
|
export type ISortPropShape = ISortShape | boolean | string;
|
69
68
|
export type IFilterShape = {
|
70
|
-
list:
|
71
|
-
|
72
|
-
text?: string;
|
73
|
-
value: string;
|
74
|
-
}[];
|
75
|
-
filterFn?: (...args: any[]) => boolean;
|
69
|
+
list: any[];
|
70
|
+
filterFn?: Function;
|
76
71
|
match?: FullEnum;
|
77
|
-
checked?:
|
72
|
+
checked?: any[];
|
78
73
|
filterScope?: SortScope;
|
79
74
|
btnSave?: boolean | string;
|
80
75
|
btnReset?: boolean | string;
|
@@ -122,15 +117,14 @@ export type Field = {
|
|
122
117
|
};
|
123
118
|
export type LabelFunctionString = ((_column: any, _index: any) => JSX.Element | boolean | number | string) | boolean | number | string;
|
124
119
|
export declare const LabelFunctionStringType: import("vue-types").VueTypeDef<LabelFunctionString>;
|
125
|
-
export type
|
126
|
-
cell
|
127
|
-
data
|
128
|
-
row
|
129
|
-
column
|
130
|
-
index
|
131
|
-
rows
|
132
|
-
};
|
133
|
-
export type RenderFunctionString = (args: HeadRenderArgs) => JSX.Element | boolean | number | string;
|
120
|
+
export type RenderFunctionString = ({ cell, data, row, column, index, rows, }: {
|
121
|
+
cell: any;
|
122
|
+
data: any;
|
123
|
+
row: any;
|
124
|
+
column: any;
|
125
|
+
index: any;
|
126
|
+
rows: any;
|
127
|
+
}) => JSX.Element | boolean | number | string;
|
134
128
|
export declare const RenderFunctionStringType: import("vue-types").VueTypeDef<RenderFunctionString>;
|
135
129
|
export type SpanFunctionString = (({ column, colIndex, row, rowIndex }: {
|
136
130
|
column: any;
|
@@ -139,11 +133,11 @@ export type SpanFunctionString = (({ column, colIndex, row, rowIndex }: {
|
|
139
133
|
rowIndex: any;
|
140
134
|
}) => number) | number;
|
141
135
|
export declare const SpanFunctionStringType: import("vue-types").VueTypeDef<SpanFunctionString>;
|
142
|
-
export type RowClassFunctionString = ((row:
|
136
|
+
export type RowClassFunctionString = ((row: any) => string) | string;
|
143
137
|
export declare const RowClassFunctionStringType: import("vue-types").VueTypeDef<RowClassFunctionString>;
|
144
|
-
export type RowHeightFunctionNumber = ((
|
138
|
+
export type RowHeightFunctionNumber = ((_type: string, _row: any, _rowIndex: number, _size?: any) => number) | number;
|
145
139
|
export declare const RowHeightFunctionNumberType: import("vue-types").VueTypeDef<RowHeightFunctionNumber>;
|
146
|
-
type FunctionNumber =
|
140
|
+
type FunctionNumber = Function | number;
|
147
141
|
export declare const FunctionNumberType: import("vue-types").VueTypeDef<FunctionNumber>;
|
148
142
|
type StringNumber = number | string;
|
149
143
|
export declare const StringNumberType: (val: number | string) => import("vue-types").VueTypeDef<StringNumber> & {
|
@@ -163,19 +157,10 @@ export type IDraggableRowOption = {
|
|
163
157
|
icon?: JSX.Element;
|
164
158
|
width?: number;
|
165
159
|
};
|
166
|
-
export type IHeadGroup = {
|
167
|
-
thColspan: number;
|
168
|
-
thRowspan: number;
|
169
|
-
isGroup: boolean;
|
170
|
-
parent?: IHeadGroup;
|
171
|
-
label?: string;
|
172
|
-
offsetLeft?: number;
|
173
|
-
};
|
174
160
|
export type Column = {
|
175
|
-
label
|
161
|
+
label: LabelFunctionString;
|
176
162
|
field?: LabelFunctionString;
|
177
163
|
render?: RenderFunctionString;
|
178
|
-
disabled?: boolean;
|
179
164
|
renderHead?: RenderFunctionString;
|
180
165
|
width?: number | string;
|
181
166
|
minWidth?: number | string;
|
@@ -194,17 +179,12 @@ export type Column = {
|
|
194
179
|
prop?: LabelFunctionString;
|
195
180
|
index?: number;
|
196
181
|
explain?: IColumnExplain;
|
197
|
-
children?: Column[];
|
198
|
-
acrossPage?: boolean;
|
199
182
|
};
|
200
183
|
export declare const IColumnProp: import("vue-types").VueTypeDef<Column>;
|
201
184
|
export type Thead = {
|
202
185
|
height?: number;
|
203
186
|
isShow?: boolean;
|
204
|
-
cellFn?:
|
205
|
-
index: any;
|
206
|
-
column: any;
|
207
|
-
}) => JSX.Element | VNode | string;
|
187
|
+
cellFn?: Function;
|
208
188
|
color?: IHeadColor | string;
|
209
189
|
};
|
210
190
|
export type Columns = ReadonlyArray<Column>;
|
@@ -213,7 +193,7 @@ export type GroupColumn = {
|
|
213
193
|
calcWidth?: number;
|
214
194
|
resizeWidth?: number;
|
215
195
|
isHidden?: boolean;
|
216
|
-
listeners?: Map<string,
|
196
|
+
listeners?: Map<string, any>;
|
217
197
|
} & Column;
|
218
198
|
export type IColumnActive = {
|
219
199
|
index: number;
|
@@ -221,21 +201,21 @@ export type IColumnActive = {
|
|
221
201
|
};
|
222
202
|
export type IReactiveProp = {
|
223
203
|
activeColumns: IColumnActive[];
|
224
|
-
rowActions: Record<string,
|
204
|
+
rowActions: Record<string, any>;
|
225
205
|
scrollTranslateY: number;
|
226
206
|
scrollTranslateX: number;
|
227
|
-
pos: Record<string,
|
207
|
+
pos: Record<string, any>;
|
228
208
|
settings: Settings | boolean;
|
229
209
|
setting: {
|
230
210
|
size: string;
|
231
211
|
height: number;
|
232
212
|
};
|
233
|
-
defaultSort: Record<string,
|
213
|
+
defaultSort: Record<string, any>;
|
234
214
|
};
|
235
215
|
export type Colgroups = Column & {
|
236
216
|
calcWidth: number;
|
237
217
|
resizeWidth: number;
|
238
|
-
listeners: Map<string,
|
218
|
+
listeners: Map<string, Function>;
|
239
219
|
};
|
240
220
|
export declare enum IColSortBehavior {
|
241
221
|
/**
|
@@ -247,16 +227,6 @@ export declare enum IColSortBehavior {
|
|
247
227
|
*/
|
248
228
|
interdependent = "interdependent"
|
249
229
|
}
|
250
|
-
export type FixedBottomOption = {
|
251
|
-
position: 'absolute' | 'relative';
|
252
|
-
height: number;
|
253
|
-
minHeight?: number;
|
254
|
-
loading?: boolean;
|
255
|
-
};
|
256
|
-
export type AppendLastRowOption = {
|
257
|
-
type: 'default' | 'summary';
|
258
|
-
cellRender?: (column: Column, index: number) => VNode | number | string;
|
259
|
-
};
|
260
230
|
export declare const tableProps: {
|
261
231
|
/**
|
262
232
|
* 渲染列表
|
@@ -301,7 +271,7 @@ export declare const tableProps: {
|
|
301
271
|
};
|
302
272
|
/**
|
303
273
|
* 设置表格最小高度
|
304
|
-
* 默认:
|
274
|
+
* 默认:300
|
305
275
|
*/
|
306
276
|
minHeight: import("vue-types").VueTypeDef<StringNumber> & {
|
307
277
|
default: StringNumber;
|
@@ -317,7 +287,9 @@ export declare const tableProps: {
|
|
317
287
|
* 行高,可以为固定数值类型
|
318
288
|
* 可以是函数,返回当前行的高度,返回值为数值类型
|
319
289
|
*/
|
320
|
-
rowHeight: import("vue-types").VueTypeDef<RowHeightFunctionNumber
|
290
|
+
rowHeight: import("vue-types").VueTypeDef<RowHeightFunctionNumber> & {
|
291
|
+
default: RowHeightFunctionNumber;
|
292
|
+
};
|
321
293
|
/**
|
322
294
|
* Thead行高,可以为固定数值类型
|
323
295
|
*/
|
@@ -416,14 +388,6 @@ export declare const tableProps: {
|
|
416
388
|
emptyCellText: import("vue-types").VueTypeDef<any> & {
|
417
389
|
default: any;
|
418
390
|
};
|
419
|
-
/**
|
420
|
-
* 判定单元格是否为空
|
421
|
-
* 支持数组:判定条件为 arr.some(item => item === cellText)
|
422
|
-
* 支持函数回调:返回结果为 true | false, ({ cellText, row, column }) => boolean
|
423
|
-
*/
|
424
|
-
isEmptyCell: import("vue-types").VueTypeDef<any> & {
|
425
|
-
default: any;
|
426
|
-
};
|
427
391
|
/**
|
428
392
|
* bk-table-setting-content
|
429
393
|
*/
|
@@ -565,14 +529,6 @@ export declare const tableProps: {
|
|
565
529
|
} & {
|
566
530
|
default: boolean;
|
567
531
|
};
|
568
|
-
/**
|
569
|
-
* 是否使用IntersectionObserver监听表格Cell进如有可视区域再渲染
|
570
|
-
*/
|
571
|
-
intersectionObserver: import("vue-types").VueTypeValidableDef<boolean> & {
|
572
|
-
default: boolean;
|
573
|
-
} & {
|
574
|
-
default: boolean;
|
575
|
-
};
|
576
532
|
align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
577
533
|
headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
578
534
|
/**
|
@@ -612,23 +568,5 @@ export declare const tableProps: {
|
|
612
568
|
} & {
|
613
569
|
default: boolean;
|
614
570
|
};
|
615
|
-
/**
|
616
|
-
* 启用Scrollbar
|
617
|
-
*/
|
618
|
-
scrollbar: import("vue-types").VueTypeValidableDef<boolean> & {
|
619
|
-
default: boolean;
|
620
|
-
} & {
|
621
|
-
default: boolean;
|
622
|
-
};
|
623
|
-
/**
|
624
|
-
* 固定在底部的配置项
|
625
|
-
*/
|
626
|
-
fixedBottom: import("vue-types").VueTypeDef<FixedBottomOption> & {
|
627
|
-
default: () => FixedBottomOption;
|
628
|
-
};
|
629
|
-
/**
|
630
|
-
* 表格尾部追加的行配置
|
631
|
-
*/
|
632
|
-
appendLastRow: import("vue-types").VueTypeDef<AppendLastRowOption>;
|
633
571
|
};
|
634
572
|
export {};
|