bkui-vue 1.0.3-beta.9 → 2.0.1-beta.10
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 +162 -164
- package/dist/index.esm.js +31999 -29678
- package/dist/index.umd.js +162 -164
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.variable.css +3 -0
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.variable.css +3 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +3 -0
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +6 -3
- package/lib/cascader/index.js +35 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +7 -7
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +11 -3
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +6 -3
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +32 -30
- package/lib/components.js +31 -29
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +3 -3
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +340 -224
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +2 -64
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +9 -1
- package/lib/dialog/dialog.css +172 -150
- package/lib/dialog/dialog.d.ts +55 -124
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +175 -150
- package/lib/dialog/index.d.ts +132 -296
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +16 -41
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -167
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +3 -0
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +3 -0
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +17 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +12 -11
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +25 -22
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +25 -23
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +3 -0
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.js +0 -1
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.variable.css +3 -0
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +44 -312
- package/lib/modal/index.js +286 -672
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +151 -76
- package/lib/modal/modal.d.ts +19 -117
- package/lib/modal/modal.less +103 -56
- package/lib/modal/modal.variable.css +154 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +107 -63
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -15
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +62 -44
- package/lib/pop-confirm/index.js +17 -14
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/pop-confirm/props.d.ts +2 -2
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +62 -44
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +49 -31
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +30 -0
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +8 -9
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18762 -0
- 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/{rate/star.variable.css → scrollbar/scrollbar.variable.css} +70 -19
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +754 -419
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +117 -7
- package/lib/search-select/utils.d.ts +22 -9
- package/lib/select/index.d.ts +185 -67
- package/lib/select/index.js +1396 -136
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +56 -14
- package/lib/select/select.d.ts +74 -26
- package/lib/select/select.less +70 -21
- package/lib/select/select.variable.css +59 -14
- package/lib/select/selectTagInput.d.ts +13 -6
- package/lib/select/type.d.ts +4 -5
- package/lib/shared/index.d.ts +1 -2
- package/lib/shared/index.js +108 -96
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +51 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +58 -188
- package/lib/sideslider/index.js +83 -57
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +26 -88
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +64 -26
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -0
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +30 -100
- package/lib/table/const.d.ts +12 -12
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +220 -305
- package/lib/table/index.js +18165 -688
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +13 -0
- package/lib/table/props.d.ts +49 -39
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +58 -47
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +9 -46
- package/lib/table/use-column.d.ts +18 -139
- package/lib/table/use-common.d.ts +5 -5
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +6 -6
- package/lib/table-column/index.d.ts +127 -431
- package/lib/table-column/index.js +43 -117
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +12 -12
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +6 -6
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +3 -3
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +56 -67
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +12 -9
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +64 -20
- package/lib/tree/index.js +17595 -72
- package/lib/tree/props.d.ts +24 -6
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +34 -8
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +9 -0
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +1 -1
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +62 -65
- package/lib/upload/props.d.ts +4 -1
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.type.d.ts +7 -7
- package/lib/upload/upload.variable.css +3 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +13 -49
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/shared/mask.d.ts +0 -11
package/lib/table/table.less
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
|
13
13
|
.@{bk-prefix}-table {
|
14
14
|
position: relative;
|
15
|
+
width: 100%;
|
15
16
|
height: auto;
|
16
17
|
overflow: hidden;
|
17
|
-
width: 100%;
|
18
18
|
|
19
19
|
&-flex {
|
20
20
|
display: flex;
|
@@ -34,21 +34,9 @@
|
|
34
34
|
|
35
35
|
.@{bk-prefix}-table-body {
|
36
36
|
position: relative;
|
37
|
-
overflow:
|
38
|
-
scrollbar-gutter: stable;
|
37
|
+
overflow: hidden;
|
39
38
|
border-bottom: 1px solid @table-border-color;
|
40
39
|
|
41
|
-
&::-webkit-scrollbar {
|
42
|
-
width: 5px;
|
43
|
-
height: 6px;
|
44
|
-
}
|
45
|
-
|
46
|
-
&::-webkit-scrollbar-thumb {
|
47
|
-
background: #dcdee5;
|
48
|
-
border-radius: 10px;
|
49
|
-
box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
|
50
|
-
}
|
51
|
-
|
52
40
|
.prepend-row {
|
53
41
|
transform: translateX(var(--prepend-left));
|
54
42
|
}
|
@@ -93,17 +81,6 @@
|
|
93
81
|
background: @table-bg-color;
|
94
82
|
transform: translateZ(0);
|
95
83
|
|
96
|
-
&::-webkit-scrollbar {
|
97
|
-
width: 5px;
|
98
|
-
height: 5px;
|
99
|
-
}
|
100
|
-
|
101
|
-
&::-webkit-scrollbar-thumb {
|
102
|
-
background: #ddd;
|
103
|
-
border-radius: 20px;
|
104
|
-
box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
|
105
|
-
}
|
106
|
-
|
107
84
|
&.__is-empty {
|
108
85
|
display: flex;
|
109
86
|
height: 100%;
|
@@ -148,8 +125,8 @@
|
|
148
125
|
white-space: nowrap;
|
149
126
|
|
150
127
|
.drag-cell {
|
151
|
-
font-size: 14px;
|
152
128
|
height: 100%;
|
129
|
+
font-size: 14px;
|
153
130
|
}
|
154
131
|
|
155
132
|
&.has-sort {
|
@@ -259,7 +236,7 @@
|
|
259
236
|
.cell {
|
260
237
|
display: flex;
|
261
238
|
align-items: center;
|
262
|
-
height: calc(var(--row-height) -
|
239
|
+
height: calc(var(--row-height) - 2px);
|
263
240
|
color: @table-head-font-color;
|
264
241
|
}
|
265
242
|
|
@@ -279,26 +256,31 @@
|
|
279
256
|
tr {
|
280
257
|
td {
|
281
258
|
background-color: #fff;
|
259
|
+
border-top: 1px solid transparent;
|
260
|
+
border-bottom: 1px solid transparent;
|
261
|
+
border-right: 1px solid transparent;
|
262
|
+
|
263
|
+
box-sizing: border-box;
|
282
264
|
|
283
265
|
&.empty-cell {
|
284
266
|
padding-bottom: 30px;
|
285
267
|
}
|
286
268
|
|
287
269
|
&.is-last {
|
288
|
-
border-bottom: none;
|
270
|
+
// border-bottom: none;
|
289
271
|
}
|
290
272
|
|
291
273
|
.cell {
|
292
274
|
display: block;
|
293
275
|
width: 100%;
|
294
|
-
height: 100%;
|
295
|
-
line-height: calc(var(--row-height) -
|
276
|
+
// height: 100%;
|
277
|
+
line-height: calc(var(--row-height) - 2px);
|
296
278
|
box-sizing: border-box;
|
297
279
|
align-items: center;
|
298
280
|
|
299
281
|
&.drag {
|
300
|
-
cursor: move;
|
301
282
|
text-align: center;
|
283
|
+
cursor: move;
|
302
284
|
}
|
303
285
|
}
|
304
286
|
}
|
@@ -313,18 +295,10 @@
|
|
313
295
|
}
|
314
296
|
}
|
315
297
|
|
316
|
-
&.--drag-enter {
|
317
|
-
&.--bottom {
|
318
|
-
border-bottom: solid 1px #3785ff;
|
319
|
-
}
|
320
|
-
|
321
|
-
&.--top {
|
322
|
-
border-top: solid 1px #3785ff;
|
323
|
-
}
|
324
|
-
}
|
325
|
-
|
326
298
|
&.--drag-start {
|
327
|
-
|
299
|
+
td {
|
300
|
+
background: #fff!important;
|
301
|
+
}
|
328
302
|
}
|
329
303
|
}
|
330
304
|
}
|
@@ -334,7 +308,6 @@
|
|
334
308
|
.@{bk-prefix}-table-head {
|
335
309
|
position: relative;
|
336
310
|
z-index: 2;
|
337
|
-
scrollbar-gutter: stable;
|
338
311
|
overflow: hidden;
|
339
312
|
background-color: var(--background-color);
|
340
313
|
|
@@ -365,11 +338,8 @@
|
|
365
338
|
cursor: pointer;
|
366
339
|
|
367
340
|
background: @table-head-bg-color;
|
368
|
-
//border-right: 1px solid @table-border-color;
|
369
|
-
// border-bottom: 1px solid @table-border-color;
|
370
341
|
border-left: 1px solid @table-border-color;
|
371
342
|
border-radius: 0 2px 0 0;
|
372
|
-
// transform: translateX(var(--scroll-left));
|
373
343
|
justify-content: center;
|
374
344
|
align-items: center;
|
375
345
|
|
@@ -386,6 +356,7 @@
|
|
386
356
|
width: 100%;
|
387
357
|
height: var(--footer-height);
|
388
358
|
align-items: center;
|
359
|
+
padding: 0 16px 0 22px;
|
389
360
|
|
390
361
|
&.is-hidden {
|
391
362
|
display: none;
|
@@ -397,14 +368,18 @@
|
|
397
368
|
border-bottom: 1px solid @table-border-color;
|
398
369
|
}
|
399
370
|
|
400
|
-
|
401
|
-
|
402
|
-
|
371
|
+
.bk-table-body {
|
372
|
+
tbody {
|
373
|
+
tr {
|
374
|
+
td {
|
375
|
+
border-bottom-color: @table-border-color;
|
376
|
+
}
|
403
377
|
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
378
|
+
&:last-child {
|
379
|
+
td {
|
380
|
+
border-bottom: none;
|
381
|
+
}
|
382
|
+
}
|
408
383
|
}
|
409
384
|
}
|
410
385
|
}
|
@@ -439,8 +414,7 @@
|
|
439
414
|
}
|
440
415
|
|
441
416
|
&.bordered-col {
|
442
|
-
th
|
443
|
-
td {
|
417
|
+
th {
|
444
418
|
border-right: 1px solid @table-border-color;
|
445
419
|
|
446
420
|
&:last-child {
|
@@ -448,9 +422,24 @@
|
|
448
422
|
}
|
449
423
|
}
|
450
424
|
|
425
|
+
.bk-table-body {
|
426
|
+
tbody {
|
427
|
+
tr {
|
428
|
+
td {
|
429
|
+
border-right-color: @table-border-color;
|
430
|
+
|
431
|
+
&:last-child {
|
432
|
+
border-right-color: transparent;
|
433
|
+
}
|
434
|
+
}
|
435
|
+
}
|
436
|
+
}
|
437
|
+
}
|
438
|
+
|
451
439
|
}
|
452
440
|
|
453
|
-
th,
|
441
|
+
th,
|
442
|
+
td {
|
454
443
|
border-right: 1px solid transparent;
|
455
444
|
}
|
456
445
|
|
@@ -470,7 +459,6 @@
|
|
470
459
|
right: 0;
|
471
460
|
bottom: var(--footer-height);
|
472
461
|
left: 0;
|
473
|
-
// height: var(--fix-height);
|
474
462
|
pointer-events: none;
|
475
463
|
|
476
464
|
.column_fixed {
|
@@ -529,4 +517,4 @@
|
|
529
517
|
.stripe-row {
|
530
518
|
background: #fafbfd;
|
531
519
|
}
|
532
|
-
}
|
520
|
+
}
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-F-scroll-x {
|
128
131
|
overflow-x: auto;
|
@@ -141,11 +144,85 @@
|
|
141
144
|
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
142
145
|
border-radius: 4px;
|
143
146
|
}
|
147
|
+
.bk-scrollbar-wrapper {
|
148
|
+
position: relative;
|
149
|
+
overflow: hidden;
|
150
|
+
}
|
151
|
+
.bk-scrollbar-wrapper .bk-scrollbar-content-el {
|
152
|
+
display: inline-flex;
|
153
|
+
flex-direction: column;
|
154
|
+
width: 100%;
|
155
|
+
}
|
156
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track {
|
157
|
+
z-index: 1;
|
158
|
+
position: absolute;
|
159
|
+
right: 0;
|
160
|
+
bottom: 0;
|
161
|
+
pointer-events: none;
|
162
|
+
overflow: hidden;
|
163
|
+
}
|
164
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
|
165
|
+
background-color: #F0F1F5;
|
166
|
+
cursor: pointer;
|
167
|
+
}
|
168
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
|
169
|
+
background-color: #979BA5;
|
170
|
+
}
|
171
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
|
172
|
+
top: 0;
|
173
|
+
width: 8px;
|
174
|
+
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
175
|
+
}
|
176
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
|
177
|
+
left: 0;
|
178
|
+
height: 8px;
|
179
|
+
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
180
|
+
}
|
181
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
|
182
|
+
right: auto;
|
183
|
+
left: 0;
|
184
|
+
top: 0;
|
185
|
+
bottom: 0;
|
186
|
+
min-height: 0;
|
187
|
+
min-width: 8px;
|
188
|
+
width: auto;
|
189
|
+
}
|
190
|
+
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
191
|
+
pointer-events: none;
|
192
|
+
-webkit-touch-callout: none;
|
193
|
+
-webkit-user-select: none;
|
194
|
+
-khtml-user-select: none;
|
195
|
+
-moz-user-select: none;
|
196
|
+
-ms-user-select: none;
|
197
|
+
user-select: none;
|
198
|
+
}
|
199
|
+
.bk-scrollbar-wrapper .bk-scrollbar {
|
200
|
+
position: absolute;
|
201
|
+
left: 0;
|
202
|
+
right: 0;
|
203
|
+
min-height: 8px;
|
204
|
+
}
|
205
|
+
.bk-scrollbar-wrapper .bk-scrollbar::before {
|
206
|
+
position: absolute;
|
207
|
+
content: '';
|
208
|
+
background: #DCDEE5;
|
209
|
+
border-radius: 6px;
|
210
|
+
left: 1px;
|
211
|
+
right: 1px;
|
212
|
+
top: 1px;
|
213
|
+
bottom: 1px;
|
214
|
+
opacity: 0;
|
215
|
+
transition: opacity 0.2s 0.9s linear;
|
216
|
+
}
|
217
|
+
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
218
|
+
opacity: 0.9;
|
219
|
+
transition-delay: 0s;
|
220
|
+
transition-duration: 0s;
|
221
|
+
}
|
144
222
|
.bk-virtual-render {
|
145
223
|
position: relative;
|
146
224
|
}
|
147
|
-
.bk-virtual-render .bk-virtual-content
|
148
|
-
.bk-virtual-render.bk-virtual-content {
|
225
|
+
.bk-virtual-render .bk-virtual-content {
|
149
226
|
position: absolute;
|
150
227
|
top: 0;
|
151
228
|
bottom: 0;
|
@@ -862,7 +939,6 @@
|
|
862
939
|
}
|
863
940
|
.bk-popover.bk-pop2-content {
|
864
941
|
position: absolute;
|
865
|
-
display: none;
|
866
942
|
padding: 12px;
|
867
943
|
font-size: 12px;
|
868
944
|
color: #fff;
|
@@ -870,6 +946,9 @@
|
|
870
946
|
border-radius: 4px;
|
871
947
|
box-sizing: border-box;
|
872
948
|
}
|
949
|
+
.bk-popover.bk-pop2-content.hidden {
|
950
|
+
display: none;
|
951
|
+
}
|
873
952
|
.bk-popover.bk-pop2-content .bk-pop2-arrow {
|
874
953
|
position: absolute;
|
875
954
|
z-index: -1;
|
@@ -915,10 +994,6 @@
|
|
915
994
|
max-width: 300px;
|
916
995
|
min-width: 200px;
|
917
996
|
}
|
918
|
-
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
919
|
-
max-height: 200px;
|
920
|
-
min-height: 40px;
|
921
|
-
}
|
922
997
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
923
998
|
width: 100%;
|
924
999
|
height: 32px;
|
@@ -931,11 +1006,19 @@
|
|
931
1006
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
|
932
1007
|
background: #f0f1f5;
|
933
1008
|
}
|
1009
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
|
1010
|
+
text-overflow: ellipsis;
|
1011
|
+
white-space: nowrap;
|
1012
|
+
overflow: hidden;
|
1013
|
+
width: 100%;
|
1014
|
+
}
|
934
1015
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
|
935
1016
|
background: #f0f1f5;
|
936
1017
|
}
|
937
1018
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
|
938
1019
|
white-space: nowrap;
|
1020
|
+
text-overflow: ellipsis;
|
1021
|
+
overflow: hidden;
|
939
1022
|
}
|
940
1023
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
|
941
1024
|
margin-left: 0;
|
@@ -1121,9 +1204,9 @@
|
|
1121
1204
|
}
|
1122
1205
|
.bk-table {
|
1123
1206
|
position: relative;
|
1207
|
+
width: 100%;
|
1124
1208
|
height: auto;
|
1125
1209
|
overflow: hidden;
|
1126
|
-
width: 100%;
|
1127
1210
|
}
|
1128
1211
|
.bk-table-flex {
|
1129
1212
|
display: flex;
|
@@ -1139,19 +1222,9 @@
|
|
1139
1222
|
}
|
1140
1223
|
.bk-table .bk-table-body {
|
1141
1224
|
position: relative;
|
1142
|
-
overflow:
|
1143
|
-
scrollbar-gutter: stable;
|
1225
|
+
overflow: hidden;
|
1144
1226
|
border-bottom: 1px solid #dcdee5;
|
1145
1227
|
}
|
1146
|
-
.bk-table .bk-table-body::-webkit-scrollbar {
|
1147
|
-
width: 5px;
|
1148
|
-
height: 6px;
|
1149
|
-
}
|
1150
|
-
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
1151
|
-
background: #dcdee5;
|
1152
|
-
border-radius: 10px;
|
1153
|
-
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
1154
|
-
}
|
1155
1228
|
.bk-table .bk-table-body .prepend-row {
|
1156
1229
|
transform: translateX(var(--prepend-left));
|
1157
1230
|
}
|
@@ -1178,17 +1251,6 @@
|
|
1178
1251
|
background: white;
|
1179
1252
|
transform: translateZ(0);
|
1180
1253
|
}
|
1181
|
-
.bk-table .bk-table-head::-webkit-scrollbar,
|
1182
|
-
.bk-table .bk-table-body::-webkit-scrollbar {
|
1183
|
-
width: 5px;
|
1184
|
-
height: 5px;
|
1185
|
-
}
|
1186
|
-
.bk-table .bk-table-head::-webkit-scrollbar-thumb,
|
1187
|
-
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
1188
|
-
background: #ddd;
|
1189
|
-
border-radius: 20px;
|
1190
|
-
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
1191
|
-
}
|
1192
1254
|
.bk-table .bk-table-head.__is-empty,
|
1193
1255
|
.bk-table .bk-table-body.__is-empty {
|
1194
1256
|
display: flex;
|
@@ -1241,8 +1303,8 @@
|
|
1241
1303
|
.bk-table .bk-table-body table th .cell .drag-cell,
|
1242
1304
|
.bk-table .bk-table-head table td .cell .drag-cell,
|
1243
1305
|
.bk-table .bk-table-body table td .cell .drag-cell {
|
1244
|
-
font-size: 14px;
|
1245
1306
|
height: 100%;
|
1307
|
+
font-size: 14px;
|
1246
1308
|
}
|
1247
1309
|
.bk-table .bk-table-head table th .cell.has-sort,
|
1248
1310
|
.bk-table .bk-table-body table th .cell.has-sort,
|
@@ -1367,7 +1429,7 @@
|
|
1367
1429
|
.bk-table .bk-table-body table thead th .cell {
|
1368
1430
|
display: flex;
|
1369
1431
|
align-items: center;
|
1370
|
-
height: calc(var(--row-height) -
|
1432
|
+
height: calc(var(--row-height) - 2px);
|
1371
1433
|
color: #313238;
|
1372
1434
|
}
|
1373
1435
|
.bk-table .bk-table-head table thead th.active,
|
@@ -1384,49 +1446,39 @@
|
|
1384
1446
|
.bk-table .bk-table-head table tbody tr td,
|
1385
1447
|
.bk-table .bk-table-body table tbody tr td {
|
1386
1448
|
background-color: #fff;
|
1449
|
+
border-top: 1px solid transparent;
|
1450
|
+
border-bottom: 1px solid transparent;
|
1451
|
+
border-right: 1px solid transparent;
|
1452
|
+
box-sizing: border-box;
|
1387
1453
|
}
|
1388
1454
|
.bk-table .bk-table-head table tbody tr td.empty-cell,
|
1389
1455
|
.bk-table .bk-table-body table tbody tr td.empty-cell {
|
1390
1456
|
padding-bottom: 30px;
|
1391
1457
|
}
|
1392
|
-
.bk-table .bk-table-head table tbody tr td.is-last,
|
1393
|
-
.bk-table .bk-table-body table tbody tr td.is-last {
|
1394
|
-
border-bottom: none;
|
1395
|
-
}
|
1396
1458
|
.bk-table .bk-table-head table tbody tr td .cell,
|
1397
1459
|
.bk-table .bk-table-body table tbody tr td .cell {
|
1398
1460
|
display: block;
|
1399
1461
|
width: 100%;
|
1400
|
-
height:
|
1401
|
-
line-height: calc(var(--row-height) - 1px);
|
1462
|
+
line-height: calc(var(--row-height) - 2px);
|
1402
1463
|
box-sizing: border-box;
|
1403
1464
|
align-items: center;
|
1404
1465
|
}
|
1405
1466
|
.bk-table .bk-table-head table tbody tr td .cell.drag,
|
1406
1467
|
.bk-table .bk-table-body table tbody tr td .cell.drag {
|
1407
|
-
cursor: move;
|
1408
1468
|
text-align: center;
|
1469
|
+
cursor: move;
|
1409
1470
|
}
|
1410
1471
|
.bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
|
1411
1472
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
1412
1473
|
background: #f5f7fa;
|
1413
1474
|
}
|
1414
|
-
.bk-table .bk-table-head table tbody tr.--drag-
|
1415
|
-
.bk-table .bk-table-body table tbody tr.--drag-
|
1416
|
-
|
1417
|
-
}
|
1418
|
-
.bk-table .bk-table-head table tbody tr.--drag-enter.--top,
|
1419
|
-
.bk-table .bk-table-body table tbody tr.--drag-enter.--top {
|
1420
|
-
border-top: solid 1px #3785ff;
|
1421
|
-
}
|
1422
|
-
.bk-table .bk-table-head table tbody tr.--drag-start,
|
1423
|
-
.bk-table .bk-table-body table tbody tr.--drag-start {
|
1424
|
-
background: #fff;
|
1475
|
+
.bk-table .bk-table-head table tbody tr.--drag-start td,
|
1476
|
+
.bk-table .bk-table-body table tbody tr.--drag-start td {
|
1477
|
+
background: #fff !important;
|
1425
1478
|
}
|
1426
1479
|
.bk-table .bk-table-head {
|
1427
1480
|
position: relative;
|
1428
1481
|
z-index: 2;
|
1429
|
-
scrollbar-gutter: stable;
|
1430
1482
|
overflow: hidden;
|
1431
1483
|
background-color: var(--background-color);
|
1432
1484
|
}
|
@@ -1469,6 +1521,7 @@
|
|
1469
1521
|
width: 100%;
|
1470
1522
|
height: var(--footer-height);
|
1471
1523
|
align-items: center;
|
1524
|
+
padding: 0 16px 0 22px;
|
1472
1525
|
}
|
1473
1526
|
.bk-table .bk-table-footer.is-hidden {
|
1474
1527
|
display: none;
|
@@ -1476,10 +1529,10 @@
|
|
1476
1529
|
.bk-table.bordered-row .bk-table-head {
|
1477
1530
|
border-bottom: 1px solid #dcdee5;
|
1478
1531
|
}
|
1479
|
-
.bk-table.bordered-row td {
|
1480
|
-
border-bottom:
|
1532
|
+
.bk-table.bordered-row .bk-table-body tbody tr td {
|
1533
|
+
border-bottom-color: #dcdee5;
|
1481
1534
|
}
|
1482
|
-
.bk-table.bordered-row tr:last-child td {
|
1535
|
+
.bk-table.bordered-row .bk-table-body tbody tr:last-child td {
|
1483
1536
|
border-bottom: none;
|
1484
1537
|
}
|
1485
1538
|
.bk-table.bordered-outer {
|
@@ -1500,14 +1553,18 @@
|
|
1500
1553
|
.bk-table.bordered-horizontal .__is-empty .bk-table-body-content {
|
1501
1554
|
border-bottom: 1px solid #dcdee5;
|
1502
1555
|
}
|
1503
|
-
.bk-table.bordered-col th
|
1504
|
-
.bk-table.bordered-col td {
|
1556
|
+
.bk-table.bordered-col th {
|
1505
1557
|
border-right: 1px solid #dcdee5;
|
1506
1558
|
}
|
1507
|
-
.bk-table.bordered-col th:last-child
|
1508
|
-
.bk-table.bordered-col td:last-child {
|
1559
|
+
.bk-table.bordered-col th:last-child {
|
1509
1560
|
border-right: none;
|
1510
1561
|
}
|
1562
|
+
.bk-table.bordered-col .bk-table-body tbody tr td {
|
1563
|
+
border-right-color: #dcdee5;
|
1564
|
+
}
|
1565
|
+
.bk-table.bordered-col .bk-table-body tbody tr td:last-child {
|
1566
|
+
border-right-color: transparent;
|
1567
|
+
}
|
1511
1568
|
.bk-table th,
|
1512
1569
|
.bk-table td {
|
1513
1570
|
border-right: 1px solid transparent;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IEmptyObject } from './const';
|
2
|
-
import { Column, Field, Settings,
|
2
|
+
import { Column, Field, Settings, TablePropTypes } from './props';
|
3
3
|
export type ITableFormatData = {
|
4
4
|
data: any[];
|
5
5
|
dataSchema: WeakMap<object, any>;
|
@@ -18,57 +18,18 @@ export type ITableFormatData = {
|
|
18
18
|
translateY: number;
|
19
19
|
};
|
20
20
|
};
|
21
|
-
|
22
|
-
setIndexData: () => Promise<void>;
|
23
|
-
formatColumns: (columns: Column[]) => void;
|
24
|
-
formatDataSchema: (data: any[]) => void;
|
25
|
-
setRowSelection: (row: any, isSelected: boolean) => void;
|
26
|
-
setRowExpand: (row: any, isExpand: boolean) => void;
|
27
|
-
setRowIndex: (row: any, index: number) => void;
|
28
|
-
setColumnAttribute: (col: Column, attrName: string, attrValue: ((...args: any[]) => boolean | number | void | string) | string | boolean | number) => void;
|
29
|
-
setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
|
30
|
-
setAllColumnAttribute: (attrName: string, attrValue: ((...args: any[]) => boolean | number | void | string) | string | boolean | number) => void;
|
31
|
-
getColumnAttribute: (col: Column, attributeName: string) => string | boolean | Record<string, any>;
|
32
|
-
getColumnId: (col: Column) => string;
|
33
|
-
getColumnOrderWidth: (column: Column, orders?: string[]) => number;
|
34
|
-
isActiveColumn: (col: Column) => boolean;
|
35
|
-
isHiddenColumn: (col: Column) => boolean;
|
36
|
-
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: SortScope) => void;
|
37
|
-
resolveByDefColumns: () => void;
|
38
|
-
resetStartEndIndex: () => void;
|
39
|
-
toggleRowSelection: (row: any) => void;
|
40
|
-
toggleAllSelection: (value?: boolean) => void;
|
41
|
-
setAllRowExpand: (value?: boolean) => void;
|
42
|
-
clearSelection: () => void;
|
43
|
-
clearColumnSort: (reset?: boolean) => void;
|
44
|
-
setColumnSortActive: (column: Column, active: boolean) => void;
|
45
|
-
getRowAttribute: (row: any | IEmptyObject, attrName: string) => any;
|
46
|
-
getRowSelection: () => any[];
|
47
|
-
resolveColumnWidth: (root: HTMLElement, autoWidth?: any, offsetWidth?: any) => void;
|
48
|
-
filter: () => void;
|
49
|
-
sortData: (column: Column) => void;
|
50
|
-
isCheckedAll: () => boolean;
|
51
|
-
hasCheckedRow: () => boolean;
|
52
|
-
setRowSelectionAll: (val: boolean) => void;
|
53
|
-
setRowIndeterminate: () => void;
|
54
|
-
updateSettings: (settings?: Settings, rowHeight?: number) => void;
|
55
|
-
changePageRowIndex: (sourceIndex: number, targetIndex: number) => void;
|
56
|
-
pageData: any[];
|
57
|
-
localPagination: any;
|
58
|
-
formatData: ITableFormatData;
|
59
|
-
};
|
60
|
-
declare const _default: (props: TablePropTypes) => {
|
21
|
+
declare const tableSchemaResponse: (props: TablePropTypes) => {
|
61
22
|
formatColumns: (columns: Column[]) => void;
|
62
23
|
formatDataSchema: (data: any[]) => void;
|
63
|
-
setRowSelection: (row: any, isSelected: boolean) => void;
|
24
|
+
setRowSelection: (row: any, isSelected: boolean, index?: number) => void;
|
64
25
|
setRowExpand: (row: any, isExpand: boolean) => void;
|
65
26
|
setRowIndex: (row: any, index: number) => void;
|
66
|
-
setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number |
|
27
|
+
setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
|
67
28
|
setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
|
68
29
|
setColumnSortActive: (column: Column, active: boolean) => void;
|
69
30
|
setRowSelectionAll: (val: boolean) => void;
|
70
31
|
setRowIndeterminate: () => void;
|
71
|
-
setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number |
|
32
|
+
setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number | string | void)) => void;
|
72
33
|
getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
|
73
34
|
getColumnId: (col: Column) => any;
|
74
35
|
getColumnOrderWidth: (col: Column, orders?: string[]) => number;
|
@@ -84,7 +45,7 @@ declare const _default: (props: TablePropTypes) => {
|
|
84
45
|
clearSelection: () => void;
|
85
46
|
clearColumnSort: (reset?: boolean) => void;
|
86
47
|
toggleRowSelection: (row: any) => void;
|
87
|
-
getRowAttribute: (item:
|
48
|
+
getRowAttribute: (item: IEmptyObject | any, attrName: string) => any;
|
88
49
|
filter: () => void;
|
89
50
|
sortData: (column: Column) => void;
|
90
51
|
isCheckedAll: () => boolean;
|
@@ -95,5 +56,7 @@ declare const _default: (props: TablePropTypes) => {
|
|
95
56
|
localPagination: import("vue").Ref<any>;
|
96
57
|
formatData: ITableFormatData;
|
97
58
|
setIndexData: () => Promise<void>;
|
59
|
+
getFilterFnList: () => any[];
|
98
60
|
};
|
99
|
-
export
|
61
|
+
export type ITableResponse = ReturnType<typeof tableSchemaResponse>;
|
62
|
+
export default tableSchemaResponse;
|