bkui-vue 2.0.1-beta.50 → 2.0.1-beta.51.select.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -15
- package/dist/index.cjs.js +162 -162
- package/dist/index.esm.js +29944 -31126
- package/dist/index.umd.js +162 -162
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -262
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.d.ts +12 -5
- package/lib/alert/alert.variable.css +1 -262
- package/lib/alert/index.d.ts +26 -11
- package/lib/alert/index.js +1 -0
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +4 -395
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -262
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -397
- package/lib/button/button.css +143 -273
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +1 -262
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +7 -6
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -396
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +26 -156
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +27 -418
- package/lib/cascader/index.js +37 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +9 -139
- package/lib/checkbox/checkbox.d.ts +7 -7
- package/lib/checkbox/checkbox.variable.css +1 -262
- package/lib/checkbox/index.d.ts +22 -11
- package/lib/checkbox/index.js +6 -14
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -262
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +1 -142
- package/lib/collapse/collapse.d.ts +0 -11
- package/lib/collapse/collapse.less +1 -15
- package/lib/collapse/collapse.variable.css +1 -273
- package/lib/collapse/index.d.ts +0 -23
- package/lib/collapse/index.js +3 -11
- package/lib/collapse/props.d.ts +0 -8
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -262
- package/lib/color-picker/color-picker.css +3 -133
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +4 -265
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +31 -32
- package/lib/components.js +30 -31
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -262
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -392
- package/lib/container/index.js +7 -6
- 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 +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.d.ts +10 -0
- package/lib/date-picker/date-picker.variable.css +1 -262
- package/lib/date-picker/index.d.ts +22 -0
- package/lib/date-picker/index.js +223 -320
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +68 -6
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +10 -1
- package/lib/date-picker/panel/time.d.ts +10 -1
- package/lib/date-picker/props.d.ts +5 -1
- package/lib/date-picker/time-picker.d.ts +9 -0
- package/lib/date-picker/utils.d.ts +1 -5
- package/lib/dialog/dialog.css +88 -269
- package/lib/dialog/dialog.d.ts +146 -68
- package/lib/dialog/dialog.less +76 -9
- package/lib/dialog/dialog.variable.css +89 -531
- package/lib/dialog/index.d.ts +340 -159
- package/lib/dialog/index.js +221 -197
- package/lib/dialog/props.d.ts +52 -22
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +168 -170
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +4 -2
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +1 -262
- 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-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +1 -392
- package/lib/dropdown/index.d.ts +13 -13
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +1 -262
- 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.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -262
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form-item.d.ts +16 -0
- package/lib/form/form.css +0 -130
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +1 -262
- package/lib/form/index.d.ts +11 -0
- package/lib/form/index.js +16 -14
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +1 -262
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -392
- package/lib/image/index.js +21 -20
- package/lib/index.d.ts +3 -9
- package/lib/index.js +29 -5
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +173 -326
- package/lib/info-box/info-box.css +7 -193
- package/lib/info-box/info-box.d.ts +23 -25
- package/lib/info-box/info-box.less +14 -76
- package/lib/info-box/info-box.variable.css +8 -325
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -26
- package/lib/input/input.css +72 -202
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +73 -464
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.css +16 -146
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +1 -262
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +17 -408
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu.css +18 -148
- package/lib/menu/menu.variable.css +19 -410
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -262
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.css +21 -151
- package/lib/message/message.variable.css +1 -262
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +1 -1
- package/lib/modal/index.d.ts +343 -68
- package/lib/modal/index.js +701 -237
- package/lib/modal/modal.css +32 -261
- package/lib/modal/modal.d.ts +131 -26
- package/lib/modal/modal.less +29 -83
- package/lib/modal/modal.variable.css +33 -523
- package/lib/modal/props.mixin.d.ts +51 -10
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +1 -262
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -262
- package/lib/overflow-title/components/overflow-title.d.ts +16 -9
- package/lib/overflow-title/index.d.ts +34 -19
- package/lib/overflow-title/index.js +64 -107
- package/lib/overflow-title/props.d.ts +21 -18
- package/lib/pagination/index.d.ts +19 -0
- package/lib/pagination/index.js +23 -44
- package/lib/pagination/pagination.css +9 -139
- package/lib/pagination/pagination.d.ts +13 -0
- package/lib/pagination/pagination.less +13 -14
- package/lib/pagination/pagination.variable.css +9 -270
- package/lib/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 +20 -18
- package/lib/pop-confirm/index.d.ts +43 -11
- package/lib/pop-confirm/index.js +28 -27
- package/lib/pop-confirm/pop-confirm.css +1 -133
- package/lib/pop-confirm/pop-confirm.d.ts +19 -5
- package/lib/pop-confirm/pop-confirm.less +1 -3
- package/lib/pop-confirm/pop-confirm.variable.css +2 -265
- package/lib/pop-confirm/props.d.ts +11 -5
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +20 -18
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.variable.css +1 -262
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +1 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -262
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +11 -10
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +5 -396
- package/lib/radio/index.d.ts +0 -29
- package/lib/radio/index.js +26 -55
- package/lib/radio/radio-button.d.ts +0 -10
- package/lib/radio/radio-group.d.ts +0 -10
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.d.ts +0 -10
- package/lib/radio/radio.variable.css +1 -262
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +0 -157
- package/lib/rate/rate.less +0 -33
- package/lib/rate/rate.variable.css +1 -289
- package/lib/rate/star.css +27 -0
- package/lib/rate/star.less +34 -0
- package/lib/{styles/themes/themes.variable.css → rate/star.variable.css} +28 -2
- package/lib/resize-layout/index.d.ts +11 -34
- package/lib/resize-layout/index.js +14 -29
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.d.ts +5 -16
- package/lib/resize-layout/resize-layout.variable.css +1 -262
- package/lib/search-select/index.d.ts +72 -40
- package/lib/search-select/index.js +130 -148
- package/lib/search-select/input.d.ts +4 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +33 -163
- package/lib/search-select/search-select.d.ts +39 -15
- package/lib/search-select/search-select.variable.css +34 -425
- package/lib/search-select/selected.d.ts +10 -12
- package/lib/search-select/utils.d.ts +6 -6
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +93 -101
- package/lib/select/index.js +192 -235
- package/lib/select/option.d.ts +6 -5
- package/lib/select/select.css +45 -176
- package/lib/select/select.d.ts +36 -38
- package/lib/select/select.less +6 -8
- package/lib/select/select.variable.css +46 -438
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +11 -10
- package/lib/shared/index.d.ts +2 -2
- package/lib/shared/index.js +89 -108
- package/lib/shared/mask.d.ts +11 -0
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +46 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +217 -75
- package/lib/sideslider/index.js +42 -68
- package/lib/sideslider/sideslider.css +92 -152
- package/lib/sideslider/sideslider.d.ts +103 -35
- package/lib/sideslider/sideslider.less +112 -31
- package/lib/sideslider/sideslider.variable.css +92 -283
- package/lib/slider/index.d.ts +0 -19
- package/lib/slider/index.js +26 -64
- package/lib/slider/slider.css +4 -148
- package/lib/slider/slider.d.ts +0 -9
- package/lib/slider/slider.less +0 -15
- package/lib/slider/slider.variable.css +1 -276
- package/lib/steps/index.d.ts +29 -14
- package/lib/steps/index.js +4 -3
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.d.ts +18 -8
- package/lib/steps/steps.variable.css +1 -262
- package/lib/styles/index.d.ts +1 -1
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -262
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -262
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -262
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -262
- package/lib/styles/themes/themes.less +129 -299
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -262
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +18 -409
- package/lib/tab/index.d.ts +114 -22
- package/lib/tab/index.js +29 -16
- package/lib/tab/props.d.ts +50 -15
- package/lib/tab/tab-nav.d.ts +55 -12
- package/lib/tab/tab.css +17 -147
- package/lib/tab/tab.d.ts +54 -10
- package/lib/tab/tab.variable.css +1 -262
- package/lib/table/components/table-cell.d.ts +2 -25
- package/lib/table/components/table-column.d.ts +239 -20
- package/lib/table/const.d.ts +13 -25
- package/lib/table/events.d.ts +112 -16
- package/lib/table/index.d.ts +738 -135
- package/lib/table/index.js +6037 -23581
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +4 -138
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.less +3 -6
- package/lib/table/plugins/head-filter.variable.css +5 -270
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -262
- package/lib/table/plugins/settings.css +0 -131
- package/lib/table/plugins/settings.d.ts +16 -0
- package/lib/table/plugins/settings.less +0 -1
- package/lib/table/plugins/settings.variable.css +1 -263
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +35 -0
- package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +27 -0
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +21 -0
- package/lib/table/props.d.ts +64 -131
- package/lib/table/table.css +302 -562
- package/lib/table/table.d.ts +185 -62
- package/lib/table/table.less +148 -187
- package/lib/table/table.variable.css +303 -824
- package/lib/table/use-attributes.d.ts +61 -0
- package/lib/table/use-column.d.ts +276 -0
- package/lib/table/use-common.d.ts +1679 -0
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +21 -47
- package/lib/table-column/index.d.ts +579 -30
- package/lib/table-column/index.js +320 -17373
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +3 -2
- package/lib/tag/tag.css +6 -136
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -263
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.css +18 -148
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-input.variable.css +1 -262
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/time-picker/index.d.ts +19 -0
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -262
- package/lib/timeline/index.js +2 -2
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -262
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +28 -158
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +10 -271
- package/lib/tree/constant.d.ts +20 -24
- package/lib/tree/index.d.ts +24 -82
- package/lib/tree/index.js +90 -17657
- package/lib/tree/props.d.ts +10 -35
- package/lib/tree/tree.css +18 -248
- package/lib/tree/tree.d.ts +8 -34
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +19 -510
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +9 -10
- package/lib/tree/use-node-async.d.ts +1 -2
- package/lib/tree/use-node-attribute.d.ts +30 -47
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +5 -8
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +0 -23
- package/lib/upload/index.js +41 -71
- package/lib/upload/props.d.ts +1 -6
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.d.ts +0 -11
- package/lib/upload/upload.type.d.ts +6 -12
- package/lib/upload/upload.variable.css +28 -419
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +46 -39
- package/lib/virtual-render/index.js +117 -17585
- package/lib/virtual-render/props.d.ts +9 -18
- package/lib/virtual-render/use-fix-top.d.ts +8 -3
- package/lib/virtual-render/v-virtual-render.d.ts +2 -7
- package/lib/virtual-render/virtual-render.css +9 -239
- package/lib/virtual-render/virtual-render.d.ts +22 -19
- package/lib/virtual-render/virtual-render.less +10 -1
- package/lib/virtual-render/virtual-render.variable.css +10 -501
- package/lib/volar.components.d.ts +0 -2
- package/package.json +55 -17
- package/lib/info-box/render-component.d.ts +0 -4
- package/lib/modal/mask.d.ts +0 -6
- package/lib/scrollbar/css/scrollbar.css +0 -239
- package/lib/scrollbar/css/scrollbar.less +0 -139
- package/lib/scrollbar/css/scrollbar.variable.css +0 -499
- package/lib/scrollbar/handlers/click-rail.d.ts +0 -2
- package/lib/scrollbar/handlers/drag-thumb.d.ts +0 -1
- package/lib/scrollbar/handlers/keyboard.d.ts +0 -2
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +0 -2
- package/lib/scrollbar/handlers/touch.d.ts +0 -4
- package/lib/scrollbar/helper/class-names.d.ts +0 -21
- package/lib/scrollbar/helper/css.d.ts +0 -3
- package/lib/scrollbar/helper/dom.d.ts +0 -4
- package/lib/scrollbar/helper/event-manager.d.ts +0 -20
- package/lib/scrollbar/helper/util.d.ts +0 -11
- package/lib/scrollbar/index.d.ts +0 -135
- package/lib/scrollbar/index.js +0 -1657
- package/lib/scrollbar/process-scroll-diff.d.ts +0 -1
- package/lib/scrollbar/update-geometry.d.ts +0 -8
- package/lib/shared/frame-throttle.d.ts +0 -15
- package/lib/styles/themes/themes.css +0 -130
- package/lib/table/components/ghost-body.d.ts +0 -2
- package/lib/table/hooks/use-cell.d.ts +0 -20
- package/lib/table/hooks/use-column-resize.d.ts +0 -7
- package/lib/table/hooks/use-column-template.d.ts +0 -5
- package/lib/table/hooks/use-columns.d.ts +0 -69
- package/lib/table/hooks/use-fixed-column.d.ts +0 -10
- package/lib/table/hooks/use-head.d.ts +0 -16
- package/lib/table/hooks/use-layout.d.ts +0 -24
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -23
- package/lib/table/hooks/use-rows.d.ts +0 -27
- package/lib/table/hooks/use-settings.d.ts +0 -130
- package/lib/table/hooks/use-shift-key.d.ts +0 -15
- package/lib/tree/use-intersection-observer.d.ts +0 -27
- package/lib/virtual-render/use-scrollbar.d.ts +0 -10
- /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-scroll-loading.d.ts +0 -0
package/lib/modal/index.js
CHANGED
@@ -5,10 +5,395 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
8
|
-
/******/
|
9
|
-
|
8
|
+
/******/ var __webpack_modules__ = ({
|
9
|
+
|
10
|
+
/***/ 7609:
|
11
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
12
|
+
|
13
|
+
var _typeof = (__webpack_require__(7425)["default"]);
|
14
|
+
function _regeneratorRuntime() {
|
15
|
+
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
16
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
17
|
+
return e;
|
18
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
19
|
+
var t,
|
20
|
+
e = {},
|
21
|
+
r = Object.prototype,
|
22
|
+
n = r.hasOwnProperty,
|
23
|
+
o = Object.defineProperty || function (t, e, r) {
|
24
|
+
t[e] = r.value;
|
25
|
+
},
|
26
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
27
|
+
a = i.iterator || "@@iterator",
|
28
|
+
c = i.asyncIterator || "@@asyncIterator",
|
29
|
+
u = i.toStringTag || "@@toStringTag";
|
30
|
+
function define(t, e, r) {
|
31
|
+
return Object.defineProperty(t, e, {
|
32
|
+
value: r,
|
33
|
+
enumerable: !0,
|
34
|
+
configurable: !0,
|
35
|
+
writable: !0
|
36
|
+
}), t[e];
|
37
|
+
}
|
38
|
+
try {
|
39
|
+
define({}, "");
|
40
|
+
} catch (t) {
|
41
|
+
define = function define(t, e, r) {
|
42
|
+
return t[e] = r;
|
43
|
+
};
|
44
|
+
}
|
45
|
+
function wrap(t, e, r, n) {
|
46
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
47
|
+
a = Object.create(i.prototype),
|
48
|
+
c = new Context(n || []);
|
49
|
+
return o(a, "_invoke", {
|
50
|
+
value: makeInvokeMethod(t, r, c)
|
51
|
+
}), a;
|
52
|
+
}
|
53
|
+
function tryCatch(t, e, r) {
|
54
|
+
try {
|
55
|
+
return {
|
56
|
+
type: "normal",
|
57
|
+
arg: t.call(e, r)
|
58
|
+
};
|
59
|
+
} catch (t) {
|
60
|
+
return {
|
61
|
+
type: "throw",
|
62
|
+
arg: t
|
63
|
+
};
|
64
|
+
}
|
65
|
+
}
|
66
|
+
e.wrap = wrap;
|
67
|
+
var h = "suspendedStart",
|
68
|
+
l = "suspendedYield",
|
69
|
+
f = "executing",
|
70
|
+
s = "completed",
|
71
|
+
y = {};
|
72
|
+
function Generator() {}
|
73
|
+
function GeneratorFunction() {}
|
74
|
+
function GeneratorFunctionPrototype() {}
|
75
|
+
var p = {};
|
76
|
+
define(p, a, function () {
|
77
|
+
return this;
|
78
|
+
});
|
79
|
+
var d = Object.getPrototypeOf,
|
80
|
+
v = d && d(d(values([])));
|
81
|
+
v && v !== r && n.call(v, a) && (p = v);
|
82
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
83
|
+
function defineIteratorMethods(t) {
|
84
|
+
["next", "throw", "return"].forEach(function (e) {
|
85
|
+
define(t, e, function (t) {
|
86
|
+
return this._invoke(e, t);
|
87
|
+
});
|
88
|
+
});
|
89
|
+
}
|
90
|
+
function AsyncIterator(t, e) {
|
91
|
+
function invoke(r, o, i, a) {
|
92
|
+
var c = tryCatch(t[r], t, o);
|
93
|
+
if ("throw" !== c.type) {
|
94
|
+
var u = c.arg,
|
95
|
+
h = u.value;
|
96
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
97
|
+
invoke("next", t, i, a);
|
98
|
+
}, function (t) {
|
99
|
+
invoke("throw", t, i, a);
|
100
|
+
}) : e.resolve(h).then(function (t) {
|
101
|
+
u.value = t, i(u);
|
102
|
+
}, function (t) {
|
103
|
+
return invoke("throw", t, i, a);
|
104
|
+
});
|
105
|
+
}
|
106
|
+
a(c.arg);
|
107
|
+
}
|
108
|
+
var r;
|
109
|
+
o(this, "_invoke", {
|
110
|
+
value: function value(t, n) {
|
111
|
+
function callInvokeWithMethodAndArg() {
|
112
|
+
return new e(function (e, r) {
|
113
|
+
invoke(t, n, e, r);
|
114
|
+
});
|
115
|
+
}
|
116
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
117
|
+
}
|
118
|
+
});
|
119
|
+
}
|
120
|
+
function makeInvokeMethod(e, r, n) {
|
121
|
+
var o = h;
|
122
|
+
return function (i, a) {
|
123
|
+
if (o === f) throw new Error("Generator is already running");
|
124
|
+
if (o === s) {
|
125
|
+
if ("throw" === i) throw a;
|
126
|
+
return {
|
127
|
+
value: t,
|
128
|
+
done: !0
|
129
|
+
};
|
130
|
+
}
|
131
|
+
for (n.method = i, n.arg = a;;) {
|
132
|
+
var c = n.delegate;
|
133
|
+
if (c) {
|
134
|
+
var u = maybeInvokeDelegate(c, n);
|
135
|
+
if (u) {
|
136
|
+
if (u === y) continue;
|
137
|
+
return u;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
141
|
+
if (o === h) throw o = s, n.arg;
|
142
|
+
n.dispatchException(n.arg);
|
143
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
144
|
+
o = f;
|
145
|
+
var p = tryCatch(e, r, n);
|
146
|
+
if ("normal" === p.type) {
|
147
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
148
|
+
return {
|
149
|
+
value: p.arg,
|
150
|
+
done: n.done
|
151
|
+
};
|
152
|
+
}
|
153
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
154
|
+
}
|
155
|
+
};
|
156
|
+
}
|
157
|
+
function maybeInvokeDelegate(e, r) {
|
158
|
+
var n = r.method,
|
159
|
+
o = e.iterator[n];
|
160
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
161
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
162
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
163
|
+
var a = i.arg;
|
164
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
165
|
+
}
|
166
|
+
function pushTryEntry(t) {
|
167
|
+
var e = {
|
168
|
+
tryLoc: t[0]
|
169
|
+
};
|
170
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
171
|
+
}
|
172
|
+
function resetTryEntry(t) {
|
173
|
+
var e = t.completion || {};
|
174
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
175
|
+
}
|
176
|
+
function Context(t) {
|
177
|
+
this.tryEntries = [{
|
178
|
+
tryLoc: "root"
|
179
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
180
|
+
}
|
181
|
+
function values(e) {
|
182
|
+
if (e || "" === e) {
|
183
|
+
var r = e[a];
|
184
|
+
if (r) return r.call(e);
|
185
|
+
if ("function" == typeof e.next) return e;
|
186
|
+
if (!isNaN(e.length)) {
|
187
|
+
var o = -1,
|
188
|
+
i = function next() {
|
189
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
190
|
+
return next.value = t, next.done = !0, next;
|
191
|
+
};
|
192
|
+
return i.next = i;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
196
|
+
}
|
197
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
198
|
+
value: GeneratorFunctionPrototype,
|
199
|
+
configurable: !0
|
200
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
201
|
+
value: GeneratorFunction,
|
202
|
+
configurable: !0
|
203
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
204
|
+
var e = "function" == typeof t && t.constructor;
|
205
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
206
|
+
}, e.mark = function (t) {
|
207
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
208
|
+
}, e.awrap = function (t) {
|
209
|
+
return {
|
210
|
+
__await: t
|
211
|
+
};
|
212
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
213
|
+
return this;
|
214
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
215
|
+
void 0 === i && (i = Promise);
|
216
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
217
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
218
|
+
return t.done ? t.value : a.next();
|
219
|
+
});
|
220
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
221
|
+
return this;
|
222
|
+
}), define(g, "toString", function () {
|
223
|
+
return "[object Generator]";
|
224
|
+
}), e.keys = function (t) {
|
225
|
+
var e = Object(t),
|
226
|
+
r = [];
|
227
|
+
for (var n in e) r.push(n);
|
228
|
+
return r.reverse(), function next() {
|
229
|
+
for (; r.length;) {
|
230
|
+
var t = r.pop();
|
231
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
232
|
+
}
|
233
|
+
return next.done = !0, next;
|
234
|
+
};
|
235
|
+
}, e.values = values, Context.prototype = {
|
236
|
+
constructor: Context,
|
237
|
+
reset: function reset(e) {
|
238
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
239
|
+
},
|
240
|
+
stop: function stop() {
|
241
|
+
this.done = !0;
|
242
|
+
var t = this.tryEntries[0].completion;
|
243
|
+
if ("throw" === t.type) throw t.arg;
|
244
|
+
return this.rval;
|
245
|
+
},
|
246
|
+
dispatchException: function dispatchException(e) {
|
247
|
+
if (this.done) throw e;
|
248
|
+
var r = this;
|
249
|
+
function handle(n, o) {
|
250
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
251
|
+
}
|
252
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
253
|
+
var i = this.tryEntries[o],
|
254
|
+
a = i.completion;
|
255
|
+
if ("root" === i.tryLoc) return handle("end");
|
256
|
+
if (i.tryLoc <= this.prev) {
|
257
|
+
var c = n.call(i, "catchLoc"),
|
258
|
+
u = n.call(i, "finallyLoc");
|
259
|
+
if (c && u) {
|
260
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
261
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
262
|
+
} else if (c) {
|
263
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
264
|
+
} else {
|
265
|
+
if (!u) throw new Error("try statement without catch or finally");
|
266
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
267
|
+
}
|
268
|
+
}
|
269
|
+
}
|
270
|
+
},
|
271
|
+
abrupt: function abrupt(t, e) {
|
272
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
273
|
+
var o = this.tryEntries[r];
|
274
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
275
|
+
var i = o;
|
276
|
+
break;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
280
|
+
var a = i ? i.completion : {};
|
281
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
282
|
+
},
|
283
|
+
complete: function complete(t, e) {
|
284
|
+
if ("throw" === t.type) throw t.arg;
|
285
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
286
|
+
},
|
287
|
+
finish: function finish(t) {
|
288
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
289
|
+
var r = this.tryEntries[e];
|
290
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
291
|
+
}
|
292
|
+
},
|
293
|
+
"catch": function _catch(t) {
|
294
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
295
|
+
var r = this.tryEntries[e];
|
296
|
+
if (r.tryLoc === t) {
|
297
|
+
var n = r.completion;
|
298
|
+
if ("throw" === n.type) {
|
299
|
+
var o = n.arg;
|
300
|
+
resetTryEntry(r);
|
301
|
+
}
|
302
|
+
return o;
|
303
|
+
}
|
304
|
+
}
|
305
|
+
throw new Error("illegal catch attempt");
|
306
|
+
},
|
307
|
+
delegateYield: function delegateYield(e, r, n) {
|
308
|
+
return this.delegate = {
|
309
|
+
iterator: values(e),
|
310
|
+
resultName: r,
|
311
|
+
nextLoc: n
|
312
|
+
}, "next" === this.method && (this.arg = t), y;
|
313
|
+
}
|
314
|
+
}, e;
|
315
|
+
}
|
316
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
317
|
+
|
318
|
+
/***/ }),
|
319
|
+
|
320
|
+
/***/ 7425:
|
321
|
+
/***/ ((module) => {
|
322
|
+
|
323
|
+
function _typeof(o) {
|
324
|
+
"@babel/helpers - typeof";
|
325
|
+
|
326
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
327
|
+
return typeof o;
|
328
|
+
} : function (o) {
|
329
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
330
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
331
|
+
}
|
332
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
333
|
+
|
334
|
+
/***/ }),
|
335
|
+
|
336
|
+
/***/ 2841:
|
337
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
338
|
+
|
339
|
+
// TODO(Babel 8): Remove this file.
|
340
|
+
|
341
|
+
var runtime = __webpack_require__(7609)();
|
342
|
+
module.exports = runtime;
|
343
|
+
|
344
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
345
|
+
try {
|
346
|
+
regeneratorRuntime = runtime;
|
347
|
+
} catch (accidentalStrictMode) {
|
348
|
+
if (typeof globalThis === "object") {
|
349
|
+
globalThis.regeneratorRuntime = runtime;
|
350
|
+
} else {
|
351
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
352
|
+
}
|
353
|
+
}
|
354
|
+
|
355
|
+
|
356
|
+
/***/ })
|
357
|
+
|
358
|
+
/******/ });
|
359
|
+
/************************************************************************/
|
360
|
+
/******/ // The module cache
|
361
|
+
/******/ var __webpack_module_cache__ = {};
|
362
|
+
/******/
|
363
|
+
/******/ // The require function
|
364
|
+
/******/ function __webpack_require__(moduleId) {
|
365
|
+
/******/ // Check if module is in cache
|
366
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
367
|
+
/******/ if (cachedModule !== undefined) {
|
368
|
+
/******/ return cachedModule.exports;
|
369
|
+
/******/ }
|
370
|
+
/******/ // Create a new module (and put it into the cache)
|
371
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
372
|
+
/******/ // no module.id needed
|
373
|
+
/******/ // no module.loaded needed
|
374
|
+
/******/ exports: {}
|
375
|
+
/******/ };
|
376
|
+
/******/
|
377
|
+
/******/ // Execute the module function
|
378
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
379
|
+
/******/
|
380
|
+
/******/ // Return the exports of the module
|
381
|
+
/******/ return module.exports;
|
382
|
+
/******/ }
|
10
383
|
/******/
|
11
384
|
/************************************************************************/
|
385
|
+
/******/ /* webpack/runtime/compat get default export */
|
386
|
+
/******/ (() => {
|
387
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
388
|
+
/******/ __webpack_require__.n = (module) => {
|
389
|
+
/******/ var getter = module && module.__esModule ?
|
390
|
+
/******/ () => (module['default']) :
|
391
|
+
/******/ () => (module);
|
392
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
393
|
+
/******/ return getter;
|
394
|
+
/******/ };
|
395
|
+
/******/ })();
|
396
|
+
/******/
|
12
397
|
/******/ /* webpack/runtime/define property getters */
|
13
398
|
/******/ (() => {
|
14
399
|
/******/ // define getter functions for harmony exports
|
@@ -28,6 +413,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
|
28
413
|
/******/
|
29
414
|
/************************************************************************/
|
30
415
|
var __webpack_exports__ = {};
|
416
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
417
|
+
(() => {
|
31
418
|
|
32
419
|
// EXPORTS
|
33
420
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -39,7 +426,38 @@ __webpack_require__.d(__webpack_exports__, {
|
|
39
426
|
;// CONCATENATED MODULE: external "../shared"
|
40
427
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
41
428
|
var y = x => () => x
|
42
|
-
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
429
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["getFullscreenRoot"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.getFullscreenRoot, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["isPromise"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isPromise, ["mask"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.mask, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
430
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
431
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
432
|
+
try {
|
433
|
+
var info = gen[key](arg);
|
434
|
+
var value = info.value;
|
435
|
+
} catch (error) {
|
436
|
+
reject(error);
|
437
|
+
return;
|
438
|
+
}
|
439
|
+
if (info.done) {
|
440
|
+
resolve(value);
|
441
|
+
} else {
|
442
|
+
Promise.resolve(value).then(_next, _throw);
|
443
|
+
}
|
444
|
+
}
|
445
|
+
function _asyncToGenerator(fn) {
|
446
|
+
return function () {
|
447
|
+
var self = this,
|
448
|
+
args = arguments;
|
449
|
+
return new Promise(function (resolve, reject) {
|
450
|
+
var gen = fn.apply(self, args);
|
451
|
+
function _next(value) {
|
452
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
453
|
+
}
|
454
|
+
function _throw(err) {
|
455
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
456
|
+
}
|
457
|
+
_next(undefined);
|
458
|
+
});
|
459
|
+
};
|
460
|
+
}
|
43
461
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
44
462
|
function _typeof(o) {
|
45
463
|
"@babel/helpers - typeof";
|
@@ -88,7 +506,10 @@ function _defineProperty(obj, key, value) {
|
|
88
506
|
;// CONCATENATED MODULE: external "vue"
|
89
507
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
90
508
|
var external_vue_y = x => () => x
|
91
|
-
const external_vue_namespaceObject = external_vue_x({ ["
|
509
|
+
const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
510
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
511
|
+
var regenerator = __webpack_require__(2841);
|
512
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
92
513
|
;// CONCATENATED MODULE: external "../config-provider"
|
93
514
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
94
515
|
var config_provider_y = x => () => x
|
@@ -131,48 +552,40 @@ var useContentResize = function useContentResize(root, resizeTarget, props) {
|
|
131
552
|
resolveClassName = _usePrefix.resolveClassName;
|
132
553
|
var isContentScroll = (0,external_vue_namespaceObject.ref)(false);
|
133
554
|
var contentStyles = (0,external_vue_namespaceObject.ref)({});
|
134
|
-
var
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
}
|
158
|
-
|
159
|
-
|
160
|
-
}
|
555
|
+
var observer;
|
556
|
+
var handleContentBoxChange = function handleContentBoxChange() {
|
557
|
+
var calcContentScroll = (0,throttle_namespaceObject["default"])(function () {
|
558
|
+
var _root$value$querySele = root.value.querySelector(".".concat(resolveClassName('modal-header'))).getBoundingClientRect(),
|
559
|
+
headerHeight = _root$value$querySele.height;
|
560
|
+
var _root$value$querySele2 = root.value.querySelector(".".concat(resolveClassName('modal-content'), " div")).getBoundingClientRect(),
|
561
|
+
contentHeight = _root$value$querySele2.height;
|
562
|
+
var _root$value$querySele3 = root.value.querySelector(".".concat(resolveClassName('modal-footer'))).getBoundingClientRect(),
|
563
|
+
footerHeight = _root$value$querySele3.height;
|
564
|
+
var windowInnerHeight = window.innerHeight;
|
565
|
+
isContentScroll.value = windowInnerHeight < headerHeight + contentHeight + footerHeight + 20;
|
566
|
+
if (isContentScroll.value || props.fullscreen) {
|
567
|
+
contentStyles.value = {
|
568
|
+
height: "".concat(windowInnerHeight - headerHeight - footerHeight, "px")
|
569
|
+
};
|
570
|
+
// fullscreen 时默认为 true
|
571
|
+
isContentScroll.value = true;
|
572
|
+
} else {
|
573
|
+
contentStyles.value = {};
|
574
|
+
}
|
575
|
+
}, 30);
|
576
|
+
observer = new ResizeObserver(function () {
|
577
|
+
calcContentScroll();
|
578
|
+
});
|
579
|
+
observer.observe(resizeTarget.value);
|
580
|
+
calcContentScroll();
|
581
|
+
};
|
161
582
|
(0,external_vue_namespaceObject.watch)(function () {
|
162
|
-
return
|
583
|
+
return props.isShow;
|
163
584
|
}, function () {
|
164
|
-
var observer;
|
165
585
|
if (props.isShow) {
|
166
|
-
(
|
167
|
-
|
168
|
-
|
169
|
-
}
|
170
|
-
observer = new ResizeObserver(function () {
|
171
|
-
calcContentScroll();
|
172
|
-
});
|
173
|
-
observer.observe(resizeTarget.value);
|
174
|
-
calcContentScroll();
|
175
|
-
});
|
586
|
+
setTimeout(function () {
|
587
|
+
handleContentBoxChange();
|
588
|
+
}, 100);
|
176
589
|
} else {
|
177
590
|
if (observer) {
|
178
591
|
observer.disconnect();
|
@@ -182,91 +595,17 @@ var useContentResize = function useContentResize(root, resizeTarget, props) {
|
|
182
595
|
}, {
|
183
596
|
immediate: true
|
184
597
|
});
|
185
|
-
(0,external_vue_namespaceObject.onMounted)(function () {
|
186
|
-
window.addEventListener('resize', calcContentScroll);
|
187
|
-
});
|
188
|
-
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
189
|
-
window.removeEventListener('resize', calcContentScroll);
|
190
|
-
});
|
191
598
|
return {
|
192
599
|
contentStyles: contentStyles,
|
193
600
|
isContentScroll: isContentScroll
|
194
601
|
};
|
195
602
|
};
|
196
|
-
;// CONCATENATED MODULE: ../../packages/modal/src/mask.ts
|
197
|
-
/*
|
198
|
-
* Tencent is pleased to support the open source community by making
|
199
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
200
|
-
*
|
201
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
202
|
-
*
|
203
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
204
|
-
*
|
205
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
206
|
-
*
|
207
|
-
* ---------------------------------------------------
|
208
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
209
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
210
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
211
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
212
|
-
*
|
213
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
214
|
-
* the Software.
|
215
|
-
*
|
216
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
217
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
218
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
219
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
220
|
-
* IN THE SOFTWARE.
|
221
|
-
*/
|
222
|
-
var maskEleLink = new WeakMap();
|
223
|
-
var lastestMaskEle;
|
224
|
-
var maskInstanceCount = 0;
|
225
|
-
var showMask = function showMask(maskEle) {
|
226
|
-
if (maskEle === lastestMaskEle) {
|
227
|
-
lastestMaskEle = maskEle;
|
228
|
-
return;
|
229
|
-
}
|
230
|
-
maskInstanceCount += 1;
|
231
|
-
if (lastestMaskEle) {
|
232
|
-
lastestMaskEle.style.opacity = '0';
|
233
|
-
maskEle.style.transitionProperty = '';
|
234
|
-
// 缓存遮罩出现的顺序
|
235
|
-
maskEleLink.set(maskEle, lastestMaskEle);
|
236
|
-
}
|
237
|
-
lastestMaskEle = maskEle;
|
238
|
-
};
|
239
|
-
var hideMask = function hideMask(maskEle) {
|
240
|
-
if (maskEleLink.has(maskEle)) {
|
241
|
-
lastestMaskEle = maskEleLink.get(maskEle);
|
242
|
-
lastestMaskEle.style.opacity = '1';
|
243
|
-
maskEle.style.visibility = 'hidden';
|
244
|
-
maskEleLink["delete"](maskEle);
|
245
|
-
maskInstanceCount -= 1;
|
246
|
-
setTimeout(function () {
|
247
|
-
maskEle.style.visibility = '';
|
248
|
-
}, 300);
|
249
|
-
}
|
250
|
-
};
|
251
|
-
var destroyMask = function destroyMask(maskEle) {
|
252
|
-
if (maskEleLink.has(maskEle)) {
|
253
|
-
maskEleLink["delete"](maskEle);
|
254
|
-
}
|
255
|
-
};
|
256
|
-
var getMaskCount = function getMaskCount() {
|
257
|
-
return maskInstanceCount;
|
258
|
-
};
|
259
|
-
var mask = {
|
260
|
-
showMask: showMask,
|
261
|
-
hideMask: hideMask,
|
262
|
-
destroyMask: destroyMask,
|
263
|
-
getMaskCount: getMaskCount
|
264
|
-
};
|
265
603
|
;// CONCATENATED MODULE: external "vue-types"
|
266
604
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
267
605
|
var external_vue_types_y = x => () => x
|
268
|
-
const external_vue_types_namespaceObject = external_vue_types_x({ ["
|
606
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
269
607
|
;// CONCATENATED MODULE: ../../packages/modal/src/props.mixin.ts
|
608
|
+
|
270
609
|
/*
|
271
610
|
* Tencent is pleased to support the open source community by making
|
272
611
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -293,41 +632,70 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["func"]: () =
|
|
293
632
|
* IN THE SOFTWARE.
|
294
633
|
*/
|
295
634
|
|
296
|
-
|
635
|
+
var ModalSizeEnum;
|
636
|
+
(function (ModalSizeEnum) {
|
637
|
+
ModalSizeEnum["NORMAL"] = "normal";
|
638
|
+
ModalSizeEnum["SMALL"] = "small";
|
639
|
+
ModalSizeEnum["MEDIUM"] = "medium";
|
640
|
+
ModalSizeEnum["LARGE"] = "large";
|
641
|
+
})(ModalSizeEnum || (ModalSizeEnum = {}));
|
297
642
|
var propsMixin = {
|
298
643
|
// 是否显示弹框
|
299
644
|
isShow: shared_namespaceObject.PropTypes.bool.def(false),
|
300
|
-
width: shared_namespaceObject.PropTypes.oneOfType([String, Number]),
|
301
|
-
|
302
|
-
|
645
|
+
width: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('480px'),
|
646
|
+
height: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('1000'),
|
647
|
+
// 配置自定义样式类名
|
648
|
+
extCls: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.array,
|
649
|
+
// 弹框出现时,是否允许页面滚动
|
650
|
+
scrollable: shared_namespaceObject.PropTypes.bool.def(true),
|
303
651
|
// 是否允许出现遮罩
|
304
652
|
showMask: shared_namespaceObject.PropTypes.bool.def(true),
|
305
653
|
// 是否显示右上角的关闭 icon
|
306
654
|
closeIcon: shared_namespaceObject.PropTypes.bool.def(true),
|
307
655
|
// 是否允许 esc 按键关闭弹框
|
308
656
|
escClose: shared_namespaceObject.PropTypes.bool.def(true),
|
657
|
+
// 是否全屏
|
658
|
+
fullscreen: shared_namespaceObject.PropTypes.bool.def(false),
|
659
|
+
// 弹框尺寸
|
660
|
+
size: (0,external_vue_types_namespaceObject.toType)('size', {}),
|
661
|
+
// 是否可拖拽
|
662
|
+
draggable: shared_namespaceObject.PropTypes.bool.def(true),
|
309
663
|
// 是否允许点击遮罩关闭弹窗
|
310
664
|
quickClose: shared_namespaceObject.PropTypes.bool.def(true),
|
311
665
|
// 是否显示在body内(即与id#app同级
|
312
666
|
transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(true),
|
313
667
|
// 弹出层z-index,实际显示的值会自动+1。为了抱证在遮罩上正常显示
|
314
668
|
zIndex: shared_namespaceObject.PropTypes.oneOfType([String, Number]),
|
669
|
+
// 内容区最大高度
|
670
|
+
maxHeight: shared_namespaceObject.PropTypes.string,
|
671
|
+
// 弹出方向
|
672
|
+
direction: shared_namespaceObject.PropTypes.string.def(''),
|
673
|
+
// title
|
674
|
+
title: shared_namespaceObject.PropTypes.string.def(''),
|
315
675
|
// 动画类型
|
316
676
|
animateType: shared_namespaceObject.PropTypes.string.def('slide'),
|
317
677
|
// 弹框的渲染方式
|
318
678
|
renderDirective: (0,shared_namespaceObject.renderDirectiveType)(),
|
319
679
|
// 关闭前回调
|
320
|
-
beforeClose:
|
680
|
+
beforeClose: shared_namespaceObject.PropTypes.custom(function () {
|
321
681
|
return true;
|
322
682
|
}),
|
683
|
+
// 对话框类型
|
684
|
+
dialogType: (0,shared_namespaceObject.dialogTypeUnion)(),
|
685
|
+
// 是否允许多个弹框同时存在
|
686
|
+
multiInstance: shared_namespaceObject.PropTypes.bool.def(true),
|
687
|
+
// info-box
|
688
|
+
infoType: shared_namespaceObject.PropTypes.theme(),
|
689
|
+
bodyClass: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.array,
|
323
690
|
left: shared_namespaceObject.PropTypes.string,
|
324
691
|
top: shared_namespaceObject.PropTypes.string,
|
325
|
-
|
326
|
-
backgroundColor: shared_namespaceObject.PropTypes.string.def('')
|
692
|
+
hiddenDelay: shared_namespaceObject.PropTypes.number.def(200)
|
327
693
|
};
|
328
694
|
;// CONCATENATED MODULE: ../../packages/modal/src/modal.tsx
|
329
695
|
|
330
696
|
|
697
|
+
|
698
|
+
|
331
699
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
332
700
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
333
701
|
/*
|
@@ -360,153 +728,247 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
360
728
|
|
361
729
|
|
362
730
|
|
363
|
-
|
364
731
|
/* harmony default export */ const modal = ((0,external_vue_namespaceObject.defineComponent)({
|
365
732
|
name: 'Modal',
|
366
733
|
props: _objectSpread({}, propsMixin),
|
367
|
-
emits: ['quick-close', 'hidden', 'shown', 'close'],
|
734
|
+
emits: ['quick-close', 'quickClose', 'hidden', 'shown', 'close'],
|
368
735
|
setup: function setup(props, ctx) {
|
369
|
-
var
|
370
|
-
var
|
371
|
-
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
372
|
-
resolveClassName = _usePrefix.resolveClassName;
|
373
|
-
var rootRef = (0,external_vue_namespaceObject.ref)();
|
374
|
-
var maskRef = (0,external_vue_namespaceObject.ref)();
|
736
|
+
var refRoot = (0,external_vue_namespaceObject.ref)();
|
737
|
+
var refMask = (0,external_vue_namespaceObject.ref)();
|
375
738
|
var resizeTargetRef = (0,external_vue_namespaceObject.ref)();
|
376
|
-
var
|
739
|
+
var teleportTo = (0,external_vue_namespaceObject.ref)('body');
|
740
|
+
var visible = (0,external_vue_namespaceObject.ref)(false);
|
377
741
|
var zIndex = (0,external_vue_namespaceObject.ref)(props.zIndex);
|
378
|
-
var
|
379
|
-
var
|
742
|
+
var enableTeleport = (0,external_vue_namespaceObject.ref)(!!props.transfer);
|
743
|
+
var backgroundColor = (0,external_vue_namespaceObject.ref)('rgba(0,0,0,0.6)');
|
744
|
+
var closeTimer;
|
745
|
+
var _useContentResize = useContentResize(refRoot, resizeTargetRef, props),
|
380
746
|
contentStyles = _useContentResize.contentStyles,
|
381
747
|
isContentScroll = _useContentResize.isContentScroll;
|
382
748
|
var modalWrapperStyles = (0,external_vue_namespaceObject.computed)(function () {
|
383
|
-
|
384
|
-
|
749
|
+
var baseStyles = {
|
750
|
+
display: visible.value ? 'inherit' : 'none'
|
751
|
+
};
|
752
|
+
if (props.fullscreen) {
|
753
|
+
return baseStyles;
|
754
|
+
}
|
755
|
+
return Object.assign(baseStyles, _defineProperty({
|
385
756
|
width: /^\d+\.?\d*$/.test("".concat(props.width)) ? "".concat(props.width, "px") : props.width,
|
386
757
|
left: props.left,
|
387
758
|
top: props.top
|
388
|
-
};
|
759
|
+
}, props.direction, 0));
|
389
760
|
});
|
761
|
+
var resolveTransfer = function resolveTransfer() {
|
762
|
+
if (props.transfer) {
|
763
|
+
if (typeof props.transfer === 'boolean') {
|
764
|
+
teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)();
|
765
|
+
return;
|
766
|
+
}
|
767
|
+
teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)(props.transfer);
|
768
|
+
}
|
769
|
+
};
|
770
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
771
|
+
resolveClassName = _usePrefix.resolveClassName;
|
772
|
+
var resolveClosetModal = function resolveClosetModal() {
|
773
|
+
var _refRoot$value;
|
774
|
+
resolveTransfer();
|
775
|
+
if (enableTeleport.value) {
|
776
|
+
if (typeof teleportTo.value === 'string') {
|
777
|
+
var target = document.querySelector(teleportTo.value);
|
778
|
+
target === null || target === void 0 || target.appendChild(refRoot.value);
|
779
|
+
return;
|
780
|
+
}
|
781
|
+
if ((0,shared_namespaceObject.isElement)(teleportTo.value)) {
|
782
|
+
teleportTo.value.appendChild(refRoot.value);
|
783
|
+
return;
|
784
|
+
}
|
785
|
+
}
|
786
|
+
var className = ".".concat(resolveClassName('modal-ctx'));
|
787
|
+
var parentNode = (_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 || (_refRoot$value = _refRoot$value.parentElement) === null || _refRoot$value === void 0 ? void 0 : _refRoot$value.closest(className);
|
788
|
+
if (parentNode) {
|
789
|
+
enableTeleport.value = true;
|
790
|
+
teleportTo.value = 'body';
|
791
|
+
var _target = document.querySelector(teleportTo.value);
|
792
|
+
_target === null || _target === void 0 || _target.appendChild(refRoot.value);
|
793
|
+
}
|
794
|
+
};
|
795
|
+
var close = function close() {
|
796
|
+
if (visible.value) {
|
797
|
+
visible.value = false;
|
798
|
+
shared_namespaceObject.mask.hideMask({
|
799
|
+
el: refRoot.value,
|
800
|
+
mask: refMask.value,
|
801
|
+
showMask: props.showMask,
|
802
|
+
backgroundColor: backgroundColor.value
|
803
|
+
});
|
804
|
+
ctx.emit('hidden');
|
805
|
+
if (enableTeleport.value) {
|
806
|
+
var _refRoot$value2;
|
807
|
+
(_refRoot$value2 = refRoot.value) === null || _refRoot$value2 === void 0 || _refRoot$value2.remove();
|
808
|
+
}
|
809
|
+
}
|
810
|
+
};
|
811
|
+
var closeModal = function closeModal() {
|
812
|
+
shared_namespaceObject.mask.hideMask({
|
813
|
+
el: refRoot.value,
|
814
|
+
mask: refMask.value,
|
815
|
+
showMask: props.showMask,
|
816
|
+
backgroundColor: backgroundColor.value
|
817
|
+
});
|
818
|
+
closeTimer = setTimeout(function () {
|
819
|
+
// 直接设为false会失去离开的动画效果,这里延迟设置
|
820
|
+
ctx.emit('hidden'); // 为false直接触发hidden事件,在上层有200ms的延时
|
821
|
+
if (enableTeleport.value) {
|
822
|
+
var _refRoot$value3;
|
823
|
+
(_refRoot$value3 = refRoot.value) === null || _refRoot$value3 === void 0 || _refRoot$value3.remove();
|
824
|
+
}
|
825
|
+
}, props.hiddenDelay);
|
826
|
+
};
|
390
827
|
(0,external_vue_namespaceObject.watch)(function () {
|
391
828
|
return props.isShow;
|
392
|
-
}, function () {
|
393
|
-
if (
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
829
|
+
}, function (val) {
|
830
|
+
if (val) {
|
831
|
+
closeTimer && clearTimeout(closeTimer);
|
832
|
+
closeTimer = null;
|
833
|
+
if (!props.zIndex) {
|
834
|
+
zIndex.value = shared_namespaceObject.bkZIndexManager.getModalNextIndex();
|
835
|
+
}
|
836
|
+
visible.value = true;
|
837
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
398
838
|
ctx.emit('shown');
|
399
|
-
|
839
|
+
resolveClosetModal();
|
840
|
+
shared_namespaceObject.mask.showMask({
|
841
|
+
el: refRoot.value,
|
842
|
+
mask: refMask.value,
|
843
|
+
showMask: props.showMask,
|
844
|
+
backgroundColor: backgroundColor.value
|
845
|
+
});
|
400
846
|
});
|
401
|
-
|
402
|
-
props.showMask && mask.hideMask(maskRef.value);
|
403
|
-
ctx.emit('hidden');
|
404
|
-
localShow.value = false;
|
847
|
+
return;
|
405
848
|
}
|
849
|
+
visible.value = false;
|
850
|
+
closeModal();
|
406
851
|
}, {
|
407
852
|
immediate: true
|
408
853
|
});
|
409
|
-
var
|
410
|
-
|
411
|
-
|
854
|
+
var handleBeforeClose = /*#__PURE__*/function () {
|
855
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(callbackFn) {
|
856
|
+
var shouldClose, execRet;
|
857
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
858
|
+
while (1) switch (_context.prev = _context.next) {
|
859
|
+
case 0:
|
860
|
+
if (!(typeof props.beforeClose === 'function')) {
|
861
|
+
_context.next = 12;
|
862
|
+
break;
|
863
|
+
}
|
864
|
+
shouldClose = true;
|
865
|
+
execRet = props.beforeClose();
|
866
|
+
if (!(0,shared_namespaceObject.isPromise)(execRet)) {
|
867
|
+
_context.next = 9;
|
868
|
+
break;
|
869
|
+
}
|
870
|
+
_context.next = 6;
|
871
|
+
return execRet;
|
872
|
+
case 6:
|
873
|
+
shouldClose = _context.sent;
|
874
|
+
_context.next = 10;
|
875
|
+
break;
|
876
|
+
case 9:
|
877
|
+
shouldClose = execRet;
|
878
|
+
case 10:
|
879
|
+
if (!(shouldClose !== true)) {
|
880
|
+
_context.next = 12;
|
881
|
+
break;
|
882
|
+
}
|
883
|
+
return _context.abrupt("return");
|
884
|
+
case 12:
|
885
|
+
callbackFn === null || callbackFn === void 0 || callbackFn();
|
886
|
+
case 13:
|
887
|
+
case "end":
|
888
|
+
return _context.stop();
|
889
|
+
}
|
890
|
+
}, _callee);
|
891
|
+
}));
|
892
|
+
return function handleBeforeClose(_x) {
|
893
|
+
return _ref.apply(this, arguments);
|
894
|
+
};
|
895
|
+
}();
|
412
896
|
var handleClickOutSide = function handleClickOutSide(e) {
|
413
897
|
e.stopImmediatePropagation();
|
414
898
|
e.stopPropagation();
|
415
899
|
e.preventDefault();
|
416
900
|
if (props.quickClose) {
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
var handleEscClose = function handleEscClose(e) {
|
423
|
-
if (props.isShow && props.escClose) {
|
424
|
-
if (e.keyCode === 27) {
|
425
|
-
handleClose();
|
426
|
-
}
|
901
|
+
handleBeforeClose(function () {
|
902
|
+
ctx.emit('close');
|
903
|
+
ctx.emit('quick-close');
|
904
|
+
ctx.emit('quickClose');
|
905
|
+
});
|
427
906
|
}
|
428
907
|
};
|
429
|
-
(0,external_vue_namespaceObject.onMounted)(function () {
|
430
|
-
addEventListener('keydown', handleEscClose);
|
431
|
-
});
|
432
908
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
433
|
-
|
434
|
-
mask.destroyMask(maskRef.value);
|
435
|
-
ctx.emit('hidden');
|
909
|
+
close();
|
436
910
|
});
|
437
|
-
return
|
438
|
-
|
439
|
-
|
911
|
+
return {
|
912
|
+
zIndex: zIndex,
|
913
|
+
visible: visible,
|
914
|
+
contentStyles: contentStyles,
|
915
|
+
isContentScroll: isContentScroll,
|
916
|
+
modalWrapperStyles: modalWrapperStyles,
|
917
|
+
handleClickOutSide: handleClickOutSide,
|
918
|
+
refRoot: refRoot,
|
919
|
+
refMask: refMask,
|
920
|
+
resolveClassName: resolveClassName,
|
921
|
+
close: close,
|
922
|
+
resizeTargetRef: resizeTargetRef
|
923
|
+
};
|
924
|
+
},
|
925
|
+
render: function render() {
|
926
|
+
var _this$extCls,
|
927
|
+
_this$$slots$header,
|
928
|
+
_this$$slots,
|
929
|
+
_this$$slots$default,
|
930
|
+
_this$$slots2,
|
931
|
+
_this$$slots$footer,
|
932
|
+
_this$$slots3,
|
933
|
+
_this$$slots$close,
|
934
|
+
_this$$slots4,
|
935
|
+
_this = this;
|
936
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
937
|
+
"ref": "refRoot",
|
938
|
+
"class": [this.resolveClassName('modal-ctx'), this.visible ? 'is-show' : '', (_this$extCls = this.extCls) !== null && _this$extCls !== void 0 ? _this$extCls : ''],
|
939
|
+
"style": {
|
940
|
+
zIndex: this.zIndex
|
440
941
|
}
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
"class": _defineProperty({}, resolveClassName('modal-mask'), true),
|
455
|
-
"onClick": handleClickOutSide
|
456
|
-
}, null), [[external_vue_namespaceObject.vShow, localShow.value]])];
|
457
|
-
}
|
458
|
-
});
|
459
|
-
};
|
460
|
-
var renderContent = function renderContent() {
|
461
|
-
var _slots$header, _slots$default, _slots$footer, _slots$close;
|
462
|
-
// v-if 模式渲染,如果 isShow 为 false 销毁 DOM
|
463
|
-
if (props.renderDirective === 'if' && !localShow.value) {
|
464
|
-
return null;
|
465
|
-
}
|
466
|
-
return (0,external_vue_namespaceObject.createVNode)("div", {
|
467
|
-
"style": {
|
468
|
-
backgroundColor: props.backgroundColor
|
469
|
-
},
|
470
|
-
"class": resolveClassName('modal-body')
|
942
|
+
}, [this.showMask && (0,external_vue_namespaceObject.createVNode)("div", {
|
943
|
+
"ref": "refMask",
|
944
|
+
"class": _defineProperty({}, this.resolveClassName('modal-ctx-mask'), true),
|
945
|
+
"onClick": this.handleClickOutSide
|
946
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("div", {
|
947
|
+
"class": _defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('modal-wrapper'), true), 'scroll-able', this.scrollable), 'multi-instance', this.multiInstance),
|
948
|
+
"style": this.modalWrapperStyles
|
949
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
950
|
+
"name": this.animateType
|
951
|
+
}, {
|
952
|
+
"default": function _default() {
|
953
|
+
return [_this.visible && (0,external_vue_namespaceObject.createVNode)("div", {
|
954
|
+
"class": _defineProperty(_defineProperty({}, _this.resolveClassName('modal-body'), true), _this.direction, _this.animateType === 'slide')
|
471
955
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
472
|
-
"class": resolveClassName('modal-header')
|
473
|
-
}, [(
|
474
|
-
"
|
475
|
-
"
|
956
|
+
"class": _this.resolveClassName('modal-header')
|
957
|
+
}, [(_this$$slots$header = (_this$$slots = _this.$slots).header) === null || _this$$slots$header === void 0 ? void 0 : _this$$slots$header.call(_this$$slots)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
958
|
+
"class": _this.resolveClassName('modal-content'),
|
959
|
+
"style": _this.contentStyles
|
476
960
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
477
961
|
"style": "position: relative; display: inline-block; width: 100%;"
|
478
|
-
}, [(
|
479
|
-
"ref": resizeTargetRef,
|
962
|
+
}, [(_this$$slots$default = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots2), (0,external_vue_namespaceObject.createVNode)("div", {
|
963
|
+
"ref": "resizeTargetRef",
|
480
964
|
"style": "position: absolute; top: 0; bottom: 0;"
|
481
965
|
}, null)])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
482
|
-
"class": _defineProperty(_defineProperty({}, resolveClassName('modal-footer'), true), 'is-fixed', isContentScroll
|
483
|
-
}, [(
|
484
|
-
"class": resolveClassName('modal-close')
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
489
|
-
"disabled": !props.transfer,
|
490
|
-
"to": "body"
|
491
|
-
}, {
|
492
|
-
"default": function _default() {
|
493
|
-
return [(0,external_vue_namespaceObject.createVNode)("div", (0,external_vue_namespaceObject.mergeProps)({
|
494
|
-
"ref": rootRef
|
495
|
-
}, attrs, {
|
496
|
-
"class": [resolveClassName('modal'), props.extCls || '']
|
497
|
-
}), [renderMask(), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
498
|
-
"name": "modal-".concat(props.animateType)
|
499
|
-
}, {
|
500
|
-
"default": function _default() {
|
501
|
-
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
502
|
-
"style": modalWrapperStyles.value,
|
503
|
-
"class": resolveClassName('modal-wrapper')
|
504
|
-
}, [renderContent()]), [[external_vue_namespaceObject.vShow, localShow.value]])];
|
505
|
-
}
|
506
|
-
})])];
|
507
|
-
}
|
508
|
-
});
|
509
|
-
};
|
966
|
+
"class": _defineProperty(_defineProperty({}, _this.resolveClassName('modal-footer'), true), 'is-fixed', _this.isContentScroll)
|
967
|
+
}, [(_this$$slots$footer = (_this$$slots3 = _this.$slots).footer) === null || _this$$slots$footer === void 0 ? void 0 : _this$$slots$footer.call(_this$$slots3)]), _this.closeIcon && (0,external_vue_namespaceObject.createVNode)("div", {
|
968
|
+
"class": _this.resolveClassName('modal-close')
|
969
|
+
}, [(_this$$slots$close = (_this$$slots4 = _this.$slots).close) === null || _this$$slots$close === void 0 ? void 0 : _this$$slots$close.call(_this$$slots4)])])];
|
970
|
+
}
|
971
|
+
})])]);
|
510
972
|
}
|
511
973
|
}));
|
512
974
|
;// CONCATENATED MODULE: ../../packages/modal/src/index.ts
|
@@ -543,6 +1005,8 @@ var BkModal = (0,shared_namespaceObject.withInstallProps)(modal, {
|
|
543
1005
|
}, true);
|
544
1006
|
/* harmony default export */ const src = (BkModal);
|
545
1007
|
|
1008
|
+
})();
|
1009
|
+
|
546
1010
|
var __webpack_exports__BkModal = __webpack_exports__.BkModal;
|
547
1011
|
var __webpack_exports__default = __webpack_exports__["default"];
|
548
1012
|
var __webpack_exports__propsMixin = __webpack_exports__.propsMixin;
|