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
@@ -27,10 +27,6 @@
|
|
27
27
|
max-width: 300px;
|
28
28
|
min-width: 200px;
|
29
29
|
}
|
30
|
-
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
31
|
-
max-height: 200px;
|
32
|
-
min-height: 40px;
|
33
|
-
}
|
34
30
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
35
31
|
width: 100%;
|
36
32
|
height: 32px;
|
@@ -43,11 +39,19 @@
|
|
43
39
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
|
44
40
|
background: #f0f1f5;
|
45
41
|
}
|
42
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
|
43
|
+
text-overflow: ellipsis;
|
44
|
+
white-space: nowrap;
|
45
|
+
overflow: hidden;
|
46
|
+
width: 100%;
|
47
|
+
}
|
46
48
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
|
47
49
|
background: #f0f1f5;
|
48
50
|
}
|
49
51
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
|
50
52
|
white-space: nowrap;
|
53
|
+
text-overflow: ellipsis;
|
54
|
+
overflow: hidden;
|
51
55
|
}
|
52
56
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
|
53
57
|
margin-left: 0;
|
@@ -35,9 +35,6 @@
|
|
35
35
|
min-width: 200px;
|
36
36
|
|
37
37
|
.content-items {
|
38
|
-
max-height: 200px;
|
39
|
-
min-height: 40px;
|
40
|
-
|
41
38
|
.list-item {
|
42
39
|
width: 100%;
|
43
40
|
height: 32px;
|
@@ -52,6 +49,10 @@
|
|
52
49
|
}
|
53
50
|
|
54
51
|
label {
|
52
|
+
text-overflow: ellipsis;
|
53
|
+
white-space: nowrap;
|
54
|
+
overflow: hidden;
|
55
|
+
width: 100%;
|
55
56
|
&:hover {
|
56
57
|
background: #f0f1f5;
|
57
58
|
}
|
@@ -59,6 +60,8 @@
|
|
59
60
|
|
60
61
|
.@{bk-prefix}-checkbox-label {
|
61
62
|
white-space: nowrap;
|
63
|
+
text-overflow: ellipsis;
|
64
|
+
overflow: hidden;
|
62
65
|
}
|
63
66
|
|
64
67
|
.@{bk-prefix}-checkbox {
|
@@ -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-table-head-action {
|
128
131
|
display: flex;
|
@@ -153,10 +156,6 @@
|
|
153
156
|
max-width: 300px;
|
154
157
|
min-width: 200px;
|
155
158
|
}
|
156
|
-
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
157
|
-
max-height: 200px;
|
158
|
-
min-height: 40px;
|
159
|
-
}
|
160
159
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
161
160
|
width: 100%;
|
162
161
|
height: 32px;
|
@@ -169,11 +168,19 @@
|
|
169
168
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
|
170
169
|
background: #f0f1f5;
|
171
170
|
}
|
171
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
|
172
|
+
text-overflow: ellipsis;
|
173
|
+
white-space: nowrap;
|
174
|
+
overflow: hidden;
|
175
|
+
width: 100%;
|
176
|
+
}
|
172
177
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
|
173
178
|
background: #f0f1f5;
|
174
179
|
}
|
175
180
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
|
176
181
|
white-space: nowrap;
|
182
|
+
text-overflow: ellipsis;
|
183
|
+
overflow: hidden;
|
177
184
|
}
|
178
185
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
|
179
186
|
margin-left: 0;
|
@@ -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-head-cell-sort {
|
128
131
|
display: flex;
|
@@ -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-table-settings[data-bk-table-settings-theme='true'] {
|
128
131
|
padding: 0;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { TablePropTypes } from '../props';
|
2
2
|
/**
|
3
3
|
* 处理Props中的ActiveColumn,解析为统一的数组格式
|
4
4
|
* @param props
|
@@ -10,7 +10,7 @@ export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
|
|
10
10
|
* @param props
|
11
11
|
* @returns
|
12
12
|
*/
|
13
|
-
declare const _default: (props: TablePropTypes
|
13
|
+
declare const _default: (props: TablePropTypes) => {
|
14
14
|
activeColumns: any[];
|
15
15
|
};
|
16
16
|
export default _default;
|
@@ -6,12 +6,12 @@ declare const _default: (props: TablePropTypes, resp: ITableResponse, ctx: Setup
|
|
6
6
|
onDragleave?: undefined;
|
7
7
|
onDragstart?: undefined;
|
8
8
|
onDragover?: undefined;
|
9
|
-
|
9
|
+
onDragend?: undefined;
|
10
10
|
} | {
|
11
11
|
onDragenter: (event: DragEvent) => void;
|
12
12
|
onDragleave: (event: DragEvent) => void;
|
13
13
|
onDragstart: (event: DragEvent) => void;
|
14
14
|
onDragover: (event: DragEvent) => void;
|
15
|
-
|
15
|
+
onDragend: (event: DragEvent) => void;
|
16
16
|
};
|
17
17
|
export default _default;
|
@@ -6,7 +6,7 @@ import { ITableResponse } from '../use-attributes';
|
|
6
6
|
*/
|
7
7
|
declare const _default: (props: TablePropTypes, tableResp: ITableResponse, head?: Ref<HTMLElement>) => {
|
8
8
|
fixedWrapperClass: string;
|
9
|
-
resolveFixedColumnStyle: (column: Column
|
9
|
+
resolveFixedColumnStyle: (column: Column) => {
|
10
10
|
[x: string]: string;
|
11
11
|
};
|
12
12
|
resolveFixedColumns: (tableOffsetRight: any) => void;
|
@@ -14,8 +14,10 @@ declare const _default: (props: TablePropTypes) => {
|
|
14
14
|
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
|
15
15
|
resolveIndexData: () => Promise<void>;
|
16
16
|
resolvePageDataBySortList: (multiCol?: any) => void;
|
17
|
+
handlePaginationChange: (filterFn?: any, sortFn?: any) => void;
|
17
18
|
resetStartEndIndex: () => void;
|
18
|
-
|
19
|
+
getCurrentPageData: () => any[];
|
20
|
+
multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[], origin?: any) => void;
|
19
21
|
sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
|
20
22
|
};
|
21
23
|
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { TablePropTypes } from '../props';
|
2
|
+
declare const _default: (props: TablePropTypes) => {
|
3
|
+
isShiftKeyDown: import("vue").Ref<boolean>;
|
4
|
+
setStore: (row: any, index: number) => boolean;
|
5
|
+
getStore: () => {
|
6
|
+
start: any;
|
7
|
+
end: any;
|
8
|
+
};
|
9
|
+
clearStore: () => void;
|
10
|
+
setStoreStart: (row?: any, index?: any) => void;
|
11
|
+
clearStoreStart: () => void;
|
12
|
+
};
|
13
|
+
export default _default;
|
package/lib/table/props.d.ts
CHANGED
@@ -1,57 +1,58 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
import { IHeadColor, ROW_HOVER, SORT_OPTION } from './const';
|
3
3
|
export declare enum SortScope {
|
4
|
-
|
5
|
-
|
4
|
+
ALL = "all",
|
5
|
+
CURRENT = "current"
|
6
6
|
}
|
7
7
|
export type ColumnFilterListItem = {
|
8
8
|
text?: string;
|
9
9
|
value?: string;
|
10
10
|
};
|
11
11
|
export declare enum OverflowModeEnum {
|
12
|
-
|
13
|
-
|
12
|
+
AUTO = "auto",
|
13
|
+
STATIC = "static"
|
14
14
|
}
|
15
15
|
export declare const EnumOverflowModeType: import("vue-types").VueTypeDef<"auto" | "static">;
|
16
16
|
export declare enum ColumnTypeEnum {
|
17
|
-
SELECTION = "selection",
|
18
|
-
INDEX = "index",
|
19
17
|
EXPAND = "expand",
|
20
|
-
|
18
|
+
INDEX = "index",
|
19
|
+
NONE = "__COL_TYPE_NONE",
|
20
|
+
SELECTION = "selection"
|
21
21
|
}
|
22
22
|
export declare enum TableAlignEnum {
|
23
|
-
LEFT = "left",
|
24
|
-
RIGHT = "right",
|
25
23
|
CENTER = "center",
|
26
|
-
|
24
|
+
LEFT = "left",
|
25
|
+
NONE = "",
|
26
|
+
RIGHT = "right"
|
27
27
|
}
|
28
|
-
export declare const columnType: import("vue-types").VueTypeDef<"
|
29
|
-
export declare const TableAlign: import("vue-types").VueTypeDef<"" | "
|
28
|
+
export declare const columnType: import("vue-types").VueTypeDef<"index" | "expand" | "__COL_TYPE_NONE" | "selection">;
|
29
|
+
export declare const TableAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
30
30
|
export declare enum FullEnum {
|
31
31
|
FULL = "full",
|
32
32
|
FUZZY = "fuzzy"
|
33
33
|
}
|
34
34
|
export declare const fullType: import("vue-types").VueTypeDef<"full" | "fuzzy">;
|
35
35
|
export declare enum SettingSizeEnum {
|
36
|
-
|
36
|
+
LARGE = "large",
|
37
37
|
MEDIUM = "medium",
|
38
|
-
|
38
|
+
SMALL = "small"
|
39
39
|
}
|
40
40
|
export declare const settingSizeType: import("vue-types").VueTypeDef<"small" | "medium" | "large">;
|
41
41
|
export declare enum FixedEnum {
|
42
42
|
LEFT = "left",
|
43
43
|
RIGHT = "right"
|
44
44
|
}
|
45
|
-
export declare const fixedType: import("vue-types").VueTypeValidableDef<"
|
46
|
-
export type
|
47
|
-
content: string |
|
48
|
-
disabled?: (col: Column, row: any) => boolean | boolean;
|
45
|
+
export declare const fixedType: import("vue-types").VueTypeValidableDef<"left" | "right">;
|
46
|
+
export type IOverflowTooltipOption = {
|
47
|
+
content: ((col: Column, row: any) => string) | string;
|
48
|
+
disabled?: ((col: Column, row: any) => boolean) | boolean;
|
49
49
|
watchCellResize?: boolean;
|
50
50
|
mode?: `${OverflowModeEnum}`;
|
51
51
|
popoverOption?: any;
|
52
52
|
resizerWay?: ResizerWay;
|
53
53
|
showHead?: boolean;
|
54
|
-
}
|
54
|
+
};
|
55
|
+
export type IOverflowTooltipProp = IOverflowTooltipOption | boolean;
|
55
56
|
export type IOverflowTooltip = IOverflowTooltipProp;
|
56
57
|
export declare const IOverflowTooltipPropType: import("vue-types").VueTypeDef<IOverflowTooltipProp>;
|
57
58
|
export type ISortOption = {
|
@@ -78,9 +79,9 @@ export type IFilterShape = {
|
|
78
79
|
export type IFilterPropShape = IFilterShape | boolean | string;
|
79
80
|
export declare const IFilterType: import("vue-types").VueTypeDef<IFilterPropShape>;
|
80
81
|
export declare enum ColumnPickEnum {
|
82
|
+
DISABLED = "disabled",
|
81
83
|
MULTI = "multi",
|
82
|
-
SINGLE = "single"
|
83
|
-
DISABLED = "disabled"
|
84
|
+
SINGLE = "single"
|
84
85
|
}
|
85
86
|
export declare enum ResizerWay {
|
86
87
|
DEBOUNCE = "debounce",
|
@@ -103,6 +104,7 @@ export type Settings = {
|
|
103
104
|
size?: string;
|
104
105
|
sizeList?: SizeItem[];
|
105
106
|
showLineHeight?: boolean;
|
107
|
+
extCls?: string;
|
106
108
|
trigger: 'manual';
|
107
109
|
};
|
108
110
|
export type ISettingPropType = Settings | boolean;
|
@@ -113,7 +115,7 @@ export type Field = {
|
|
113
115
|
id?: string;
|
114
116
|
name?: string;
|
115
117
|
};
|
116
|
-
export type LabelFunctionString = ((_column: any, _index: any) =>
|
118
|
+
export type LabelFunctionString = ((_column: any, _index: any) => JSX.Element | boolean | number | string) | boolean | number | string;
|
117
119
|
export declare const LabelFunctionStringType: import("vue-types").VueTypeDef<LabelFunctionString>;
|
118
120
|
export type RenderFunctionString = ({ cell, data, row, column, index, rows, }: {
|
119
121
|
cell: any;
|
@@ -122,14 +124,14 @@ export type RenderFunctionString = ({ cell, data, row, column, index, rows, }: {
|
|
122
124
|
column: any;
|
123
125
|
index: any;
|
124
126
|
rows: any;
|
125
|
-
}) =>
|
127
|
+
}) => JSX.Element | boolean | number | string;
|
126
128
|
export declare const RenderFunctionStringType: import("vue-types").VueTypeDef<RenderFunctionString>;
|
127
129
|
export type SpanFunctionString = (({ column, colIndex, row, rowIndex }: {
|
128
130
|
column: any;
|
129
131
|
colIndex: any;
|
130
132
|
row: any;
|
131
133
|
rowIndex: any;
|
132
|
-
}) => number) |
|
134
|
+
}) => number) | number;
|
133
135
|
export declare const SpanFunctionStringType: import("vue-types").VueTypeDef<SpanFunctionString>;
|
134
136
|
export type RowClassFunctionString = ((row: any) => string) | string;
|
135
137
|
export declare const RowClassFunctionStringType: import("vue-types").VueTypeDef<RowClassFunctionString>;
|
@@ -137,7 +139,7 @@ export type RowHeightFunctionNumber = ((_type: string, _row: any, _rowIndex: num
|
|
137
139
|
export declare const RowHeightFunctionNumberType: import("vue-types").VueTypeDef<RowHeightFunctionNumber>;
|
138
140
|
type FunctionNumber = Function | number;
|
139
141
|
export declare const FunctionNumberType: import("vue-types").VueTypeDef<FunctionNumber>;
|
140
|
-
type StringNumber =
|
142
|
+
type StringNumber = number | string;
|
141
143
|
export declare const StringNumberType: (val: number | string) => import("vue-types").VueTypeDef<StringNumber> & {
|
142
144
|
default: StringNumber;
|
143
145
|
};
|
@@ -163,9 +165,9 @@ export type Column = {
|
|
163
165
|
width?: number | string;
|
164
166
|
minWidth?: number | string;
|
165
167
|
columnKey?: string;
|
166
|
-
showOverflowTooltip?:
|
168
|
+
showOverflowTooltip?: IOverflowTooltip;
|
167
169
|
type?: string;
|
168
|
-
fixed?:
|
170
|
+
fixed?: boolean | string;
|
169
171
|
resizable?: boolean;
|
170
172
|
sort?: ISortShape | boolean | string;
|
171
173
|
filter?: IFilterShape | boolean | string;
|
@@ -175,12 +177,12 @@ export type Column = {
|
|
175
177
|
className?: RowClassFunctionString;
|
176
178
|
align?: string;
|
177
179
|
prop?: LabelFunctionString;
|
178
|
-
index?:
|
180
|
+
index?: number;
|
179
181
|
explain?: IColumnExplain;
|
180
182
|
};
|
181
183
|
export declare const IColumnProp: import("vue-types").VueTypeDef<Column>;
|
182
184
|
export type Thead = {
|
183
|
-
height?:
|
185
|
+
height?: number;
|
184
186
|
isShow?: boolean;
|
185
187
|
cellFn?: Function;
|
186
188
|
color?: IHeadColor | string;
|
@@ -200,13 +202,13 @@ export type IColumnActive = {
|
|
200
202
|
export type IReactiveProp = {
|
201
203
|
activeColumns: IColumnActive[];
|
202
204
|
rowActions: Record<string, any>;
|
203
|
-
scrollTranslateY:
|
204
|
-
scrollTranslateX:
|
205
|
+
scrollTranslateY: number;
|
206
|
+
scrollTranslateX: number;
|
205
207
|
pos: Record<string, any>;
|
206
208
|
settings: Settings | boolean;
|
207
209
|
setting: {
|
208
210
|
size: string;
|
209
|
-
height:
|
211
|
+
height: number;
|
210
212
|
};
|
211
213
|
defaultSort: Record<string, any>;
|
212
214
|
};
|
@@ -217,13 +219,13 @@ export type Colgroups = Column & {
|
|
217
219
|
};
|
218
220
|
export declare enum IColSortBehavior {
|
219
221
|
/**
|
220
|
-
*
|
222
|
+
* 列与列之间的排序是独立的,互斥的
|
221
223
|
*/
|
222
|
-
|
224
|
+
independent = "independent",
|
223
225
|
/**
|
224
|
-
*
|
226
|
+
* 列排序是相互依赖的
|
225
227
|
*/
|
226
|
-
|
228
|
+
interdependent = "interdependent"
|
227
229
|
}
|
228
230
|
export declare const tableProps: {
|
229
231
|
/**
|
@@ -457,7 +459,7 @@ export declare const tableProps: {
|
|
457
459
|
/**
|
458
460
|
* 提供自定义判定当前行是否选中
|
459
461
|
* 如果设置了此属性,其他判定均不生效
|
460
|
-
* ({ row
|
462
|
+
* ({ row }) => bool
|
461
463
|
*/
|
462
464
|
isSelectedFn: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
463
465
|
default: (...args: any[]) => any;
|
@@ -527,8 +529,8 @@ export declare const tableProps: {
|
|
527
529
|
} & {
|
528
530
|
default: boolean;
|
529
531
|
};
|
530
|
-
align: import("vue-types").VueTypeDef<"" | "
|
531
|
-
headerAlign: import("vue-types").VueTypeDef<"" | "
|
532
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
533
|
+
headerAlign: import("vue-types").VueTypeDef<"" | "left" | "right" | "center">;
|
532
534
|
/**
|
533
535
|
* 插入至表格第一行之前的内容容器样式
|
534
536
|
* 默认样式为固定在第一行
|
@@ -558,5 +560,13 @@ export declare const tableProps: {
|
|
558
560
|
rowDraggable: import("vue-types").VueTypeDef<any> & {
|
559
561
|
default: any;
|
560
562
|
};
|
563
|
+
/**
|
564
|
+
* 是否支持shift键多行选择
|
565
|
+
*/
|
566
|
+
shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
|
567
|
+
default: boolean;
|
568
|
+
} & {
|
569
|
+
default: boolean;
|
570
|
+
};
|
561
571
|
};
|
562
572
|
export {};
|