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