bkui-vue 1.0.3-beta.59 → 1.0.3-beta.60.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 (187) hide show
  1. package/dist/index.cjs.js +51 -51
  2. package/dist/index.esm.js +10150 -10028
  3. package/dist/index.umd.js +51 -51
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +1 -1
  7. package/lib/alert/index.js +1 -1
  8. package/lib/animate-number/index.js +7 -8
  9. package/lib/badge/index.js +1 -1
  10. package/lib/breadcrumb/index.js +1 -1
  11. package/lib/button/index.js +1 -1
  12. package/lib/card/index.js +1 -1
  13. package/lib/cascader/index.js +38 -42
  14. package/lib/checkbox/index.js +6 -7
  15. package/lib/collapse/index.js +11 -12
  16. package/lib/collapse-transition/index.js +3 -4
  17. package/lib/color-picker/index.js +10 -13
  18. package/lib/config-provider/index.js +1 -1
  19. package/lib/container/index.js +10 -12
  20. package/lib/date-picker/index.js +1 -1
  21. package/lib/dialog/dialog.css +139 -77
  22. package/lib/dialog/dialog.d.ts +41 -121
  23. package/lib/dialog/dialog.less +10 -65
  24. package/lib/dialog/dialog.variable.css +139 -77
  25. package/lib/dialog/index.d.ts +105 -272
  26. package/lib/dialog/index.js +95 -104
  27. package/lib/dialog/props.d.ts +8 -48
  28. package/lib/directives/index.js +1 -1
  29. package/lib/divider/index.js +2 -3
  30. package/lib/dropdown/index.js +6 -8
  31. package/lib/exception/index.js +1 -1
  32. package/lib/fixed-navbar/index.js +2 -3
  33. package/lib/form/index.js +1 -1
  34. package/lib/icon/angle-double-down-line.js +1 -1
  35. package/lib/icon/angle-double-left-line.js +1 -1
  36. package/lib/icon/angle-double-left.js +1 -1
  37. package/lib/icon/angle-double-right-line.js +1 -1
  38. package/lib/icon/angle-double-right.js +1 -1
  39. package/lib/icon/angle-double-up-line.js +1 -1
  40. package/lib/icon/angle-down-fill.js +1 -1
  41. package/lib/icon/angle-down-line.js +1 -1
  42. package/lib/icon/angle-down.js +1 -1
  43. package/lib/icon/angle-left.js +1 -1
  44. package/lib/icon/angle-right.js +1 -1
  45. package/lib/icon/angle-up-fill.js +1 -1
  46. package/lib/icon/angle-up.js +1 -1
  47. package/lib/icon/archive-fill.js +1 -1
  48. package/lib/icon/arrows-left.js +1 -1
  49. package/lib/icon/arrows-right.js +1 -1
  50. package/lib/icon/assistant.js +1 -1
  51. package/lib/icon/audio-fill.js +1 -1
  52. package/lib/icon/bk.js +1 -1
  53. package/lib/icon/circle.js +1 -1
  54. package/lib/icon/close-line.js +1 -1
  55. package/lib/icon/close.js +1 -1
  56. package/lib/icon/code.js +1 -1
  57. package/lib/icon/cog-shape.js +1 -1
  58. package/lib/icon/collapse-left.js +1 -1
  59. package/lib/icon/copy-shape.js +1 -1
  60. package/lib/icon/copy.js +1 -1
  61. package/lib/icon/data-shape.js +1 -1
  62. package/lib/icon/del.js +1 -1
  63. package/lib/icon/doc-fill.js +1 -1
  64. package/lib/icon/done.js +1 -1
  65. package/lib/icon/down-shape.js +1 -1
  66. package/lib/icon/down-small.js +1 -1
  67. package/lib/icon/edit-line.js +1 -1
  68. package/lib/icon/ellipsis.js +1 -1
  69. package/lib/icon/enlarge-line.js +1 -1
  70. package/lib/icon/error.js +1 -1
  71. package/lib/icon/excel-fill.js +1 -1
  72. package/lib/icon/exclamation-circle-shape.js +1 -1
  73. package/lib/icon/eye.js +1 -1
  74. package/lib/icon/filliscreen-line.js +1 -1
  75. package/lib/icon/fix-line.js +1 -1
  76. package/lib/icon/fix-shape.js +1 -1
  77. package/lib/icon/folder-open.js +1 -1
  78. package/lib/icon/folder-shape-open.js +1 -1
  79. package/lib/icon/folder-shape.js +1 -1
  80. package/lib/icon/folder.js +1 -1
  81. package/lib/icon/funnel.js +1 -1
  82. package/lib/icon/grag-fill.js +1 -1
  83. package/lib/icon/help-document-fill.js +1 -1
  84. package/lib/icon/help-fill.js +1 -1
  85. package/lib/icon/help.js +1 -1
  86. package/lib/icon/image-fill.js +1 -1
  87. package/lib/icon/img-error.js +1 -1
  88. package/lib/icon/img-placehoulder.js +1 -1
  89. package/lib/icon/info-line.js +1 -1
  90. package/lib/icon/info.js +1 -1
  91. package/lib/icon/left-shape.js +1 -1
  92. package/lib/icon/left-turn-line.js +1 -1
  93. package/lib/icon/loading.js +1 -1
  94. package/lib/icon/narrow-line.js +1 -1
  95. package/lib/icon/original.js +1 -1
  96. package/lib/icon/pdf-fill.js +1 -1
  97. package/lib/icon/play-shape.js +1 -1
  98. package/lib/icon/plus.js +1 -1
  99. package/lib/icon/ppt-fill.js +1 -1
  100. package/lib/icon/qq.js +1 -1
  101. package/lib/icon/right-shape.js +1 -1
  102. package/lib/icon/right-turn-line.js +1 -1
  103. package/lib/icon/search.js +1 -1
  104. package/lib/icon/share.js +1 -1
  105. package/lib/icon/spinner.js +1 -1
  106. package/lib/icon/success.js +1 -1
  107. package/lib/icon/switcher-loading.js +1 -1
  108. package/lib/icon/text-all.js +1 -1
  109. package/lib/icon/text-file.js +1 -1
  110. package/lib/icon/text-fill.js +1 -1
  111. package/lib/icon/transfer.js +1 -1
  112. package/lib/icon/tree-application-shape.js +1 -1
  113. package/lib/icon/unfull-screen.js +1 -1
  114. package/lib/icon/unvisible.js +1 -1
  115. package/lib/icon/up-shape.js +1 -1
  116. package/lib/icon/upload.js +1 -1
  117. package/lib/icon/video-fill.js +1 -1
  118. package/lib/icon/warn.js +1 -1
  119. package/lib/icon/weixin-pro.js +1 -1
  120. package/lib/icon/weixin.js +1 -1
  121. package/lib/image/index.js +10 -11
  122. package/lib/info-box/index.d.ts +2 -2
  123. package/lib/info-box/index.js +316 -177
  124. package/lib/info-box/info-box.css +63 -7
  125. package/lib/info-box/info-box.d.ts +17 -16
  126. package/lib/info-box/info-box.less +76 -14
  127. package/lib/info-box/info-box.variable.css +63 -7
  128. package/lib/info-box/render-component.d.ts +4 -0
  129. package/lib/input/index.js +4 -4
  130. package/lib/link/index.js +2 -2
  131. package/lib/loading/index.js +11 -12
  132. package/lib/menu/index.js +2 -3
  133. package/lib/message/index.js +1 -1
  134. package/lib/modal/index.d.ts +45 -325
  135. package/lib/modal/index.js +188 -667
  136. package/lib/modal/mask.d.ts +6 -0
  137. package/lib/modal/modal.css +131 -31
  138. package/lib/modal/modal.d.ts +16 -126
  139. package/lib/modal/modal.less +84 -28
  140. package/lib/modal/modal.variable.css +131 -31
  141. package/lib/modal/props.mixin.d.ts +2 -53
  142. package/lib/navigation/index.js +7 -9
  143. package/lib/notify/index.js +1 -1
  144. package/lib/overflow-title/index.js +9 -10
  145. package/lib/pagination/index.js +1 -1
  146. package/lib/plugin-popover/index.js +26 -30
  147. package/lib/pop-confirm/index.js +4 -5
  148. package/lib/popover/index.js +26 -30
  149. package/lib/popover2/index.js +2 -2
  150. package/lib/process/index.js +4 -4
  151. package/lib/progress/index.js +5 -6
  152. package/lib/radio/index.js +6 -7
  153. package/lib/rate/index.js +1 -1
  154. package/lib/resize-layout/index.js +1 -1
  155. package/lib/search-select/index.d.ts +12 -6
  156. package/lib/search-select/index.js +331 -251
  157. package/lib/search-select/input.d.ts +2 -1
  158. package/lib/search-select/search-select.d.ts +4 -2
  159. package/lib/search-select/selected.d.ts +4 -2
  160. package/lib/search-select/utils.d.ts +6 -0
  161. package/lib/select/index.js +4 -4
  162. package/lib/shared/index.d.ts +0 -1
  163. package/lib/shared/index.js +6 -56
  164. package/lib/sideslider/index.d.ts +31 -222
  165. package/lib/sideslider/index.js +53 -40
  166. package/lib/sideslider/sideslider.css +4 -42
  167. package/lib/sideslider/sideslider.d.ts +14 -105
  168. package/lib/sideslider/sideslider.less +13 -58
  169. package/lib/sideslider/sideslider.variable.css +4 -42
  170. package/lib/slider/index.js +19 -20
  171. package/lib/steps/index.js +4 -4
  172. package/lib/swiper/index.js +1 -1
  173. package/lib/switcher/index.js +1 -1
  174. package/lib/tab/index.js +3 -4
  175. package/lib/table/index.js +6 -8
  176. package/lib/table-column/index.js +1 -1
  177. package/lib/tag/index.js +1 -1
  178. package/lib/tag-input/index.js +3 -4
  179. package/lib/tree/index.js +10 -12
  180. package/lib/upload/index.d.ts +12 -0
  181. package/lib/upload/index.js +25 -34
  182. package/lib/upload/props.d.ts +3 -0
  183. package/lib/upload/upload-trigger.d.ts +6 -0
  184. package/lib/upload/upload.d.ts +6 -0
  185. package/lib/virtual-render/index.js +2 -3
  186. package/package.json +1 -1
  187. 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:
@@ -123,7 +124,7 @@ function _regeneratorRuntime() {
123
124
  function makeInvokeMethod(e, r, n) {
124
125
  var o = h;
125
126
  return function (i, a) {
126
- if (o === f) throw new Error("Generator is already running");
127
+ if (o === f) throw Error("Generator is already running");
127
128
  if (o === s) {
128
129
  if ("throw" === i) throw a;
129
130
  return {
@@ -265,7 +266,7 @@ function _regeneratorRuntime() {
265
266
  } else if (c) {
266
267
  if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
267
268
  } else {
268
- if (!u) throw new Error("try statement without catch or finally");
269
+ if (!u) throw Error("try statement without catch or finally");
269
270
  if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
270
271
  }
271
272
  }
@@ -305,7 +306,7 @@ function _regeneratorRuntime() {
305
306
  return o;
306
307
  }
307
308
  }
308
- throw new Error("illegal catch attempt");
309
+ throw Error("illegal catch attempt");
309
310
  },
310
311
  delegateYield: function delegateYield(e, r, n) {
311
312
  return this.delegate = {
@@ -455,7 +456,7 @@ function toPrimitive(t, r) {
455
456
 
456
457
  function toPropertyKey(t) {
457
458
  var i = toPrimitive(t, "string");
458
- return "symbol" == _typeof(i) ? i : String(i);
459
+ return "symbol" == _typeof(i) ? i : i + "";
459
460
  }
460
461
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
461
462
 
@@ -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;
@@ -884,7 +884,7 @@ function toPrimitive(t, r) {
884
884
 
885
885
  function toPropertyKey(t) {
886
886
  var i = toPrimitive(t, "string");
887
- return "symbol" == _typeof(i) ? i : String(i);
887
+ return "symbol" == _typeof(i) ? i : i + "";
888
888
  }
889
889
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
890
890
 
@@ -39,7 +39,7 @@ const shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODUL
39
39
  ;// CONCATENATED MODULE: external "vue"
40
40
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
41
41
  var external_vue_y = x => () => x
42
- const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent });
42
+ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode });
43
43
  ;// CONCATENATED MODULE: external "../config-provider"
44
44
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
45
45
  var config_provider_y = x => () => x
@@ -107,8 +107,7 @@ var dividerProps = {
107
107
  */
108
108
 
109
109
 
110
-
111
- /* harmony default export */ const divider = ((0,external_vue_namespaceObject.defineComponent)({
110
+ /* harmony default export */ const divider = (defineComponent({
112
111
  name: 'Divider',
113
112
  props: dividerProps,
114
113
  render: function render() {
@@ -69,7 +69,7 @@ function toPrimitive(t, r) {
69
69
 
70
70
  function toPropertyKey(t) {
71
71
  var i = toPrimitive(t, "string");
72
- return "symbol" == _typeof(i) ? i : String(i);
72
+ return "symbol" == _typeof(i) ? i : i + "";
73
73
  }
74
74
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
75
75
 
@@ -90,7 +90,7 @@ function _defineProperty(obj, key, value) {
90
90
  ;// CONCATENATED MODULE: external "vue"
91
91
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
92
92
  var external_vue_y = x => () => x
93
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
93
+ const external_vue_namespaceObject = external_vue_x({ ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
94
94
  ;// CONCATENATED MODULE: external "lodash/merge"
95
95
  var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
96
96
  var merge_y = x => () => x
@@ -249,8 +249,7 @@ const popover_less_namespaceObject = popover_less_x({ });
249
249
  */
250
250
 
251
251
 
252
-
253
- /* harmony default export */ const dropdown_item = ((0,external_vue_namespaceObject.defineComponent)({
252
+ /* harmony default export */ const dropdown_item = (defineComponent({
254
253
  name: 'DropdownItem',
255
254
  props: {
256
255
  /** 外部设置的 class name */
@@ -265,7 +264,7 @@ const popover_less_namespaceObject = popover_less_x({ });
265
264
  };
266
265
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
267
266
  resolveClassName = _usePrefix.resolveClassName;
268
- var wrapperCLasses = (0,external_vue_namespaceObject.computed)(function () {
267
+ var wrapperCLasses = computed(function () {
269
268
  return [resolveClassName('dropdown-item'), props.extCls];
270
269
  });
271
270
  return {
@@ -310,8 +309,7 @@ const popover_less_namespaceObject = popover_less_x({ });
310
309
  */
311
310
 
312
311
 
313
-
314
- /* harmony default export */ const dropdown_menu = ((0,external_vue_namespaceObject.defineComponent)({
312
+ /* harmony default export */ const dropdown_menu = (defineComponent({
315
313
  name: 'DropdownMenu',
316
314
  props: {
317
315
  /** 外部设置的 class name */
@@ -320,7 +318,7 @@ const popover_less_namespaceObject = popover_less_x({ });
320
318
  setup: function setup(props) {
321
319
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
322
320
  resolveClassName = _usePrefix.resolveClassName;
323
- var wrapperCLasses = (0,external_vue_namespaceObject.computed)(function () {
321
+ var wrapperCLasses = computed(function () {
324
322
  return [resolveClassName('dropdown-menu'), props.extCls];
325
323
  });
326
324
  return {
@@ -156,7 +156,7 @@ function toPrimitive(t, r) {
156
156
 
157
157
  function toPropertyKey(t) {
158
158
  var i = toPrimitive(t, "string");
159
- return "symbol" == _typeof(i) ? i : String(i);
159
+ return "symbol" == _typeof(i) ? i : i + "";
160
160
  }
161
161
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
162
162
 
@@ -39,7 +39,7 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
39
39
  ;// CONCATENATED MODULE: external "vue"
40
40
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
41
41
  var external_vue_y = x => () => x
42
- const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent });
42
+ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode });
43
43
  ;// CONCATENATED MODULE: external "../config-provider"
44
44
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
45
45
  var config_provider_y = x => () => x
@@ -73,8 +73,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
73
73
  */
74
74
 
75
75
 
76
-
77
- /* harmony default export */ const fixed_navbar = ((0,external_vue_namespaceObject.defineComponent)({
76
+ /* harmony default export */ const fixed_navbar = (defineComponent({
78
77
  name: 'FixedNavbar',
79
78
  props: {
80
79
  navItems: shared_namespaceObject.PropTypes.array.def([]),
package/lib/form/index.js CHANGED
@@ -191,7 +191,7 @@ function toPrimitive(t, r) {
191
191
 
192
192
  function toPropertyKey(t) {
193
193
  var i = toPrimitive(t, "string");
194
- return "symbol" == _typeof(i) ? i : String(i);
194
+ return "symbol" == _typeof(i) ? i : i + "";
195
195
  }
196
196
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
197
197
 
@@ -55,7 +55,7 @@ function toPrimitive(t, r) {
55
55
 
56
56
  function toPropertyKey(t) {
57
57
  var i = toPrimitive(t, "string");
58
- return "symbol" == _typeof(i) ? i : String(i);
58
+ return "symbol" == _typeof(i) ? i : i + "";
59
59
  }
60
60
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
61
61
 
@@ -55,7 +55,7 @@ function toPrimitive(t, r) {
55
55
 
56
56
  function toPropertyKey(t) {
57
57
  var i = toPrimitive(t, "string");
58
- return "symbol" == _typeof(i) ? i : String(i);
58
+ return "symbol" == _typeof(i) ? i : i + "";
59
59
  }
60
60
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
61
61
 
@@ -55,7 +55,7 @@ function toPrimitive(t, r) {
55
55
 
56
56
  function toPropertyKey(t) {
57
57
  var i = toPrimitive(t, "string");
58
- return "symbol" == _typeof(i) ? i : String(i);
58
+ return "symbol" == _typeof(i) ? i : i + "";
59
59
  }
60
60
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
61
61
 
@@ -55,7 +55,7 @@ function toPrimitive(t, r) {
55
55
 
56
56
  function toPropertyKey(t) {
57
57
  var i = toPrimitive(t, "string");
58
- return "symbol" == _typeof(i) ? i : String(i);
58
+ return "symbol" == _typeof(i) ? i : i + "";
59
59
  }
60
60
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
61
61
 
@@ -55,7 +55,7 @@ function toPrimitive(t, r) {
55
55
 
56
56
  function toPropertyKey(t) {
57
57
  var i = toPrimitive(t, "string");
58
- return "symbol" == _typeof(i) ? i : String(i);
58
+ return "symbol" == _typeof(i) ? i : i + "";
59
59
  }
60
60
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
61
61
 
@@ -55,7 +55,7 @@ function toPrimitive(t, r) {
55
55
 
56
56
  function toPropertyKey(t) {
57
57
  var i = toPrimitive(t, "string");
58
- return "symbol" == _typeof(i) ? i : String(i);
58
+ return "symbol" == _typeof(i) ? i : i + "";
59
59
  }
60
60
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
61
61