bkui-vue 1.0.3-beta.15 → 1.0.3-beta.16

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.
@@ -1,6 +1,5 @@
1
1
  .bk-popover.bk-pop2-content {
2
2
  position: absolute;
3
- display: none;
4
3
  padding: 12px;
5
4
  font-size: 12px;
6
5
  color: #fff;
@@ -8,6 +7,9 @@
8
7
  border-radius: 4px;
9
8
  box-sizing: border-box;
10
9
  }
10
+ .bk-popover.bk-pop2-content.hidden {
11
+ display: none;
12
+ }
11
13
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
12
14
  position: absolute;
13
15
  z-index: -1;
@@ -129,7 +129,6 @@
129
129
  }
130
130
  .bk-popover.bk-pop2-content {
131
131
  position: absolute;
132
- display: none;
133
132
  padding: 12px;
134
133
  font-size: 12px;
135
134
  color: #fff;
@@ -137,6 +136,9 @@
137
136
  border-radius: 4px;
138
137
  box-sizing: border-box;
139
138
  }
139
+ .bk-popover.bk-pop2-content.hidden {
140
+ display: none;
141
+ }
140
142
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
141
143
  position: absolute;
142
144
  z-index: -1;
@@ -3,11 +3,8 @@ import "./info-box.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_bkui_vue_lib_button_a2ea7c9a__ from "../button";
7
- import "../button/button.less";
8
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
9
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__ from "../modal";
10
- import "../modal/modal.less";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_dialog_497cb4c3__ from "../dialog";
7
+ import "../dialog/dialog.less";
11
8
  /******/ var __webpack_modules__ = ({
12
9
 
13
10
  /***/ 7609:
@@ -427,7 +424,7 @@ __webpack_require__.d(__webpack_exports__, {
427
424
  ;// CONCATENATED MODULE: external "../shared"
428
425
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
429
426
  var y = x => () => x
430
- const shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ThemeEnum, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.alignType, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
427
+ const shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
431
428
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
432
429
  function _typeof(o) {
433
430
  "@babel/helpers - typeof";
@@ -510,451 +507,25 @@ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
510
507
  ;// CONCATENATED MODULE: external "vue"
511
508
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
512
509
  var external_vue_y = x => () => x
513
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
510
+ const external_vue_namespaceObject = external_vue_x({ ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef });
514
511
  ;// CONCATENATED MODULE: external "../config-provider"
515
512
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
516
513
  var config_provider_y = x => () => x
517
- const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
518
- ;// CONCATENATED MODULE: external "../button"
519
- var button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
520
- var button_y = x => () => x
521
- const button_namespaceObject = button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__["default"] });
522
- ;// CONCATENATED MODULE: external "../button/button.less"
523
- var button_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
524
- var button_less_y = x => () => x
525
- const button_less_namespaceObject = button_less_x({ });
526
- ;// CONCATENATED MODULE: external "../icon"
527
- var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
528
- var icon_y = x => () => x
529
- const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Warn });
530
- ;// CONCATENATED MODULE: external "../modal"
531
- var modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
532
- var modal_y = x => () => x
533
- const modal_namespaceObject = modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__["default"], ["propsMixin"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__.propsMixin });
534
- ;// CONCATENATED MODULE: external "../modal/modal.less"
535
- var modal_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
536
- var modal_less_y = x => () => x
537
- const modal_less_namespaceObject = modal_less_x({ });
538
- ;// CONCATENATED MODULE: ../../packages/dialog/src/props.ts
539
-
540
- 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; }
541
- 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; }
542
- /*
543
- * Tencent is pleased to support the open source community by making
544
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
545
- *
546
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
547
- *
548
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
549
- *
550
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
551
- *
552
- * ---------------------------------------------------
553
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
554
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
555
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
556
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
557
- *
558
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
559
- * the Software.
560
- *
561
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
562
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
563
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
564
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
565
- * IN THE SOFTWARE.
566
- */
567
-
568
-
569
- var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {}, {
570
- width: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
571
- height: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
572
- // 确认按钮文字
573
- // confirmText: PropTypes.string.def('确定'),
574
- confirmText: shared_namespaceObject.PropTypes.string,
575
- // 取消按钮文字
576
- // cancelText: PropTypes.string.def('取消'),
577
- cancelText: shared_namespaceObject.PropTypes.string,
578
- // 步骤按钮文字
579
- // prevText: PropTypes.string.def('上一步'),
580
- prevText: shared_namespaceObject.PropTypes.string,
581
- // nextText: PropTypes.string.def('下一步'),
582
- nextText: shared_namespaceObject.PropTypes.string,
583
- // 当前步骤
584
- current: shared_namespaceObject.PropTypes.number.def(1),
585
- // 总步数
586
- totalStep: shared_namespaceObject.PropTypes.number,
587
- // 弹框的标题
588
- title: shared_namespaceObject.PropTypes.string.def('title'),
589
- // 显示 header 的位置
590
- headerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.LEFT),
591
- // 显示 footer 的位置
592
- footerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.RIGHT),
593
- // 颜色 按钮类型
594
- theme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
595
- // 对话框类型
596
- dialogType: (0,shared_namespaceObject.dialogTypeUnion)(),
597
- // 按钮loading
598
- isLoading: shared_namespaceObject.PropTypes.bool.def(false)
599
- });
600
- /* harmony default export */ const src_props = (props);
601
- ;// CONCATENATED MODULE: ../../packages/dialog/src/dialog.tsx
602
-
603
-
604
-
605
- /*
606
- * Tencent is pleased to support the open source community by making
607
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
608
- *
609
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
610
- *
611
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
612
- *
613
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
614
- *
615
- * ---------------------------------------------------
616
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
617
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
618
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
619
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
620
- *
621
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
622
- * the Software.
623
- *
624
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
625
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
626
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
627
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
628
- * IN THE SOFTWARE.
629
- */
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
- function _isSlot(s) {
639
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
640
- }
641
- /* harmony default export */ const src_dialog = ((0,external_vue_namespaceObject.defineComponent)({
642
- // eslint-disable-next-line vue/no-reserved-component-names
643
- name: 'Dialog',
644
- props: src_props,
645
- emits: ['closed', 'update:isShow', 'confirm', 'prev', 'next', 'value-change'],
646
- setup: function setup(props, _ref) {
647
- var emit = _ref.emit;
648
- var t = (0,config_provider_namespaceObject.useLocale)('dialog');
649
- var localConfirmText = (0,external_vue_namespaceObject.computed)(function () {
650
- if (props.confirmText === undefined) {
651
- return t.value.ok;
652
- }
653
- return props.confirmText;
654
- });
655
- var localCancelText = (0,external_vue_namespaceObject.computed)(function () {
656
- if (props.cancelText === undefined) {
657
- return t.value.cancel;
658
- }
659
- return props.cancelText;
660
- });
661
- var localPrevText = (0,external_vue_namespaceObject.computed)(function () {
662
- if (props.prevText === undefined) {
663
- return t.value.prev;
664
- }
665
- return props.prevText;
666
- });
667
- var localNextText = (0,external_vue_namespaceObject.computed)(function () {
668
- if (props.nextText === undefined) {
669
- return t.value.next;
670
- }
671
- return props.nextText;
672
- });
673
- var data = (0,external_vue_namespaceObject.reactive)({
674
- positionX: 0,
675
- positionY: 0,
676
- moveStyle: {
677
- top: '50%',
678
- left: '50%'
679
- }
680
- });
681
- var isModalShow = (0,external_vue_namespaceObject.ref)(props.isShow);
682
- (0,external_vue_namespaceObject.onMounted)(function () {
683
- if (props.escClose) {
684
- addEventListener('keydown', escCloseHandler);
685
- }
686
- });
687
- (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
688
- if (props.escClose) {
689
- removeEventListener('keydown', escCloseHandler);
690
- }
691
- });
692
- (0,external_vue_namespaceObject.watch)(function () {
693
- return props.isShow;
694
- }, function (val) {
695
- if (!val) {
696
- setTimeout(function () {
697
- data.moveStyle = {
698
- top: '50%',
699
- left: '50%'
700
- };
701
- data.positionX = 0;
702
- data.positionY = 0;
703
- isModalShow.value = false;
704
- }, 250);
705
- } else {
706
- isModalShow.value = true;
707
- }
708
- emit('value-change', val);
709
- });
710
- // 关闭弹框
711
- var handleClose = /*#__PURE__*/function () {
712
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
713
- var shouldClose;
714
- return regenerator_default().wrap(function _callee$(_context) {
715
- while (1) switch (_context.prev = _context.next) {
716
- case 0:
717
- shouldClose = true;
718
- if (!(typeof props.beforeClose === 'function')) {
719
- _context.next = 5;
720
- break;
721
- }
722
- _context.next = 4;
723
- return props.beforeClose();
724
- case 4:
725
- shouldClose = _context.sent;
726
- case 5:
727
- if (shouldClose) {
728
- emit('update:isShow', false);
729
- emit('closed');
730
- isModalShow.value = false;
731
- }
732
- case 6:
733
- case "end":
734
- return _context.stop();
735
- }
736
- }, _callee);
737
- }));
738
- return function handleClose() {
739
- return _ref2.apply(this, arguments);
740
- };
741
- }();
742
- var handleConfirm = function handleConfirm() {
743
- emit('update:isShow', false);
744
- emit('confirm');
745
- // isModalShow.value = false; 影响异步关闭
746
- };
747
- var hasFooter = (0,external_vue_namespaceObject.computed)(function () {
748
- return ['process', 'operation', 'confirm'].includes(props.dialogType);
749
- });
750
- // 按 esc 关闭弹框
751
- var escCloseHandler = function escCloseHandler(e) {
752
- if (props.isShow && props.closeIcon) {
753
- if (e.keyCode === 27) {
754
- handleClose();
755
- }
756
- }
757
- };
758
- // 上一步
759
- var handlePrevStep = function handlePrevStep() {
760
- emit('prev');
761
- };
762
- // 下一步
763
- var handleNextStep = function handleNextStep() {
764
- emit('next');
765
- };
766
- // 拖拽事件
767
- var moveHandler = function moveHandler(e) {
768
- if (props.fullscreen) {
769
- return false;
770
- }
771
- if (!props.draggable) {
772
- return false;
773
- }
774
- var odiv = e.target;
775
- var parentHeight = e.currentTarget.parentNode.parentNode.offsetHeight;
776
- var parentWidth = e.currentTarget.parentNode.parentNode.offsetWidth;
777
- var disX;
778
- var disY;
779
- if (data.positionX !== 0 && data.positionY !== 0) {
780
- disX = e.clientX - data.positionX;
781
- disY = e.clientY - data.positionY;
782
- } else {
783
- disX = e.clientX - odiv.offsetLeft;
784
- disY = e.clientY - odiv.offsetTop;
785
- }
786
- document.onmousemove = function (e) {
787
- var boxLeft = window.innerWidth - parentWidth;
788
- var boxTop = window.innerHeight - parentHeight;
789
- var left = e.clientX - disX;
790
- var top = e.clientY - disY;
791
- if (boxLeft / 2 - left <= 0) {
792
- left = boxLeft / 2;
793
- } else if (boxLeft / 2 + left <= 0) {
794
- left = -boxLeft / 2;
795
- }
796
- if (boxTop / 2 - top <= 0) {
797
- top = boxTop / 2;
798
- } else if (boxTop / 2 + top <= 0) {
799
- top = -boxTop / 2;
800
- }
801
- data.positionX = left;
802
- data.positionY = top;
803
- data.moveStyle.left = "calc(50% + ".concat(left, "px)");
804
- data.moveStyle.top = "calc(50% + ".concat(top, "px)");
805
- };
806
- document.onmouseup = function () {
807
- document.onmousemove = null;
808
- document.onmouseup = null;
809
- };
810
- };
811
- var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
812
- resolveClassName = _usePrefix.resolveClassName;
813
- return {
814
- data: data,
815
- handleClose: handleClose,
816
- handleConfirm: handleConfirm,
817
- escCloseHandler: escCloseHandler,
818
- moveHandler: moveHandler,
819
- handlePrevStep: handlePrevStep,
820
- handleNextStep: handleNextStep,
821
- hasFooter: hasFooter,
822
- isModalShow: isModalShow,
823
- localConfirmText: localConfirmText,
824
- localCancelText: localCancelText,
825
- localPrevText: localPrevText,
826
- localNextText: localNextText,
827
- resolveClassName: resolveClassName
828
- };
829
- },
830
- render: function render() {
831
- var _this = this;
832
- var renderIcon = function renderIcon() {
833
- var iconMap = {
834
- loading: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Spinner, {
835
- "class": [_this.resolveClassName('info-icon'), 'primary']
836
- }, null),
837
- warning: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Warn, {
838
- "class": [_this.resolveClassName('info-icon'), 'warning']
839
- }, null),
840
- success: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Success, {
841
- "class": [_this.resolveClassName('info-icon'), 'success']
842
- }, null),
843
- danger: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
844
- "class": [_this.resolveClassName('info-icon'), 'danger']
845
- }, null)
846
- };
847
- return iconMap[_this.infoType];
848
- };
849
- var dialogSlot = {
850
- header: function header() {
851
- var _this$$slots$tools, _this$$slots$tools2, _this$$slots, _this$$slots$header, _this$$slots$header2, _this$$slots2;
852
- return [(0,external_vue_namespaceObject.createVNode)("div", {
853
- "class": [_this.resolveClassName('dialog-tool'), _this.fullscreen || !_this.draggable ? '' : 'move', _this.draggable ? 'content-dragging' : ''],
854
- "onMousedown": _this.moveHandler
855
- }, [(_this$$slots$tools = (_this$$slots$tools2 = (_this$$slots = _this.$slots).tools) === null || _this$$slots$tools2 === void 0 ? void 0 : _this$$slots$tools2.call(_this$$slots)) !== null && _this$$slots$tools !== void 0 ? _this$$slots$tools : '']), (0,external_vue_namespaceObject.createVNode)("div", {
856
- "class": _this.resolveClassName('dialog-header')
857
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
858
- "class": _this.resolveClassName('header-icon')
859
- }, [_this.infoType ? renderIcon() : (0,external_vue_namespaceObject.createVNode)("slot", {
860
- "name": "info-icon"
861
- }, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
862
- "class": _this.resolveClassName('dialog-title'),
863
- "style": "text-align: ".concat(_this.headerAlign)
864
- }, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots2 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots2)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : _this.title])])];
865
- },
866
- "default": function _default() {
867
- var _this$$slots$default, _this$$slots$default2, _this$$slots3;
868
- return (_this$$slots$default = (_this$$slots$default2 = (_this$$slots3 = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots3)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : 'default';
869
- },
870
- footer: function footer() {
871
- var _this$$slots$footer, _this$$slots$footer2, _this$$slots4, _this$$slots$footer3, _this$$slots$footer4, _this$$slots5, _this$$slots$footer5, _this$$slots$footer6, _this$$slots6;
872
- return (0,external_vue_namespaceObject.createVNode)("div", {
873
- "class": _this.resolveClassName('dialog-footer'),
874
- "style": "text-align: ".concat(_this.footerAlign)
875
- }, [_this.dialogType === 'process' ? (_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots4 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots4)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [_this.current === 1 ? '' : (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
876
- "class": _this.resolveClassName('dialog-perv'),
877
- "onClick": _this.handlePrevStep
878
- }, {
879
- "default": function _default() {
880
- return [_this.localPrevText];
881
- }
882
- }), _this.current === _this.totalStep ? '' : (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
883
- "class": _this.resolveClassName('dialog-next'),
884
- "onClick": _this.handleNextStep
885
- }, {
886
- "default": function _default() {
887
- return [_this.localNextText];
888
- }
889
- }), _this.current === _this.totalStep ? (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
890
- "onClick": _this.handleConfirm,
891
- "theme": _this.theme,
892
- "loading": _this.isLoading
893
- }, {
894
- "default": function _default() {
895
- return [_this.localConfirmText];
896
- }
897
- }) : '', (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
898
- "class": _this.resolveClassName('dialog-cancel'),
899
- "onClick": _this.handleClose,
900
- "disabled": _this.isLoading
901
- }, {
902
- "default": function _default() {
903
- return [_this.localCancelText];
904
- }
905
- })]) : '', _this.dialogType === 'operation' ? (_this$$slots$footer3 = (_this$$slots$footer4 = (_this$$slots5 = _this.$slots).footer) === null || _this$$slots$footer4 === void 0 ? void 0 : _this$$slots$footer4.call(_this$$slots5)) !== null && _this$$slots$footer3 !== void 0 ? _this$$slots$footer3 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
906
- "onClick": _this.handleConfirm,
907
- "theme": _this.theme,
908
- "loading": _this.isLoading
909
- }, {
910
- "default": function _default() {
911
- return [_this.localConfirmText];
912
- }
913
- }), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
914
- "class": _this.resolveClassName('dialog-cancel'),
915
- "onClick": _this.handleClose,
916
- "disabled": _this.isLoading
917
- }, {
918
- "default": function _default() {
919
- return [_this.localCancelText];
920
- }
921
- })]) : '', _this.dialogType === 'confirm' ? (_this$$slots$footer5 = (_this$$slots$footer6 = (_this$$slots6 = _this.$slots).footer) === null || _this$$slots$footer6 === void 0 ? void 0 : _this$$slots$footer6.call(_this$$slots6)) !== null && _this$$slots$footer5 !== void 0 ? _this$$slots$footer5 : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
922
- "onClick": _this.handleConfirm,
923
- "theme": _this.theme,
924
- "loading": _this.isLoading
925
- }, {
926
- "default": function _default() {
927
- return [_this.localConfirmText];
928
- }
929
- })]) : '']);
930
- },
931
- // eslint-disable-next-line @typescript-eslint/no-misused-promises
932
- close: function close() {
933
- return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
934
- "onClick": _this.handleClose
935
- }, null);
936
- }
937
- };
938
- var className = "".concat(this.resolveClassName('dialog-wrapper '), " ").concat(this.scrollable ? 'scroll-able' : '', " ").concat(this.multiInstance ? 'multi-instance' : '', " ").concat(this.hasFooter ? 'has-footer' : 'no-footer');
939
- return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
940
- "class": className,
941
- "onClose": this.handleClose,
942
- "isShow": this.isModalShow,
943
- "left": this.data.moveStyle.left,
944
- "top": this.data.moveStyle.top
945
- }), _isSlot(dialogSlot) ? dialogSlot : {
946
- "default": function _default() {
947
- return [dialogSlot];
948
- }
949
- });
950
- }
951
- }));
514
+ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
515
+ ;// CONCATENATED MODULE: external "../dialog"
516
+ var dialog_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
517
+ var dialog_y = x => () => x
518
+ const dialog_namespaceObject = dialog_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_dialog_497cb4c3__["default"] });
519
+ ;// CONCATENATED MODULE: external "../dialog/dialog.less"
520
+ var dialog_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
521
+ var dialog_less_y = x => () => x
522
+ const dialog_less_namespaceObject = dialog_less_x({ });
952
523
  ;// CONCATENATED MODULE: ../../packages/info-box/src/info-box.tsx
953
524
 
954
525
 
955
526
 
956
- function info_box_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; }
957
- function info_box_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? info_box_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : info_box_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
527
+ 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; }
528
+ 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; }
958
529
 
959
530
  /*
960
531
  * Tencent is pleased to support the open source community by making
@@ -984,6 +555,7 @@ function info_box_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
984
555
 
985
556
 
986
557
 
558
+
987
559
  var InfoBox = function InfoBox(config) {
988
560
  var container = document.createElement('div');
989
561
  var modalFuncProps = (0,external_vue_namespaceObject.shallowRef)(config);
@@ -1066,7 +638,7 @@ var InfoBox = function InfoBox(config) {
1066
638
  };
1067
639
  }();
1068
640
  function update(newValue) {
1069
- modalFuncProps.value = info_box_objectSpread(info_box_objectSpread({}, modalFuncProps.value), newValue);
641
+ modalFuncProps.value = _objectSpread(_objectSpread({}, modalFuncProps.value), newValue);
1070
642
  }
1071
643
  expose({
1072
644
  update: update
@@ -1105,7 +677,7 @@ var InfoBox = function InfoBox(config) {
1105
677
  container.remove();
1106
678
  };
1107
679
  return function () {
1108
- return (0,external_vue_namespaceObject.createVNode)(src_dialog, info_box_objectSpread(info_box_objectSpread({
680
+ return (0,external_vue_namespaceObject.createVNode)(dialog_namespaceObject["default"], _objectSpread(_objectSpread({
1109
681
  "class": resolveClassName('info-wrapper'),
1110
682
  headerAlign: 'center',
1111
683
  footerAlign: 'center',
@@ -92,8 +92,8 @@ declare const BkModal: {
92
92
  };
93
93
  }>> & {
94
94
  onClose?: (...args: any[]) => any;
95
- onShown?: (...args: any[]) => any;
96
95
  onHidden?: (...args: any[]) => any;
96
+ onShown?: (...args: any[]) => any;
97
97
  "onQuick-close"?: (...args: any[]) => any;
98
98
  onQuickClose?: (...args: any[]) => any;
99
99
  }, {
@@ -116,7 +116,7 @@ declare const BkModal: {
116
116
  refRoot: import("vue").Ref<HTMLElement>;
117
117
  refMask: import("vue").Ref<HTMLElement>;
118
118
  showMask: boolean;
119
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "shown" | "hidden" | "quick-close" | "quickClose")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
119
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quick-close" | "quickClose")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
120
120
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
121
121
  default: boolean;
122
122
  } & {
@@ -208,8 +208,8 @@ declare const BkModal: {
208
208
  };
209
209
  }>> & {
210
210
  onClose?: (...args: any[]) => any;
211
- onShown?: (...args: any[]) => any;
212
211
  onHidden?: (...args: any[]) => any;
212
+ onShown?: (...args: any[]) => any;
213
213
  "onQuick-close"?: (...args: any[]) => any;
214
214
  onQuickClose?: (...args: any[]) => any;
215
215
  }, {
@@ -332,8 +332,8 @@ declare const BkModal: {
332
332
  };
333
333
  }>> & {
334
334
  onClose?: (...args: any[]) => any;
335
- onShown?: (...args: any[]) => any;
336
335
  onHidden?: (...args: any[]) => any;
336
+ onShown?: (...args: any[]) => any;
337
337
  "onQuick-close"?: (...args: any[]) => any;
338
338
  onQuickClose?: (...args: any[]) => any;
339
339
  }, {
@@ -473,8 +473,8 @@ declare const BkModal: {
473
473
  };
474
474
  }>> & {
475
475
  onClose?: (...args: any[]) => any;
476
- onShown?: (...args: any[]) => any;
477
476
  onHidden?: (...args: any[]) => any;
477
+ onShown?: (...args: any[]) => any;
478
478
  "onQuick-close"?: (...args: any[]) => any;
479
479
  onQuickClose?: (...args: any[]) => any;
480
480
  }, {
@@ -497,7 +497,7 @@ declare const BkModal: {
497
497
  refRoot: import("vue").Ref<HTMLElement>;
498
498
  refMask: import("vue").Ref<HTMLElement>;
499
499
  showMask: boolean;
500
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "shown" | "hidden" | "quick-close" | "quickClose")[], "close" | "shown" | "hidden" | "quick-close" | "quickClose", {
500
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quick-close" | "quickClose")[], "close" | "hidden" | "shown" | "quick-close" | "quickClose", {
501
501
  title: string;
502
502
  width: string | number;
503
503
  height: string | number;
@@ -108,7 +108,7 @@ declare const _default: import("vue").DefineComponent<{
108
108
  refRoot: import("vue").Ref<HTMLElement>;
109
109
  refMask: import("vue").Ref<HTMLElement>;
110
110
  showMask: boolean;
111
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "shown" | "hidden" | "quick-close" | "quickClose")[], "close" | "shown" | "hidden" | "quick-close" | "quickClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
111
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "hidden" | "shown" | "quick-close" | "quickClose")[], "close" | "hidden" | "shown" | "quick-close" | "quickClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
112
112
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
113
113
  default: boolean;
114
114
  } & {
@@ -200,8 +200,8 @@ declare const _default: import("vue").DefineComponent<{
200
200
  };
201
201
  }>> & {
202
202
  onClose?: (...args: any[]) => any;
203
- onShown?: (...args: any[]) => any;
204
203
  onHidden?: (...args: any[]) => any;
204
+ onShown?: (...args: any[]) => any;
205
205
  "onQuick-close"?: (...args: any[]) => any;
206
206
  onQuickClose?: (...args: any[]) => any;
207
207
  }, {