bkui-vue 2.0.1-beta.11 → 2.0.1-beta.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/index.cjs.js +142 -168
- package/dist/index.esm.js +29125 -32074
- package/dist/index.umd.js +142 -168
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +1 -0
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +24 -24
- package/lib/alert/alert.d.ts +5 -12
- package/lib/alert/alert.variable.css +1 -0
- package/lib/alert/index.d.ts +131 -93
- package/lib/alert/index.js +25 -25
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +1 -0
- package/lib/backtop/index.d.ts +118 -70
- package/lib/backtop/index.js +16 -17
- package/lib/badge/badge.variable.css +1 -0
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +20 -20
- package/lib/breadcrumb/breadcrumb.variable.css +1 -0
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.css +188 -144
- package/lib/button/button.d.ts +10 -10
- package/lib/button/button.less +74 -71
- package/lib/button/button.variable.css +189 -144
- package/lib/button/index.d.ts +160 -124
- package/lib/button/index.js +26 -26
- package/lib/card/card.variable.css +1 -0
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader-panel.d.ts +6 -1
- package/lib/cascader/cascader.css +4 -0
- package/lib/cascader/cascader.d.ts +8 -4
- package/lib/cascader/cascader.less +5 -0
- package/lib/cascader/cascader.variable.css +5 -0
- package/lib/cascader/index.d.ts +355 -393
- package/lib/cascader/index.js +377 -308
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +0 -16
- package/lib/checkbox/checkbox.css +8 -0
- package/lib/checkbox/checkbox.d.ts +40 -8
- package/lib/checkbox/checkbox.less +12 -0
- package/lib/checkbox/checkbox.variable.css +9 -0
- package/lib/checkbox/index.d.ts +194 -127
- package/lib/checkbox/index.js +65 -52
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +1 -0
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +446 -389
- package/lib/collapse/collapse-panel.d.ts +5 -5
- package/lib/collapse/collapse.variable.css +1 -0
- package/lib/collapse/index.d.ts +180 -161
- package/lib/collapse/index.js +31 -30
- package/lib/collapse/props.d.ts +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +1 -0
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.d.ts +17 -1
- package/lib/color-picker/color-picker.variable.css +1 -0
- package/lib/color-picker/index.d.ts +168 -124
- package/lib/color-picker/index.js +93 -88
- package/lib/components.d.ts +30 -32
- package/lib/components.js +29 -31
- package/lib/config-provider/config-provider.variable.css +1 -0
- package/lib/config-provider/index.d.ts +228 -161
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/container.variable.css +1 -0
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +32 -35
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +2 -2
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/date-picker.d.ts +7 -15
- package/lib/date-picker/date-picker.variable.css +1 -0
- package/lib/date-picker/index.d.ts +356 -399
- package/lib/date-picker/index.js +343 -297
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +6 -6
- package/lib/date-picker/panel/date.d.ts +2 -2
- package/lib/date-picker/panel/time-range.d.ts +3 -12
- package/lib/date-picker/panel/time.d.ts +3 -12
- package/lib/date-picker/props.d.ts +1 -5
- package/lib/date-picker/time-picker.d.ts +7 -14
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +47 -31
- package/lib/dialog/dialog.variable.css +1 -0
- package/lib/dialog/index.d.ts +309 -305
- package/lib/dialog/index.js +252 -249
- package/lib/dialog/props.d.ts +20 -13
- package/lib/directives/index.d.ts +4 -3
- package/lib/directives/index.js +219 -197
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -4
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +1 -0
- package/lib/divider/index.d.ts +116 -62
- package/lib/divider/index.js +4 -5
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.d.ts +7 -7
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/dropdown/index.d.ts +144 -102
- package/lib/dropdown/index.js +32 -32
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +1 -0
- package/lib/exception/index.d.ts +107 -46
- package/lib/exception/index.js +31 -31
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +4 -5
- package/lib/form/form-item.d.ts +7 -19
- package/lib/form/form.d.ts +3 -3
- package/lib/form/form.variable.css +1 -0
- package/lib/form/index.d.ts +139 -94
- package/lib/form/index.js +44 -42
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +1 -0
- package/lib/image/image.variable.css +1 -0
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +46 -48
- package/lib/index.d.ts +9 -3
- package/lib/index.js +5 -29
- package/lib/info-box/index.js +250 -250
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/info-box/info-box.variable.css +1 -0
- package/lib/input/index.d.ts +299 -332
- package/lib/input/index.js +110 -561
- package/lib/input/input.css +23 -1
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.less +30 -1
- package/lib/input/input.variable.css +24 -1
- package/lib/link/index.d.ts +127 -78
- package/lib/link/index.js +5 -5
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +1 -0
- package/lib/loading/index.d.ts +162 -135
- package/lib/loading/index.js +43 -40
- package/lib/loading/loading.d.ts +9 -9
- package/lib/loading/loading.variable.css +1 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.d.ts +131 -51
- package/lib/menu/index.js +46 -27
- package/lib/menu/menu-group.d.ts +9 -0
- package/lib/menu/menu-item.d.ts +9 -0
- package/lib/menu/menu.css +29 -17
- package/lib/menu/menu.less +33 -18
- package/lib/menu/menu.variable.css +30 -17
- package/lib/menu/submenu.d.ts +1 -0
- package/lib/menu/submenu.variable.css +1 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +43 -42
- package/lib/message/message.css +2 -1
- package/lib/message/message.less +3 -2
- package/lib/message/message.variable.css +3 -1
- package/lib/message/messageConstructor.d.ts +21 -21
- package/lib/modal/index.d.ts +214 -159
- package/lib/modal/index.js +68 -47
- package/lib/modal/modal.d.ts +24 -8
- package/lib/modal/modal.variable.css +1 -0
- package/lib/modal/props.mixin.d.ts +10 -3
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +27 -29
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +1 -0
- package/lib/notify/index.js +25 -24
- package/lib/notify/notify.variable.css +1 -0
- package/lib/notify/notifyConstructor.d.ts +5 -5
- package/lib/overflow-title/components/overflow-title.d.ts +45 -16
- package/lib/overflow-title/index.d.ts +298 -328
- package/lib/overflow-title/index.js +85 -28
- package/lib/overflow-title/overflow-title.css +3 -0
- package/lib/overflow-title/overflow-title.less +4 -0
- package/lib/overflow-title/overflow-title.variable.css +3 -0
- package/lib/overflow-title/props.d.ts +36 -21
- package/lib/pagination/index.d.ts +198 -203
- package/lib/pagination/index.js +128 -68
- package/lib/pagination/pagination.css +8 -8
- package/lib/pagination/pagination.d.ts +0 -13
- package/lib/pagination/pagination.less +14 -13
- package/lib/pagination/pagination.variable.css +9 -8
- 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.js +311 -304
- package/lib/pop-confirm/index.d.ts +162 -148
- package/lib/pop-confirm/index.js +40 -35
- package/lib/pop-confirm/pop-confirm.css +3 -1
- package/lib/pop-confirm/pop-confirm.d.ts +10 -20
- package/lib/pop-confirm/pop-confirm.less +3 -1
- package/lib/pop-confirm/pop-confirm.variable.css +4 -1
- package/lib/pop-confirm/props.d.ts +8 -11
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +6 -3
- package/lib/popover/index.d.ts +411 -380
- package/lib/popover/index.js +311 -304
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +51 -8
- package/lib/popover/popover.variable.css +1 -0
- package/lib/popover/props.d.ts +28 -4
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -1
- package/lib/popover/utils.d.ts +2 -0
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +229 -229
- package/lib/process/process.variable.css +1 -0
- package/lib/progress/index.d.ts +192 -183
- package/lib/progress/index.js +31 -33
- package/lib/progress/progress.d.ts +9 -9
- package/lib/progress/progress.variable.css +1 -0
- package/lib/radio/index.d.ts +155 -106
- package/lib/radio/index.js +76 -63
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.variable.css +1 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +28 -27
- package/lib/rate/rate.variable.css +1 -0
- package/lib/resize-layout/index.d.ts +204 -157
- package/lib/resize-layout/index.js +54 -34
- package/lib/resize-layout/resize-layout.d.ts +18 -7
- package/lib/resize-layout/resize-layout.variable.css +1 -0
- package/lib/scrollbar/css/scrollbar.css +109 -0
- package/lib/scrollbar/css/scrollbar.less +139 -0
- package/lib/scrollbar/{scrollbar.variable.css → css/scrollbar.variable.css} +96 -61
- package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
- package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
- package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
- package/lib/scrollbar/handlers/touch.d.ts +4 -0
- package/lib/scrollbar/helper/class-names.d.ts +21 -0
- package/lib/scrollbar/helper/css.d.ts +3 -0
- package/lib/scrollbar/helper/dom.d.ts +4 -0
- package/lib/scrollbar/helper/event-manager.d.ts +20 -0
- package/lib/scrollbar/helper/util.d.ts +11 -0
- package/lib/scrollbar/index.d.ts +133 -13
- package/lib/scrollbar/index.js +1380 -18482
- package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
- package/lib/scrollbar/update-geometry.d.ts +8 -0
- package/lib/search-select/index.d.ts +946 -701
- package/lib/search-select/index.js +644 -486
- package/lib/search-select/input.d.ts +20 -8
- package/lib/search-select/menu.d.ts +13 -1
- package/lib/search-select/search-select.css +45 -47
- package/lib/search-select/search-select.d.ts +207 -160
- package/lib/search-select/search-select.less +41 -41
- package/lib/search-select/search-select.variable.css +46 -47
- package/lib/search-select/selected.d.ts +209 -127
- package/lib/search-select/utils.d.ts +6 -6
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +1457 -1384
- package/lib/select/index.js +603 -477
- package/lib/select/option.d.ts +6 -6
- package/lib/select/select.css +9 -4
- package/lib/select/select.d.ts +285 -148
- package/lib/select/select.less +11 -4
- package/lib/select/select.variable.css +10 -4
- package/lib/select/selectTagInput.d.ts +9 -8
- package/lib/select/type.d.ts +10 -11
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +2 -1
- package/lib/shared/index.js +166 -101
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +50 -50
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +220 -182
- package/lib/sideslider/index.js +239 -237
- package/lib/sideslider/sideslider.css +7 -8
- package/lib/sideslider/sideslider.d.ts +24 -8
- package/lib/sideslider/sideslider.less +7 -8
- package/lib/sideslider/sideslider.variable.css +8 -8
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +246 -249
- package/lib/slider/slider.variable.css +1 -0
- package/lib/steps/index.d.ts +155 -131
- package/lib/steps/index.js +234 -234
- package/lib/steps/steps.d.ts +8 -18
- package/lib/steps/steps.variable.css +1 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/animate.variable.css +1 -0
- package/lib/styles/mixins/popper.variable.css +1 -0
- package/lib/styles/mixins/scroll.variable.css +1 -0
- package/lib/styles/reset.variable.css +1 -0
- package/lib/styles/themes/themes.less +1 -0
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +23 -23
- package/lib/swiper/swiper.variable.css +1 -0
- package/lib/switcher/index.d.ts +179 -157
- package/lib/switcher/index.js +24 -22
- package/lib/switcher/switcher.d.ts +9 -9
- package/lib/switcher/switcher.variable.css +1 -0
- package/lib/tab/index.d.ts +220 -258
- package/lib/tab/index.js +79 -69
- package/lib/tab/props.d.ts +27 -52
- package/lib/tab/tab-nav.d.ts +26 -66
- package/lib/tab/tab-panel.d.ts +27 -5
- package/lib/tab/tab.css +64 -0
- package/lib/tab/tab.d.ts +10 -54
- package/lib/tab/tab.less +91 -4
- package/lib/tab/tab.variable.css +65 -0
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-cell.d.ts +22 -0
- package/lib/table/components/table-column.d.ts +24 -127
- package/lib/table/const.d.ts +23 -10
- package/lib/table/events.d.ts +16 -112
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-checkbox-tooltip.d.ts +11 -0
- package/lib/table/hooks/use-column-resize.d.ts +7 -0
- package/lib/table/hooks/use-column-template.d.ts +5 -0
- package/lib/table/hooks/use-columns.d.ts +69 -0
- package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
- package/lib/table/hooks/use-fixed-column.d.ts +10 -0
- package/lib/table/hooks/use-head.d.ts +16 -0
- package/lib/table/hooks/use-layout.d.ts +25 -0
- package/lib/table/hooks/use-pagination.d.ts +16 -0
- package/lib/table/hooks/use-render.d.ts +21 -0
- package/lib/table/hooks/use-rows.d.ts +30 -0
- package/lib/table/hooks/use-settings.d.ts +138 -0
- package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +412 -1029
- package/lib/table/index.js +4698 -20825
- package/lib/table/plugins/head-filter.css +5 -0
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.less +4 -0
- package/lib/table/plugins/head-filter.variable.css +6 -0
- package/lib/table/plugins/head-sort.variable.css +1 -0
- package/lib/table/plugins/settings.css +11 -1
- package/lib/table/plugins/settings.less +12 -1
- package/lib/table/plugins/settings.variable.css +12 -1
- package/lib/table/props.d.ts +127 -62
- package/lib/table/table.css +503 -302
- package/lib/table/table.d.ts +51 -185
- package/lib/table/table.less +244 -112
- package/lib/table/table.variable.css +504 -302
- package/lib/table/utils.d.ts +44 -21
- package/lib/table-column/index.d.ts +156 -369
- package/lib/table-column/index.js +143 -62
- package/lib/tag/index.d.ts +147 -100
- package/lib/tag/index.js +21 -22
- package/lib/tag/tag.css +1 -1
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -1
- package/lib/tag-input/common.d.ts +2 -2
- package/lib/tag-input/index.d.ts +595 -712
- package/lib/tag-input/index.js +150 -17391
- package/lib/tag-input/tag-input.css +12 -9
- package/lib/tag-input/tag-input.d.ts +60 -24
- package/lib/tag-input/tag-input.less +13 -9
- package/lib/tag-input/tag-input.variable.css +13 -9
- package/lib/tag-input/tag-props.d.ts +25 -2
- package/lib/time-picker/index.d.ts +391 -455
- package/lib/time-picker/time-picker.variable.css +1 -0
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +8 -8
- package/lib/timeline/timeline.variable.css +1 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.d.ts +206 -191
- package/lib/transfer/index.js +3 -5
- package/lib/transfer/transfer.variable.css +1 -0
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +329 -357
- package/lib/tree/index.js +176 -17389
- package/lib/tree/props.d.ts +18 -11
- package/lib/tree/tree.css +103 -69
- package/lib/tree/tree.d.ts +16 -10
- package/lib/tree/tree.variable.css +104 -69
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +10 -9
- package/lib/tree/use-node-async.d.ts +2 -1
- package/lib/tree/use-node-attribute.d.ts +42 -34
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +8 -5
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +294 -286
- package/lib/upload/index.js +398 -316
- package/lib/upload/props.d.ts +11 -2
- package/lib/upload/upload-list.d.ts +11 -1
- package/lib/upload/upload-trigger.d.ts +11 -1
- package/lib/upload/upload.d.ts +25 -4
- package/lib/upload/upload.type.d.ts +12 -6
- package/lib/upload/upload.variable.css +1 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +247 -373
- package/lib/virtual-render/index.js +223 -162
- package/lib/virtual-render/props.d.ts +2 -9
- package/lib/virtual-render/use-fix-top.d.ts +1 -1
- package/lib/virtual-render/use-scrollbar.d.ts +4 -17
- package/lib/virtual-render/v-virtual-render.d.ts +7 -1
- package/lib/virtual-render/virtual-render.css +96 -70
- package/lib/virtual-render/virtual-render.d.ts +7 -23
- package/lib/virtual-render/virtual-render.less +2 -11
- package/lib/virtual-render/virtual-render.variable.css +96 -69
- package/lib/volar.components.d.ts +2 -0
- package/package.json +17 -55
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
- package/lib/scrollbar/scrollbar.css +0 -75
- package/lib/scrollbar/scrollbar.less +0 -94
- package/lib/table/plugins/col-group.d.ts +0 -38
- package/lib/table/plugins/settings.d.ts +0 -16
- package/lib/table/plugins/use-active-columns.d.ts +0 -16
- package/lib/table/plugins/use-column-resize.d.ts +0 -35
- package/lib/table/plugins/use-column-template.d.ts +0 -7
- package/lib/table/plugins/use-fixed-column.d.ts +0 -27
- package/lib/table/plugins/use-head-cell.d.ts +0 -7
- package/lib/table/plugins/use-pagination.d.ts +0 -23
- package/lib/table/use-attributes.d.ts +0 -62
- package/lib/table/use-column.d.ts +0 -275
- package/lib/table/use-common.d.ts +0 -1679
- package/lib/table/use-render.d.ts +0 -11
- /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
@@ -4,6 +4,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../sh
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__ from "lodash/random";
|
7
8
|
/******/ // The require scope
|
8
9
|
/******/ var __webpack_require__ = {};
|
9
10
|
/******/
|
@@ -34,38 +35,38 @@ __webpack_require__.d(__webpack_exports__, {
|
|
34
35
|
});
|
35
36
|
|
36
37
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
37
|
-
function _typeof(
|
38
|
+
function _typeof(obj) {
|
38
39
|
"@babel/helpers - typeof";
|
39
40
|
|
40
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
41
|
-
return typeof
|
42
|
-
} : function (
|
43
|
-
return
|
44
|
-
}, _typeof(
|
41
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
42
|
+
return typeof obj;
|
43
|
+
} : function (obj) {
|
44
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
45
|
+
}, _typeof(obj);
|
45
46
|
}
|
46
47
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
47
48
|
|
48
|
-
function
|
49
|
-
if ("object"
|
50
|
-
var
|
51
|
-
if (
|
52
|
-
var
|
53
|
-
if ("object"
|
49
|
+
function _toPrimitive(input, hint) {
|
50
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
51
|
+
var prim = input[Symbol.toPrimitive];
|
52
|
+
if (prim !== undefined) {
|
53
|
+
var res = prim.call(input, hint || "default");
|
54
|
+
if (_typeof(res) !== "object") return res;
|
54
55
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
55
56
|
}
|
56
|
-
return ("string"
|
57
|
+
return (hint === "string" ? String : Number)(input);
|
57
58
|
}
|
58
59
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
59
60
|
|
60
61
|
|
61
|
-
function
|
62
|
-
var
|
63
|
-
return "symbol"
|
62
|
+
function _toPropertyKey(arg) {
|
63
|
+
var key = _toPrimitive(arg, "string");
|
64
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
64
65
|
}
|
65
66
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
66
67
|
|
67
68
|
function _defineProperty(obj, key, value) {
|
68
|
-
key =
|
69
|
+
key = _toPropertyKey(key);
|
69
70
|
if (key in obj) {
|
70
71
|
Object.defineProperty(obj, key, {
|
71
72
|
value: value,
|
@@ -81,15 +82,15 @@ function _defineProperty(obj, key, value) {
|
|
81
82
|
;// CONCATENATED MODULE: external "vue"
|
82
83
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
83
84
|
var y = x => () => x
|
84
|
-
const external_vue_namespaceObject = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["
|
85
|
+
const external_vue_namespaceObject = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
85
86
|
;// CONCATENATED MODULE: external "../shared"
|
86
87
|
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
87
88
|
var shared_y = x => () => x
|
88
|
-
const shared_namespaceObject = shared_x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType });
|
89
|
+
const shared_namespaceObject = shared_x({ ["PlacementEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PlacementEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["placementType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.placementType, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["renderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderType, ["triggerType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.triggerType });
|
89
90
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
90
|
-
function _createForOfIteratorHelper(
|
91
|
-
function _unsupportedIterableToArray(
|
92
|
-
function _arrayLikeToArray(
|
91
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
92
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
93
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
93
94
|
/*
|
94
95
|
* Tencent is pleased to support the open source community by making
|
95
96
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -244,8 +245,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
244
245
|
* IN THE SOFTWARE.
|
245
246
|
*/
|
246
247
|
|
247
|
-
|
248
|
-
/* harmony default export */ const src_arrow = ((0,external_vue_namespaceObject.defineComponent)({
|
248
|
+
/* harmony default export */ const src_arrow = (defineComponent({
|
249
249
|
name: 'PopArrow',
|
250
250
|
render: function render() {
|
251
251
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
@@ -258,6 +258,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
258
258
|
}));
|
259
259
|
;// CONCATENATED MODULE: ../../packages/popover/src/const.tsx
|
260
260
|
|
261
|
+
var _EMIT_EVENT_TYPES;
|
261
262
|
/* eslint-disable @typescript-eslint/naming-convention */
|
262
263
|
/*
|
263
264
|
* Tencent is pleased to support the open source community by making
|
@@ -284,14 +285,13 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
284
285
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
285
286
|
* IN THE SOFTWARE.
|
286
287
|
*/
|
287
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
288
288
|
var EMIT_EVENTS;
|
289
289
|
(function (EMIT_EVENTS) {
|
290
290
|
EMIT_EVENTS["CLICK_OUTSIDE"] = "clickoutside";
|
291
|
-
EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
|
292
|
-
EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
|
293
291
|
EMIT_EVENTS["CONTENT_AfterHidden"] = "afterHidden";
|
294
292
|
EMIT_EVENTS["CONTENT_AfterShow"] = "afterShow";
|
293
|
+
EMIT_EVENTS["CONTENT_MOUSEENTER"] = "contentMouseenter";
|
294
|
+
EMIT_EVENTS["CONTENT_MOUSELEAVE"] = "contentMouseleave";
|
295
295
|
})(EMIT_EVENTS || (EMIT_EVENTS = {}));
|
296
296
|
var EVENT_SHOW_HIDE_FN = function EVENT_SHOW_HIDE_FN(_args) {
|
297
297
|
return true;
|
@@ -302,7 +302,7 @@ var EVENT_COMMON_FN = function EVENT_COMMON_FN(e) {
|
|
302
302
|
var EVENT_CLICK_OUTSIDE_FN = function EVENT_CLICK_OUTSIDE_FN(_args) {
|
303
303
|
return true;
|
304
304
|
};
|
305
|
-
var EMIT_EVENT_TYPES =
|
305
|
+
var EMIT_EVENT_TYPES = (_EMIT_EVENT_TYPES = {}, _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CLICK_OUTSIDE, EVENT_CLICK_OUTSIDE_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSEENTER, EVENT_COMMON_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_MOUSELEAVE, EVENT_COMMON_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_AfterHidden, EVENT_SHOW_HIDE_FN), _defineProperty(_EMIT_EVENT_TYPES, EMIT_EVENTS.CONTENT_AfterShow, EVENT_SHOW_HIDE_FN), _EMIT_EVENT_TYPES);
|
306
306
|
;// CONCATENATED MODULE: ../../packages/popover/src/content.tsx
|
307
307
|
|
308
308
|
/*
|
@@ -332,8 +332,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
332
332
|
*/
|
333
333
|
|
334
334
|
|
335
|
-
|
336
|
-
/* harmony default export */ const content = ((0,external_vue_namespaceObject.defineComponent)({
|
335
|
+
/* harmony default export */ const content = (defineComponent({
|
337
336
|
name: 'PopContent',
|
338
337
|
props: {
|
339
338
|
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
@@ -344,14 +343,16 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
344
343
|
visible: shared_namespaceObject.PropTypes.bool.def(false),
|
345
344
|
eventDelay: shared_namespaceObject.PropTypes.number.def(0)
|
346
345
|
},
|
347
|
-
|
346
|
+
emits: ['click'],
|
347
|
+
setup: function setup(props, _ref) {
|
348
|
+
var emit = _ref.emit;
|
348
349
|
var resolveValToPix = function resolveValToPix(val) {
|
349
350
|
if (/^\d+\.?\d*$/.test("".concat(val))) {
|
350
351
|
return "".concat(val, "px");
|
351
352
|
}
|
352
353
|
return val;
|
353
354
|
};
|
354
|
-
var style =
|
355
|
+
var style = computed(function () {
|
355
356
|
return {
|
356
357
|
width: resolveValToPix(props.width),
|
357
358
|
height: resolveValToPix(props.height),
|
@@ -359,8 +360,12 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
359
360
|
maxWidth: resolveValToPix(props.maxWidth)
|
360
361
|
};
|
361
362
|
});
|
362
|
-
var refContent =
|
363
|
-
var refTimer =
|
363
|
+
var refContent = ref(null);
|
364
|
+
var refTimer = ref(null);
|
365
|
+
var handleClick = function handleClick(evt) {
|
366
|
+
evt.stopPropagation();
|
367
|
+
emit('click', evt);
|
368
|
+
};
|
364
369
|
var resetPointerEvent = function resetPointerEvent() {
|
365
370
|
var _props$eventDelay;
|
366
371
|
if (props.eventDelay === 0) {
|
@@ -376,17 +381,18 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
376
381
|
if (props.eventDelay === 0) {
|
377
382
|
return;
|
378
383
|
}
|
379
|
-
(_refContent$value = refContent.value) === null || _refContent$value === void 0
|
384
|
+
(_refContent$value = refContent.value) === null || _refContent$value === void 0 ? void 0 : _refContent$value.style.setProperty('pointer-events', val);
|
380
385
|
};
|
381
386
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
382
387
|
resolveClassName = _usePrefix.resolveClassName;
|
383
|
-
var contentClassName =
|
388
|
+
var contentClassName = computed(function () {
|
384
389
|
return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
|
385
390
|
});
|
386
391
|
return {
|
387
392
|
style: style,
|
388
393
|
refContent: refContent,
|
389
394
|
contentClassName: contentClassName,
|
395
|
+
handleClick: handleClick,
|
390
396
|
resetPointerEvent: resetPointerEvent,
|
391
397
|
setContentPointerEvent: setContentPointerEvent
|
392
398
|
};
|
@@ -403,8 +409,8 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
403
409
|
_this$$slots3;
|
404
410
|
var resolveContentStyle = function resolveContentStyle(slot) {
|
405
411
|
var _slot$;
|
406
|
-
if (
|
407
|
-
|
412
|
+
if (Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
413
|
+
nextTick(function () {
|
408
414
|
_this.setContentPointerEvent('none');
|
409
415
|
_this.resetPointerEvent();
|
410
416
|
});
|
@@ -413,9 +419,10 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
|
|
413
419
|
};
|
414
420
|
var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
|
415
421
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
416
|
-
"
|
422
|
+
"ref": "refContent",
|
417
423
|
"style": style,
|
418
|
-
"
|
424
|
+
"class": this.contentClassName,
|
425
|
+
"onClick": this.handleClick
|
419
426
|
}, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
|
420
427
|
}
|
421
428
|
}));
|
@@ -434,11 +441,13 @@ var PopoverProps = {
|
|
434
441
|
isShow: shared_namespaceObject.PropTypes.bool.def(false),
|
435
442
|
always: shared_namespaceObject.PropTypes.bool.def(false),
|
436
443
|
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
444
|
+
clickContentAutoHide: shared_namespaceObject.PropTypes.bool.def(false),
|
437
445
|
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
438
446
|
height: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
439
447
|
maxWidth: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
440
448
|
maxHeight: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.number]).def('auto'),
|
441
449
|
content: (0,external_vue_types_namespaceObject.toType)('IContent', {}).def(''),
|
450
|
+
renderDirective: (0,shared_namespaceObject.renderDirectiveType)().def('if'),
|
442
451
|
target: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.instanceOf(HTMLElement), shared_namespaceObject.PropTypes.instanceOf(PointerEvent)]),
|
443
452
|
allowHtml: shared_namespaceObject.PropTypes.bool.def(false),
|
444
453
|
/**
|
@@ -453,7 +462,6 @@ var PopoverProps = {
|
|
453
462
|
* 支持 click hover manual
|
454
463
|
* manual: 通过isShow控制显示、隐藏
|
455
464
|
*/
|
456
|
-
// trigger: triggerType(),
|
457
465
|
trigger: (0,shared_namespaceObject.triggerType)(),
|
458
466
|
/**
|
459
467
|
* content 渲染方式
|
@@ -506,6 +514,14 @@ var PopoverProps = {
|
|
506
514
|
* 配置自定义样式类名,传入的类会被加在组件最外层的 DOM
|
507
515
|
*/
|
508
516
|
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
517
|
+
/**
|
518
|
+
* 配置自定义样式类名,传入的类会被加在 Reference 外部的 div 上
|
519
|
+
*/
|
520
|
+
referenceCls: shared_namespaceObject.PropTypes.string.def(''),
|
521
|
+
/**
|
522
|
+
* 点击 Reference 占位区是否忽略收起 popover
|
523
|
+
*/
|
524
|
+
hideIgnoreReference: shared_namespaceObject.PropTypes.bool.def(false),
|
509
525
|
/**
|
510
526
|
* 自定义Content组件渲染,point-event延迟渲染时间
|
511
527
|
* 避免子组件point-event渲染时触发popover鼠标事件
|
@@ -579,8 +595,7 @@ var PopoverProps = {
|
|
579
595
|
* IN THE SOFTWARE.
|
580
596
|
*/
|
581
597
|
|
582
|
-
|
583
|
-
/* harmony default export */ const root = ((0,external_vue_namespaceObject.defineComponent)({
|
598
|
+
/* harmony default export */ const root = (defineComponent({
|
584
599
|
props: {
|
585
600
|
"class": shared_namespaceObject.PropTypes.string.def(''),
|
586
601
|
mode: shared_namespaceObject.PropTypes.string.def('')
|
@@ -595,31 +610,31 @@ function _arrayWithHoles(arr) {
|
|
595
610
|
if (Array.isArray(arr)) return arr;
|
596
611
|
}
|
597
612
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
598
|
-
function _iterableToArrayLimit(
|
599
|
-
var
|
600
|
-
if (null !=
|
601
|
-
var
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
613
|
+
function _iterableToArrayLimit(arr, i) {
|
614
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
615
|
+
if (null != _i) {
|
616
|
+
var _s,
|
617
|
+
_e,
|
618
|
+
_x,
|
619
|
+
_r,
|
620
|
+
_arr = [],
|
621
|
+
_n = !0,
|
622
|
+
_d = !1;
|
608
623
|
try {
|
609
|
-
if (
|
610
|
-
if (Object(
|
611
|
-
|
612
|
-
} else for (; !(
|
613
|
-
} catch (
|
614
|
-
|
624
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
625
|
+
if (Object(_i) !== _i) return;
|
626
|
+
_n = !1;
|
627
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
628
|
+
} catch (err) {
|
629
|
+
_d = !0, _e = err;
|
615
630
|
} finally {
|
616
631
|
try {
|
617
|
-
if (!
|
632
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
618
633
|
} finally {
|
619
|
-
if (
|
634
|
+
if (_d) throw _e;
|
620
635
|
}
|
621
636
|
}
|
622
|
-
return
|
637
|
+
return _arr;
|
623
638
|
}
|
624
639
|
}
|
625
640
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
@@ -650,16 +665,7 @@ function _nonIterableRest() {
|
|
650
665
|
function _slicedToArray(arr, i) {
|
651
666
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray_unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
652
667
|
}
|
653
|
-
;// CONCATENATED MODULE: external "lodash/isElement"
|
654
|
-
var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
655
|
-
var isElement_y = x => () => x
|
656
|
-
const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
|
657
668
|
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
658
|
-
/**
|
659
|
-
* Custom positioning reference element.
|
660
|
-
* @see https://floating-ui.com/docs/virtual-elements
|
661
|
-
*/
|
662
|
-
|
663
669
|
const sides = ['top', 'right', 'bottom', 'left'];
|
664
670
|
const alignments = ['start', 'end'];
|
665
671
|
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
@@ -847,7 +853,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
847
853
|
|
848
854
|
/**
|
849
855
|
* Computes the `x` and `y` coordinates that will place the floating element
|
850
|
-
* next to a given
|
856
|
+
* next to a reference element when it is given a certain positioning strategy.
|
851
857
|
*
|
852
858
|
* This export does not have any `platform` interface logic. You will need to
|
853
859
|
* write one for the platform you are using Floating UI with.
|
@@ -925,6 +931,7 @@ const computePosition = async (reference, floating, config) => {
|
|
925
931
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
926
932
|
}
|
927
933
|
i = -1;
|
934
|
+
continue;
|
928
935
|
}
|
929
936
|
}
|
930
937
|
return {
|
@@ -987,7 +994,6 @@ async function detectOverflow(state, options) {
|
|
987
994
|
y: 1
|
988
995
|
};
|
989
996
|
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
990
|
-
elements,
|
991
997
|
rect,
|
992
998
|
offsetParent,
|
993
999
|
strategy
|
@@ -1015,8 +1021,7 @@ const arrow = options => ({
|
|
1015
1021
|
placement,
|
1016
1022
|
rects,
|
1017
1023
|
platform,
|
1018
|
-
elements
|
1019
|
-
middlewareData
|
1024
|
+
elements
|
1020
1025
|
} = state;
|
1021
1026
|
// Since `element` is required, we don't Partial<> the type.
|
1022
1027
|
const {
|
@@ -1064,20 +1069,16 @@ const arrow = options => ({
|
|
1064
1069
|
|
1065
1070
|
// If the reference is small enough that the arrow's padding causes it to
|
1066
1071
|
// to point to nothing for an aligned placement, adjust the offset of the
|
1067
|
-
// floating element itself.
|
1068
|
-
//
|
1069
|
-
const shouldAddOffset =
|
1070
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ?
|
1072
|
+
// floating element itself. This stops `shift()` from taking action, but can
|
1073
|
+
// be worked around by calling it again after the `arrow()` if desired.
|
1074
|
+
const shouldAddOffset = floating_ui_utils_getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
1075
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? min$1 - center : max - center : 0;
|
1071
1076
|
return {
|
1072
|
-
[axis]: coords[axis]
|
1077
|
+
[axis]: coords[axis] - alignmentOffset,
|
1073
1078
|
data: {
|
1074
1079
|
[axis]: offset,
|
1075
|
-
centerOffset: center - offset
|
1076
|
-
|
1077
|
-
alignmentOffset
|
1078
|
-
})
|
1079
|
-
},
|
1080
|
-
reset: shouldAddOffset
|
1080
|
+
centerOffset: center - offset + alignmentOffset
|
1081
|
+
}
|
1081
1082
|
};
|
1082
1083
|
}
|
1083
1084
|
});
|
@@ -1199,7 +1200,7 @@ const flip = function (options) {
|
|
1199
1200
|
name: 'flip',
|
1200
1201
|
options,
|
1201
1202
|
async fn(state) {
|
1202
|
-
var _middlewareData$
|
1203
|
+
var _middlewareData$flip;
|
1203
1204
|
const {
|
1204
1205
|
placement,
|
1205
1206
|
middlewareData,
|
@@ -1217,14 +1218,6 @@ const flip = function (options) {
|
|
1217
1218
|
flipAlignment = true,
|
1218
1219
|
...detectOverflowOptions
|
1219
1220
|
} = floating_ui_utils_evaluate(options, state);
|
1220
|
-
|
1221
|
-
// If a reset by the arrow was caused due to an alignment offset being
|
1222
|
-
// added, we should skip any logic now since `flip()` has already done its
|
1223
|
-
// work.
|
1224
|
-
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
1225
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1226
|
-
return {};
|
1227
|
-
}
|
1228
1221
|
const side = floating_ui_utils_getSide(placement);
|
1229
1222
|
const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
|
1230
1223
|
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
@@ -1502,7 +1495,6 @@ const inline = function (options) {
|
|
1502
1495
|
|
1503
1496
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
1504
1497
|
// Derivable.
|
1505
|
-
|
1506
1498
|
async function convertValueToCoords(state, options) {
|
1507
1499
|
const {
|
1508
1500
|
placement,
|
@@ -1516,6 +1508,8 @@ async function convertValueToCoords(state, options) {
|
|
1516
1508
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
1517
1509
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
1518
1510
|
const rawValue = floating_ui_utils_evaluate(options, state);
|
1511
|
+
|
1512
|
+
// eslint-disable-next-line prefer-const
|
1519
1513
|
let {
|
1520
1514
|
mainAxis,
|
1521
1515
|
crossAxis,
|
@@ -1557,27 +1551,15 @@ const offset = function (options) {
|
|
1557
1551
|
name: 'offset',
|
1558
1552
|
options,
|
1559
1553
|
async fn(state) {
|
1560
|
-
var _middlewareData$offse, _middlewareData$arrow;
|
1561
1554
|
const {
|
1562
1555
|
x,
|
1563
|
-
y
|
1564
|
-
placement,
|
1565
|
-
middlewareData
|
1556
|
+
y
|
1566
1557
|
} = state;
|
1567
1558
|
const diffCoords = await convertValueToCoords(state, options);
|
1568
|
-
|
1569
|
-
// If the placement is the same and the arrow caused an alignment offset
|
1570
|
-
// then we don't need to change the positioning coordinates.
|
1571
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
1572
|
-
return {};
|
1573
|
-
}
|
1574
1559
|
return {
|
1575
1560
|
x: x + diffCoords.x,
|
1576
1561
|
y: y + diffCoords.y,
|
1577
|
-
data:
|
1578
|
-
...diffCoords,
|
1579
|
-
placement
|
1580
|
-
}
|
1562
|
+
data: diffCoords
|
1581
1563
|
};
|
1582
1564
|
}
|
1583
1565
|
};
|
@@ -1809,7 +1791,7 @@ const size = function (options) {
|
|
1809
1791
|
|
1810
1792
|
|
1811
1793
|
|
1812
|
-
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
1794
|
+
;// CONCATENATED MODULE: ../../node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
|
1813
1795
|
function getNodeName(node) {
|
1814
1796
|
if (isNode(node)) {
|
1815
1797
|
return (node.nodeName || '').toLowerCase();
|
@@ -1821,7 +1803,7 @@ function getNodeName(node) {
|
|
1821
1803
|
}
|
1822
1804
|
function getWindow(node) {
|
1823
1805
|
var _node$ownerDocument;
|
1824
|
-
return (node == null
|
1806
|
+
return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
1825
1807
|
}
|
1826
1808
|
function getDocumentElement(node) {
|
1827
1809
|
var _ref;
|
@@ -1862,17 +1844,6 @@ function isContainingBlock(element) {
|
|
1862
1844
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
1863
1845
|
return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
1864
1846
|
}
|
1865
|
-
function getContainingBlock(element) {
|
1866
|
-
let currentNode = getParentNode(element);
|
1867
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
1868
|
-
if (isContainingBlock(currentNode)) {
|
1869
|
-
return currentNode;
|
1870
|
-
} else {
|
1871
|
-
currentNode = getParentNode(currentNode);
|
1872
|
-
}
|
1873
|
-
}
|
1874
|
-
return null;
|
1875
|
-
}
|
1876
1847
|
function isWebKit() {
|
1877
1848
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
1878
1849
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
@@ -1920,21 +1891,18 @@ function getNearestOverflowAncestor(node) {
|
|
1920
1891
|
}
|
1921
1892
|
return getNearestOverflowAncestor(parentNode);
|
1922
1893
|
}
|
1923
|
-
function getOverflowAncestors(node, list
|
1894
|
+
function getOverflowAncestors(node, list) {
|
1924
1895
|
var _node$ownerDocument2;
|
1925
1896
|
if (list === void 0) {
|
1926
1897
|
list = [];
|
1927
1898
|
}
|
1928
|
-
if (traverseIframes === void 0) {
|
1929
|
-
traverseIframes = true;
|
1930
|
-
}
|
1931
1899
|
const scrollableAncestor = getNearestOverflowAncestor(node);
|
1932
1900
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
1933
1901
|
const win = getWindow(scrollableAncestor);
|
1934
1902
|
if (isBody) {
|
1935
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []
|
1903
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
1936
1904
|
}
|
1937
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor
|
1905
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
1938
1906
|
}
|
1939
1907
|
|
1940
1908
|
|
@@ -2214,7 +2182,7 @@ function getClippingElementAncestors(element, cache) {
|
|
2214
2182
|
if (cachedResult) {
|
2215
2183
|
return cachedResult;
|
2216
2184
|
}
|
2217
|
-
let result = getOverflowAncestors(element
|
2185
|
+
let result = getOverflowAncestors(element).filter(el => floating_ui_utils_dom_isElement(el) && getNodeName(el) !== 'body');
|
2218
2186
|
let currentContainingBlockComputedStyle = null;
|
2219
2187
|
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
2220
2188
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
@@ -2269,14 +2237,7 @@ function getClippingRect(_ref) {
|
|
2269
2237
|
}
|
2270
2238
|
|
2271
2239
|
function getDimensions(element) {
|
2272
|
-
|
2273
|
-
width,
|
2274
|
-
height
|
2275
|
-
} = getCssDimensions(element);
|
2276
|
-
return {
|
2277
|
-
width,
|
2278
|
-
height
|
2279
|
-
};
|
2240
|
+
return getCssDimensions(element);
|
2280
2241
|
}
|
2281
2242
|
|
2282
2243
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
@@ -2318,6 +2279,17 @@ function getTrueOffsetParent(element, polyfill) {
|
|
2318
2279
|
}
|
2319
2280
|
return element.offsetParent;
|
2320
2281
|
}
|
2282
|
+
function getContainingBlock(element) {
|
2283
|
+
let currentNode = getParentNode(element);
|
2284
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
2285
|
+
if (isContainingBlock(currentNode)) {
|
2286
|
+
return currentNode;
|
2287
|
+
} else {
|
2288
|
+
currentNode = getParentNode(currentNode);
|
2289
|
+
}
|
2290
|
+
}
|
2291
|
+
return null;
|
2292
|
+
}
|
2321
2293
|
|
2322
2294
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
2323
2295
|
// such as table ancestors and cross browser bugs.
|
@@ -2522,66 +2494,10 @@ function autoUpdate(reference, floating, update, options) {
|
|
2522
2494
|
};
|
2523
2495
|
}
|
2524
2496
|
|
2525
|
-
/**
|
2526
|
-
* Optimizes the visibility of the floating element by choosing the placement
|
2527
|
-
* that has the most space available automatically, without needing to specify a
|
2528
|
-
* preferred placement. Alternative to `flip`.
|
2529
|
-
* @see https://floating-ui.com/docs/autoPlacement
|
2530
|
-
*/
|
2531
|
-
const floating_ui_dom_autoPlacement = autoPlacement;
|
2532
|
-
|
2533
|
-
/**
|
2534
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
2535
|
-
* keep it in view when it will overflow the clipping boundary.
|
2536
|
-
* @see https://floating-ui.com/docs/shift
|
2537
|
-
*/
|
2538
|
-
const floating_ui_dom_shift = shift;
|
2539
|
-
|
2540
|
-
/**
|
2541
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
2542
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
2543
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
2544
|
-
* @see https://floating-ui.com/docs/flip
|
2545
|
-
*/
|
2546
|
-
const floating_ui_dom_flip = flip;
|
2547
|
-
|
2548
|
-
/**
|
2549
|
-
* Provides data that allows you to change the size of the floating element —
|
2550
|
-
* for instance, prevent it from overflowing the clipping boundary or match the
|
2551
|
-
* width of the reference element.
|
2552
|
-
* @see https://floating-ui.com/docs/size
|
2553
|
-
*/
|
2554
|
-
const floating_ui_dom_size = (/* unused pure expression or super */ null && (size$1));
|
2555
|
-
|
2556
|
-
/**
|
2557
|
-
* Provides data to hide the floating element in applicable situations, such as
|
2558
|
-
* when it is not in the same clipping context as the reference element.
|
2559
|
-
* @see https://floating-ui.com/docs/hide
|
2560
|
-
*/
|
2561
|
-
const floating_ui_dom_hide = hide;
|
2562
|
-
|
2563
|
-
/**
|
2564
|
-
* Provides data to position an inner element of the floating element so that it
|
2565
|
-
* appears centered to the reference element.
|
2566
|
-
* @see https://floating-ui.com/docs/arrow
|
2567
|
-
*/
|
2568
|
-
const floating_ui_dom_arrow = arrow;
|
2569
|
-
|
2570
|
-
/**
|
2571
|
-
* Provides improved positioning for inline reference elements that can span
|
2572
|
-
* over multiple lines, such as hyperlinks or range selections.
|
2573
|
-
* @see https://floating-ui.com/docs/inline
|
2574
|
-
*/
|
2575
|
-
const floating_ui_dom_inline = inline;
|
2576
|
-
|
2577
|
-
/**
|
2578
|
-
* Built-in `limiter` that will stop `shift()` at a certain point.
|
2579
|
-
*/
|
2580
|
-
const floating_ui_dom_limitShift = (/* unused pure expression or super */ null && (limitShift$1));
|
2581
|
-
|
2582
2497
|
/**
|
2583
2498
|
* Computes the `x` and `y` coordinates that will place the floating element
|
2584
|
-
* next to a given
|
2499
|
+
* next to a reference element when it is given a certain CSS positioning
|
2500
|
+
* strategy.
|
2585
2501
|
*/
|
2586
2502
|
const floating_ui_dom_computePosition = (reference, floating, options) => {
|
2587
2503
|
// This caches the expensive `getClippingElementAncestors` function so that
|
@@ -2604,6 +2520,14 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
|
|
2604
2520
|
|
2605
2521
|
|
2606
2522
|
|
2523
|
+
;// CONCATENATED MODULE: external "lodash/isElement"
|
2524
|
+
var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2525
|
+
var isElement_y = x => () => x
|
2526
|
+
const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
|
2527
|
+
;// CONCATENATED MODULE: external "lodash/random"
|
2528
|
+
var random_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2529
|
+
var random_y = x => () => x
|
2530
|
+
const random_namespaceObject = random_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_random_1771bfd1__["default"] });
|
2607
2531
|
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
2608
2532
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
2609
2533
|
/* harmony default export */ const esm_browser_native = ({
|
@@ -2719,7 +2643,10 @@ function v4(options, buf, offset) {
|
|
2719
2643
|
* IN THE SOFTWARE.
|
2720
2644
|
*/
|
2721
2645
|
|
2646
|
+
|
2722
2647
|
var CachedConst = {};
|
2648
|
+
// 全局的占位区点击记录
|
2649
|
+
var ReferenceClickSharedState = {};
|
2723
2650
|
var isAvailableId = function isAvailableId(query) {
|
2724
2651
|
var container = document.querySelector(query);
|
2725
2652
|
return container instanceof HTMLElement;
|
@@ -2756,6 +2683,9 @@ var contentAsHTMLElement = function contentAsHTMLElement(content) {
|
|
2756
2683
|
vNode: content
|
2757
2684
|
};
|
2758
2685
|
};
|
2686
|
+
var random = function random() {
|
2687
|
+
return "".concat((0,random_namespaceObject["default"])(0, 999999), "_").concat(Date.now(), "_").concat((0,random_namespaceObject["default"])(0, 999999));
|
2688
|
+
};
|
2759
2689
|
;// CONCATENATED MODULE: ../../packages/popover/src/use-floating.tsx
|
2760
2690
|
|
2761
2691
|
|
@@ -2913,7 +2843,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2913
2843
|
};
|
2914
2844
|
var resolvePopOptions = function resolvePopOptions(elArrow, props) {
|
2915
2845
|
var modifiers = resolveModifiers();
|
2916
|
-
var middleware = [offset(modifiers.offset || props.offset),
|
2846
|
+
var middleware = [offset(modifiers.offset || props.offset), shift({
|
2917
2847
|
padding: props.padding
|
2918
2848
|
})];
|
2919
2849
|
var options = {
|
@@ -2921,17 +2851,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2921
2851
|
middleware: middleware
|
2922
2852
|
};
|
2923
2853
|
if (props.arrow) {
|
2924
|
-
middleware.push(
|
2854
|
+
middleware.push(arrow({
|
2925
2855
|
element: elArrow
|
2926
2856
|
}));
|
2927
2857
|
}
|
2928
2858
|
if (isAutoPlacementAvailable()) {
|
2929
|
-
middleware.push(
|
2859
|
+
middleware.push(autoPlacement());
|
2930
2860
|
}
|
2931
|
-
middleware.unshift(
|
2932
|
-
middleware.push(
|
2861
|
+
middleware.unshift(inline());
|
2862
|
+
middleware.push(flip());
|
2933
2863
|
if (isHideMiddlewareAvailable()) {
|
2934
|
-
options.middleware.push(
|
2864
|
+
options.middleware.push(hide());
|
2935
2865
|
}
|
2936
2866
|
/**
|
2937
2867
|
* 如果是全屏元素或者指定的虚拟元素
|
@@ -3099,6 +3029,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
3099
3029
|
var delay = resolvePopoverDelay()[1];
|
3100
3030
|
popHideTimerId = setTimeout(function () {
|
3101
3031
|
popShowTimerId && clearTimeout(popShowTimerId);
|
3032
|
+
isMouseenter = false;
|
3102
3033
|
localIsShow.value = false;
|
3103
3034
|
}, delay);
|
3104
3035
|
};
|
@@ -3127,26 +3058,29 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
3127
3058
|
hidePopover();
|
3128
3059
|
}
|
3129
3060
|
};
|
3130
|
-
var handleClickRef = function handleClickRef() {
|
3131
|
-
triggerPopover();
|
3132
|
-
};
|
3133
3061
|
var handlePopContentMouseEnter = function handlePopContentMouseEnter(e) {
|
3134
|
-
if (props.trigger
|
3062
|
+
if ('hover' !== props.trigger) {
|
3135
3063
|
return;
|
3136
3064
|
}
|
3137
|
-
if (
|
3065
|
+
if (!isMouseenter) {
|
3138
3066
|
isMouseenter = true;
|
3067
|
+
}
|
3068
|
+
// 设置setTimeout的延时为delay, 避免出现同时触发mouseenter mouseleave事件
|
3069
|
+
var delay = resolvePopoverDelay()[1];
|
3070
|
+
if (popHideTimerId) {
|
3139
3071
|
clearTimeout(popHideTimerId);
|
3140
|
-
|
3072
|
+
setTimeout(function () {
|
3073
|
+
popHideTimerId = undefined;
|
3074
|
+
}, delay);
|
3141
3075
|
}
|
3142
3076
|
emitPopContentMouseEnter(e);
|
3143
3077
|
};
|
3144
3078
|
var handlePopContentMouseLeave = function handlePopContentMouseLeave(e) {
|
3145
|
-
|
3079
|
+
// 处理底部触发mouseleave事件,popShowTimerId有值代表处于hover状态
|
3080
|
+
if (popShowTimerId && !popHideTimerId) {
|
3146
3081
|
hidePopover();
|
3147
|
-
isMouseenter = false;
|
3148
|
-
emitPopContentMouseLeave(e);
|
3149
3082
|
}
|
3083
|
+
emitPopContentMouseLeave(e);
|
3150
3084
|
};
|
3151
3085
|
/**
|
3152
3086
|
* 弹出内容鼠标移入事件
|
@@ -3165,15 +3099,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
3165
3099
|
var resolveTriggerEvents = function resolveTriggerEvents() {
|
3166
3100
|
var _triggerEvents$props$;
|
3167
3101
|
var triggerEvents = {
|
3168
|
-
hover: {
|
3102
|
+
hover: [{
|
3169
3103
|
content: [['mouseenter', handlePopContentMouseEnter], ['mouseleave', handlePopContentMouseLeave]],
|
3170
3104
|
reference: [['mouseenter', showPopover], ['mouseleave', hidePopover], ['focus', showPopover], ['blur', hidePopover]]
|
3171
|
-
},
|
3172
|
-
click: [['click',
|
3173
|
-
manual: {
|
3105
|
+
}],
|
3106
|
+
click: [[['click', showPopover]]],
|
3107
|
+
manual: [{
|
3174
3108
|
content: [['mouseenter', emitPopContentMouseEnter], ['mouseleave', emitPopContentMouseLeave]],
|
3175
3109
|
reference: [[]]
|
3176
|
-
}
|
3110
|
+
}]
|
3177
3111
|
};
|
3178
3112
|
return (_triggerEvents$props$ = triggerEvents[props.trigger]) !== null && _triggerEvents$props$ !== void 0 ? _triggerEvents$props$ : [];
|
3179
3113
|
};
|
@@ -3344,6 +3278,7 @@ var parentNodeReferId = null;
|
|
3344
3278
|
refArrow = _ref.refArrow,
|
3345
3279
|
refRoot = _ref.refRoot;
|
3346
3280
|
var storeEvents = null;
|
3281
|
+
var uniqKey = random();
|
3347
3282
|
var isFullscreen = (0,external_vue_namespaceObject.ref)(false);
|
3348
3283
|
var fullscreenReferId = getFullscreenUid();
|
3349
3284
|
var fullScreenTarget = (0,external_vue_namespaceObject.ref)();
|
@@ -3366,7 +3301,7 @@ var parentNodeReferId = null;
|
|
3366
3301
|
getFullscreenRoot = _useFloating.getFullscreenRoot,
|
3367
3302
|
stopHide = _useFloating.stopHide;
|
3368
3303
|
var resetPopover = function resetPopover() {
|
3369
|
-
cleanup === null || cleanup === void 0
|
3304
|
+
cleanup === null || cleanup === void 0 ? void 0 : cleanup();
|
3370
3305
|
createPopInstance();
|
3371
3306
|
};
|
3372
3307
|
var showFn = function showFn() {
|
@@ -3388,15 +3323,16 @@ var parentNodeReferId = null;
|
|
3388
3323
|
elReference = _resolvePopElements.elReference,
|
3389
3324
|
elContent = _resolvePopElements.elContent;
|
3390
3325
|
storeEvents = resolveTriggerEvents();
|
3391
|
-
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3395
|
-
content =
|
3396
|
-
|
3397
|
-
|
3398
|
-
|
3399
|
-
|
3326
|
+
storeEvents.forEach(function (storeEvent) {
|
3327
|
+
if (Array.isArray(storeEvent)) {
|
3328
|
+
addEventToTargetEl(elReference, storeEvent);
|
3329
|
+
} else {
|
3330
|
+
var content = storeEvent.content,
|
3331
|
+
reference = storeEvent.reference;
|
3332
|
+
addEventToTargetEl(elReference, reference);
|
3333
|
+
addEventToTargetEl(elContent, content);
|
3334
|
+
}
|
3335
|
+
});
|
3400
3336
|
};
|
3401
3337
|
var addEventToTargetEl = function addEventToTargetEl(target, evets) {
|
3402
3338
|
evets.forEach(function (_ref2) {
|
@@ -3409,17 +3345,43 @@ var parentNodeReferId = null;
|
|
3409
3345
|
});
|
3410
3346
|
};
|
3411
3347
|
var removeEventListener = function removeEventListener() {
|
3412
|
-
var
|
3413
|
-
if ((
|
3348
|
+
var _storeEvents;
|
3349
|
+
if ((_storeEvents = storeEvents) !== null && _storeEvents !== void 0 && _storeEvents.length) {
|
3414
3350
|
var _resolvePopElements2 = resolvePopElements(),
|
3415
|
-
elReference = _resolvePopElements2.elReference
|
3351
|
+
elReference = _resolvePopElements2.elReference,
|
3352
|
+
elContent = _resolvePopElements2.elContent;
|
3416
3353
|
if (elReference) {
|
3417
|
-
storeEvents.forEach(function (
|
3418
|
-
|
3419
|
-
|
3420
|
-
|
3421
|
-
|
3422
|
-
|
3354
|
+
storeEvents.forEach(function (storeEvent) {
|
3355
|
+
if (Array.isArray(storeEvent)) {
|
3356
|
+
storeEvent.forEach(function (_ref4) {
|
3357
|
+
var _ref5 = _slicedToArray(_ref4, 2),
|
3358
|
+
event = _ref5[0],
|
3359
|
+
listener = _ref5[1];
|
3360
|
+
if (event && typeof listener === 'function') {
|
3361
|
+
elReference.removeEventListener(event, listener);
|
3362
|
+
}
|
3363
|
+
});
|
3364
|
+
} else {
|
3365
|
+
var content = storeEvent.content,
|
3366
|
+
reference = storeEvent.reference;
|
3367
|
+
content.forEach(function (_ref6) {
|
3368
|
+
var _ref7 = _slicedToArray(_ref6, 2),
|
3369
|
+
event = _ref7[0],
|
3370
|
+
listener = _ref7[1];
|
3371
|
+
if (event && typeof listener === 'function') {
|
3372
|
+
if (elContent) {
|
3373
|
+
elContent.removeEventListener(event, listener);
|
3374
|
+
}
|
3375
|
+
}
|
3376
|
+
});
|
3377
|
+
reference.forEach(function (_ref8) {
|
3378
|
+
var _ref9 = _slicedToArray(_ref8, 2),
|
3379
|
+
event = _ref9[0],
|
3380
|
+
listener = _ref9[1];
|
3381
|
+
if (event && typeof listener === 'function') {
|
3382
|
+
elReference.removeEventListener(event, listener);
|
3383
|
+
}
|
3384
|
+
});
|
3423
3385
|
}
|
3424
3386
|
});
|
3425
3387
|
}
|
@@ -3436,8 +3398,8 @@ var parentNodeReferId = null;
|
|
3436
3398
|
root = _resolvePopElements3.root;
|
3437
3399
|
if (isFullscreen.value) {
|
3438
3400
|
var _fullScreenTarget$val;
|
3439
|
-
var
|
3440
|
-
parentNode =
|
3401
|
+
var _ref10 = elReference || root || {},
|
3402
|
+
parentNode = _ref10.parentNode;
|
3441
3403
|
boundary.value = (_fullScreenTarget$val = fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) !== null && _fullScreenTarget$val !== void 0 ? _fullScreenTarget$val : getClosestFullscreenElement(parentNode);
|
3442
3404
|
return;
|
3443
3405
|
}
|
@@ -3447,13 +3409,13 @@ var parentNodeReferId = null;
|
|
3447
3409
|
getPrefixId = _usePopperId.getPrefixId;
|
3448
3410
|
var setFullscreenTag = function setFullscreenTag() {
|
3449
3411
|
var _fullScreenTarget$val2;
|
3450
|
-
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0
|
3412
|
+
fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val2 = fullScreenTarget.value) === null || _fullScreenTarget$val2 === void 0 ? void 0 : _fullScreenTarget$val2.setAttribute('data-fllsrn-id', fullscreenReferId);
|
3451
3413
|
};
|
3452
3414
|
var clearFullscreenTag = function clearFullscreenTag() {
|
3453
3415
|
var _fullScreenTarget$val3, _fullScreenTarget$val4;
|
3454
3416
|
var query = "[data-fllsrn-id=".concat(fullscreenReferId, "]");
|
3455
3417
|
((_fullScreenTarget$val3 = fullScreenTarget === null || fullScreenTarget === void 0 || (_fullScreenTarget$val4 = fullScreenTarget.value) === null || _fullScreenTarget$val4 === void 0 ? void 0 : _fullScreenTarget$val4.querySelectorAll(query)) !== null && _fullScreenTarget$val3 !== void 0 ? _fullScreenTarget$val3 : []).forEach(function (element) {
|
3456
|
-
element === null || element === void 0
|
3418
|
+
element === null || element === void 0 ? void 0 : element.removeAttribute('data-fllsrn-id');
|
3457
3419
|
});
|
3458
3420
|
};
|
3459
3421
|
var boundary = (0,external_vue_namespaceObject.ref)();
|
@@ -3492,16 +3454,30 @@ var parentNodeReferId = null;
|
|
3492
3454
|
document.body.removeEventListener('fullscreenchange', handleFullscreenChange);
|
3493
3455
|
};
|
3494
3456
|
var handleClickOutside = function handleClickOutside(_e) {
|
3495
|
-
|
3496
|
-
|
3497
|
-
|
3498
|
-
|
3499
|
-
|
3500
|
-
|
3501
|
-
|
3502
|
-
|
3503
|
-
|
3504
|
-
|
3457
|
+
var hideIgnoreReference = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
3458
|
+
var commonFunc = function commonFunc() {
|
3459
|
+
ctx.emit(EMIT_EVENTS.CLICK_OUTSIDE, {
|
3460
|
+
isShow: localIsShow.value,
|
3461
|
+
event: _e
|
3462
|
+
});
|
3463
|
+
var needExec = props.disableOutsideClick || props.always || props.disabled || props.trigger === 'manual';
|
3464
|
+
if (!props.forceClickoutside && needExec) {
|
3465
|
+
return;
|
3466
|
+
}
|
3467
|
+
if (localIsShow.value) {
|
3468
|
+
hideFn();
|
3469
|
+
}
|
3470
|
+
};
|
3471
|
+
if (hideIgnoreReference) {
|
3472
|
+
setTimeout(function () {
|
3473
|
+
if (ReferenceClickSharedState[uniqKey]) {
|
3474
|
+
ReferenceClickSharedState[uniqKey] = false;
|
3475
|
+
return;
|
3476
|
+
}
|
3477
|
+
return commonFunc();
|
3478
|
+
});
|
3479
|
+
} else {
|
3480
|
+
return commonFunc();
|
3505
3481
|
}
|
3506
3482
|
};
|
3507
3483
|
return {
|
@@ -3520,7 +3496,8 @@ var parentNodeReferId = null;
|
|
3520
3496
|
stopHide: stopHide,
|
3521
3497
|
isFullscreen: isFullscreen,
|
3522
3498
|
boundary: boundary,
|
3523
|
-
localIsShow: localIsShow
|
3499
|
+
localIsShow: localIsShow,
|
3500
|
+
uniqKey: uniqKey
|
3524
3501
|
};
|
3525
3502
|
});
|
3526
3503
|
;// CONCATENATED MODULE: ../../packages/popover/src/popover.tsx
|
@@ -3560,14 +3537,12 @@ var parentNodeReferId = null;
|
|
3560
3537
|
|
3561
3538
|
|
3562
3539
|
|
3563
|
-
|
3564
3540
|
function _isSlot(s) {
|
3565
3541
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
3566
3542
|
}
|
3567
|
-
/* harmony default export */ const popover = (
|
3543
|
+
/* harmony default export */ const popover = (defineComponent({
|
3568
3544
|
name: 'Popover',
|
3569
3545
|
components: {
|
3570
|
-
// eslint-disable-next-line vue/no-reserved-component-names
|
3571
3546
|
Content: content,
|
3572
3547
|
Arrow: src_arrow,
|
3573
3548
|
Root: root
|
@@ -3578,13 +3553,13 @@ function _isSlot(s) {
|
|
3578
3553
|
props: PopoverProps,
|
3579
3554
|
emits: EMIT_EVENT_TYPES,
|
3580
3555
|
setup: function setup(props, ctx) {
|
3581
|
-
var _toRefs =
|
3556
|
+
var _toRefs = toRefs(props),
|
3582
3557
|
reference = _toRefs.reference;
|
3583
|
-
var refDefaultReference =
|
3584
|
-
var refContent =
|
3585
|
-
var refArrow =
|
3586
|
-
var refRoot =
|
3587
|
-
var refReference =
|
3558
|
+
var refDefaultReference = ref();
|
3559
|
+
var refContent = ref();
|
3560
|
+
var refArrow = ref();
|
3561
|
+
var refRoot = ref();
|
3562
|
+
var refReference = computed(function () {
|
3588
3563
|
return reference.value || refDefaultReference.value;
|
3589
3564
|
});
|
3590
3565
|
var _usePopoverInit = use_popover_init(props, ctx, {
|
@@ -3607,9 +3582,10 @@ function _isSlot(s) {
|
|
3607
3582
|
resetPopover = _usePopoverInit.resetPopover,
|
3608
3583
|
stopHide = _usePopoverInit.stopHide,
|
3609
3584
|
localIsShow = _usePopoverInit.localIsShow,
|
3610
|
-
boundary = _usePopoverInit.boundary
|
3585
|
+
boundary = _usePopoverInit.boundary,
|
3586
|
+
uniqKey = _usePopoverInit.uniqKey;
|
3611
3587
|
if (!props.always && !props.disabled) {
|
3612
|
-
|
3588
|
+
watch(function () {
|
3613
3589
|
return props.isShow;
|
3614
3590
|
}, function () {
|
3615
3591
|
props.isShow ? showPopover() : hidePopover();
|
@@ -3617,7 +3593,7 @@ function _isSlot(s) {
|
|
3617
3593
|
immediate: true
|
3618
3594
|
});
|
3619
3595
|
}
|
3620
|
-
|
3596
|
+
watch(function () {
|
3621
3597
|
return [props.disabled];
|
3622
3598
|
}, function (val) {
|
3623
3599
|
if (val[0]) {
|
@@ -3627,10 +3603,19 @@ function _isSlot(s) {
|
|
3627
3603
|
}
|
3628
3604
|
});
|
3629
3605
|
updateBoundary();
|
3630
|
-
|
3631
|
-
|
3632
|
-
var
|
3633
|
-
return
|
3606
|
+
onMounted(onMountedFn);
|
3607
|
+
onBeforeUnmount(onUnmountedFn);
|
3608
|
+
var isRenderModeShow = computed(function () {
|
3609
|
+
return props.renderDirective === 'show';
|
3610
|
+
});
|
3611
|
+
var transBoundary = computed(function () {
|
3612
|
+
return isRenderModeShow.value || localIsShow.value && !props.disableTeleport;
|
3613
|
+
});
|
3614
|
+
var contentIsShow = computed(function () {
|
3615
|
+
if (props.renderType === shared_namespaceObject.RenderType.AUTO) {
|
3616
|
+
return true;
|
3617
|
+
}
|
3618
|
+
return localIsShow.value;
|
3634
3619
|
});
|
3635
3620
|
var show = function show() {
|
3636
3621
|
showFn();
|
@@ -3638,12 +3623,15 @@ function _isSlot(s) {
|
|
3638
3623
|
var hide = function hide() {
|
3639
3624
|
hideFn();
|
3640
3625
|
};
|
3641
|
-
var
|
3642
|
-
|
3643
|
-
|
3626
|
+
var handleClickReferenceWraper = function handleClickReferenceWraper() {
|
3627
|
+
ReferenceClickSharedState[uniqKey] = true;
|
3628
|
+
};
|
3629
|
+
// 点击 content 收起面板
|
3630
|
+
var handleClickContent = function handleClickContent() {
|
3631
|
+
if (props.trigger !== 'manual' && !props.always && props.clickContentAutoHide) {
|
3632
|
+
localIsShow.value = false;
|
3644
3633
|
}
|
3645
|
-
|
3646
|
-
});
|
3634
|
+
};
|
3647
3635
|
var renderContent = function renderContent() {
|
3648
3636
|
if (props.allowHtml) {
|
3649
3637
|
var _contentAsHTMLElement = contentAsHTMLElement(props.content),
|
@@ -3660,7 +3648,9 @@ function _isSlot(s) {
|
|
3660
3648
|
refArrow: refArrow,
|
3661
3649
|
content: props.content,
|
3662
3650
|
theme: props.theme,
|
3651
|
+
isRenderModeShow: isRenderModeShow,
|
3663
3652
|
transBoundary: transBoundary,
|
3653
|
+
handleClickContent: handleClickContent,
|
3664
3654
|
handleClickOutside: handleClickOutside,
|
3665
3655
|
updatePopover: updatePopover,
|
3666
3656
|
resetPopover: resetPopover,
|
@@ -3669,21 +3659,25 @@ function _isSlot(s) {
|
|
3669
3659
|
stopHide: stopHide,
|
3670
3660
|
contentIsShow: contentIsShow,
|
3671
3661
|
renderContent: renderContent,
|
3672
|
-
localIsShow: localIsShow
|
3662
|
+
localIsShow: localIsShow,
|
3663
|
+
handleClickReferenceWraper: handleClickReferenceWraper
|
3673
3664
|
};
|
3674
3665
|
},
|
3675
3666
|
render: function render() {
|
3676
|
-
var _slot;
|
3667
|
+
var _slot, _slot2;
|
3677
3668
|
var _this$$slots$default,
|
3678
3669
|
_this$$slots$default2,
|
3679
3670
|
_this$$slots,
|
3671
|
+
_this$$slots$default3,
|
3672
|
+
_this$$slots$default4,
|
3673
|
+
_this$$slots2,
|
3680
3674
|
_this = this,
|
3681
3675
|
_this$$slots$content,
|
3682
3676
|
_this$$slots$content2,
|
3683
|
-
_this$$
|
3677
|
+
_this$$slots4;
|
3684
3678
|
var renderReferSlot = function renderReferSlot(slot) {
|
3685
3679
|
var _slot$;
|
3686
|
-
if (
|
3680
|
+
if (Text === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
|
3687
3681
|
return (0,external_vue_namespaceObject.createVNode)("span", null, [slot]);
|
3688
3682
|
}
|
3689
3683
|
return slot;
|
@@ -3692,42 +3686,55 @@ function _isSlot(s) {
|
|
3692
3686
|
"ref": "refRoot"
|
3693
3687
|
}, {
|
3694
3688
|
"default": function _default() {
|
3695
|
-
return [(0,external_vue_namespaceObject.createVNode)(
|
3689
|
+
return [_this.hideIgnoreReference ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3690
|
+
"class": _this.referenceCls,
|
3691
|
+
"style": "display: inline-block;",
|
3692
|
+
"onClick": _this.handleClickReferenceWraper
|
3693
|
+
}, [(0,external_vue_namespaceObject.createVNode)(reference, {
|
3696
3694
|
"ref": "refDefaultReference"
|
3697
3695
|
}, _isSlot(_slot = renderReferSlot((_this$$slots$default = (_this$$slots$default2 = (_this$$slots = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : (0,external_vue_namespaceObject.createVNode)("span", null, null))) ? _slot : {
|
3698
3696
|
"default": function _default() {
|
3699
3697
|
return [_slot];
|
3700
3698
|
}
|
3701
|
-
})
|
3702
|
-
"
|
3703
|
-
|
3699
|
+
})]) : (0,external_vue_namespaceObject.createVNode)(reference, {
|
3700
|
+
"ref": "refDefaultReference"
|
3701
|
+
}, _isSlot(_slot2 = renderReferSlot((_this$$slots$default3 = (_this$$slots$default4 = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default4 === void 0 ? void 0 : _this$$slots$default4.call(_this$$slots2)) !== null && _this$$slots$default3 !== void 0 ? _this$$slots$default3 : (0,external_vue_namespaceObject.createVNode)("span", null, null))) ? _slot2 : {
|
3702
|
+
"default": function _default() {
|
3703
|
+
return [_slot2];
|
3704
|
+
}
|
3705
|
+
}), (0,external_vue_namespaceObject.createVNode)(Teleport, {
|
3706
|
+
"disabled": !_this.transBoundary,
|
3707
|
+
"to": _this.boundary
|
3704
3708
|
}, {
|
3705
3709
|
"default": function _default() {
|
3706
3710
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(content, {
|
3707
3711
|
"ref": "refContent",
|
3708
|
-
"visible": _this.localIsShow,
|
3709
|
-
"data-theme": _this.theme,
|
3710
|
-
"extCls": _this.extCls,
|
3711
3712
|
"width": _this.width,
|
3712
3713
|
"height": _this.height,
|
3713
|
-
"
|
3714
|
+
"extCls": _this.extCls,
|
3715
|
+
"data-theme": _this.theme,
|
3716
|
+
"eventDelay": _this.componentEventDelay,
|
3714
3717
|
"maxHeight": _this.maxHeight,
|
3715
|
-
"
|
3718
|
+
"maxWidth": _this.maxWidth,
|
3719
|
+
"visible": _this.localIsShow,
|
3720
|
+
"onClick": _this.handleClickContent
|
3716
3721
|
}, {
|
3717
3722
|
"default": function _default() {
|
3718
|
-
return [_this.contentIsShow ? (_this$$slots$content = (_this$$slots$content2 = (_this$$
|
3723
|
+
return [_this.isRenderModeShow || _this.contentIsShow ? (_this$$slots$content = (_this$$slots$content2 = (_this$$slots4 = _this.$slots).content) === null || _this$$slots$content2 === void 0 ? void 0 : _this$$slots$content2.call(_this$$slots4)) !== null && _this$$slots$content !== void 0 ? _this$$slots$content : _this.renderContent() : ''];
|
3719
3724
|
},
|
3720
3725
|
arrow: function arrow() {
|
3721
|
-
var _this$$slots$arrow, _this$$
|
3726
|
+
var _this$$slots$arrow, _this$$slots3;
|
3722
3727
|
return _this.arrow ? (0,external_vue_namespaceObject.createVNode)(src_arrow, {
|
3723
3728
|
"ref": "refArrow"
|
3724
3729
|
}, {
|
3725
3730
|
"default": function _default() {
|
3726
|
-
return [(_this$$slots$arrow = (_this$$
|
3731
|
+
return [(_this$$slots$arrow = (_this$$slots3 = _this.$slots).arrow) === null || _this$$slots$arrow === void 0 ? void 0 : _this$$slots$arrow.call(_this$$slots3)];
|
3727
3732
|
}
|
3728
3733
|
}) : '';
|
3729
3734
|
}
|
3730
|
-
}), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"),
|
3735
|
+
}), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), function (e) {
|
3736
|
+
return _this.handleClickOutside(e, _this.hideIgnoreReference);
|
3737
|
+
}]])];
|
3731
3738
|
}
|
3732
3739
|
})];
|
3733
3740
|
}
|
@@ -3803,36 +3810,36 @@ function createPopoverComponent(options) {
|
|
3803
3810
|
var refReference = (0,external_vue_namespaceObject.ref)();
|
3804
3811
|
var show = function show() {
|
3805
3812
|
var _refReference$value, _refReference$value$s;
|
3806
|
-
(_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0
|
3813
|
+
(_refReference$value = refReference.value) === null || _refReference$value === void 0 || (_refReference$value$s = _refReference$value.show) === null || _refReference$value$s === void 0 ? void 0 : _refReference$value$s.call(_refReference$value);
|
3807
3814
|
};
|
3808
3815
|
var hide = function hide() {
|
3809
3816
|
var _refReference$value2, _refReference$value2$;
|
3810
|
-
(_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0
|
3817
|
+
(_refReference$value2 = refReference.value) === null || _refReference$value2 === void 0 || (_refReference$value2$ = _refReference$value2.hide) === null || _refReference$value2$ === void 0 ? void 0 : _refReference$value2$.call(_refReference$value2);
|
3811
3818
|
};
|
3812
3819
|
var stopHide = function stopHide() {
|
3813
3820
|
var _refReference$value3, _refReference$value3$;
|
3814
|
-
(_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0
|
3821
|
+
(_refReference$value3 = refReference.value) === null || _refReference$value3 === void 0 || (_refReference$value3$ = _refReference$value3.stopHide) === null || _refReference$value3$ === void 0 ? void 0 : _refReference$value3$.call(_refReference$value3);
|
3815
3822
|
};
|
3816
3823
|
var updateTarget = function updateTarget(target) {
|
3817
3824
|
var _refReference$value4, _refReference$value4$;
|
3818
3825
|
refProps.target = target;
|
3819
|
-
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0
|
3826
|
+
(_refReference$value4 = refReference.value) === null || _refReference$value4 === void 0 || (_refReference$value4$ = _refReference$value4.resetPopover) === null || _refReference$value4$ === void 0 ? void 0 : _refReference$value4$.call(_refReference$value4);
|
3820
3827
|
};
|
3821
3828
|
var handleContentMouseenter = function handleContentMouseenter() {
|
3822
3829
|
var _resolvedOptions$onCo;
|
3823
|
-
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0
|
3830
|
+
(_resolvedOptions$onCo = resolvedOptions.onContentMouseenter) === null || _resolvedOptions$onCo === void 0 ? void 0 : _resolvedOptions$onCo.call(resolvedOptions);
|
3824
3831
|
};
|
3825
3832
|
var handleContentMouseleave = function handleContentMouseleave() {
|
3826
3833
|
var _resolvedOptions$onCo2;
|
3827
|
-
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0
|
3834
|
+
(_resolvedOptions$onCo2 = resolvedOptions.onContentMouseleave) === null || _resolvedOptions$onCo2 === void 0 ? void 0 : _resolvedOptions$onCo2.call(resolvedOptions);
|
3828
3835
|
};
|
3829
3836
|
var handlePopoverHidden = function handlePopoverHidden() {
|
3830
3837
|
var _resolvedOptions$onHi;
|
3831
|
-
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0
|
3838
|
+
(_resolvedOptions$onHi = resolvedOptions.onHide) === null || _resolvedOptions$onHi === void 0 ? void 0 : _resolvedOptions$onHi.call(resolvedOptions);
|
3832
3839
|
};
|
3833
3840
|
var handlePopoverShow = function handlePopoverShow() {
|
3834
3841
|
var _resolvedOptions$onSh;
|
3835
|
-
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0
|
3842
|
+
(_resolvedOptions$onSh = resolvedOptions.onShow) === null || _resolvedOptions$onSh === void 0 ? void 0 : _resolvedOptions$onSh.call(resolvedOptions);
|
3836
3843
|
};
|
3837
3844
|
expose({
|
3838
3845
|
show: show,
|
@@ -3843,10 +3850,10 @@ function createPopoverComponent(options) {
|
|
3843
3850
|
return function () {
|
3844
3851
|
return (0,external_vue_namespaceObject.createVNode)(popover, (0,external_vue_namespaceObject.mergeProps)(refProps, {
|
3845
3852
|
"ref": refReference,
|
3846
|
-
"onContentMouseenter": handleContentMouseenter,
|
3847
|
-
"onContentMouseleave": handleContentMouseleave,
|
3848
3853
|
"onAfterHidden": handlePopoverHidden,
|
3849
|
-
"onAfterShow": handlePopoverShow
|
3854
|
+
"onAfterShow": handlePopoverShow,
|
3855
|
+
"onContentMouseenter": handleContentMouseenter,
|
3856
|
+
"onContentMouseleave": handleContentMouseleave
|
3850
3857
|
}), null);
|
3851
3858
|
};
|
3852
3859
|
}
|
@@ -3881,7 +3888,7 @@ function createPopoverComponent(options) {
|
|
3881
3888
|
}
|
3882
3889
|
$PopoverInstance.unmount();
|
3883
3890
|
$PopoverInstance = null;
|
3884
|
-
(_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0
|
3891
|
+
(_$PopoverInstanceEl = $PopoverInstanceEl) === null || _$PopoverInstanceEl === void 0 ? void 0 : _$PopoverInstanceEl.remove();
|
3885
3892
|
};
|
3886
3893
|
function close() {
|
3887
3894
|
uninstall();
|
@@ -3892,17 +3899,17 @@ function createPopoverComponent(options) {
|
|
3892
3899
|
install();
|
3893
3900
|
if (target) {
|
3894
3901
|
var _$PopoverInstanceVm;
|
3895
|
-
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0
|
3902
|
+
(_$PopoverInstanceVm = $PopoverInstanceVm) === null || _$PopoverInstanceVm === void 0 ? void 0 : _$PopoverInstanceVm.updateTarget(target);
|
3896
3903
|
}
|
3897
|
-
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0
|
3904
|
+
(_$PopoverInstanceVm2 = $PopoverInstanceVm) === null || _$PopoverInstanceVm2 === void 0 ? void 0 : _$PopoverInstanceVm2.show();
|
3898
3905
|
}
|
3899
3906
|
function update(e) {
|
3900
3907
|
var _$PopoverInstanceVm3;
|
3901
|
-
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0
|
3908
|
+
(_$PopoverInstanceVm3 = $PopoverInstanceVm) === null || _$PopoverInstanceVm3 === void 0 ? void 0 : _$PopoverInstanceVm3.updateTarget(e);
|
3902
3909
|
}
|
3903
3910
|
function hide() {
|
3904
3911
|
var _$PopoverInstanceVm4;
|
3905
|
-
(_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0
|
3912
|
+
(_$PopoverInstanceVm4 = $PopoverInstanceVm) === null || _$PopoverInstanceVm4 === void 0 ? void 0 : _$PopoverInstanceVm4.hide();
|
3906
3913
|
}
|
3907
3914
|
immediate && install();
|
3908
3915
|
return {
|