bkui-vue 0.0.3-beta.6 → 1.0.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 (276) hide show
  1. package/README.md +1 -0
  2. package/dist/index.cjs.js +47 -47
  3. package/dist/index.esm.js +10444 -10431
  4. package/dist/index.umd.js +47 -47
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/index.d.ts +57 -111
  8. package/lib/affix/index.js +35 -34
  9. package/lib/alert/alert.d.ts +1 -1
  10. package/lib/alert/index.d.ts +82 -132
  11. package/lib/alert/index.js +43 -42
  12. package/lib/animate-number/index.d.ts +33 -96
  13. package/lib/animate-number/index.js +7 -7
  14. package/lib/backtop/index.d.ts +69 -117
  15. package/lib/backtop/index.js +23 -22
  16. package/lib/badge/badge.d.ts +1 -1
  17. package/lib/badge/index.d.ts +120 -153
  18. package/lib/badge/index.js +40 -39
  19. package/lib/breadcrumb/index.d.ts +67 -119
  20. package/lib/breadcrumb/index.js +48 -47
  21. package/lib/button/button.d.ts +2 -2
  22. package/lib/button/index.d.ts +119 -155
  23. package/lib/button/index.js +60 -53
  24. package/lib/card/card.d.ts +1 -1
  25. package/lib/card/index.d.ts +129 -158
  26. package/lib/card/index.js +62 -57
  27. package/lib/cascader/cascader.d.ts +3 -3
  28. package/lib/cascader/index.d.ts +393 -354
  29. package/lib/cascader/index.js +338 -320
  30. package/lib/checkbox/checkbox.d.ts +1 -1
  31. package/lib/checkbox/index.d.ts +119 -161
  32. package/lib/checkbox/index.js +77 -78
  33. package/lib/code-diff/code-diff.css +0 -1
  34. package/lib/code-diff/code-diff.d.ts +1 -0
  35. package/lib/code-diff/code-diff.less +1 -1
  36. package/lib/code-diff/code-diff.variable.css +0 -1
  37. package/lib/code-diff/index.d.ts +65 -82
  38. package/lib/code-diff/index.js +532 -452
  39. package/lib/collapse/index.d.ts +144 -168
  40. package/lib/collapse/index.js +67 -66
  41. package/lib/collapse-transition/index.d.ts +19 -94
  42. package/lib/collapse-transition/index.js +10 -10
  43. package/lib/color-picker/color-picker.d.ts +1 -1
  44. package/lib/color-picker/index.d.ts +128 -154
  45. package/lib/color-picker/index.js +74 -76
  46. package/lib/components.js +63 -504
  47. package/lib/config-provider/index.d.ts +159 -226
  48. package/lib/config-provider/index.js +49 -45
  49. package/lib/config-provider/use-global-config.d.ts +2 -2
  50. package/lib/container/container.d.ts +1 -1
  51. package/lib/container/index.d.ts +74 -85
  52. package/lib/container/index.js +47 -46
  53. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  54. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  55. package/lib/date-picker/date-picker.d.ts +3 -3
  56. package/lib/date-picker/index.d.ts +384 -351
  57. package/lib/date-picker/index.js +164 -170
  58. package/lib/date-picker/panel/date-range.d.ts +1 -1
  59. package/lib/date-picker/panel/date.d.ts +1 -1
  60. package/lib/date-picker/panel/time-range.d.ts +2 -2
  61. package/lib/date-picker/panel/time.d.ts +1 -1
  62. package/lib/date-picker/time-picker.d.ts +3 -3
  63. package/lib/dialog/index.d.ts +355 -309
  64. package/lib/dialog/index.js +291 -279
  65. package/lib/directives/index.js +51 -51
  66. package/lib/dist.index.js +5 -61
  67. package/lib/divider/index.d.ts +57 -111
  68. package/lib/divider/index.js +16 -15
  69. package/lib/dropdown/dropdown.d.ts +1 -1
  70. package/lib/dropdown/index.d.ts +94 -136
  71. package/lib/dropdown/index.js +56 -49
  72. package/lib/exception/index.d.ts +41 -102
  73. package/lib/exception/index.js +37 -37
  74. package/lib/fixed-navbar/index.d.ts +59 -113
  75. package/lib/fixed-navbar/index.js +16 -15
  76. package/lib/form/form.d.ts +1 -1
  77. package/lib/form/index.d.ts +80 -132
  78. package/lib/form/index.js +83 -83
  79. package/lib/hooks.js +8 -48
  80. package/lib/icon/angle-double-down-line.js +23 -23
  81. package/lib/icon/angle-double-left-line.js +23 -23
  82. package/lib/icon/angle-double-left.js +23 -23
  83. package/lib/icon/angle-double-right-line.js +23 -23
  84. package/lib/icon/angle-double-right.js +23 -23
  85. package/lib/icon/angle-double-up-line.js +23 -23
  86. package/lib/icon/angle-down-fill.js +23 -23
  87. package/lib/icon/angle-down-line.js +23 -23
  88. package/lib/icon/angle-down.js +23 -23
  89. package/lib/icon/angle-left.js +23 -23
  90. package/lib/icon/angle-right.js +23 -23
  91. package/lib/icon/angle-up-fill.js +23 -23
  92. package/lib/icon/angle-up.js +23 -23
  93. package/lib/icon/archive-fill.js +23 -23
  94. package/lib/icon/arrows-left.js +23 -23
  95. package/lib/icon/arrows-right.js +23 -23
  96. package/lib/icon/assistant.js +23 -23
  97. package/lib/icon/audio-fill.js +23 -23
  98. package/lib/icon/bk.js +23 -23
  99. package/lib/icon/circle.js +23 -23
  100. package/lib/icon/close-line.js +23 -23
  101. package/lib/icon/close.js +23 -23
  102. package/lib/icon/code.js +23 -23
  103. package/lib/icon/cog-shape.js +23 -23
  104. package/lib/icon/collapse-left.js +23 -23
  105. package/lib/icon/copy-shape.js +23 -23
  106. package/lib/icon/copy.js +23 -23
  107. package/lib/icon/data-shape.js +23 -23
  108. package/lib/icon/del.js +23 -23
  109. package/lib/icon/doc-fill.js +23 -23
  110. package/lib/icon/done.js +23 -23
  111. package/lib/icon/down-shape.js +23 -23
  112. package/lib/icon/down-small.js +23 -23
  113. package/lib/icon/edit-line.js +23 -23
  114. package/lib/icon/ellipsis.js +23 -23
  115. package/lib/icon/enlarge-line.js +23 -23
  116. package/lib/icon/error.js +23 -23
  117. package/lib/icon/excel-fill.js +23 -23
  118. package/lib/icon/exclamation-circle-shape.js +23 -23
  119. package/lib/icon/eye.js +23 -23
  120. package/lib/icon/filliscreen-line.js +23 -23
  121. package/lib/icon/fix-line.js +23 -23
  122. package/lib/icon/fix-shape.js +23 -23
  123. package/lib/icon/folder-open.js +23 -23
  124. package/lib/icon/folder-shape-open.js +23 -23
  125. package/lib/icon/folder-shape.js +23 -23
  126. package/lib/icon/folder.js +23 -23
  127. package/lib/icon/funnel.js +23 -23
  128. package/lib/icon/grag-fill.js +23 -23
  129. package/lib/icon/help-document-fill.js +23 -23
  130. package/lib/icon/help-fill.js +23 -23
  131. package/lib/icon/help.js +23 -23
  132. package/lib/icon/image-fill.js +29 -29
  133. package/lib/icon/img-error.js +29 -29
  134. package/lib/icon/img-placehoulder.js +29 -29
  135. package/lib/icon/index.js +485 -485
  136. package/lib/icon/info-line.js +29 -29
  137. package/lib/icon/info.js +29 -29
  138. package/lib/icon/left-shape.js +29 -29
  139. package/lib/icon/left-turn-line.js +29 -29
  140. package/lib/icon/loading.js +29 -29
  141. package/lib/icon/narrow-line.js +29 -29
  142. package/lib/icon/original.js +29 -29
  143. package/lib/icon/pdf-fill.js +29 -29
  144. package/lib/icon/play-shape.js +29 -29
  145. package/lib/icon/plus.js +29 -29
  146. package/lib/icon/ppt-fill.js +29 -29
  147. package/lib/icon/qq.js +29 -29
  148. package/lib/icon/right-shape.js +29 -29
  149. package/lib/icon/right-turn-line.js +29 -29
  150. package/lib/icon/search.js +29 -29
  151. package/lib/icon/share.js +29 -29
  152. package/lib/icon/spinner.js +29 -29
  153. package/lib/icon/success.js +29 -29
  154. package/lib/icon/switcher-loading.js +29 -29
  155. package/lib/icon/text-file.js +29 -29
  156. package/lib/icon/text-fill.js +29 -29
  157. package/lib/icon/transfer.js +29 -29
  158. package/lib/icon/tree-application-shape.js +29 -29
  159. package/lib/icon/unfull-screen.js +29 -29
  160. package/lib/icon/unvisible.js +29 -29
  161. package/lib/icon/up-shape.js +29 -29
  162. package/lib/icon/upload.js +29 -29
  163. package/lib/icon/video-fill.js +29 -29
  164. package/lib/icon/warn.js +29 -29
  165. package/lib/icon/weixin-pro.js +29 -29
  166. package/lib/icon/weixin.js +29 -29
  167. package/lib/image/index.d.ts +113 -149
  168. package/lib/image/index.js +62 -62
  169. package/lib/index.js +8 -72
  170. package/lib/info-box/index.js +296 -284
  171. package/lib/input/index.d.ts +326 -293
  172. package/lib/input/index.js +316 -317
  173. package/lib/link/index.d.ts +73 -122
  174. package/lib/link/index.js +16 -15
  175. package/lib/loading/index.d.ts +130 -156
  176. package/lib/loading/index.js +49 -50
  177. package/lib/loading/loading.d.ts +1 -1
  178. package/lib/locale/index.js +2 -4
  179. package/lib/menu/index.d.ts +51 -112
  180. package/lib/menu/index.js +49 -48
  181. package/lib/message/index.js +69 -70
  182. package/lib/message/messageConstructor.d.ts +5 -5
  183. package/lib/modal/index.d.ts +261 -249
  184. package/lib/modal/index.js +535 -75
  185. package/lib/navigation/index.d.ts +152 -188
  186. package/lib/navigation/index.js +17 -16
  187. package/lib/notify/index.js +56 -57
  188. package/lib/notify/notifyConstructor.d.ts +1 -1
  189. package/lib/overflow-title/index.d.ts +314 -242
  190. package/lib/overflow-title/index.js +32 -25
  191. package/lib/pagination/index.d.ts +194 -205
  192. package/lib/pagination/index.js +116 -109
  193. package/lib/plugin-popover/index.js +247 -153
  194. package/lib/plugins/index.js +2 -2
  195. package/lib/pop-confirm/index.d.ts +126 -159
  196. package/lib/pop-confirm/index.js +43 -31
  197. package/lib/pop-confirm/pop-confirm.d.ts +1 -1
  198. package/lib/popover/content.d.ts +1 -1
  199. package/lib/popover/index.d.ts +374 -330
  200. package/lib/popover/index.js +251 -156
  201. package/lib/popover2/index.d.ts +8 -83
  202. package/lib/popover2/index.js +5 -5
  203. package/lib/preset.d.ts +2 -287
  204. package/lib/preset.js +16 -58
  205. package/lib/process/index.d.ts +93 -137
  206. package/lib/process/index.js +253 -254
  207. package/lib/progress/index.d.ts +178 -187
  208. package/lib/progress/index.js +48 -47
  209. package/lib/progress/progress.d.ts +2 -2
  210. package/lib/radio/index.d.ts +83 -135
  211. package/lib/radio/index.js +80 -81
  212. package/lib/rate/index.d.ts +55 -112
  213. package/lib/rate/index.js +43 -43
  214. package/lib/resize-layout/index.d.ts +156 -185
  215. package/lib/resize-layout/index.js +48 -48
  216. package/lib/resize-layout/resize-layout.d.ts +2 -2
  217. package/lib/search-select/index.d.ts +292 -327
  218. package/lib/search-select/index.js +310 -293
  219. package/lib/search-select/input.d.ts +2 -2
  220. package/lib/search-select/search-select.d.ts +3 -3
  221. package/lib/search-select/selected.d.ts +2 -2
  222. package/lib/select/index.d.ts +1234 -1135
  223. package/lib/select/index.js +427 -392
  224. package/lib/select/select.d.ts +121 -161
  225. package/lib/select/selectTagInput.d.ts +2 -2
  226. package/lib/shared/helper.d.ts +4 -0
  227. package/lib/shared/index.js +235 -217
  228. package/lib/sideslider/index.d.ts +247 -233
  229. package/lib/sideslider/index.js +264 -263
  230. package/lib/slider/index.d.ts +204 -204
  231. package/lib/slider/index.js +245 -233
  232. package/lib/steps/index.d.ts +114 -150
  233. package/lib/steps/index.js +257 -257
  234. package/lib/styles/index.d.ts +0 -1
  235. package/lib/swiper/index.d.ts +81 -127
  236. package/lib/swiper/index.js +35 -34
  237. package/lib/switcher/index.d.ts +152 -174
  238. package/lib/switcher/index.js +52 -53
  239. package/lib/tab/index.d.ts +199 -211
  240. package/lib/tab/index.js +78 -79
  241. package/lib/table/components/table-column.d.ts +2 -2
  242. package/lib/table/index.d.ts +605 -593
  243. package/lib/table/index.js +275 -237
  244. package/lib/table/plugins/use-pagination.d.ts +1 -1
  245. package/lib/table/table.d.ts +1 -1
  246. package/lib/table/use-common.d.ts +67 -34
  247. package/lib/table-column/index.d.ts +207 -243
  248. package/lib/table-column/index.js +61 -62
  249. package/lib/tag/index.d.ts +95 -142
  250. package/lib/tag/index.js +41 -40
  251. package/lib/tag-input/index.d.ts +690 -498
  252. package/lib/tag-input/index.js +135 -129
  253. package/lib/tag-input/tag-input.d.ts +5 -5
  254. package/lib/time-picker/index.d.ts +442 -385
  255. package/lib/time-picker/index.js +10 -9
  256. package/lib/timeline/index.d.ts +50 -109
  257. package/lib/timeline/index.js +20 -20
  258. package/lib/transfer/index.d.ts +191 -206
  259. package/lib/transfer/index.js +52 -38
  260. package/lib/tree/index.d.ts +322 -288
  261. package/lib/tree/index.js +129 -113
  262. package/lib/tree/tree.d.ts +1 -1
  263. package/lib/tree/use-tree-init.d.ts +1 -1
  264. package/lib/upload/index.d.ts +281 -254
  265. package/lib/upload/index.js +313 -302
  266. package/lib/upload/upload.d.ts +2 -2
  267. package/lib/virtual-render/index.d.ts +337 -242
  268. package/lib/virtual-render/index.js +66 -65
  269. package/lib/virtual-render/virtual-render.d.ts +1 -1
  270. package/package.json +10 -14
  271. package/lib/version-log/index.d.ts +0 -298
  272. package/lib/version-log/index.js +0 -9045
  273. package/lib/version-log/version-log.css +0 -224
  274. package/lib/version-log/version-log.d.ts +0 -203
  275. package/lib/version-log/version-log.less +0 -239
  276. package/lib/version-log/version-log.variable.css +0 -350
@@ -1,11 +1,397 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
1
+ import "./modal.less";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
- import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
4
5
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
5
- /******/ // The require scope
6
- /******/ var __webpack_require__ = {};
6
+ /******/ var __webpack_modules__ = ({
7
+
8
+ /***/ 7609:
9
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10
+
11
+ var _typeof = (__webpack_require__(7425)["default"]);
12
+ function _regeneratorRuntime() {
13
+ "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
14
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
15
+ return e;
16
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
17
+ var t,
18
+ e = {},
19
+ r = Object.prototype,
20
+ n = r.hasOwnProperty,
21
+ o = Object.defineProperty || function (t, e, r) {
22
+ t[e] = r.value;
23
+ },
24
+ i = "function" == typeof Symbol ? Symbol : {},
25
+ a = i.iterator || "@@iterator",
26
+ c = i.asyncIterator || "@@asyncIterator",
27
+ u = i.toStringTag || "@@toStringTag";
28
+ function define(t, e, r) {
29
+ return Object.defineProperty(t, e, {
30
+ value: r,
31
+ enumerable: !0,
32
+ configurable: !0,
33
+ writable: !0
34
+ }), t[e];
35
+ }
36
+ try {
37
+ define({}, "");
38
+ } catch (t) {
39
+ define = function define(t, e, r) {
40
+ return t[e] = r;
41
+ };
42
+ }
43
+ function wrap(t, e, r, n) {
44
+ var i = e && e.prototype instanceof Generator ? e : Generator,
45
+ a = Object.create(i.prototype),
46
+ c = new Context(n || []);
47
+ return o(a, "_invoke", {
48
+ value: makeInvokeMethod(t, r, c)
49
+ }), a;
50
+ }
51
+ function tryCatch(t, e, r) {
52
+ try {
53
+ return {
54
+ type: "normal",
55
+ arg: t.call(e, r)
56
+ };
57
+ } catch (t) {
58
+ return {
59
+ type: "throw",
60
+ arg: t
61
+ };
62
+ }
63
+ }
64
+ e.wrap = wrap;
65
+ var h = "suspendedStart",
66
+ l = "suspendedYield",
67
+ f = "executing",
68
+ s = "completed",
69
+ y = {};
70
+ function Generator() {}
71
+ function GeneratorFunction() {}
72
+ function GeneratorFunctionPrototype() {}
73
+ var p = {};
74
+ define(p, a, function () {
75
+ return this;
76
+ });
77
+ var d = Object.getPrototypeOf,
78
+ v = d && d(d(values([])));
79
+ v && v !== r && n.call(v, a) && (p = v);
80
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
81
+ function defineIteratorMethods(t) {
82
+ ["next", "throw", "return"].forEach(function (e) {
83
+ define(t, e, function (t) {
84
+ return this._invoke(e, t);
85
+ });
86
+ });
87
+ }
88
+ function AsyncIterator(t, e) {
89
+ function invoke(r, o, i, a) {
90
+ var c = tryCatch(t[r], t, o);
91
+ if ("throw" !== c.type) {
92
+ var u = c.arg,
93
+ h = u.value;
94
+ return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
95
+ invoke("next", t, i, a);
96
+ }, function (t) {
97
+ invoke("throw", t, i, a);
98
+ }) : e.resolve(h).then(function (t) {
99
+ u.value = t, i(u);
100
+ }, function (t) {
101
+ return invoke("throw", t, i, a);
102
+ });
103
+ }
104
+ a(c.arg);
105
+ }
106
+ var r;
107
+ o(this, "_invoke", {
108
+ value: function value(t, n) {
109
+ function callInvokeWithMethodAndArg() {
110
+ return new e(function (e, r) {
111
+ invoke(t, n, e, r);
112
+ });
113
+ }
114
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
115
+ }
116
+ });
117
+ }
118
+ function makeInvokeMethod(e, r, n) {
119
+ var o = h;
120
+ return function (i, a) {
121
+ if (o === f) throw new Error("Generator is already running");
122
+ if (o === s) {
123
+ if ("throw" === i) throw a;
124
+ return {
125
+ value: t,
126
+ done: !0
127
+ };
128
+ }
129
+ for (n.method = i, n.arg = a;;) {
130
+ var c = n.delegate;
131
+ if (c) {
132
+ var u = maybeInvokeDelegate(c, n);
133
+ if (u) {
134
+ if (u === y) continue;
135
+ return u;
136
+ }
137
+ }
138
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
139
+ if (o === h) throw o = s, n.arg;
140
+ n.dispatchException(n.arg);
141
+ } else "return" === n.method && n.abrupt("return", n.arg);
142
+ o = f;
143
+ var p = tryCatch(e, r, n);
144
+ if ("normal" === p.type) {
145
+ if (o = n.done ? s : l, p.arg === y) continue;
146
+ return {
147
+ value: p.arg,
148
+ done: n.done
149
+ };
150
+ }
151
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
152
+ }
153
+ };
154
+ }
155
+ function maybeInvokeDelegate(e, r) {
156
+ var n = r.method,
157
+ o = e.iterator[n];
158
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
159
+ var i = tryCatch(o, e.iterator, r.arg);
160
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
161
+ var a = i.arg;
162
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
163
+ }
164
+ function pushTryEntry(t) {
165
+ var e = {
166
+ tryLoc: t[0]
167
+ };
168
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
169
+ }
170
+ function resetTryEntry(t) {
171
+ var e = t.completion || {};
172
+ e.type = "normal", delete e.arg, t.completion = e;
173
+ }
174
+ function Context(t) {
175
+ this.tryEntries = [{
176
+ tryLoc: "root"
177
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
178
+ }
179
+ function values(e) {
180
+ if (e || "" === e) {
181
+ var r = e[a];
182
+ if (r) return r.call(e);
183
+ if ("function" == typeof e.next) return e;
184
+ if (!isNaN(e.length)) {
185
+ var o = -1,
186
+ i = function next() {
187
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
188
+ return next.value = t, next.done = !0, next;
189
+ };
190
+ return i.next = i;
191
+ }
192
+ }
193
+ throw new TypeError(_typeof(e) + " is not iterable");
194
+ }
195
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
196
+ value: GeneratorFunctionPrototype,
197
+ configurable: !0
198
+ }), o(GeneratorFunctionPrototype, "constructor", {
199
+ value: GeneratorFunction,
200
+ configurable: !0
201
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
202
+ var e = "function" == typeof t && t.constructor;
203
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
204
+ }, e.mark = function (t) {
205
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
206
+ }, e.awrap = function (t) {
207
+ return {
208
+ __await: t
209
+ };
210
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
211
+ return this;
212
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
213
+ void 0 === i && (i = Promise);
214
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
215
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
216
+ return t.done ? t.value : a.next();
217
+ });
218
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
219
+ return this;
220
+ }), define(g, "toString", function () {
221
+ return "[object Generator]";
222
+ }), e.keys = function (t) {
223
+ var e = Object(t),
224
+ r = [];
225
+ for (var n in e) r.push(n);
226
+ return r.reverse(), function next() {
227
+ for (; r.length;) {
228
+ var t = r.pop();
229
+ if (t in e) return next.value = t, next.done = !1, next;
230
+ }
231
+ return next.done = !0, next;
232
+ };
233
+ }, e.values = values, Context.prototype = {
234
+ constructor: Context,
235
+ reset: function reset(e) {
236
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
237
+ },
238
+ stop: function stop() {
239
+ this.done = !0;
240
+ var t = this.tryEntries[0].completion;
241
+ if ("throw" === t.type) throw t.arg;
242
+ return this.rval;
243
+ },
244
+ dispatchException: function dispatchException(e) {
245
+ if (this.done) throw e;
246
+ var r = this;
247
+ function handle(n, o) {
248
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
249
+ }
250
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
251
+ var i = this.tryEntries[o],
252
+ a = i.completion;
253
+ if ("root" === i.tryLoc) return handle("end");
254
+ if (i.tryLoc <= this.prev) {
255
+ var c = n.call(i, "catchLoc"),
256
+ u = n.call(i, "finallyLoc");
257
+ if (c && u) {
258
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
259
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
260
+ } else if (c) {
261
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
262
+ } else {
263
+ if (!u) throw new Error("try statement without catch or finally");
264
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
265
+ }
266
+ }
267
+ }
268
+ },
269
+ abrupt: function abrupt(t, e) {
270
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
271
+ var o = this.tryEntries[r];
272
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
273
+ var i = o;
274
+ break;
275
+ }
276
+ }
277
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
278
+ var a = i ? i.completion : {};
279
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
280
+ },
281
+ complete: function complete(t, e) {
282
+ if ("throw" === t.type) throw t.arg;
283
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
284
+ },
285
+ finish: function finish(t) {
286
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
287
+ var r = this.tryEntries[e];
288
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
289
+ }
290
+ },
291
+ "catch": function _catch(t) {
292
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
293
+ var r = this.tryEntries[e];
294
+ if (r.tryLoc === t) {
295
+ var n = r.completion;
296
+ if ("throw" === n.type) {
297
+ var o = n.arg;
298
+ resetTryEntry(r);
299
+ }
300
+ return o;
301
+ }
302
+ }
303
+ throw new Error("illegal catch attempt");
304
+ },
305
+ delegateYield: function delegateYield(e, r, n) {
306
+ return this.delegate = {
307
+ iterator: values(e),
308
+ resultName: r,
309
+ nextLoc: n
310
+ }, "next" === this.method && (this.arg = t), y;
311
+ }
312
+ }, e;
313
+ }
314
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
315
+
316
+ /***/ }),
317
+
318
+ /***/ 7425:
319
+ /***/ ((module) => {
320
+
321
+ function _typeof(o) {
322
+ "@babel/helpers - typeof";
323
+
324
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
325
+ return typeof o;
326
+ } : function (o) {
327
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
328
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
329
+ }
330
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
331
+
332
+ /***/ }),
333
+
334
+ /***/ 2841:
335
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
336
+
337
+ // TODO(Babel 8): Remove this file.
338
+
339
+ var runtime = __webpack_require__(7609)();
340
+ module.exports = runtime;
341
+
342
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
343
+ try {
344
+ regeneratorRuntime = runtime;
345
+ } catch (accidentalStrictMode) {
346
+ if (typeof globalThis === "object") {
347
+ globalThis.regeneratorRuntime = runtime;
348
+ } else {
349
+ Function("r", "regeneratorRuntime = r")(runtime);
350
+ }
351
+ }
352
+
353
+
354
+ /***/ })
355
+
356
+ /******/ });
357
+ /************************************************************************/
358
+ /******/ // The module cache
359
+ /******/ var __webpack_module_cache__ = {};
360
+ /******/
361
+ /******/ // The require function
362
+ /******/ function __webpack_require__(moduleId) {
363
+ /******/ // Check if module is in cache
364
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
365
+ /******/ if (cachedModule !== undefined) {
366
+ /******/ return cachedModule.exports;
367
+ /******/ }
368
+ /******/ // Create a new module (and put it into the cache)
369
+ /******/ var module = __webpack_module_cache__[moduleId] = {
370
+ /******/ // no module.id needed
371
+ /******/ // no module.loaded needed
372
+ /******/ exports: {}
373
+ /******/ };
374
+ /******/
375
+ /******/ // Execute the module function
376
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
377
+ /******/
378
+ /******/ // Return the exports of the module
379
+ /******/ return module.exports;
380
+ /******/ }
7
381
  /******/
8
382
  /************************************************************************/
383
+ /******/ /* webpack/runtime/compat get default export */
384
+ /******/ (() => {
385
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
386
+ /******/ __webpack_require__.n = (module) => {
387
+ /******/ var getter = module && module.__esModule ?
388
+ /******/ () => (module['default']) :
389
+ /******/ () => (module);
390
+ /******/ __webpack_require__.d(getter, { a: getter });
391
+ /******/ return getter;
392
+ /******/ };
393
+ /******/ })();
394
+ /******/
9
395
  /******/ /* webpack/runtime/define property getters */
10
396
  /******/ (() => {
11
397
  /******/ // define getter functions for harmony exports
@@ -25,51 +411,84 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
25
411
  /******/
26
412
  /************************************************************************/
27
413
  var __webpack_exports__ = {};
414
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
415
+ (() => {
28
416
 
29
417
  // EXPORTS
30
418
  __webpack_require__.d(__webpack_exports__, {
31
- $S: () => (/* binding */ BkModal),
32
- ZP: () => (/* binding */ src),
33
- ty: () => (/* reexport */ propsMixin)
419
+ BkModal: () => (/* binding */ BkModal),
420
+ "default": () => (/* binding */ src),
421
+ propsMixin: () => (/* reexport */ propsMixin)
34
422
  });
35
423
 
36
424
  ;// CONCATENATED MODULE: external "../shared"
37
425
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
38
426
  var y = x => () => x
39
- const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.bkZIndexManager, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.dialogTypeUnion, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.isElement, ["mask"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.mask, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
427
+ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["isPromise"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isPromise, ["mask"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.mask, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
428
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
429
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
430
+ try {
431
+ var info = gen[key](arg);
432
+ var value = info.value;
433
+ } catch (error) {
434
+ reject(error);
435
+ return;
436
+ }
437
+ if (info.done) {
438
+ resolve(value);
439
+ } else {
440
+ Promise.resolve(value).then(_next, _throw);
441
+ }
442
+ }
443
+ function _asyncToGenerator(fn) {
444
+ return function () {
445
+ var self = this,
446
+ args = arguments;
447
+ return new Promise(function (resolve, reject) {
448
+ var gen = fn.apply(self, args);
449
+ function _next(value) {
450
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
451
+ }
452
+ function _throw(err) {
453
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
454
+ }
455
+ _next(undefined);
456
+ });
457
+ };
458
+ }
40
459
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
41
- function _typeof(obj) {
460
+ function _typeof(o) {
42
461
  "@babel/helpers - typeof";
43
462
 
44
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
45
- return typeof obj;
46
- } : function (obj) {
47
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
48
- }, _typeof(obj);
463
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
464
+ return typeof o;
465
+ } : function (o) {
466
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
467
+ }, _typeof(o);
49
468
  }
50
469
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
51
470
 
52
- function _toPrimitive(input, hint) {
53
- if (_typeof(input) !== "object" || input === null) return input;
54
- var prim = input[Symbol.toPrimitive];
55
- if (prim !== undefined) {
56
- var res = prim.call(input, hint || "default");
57
- if (_typeof(res) !== "object") return res;
471
+ function toPrimitive(t, r) {
472
+ if ("object" != _typeof(t) || !t) return t;
473
+ var e = t[Symbol.toPrimitive];
474
+ if (void 0 !== e) {
475
+ var i = e.call(t, r || "default");
476
+ if ("object" != _typeof(i)) return i;
58
477
  throw new TypeError("@@toPrimitive must return a primitive value.");
59
478
  }
60
- return (hint === "string" ? String : Number)(input);
479
+ return ("string" === r ? String : Number)(t);
61
480
  }
62
481
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
63
482
 
64
483
 
65
- function _toPropertyKey(arg) {
66
- var key = _toPrimitive(arg, "string");
67
- return _typeof(key) === "symbol" ? key : String(key);
484
+ function toPropertyKey(t) {
485
+ var i = toPrimitive(t, "string");
486
+ return "symbol" == _typeof(i) ? i : String(i);
68
487
  }
69
488
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
70
489
 
71
490
  function _defineProperty(obj, key, value) {
72
- key = _toPropertyKey(key);
491
+ key = toPropertyKey(key);
73
492
  if (key in obj) {
74
493
  Object.defineProperty(obj, key, {
75
494
  value: value,
@@ -86,10 +505,13 @@ function _defineProperty(obj, key, value) {
86
505
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
87
506
  var external_vue_y = x => () => x
88
507
  const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
508
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
509
+ var regenerator = __webpack_require__(2841);
510
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
89
511
  ;// CONCATENATED MODULE: external "../config-provider"
90
- var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
91
- var external_config_provider_y = x => () => x
92
- const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
512
+ var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
513
+ var config_provider_y = x => () => x
514
+ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
93
515
  ;// CONCATENATED MODULE: external "vue-types"
94
516
  var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
95
517
  var external_vue_types_y = x => () => x
@@ -131,59 +553,61 @@ var ModalSizeEnum;
131
553
  })(ModalSizeEnum || (ModalSizeEnum = {}));
132
554
  var propsMixin = {
133
555
  // 是否显示弹框
134
- isShow: external_shared_namespaceObject.PropTypes.bool.def(false),
135
- width: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('50%'),
136
- height: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('50%'),
556
+ isShow: shared_namespaceObject.PropTypes.bool.def(false),
557
+ width: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('50%'),
558
+ height: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('50%'),
137
559
  // 配置自定义样式类名
138
- extCls: external_shared_namespaceObject.PropTypes.string || external_shared_namespaceObject.PropTypes.array,
560
+ extCls: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.array,
139
561
  // 弹框出现时,是否允许页面滚动
140
- scrollable: external_shared_namespaceObject.PropTypes.bool.def(true),
562
+ scrollable: shared_namespaceObject.PropTypes.bool.def(true),
141
563
  // 是否允许出现遮罩
142
- showMask: external_shared_namespaceObject.PropTypes.bool.def(true),
564
+ showMask: shared_namespaceObject.PropTypes.bool.def(true),
143
565
  // 是否显示右上角的关闭 icon
144
- closeIcon: external_shared_namespaceObject.PropTypes.bool.def(true),
566
+ closeIcon: shared_namespaceObject.PropTypes.bool.def(true),
145
567
  // 是否允许 esc 按键关闭弹框
146
- escClose: external_shared_namespaceObject.PropTypes.bool.def(true),
568
+ escClose: shared_namespaceObject.PropTypes.bool.def(true),
147
569
  // 是否全屏
148
- fullscreen: external_shared_namespaceObject.PropTypes.bool.def(false),
570
+ fullscreen: shared_namespaceObject.PropTypes.bool.def(false),
149
571
  // 弹框尺寸
150
572
  size: (0,external_vue_types_namespaceObject.toType)('size', {}),
151
573
  // 是否可拖拽
152
- draggable: external_shared_namespaceObject.PropTypes.bool.def(true),
574
+ draggable: shared_namespaceObject.PropTypes.bool.def(true),
153
575
  // 是否允许点击遮罩关闭弹窗
154
- quickClose: external_shared_namespaceObject.PropTypes.bool.def(true),
576
+ quickClose: shared_namespaceObject.PropTypes.bool.def(true),
155
577
  // 是否显示在body内(即与id#app同级
156
- transfer: external_shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(false),
578
+ transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(false),
157
579
  // 弹出层z-index,实际显示的值会自动+1。为了抱证在遮罩上正常显示
158
- zIndex: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]),
580
+ zIndex: shared_namespaceObject.PropTypes.oneOfType([String, Number]),
159
581
  // 内容区最大高度
160
- maxHeight: external_shared_namespaceObject.PropTypes.string,
582
+ maxHeight: shared_namespaceObject.PropTypes.string,
161
583
  // 弹出方向
162
- direction: external_shared_namespaceObject.PropTypes.string,
584
+ direction: shared_namespaceObject.PropTypes.string,
163
585
  // title
164
- title: external_shared_namespaceObject.PropTypes.string.def(''),
586
+ title: shared_namespaceObject.PropTypes.string.def(''),
165
587
  // 动画类型
166
- animateType: external_shared_namespaceObject.PropTypes.string.def('slide'),
588
+ animateType: shared_namespaceObject.PropTypes.string.def('slide'),
167
589
  // 弹框的渲染方式
168
- renderDirective: (0,external_shared_namespaceObject.renderDirectiveType)(),
590
+ renderDirective: (0,shared_namespaceObject.renderDirectiveType)(),
169
591
  // 关闭前回调
170
- beforeClose: external_shared_namespaceObject.PropTypes.custom(function () {
592
+ beforeClose: shared_namespaceObject.PropTypes.custom(function () {
171
593
  return true;
172
594
  }),
173
595
  // 对话框类型
174
- dialogType: (0,external_shared_namespaceObject.dialogTypeUnion)(),
596
+ dialogType: (0,shared_namespaceObject.dialogTypeUnion)(),
175
597
  // 是否允许多个弹框同时存在
176
- multiInstance: external_shared_namespaceObject.PropTypes.bool.def(true),
598
+ multiInstance: shared_namespaceObject.PropTypes.bool.def(true),
177
599
  // info-box
178
- infoType: external_shared_namespaceObject.PropTypes.theme(),
179
- left: external_shared_namespaceObject.PropTypes.string,
180
- top: external_shared_namespaceObject.PropTypes.string
600
+ infoType: shared_namespaceObject.PropTypes.theme(),
601
+ left: shared_namespaceObject.PropTypes.string,
602
+ top: shared_namespaceObject.PropTypes.string
181
603
  };
182
604
  ;// CONCATENATED MODULE: ../../packages/modal/src/modal.tsx
183
605
 
184
606
 
185
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
186
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
607
+
608
+
609
+ 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; }
610
+ 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; }
187
611
  /*
188
612
  * Tencent is pleased to support the open source community by making
189
613
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -253,17 +677,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
253
677
  }
254
678
  };
255
679
  resolveTransfer();
256
- var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
680
+ var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
257
681
  resolveClassName = _usePrefix.resolveClassName;
258
682
  var resolveClosetModal = function resolveClosetModal() {
259
683
  var _refRoot$value;
260
684
  if (enableTeleport.value) {
261
685
  if (typeof teleportTo.value === 'string') {
262
686
  var target = document.querySelector(teleportTo.value);
263
- target === null || target === void 0 ? void 0 : target.appendChild(refRoot.value);
687
+ target === null || target === void 0 || target.appendChild(refRoot.value);
264
688
  return;
265
689
  }
266
- if ((0,external_shared_namespaceObject.isElement)(teleportTo.value)) {
690
+ if ((0,shared_namespaceObject.isElement)(teleportTo.value)) {
267
691
  teleportTo.value.appendChild(refRoot.value);
268
692
  return;
269
693
  }
@@ -274,7 +698,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
274
698
  enableTeleport.value = true;
275
699
  teleportTo.value = 'body';
276
700
  var _target = document.querySelector(teleportTo.value);
277
- _target === null || _target === void 0 ? void 0 : _target.appendChild(refRoot.value);
701
+ _target === null || _target === void 0 || _target.appendChild(refRoot.value);
278
702
  }
279
703
  };
280
704
  var fullscreenStyle = (0,external_vue_namespaceObject.computed)(function () {
@@ -284,7 +708,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
284
708
  };
285
709
  });
286
710
  var closeModal = function closeModal() {
287
- external_shared_namespaceObject.mask.hideMask({
711
+ shared_namespaceObject.mask.hideMask({
288
712
  el: refRoot.value,
289
713
  mask: refMask.value,
290
714
  showMask: props.showMask,
@@ -295,7 +719,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
295
719
  ctx.emit('hidden'); // 为false直接触发hidden事件,在上层有200ms的延时
296
720
  if (enableTeleport.value) {
297
721
  var _refRoot$value2;
298
- (_refRoot$value2 = refRoot.value) === null || _refRoot$value2 === void 0 ? void 0 : _refRoot$value2.remove();
722
+ (_refRoot$value2 = refRoot.value) === null || _refRoot$value2 === void 0 || _refRoot$value2.remove();
299
723
  }
300
724
  }, 250);
301
725
  };
@@ -306,13 +730,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
306
730
  closeTimer && clearTimeout(closeTimer);
307
731
  closeTimer = null;
308
732
  if (!props.zIndex) {
309
- zIndex.value = external_shared_namespaceObject.bkZIndexManager.getModalNextIndex();
733
+ zIndex.value = shared_namespaceObject.bkZIndexManager.getModalNextIndex();
310
734
  }
311
735
  visible.value = true;
312
736
  (0,external_vue_namespaceObject.nextTick)(function () {
313
737
  ctx.emit('shown');
314
738
  resolveClosetModal();
315
- external_shared_namespaceObject.mask.showMask({
739
+ shared_namespaceObject.mask.showMask({
316
740
  el: refRoot.value,
317
741
  mask: refMask.value,
318
742
  showMask: props.showMask,
@@ -326,14 +750,48 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
326
750
  }, {
327
751
  immediate: true
328
752
  });
329
- var handleBeforeClose = function handleBeforeClose(callbackFn) {
330
- if (typeof props.beforeClose === 'function') {
331
- if (props.beforeClose() !== true) {
332
- return;
333
- }
334
- }
335
- callbackFn === null || callbackFn === void 0 ? void 0 : callbackFn();
336
- };
753
+ var handleBeforeClose = /*#__PURE__*/function () {
754
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(callbackFn) {
755
+ var shouldClose, execRet;
756
+ return regenerator_default().wrap(function _callee$(_context) {
757
+ while (1) switch (_context.prev = _context.next) {
758
+ case 0:
759
+ if (!(typeof props.beforeClose === 'function')) {
760
+ _context.next = 12;
761
+ break;
762
+ }
763
+ shouldClose = true;
764
+ execRet = props.beforeClose();
765
+ if (!(0,shared_namespaceObject.isPromise)(execRet)) {
766
+ _context.next = 9;
767
+ break;
768
+ }
769
+ _context.next = 6;
770
+ return execRet;
771
+ case 6:
772
+ shouldClose = _context.sent;
773
+ _context.next = 10;
774
+ break;
775
+ case 9:
776
+ shouldClose = execRet;
777
+ case 10:
778
+ if (!(shouldClose !== true)) {
779
+ _context.next = 12;
780
+ break;
781
+ }
782
+ return _context.abrupt("return");
783
+ case 12:
784
+ callbackFn === null || callbackFn === void 0 || callbackFn();
785
+ case 13:
786
+ case "end":
787
+ return _context.stop();
788
+ }
789
+ }, _callee);
790
+ }));
791
+ return function handleBeforeClose(_x) {
792
+ return _ref2.apply(this, arguments);
793
+ };
794
+ }();
337
795
  var handleClickOutSide = function handleClickOutSide(e) {
338
796
  e.stopImmediatePropagation();
339
797
  e.stopPropagation();
@@ -371,7 +829,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
371
829
  _this$$slots$close2,
372
830
  _this$$slots4,
373
831
  _this = this;
374
- var _usePrefix2 = (0,external_config_provider_namespaceObject.usePrefix)(),
832
+ var _usePrefix2 = (0,config_provider_namespaceObject.usePrefix)(),
375
833
  resolveClassName = _usePrefix2.resolveClassName;
376
834
  var maxHeight = this.maxHeight ? {
377
835
  maxHeight: this.maxHeight
@@ -442,12 +900,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
442
900
 
443
901
 
444
902
 
445
- var BkModal = (0,external_shared_namespaceObject.withInstallProps)(modal, {
903
+ var BkModal = (0,shared_namespaceObject.withInstallProps)(modal, {
446
904
  propsMixin: propsMixin
447
905
  }, true);
448
906
  /* harmony default export */ const src = (BkModal);
449
907
 
450
- var __webpack_exports__BkModal = __webpack_exports__.$S;
451
- var __webpack_exports__default = __webpack_exports__.ZP;
452
- var __webpack_exports__propsMixin = __webpack_exports__.ty;
908
+ })();
909
+
910
+ var __webpack_exports__BkModal = __webpack_exports__.BkModal;
911
+ var __webpack_exports__default = __webpack_exports__["default"];
912
+ var __webpack_exports__propsMixin = __webpack_exports__.propsMixin;
453
913
  export { __webpack_exports__BkModal as BkModal, __webpack_exports__default as default, __webpack_exports__propsMixin as propsMixin };