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
@@ -16,8 +16,8 @@ declare const BkOverflowTitle: {
|
|
16
16
|
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
17
17
|
default: string | (() => HTMLElement);
|
18
18
|
};
|
19
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
20
|
-
default: "auto" | "auto-
|
19
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
20
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
21
21
|
};
|
22
22
|
resizeable: import("vue-types").VueTypeValidableDef<boolean> & {
|
23
23
|
default: boolean;
|
@@ -59,8 +59,8 @@ declare const BkOverflowTitle: {
|
|
59
59
|
} & {
|
60
60
|
default: boolean;
|
61
61
|
};
|
62
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
63
|
-
default: "auto" | "auto-
|
62
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
63
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
64
64
|
};
|
65
65
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
66
66
|
default: string;
|
@@ -171,8 +171,8 @@ declare const BkOverflowTitle: {
|
|
171
171
|
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
172
172
|
default: string | (() => HTMLElement);
|
173
173
|
};
|
174
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
175
|
-
default: "auto" | "auto-
|
174
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
175
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
176
176
|
};
|
177
177
|
resizeable: import("vue-types").VueTypeValidableDef<boolean> & {
|
178
178
|
default: boolean;
|
@@ -214,8 +214,8 @@ declare const BkOverflowTitle: {
|
|
214
214
|
} & {
|
215
215
|
default: boolean;
|
216
216
|
};
|
217
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
218
|
-
default: "auto" | "auto-
|
217
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
218
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
219
219
|
};
|
220
220
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
221
221
|
default: string;
|
@@ -308,7 +308,7 @@ declare const BkOverflowTitle: {
|
|
308
308
|
}>>, {
|
309
309
|
type: string;
|
310
310
|
content: string;
|
311
|
-
placement: "auto" | "auto-
|
311
|
+
placement: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
312
312
|
boundary: string | HTMLElement;
|
313
313
|
calType: string;
|
314
314
|
resizeable: boolean;
|
@@ -332,8 +332,8 @@ declare const BkOverflowTitle: {
|
|
332
332
|
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
333
333
|
default: string | (() => HTMLElement);
|
334
334
|
};
|
335
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
336
|
-
default: "auto" | "auto-
|
335
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
336
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
337
337
|
};
|
338
338
|
resizeable: import("vue-types").VueTypeValidableDef<boolean> & {
|
339
339
|
default: boolean;
|
@@ -375,8 +375,8 @@ declare const BkOverflowTitle: {
|
|
375
375
|
} & {
|
376
376
|
default: boolean;
|
377
377
|
};
|
378
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
379
|
-
default: "auto" | "auto-
|
378
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
379
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
380
380
|
};
|
381
381
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
382
382
|
default: string;
|
@@ -477,7 +477,7 @@ declare const BkOverflowTitle: {
|
|
477
477
|
}, {}, {}, {}, {
|
478
478
|
type: string;
|
479
479
|
content: string;
|
480
|
-
placement: "auto" | "auto-
|
480
|
+
placement: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
481
481
|
boundary: string | HTMLElement;
|
482
482
|
calType: string;
|
483
483
|
resizeable: boolean;
|
@@ -498,8 +498,8 @@ declare const BkOverflowTitle: {
|
|
498
498
|
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
499
499
|
default: string | (() => HTMLElement);
|
500
500
|
};
|
501
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
502
|
-
default: "auto" | "auto-
|
501
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
502
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
503
503
|
};
|
504
504
|
resizeable: import("vue-types").VueTypeValidableDef<boolean> & {
|
505
505
|
default: boolean;
|
@@ -541,8 +541,8 @@ declare const BkOverflowTitle: {
|
|
541
541
|
} & {
|
542
542
|
default: boolean;
|
543
543
|
};
|
544
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
545
|
-
default: "auto" | "auto-
|
544
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
545
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
546
546
|
};
|
547
547
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
548
548
|
default: string;
|
@@ -643,7 +643,7 @@ declare const BkOverflowTitle: {
|
|
643
643
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
644
644
|
type: string;
|
645
645
|
content: string;
|
646
|
-
placement: "auto" | "auto-
|
646
|
+
placement: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
647
647
|
boundary: string | HTMLElement;
|
648
648
|
calType: string;
|
649
649
|
resizeable: boolean;
|
@@ -41,7 +41,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
41
41
|
;// CONCATENATED MODULE: external "../shared"
|
42
42
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
43
43
|
var y = x => () => x
|
44
|
-
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
44
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
45
45
|
;// CONCATENATED MODULE: external "vue"
|
46
46
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
47
47
|
var external_vue_y = x => () => x
|
@@ -59,25 +59,50 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
59
59
|
var external_vue_types_y = x => () => x
|
60
60
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["string"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.string });
|
61
61
|
;// CONCATENATED MODULE: ../../packages/overflow-title/src/props.ts
|
62
|
+
/*
|
63
|
+
* Tencent is pleased to support the open source community by making
|
64
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
65
|
+
*
|
66
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
67
|
+
*
|
68
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
69
|
+
*
|
70
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
71
|
+
*
|
72
|
+
* ---------------------------------------------------
|
73
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
74
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
75
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
76
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
77
|
+
*
|
78
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
79
|
+
* the Software.
|
80
|
+
*
|
81
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
82
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
83
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
84
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
85
|
+
* IN THE SOFTWARE.
|
86
|
+
*/
|
62
87
|
|
63
88
|
|
64
89
|
var PlacementEnum;
|
65
90
|
(function (PlacementEnum) {
|
66
91
|
PlacementEnum["AUTO"] = "auto";
|
67
|
-
PlacementEnum["AUTO_START"] = "auto-start";
|
68
92
|
PlacementEnum["AUTO_END"] = "auto-end";
|
69
|
-
PlacementEnum["
|
70
|
-
PlacementEnum["RIGHT"] = "right";
|
93
|
+
PlacementEnum["AUTO_START"] = "auto-start";
|
71
94
|
PlacementEnum["BOTTOM"] = "bottom";
|
72
|
-
PlacementEnum["LEFT"] = "left";
|
73
|
-
PlacementEnum["TOP_START"] = "top-start";
|
74
|
-
PlacementEnum["TOP_END"] = "top-end";
|
75
|
-
PlacementEnum["BOTTOM_START"] = "bottom-start";
|
76
95
|
PlacementEnum["BOTTOM_END"] = "bottom-end";
|
77
|
-
PlacementEnum["
|
78
|
-
PlacementEnum["
|
79
|
-
PlacementEnum["LEFT_START"] = "left-start";
|
96
|
+
PlacementEnum["BOTTOM_START"] = "bottom-start";
|
97
|
+
PlacementEnum["LEFT"] = "left";
|
80
98
|
PlacementEnum["LEFT_END"] = "left-end";
|
99
|
+
PlacementEnum["LEFT_START"] = "left-start";
|
100
|
+
PlacementEnum["RIGHT"] = "right";
|
101
|
+
PlacementEnum["RIGHT_END"] = "right-end";
|
102
|
+
PlacementEnum["RIGHT_START"] = "right-start";
|
103
|
+
PlacementEnum["TOP"] = "top";
|
104
|
+
PlacementEnum["TOP_END"] = "top-end";
|
105
|
+
PlacementEnum["TOP_START"] = "top-start";
|
81
106
|
})(PlacementEnum || (PlacementEnum = {}));
|
82
107
|
function placementType() {
|
83
108
|
return (0,external_vue_types_namespaceObject.string)().def(PlacementEnum.BOTTOM);
|
@@ -91,47 +116,40 @@ function placementType() {
|
|
91
116
|
resizeable: shared_namespaceObject.PropTypes.bool,
|
92
117
|
popoverOptions: Object // popover属性
|
93
118
|
});
|
94
|
-
;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByCanvas.ts
|
95
|
-
function getActualWidthByCanvas(text, options) {
|
96
|
-
var _options$fontSize = options.fontSize,
|
97
|
-
fontSize = _options$fontSize === void 0 ? 14 : _options$fontSize,
|
98
|
-
_options$fontFamily = options.fontFamily,
|
99
|
-
fontFamily = _options$fontFamily === void 0 ? 'Microsoft YaHei' : _options$fontFamily;
|
100
|
-
var canvas = document.createElement('canvas');
|
101
|
-
var ctx = canvas.getContext('2d');
|
102
|
-
ctx.font = "".concat(fontSize, "px ").concat(fontFamily);
|
103
|
-
var metrics = ctx.measureText(text);
|
104
|
-
var actual = Math.abs(metrics.actualBoundingBoxLeft) + Math.abs(metrics.actualBoundingBoxRight);
|
105
|
-
return Math.max(metrics.width, actual);
|
106
|
-
}
|
107
|
-
/* harmony default export */ const utils_getActualWidthByCanvas = (getActualWidthByCanvas);
|
108
|
-
;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByDom.ts
|
109
|
-
function getActualWidthByDom(text, options) {
|
110
|
-
var dom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.body;
|
111
|
-
if (!dom) {
|
112
|
-
return 0;
|
113
|
-
}
|
114
|
-
var _ref = options || {},
|
115
|
-
fontSize = _ref.fontSize,
|
116
|
-
fontFamily = _ref.fontFamily;
|
117
|
-
var tempDom = document.createElement('div');
|
118
|
-
tempDom.style.cssText = "position: absolute;left: -999em;top:-999em;z-index: -1;text-overflow: initial;\n ".concat(fontSize ? "font-size:".concat(fontSize, " ;") : '', "\n ").concat(fontFamily ? "font-family:".concat(fontFamily, " ") : '', "\n ");
|
119
|
-
tempDom.innerText = text;
|
120
|
-
dom.append(tempDom);
|
121
|
-
var clientWidth = tempDom.clientWidth;
|
122
|
-
dom.removeChild(tempDom);
|
123
|
-
return clientWidth;
|
124
|
-
}
|
125
|
-
/* harmony default export */ const utils_getActualWidthByDom = (getActualWidthByDom);
|
126
119
|
;// CONCATENATED MODULE: ../../packages/overflow-title/src/components/overflow-title.tsx
|
127
120
|
|
121
|
+
/*
|
122
|
+
* Tencent is pleased to support the open source community by making
|
123
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
124
|
+
*
|
125
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
126
|
+
*
|
127
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
128
|
+
*
|
129
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
130
|
+
*
|
131
|
+
* ---------------------------------------------------
|
132
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
133
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
134
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
135
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
136
|
+
*
|
137
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
138
|
+
* the Software.
|
139
|
+
*
|
140
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
141
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
142
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
143
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
144
|
+
* IN THE SOFTWARE.
|
145
|
+
*/
|
128
146
|
|
129
147
|
|
130
148
|
|
131
149
|
|
132
150
|
|
133
|
-
|
134
|
-
|
151
|
+
// import getActualWidthByCanvas from '../utils/getActualWidthByCanvas';
|
152
|
+
// import getActualWidthByDom from '../utils/getActualWidthByDom';
|
135
153
|
/* harmony default export */ const overflow_title = ((0,external_vue_namespaceObject.defineComponent)({
|
136
154
|
name: 'OverflowTitle',
|
137
155
|
props: props,
|
@@ -149,29 +167,23 @@ function getActualWidthByDom(text, options) {
|
|
149
167
|
return slots === null || slots === void 0 || (_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
|
150
168
|
});
|
151
169
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
152
|
-
|
170
|
+
// const { clientWidth } = boxRef.value;
|
153
171
|
var resizeHandler = (0,shared_namespaceObject.debounce)(500, function () {
|
154
172
|
isShowTips.value = false;
|
155
173
|
textProps.value = {};
|
156
|
-
|
157
|
-
if (props.calType === 'dom') {
|
158
|
-
|
159
|
-
|
160
|
-
}
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
textWidth = utils_getActualWidthByCanvas(contentText.value, {
|
165
|
-
fontSize: fontSize,
|
166
|
-
fontFamily: fontFamily
|
167
|
-
});
|
168
|
-
}
|
169
|
-
if (textWidth > clientWidth) {
|
174
|
+
// let textWidth = 0;
|
175
|
+
// if (props.calType === 'dom') {
|
176
|
+
// textWidth = getActualWidthByDom(textRef.value?.textContent, null, boxRef.value);
|
177
|
+
// } else {
|
178
|
+
// const { fontSize, fontFamily } = getComputedStyle(boxRef.value);
|
179
|
+
// textWidth = getActualWidthByCanvas(contentText.value as string, { fontSize, fontFamily });
|
180
|
+
// }
|
181
|
+
if ((0,shared_namespaceObject.hasOverflowEllipsis)(textRef.value)) {
|
170
182
|
isShowTips.value = true;
|
171
183
|
if (props.type === 'title') {
|
172
|
-
var _textRef$value$innerT, _textRef$
|
184
|
+
var _textRef$value$innerT, _textRef$value;
|
173
185
|
textProps.value = {
|
174
|
-
title: (_textRef$value$innerT = textRef === null || textRef === void 0 || (_textRef$
|
186
|
+
title: (_textRef$value$innerT = textRef === null || textRef === void 0 || (_textRef$value = textRef.value) === null || _textRef$value === void 0 ? void 0 : _textRef$value.innerText) !== null && _textRef$value$innerT !== void 0 ? _textRef$value$innerT : props.content
|
175
187
|
};
|
176
188
|
}
|
177
189
|
}
|
@@ -200,8 +212,8 @@ function getActualWidthByDom(text, options) {
|
|
200
212
|
"ref": "boxRef",
|
201
213
|
"class": "position-relative"
|
202
214
|
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
203
|
-
"placement": this.placement,
|
204
215
|
"boundary": this.boundary || document.body,
|
216
|
+
"placement": this.placement,
|
205
217
|
"popoverDelay": [200, 0]
|
206
218
|
}, props.popoverOptions, {
|
207
219
|
"disabled": this.type === 'title' || !this.isShowTips
|
@@ -218,6 +230,38 @@ function getActualWidthByDom(text, options) {
|
|
218
230
|
})]);
|
219
231
|
}
|
220
232
|
}));
|
233
|
+
;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByCanvas.ts
|
234
|
+
function getActualWidthByCanvas(text, options) {
|
235
|
+
var _options$fontSize = options.fontSize,
|
236
|
+
fontSize = _options$fontSize === void 0 ? 14 : _options$fontSize,
|
237
|
+
_options$fontFamily = options.fontFamily,
|
238
|
+
fontFamily = _options$fontFamily === void 0 ? 'Microsoft YaHei' : _options$fontFamily;
|
239
|
+
var canvas = document.createElement('canvas');
|
240
|
+
var ctx = canvas.getContext('2d');
|
241
|
+
ctx.font = "".concat(fontSize, "px ").concat(fontFamily);
|
242
|
+
var metrics = ctx.measureText(text);
|
243
|
+
var actual = Math.abs(metrics.actualBoundingBoxLeft) + Math.abs(metrics.actualBoundingBoxRight);
|
244
|
+
return Math.max(metrics.width, actual);
|
245
|
+
}
|
246
|
+
/* harmony default export */ const utils_getActualWidthByCanvas = (getActualWidthByCanvas);
|
247
|
+
;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByDom.ts
|
248
|
+
function getActualWidthByDom(text, options) {
|
249
|
+
var dom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document.body;
|
250
|
+
if (!dom) {
|
251
|
+
return 0;
|
252
|
+
}
|
253
|
+
var _ref = options || {},
|
254
|
+
fontSize = _ref.fontSize,
|
255
|
+
fontFamily = _ref.fontFamily;
|
256
|
+
var tempDom = document.createElement('div');
|
257
|
+
tempDom.style.cssText = "position: absolute;left: -999em;top:-999em;z-index: -1;text-overflow: initial;\n ".concat(fontSize ? "font-size:".concat(fontSize, " ;") : '', "\n ").concat(fontFamily ? "font-family:".concat(fontFamily, " ") : '', "\n ");
|
258
|
+
tempDom.innerText = text;
|
259
|
+
dom.append(tempDom);
|
260
|
+
var clientWidth = tempDom.clientWidth;
|
261
|
+
dom.removeChild(tempDom);
|
262
|
+
return clientWidth;
|
263
|
+
}
|
264
|
+
/* harmony default export */ const utils_getActualWidthByDom = (getActualWidthByDom);
|
221
265
|
;// CONCATENATED MODULE: ../../packages/overflow-title/src/directive/overflow-title.ts
|
222
266
|
|
223
267
|
|
@@ -1,25 +1,25 @@
|
|
1
1
|
import { PropType } from 'vue/dist/vue';
|
2
2
|
export type TipsType = 'tips' | 'title';
|
3
|
-
export type CalType = '
|
3
|
+
export type CalType = 'canvas' | 'dom';
|
4
4
|
export declare enum PlacementEnum {
|
5
5
|
AUTO = "auto",
|
6
|
-
AUTO_START = "auto-start",
|
7
6
|
AUTO_END = "auto-end",
|
8
|
-
|
9
|
-
RIGHT = "right",
|
7
|
+
AUTO_START = "auto-start",
|
10
8
|
BOTTOM = "bottom",
|
11
|
-
LEFT = "left",
|
12
|
-
TOP_START = "top-start",
|
13
|
-
TOP_END = "top-end",
|
14
|
-
BOTTOM_START = "bottom-start",
|
15
9
|
BOTTOM_END = "bottom-end",
|
16
|
-
|
17
|
-
|
10
|
+
BOTTOM_START = "bottom-start",
|
11
|
+
LEFT = "left",
|
12
|
+
LEFT_END = "left-end",
|
18
13
|
LEFT_START = "left-start",
|
19
|
-
|
14
|
+
RIGHT = "right",
|
15
|
+
RIGHT_END = "right-end",
|
16
|
+
RIGHT_START = "right-start",
|
17
|
+
TOP = "top",
|
18
|
+
TOP_END = "top-end",
|
19
|
+
TOP_START = "top-start"
|
20
20
|
}
|
21
|
-
export declare function placementType(): import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
22
|
-
default: "auto" | "auto-
|
21
|
+
export declare function placementType(): import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
22
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
23
23
|
};
|
24
24
|
declare const _default: {
|
25
25
|
content: import("vue-types").VueTypeValidableDef<string> & {
|
@@ -34,13 +34,13 @@ declare const _default: {
|
|
34
34
|
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
35
35
|
default: string | (() => HTMLElement);
|
36
36
|
};
|
37
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
38
|
-
default: "auto" | "auto-
|
37
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
38
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
39
39
|
};
|
40
40
|
resizeable: import("vue-types").VueTypeValidableDef<boolean> & {
|
41
41
|
default: boolean;
|
42
42
|
};
|
43
|
-
popoverOptions: PropType<Partial<Readonly<import("vue").ExtractPropTypes<{
|
43
|
+
popoverOptions: PropType<Partial<Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
44
44
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
45
|
default: boolean;
|
46
46
|
} & {
|
@@ -77,8 +77,8 @@ declare const _default: {
|
|
77
77
|
} & {
|
78
78
|
default: boolean;
|
79
79
|
};
|
80
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
81
|
-
default: "auto" | "auto-
|
80
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
81
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
82
82
|
};
|
83
83
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
84
84
|
default: string;
|
package/lib/pagination/index.js
CHANGED
@@ -249,16 +249,17 @@ function _isSlot(s) {
|
|
249
249
|
}), [(0,external_vue_namespaceObject.createVNode)("div", null, [t.value.eachPage]), (0,external_vue_namespaceObject.createVNode)(select_namespaceObject["default"], {
|
250
250
|
"class": "".concat(resolveClassName('pagination-limit-select')),
|
251
251
|
"clearable": false,
|
252
|
+
"disabled": proxy.disabled,
|
253
|
+
"filterable": false,
|
254
|
+
"modelValue": localLimit.value,
|
252
255
|
"size": "small",
|
253
256
|
"withValidate": false,
|
254
|
-
"
|
255
|
-
"onChange": handleLimitChange,
|
256
|
-
"disabled": proxy.disabled
|
257
|
+
"onChange": handleLimitChange
|
257
258
|
}, _isSlot(_slot = proxy.limitList.map(function (num, index) {
|
258
259
|
return (0,external_vue_namespaceObject.createVNode)(select_namespaceObject.BkOption, {
|
259
260
|
"id": num,
|
260
|
-
"
|
261
|
-
"
|
261
|
+
"key": "".concat(index, "_").concat(num),
|
262
|
+
"name": "".concat(num)
|
262
263
|
}, null);
|
263
264
|
})) ? _slot : {
|
264
265
|
"default": function _default() {
|
@@ -417,8 +418,8 @@ var PAGE_ITEMS_NUM = 5;
|
|
417
418
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-pre')), true), 'is-disabled', isPagePreDisabled.value),
|
418
419
|
"onClick": handlePrePage
|
419
420
|
}, [proxy.prevText || (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
420
|
-
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === 1),
|
421
421
|
"key": "1",
|
422
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === 1),
|
422
423
|
"onClick": function onClick() {
|
423
424
|
return handleItemClick(1);
|
424
425
|
}
|
@@ -428,8 +429,8 @@ var PAGE_ITEMS_NUM = 5;
|
|
428
429
|
"onClick": handlePreBatch
|
429
430
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Ellipsis, null, null)]), list.value.map(function (num) {
|
430
431
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
431
|
-
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === num),
|
432
432
|
"key": num,
|
433
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === num),
|
433
434
|
"onClick": function onClick() {
|
434
435
|
return handleItemClick(num);
|
435
436
|
}
|
@@ -439,8 +440,8 @@ var PAGE_ITEMS_NUM = 5;
|
|
439
440
|
"class": "".concat(resolveClassName('pagination-list-next-batch')),
|
440
441
|
"onClick": handleNextBatch
|
441
442
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Ellipsis, null, null)]), proxy.totalPageNum > 1 && (0,external_vue_namespaceObject.createVNode)("div", {
|
442
|
-
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === proxy.totalPageNum),
|
443
443
|
"key": "last",
|
444
|
+
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-list-item')), true), 'is-active', localCurrent.value === proxy.totalPageNum),
|
444
445
|
"onClick": function onClick() {
|
445
446
|
return handleItemClick(proxy.totalPageNum);
|
446
447
|
}
|
@@ -617,12 +618,12 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
617
618
|
"class": _defineProperty(_defineProperty({}, "".concat(resolveClassName('pagination-btn-pre')), true), 'is-disabled', isPagePreDisabled.value),
|
618
619
|
"onClick": handlePrePage
|
619
620
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
620
|
-
"theme": "light",
|
621
|
-
"trigger": "click",
|
622
|
-
"arrow": false,
|
623
621
|
"width": 56,
|
622
|
+
"arrow": false,
|
624
623
|
"boundary": "body",
|
625
|
-
"placement": "bottom"
|
624
|
+
"placement": "bottom",
|
625
|
+
"theme": "light",
|
626
|
+
"trigger": "click"
|
626
627
|
}, {
|
627
628
|
"default": function _default() {
|
628
629
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -630,10 +631,10 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
630
631
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
631
632
|
"ref": inputRef,
|
632
633
|
"class": "".concat(resolveClassName('pagination-editor')),
|
633
|
-
"contenteditable": true,
|
634
634
|
"spellcheck": "false",
|
635
|
-
"
|
635
|
+
"contenteditable": true,
|
636
636
|
"onBlur": handlePageEditorBlur,
|
637
|
+
"onFocus": handlePageEditorFocus,
|
637
638
|
"onInput": handlePageEditorInput,
|
638
639
|
"onKeydown": handlePageEditorKeydown
|
639
640
|
}, [localCurrent.value]), (0,external_vue_namespaceObject.createVNode)("span", null, [(0,external_vue_namespaceObject.createTextVNode)("/")]), (0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -645,11 +646,11 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
645
646
|
"class": "".concat(resolveClassName('pagination-picker-list'))
|
646
647
|
}, [list.value.map(function (item) {
|
647
648
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
649
|
+
"key": item,
|
648
650
|
"class": {
|
649
651
|
item: true,
|
650
652
|
'is-actived': item === localCurrent.value
|
651
653
|
},
|
652
|
-
"key": item,
|
653
654
|
"onClick": function onClick() {
|
654
655
|
return handlePageChange(item);
|
655
656
|
}
|
@@ -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-pagination {
|
128
131
|
display: flex;
|
package/lib/pagination/type.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { ComponentPublicInstance } from 'vue';
|
2
1
|
import type { PaginationProps } from './pagination';
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
3
3
|
export type IPaginationInstance = ComponentPublicInstance<PaginationProps, {
|
4
4
|
limit: PaginationProps['limit'];
|
5
5
|
totalPageNum: number;
|
@@ -23,5 +23,5 @@
|
|
23
23
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
24
|
* IN THE SOFTWARE.
|
25
25
|
*/
|
26
|
-
import $bkPopover from '
|
26
|
+
import $bkPopover from '../popover/plugin-popover';
|
27
27
|
export default $bkPopover;
|