bkui-vue 1.0.3-beta.7 → 1.0.3-beta.70
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 +148 -150
- package/dist/index.esm.js +17965 -16537
- package/dist/index.umd.js +148 -150
- 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/alert/alert.variable.css +3 -0
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/badge/badge.variable.css +3 -0
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.variable.css +3 -0
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader.variable.css +3 -0
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +4 -4
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/collapse/collapse.variable.css +3 -0
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.variable.css +3 -0
- package/lib/components.d.ts +1 -0
- package/lib/components.js +2 -5
- 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 +4 -0
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/date-picker/base/month-table.d.ts +2 -2
- 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 +70 -32
- package/lib/date-picker/interface.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +4 -0
- package/lib/dialog/dialog.css +93 -122
- package/lib/dialog/dialog.d.ts +39 -14
- package/lib/dialog/dialog.less +92 -98
- package/lib/dialog/dialog.variable.css +96 -122
- package/lib/dialog/index.d.ts +81 -30
- package/lib/dialog/index.js +146 -124
- package/lib/dialog/props.d.ts +18 -6
- package/lib/directives/index.js +0 -1
- package/lib/dist.index.js +0 -1
- package/lib/divider/divider.variable.css +3 -0
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/exception/exception.variable.css +3 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +3 -1
- package/lib/hooks.js +1 -8
- 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 +1 -0
- 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.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +5 -2
- package/lib/index.js +0 -1
- package/lib/info-box/index.js +41 -455
- package/lib/info-box/info-box.css +6 -32
- package/lib/info-box/info-box.d.ts +1 -1
- package/lib/info-box/info-box.less +16 -47
- package/lib/info-box/info-box.variable.css +9 -32
- package/lib/input/index.js +5 -0
- package/lib/input/input.variable.css +3 -0
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/message/message.variable.css +3 -0
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +100 -52
- package/lib/modal/index.js +173 -74
- package/lib/modal/modal.css +41 -65
- package/lib/modal/modal.d.ts +40 -17
- package/lib/modal/modal.less +50 -57
- package/lib/modal/modal.variable.css +44 -65
- package/lib/modal/props.mixin.d.ts +12 -0
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/pagination/index.js +2 -1
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +45 -26
- package/lib/pop-confirm/index.js +8 -5
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.js +45 -26
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/preset.d.ts +2 -0
- package/lib/preset.js +14 -20
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.js +5 -5
- package/lib/radio/radio.variable.css +3 -0
- package/lib/rate/rate.variable.css +3 -0
- package/lib/rate/star.variable.css +3 -0
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +701 -366
- package/lib/search-select/input.d.ts +14 -5
- 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 +116 -6
- package/lib/search-select/utils.d.ts +19 -6
- package/lib/select/index.d.ts +143 -6
- package/lib/select/index.js +1355 -78
- 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 +55 -12
- package/lib/select/select.d.ts +59 -2
- package/lib/select/select.less +69 -19
- package/lib/select/select.variable.css +58 -12
- package/lib/select/selectTagInput.d.ts +7 -0
- package/lib/select/type.d.ts +2 -3
- package/lib/shared/index.js +67 -3
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +5 -0
- package/lib/sideslider/index.d.ts +55 -9
- package/lib/sideslider/index.js +26 -25
- package/lib/sideslider/sideslider.css +51 -46
- package/lib/sideslider/sideslider.d.ts +25 -3
- package/lib/sideslider/sideslider.less +108 -104
- package/lib/sideslider/sideslider.variable.css +54 -46
- package/lib/slider/slider.variable.css +3 -0
- package/lib/steps/steps.variable.css +3 -0
- 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/swiper.variable.css +3 -0
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-column.d.ts +111 -5
- package/lib/table/index.d.ts +51 -5
- package/lib/table/index.js +504 -261
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/props.d.ts +6 -4
- package/lib/table/table.css +6 -12
- package/lib/table/table.less +12 -9
- package/lib/table/table.variable.css +9 -12
- package/lib/table/use-attributes.d.ts +4 -42
- package/lib/table/utils.d.ts +2 -2
- package/lib/table-column/index.d.ts +235 -119
- package/lib/table-column/index.js +217 -30
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +1 -1
- 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 +54 -65
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/transfer.variable.css +3 -0
- package/lib/tree/tree.variable.css +3 -0
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +21 -30
- package/lib/upload/props.d.ts +3 -0
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.variable.css +3 -0
- package/lib/virtual-render/index.d.ts +9 -9
- package/lib/virtual-render/virtual-render.d.ts +3 -3
- package/lib/virtual-render/virtual-render.variable.css +3 -0
- package/package.json +3 -2
package/lib/modal/index.js
CHANGED
@@ -3,6 +3,7 @@ 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 __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
6
7
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
7
8
|
/******/ var __webpack_modules__ = ({
|
8
9
|
|
@@ -425,7 +426,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
425
426
|
;// CONCATENATED MODULE: external "../shared"
|
426
427
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
427
428
|
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, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["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 });
|
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 });
|
429
430
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
430
431
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
431
432
|
try {
|
@@ -505,7 +506,7 @@ function _defineProperty(obj, key, value) {
|
|
505
506
|
;// CONCATENATED MODULE: external "vue"
|
506
507
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
507
508
|
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
|
+
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 });
|
509
510
|
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
510
511
|
var regenerator = __webpack_require__(2841);
|
511
512
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
@@ -513,6 +514,92 @@ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
513
514
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
514
515
|
var config_provider_y = x => () => x
|
515
516
|
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
517
|
+
;// CONCATENATED MODULE: external "lodash/throttle"
|
518
|
+
var throttle_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
519
|
+
var throttle_y = x => () => x
|
520
|
+
const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
|
521
|
+
;// CONCATENATED MODULE: ../../packages/modal/src/hooks.ts
|
522
|
+
/*
|
523
|
+
* Tencent is pleased to support the open source community by making
|
524
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
525
|
+
*
|
526
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
527
|
+
*
|
528
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
529
|
+
*
|
530
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
531
|
+
*
|
532
|
+
* ---------------------------------------------------
|
533
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
534
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
535
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
536
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
537
|
+
*
|
538
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
539
|
+
* the Software.
|
540
|
+
*
|
541
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
542
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
543
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
544
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
545
|
+
* IN THE SOFTWARE.
|
546
|
+
*/
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
var useContentResize = function useContentResize(root, resizeTarget, props) {
|
551
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
552
|
+
resolveClassName = _usePrefix.resolveClassName;
|
553
|
+
var isContentScroll = (0,external_vue_namespaceObject.ref)(false);
|
554
|
+
var contentStyles = (0,external_vue_namespaceObject.ref)({});
|
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
|
+
};
|
582
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
583
|
+
return props.isShow;
|
584
|
+
}, function () {
|
585
|
+
if (props.isShow) {
|
586
|
+
setTimeout(function () {
|
587
|
+
handleContentBoxChange();
|
588
|
+
}, 100);
|
589
|
+
} else {
|
590
|
+
if (observer) {
|
591
|
+
observer.disconnect();
|
592
|
+
observer = null;
|
593
|
+
}
|
594
|
+
}
|
595
|
+
}, {
|
596
|
+
immediate: true
|
597
|
+
});
|
598
|
+
return {
|
599
|
+
contentStyles: contentStyles,
|
600
|
+
isContentScroll: isContentScroll
|
601
|
+
};
|
602
|
+
};
|
516
603
|
;// CONCATENATED MODULE: external "vue-types"
|
517
604
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
518
605
|
var external_vue_types_y = x => () => x
|
@@ -555,8 +642,8 @@ var ModalSizeEnum;
|
|
555
642
|
var propsMixin = {
|
556
643
|
// 是否显示弹框
|
557
644
|
isShow: shared_namespaceObject.PropTypes.bool.def(false),
|
558
|
-
width: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('
|
559
|
-
height: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('
|
645
|
+
width: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('480px'),
|
646
|
+
height: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('1000'),
|
560
647
|
// 配置自定义样式类名
|
561
648
|
extCls: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.array,
|
562
649
|
// 弹框出现时,是否允许页面滚动
|
@@ -576,13 +663,13 @@ var propsMixin = {
|
|
576
663
|
// 是否允许点击遮罩关闭弹窗
|
577
664
|
quickClose: shared_namespaceObject.PropTypes.bool.def(true),
|
578
665
|
// 是否显示在body内(即与id#app同级
|
579
|
-
transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(
|
666
|
+
transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(true),
|
580
667
|
// 弹出层z-index,实际显示的值会自动+1。为了抱证在遮罩上正常显示
|
581
668
|
zIndex: shared_namespaceObject.PropTypes.oneOfType([String, Number]),
|
582
669
|
// 内容区最大高度
|
583
670
|
maxHeight: shared_namespaceObject.PropTypes.string,
|
584
671
|
// 弹出方向
|
585
|
-
direction: shared_namespaceObject.PropTypes.string,
|
672
|
+
direction: shared_namespaceObject.PropTypes.string.def(''),
|
586
673
|
// title
|
587
674
|
title: shared_namespaceObject.PropTypes.string.def(''),
|
588
675
|
// 动画类型
|
@@ -599,8 +686,10 @@ var propsMixin = {
|
|
599
686
|
multiInstance: shared_namespaceObject.PropTypes.bool.def(true),
|
600
687
|
// info-box
|
601
688
|
infoType: shared_namespaceObject.PropTypes.theme(),
|
689
|
+
bodyClass: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.array,
|
602
690
|
left: shared_namespaceObject.PropTypes.string,
|
603
|
-
top: shared_namespaceObject.PropTypes.string
|
691
|
+
top: shared_namespaceObject.PropTypes.string,
|
692
|
+
hiddenDelay: shared_namespaceObject.PropTypes.number.def(200)
|
604
693
|
};
|
605
694
|
;// CONCATENATED MODULE: ../../packages/modal/src/modal.tsx
|
606
695
|
|
@@ -638,50 +727,51 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
638
727
|
|
639
728
|
|
640
729
|
|
730
|
+
|
641
731
|
/* harmony default export */ const modal = ((0,external_vue_namespaceObject.defineComponent)({
|
642
732
|
name: 'Modal',
|
643
733
|
props: _objectSpread({}, propsMixin),
|
644
734
|
emits: ['quick-close', 'quickClose', 'hidden', 'shown', 'close'],
|
645
735
|
setup: function setup(props, ctx) {
|
646
|
-
var visible = (0,external_vue_namespaceObject.ref)(false);
|
647
|
-
var zIndex = (0,external_vue_namespaceObject.ref)(props.zIndex);
|
648
736
|
var refRoot = (0,external_vue_namespaceObject.ref)();
|
649
737
|
var refMask = (0,external_vue_namespaceObject.ref)();
|
738
|
+
var resizeTargetRef = (0,external_vue_namespaceObject.ref)();
|
739
|
+
var teleportTo = (0,external_vue_namespaceObject.ref)('body');
|
740
|
+
var visible = (0,external_vue_namespaceObject.ref)(false);
|
741
|
+
var zIndex = (0,external_vue_namespaceObject.ref)(props.zIndex);
|
742
|
+
var enableTeleport = (0,external_vue_namespaceObject.ref)(!!props.transfer);
|
650
743
|
var backgroundColor = (0,external_vue_namespaceObject.ref)('rgba(0,0,0,0.6)');
|
651
744
|
var closeTimer;
|
652
|
-
var
|
653
|
-
|
654
|
-
|
655
|
-
var
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
zIndex: zIndex.value || 'inherit',
|
745
|
+
var _useContentResize = useContentResize(refRoot, resizeTargetRef, props),
|
746
|
+
contentStyles = _useContentResize.contentStyles,
|
747
|
+
isContentScroll = _useContentResize.isContentScroll;
|
748
|
+
var modalWrapperStyles = (0,external_vue_namespaceObject.computed)(function () {
|
749
|
+
var baseStyles = {
|
750
|
+
display: visible.value ? 'inherit' : 'none'
|
751
|
+
};
|
752
|
+
if (props.fullscreen) {
|
753
|
+
return baseStyles;
|
754
|
+
}
|
755
|
+
return Object.assign(baseStyles, _defineProperty({
|
756
|
+
width: /^\d+\.?\d*$/.test("".concat(props.width)) ? "".concat(props.width, "px") : props.width,
|
665
757
|
left: props.left,
|
666
758
|
top: props.top
|
667
|
-
}, props.direction, 0);
|
759
|
+
}, props.direction, 0));
|
668
760
|
});
|
669
|
-
var enableTeleport = (0,external_vue_namespaceObject.ref)(!!props.transfer);
|
670
|
-
var teleportTo = (0,external_vue_namespaceObject.ref)('body');
|
671
761
|
var resolveTransfer = function resolveTransfer() {
|
672
762
|
if (props.transfer) {
|
673
763
|
if (typeof props.transfer === 'boolean') {
|
674
|
-
teleportTo.value =
|
764
|
+
teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)();
|
675
765
|
return;
|
676
766
|
}
|
677
|
-
teleportTo.value = props.transfer;
|
767
|
+
teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)(props.transfer);
|
678
768
|
}
|
679
769
|
};
|
680
|
-
resolveTransfer();
|
681
770
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
682
771
|
resolveClassName = _usePrefix.resolveClassName;
|
683
772
|
var resolveClosetModal = function resolveClosetModal() {
|
684
773
|
var _refRoot$value;
|
774
|
+
resolveTransfer();
|
685
775
|
if (enableTeleport.value) {
|
686
776
|
if (typeof teleportTo.value === 'string') {
|
687
777
|
var target = document.querySelector(teleportTo.value);
|
@@ -702,12 +792,22 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
702
792
|
_target === null || _target === void 0 || _target.appendChild(refRoot.value);
|
703
793
|
}
|
704
794
|
};
|
705
|
-
var
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
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
|
+
};
|
711
811
|
var closeModal = function closeModal() {
|
712
812
|
shared_namespaceObject.mask.hideMask({
|
713
813
|
el: refRoot.value,
|
@@ -719,10 +819,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
719
819
|
// 直接设为false会失去离开的动画效果,这里延迟设置
|
720
820
|
ctx.emit('hidden'); // 为false直接触发hidden事件,在上层有200ms的延时
|
721
821
|
if (enableTeleport.value) {
|
722
|
-
var _refRoot$
|
723
|
-
(_refRoot$
|
822
|
+
var _refRoot$value3;
|
823
|
+
(_refRoot$value3 = refRoot.value) === null || _refRoot$value3 === void 0 || _refRoot$value3.remove();
|
724
824
|
}
|
725
|
-
},
|
825
|
+
}, props.hiddenDelay);
|
726
826
|
};
|
727
827
|
(0,external_vue_namespaceObject.watch)(function () {
|
728
828
|
return props.isShow;
|
@@ -752,7 +852,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
752
852
|
immediate: true
|
753
853
|
});
|
754
854
|
var handleBeforeClose = /*#__PURE__*/function () {
|
755
|
-
var
|
855
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(callbackFn) {
|
756
856
|
var shouldClose, execRet;
|
757
857
|
return regenerator_default().wrap(function _callee$(_context) {
|
758
858
|
while (1) switch (_context.prev = _context.next) {
|
@@ -790,7 +890,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
790
890
|
}, _callee);
|
791
891
|
}));
|
792
892
|
return function handleBeforeClose(_x) {
|
793
|
-
return
|
893
|
+
return _ref.apply(this, arguments);
|
794
894
|
};
|
795
895
|
}();
|
796
896
|
var handleClickOutSide = function handleClickOutSide(e) {
|
@@ -805,69 +905,68 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
805
905
|
});
|
806
906
|
}
|
807
907
|
};
|
908
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
909
|
+
close();
|
910
|
+
});
|
808
911
|
return {
|
912
|
+
zIndex: zIndex,
|
809
913
|
visible: visible,
|
810
|
-
|
811
|
-
|
914
|
+
contentStyles: contentStyles,
|
915
|
+
isContentScroll: isContentScroll,
|
916
|
+
modalWrapperStyles: modalWrapperStyles,
|
812
917
|
handleClickOutSide: handleClickOutSide,
|
813
918
|
refRoot: refRoot,
|
814
919
|
refMask: refMask,
|
815
|
-
|
920
|
+
resolveClassName: resolveClassName,
|
921
|
+
close: close,
|
922
|
+
resizeTargetRef: resizeTargetRef
|
816
923
|
};
|
817
924
|
},
|
818
925
|
render: function render() {
|
819
926
|
var _this$extCls,
|
820
927
|
_this$$slots$header,
|
821
|
-
_this$$slots$header2,
|
822
928
|
_this$$slots,
|
823
929
|
_this$$slots$default,
|
824
|
-
_this$$slots$default2,
|
825
930
|
_this$$slots2,
|
826
931
|
_this$$slots$footer,
|
827
|
-
_this$$slots$footer2,
|
828
932
|
_this$$slots3,
|
829
933
|
_this$$slots$close,
|
830
|
-
_this$$slots$close2,
|
831
934
|
_this$$slots4,
|
832
935
|
_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
936
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
840
937
|
"ref": "refRoot",
|
841
|
-
"class": [resolveClassName('modal-ctx'), this.visible ? '
|
938
|
+
"class": [this.resolveClassName('modal-ctx'), this.visible ? 'is-show' : '', (_this$extCls = this.extCls) !== null && _this$extCls !== void 0 ? _this$extCls : ''],
|
842
939
|
"style": {
|
843
|
-
zIndex: this.
|
940
|
+
zIndex: this.zIndex
|
844
941
|
}
|
845
|
-
}, [this.showMask
|
942
|
+
}, [this.showMask && (0,external_vue_namespaceObject.createVNode)("div", {
|
846
943
|
"ref": "refMask",
|
847
|
-
"class":
|
848
|
-
"onClick": this.handleClickOutSide
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
}, null) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
853
|
-
"class": [resolveClassName('modal-wrapper'), (_this$extCls = this.extCls) !== null && _this$extCls !== void 0 ? _this$extCls : '', this.size, this.fullscreen ? 'fullscreen' : ''],
|
854
|
-
"style": [this.compStyle, this.fullscreen ? this.fullscreenStyle : '']
|
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
|
855
949
|
}, [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
856
950
|
"name": this.animateType
|
857
951
|
}, {
|
858
952
|
"default": function _default() {
|
859
|
-
return [_this.visible
|
860
|
-
"class":
|
953
|
+
return [_this.visible && (0,external_vue_namespaceObject.createVNode)("div", {
|
954
|
+
"class": _defineProperty(_defineProperty({}, _this.resolveClassName('modal-body'), true), _this.direction, _this.animateType === 'slide')
|
955
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
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
|
861
960
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
862
|
-
"
|
863
|
-
}, [(_this$$slots$
|
864
|
-
"
|
865
|
-
"style":
|
866
|
-
},
|
867
|
-
"class": resolveClassName('modal-footer')
|
868
|
-
}, [(_this$$slots$footer = (_this$$
|
869
|
-
"class": resolveClassName('modal-close')
|
870
|
-
}, [(_this$$slots$close = (_this$$
|
961
|
+
"style": "position: relative; display: inline-block; width: 100%;"
|
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",
|
964
|
+
"style": "position: absolute; top: 0; bottom: 0;"
|
965
|
+
}, null)])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
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)])])];
|
871
970
|
}
|
872
971
|
})])]);
|
873
972
|
}
|
package/lib/modal/modal.css
CHANGED
@@ -1,101 +1,77 @@
|
|
1
|
-
.bk-
|
1
|
+
.bk-info-wrapper .bk-modal-wrapper {
|
2
2
|
width: 440px;
|
3
3
|
}
|
4
|
-
.bk-
|
5
|
-
|
6
|
-
}
|
7
|
-
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.small {
|
8
|
-
width: 400px;
|
9
|
-
}
|
10
|
-
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
|
11
|
-
border-radius: 2px;
|
12
|
-
}
|
13
|
-
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header {
|
14
|
-
padding: 24px 24px 0;
|
4
|
+
.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
|
5
|
+
margin-top: 16px;
|
15
6
|
}
|
16
|
-
.bk-
|
17
|
-
|
18
|
-
margin: 15px 0 10px;
|
19
|
-
}
|
20
|
-
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content {
|
21
|
-
height: 100%;
|
22
|
-
max-height: 100%;
|
23
|
-
min-height: 100%;
|
24
|
-
padding: 0 50px 10px;
|
25
|
-
word-break: break-all;
|
7
|
+
.bk-info-wrapper .bk-dialog-footer button {
|
8
|
+
min-width: 88px;
|
26
9
|
}
|
27
|
-
.bk-
|
28
|
-
margin-bottom: 10px;
|
10
|
+
.bk-info-sub-title {
|
29
11
|
text-align: center;
|
30
12
|
word-break: break-all;
|
31
13
|
}
|
32
|
-
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer {
|
33
|
-
padding: 0 65px 33px;
|
34
|
-
background-color: #fff;
|
35
|
-
border-top: none;
|
36
|
-
}
|
37
|
-
.bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-footer button {
|
38
|
-
min-width: 88px;
|
39
|
-
}
|
40
14
|
.bk-modal-ctx {
|
41
|
-
|
15
|
+
position: fixed;
|
42
16
|
top: 0px;
|
43
17
|
left: 0px;
|
18
|
+
display: none;
|
44
19
|
width: 100%;
|
45
20
|
height: 100%;
|
21
|
+
pointer-events: auto;
|
46
22
|
}
|
47
|
-
.bk-modal-ctx
|
48
|
-
|
49
|
-
}
|
50
|
-
.bk-modal-ctx.--hide {
|
51
|
-
display: none;
|
23
|
+
.bk-modal-ctx.is-show {
|
24
|
+
display: block;
|
52
25
|
}
|
53
|
-
.bk-modal-ctx
|
54
|
-
|
55
|
-
left: 0;
|
26
|
+
.bk-modal-ctx-mask {
|
27
|
+
position: fixed;
|
56
28
|
top: 0;
|
29
|
+
left: 0;
|
57
30
|
width: 100%;
|
58
31
|
height: 100%;
|
59
32
|
background-color: rgba(0, 0, 0, 0.6);
|
60
33
|
}
|
61
|
-
.bk-modal-ctx .bk-modal-ctx-mask.--show {
|
62
|
-
position: fixed;
|
63
|
-
display: inherit;
|
64
|
-
}
|
65
34
|
.bk-modal-wrapper {
|
66
35
|
position: absolute;
|
67
36
|
top: 50%;
|
68
37
|
left: 50%;
|
69
|
-
width: 480px;
|
70
38
|
border-radius: 2px;
|
71
39
|
transform: translate(-50%, -50%);
|
72
40
|
}
|
73
|
-
.bk-modal-
|
41
|
+
.bk-modal-outside {
|
74
42
|
position: fixed;
|
75
43
|
top: 0;
|
76
44
|
right: 0;
|
77
45
|
bottom: 0;
|
78
46
|
left: 0;
|
79
47
|
}
|
80
|
-
.bk-modal-
|
81
|
-
width: 480px;
|
82
|
-
height: 240px;
|
83
|
-
}
|
84
|
-
.bk-modal-wrapper.small {
|
85
|
-
width: 400px;
|
86
|
-
height: 200px;
|
87
|
-
}
|
88
|
-
.bk-modal-wrapper.medium {
|
89
|
-
width: 640px;
|
90
|
-
height: 400px;
|
91
|
-
}
|
92
|
-
.bk-modal-wrapper.large {
|
93
|
-
width: 960px;
|
94
|
-
height: 720px;
|
95
|
-
}
|
96
|
-
.bk-modal-wrapper .bk-modal-body {
|
48
|
+
.bk-modal-body {
|
97
49
|
height: 100%;
|
98
|
-
|
50
|
+
overflow: hidden;
|
99
51
|
background: #fff;
|
52
|
+
border-radius: 2px;
|
100
53
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
101
54
|
}
|
55
|
+
.bk-modal-content {
|
56
|
+
max-height: 100vh;
|
57
|
+
overflow: auto;
|
58
|
+
scrollbar-gutter: stable;
|
59
|
+
}
|
60
|
+
.bk-modal-close {
|
61
|
+
position: absolute;
|
62
|
+
top: 6px;
|
63
|
+
right: 6px;
|
64
|
+
display: flex;
|
65
|
+
width: 32px;
|
66
|
+
height: 32px;
|
67
|
+
font-size: 18px;
|
68
|
+
color: #979ba5;
|
69
|
+
cursor: pointer;
|
70
|
+
align-items: center;
|
71
|
+
justify-content: center;
|
72
|
+
border-radius: 50%;
|
73
|
+
transition: 0.15s;
|
74
|
+
}
|
75
|
+
.bk-modal-close:hover {
|
76
|
+
background: #f0f1f5;
|
77
|
+
}
|
package/lib/modal/modal.d.ts
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
2
|
+
import { propsMixin } from './props.mixin';
|
3
|
+
export type ModalProps = Readonly<ExtractPropTypes<typeof propsMixin>>;
|
1
4
|
declare const _default: import("vue").DefineComponent<{
|
2
5
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
3
6
|
default: boolean;
|
@@ -60,6 +63,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
63
|
};
|
61
64
|
direction: import("vue-types").VueTypeValidableDef<string> & {
|
62
65
|
default: string;
|
66
|
+
} & {
|
67
|
+
default: string;
|
63
68
|
};
|
64
69
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
65
70
|
default: string;
|
@@ -82,33 +87,37 @@ declare const _default: import("vue").DefineComponent<{
|
|
82
87
|
default: boolean;
|
83
88
|
};
|
84
89
|
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
90
|
+
bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
|
91
|
+
default: string;
|
92
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
93
|
+
default: () => unknown[];
|
94
|
+
});
|
85
95
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
86
96
|
default: string;
|
87
97
|
};
|
88
98
|
top: import("vue-types").VueTypeValidableDef<string> & {
|
89
99
|
default: string;
|
90
100
|
};
|
101
|
+
hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
|
102
|
+
default: number;
|
103
|
+
} & {
|
104
|
+
default: number;
|
105
|
+
};
|
91
106
|
}, {
|
107
|
+
zIndex: import("vue").Ref<string | number>;
|
92
108
|
visible: import("vue").Ref<boolean>;
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
height: string | number;
|
97
|
-
minHeigth: string;
|
109
|
+
contentStyles: import("vue").Ref<{}>;
|
110
|
+
isContentScroll: import("vue").Ref<boolean>;
|
111
|
+
modalWrapperStyles: import("vue").ComputedRef<{
|
98
112
|
display: string;
|
99
|
-
zIndex: string | number;
|
100
|
-
left: string;
|
101
|
-
top: string;
|
102
|
-
}>;
|
103
|
-
fullscreenStyle: import("vue").ComputedRef<{
|
104
|
-
width: string;
|
105
|
-
height: string;
|
106
113
|
}>;
|
107
114
|
handleClickOutSide: (e: MouseEvent) => void;
|
108
115
|
refRoot: import("vue").Ref<HTMLElement>;
|
109
116
|
refMask: import("vue").Ref<HTMLElement>;
|
110
|
-
|
111
|
-
|
117
|
+
resolveClassName: (cls: string) => string;
|
118
|
+
close: () => void;
|
119
|
+
resizeTargetRef: import("vue").Ref<HTMLElement>;
|
120
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quickClose" | "quick-close")[], "close" | "hidden" | "shown" | "quickClose" | "quick-close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
112
121
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
113
122
|
default: boolean;
|
114
123
|
} & {
|
@@ -170,6 +179,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
170
179
|
};
|
171
180
|
direction: import("vue-types").VueTypeValidableDef<string> & {
|
172
181
|
default: string;
|
182
|
+
} & {
|
183
|
+
default: string;
|
173
184
|
};
|
174
185
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
175
186
|
default: string;
|
@@ -192,18 +203,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
192
203
|
default: boolean;
|
193
204
|
};
|
194
205
|
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
206
|
+
bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
|
207
|
+
default: string;
|
208
|
+
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
209
|
+
default: () => unknown[];
|
210
|
+
});
|
195
211
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
196
212
|
default: string;
|
197
213
|
};
|
198
214
|
top: import("vue-types").VueTypeValidableDef<string> & {
|
199
215
|
default: string;
|
200
216
|
};
|
217
|
+
hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
|
218
|
+
default: number;
|
219
|
+
} & {
|
220
|
+
default: number;
|
221
|
+
};
|
201
222
|
}>> & {
|
202
223
|
onClose?: (...args: any[]) => any;
|
203
|
-
onShown?: (...args: any[]) => any;
|
204
224
|
onHidden?: (...args: any[]) => any;
|
205
|
-
|
225
|
+
onShown?: (...args: any[]) => any;
|
206
226
|
onQuickClose?: (...args: any[]) => any;
|
227
|
+
"onQuick-close"?: (...args: any[]) => any;
|
207
228
|
}, {
|
208
229
|
title: string;
|
209
230
|
width: string | number;
|
@@ -217,13 +238,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
217
238
|
transfer: string | boolean | HTMLElement;
|
218
239
|
direction: string;
|
219
240
|
renderDirective: "show" | "if";
|
220
|
-
quickClose: boolean;
|
221
241
|
scrollable: boolean;
|
222
242
|
showMask: boolean;
|
223
243
|
closeIcon: boolean;
|
224
244
|
escClose: boolean;
|
225
245
|
fullscreen: boolean;
|
246
|
+
quickClose: boolean;
|
226
247
|
animateType: string;
|
227
248
|
multiInstance: boolean;
|
249
|
+
bodyClass: string | unknown[];
|
250
|
+
hiddenDelay: number;
|
228
251
|
}, {}>;
|
229
252
|
export default _default;
|