bkui-vue 1.0.3-beta.64 → 1.0.3-beta.65.dialog.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/index.cjs.js +69 -69
  2. package/dist/index.esm.js +20112 -19285
  3. package/dist/index.umd.js +69 -69
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/checkbox/index.js +4 -4
  7. package/lib/components.d.ts +1 -0
  8. package/lib/components.js +1 -0
  9. package/lib/dialog/dialog.css +139 -77
  10. package/lib/dialog/dialog.d.ts +41 -121
  11. package/lib/dialog/dialog.less +10 -65
  12. package/lib/dialog/dialog.variable.css +139 -77
  13. package/lib/dialog/index.d.ts +105 -272
  14. package/lib/dialog/index.js +91 -100
  15. package/lib/dialog/props.d.ts +8 -48
  16. package/lib/info-box/index.d.ts +2 -2
  17. package/lib/info-box/index.js +312 -173
  18. package/lib/info-box/info-box.css +63 -7
  19. package/lib/info-box/info-box.d.ts +17 -16
  20. package/lib/info-box/info-box.less +76 -14
  21. package/lib/info-box/info-box.variable.css +63 -7
  22. package/lib/info-box/render-component.d.ts +4 -0
  23. package/lib/modal/index.d.ts +45 -325
  24. package/lib/modal/index.js +187 -666
  25. package/lib/modal/mask.d.ts +6 -0
  26. package/lib/modal/modal.css +131 -31
  27. package/lib/modal/modal.d.ts +16 -126
  28. package/lib/modal/modal.less +84 -28
  29. package/lib/modal/modal.variable.css +131 -31
  30. package/lib/modal/props.mixin.d.ts +2 -53
  31. package/lib/radio/index.js +5 -5
  32. package/lib/scrollbar/index.d.ts +14 -0
  33. package/lib/scrollbar/index.js +18740 -0
  34. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
  35. package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
  36. package/lib/scrollbar/scrollbar-core/index.d.ts +236 -0
  37. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
  38. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
  39. package/lib/scrollbar/scrollbar.css +74 -0
  40. package/lib/scrollbar/scrollbar.less +93 -0
  41. package/lib/scrollbar/scrollbar.variable.css +203 -0
  42. package/lib/select/index.d.ts +0 -33
  43. package/lib/select/index.js +2 -5
  44. package/lib/select/select.css +5 -19
  45. package/lib/select/select.d.ts +0 -11
  46. package/lib/select/select.less +6 -26
  47. package/lib/select/select.variable.css +5 -19
  48. package/lib/select/selectTagInput.d.ts +0 -7
  49. package/lib/shared/index.d.ts +0 -1
  50. package/lib/shared/index.js +1 -48
  51. package/lib/sideslider/index.d.ts +31 -222
  52. package/lib/sideslider/index.js +49 -36
  53. package/lib/sideslider/sideslider.css +4 -42
  54. package/lib/sideslider/sideslider.d.ts +14 -105
  55. package/lib/sideslider/sideslider.less +13 -58
  56. package/lib/sideslider/sideslider.variable.css +4 -42
  57. package/lib/table/const.d.ts +1 -1
  58. package/lib/table/index.d.ts +23 -0
  59. package/lib/table/index.js +184 -47
  60. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  61. package/lib/table/plugins/use-pagination.d.ts +3 -1
  62. package/lib/table/plugins/use-shift-key.d.ts +11 -0
  63. package/lib/table/props.d.ts +8 -0
  64. package/lib/table/table.css +97 -42
  65. package/lib/table/table.d.ts +11 -0
  66. package/lib/table/table.less +43 -58
  67. package/lib/table/table.variable.css +97 -42
  68. package/lib/table/use-attributes.d.ts +1 -0
  69. package/lib/table/use-render.d.ts +1 -1
  70. package/lib/table-column/index.js +6 -2
  71. package/lib/tree/index.d.ts +23 -0
  72. package/lib/tree/index.js +9 -3
  73. package/lib/tree/props.d.ts +8 -0
  74. package/lib/tree/tree.css +75 -2
  75. package/lib/tree/tree.d.ts +11 -0
  76. package/lib/tree/tree.variable.css +75 -2
  77. package/lib/virtual-render/index.d.ts +27 -0
  78. package/lib/virtual-render/index.js +264 -63
  79. package/lib/virtual-render/props.d.ts +16 -0
  80. package/lib/virtual-render/use-fix-top.d.ts +2 -7
  81. package/lib/virtual-render/use-scrollbar.d.ts +23 -0
  82. package/lib/virtual-render/v-virtual-render.d.ts +2 -1
  83. package/lib/virtual-render/virtual-render.css +75 -2
  84. package/lib/virtual-render/virtual-render.d.ts +13 -0
  85. package/lib/virtual-render/virtual-render.less +3 -3
  86. package/lib/virtual-render/virtual-render.variable.css +75 -2
  87. package/package.json +1 -1
  88. package/lib/shared/mask.d.ts +0 -11
@@ -8,6 +8,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ fr
8
8
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
9
9
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388__ from "../modal";
10
10
  import "../modal/modal.less";
11
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_cloneDeep_13f2b125__ from "lodash/cloneDeep";
11
12
  /******/ var __webpack_modules__ = ({
12
13
 
13
14
  /***/ 7609:
@@ -507,7 +508,7 @@ function _asyncToGenerator(fn) {
507
508
  ;// CONCATENATED MODULE: external "vue"
508
509
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
509
510
  var external_vue_y = x => () => x
510
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["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, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
511
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
511
512
  // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
512
513
  var regenerator = __webpack_require__(2841);
513
514
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
@@ -526,7 +527,7 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
526
527
  ;// CONCATENATED MODULE: external "../icon"
527
528
  var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
528
529
  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
+ const icon_namespaceObject = icon_x({ ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error });
530
531
  ;// CONCATENATED MODULE: external "../modal"
531
532
  var modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
532
533
  var modal_y = x => () => x
@@ -535,6 +536,10 @@ const modal_namespaceObject = modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
535
536
  var modal_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
536
537
  var modal_less_y = x => () => x
537
538
  const modal_less_namespaceObject = modal_less_x({ });
539
+ ;// CONCATENATED MODULE: external "lodash/cloneDeep"
540
+ var cloneDeep_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
541
+ var cloneDeep_y = x => () => x
542
+ const cloneDeep_namespaceObject = cloneDeep_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_cloneDeep_13f2b125__["default"] });
538
543
  ;// CONCATENATED MODULE: ../../packages/dialog/src/props.ts
539
544
 
540
545
  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; }
@@ -566,7 +571,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
566
571
  */
567
572
 
568
573
 
569
- var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {}, {
574
+
575
+ var dialogProps = (0,cloneDeep_namespaceObject["default"])(modal_namespaceObject.propsMixin);
576
+ dialogProps.width["default"] = '400';
577
+ var props = _objectSpread(_objectSpread({}, dialogProps), {}, {
578
+ // 是否可拖拽
579
+ draggable: shared_namespaceObject.PropTypes.bool.def(true),
570
580
  // 确认按钮文字
571
581
  // confirmText: PropTypes.string.def('确定'),
572
582
  confirmText: shared_namespaceObject.PropTypes.string,
@@ -583,13 +593,13 @@ var props = _objectSpread(_objectSpread({}, modal_namespaceObject.propsMixin), {
583
593
  // 总步数
584
594
  totalStep: shared_namespaceObject.PropTypes.number,
585
595
  // 弹框的标题
586
- title: shared_namespaceObject.PropTypes.string.def('title'),
596
+ title: shared_namespaceObject.PropTypes.string.def(''),
587
597
  // 显示 header 的位置
588
598
  headerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.LEFT),
589
599
  // 显示 footer 的位置
590
600
  footerAlign: (0,shared_namespaceObject.alignType)().def(shared_namespaceObject.AlignEnum.RIGHT),
591
601
  // 颜色 按钮类型
592
- theme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
602
+ confirmButtonTheme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
593
603
  // 对话框类型
594
604
  dialogType: (0,shared_namespaceObject.dialogTypeUnion)(),
595
605
  // 按钮loading
@@ -638,13 +648,45 @@ function _isSlot(s) {
638
648
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
639
649
  }
640
650
  /* harmony default export */ const dialog = ((0,external_vue_namespaceObject.defineComponent)({
641
- // eslint-disable-next-line vue/no-reserved-component-names
642
651
  name: 'Dialog',
643
652
  props: src_props,
644
- emits: ['closed', 'update:isShow', 'confirm', 'prev', 'next', 'value-change'],
653
+ emits: {
654
+ closed: function closed() {
655
+ return true;
656
+ },
657
+ shown: function shown() {
658
+ return true;
659
+ },
660
+ hidden: function hidden() {
661
+ return true;
662
+ },
663
+ 'update:isShow': function updateIsShow(value) {
664
+ return value !== undefined;
665
+ },
666
+ confirm: function confirm() {
667
+ return true;
668
+ },
669
+ prev: function prev() {
670
+ return true;
671
+ },
672
+ next: function next() {
673
+ return true;
674
+ }
675
+ },
645
676
  setup: function setup(props, _ref) {
646
677
  var emit = _ref.emit;
647
678
  var t = (0,config_provider_namespaceObject.useLocale)('dialog');
679
+ var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
680
+ resolveClassName = _usePrefix.resolveClassName;
681
+ var isMoveing = (0,external_vue_namespaceObject.ref)(false);
682
+ var data = (0,external_vue_namespaceObject.reactive)({
683
+ positionX: 0,
684
+ positionY: 0,
685
+ moveStyle: {
686
+ top: '50%',
687
+ left: '50%'
688
+ }
689
+ });
648
690
  var localConfirmText = (0,external_vue_namespaceObject.computed)(function () {
649
691
  if (props.confirmText === undefined) {
650
692
  return t.value.ok;
@@ -669,33 +711,6 @@ function _isSlot(s) {
669
711
  }
670
712
  return props.nextText;
671
713
  });
672
- var data = (0,external_vue_namespaceObject.reactive)({
673
- positionX: 0,
674
- positionY: 0,
675
- moveStyle: {
676
- top: '50%',
677
- left: '50%'
678
- }
679
- });
680
- var isModalShow = (0,external_vue_namespaceObject.ref)(props.isShow);
681
- (0,external_vue_namespaceObject.watch)(function () {
682
- return props.isShow;
683
- }, function (val) {
684
- if (!val) {
685
- setTimeout(function () {
686
- data.moveStyle = {
687
- top: '50%',
688
- left: '50%'
689
- };
690
- data.positionX = 0;
691
- data.positionY = 0;
692
- isModalShow.value = false;
693
- }, 250);
694
- } else {
695
- isModalShow.value = true;
696
- }
697
- emit('value-change', val);
698
- });
699
714
  // 关闭弹框
700
715
  var handleClose = /*#__PURE__*/function () {
701
716
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
@@ -716,7 +731,6 @@ function _isSlot(s) {
716
731
  if (shouldClose) {
717
732
  emit('update:isShow', false);
718
733
  emit('closed');
719
- isModalShow.value = false;
720
734
  }
721
735
  case 6:
722
736
  case "end":
@@ -732,13 +746,11 @@ function _isSlot(s) {
732
746
  emit('update:isShow', false);
733
747
  emit('confirm');
734
748
  };
735
- // esc 关闭弹框
736
- var escCloseHandler = function escCloseHandler(e) {
737
- if (props.isShow && props.closeIcon) {
738
- if (e.keyCode === 27) {
739
- handleClose();
740
- }
741
- }
749
+ var handleShown = function handleShown() {
750
+ emit('shown');
751
+ };
752
+ var handleHidden = function handleHidden() {
753
+ emit('hidden');
742
754
  };
743
755
  // 上一步
744
756
  var handlePrevStep = function handlePrevStep() {
@@ -749,7 +761,7 @@ function _isSlot(s) {
749
761
  emit('next');
750
762
  };
751
763
  // 拖拽事件
752
- var moveHandler = function moveHandler(e) {
764
+ var handleMousedown = function handleMousedown(e) {
753
765
  if (props.fullscreen) {
754
766
  return false;
755
767
  }
@@ -768,6 +780,7 @@ function _isSlot(s) {
768
780
  disX = e.clientX - odiv.offsetLeft;
769
781
  disY = e.clientY - odiv.offsetTop;
770
782
  }
783
+ isMoveing.value = true;
771
784
  document.onmousemove = function (e) {
772
785
  var boxLeft = window.innerWidth - parentWidth;
773
786
  var boxTop = window.innerHeight - parentHeight;
@@ -791,68 +804,36 @@ function _isSlot(s) {
791
804
  document.onmouseup = function () {
792
805
  document.onmousemove = null;
793
806
  document.onmouseup = null;
807
+ isMoveing.value = false;
794
808
  };
795
809
  };
796
- var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
797
- resolveClassName = _usePrefix.resolveClassName;
798
- (0,external_vue_namespaceObject.onMounted)(function () {
799
- if (props.escClose) {
800
- addEventListener('keydown', escCloseHandler);
801
- }
802
- });
803
- (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
804
- if (props.escClose) {
805
- removeEventListener('keydown', escCloseHandler);
806
- }
807
- });
808
810
  return {
809
811
  data: data,
810
- handleClose: handleClose,
811
- handleConfirm: handleConfirm,
812
- escCloseHandler: escCloseHandler,
813
- moveHandler: moveHandler,
814
- handlePrevStep: handlePrevStep,
815
- handleNextStep: handleNextStep,
816
- isModalShow: isModalShow,
817
812
  localConfirmText: localConfirmText,
818
813
  localCancelText: localCancelText,
819
814
  localPrevText: localPrevText,
820
815
  localNextText: localNextText,
821
- resolveClassName: resolveClassName
816
+ resolveClassName: resolveClassName,
817
+ handleHidden: handleHidden,
818
+ handleShown: handleShown,
819
+ handleClose: handleClose,
820
+ handleConfirm: handleConfirm,
821
+ handleMousedown: handleMousedown,
822
+ handlePrevStep: handlePrevStep,
823
+ handleNextStep: handleNextStep
822
824
  };
823
825
  },
824
826
  render: function render() {
825
827
  var _this = this;
826
- var renderIcon = function renderIcon() {
827
- var iconMap = {
828
- loading: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Spinner, {
829
- "class": [_this.resolveClassName('info-icon'), 'primary']
830
- }, null),
831
- warning: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Warn, {
832
- "class": [_this.resolveClassName('info-icon'), 'warning']
833
- }, null),
834
- success: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Success, {
835
- "class": [_this.resolveClassName('info-icon'), 'success']
836
- }, null),
837
- danger: (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
838
- "class": [_this.resolveClassName('info-icon'), 'danger']
839
- }, null)
840
- };
841
- return iconMap[_this.infoType];
842
- };
843
828
  var dialogSlot = {
844
829
  header: function header() {
845
- var _this$$slots$tools, _this$$slots$tools2, _this$$slots, _this$$slots$header, _this$$slots$header2, _this$$slots2;
830
+ var _this$$slots$tools, _this$$slots, _this$$slots$header, _this$$slots$header2, _this$$slots2;
846
831
  return [(0,external_vue_namespaceObject.createVNode)("div", {
847
- "class": [_this.resolveClassName('dialog-tool'), _this.fullscreen || !_this.draggable ? '' : 'move', _this.draggable ? 'content-dragging' : ''],
848
- "onMousedown": _this.moveHandler
849
- }, [(_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", {
832
+ "class": _defineProperty(_defineProperty(_defineProperty({}, _this.resolveClassName('dialog-tool'), true), 'is-draggable', !_this.fullscreen && _this.draggable), 'is-dragging', _this.draggable),
833
+ "onMousedown": _this.handleMousedown
834
+ }, [(_this$$slots$tools = (_this$$slots = _this.$slots).tools) === null || _this$$slots$tools === void 0 ? void 0 : _this$$slots$tools.call(_this$$slots)]), (0,external_vue_namespaceObject.createVNode)("div", {
850
835
  "class": _this.resolveClassName('dialog-header')
851
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
852
- "class": _this.resolveClassName('dialog-header-icon')
853
- }, [_this.infoType ? renderIcon() : (0,external_vue_namespaceObject.createVNode)("slot", {
854
- "name": "info-icon"
855
- }, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
836
+ }, [(0,external_vue_namespaceObject.createVNode)("span", {
856
837
  "class": _this.resolveClassName('dialog-title'),
857
838
  "style": "text-align: ".concat(_this.headerAlign)
858
839
  }, [(_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])])];
@@ -876,7 +857,7 @@ function _isSlot(s) {
876
857
  if (_this.dialogType === 'operation') {
877
858
  return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
878
859
  "onClick": _this.handleConfirm,
879
- "theme": _this.theme,
860
+ "theme": _this.confirmButtonTheme,
880
861
  "loading": _this.isLoading
881
862
  }, {
882
863
  "default": function _default() {
@@ -895,7 +876,7 @@ function _isSlot(s) {
895
876
  if (_this.dialogType === 'confirm') {
896
877
  return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
897
878
  "onClick": _this.handleConfirm,
898
- "theme": _this.theme,
879
+ "theme": _this.confirmButtonTheme,
899
880
  "loading": _this.isLoading
900
881
  }, {
901
882
  "default": function _default() {
@@ -927,7 +908,7 @@ function _isSlot(s) {
927
908
  }
928
909
  }), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
929
910
  "onClick": _this.handleConfirm,
930
- "theme": _this.theme,
911
+ "theme": _this.confirmButtonTheme,
931
912
  "loading": _this.isLoading
932
913
  }, {
933
914
  "default": function _default() {
@@ -953,18 +934,28 @@ function _isSlot(s) {
953
934
  }, [renderFooterAction()]);
954
935
  },
955
936
  close: function close() {
956
- return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
957
- "onClick": _this.handleClose
958
- }, null);
937
+ return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, null, null);
959
938
  }
960
939
  };
961
- return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
940
+ return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], {
962
941
  "class": _defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('dialog'), true), this.resolveClassName('dialog-wrapper'), true), 'is-fullscreen', this.fullscreen),
942
+ "isShow": this.isShow,
943
+ "fullscreen": this.fullscreen,
944
+ "width": this.fullscreen ? 'auto' : this.width,
945
+ "animateType": "fadein",
946
+ "beforeClose": this.beforeClose,
947
+ "closeIcon": this.closeIcon,
948
+ "escClose": this.escClose,
949
+ "quickClose": this.quickClose,
950
+ "showMask": this.showMask,
951
+ "transfer": this.transfer,
952
+ "left": this.fullscreen ? '0px' : this.data.moveStyle.left,
953
+ "top": this.fullscreen ? '0px' : this.data.moveStyle.top,
954
+ "zIndex": this.zIndex,
963
955
  "onClose": this.handleClose,
964
- "isShow": this.isModalShow,
965
- "left": this.data.moveStyle.left,
966
- "top": this.data.moveStyle.top
967
- }), _isSlot(dialogSlot) ? dialogSlot : {
956
+ "onHidden": this.handleHidden,
957
+ "onShown": this.handleShown
958
+ }, _isSlot(dialogSlot) ? dialogSlot : {
968
959
  "default": function _default() {
969
960
  return [dialogSlot];
970
961
  }
@@ -1,4 +1,9 @@
1
1
  declare const props: {
2
+ draggable: import("vue-types").VueTypeValidableDef<boolean> & {
3
+ default: boolean;
4
+ } & {
5
+ default: boolean;
6
+ };
2
7
  confirmText: import("vue-types").VueTypeValidableDef<string> & {
3
8
  default: string;
4
9
  };
@@ -30,7 +35,7 @@ declare const props: {
30
35
  footerAlign: import("vue-types").VueTypeValidableDef<"right" | "left" | "center"> & {
31
36
  default: "right" | "left" | "center";
32
37
  };
33
- theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
38
+ confirmButtonTheme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
34
39
  default: "success" | "warning" | "danger" | "primary";
35
40
  };
36
41
  dialogType: import("vue-types").VueTypeDef<"show" | "process" | "operation" | "confirm">;
@@ -44,18 +49,8 @@ declare const props: {
44
49
  } & {
45
50
  default: boolean;
46
51
  };
47
- width: import("vue-types").VueTypeDef<string | number> & {
48
- default: string | number;
49
- };
50
- height: import("vue-types").VueTypeDef<string | number> & {
51
- default: string | number;
52
- };
53
- extCls: (import("vue-types").VueTypeValidableDef<string> & {
54
- default: string;
55
- }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
56
- default: () => unknown[];
57
- });
58
- scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
52
+ width: import("vue-types").VueTypeDef<string | number>;
53
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
59
54
  default: boolean;
60
55
  } & {
61
56
  default: boolean;
@@ -75,17 +70,6 @@ declare const props: {
75
70
  } & {
76
71
  default: boolean;
77
72
  };
78
- fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
79
- default: boolean;
80
- } & {
81
- default: boolean;
82
- };
83
- size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
84
- draggable: import("vue-types").VueTypeValidableDef<boolean> & {
85
- default: boolean;
86
- } & {
87
- default: boolean;
88
- };
89
73
  quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
90
74
  default: boolean;
91
75
  } & {
@@ -95,14 +79,6 @@ declare const props: {
95
79
  default: string | boolean | (() => HTMLElement);
96
80
  };
97
81
  zIndex: import("vue-types").VueTypeDef<string | number>;
98
- maxHeight: import("vue-types").VueTypeValidableDef<string> & {
99
- default: string;
100
- };
101
- direction: import("vue-types").VueTypeValidableDef<string> & {
102
- default: string;
103
- } & {
104
- default: string;
105
- };
106
82
  animateType: import("vue-types").VueTypeValidableDef<string> & {
107
83
  default: string;
108
84
  } & {
@@ -112,27 +88,11 @@ declare const props: {
112
88
  default: "show" | "if";
113
89
  };
114
90
  beforeClose: import("vue-types").VueTypeDef<unknown>;
115
- multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
116
- default: boolean;
117
- } & {
118
- default: boolean;
119
- };
120
- infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
121
- bodyClass: (import("vue-types").VueTypeValidableDef<string> & {
122
- default: string;
123
- }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
124
- default: () => unknown[];
125
- });
126
91
  left: import("vue-types").VueTypeValidableDef<string> & {
127
92
  default: string;
128
93
  };
129
94
  top: import("vue-types").VueTypeValidableDef<string> & {
130
95
  default: string;
131
96
  };
132
- hiddenDelay: import("vue-types").VueTypeValidableDef<number> & {
133
- default: number;
134
- } & {
135
- default: number;
136
- };
137
97
  };
138
98
  export default props;
@@ -1,7 +1,7 @@
1
- declare const BkInfoBox: ((config: Partial<import("./info-box").ModalFuncProps>) => {
1
+ declare const BkInfoBox: ((config: Partial<import("./info-box").Props>) => {
2
2
  show: () => void;
3
3
  hide: () => void;
4
- update: (config: Partial<import("./info-box").ModalFuncProps>) => void;
4
+ update: (config: Partial<import("./info-box").Props>) => void;
5
5
  destroy: () => void;
6
6
  }) & import("vue").Plugin<any[]>;
7
7
  export default BkInfoBox;