bkui-vue 1.0.3-beta.8 → 2.0.1-beta.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 (289) hide show
  1. package/dist/index.cjs.js +71 -73
  2. package/dist/index.esm.js +20956 -18684
  3. package/dist/index.umd.js +71 -73
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/affix/affix.variable.css +3 -0
  15. package/lib/alert/alert.variable.css +3 -0
  16. package/lib/backtop/backtop.variable.css +3 -0
  17. package/lib/badge/badge.variable.css +3 -0
  18. package/lib/breadcrumb/breadcrumb.variable.css +3 -0
  19. package/lib/button/button.variable.css +3 -0
  20. package/lib/card/card.variable.css +3 -0
  21. package/lib/cascader/cascader.variable.css +3 -0
  22. package/lib/checkbox/checkbox.variable.css +3 -0
  23. package/lib/checkbox/index.js +4 -4
  24. package/lib/code-diff/code-diff.variable.css +3 -0
  25. package/lib/collapse/collapse.css +11 -0
  26. package/lib/collapse/collapse.d.ts +11 -0
  27. package/lib/collapse/collapse.less +15 -1
  28. package/lib/collapse/collapse.variable.css +14 -0
  29. package/lib/collapse/index.d.ts +23 -0
  30. package/lib/collapse/index.js +9 -1
  31. package/lib/collapse/props.d.ts +8 -0
  32. package/lib/collapse-transition/collapse-transition.variable.css +3 -0
  33. package/lib/color-picker/color-picker.variable.css +3 -0
  34. package/lib/components.d.ts +2 -0
  35. package/lib/components.js +62 -505
  36. package/lib/config-provider/config-provider.d.ts +3 -0
  37. package/lib/config-provider/config-provider.variable.css +3 -0
  38. package/lib/config-provider/index.d.ts +4 -0
  39. package/lib/config-provider/token.d.ts +1 -0
  40. package/lib/container/container.variable.css +3 -0
  41. package/lib/date-picker/base/month-table.d.ts +2 -2
  42. package/lib/date-picker/date-picker.d.ts +1 -0
  43. package/lib/date-picker/date-picker.variable.css +3 -0
  44. package/lib/date-picker/index.d.ts +3 -0
  45. package/lib/date-picker/index.js +70 -32
  46. package/lib/date-picker/interface.d.ts +1 -1
  47. package/lib/date-picker/time-picker.d.ts +1 -0
  48. package/lib/date-picker/utils.d.ts +4 -0
  49. package/lib/dialog/dialog.css +176 -150
  50. package/lib/dialog/dialog.d.ts +40 -109
  51. package/lib/dialog/dialog.less +51 -124
  52. package/lib/dialog/dialog.variable.css +179 -150
  53. package/lib/dialog/index.d.ts +99 -263
  54. package/lib/dialog/index.js +244 -246
  55. package/lib/dialog/props.d.ts +10 -35
  56. package/lib/directives/index.js +0 -1
  57. package/lib/dist.index.js +5 -62
  58. package/lib/divider/divider.variable.css +3 -0
  59. package/lib/dropdown/dropdown.css +3 -1
  60. package/lib/dropdown/dropdown.variable.css +6 -1
  61. package/lib/exception/exception.variable.css +3 -0
  62. package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
  63. package/lib/form/form.variable.css +3 -0
  64. package/lib/form/index.js +3 -1
  65. package/lib/hooks.js +1 -48
  66. package/lib/icon/image-fill.js +82 -167
  67. package/lib/icon/img-error.js +82 -167
  68. package/lib/icon/img-placehoulder.js +82 -167
  69. package/lib/icon/index.d.ts +1 -0
  70. package/lib/icon/index.js +87 -2427
  71. package/lib/icon/info-line.js +82 -167
  72. package/lib/icon/info.js +82 -167
  73. package/lib/icon/left-shape.js +82 -167
  74. package/lib/icon/left-turn-line.js +82 -167
  75. package/lib/icon/loading.js +82 -167
  76. package/lib/icon/narrow-line.js +82 -167
  77. package/lib/icon/original.js +82 -167
  78. package/lib/icon/pdf-fill.js +82 -167
  79. package/lib/icon/play-shape.js +82 -167
  80. package/lib/icon/plus.js +82 -167
  81. package/lib/icon/ppt-fill.js +82 -167
  82. package/lib/icon/qq.js +82 -167
  83. package/lib/icon/right-shape.js +82 -167
  84. package/lib/icon/right-turn-line.js +82 -167
  85. package/lib/icon/search.js +82 -167
  86. package/lib/icon/share.js +82 -167
  87. package/lib/icon/spinner.js +82 -167
  88. package/lib/icon/success.js +82 -167
  89. package/lib/icon/switcher-loading.js +82 -167
  90. package/lib/icon/text-all.d.ts +4 -0
  91. package/lib/icon/text-all.js +191 -0
  92. package/lib/icon/text-file.js +82 -167
  93. package/lib/icon/text-fill.js +82 -167
  94. package/lib/icon/transfer.js +82 -167
  95. package/lib/icon/tree-application-shape.js +82 -167
  96. package/lib/icon/unfull-screen.js +82 -167
  97. package/lib/icon/unvisible.js +82 -167
  98. package/lib/icon/up-shape.js +82 -167
  99. package/lib/icon/upload.js +82 -167
  100. package/lib/icon/video-fill.js +82 -167
  101. package/lib/icon/warn.js +82 -167
  102. package/lib/icon/weixin-pro.js +82 -167
  103. package/lib/icon/weixin.js +82 -167
  104. package/lib/image/image-viewer.variable.css +3 -0
  105. package/lib/image/image.variable.css +3 -0
  106. package/lib/image/index.js +5 -2
  107. package/lib/index.js +7 -72
  108. package/lib/info-box/index.d.ts +2 -2
  109. package/lib/info-box/index.js +257 -516
  110. package/lib/info-box/info-box.css +58 -28
  111. package/lib/info-box/info-box.d.ts +18 -16
  112. package/lib/info-box/info-box.less +82 -51
  113. package/lib/info-box/info-box.variable.css +61 -28
  114. package/lib/info-box/render-component.d.ts +4 -0
  115. package/lib/input/index.js +7 -1
  116. package/lib/input/input.variable.css +3 -0
  117. package/lib/link/link.variable.css +3 -0
  118. package/lib/loading/loading.variable.css +3 -0
  119. package/lib/locale/index.js +4 -2
  120. package/lib/locale/lang/en.d.ts +1 -0
  121. package/lib/menu/menu.variable.css +3 -0
  122. package/lib/menu/submenu.variable.css +3 -0
  123. package/lib/message/message.variable.css +3 -0
  124. package/lib/modal/hooks.d.ts +6 -0
  125. package/lib/modal/index.d.ts +41 -309
  126. package/lib/modal/index.js +285 -671
  127. package/lib/modal/mask.d.ts +6 -0
  128. package/lib/modal/modal.css +155 -76
  129. package/lib/modal/modal.d.ts +18 -116
  130. package/lib/modal/modal.less +107 -55
  131. package/lib/modal/modal.variable.css +158 -76
  132. package/lib/modal/props.mixin.d.ts +5 -41
  133. package/lib/navigation/navigation.variable.css +3 -0
  134. package/lib/notify/notify.variable.css +3 -0
  135. package/lib/overflow-title/index.js +46 -52
  136. package/lib/pagination/index.js +2 -1
  137. package/lib/pagination/pagination.variable.css +3 -0
  138. package/lib/plugin-popover/index.d.ts +1 -1
  139. package/lib/plugin-popover/index.js +45 -26
  140. package/lib/pop-confirm/index.js +8 -5
  141. package/lib/pop-confirm/pop-confirm.variable.css +3 -0
  142. package/lib/popover/content.d.ts +1 -1
  143. package/lib/popover/index.js +45 -26
  144. package/lib/popover/plugin-popover.d.ts +4 -1
  145. package/lib/popover/popover.css +3 -1
  146. package/lib/popover/popover.less +4 -1
  147. package/lib/popover/popover.variable.css +6 -1
  148. package/lib/preset.d.ts +2 -0
  149. package/lib/preset.js +18 -64
  150. package/lib/process/process.variable.css +3 -0
  151. package/lib/progress/progress.variable.css +3 -0
  152. package/lib/radio/index.d.ts +29 -0
  153. package/lib/radio/index.js +49 -26
  154. package/lib/radio/radio-button.d.ts +10 -0
  155. package/lib/radio/radio-group.d.ts +10 -0
  156. package/lib/radio/radio.d.ts +10 -0
  157. package/lib/radio/radio.variable.css +3 -0
  158. package/lib/rate/rate.variable.css +3 -0
  159. package/lib/rate/star.variable.css +3 -0
  160. package/lib/resize-layout/index.js +1 -1
  161. package/lib/resize-layout/resize-layout.variable.css +3 -0
  162. package/lib/scrollbar/index.d.ts +15 -0
  163. package/lib/scrollbar/index.js +18763 -0
  164. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
  165. package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
  166. package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
  167. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
  168. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
  169. package/lib/scrollbar/scrollbar.css +75 -0
  170. package/lib/scrollbar/scrollbar.less +94 -0
  171. package/lib/scrollbar/scrollbar.variable.css +204 -0
  172. package/lib/search-select/index.d.ts +375 -16
  173. package/lib/search-select/index.js +701 -366
  174. package/lib/search-select/input.d.ts +14 -5
  175. package/lib/search-select/search-select.css +20 -6
  176. package/lib/search-select/search-select.d.ts +129 -7
  177. package/lib/search-select/search-select.less +16 -12
  178. package/lib/search-select/search-select.variable.css +23 -6
  179. package/lib/search-select/selected.d.ts +116 -6
  180. package/lib/search-select/utils.d.ts +19 -6
  181. package/lib/select/index.d.ts +124 -6
  182. package/lib/select/index.js +1336 -72
  183. package/lib/select/option.d.ts +3 -1
  184. package/lib/select/pinyin/core.d.ts +14 -0
  185. package/lib/select/pinyin/dict.d.ts +34 -0
  186. package/lib/select/pinyin/index.d.ts +2 -0
  187. package/lib/select/select.css +55 -12
  188. package/lib/select/select.d.ts +50 -2
  189. package/lib/select/select.less +69 -19
  190. package/lib/select/select.variable.css +58 -12
  191. package/lib/select/selectTagInput.d.ts +7 -0
  192. package/lib/select/type.d.ts +2 -3
  193. package/lib/shared/index.d.ts +0 -1
  194. package/lib/shared/index.js +70 -50
  195. package/lib/shared/utils.d.ts +12 -0
  196. package/lib/shared/vue-types.d.ts +5 -0
  197. package/lib/sideslider/index.d.ts +55 -185
  198. package/lib/sideslider/index.js +81 -55
  199. package/lib/sideslider/sideslider.css +26 -90
  200. package/lib/sideslider/sideslider.d.ts +25 -87
  201. package/lib/sideslider/sideslider.less +56 -132
  202. package/lib/sideslider/sideslider.variable.css +29 -90
  203. package/lib/slider/index.d.ts +19 -0
  204. package/lib/slider/index.js +45 -5
  205. package/lib/slider/slider.css +14 -0
  206. package/lib/slider/slider.d.ts +9 -0
  207. package/lib/slider/slider.less +15 -0
  208. package/lib/slider/slider.variable.css +17 -0
  209. package/lib/steps/steps.variable.css +3 -0
  210. package/lib/styles/mixins/animate.variable.css +3 -0
  211. package/lib/styles/mixins/popper.variable.css +3 -0
  212. package/lib/styles/mixins/scroll.variable.css +3 -0
  213. package/lib/styles/reset.css +1 -3
  214. package/lib/styles/reset.less +3 -6
  215. package/lib/styles/reset.variable.css +4 -3
  216. package/lib/styles/themes/themes.less +5 -0
  217. package/lib/swiper/swiper.variable.css +3 -0
  218. package/lib/switcher/switcher.variable.css +3 -0
  219. package/lib/tab/tab.variable.css +3 -0
  220. package/lib/table/cache.d.ts +11 -3
  221. package/lib/table/components/table-cell.d.ts +3 -2
  222. package/lib/table/components/table-column.d.ts +7 -17
  223. package/lib/table/const.d.ts +4 -4
  224. package/lib/table/index.d.ts +29 -64
  225. package/lib/table/index.js +18068 -613
  226. package/lib/table/plugins/head-filter.css +8 -4
  227. package/lib/table/plugins/head-filter.less +6 -3
  228. package/lib/table/plugins/head-filter.variable.css +11 -4
  229. package/lib/table/plugins/head-sort.variable.css +3 -0
  230. package/lib/table/plugins/settings.variable.css +3 -0
  231. package/lib/table/plugins/use-active-columns.d.ts +2 -2
  232. package/lib/table/plugins/use-column-template.d.ts +7 -0
  233. package/lib/table/plugins/use-draggable.d.ts +2 -2
  234. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  235. package/lib/table/plugins/use-observer-resize.d.ts +5 -0
  236. package/lib/table/plugins/use-pagination.d.ts +3 -1
  237. package/lib/table/plugins/use-shift-key.d.ts +11 -0
  238. package/lib/table/props.d.ts +17 -7
  239. package/lib/table/table.css +112 -58
  240. package/lib/table/table.d.ts +11 -0
  241. package/lib/table/table.less +46 -58
  242. package/lib/table/table.variable.css +115 -58
  243. package/lib/table/use-attributes.d.ts +6 -43
  244. package/lib/table/use-column.d.ts +9 -10
  245. package/lib/table/use-common.d.ts +1 -1
  246. package/lib/table/use-render.d.ts +1 -1
  247. package/lib/table/utils.d.ts +1 -1
  248. package/lib/table-column/index.d.ts +92 -266
  249. package/lib/table-column/index.js +24 -98
  250. package/lib/tag/tag.variable.css +3 -0
  251. package/lib/tag-input/index.d.ts +4 -4
  252. package/lib/tag-input/tag-input.d.ts +2 -2
  253. package/lib/tag-input/tag-input.variable.css +3 -0
  254. package/lib/tag-input/tag-props.d.ts +1 -1
  255. package/lib/tag-input/tag-render.d.ts +1 -1
  256. package/lib/time-picker/index.d.ts +38 -35
  257. package/lib/time-picker/time-picker.variable.css +3 -0
  258. package/lib/timeline/index.d.ts +80 -44
  259. package/lib/timeline/index.js +54 -65
  260. package/lib/timeline/timeline.d.ts +46 -29
  261. package/lib/timeline/timeline.variable.css +3 -0
  262. package/lib/transfer/transfer.variable.css +3 -0
  263. package/lib/tree/constant.d.ts +3 -1
  264. package/lib/tree/index.d.ts +44 -0
  265. package/lib/tree/index.js +17548 -25
  266. package/lib/tree/props.d.ts +18 -0
  267. package/lib/tree/tree.css +76 -2
  268. package/lib/tree/tree.d.ts +28 -2
  269. package/lib/tree/tree.variable.css +79 -2
  270. package/lib/tree/use-intersection-observer.d.ts +27 -0
  271. package/lib/tree/use-node-attribute.d.ts +9 -0
  272. package/lib/upload/index.d.ts +12 -0
  273. package/lib/upload/index.js +21 -30
  274. package/lib/upload/props.d.ts +3 -0
  275. package/lib/upload/upload-trigger.d.ts +6 -0
  276. package/lib/upload/upload.d.ts +6 -0
  277. package/lib/upload/upload.variable.css +3 -0
  278. package/lib/virtual-render/index.d.ts +36 -9
  279. package/lib/virtual-render/index.js +295 -80
  280. package/lib/virtual-render/props.d.ts +16 -0
  281. package/lib/virtual-render/use-fix-top.d.ts +2 -7
  282. package/lib/virtual-render/use-scrollbar.d.ts +24 -0
  283. package/lib/virtual-render/v-virtual-render.d.ts +2 -1
  284. package/lib/virtual-render/virtual-render.css +76 -2
  285. package/lib/virtual-render/virtual-render.d.ts +16 -3
  286. package/lib/virtual-render/virtual-render.less +3 -3
  287. package/lib/virtual-render/virtual-render.variable.css +79 -2
  288. package/package.json +3 -2
  289. package/lib/shared/mask.d.ts +0 -11
@@ -3,396 +3,11 @@ import "./modal.less";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
6
- import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
7
- /******/ var __webpack_modules__ = ({
8
-
9
- /***/ 7609:
10
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11
-
12
- var _typeof = (__webpack_require__(7425)["default"]);
13
- function _regeneratorRuntime() {
14
- "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
15
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
16
- return e;
17
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
18
- var t,
19
- e = {},
20
- r = Object.prototype,
21
- n = r.hasOwnProperty,
22
- o = Object.defineProperty || function (t, e, r) {
23
- t[e] = r.value;
24
- },
25
- i = "function" == typeof Symbol ? Symbol : {},
26
- a = i.iterator || "@@iterator",
27
- c = i.asyncIterator || "@@asyncIterator",
28
- u = i.toStringTag || "@@toStringTag";
29
- function define(t, e, r) {
30
- return Object.defineProperty(t, e, {
31
- value: r,
32
- enumerable: !0,
33
- configurable: !0,
34
- writable: !0
35
- }), t[e];
36
- }
37
- try {
38
- define({}, "");
39
- } catch (t) {
40
- define = function define(t, e, r) {
41
- return t[e] = r;
42
- };
43
- }
44
- function wrap(t, e, r, n) {
45
- var i = e && e.prototype instanceof Generator ? e : Generator,
46
- a = Object.create(i.prototype),
47
- c = new Context(n || []);
48
- return o(a, "_invoke", {
49
- value: makeInvokeMethod(t, r, c)
50
- }), a;
51
- }
52
- function tryCatch(t, e, r) {
53
- try {
54
- return {
55
- type: "normal",
56
- arg: t.call(e, r)
57
- };
58
- } catch (t) {
59
- return {
60
- type: "throw",
61
- arg: t
62
- };
63
- }
64
- }
65
- e.wrap = wrap;
66
- var h = "suspendedStart",
67
- l = "suspendedYield",
68
- f = "executing",
69
- s = "completed",
70
- y = {};
71
- function Generator() {}
72
- function GeneratorFunction() {}
73
- function GeneratorFunctionPrototype() {}
74
- var p = {};
75
- define(p, a, function () {
76
- return this;
77
- });
78
- var d = Object.getPrototypeOf,
79
- v = d && d(d(values([])));
80
- v && v !== r && n.call(v, a) && (p = v);
81
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
82
- function defineIteratorMethods(t) {
83
- ["next", "throw", "return"].forEach(function (e) {
84
- define(t, e, function (t) {
85
- return this._invoke(e, t);
86
- });
87
- });
88
- }
89
- function AsyncIterator(t, e) {
90
- function invoke(r, o, i, a) {
91
- var c = tryCatch(t[r], t, o);
92
- if ("throw" !== c.type) {
93
- var u = c.arg,
94
- h = u.value;
95
- return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
96
- invoke("next", t, i, a);
97
- }, function (t) {
98
- invoke("throw", t, i, a);
99
- }) : e.resolve(h).then(function (t) {
100
- u.value = t, i(u);
101
- }, function (t) {
102
- return invoke("throw", t, i, a);
103
- });
104
- }
105
- a(c.arg);
106
- }
107
- var r;
108
- o(this, "_invoke", {
109
- value: function value(t, n) {
110
- function callInvokeWithMethodAndArg() {
111
- return new e(function (e, r) {
112
- invoke(t, n, e, r);
113
- });
114
- }
115
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
116
- }
117
- });
118
- }
119
- function makeInvokeMethod(e, r, n) {
120
- var o = h;
121
- return function (i, a) {
122
- if (o === f) throw new Error("Generator is already running");
123
- if (o === s) {
124
- if ("throw" === i) throw a;
125
- return {
126
- value: t,
127
- done: !0
128
- };
129
- }
130
- for (n.method = i, n.arg = a;;) {
131
- var c = n.delegate;
132
- if (c) {
133
- var u = maybeInvokeDelegate(c, n);
134
- if (u) {
135
- if (u === y) continue;
136
- return u;
137
- }
138
- }
139
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
140
- if (o === h) throw o = s, n.arg;
141
- n.dispatchException(n.arg);
142
- } else "return" === n.method && n.abrupt("return", n.arg);
143
- o = f;
144
- var p = tryCatch(e, r, n);
145
- if ("normal" === p.type) {
146
- if (o = n.done ? s : l, p.arg === y) continue;
147
- return {
148
- value: p.arg,
149
- done: n.done
150
- };
151
- }
152
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
153
- }
154
- };
155
- }
156
- function maybeInvokeDelegate(e, r) {
157
- var n = r.method,
158
- o = e.iterator[n];
159
- 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;
160
- var i = tryCatch(o, e.iterator, r.arg);
161
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
162
- var a = i.arg;
163
- 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);
164
- }
165
- function pushTryEntry(t) {
166
- var e = {
167
- tryLoc: t[0]
168
- };
169
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
170
- }
171
- function resetTryEntry(t) {
172
- var e = t.completion || {};
173
- e.type = "normal", delete e.arg, t.completion = e;
174
- }
175
- function Context(t) {
176
- this.tryEntries = [{
177
- tryLoc: "root"
178
- }], t.forEach(pushTryEntry, this), this.reset(!0);
179
- }
180
- function values(e) {
181
- if (e || "" === e) {
182
- var r = e[a];
183
- if (r) return r.call(e);
184
- if ("function" == typeof e.next) return e;
185
- if (!isNaN(e.length)) {
186
- var o = -1,
187
- i = function next() {
188
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
189
- return next.value = t, next.done = !0, next;
190
- };
191
- return i.next = i;
192
- }
193
- }
194
- throw new TypeError(_typeof(e) + " is not iterable");
195
- }
196
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
197
- value: GeneratorFunctionPrototype,
198
- configurable: !0
199
- }), o(GeneratorFunctionPrototype, "constructor", {
200
- value: GeneratorFunction,
201
- configurable: !0
202
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
203
- var e = "function" == typeof t && t.constructor;
204
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
205
- }, e.mark = function (t) {
206
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
207
- }, e.awrap = function (t) {
208
- return {
209
- __await: t
210
- };
211
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
212
- return this;
213
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
214
- void 0 === i && (i = Promise);
215
- var a = new AsyncIterator(wrap(t, r, n, o), i);
216
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
217
- return t.done ? t.value : a.next();
218
- });
219
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
220
- return this;
221
- }), define(g, "toString", function () {
222
- return "[object Generator]";
223
- }), e.keys = function (t) {
224
- var e = Object(t),
225
- r = [];
226
- for (var n in e) r.push(n);
227
- return r.reverse(), function next() {
228
- for (; r.length;) {
229
- var t = r.pop();
230
- if (t in e) return next.value = t, next.done = !1, next;
231
- }
232
- return next.done = !0, next;
233
- };
234
- }, e.values = values, Context.prototype = {
235
- constructor: Context,
236
- reset: function reset(e) {
237
- 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);
238
- },
239
- stop: function stop() {
240
- this.done = !0;
241
- var t = this.tryEntries[0].completion;
242
- if ("throw" === t.type) throw t.arg;
243
- return this.rval;
244
- },
245
- dispatchException: function dispatchException(e) {
246
- if (this.done) throw e;
247
- var r = this;
248
- function handle(n, o) {
249
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
250
- }
251
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
252
- var i = this.tryEntries[o],
253
- a = i.completion;
254
- if ("root" === i.tryLoc) return handle("end");
255
- if (i.tryLoc <= this.prev) {
256
- var c = n.call(i, "catchLoc"),
257
- u = n.call(i, "finallyLoc");
258
- if (c && u) {
259
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
260
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
261
- } else if (c) {
262
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
263
- } else {
264
- if (!u) throw new Error("try statement without catch or finally");
265
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
266
- }
267
- }
268
- }
269
- },
270
- abrupt: function abrupt(t, e) {
271
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
272
- var o = this.tryEntries[r];
273
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
274
- var i = o;
275
- break;
276
- }
277
- }
278
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
279
- var a = i ? i.completion : {};
280
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
281
- },
282
- complete: function complete(t, e) {
283
- if ("throw" === t.type) throw t.arg;
284
- 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;
285
- },
286
- finish: function finish(t) {
287
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
288
- var r = this.tryEntries[e];
289
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
290
- }
291
- },
292
- "catch": function _catch(t) {
293
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
294
- var r = this.tryEntries[e];
295
- if (r.tryLoc === t) {
296
- var n = r.completion;
297
- if ("throw" === n.type) {
298
- var o = n.arg;
299
- resetTryEntry(r);
300
- }
301
- return o;
302
- }
303
- }
304
- throw new Error("illegal catch attempt");
305
- },
306
- delegateYield: function delegateYield(e, r, n) {
307
- return this.delegate = {
308
- iterator: values(e),
309
- resultName: r,
310
- nextLoc: n
311
- }, "next" === this.method && (this.arg = t), y;
312
- }
313
- }, e;
314
- }
315
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
316
-
317
- /***/ }),
318
-
319
- /***/ 7425:
320
- /***/ ((module) => {
321
-
322
- function _typeof(o) {
323
- "@babel/helpers - typeof";
324
-
325
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
326
- return typeof o;
327
- } : function (o) {
328
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
329
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
330
- }
331
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
332
-
333
- /***/ }),
334
-
335
- /***/ 2841:
336
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
337
-
338
- // TODO(Babel 8): Remove this file.
339
-
340
- var runtime = __webpack_require__(7609)();
341
- module.exports = runtime;
342
-
343
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
344
- try {
345
- regeneratorRuntime = runtime;
346
- } catch (accidentalStrictMode) {
347
- if (typeof globalThis === "object") {
348
- globalThis.regeneratorRuntime = runtime;
349
- } else {
350
- Function("r", "regeneratorRuntime = r")(runtime);
351
- }
352
- }
353
-
354
-
355
- /***/ })
356
-
357
- /******/ });
358
- /************************************************************************/
359
- /******/ // The module cache
360
- /******/ var __webpack_module_cache__ = {};
361
- /******/
362
- /******/ // The require function
363
- /******/ function __webpack_require__(moduleId) {
364
- /******/ // Check if module is in cache
365
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
366
- /******/ if (cachedModule !== undefined) {
367
- /******/ return cachedModule.exports;
368
- /******/ }
369
- /******/ // Create a new module (and put it into the cache)
370
- /******/ var module = __webpack_module_cache__[moduleId] = {
371
- /******/ // no module.id needed
372
- /******/ // no module.loaded needed
373
- /******/ exports: {}
374
- /******/ };
375
- /******/
376
- /******/ // Execute the module function
377
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
378
- /******/
379
- /******/ // Return the exports of the module
380
- /******/ return module.exports;
381
- /******/ }
6
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
7
+ /******/ // The require scope
8
+ /******/ var __webpack_require__ = {};
382
9
  /******/
383
10
  /************************************************************************/
384
- /******/ /* webpack/runtime/compat get default export */
385
- /******/ (() => {
386
- /******/ // getDefaultExport function for compatibility with non-harmony modules
387
- /******/ __webpack_require__.n = (module) => {
388
- /******/ var getter = module && module.__esModule ?
389
- /******/ () => (module['default']) :
390
- /******/ () => (module);
391
- /******/ __webpack_require__.d(getter, { a: getter });
392
- /******/ return getter;
393
- /******/ };
394
- /******/ })();
395
- /******/
396
11
  /******/ /* webpack/runtime/define property getters */
397
12
  /******/ (() => {
398
13
  /******/ // define getter functions for harmony exports
@@ -412,8 +27,6 @@ try {
412
27
  /******/
413
28
  /************************************************************************/
414
29
  var __webpack_exports__ = {};
415
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
416
- (() => {
417
30
 
418
31
  // EXPORTS
419
32
  __webpack_require__.d(__webpack_exports__, {
@@ -425,38 +38,7 @@ __webpack_require__.d(__webpack_exports__, {
425
38
  ;// CONCATENATED MODULE: external "../shared"
426
39
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
427
40
  var y = x => () => x
428
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.dialogTypeUnion, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["isPromise"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isPromise, ["mask"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.mask, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
429
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
430
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
431
- try {
432
- var info = gen[key](arg);
433
- var value = info.value;
434
- } catch (error) {
435
- reject(error);
436
- return;
437
- }
438
- if (info.done) {
439
- resolve(value);
440
- } else {
441
- Promise.resolve(value).then(_next, _throw);
442
- }
443
- }
444
- function _asyncToGenerator(fn) {
445
- return function () {
446
- var self = this,
447
- args = arguments;
448
- return new Promise(function (resolve, reject) {
449
- var gen = fn.apply(self, args);
450
- function _next(value) {
451
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
452
- }
453
- function _throw(err) {
454
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
455
- }
456
- _next(undefined);
457
- });
458
- };
459
- }
41
+ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
460
42
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
461
43
  function _typeof(o) {
462
44
  "@babel/helpers - typeof";
@@ -505,20 +87,176 @@ function _defineProperty(obj, key, value) {
505
87
  ;// CONCATENATED MODULE: external "vue"
506
88
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
507
89
  var external_vue_y = x => () => x
508
- const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
509
- // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
510
- var regenerator = __webpack_require__(2841);
511
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
90
+ const external_vue_namespaceObject = external_vue_x({ ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["useAttrs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs, ["useSlots"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useSlots, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
512
91
  ;// CONCATENATED MODULE: external "../config-provider"
513
92
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
514
93
  var config_provider_y = x => () => x
515
94
  const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
516
- ;// CONCATENATED MODULE: external "vue-types"
517
- var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
518
- var external_vue_types_y = x => () => x
519
- const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
520
- ;// CONCATENATED MODULE: ../../packages/modal/src/props.mixin.ts
95
+ ;// CONCATENATED MODULE: external "lodash/throttle"
96
+ var throttle_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
97
+ var throttle_y = x => () => x
98
+ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
99
+ ;// CONCATENATED MODULE: ../../packages/modal/src/hooks.ts
100
+ /*
101
+ * Tencent is pleased to support the open source community by making
102
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
103
+ *
104
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
105
+ *
106
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
107
+ *
108
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
109
+ *
110
+ * ---------------------------------------------------
111
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
112
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
113
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
114
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
115
+ *
116
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
117
+ * the Software.
118
+ *
119
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
120
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
121
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
122
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
123
+ * IN THE SOFTWARE.
124
+ */
125
+
521
126
 
127
+
128
+ var useContentResize = function useContentResize(root, resizeTarget, props) {
129
+ var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
130
+ resolveClassName = _usePrefix.resolveClassName;
131
+ var isContentScroll = (0,external_vue_namespaceObject.ref)(false);
132
+ var contentStyles = (0,external_vue_namespaceObject.ref)({});
133
+ var calcContentScroll = (0,throttle_namespaceObject["default"])(function () {
134
+ if (!props.isShow) {
135
+ // onMouted 时监听了 window resize事件这个时候 DOM 可能不存在
136
+ return;
137
+ }
138
+ var _root$value$querySele = root.value.querySelector(".".concat(resolveClassName('modal-header'))).getBoundingClientRect(),
139
+ headerHeight = _root$value$querySele.height;
140
+ var _root$value$querySele2 = root.value.querySelector(".".concat(resolveClassName('modal-content'), " div")).getBoundingClientRect(),
141
+ contentHeight = _root$value$querySele2.height;
142
+ var _root$value$querySele3 = root.value.querySelector(".".concat(resolveClassName('modal-footer'))).getBoundingClientRect(),
143
+ footerHeight = _root$value$querySele3.height;
144
+ var windowInnerHeight = window.innerHeight;
145
+ isContentScroll.value = windowInnerHeight < headerHeight + contentHeight + footerHeight + 20;
146
+ if (isContentScroll.value || props.fullscreen) {
147
+ contentStyles.value = {
148
+ height: "".concat(windowInnerHeight - headerHeight - footerHeight, "px"),
149
+ overflow: 'auto',
150
+ 'scrollbar-gutter': 'stable'
151
+ };
152
+ // fullscreen 时默认为 true
153
+ isContentScroll.value = true;
154
+ } else {
155
+ contentStyles.value = {};
156
+ }
157
+ }, 30);
158
+ (0,external_vue_namespaceObject.watch)(function () {
159
+ return props.isShow;
160
+ }, function () {
161
+ var observer;
162
+ if (props.isShow) {
163
+ (0,external_vue_namespaceObject.nextTick)(function () {
164
+ observer = new ResizeObserver(function () {
165
+ calcContentScroll();
166
+ });
167
+ observer.observe(resizeTarget.value);
168
+ calcContentScroll();
169
+ });
170
+ } else {
171
+ if (observer) {
172
+ observer.disconnect();
173
+ observer = null;
174
+ }
175
+ }
176
+ }, {
177
+ immediate: true
178
+ });
179
+ (0,external_vue_namespaceObject.onMounted)(function () {
180
+ window.addEventListener('resize', calcContentScroll);
181
+ });
182
+ (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
183
+ window.removeEventListener('resize', calcContentScroll);
184
+ });
185
+ return {
186
+ contentStyles: contentStyles,
187
+ isContentScroll: isContentScroll
188
+ };
189
+ };
190
+ ;// CONCATENATED MODULE: ../../packages/modal/src/mask.ts
191
+ /*
192
+ * Tencent is pleased to support the open source community by making
193
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
194
+ *
195
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
196
+ *
197
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
198
+ *
199
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
200
+ *
201
+ * ---------------------------------------------------
202
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
203
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
204
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
205
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
206
+ *
207
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
208
+ * the Software.
209
+ *
210
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
211
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
212
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
213
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
214
+ * IN THE SOFTWARE.
215
+ */
216
+ var maskEleLink = new WeakMap();
217
+ var lastestMaskEle;
218
+ var maskInstanceCount = 0;
219
+ var showMask = function showMask(maskEle) {
220
+ if (maskEle === lastestMaskEle) {
221
+ lastestMaskEle = maskEle;
222
+ return;
223
+ }
224
+ maskInstanceCount += 1;
225
+ if (lastestMaskEle) {
226
+ lastestMaskEle.style.opacity = '0';
227
+ maskEle.style.transitionProperty = '';
228
+ // 缓存遮罩出现的顺序
229
+ maskEleLink.set(maskEle, lastestMaskEle);
230
+ }
231
+ lastestMaskEle = maskEle;
232
+ };
233
+ var hideMask = function hideMask(maskEle) {
234
+ if (maskEleLink.has(maskEle)) {
235
+ lastestMaskEle = maskEleLink.get(maskEle);
236
+ lastestMaskEle.style.opacity = '1';
237
+ maskEle.style.visibility = 'hidden';
238
+ maskEleLink["delete"](maskEle);
239
+ maskInstanceCount -= 1;
240
+ setTimeout(function () {
241
+ maskEle.style.visibility = '';
242
+ }, 300);
243
+ }
244
+ };
245
+ var destroyMask = function destroyMask(maskEle) {
246
+ if (maskEleLink.has(maskEle)) {
247
+ maskEleLink["delete"](maskEle);
248
+ }
249
+ };
250
+ var getMaskCount = function getMaskCount() {
251
+ return maskInstanceCount;
252
+ };
253
+ var mask = {
254
+ showMask: showMask,
255
+ hideMask: hideMask,
256
+ destroyMask: destroyMask,
257
+ getMaskCount: getMaskCount
258
+ };
259
+ ;// CONCATENATED MODULE: ../../packages/modal/src/props.mixin.ts
522
260
  /*
523
261
  * Tencent is pleased to support the open source community by making
524
262
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -545,46 +283,24 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: ()
545
283
  * IN THE SOFTWARE.
546
284
  */
547
285
 
548
- var ModalSizeEnum;
549
- (function (ModalSizeEnum) {
550
- ModalSizeEnum["NORMAL"] = "normal";
551
- ModalSizeEnum["SMALL"] = "small";
552
- ModalSizeEnum["MEDIUM"] = "medium";
553
- ModalSizeEnum["LARGE"] = "large";
554
- })(ModalSizeEnum || (ModalSizeEnum = {}));
555
286
  var propsMixin = {
556
287
  // 是否显示弹框
557
288
  isShow: shared_namespaceObject.PropTypes.bool.def(false),
558
- width: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('50%'),
559
- height: shared_namespaceObject.PropTypes.oneOfType([String, Number]).def('50%'),
560
- // 配置自定义样式类名
561
- extCls: shared_namespaceObject.PropTypes.string || shared_namespaceObject.PropTypes.array,
562
- // 弹框出现时,是否允许页面滚动
563
- scrollable: shared_namespaceObject.PropTypes.bool.def(true),
289
+ width: shared_namespaceObject.PropTypes.oneOfType([String, Number]),
290
+ // 是否全屏
291
+ fullscreen: shared_namespaceObject.PropTypes.bool.def(false),
564
292
  // 是否允许出现遮罩
565
293
  showMask: shared_namespaceObject.PropTypes.bool.def(true),
566
294
  // 是否显示右上角的关闭 icon
567
295
  closeIcon: shared_namespaceObject.PropTypes.bool.def(true),
568
296
  // 是否允许 esc 按键关闭弹框
569
297
  escClose: shared_namespaceObject.PropTypes.bool.def(true),
570
- // 是否全屏
571
- fullscreen: shared_namespaceObject.PropTypes.bool.def(false),
572
- // 弹框尺寸
573
- size: (0,external_vue_types_namespaceObject.toType)('size', {}),
574
- // 是否可拖拽
575
- draggable: shared_namespaceObject.PropTypes.bool.def(true),
576
298
  // 是否允许点击遮罩关闭弹窗
577
299
  quickClose: shared_namespaceObject.PropTypes.bool.def(true),
578
300
  // 是否显示在body内(即与id#app同级
579
- transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(false),
301
+ transfer: shared_namespaceObject.PropTypes.oneOfType([Boolean, String, HTMLElement]).def(true),
580
302
  // 弹出层z-index,实际显示的值会自动+1。为了抱证在遮罩上正常显示
581
303
  zIndex: shared_namespaceObject.PropTypes.oneOfType([String, Number]),
582
- // 内容区最大高度
583
- maxHeight: shared_namespaceObject.PropTypes.string,
584
- // 弹出方向
585
- direction: shared_namespaceObject.PropTypes.string,
586
- // title
587
- title: shared_namespaceObject.PropTypes.string.def(''),
588
304
  // 动画类型
589
305
  animateType: shared_namespaceObject.PropTypes.string.def('slide'),
590
306
  // 弹框的渲染方式
@@ -593,20 +309,13 @@ var propsMixin = {
593
309
  beforeClose: shared_namespaceObject.PropTypes.custom(function () {
594
310
  return true;
595
311
  }),
596
- // 对话框类型
597
- dialogType: (0,shared_namespaceObject.dialogTypeUnion)(),
598
- // 是否允许多个弹框同时存在
599
- multiInstance: shared_namespaceObject.PropTypes.bool.def(true),
600
- // info-box
601
- infoType: shared_namespaceObject.PropTypes.theme(),
602
312
  left: shared_namespaceObject.PropTypes.string,
603
- top: shared_namespaceObject.PropTypes.string
313
+ top: shared_namespaceObject.PropTypes.string,
314
+ extCls: shared_namespaceObject.PropTypes.string
604
315
  };
605
316
  ;// CONCATENATED MODULE: ../../packages/modal/src/modal.tsx
606
317
 
607
318
 
608
-
609
-
610
319
  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; }
611
320
  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; }
612
321
  /*
@@ -638,238 +347,145 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
638
347
 
639
348
 
640
349
 
350
+
351
+
641
352
  /* harmony default export */ const modal = ((0,external_vue_namespaceObject.defineComponent)({
642
353
  name: 'Modal',
643
354
  props: _objectSpread({}, propsMixin),
644
- emits: ['quick-close', 'quickClose', 'hidden', 'shown', 'close'],
355
+ emits: ['quick-close', 'hidden', 'shown', 'close'],
645
356
  setup: function setup(props, ctx) {
646
- var visible = (0,external_vue_namespaceObject.ref)(false);
647
- var zIndex = (0,external_vue_namespaceObject.ref)(props.zIndex);
648
- var refRoot = (0,external_vue_namespaceObject.ref)();
649
- var refMask = (0,external_vue_namespaceObject.ref)();
650
- var backgroundColor = (0,external_vue_namespaceObject.ref)('rgba(0,0,0,0.6)');
651
- var closeTimer;
652
- var dialogWidth = (0,external_vue_namespaceObject.computed)(function () {
653
- return /^\d+\.?\d*$/.test("".concat(props.width)) ? "".concat(props.width, "px") : props.width;
654
- });
655
- var dialogHeight = (0,external_vue_namespaceObject.computed)(function () {
656
- return /^\d+\.?\d*$/.test("".concat(props.height)) ? "".concat(props.height, "px") : props.height;
657
- });
658
- var compStyle = (0,external_vue_namespaceObject.computed)(function () {
659
- return _defineProperty({
660
- width: dialogWidth.value,
661
- height: dialogHeight.value,
662
- minHeigth: "".concat(200, "px"),
663
- display: visible.value ? 'inherit' : 'none',
664
- zIndex: zIndex.value || 'inherit',
665
- left: props.left,
666
- top: props.top
667
- }, props.direction, 0);
668
- });
669
- var enableTeleport = (0,external_vue_namespaceObject.ref)(!!props.transfer);
670
- var teleportTo = (0,external_vue_namespaceObject.ref)('body');
671
- var resolveTransfer = function resolveTransfer() {
672
- if (props.transfer) {
673
- if (typeof props.transfer === 'boolean') {
674
- teleportTo.value = 'body';
675
- return;
676
- }
677
- teleportTo.value = props.transfer;
678
- }
679
- };
680
- resolveTransfer();
357
+ var slots = (0,external_vue_namespaceObject.useSlots)();
358
+ var attrs = (0,external_vue_namespaceObject.useAttrs)();
681
359
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
682
360
  resolveClassName = _usePrefix.resolveClassName;
683
- var resolveClosetModal = function resolveClosetModal() {
684
- var _refRoot$value;
685
- if (enableTeleport.value) {
686
- if (typeof teleportTo.value === 'string') {
687
- var target = document.querySelector(teleportTo.value);
688
- target === null || target === void 0 || target.appendChild(refRoot.value);
689
- return;
690
- }
691
- if ((0,shared_namespaceObject.isElement)(teleportTo.value)) {
692
- teleportTo.value.appendChild(refRoot.value);
693
- return;
694
- }
695
- }
696
- var className = ".".concat(resolveClassName('modal-ctx'));
697
- var parentNode = (_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 || (_refRoot$value = _refRoot$value.parentElement) === null || _refRoot$value === void 0 ? void 0 : _refRoot$value.closest(className);
698
- if (parentNode) {
699
- enableTeleport.value = true;
700
- teleportTo.value = 'body';
701
- var _target = document.querySelector(teleportTo.value);
702
- _target === null || _target === void 0 || _target.appendChild(refRoot.value);
703
- }
704
- };
705
- var fullscreenStyle = (0,external_vue_namespaceObject.computed)(function () {
361
+ var rootRef = (0,external_vue_namespaceObject.ref)();
362
+ var maskRef = (0,external_vue_namespaceObject.ref)();
363
+ var resizeTargetRef = (0,external_vue_namespaceObject.ref)();
364
+ var localShow = (0,external_vue_namespaceObject.ref)(props.isShow);
365
+ var zIndex = (0,external_vue_namespaceObject.ref)(props.zIndex);
366
+ var initRendered = (0,external_vue_namespaceObject.ref)(false);
367
+ var _useContentResize = useContentResize(rootRef, resizeTargetRef, props),
368
+ contentStyles = _useContentResize.contentStyles,
369
+ isContentScroll = _useContentResize.isContentScroll;
370
+ var modalWrapperStyles = (0,external_vue_namespaceObject.computed)(function () {
706
371
  return {
707
- width: "".concat(100, "%"),
708
- height: "".concat(100, "%")
372
+ zIndex: zIndex.value,
373
+ width: /^\d+\.?\d*$/.test("".concat(props.width)) ? "".concat(props.width, "px") : props.width,
374
+ left: props.left,
375
+ top: props.top
709
376
  };
710
377
  });
711
- var closeModal = function closeModal() {
712
- shared_namespaceObject.mask.hideMask({
713
- el: refRoot.value,
714
- mask: refMask.value,
715
- showMask: props.showMask,
716
- backgroundColor: backgroundColor.value
717
- });
718
- closeTimer = setTimeout(function () {
719
- // 直接设为false会失去离开的动画效果,这里延迟设置
720
- ctx.emit('hidden'); // 为false直接触发hidden事件,在上层有200ms的延时
721
- if (enableTeleport.value) {
722
- var _refRoot$value2;
723
- (_refRoot$value2 = refRoot.value) === null || _refRoot$value2 === void 0 || _refRoot$value2.remove();
724
- }
725
- }, 250);
726
- };
727
378
  (0,external_vue_namespaceObject.watch)(function () {
728
379
  return props.isShow;
729
- }, function (val) {
730
- if (val) {
731
- closeTimer && clearTimeout(closeTimer);
732
- closeTimer = null;
733
- if (!props.zIndex) {
734
- zIndex.value = shared_namespaceObject.bkZIndexManager.getModalNextIndex();
735
- }
736
- visible.value = true;
737
- (0,external_vue_namespaceObject.nextTick)(function () {
380
+ }, function () {
381
+ if (props.isShow) {
382
+ initRendered.value = true;
383
+ setTimeout(function () {
384
+ zIndex.value = props.zIndex || shared_namespaceObject.bkZIndexManager.getModalNextIndex();
385
+ props.showMask && mask.showMask(maskRef.value);
738
386
  ctx.emit('shown');
739
- resolveClosetModal();
740
- shared_namespaceObject.mask.showMask({
741
- el: refRoot.value,
742
- mask: refMask.value,
743
- showMask: props.showMask,
744
- backgroundColor: backgroundColor.value
745
- });
387
+ localShow.value = true;
746
388
  });
747
- return;
389
+ } else if (initRendered.value) {
390
+ props.showMask && mask.hideMask(maskRef.value);
391
+ ctx.emit('hidden');
392
+ localShow.value = false;
748
393
  }
749
- visible.value = false;
750
- closeModal();
751
394
  }, {
752
395
  immediate: true
753
396
  });
754
- var handleBeforeClose = /*#__PURE__*/function () {
755
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(callbackFn) {
756
- var shouldClose, execRet;
757
- return regenerator_default().wrap(function _callee$(_context) {
758
- while (1) switch (_context.prev = _context.next) {
759
- case 0:
760
- if (!(typeof props.beforeClose === 'function')) {
761
- _context.next = 12;
762
- break;
763
- }
764
- shouldClose = true;
765
- execRet = props.beforeClose();
766
- if (!(0,shared_namespaceObject.isPromise)(execRet)) {
767
- _context.next = 9;
768
- break;
769
- }
770
- _context.next = 6;
771
- return execRet;
772
- case 6:
773
- shouldClose = _context.sent;
774
- _context.next = 10;
775
- break;
776
- case 9:
777
- shouldClose = execRet;
778
- case 10:
779
- if (!(shouldClose !== true)) {
780
- _context.next = 12;
781
- break;
782
- }
783
- return _context.abrupt("return");
784
- case 12:
785
- callbackFn === null || callbackFn === void 0 || callbackFn();
786
- case 13:
787
- case "end":
788
- return _context.stop();
789
- }
790
- }, _callee);
791
- }));
792
- return function handleBeforeClose(_x) {
793
- return _ref2.apply(this, arguments);
794
- };
795
- }();
397
+ var handleClose = function handleClose() {
398
+ ctx.emit('close');
399
+ };
796
400
  var handleClickOutSide = function handleClickOutSide(e) {
797
401
  e.stopImmediatePropagation();
798
402
  e.stopPropagation();
799
403
  e.preventDefault();
800
404
  if (props.quickClose) {
801
- handleBeforeClose(function () {
802
- ctx.emit('close');
803
- ctx.emit('quick-close');
804
- ctx.emit('quickClose');
805
- });
405
+ ctx.emit('quick-close');
406
+ ctx.emit('close');
806
407
  }
807
408
  };
808
- return {
809
- visible: visible,
810
- compStyle: compStyle,
811
- fullscreenStyle: fullscreenStyle,
812
- handleClickOutSide: handleClickOutSide,
813
- refRoot: refRoot,
814
- refMask: refMask,
815
- showMask: props.showMask
816
- };
817
- },
818
- render: function render() {
819
- var _this$extCls,
820
- _this$$slots$header,
821
- _this$$slots$header2,
822
- _this$$slots,
823
- _this$$slots$default,
824
- _this$$slots$default2,
825
- _this$$slots2,
826
- _this$$slots$footer,
827
- _this$$slots$footer2,
828
- _this$$slots3,
829
- _this$$slots$close,
830
- _this$$slots$close2,
831
- _this$$slots4,
832
- _this = this;
833
- var _usePrefix2 = (0,config_provider_namespaceObject.usePrefix)(),
834
- resolveClassName = _usePrefix2.resolveClassName;
835
- var maxHeight = this.maxHeight ? {
836
- maxHeight: this.maxHeight
837
- } : {};
838
- var bodyClass = "".concat(resolveClassName('modal-body'), " ").concat(this.animateType === 'slide' ? this.direction : '');
839
- return (0,external_vue_namespaceObject.createVNode)("div", {
840
- "ref": "refRoot",
841
- "class": [resolveClassName('modal-ctx'), this.visible ? '--show' : '--hide'],
842
- "style": {
843
- zIndex: this.compStyle.zIndex
409
+ // 按 esc 关闭弹框
410
+ var handleEscClose = function handleEscClose(e) {
411
+ if (props.isShow && props.escClose) {
412
+ if (e.keyCode === 27) {
413
+ handleClose();
414
+ }
844
415
  }
845
- }, [this.showMask ? (0,external_vue_namespaceObject.createVNode)("div", {
846
- "ref": "refMask",
847
- "class": [resolveClassName('modal-ctx-mask'), this.visible ? '--show' : '--hide'],
848
- "onClick": this.handleClickOutSide,
849
- "style": {
850
- zIndex: this.compStyle.zIndex
416
+ };
417
+ (0,external_vue_namespaceObject.onMounted)(function () {
418
+ addEventListener('keydown', handleEscClose);
419
+ });
420
+ (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
421
+ removeEventListener('keydown', handleEscClose);
422
+ mask.destroyMask(maskRef.value);
423
+ ctx.emit('hidden');
424
+ });
425
+ return function () {
426
+ if (!initRendered.value) {
427
+ return null;
851
428
  }
852
- }, null) : '', (0,external_vue_namespaceObject.createVNode)("div", {
853
- "class": [resolveClassName('modal-wrapper'), (_this$extCls = this.extCls) !== null && _this$extCls !== void 0 ? _this$extCls : '', this.size, this.fullscreen ? 'fullscreen' : ''],
854
- "style": [this.compStyle, this.fullscreen ? this.fullscreenStyle : '']
855
- }, [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
856
- "name": this.animateType
857
- }, {
858
- "default": function _default() {
859
- return [_this.visible ? (0,external_vue_namespaceObject.createVNode)("div", {
860
- "class": bodyClass
429
+ var renderContent = function renderContent() {
430
+ var _slots$header, _slots$default, _slots$footer, _slots$close;
431
+ // v-if 模式渲染,如果 isShow false 销毁 DOM
432
+ if (props.renderDirective === 'if' && !localShow.value) {
433
+ return null;
434
+ }
435
+ return (0,external_vue_namespaceObject.createVNode)("div", {
436
+ "class": resolveClassName('modal-body')
861
437
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
862
438
  "class": resolveClassName('modal-header')
863
- }, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : '']), (0,external_vue_namespaceObject.createVNode)("div", {
439
+ }, [(_slots$header = slots.header) === null || _slots$header === void 0 ? void 0 : _slots$header.call(slots)]), (0,external_vue_namespaceObject.createVNode)("div", {
864
440
  "class": resolveClassName('modal-content'),
865
- "style": [_this.dialogType === 'show' ? 'padding-bottom: 20px' : '', _objectSpread({}, maxHeight)]
866
- }, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots2)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '']), _this.dialogType === 'show' ? '' : (0,external_vue_namespaceObject.createVNode)("div", {
867
- "class": resolveClassName('modal-footer')
868
- }, [(_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots3 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots3)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : '']), _this.closeIcon && (0,external_vue_namespaceObject.createVNode)("div", {
869
- "class": resolveClassName('modal-close')
870
- }, [(_this$$slots$close = (_this$$slots$close2 = (_this$$slots4 = _this.$slots).close) === null || _this$$slots$close2 === void 0 ? void 0 : _this$$slots$close2.call(_this$$slots4)) !== null && _this$$slots$close !== void 0 ? _this$$slots$close : ''])]) : ''];
871
- }
872
- })])]);
441
+ "style": contentStyles.value
442
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
443
+ "style": "position: relative; display: inline-block; width: 100%;"
444
+ }, [(_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots), (0,external_vue_namespaceObject.createVNode)("div", {
445
+ "ref": resizeTargetRef,
446
+ "style": "position: absolute; top: 0; bottom: 0;"
447
+ }, null)])]), (0,external_vue_namespaceObject.createVNode)("div", {
448
+ "class": _defineProperty(_defineProperty({}, resolveClassName('modal-footer'), true), 'is-fixed', isContentScroll.value)
449
+ }, [(_slots$footer = slots.footer) === null || _slots$footer === void 0 ? void 0 : _slots$footer.call(slots)]), props.closeIcon && (0,external_vue_namespaceObject.createVNode)("div", {
450
+ "class": resolveClassName('modal-close'),
451
+ "onClick": handleClose
452
+ }, [(_slots$close = slots.close) === null || _slots$close === void 0 ? void 0 : _slots$close.call(slots)])]);
453
+ };
454
+ return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
455
+ "to": "body",
456
+ "disabled": !props.transfer
457
+ }, {
458
+ "default": function _default() {
459
+ return [(0,external_vue_namespaceObject.createVNode)("div", (0,external_vue_namespaceObject.mergeProps)({
460
+ "ref": rootRef
461
+ }, attrs, {
462
+ "class": [resolveClassName('modal'), props.extCls || '']
463
+ }), [props.showMask && (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
464
+ "name": mask.getMaskCount() > 0 ? 'fadein' : ''
465
+ }, {
466
+ "default": function _default() {
467
+ return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
468
+ "ref": maskRef,
469
+ "class": _defineProperty({}, resolveClassName('modal-mask'), true),
470
+ "style": {
471
+ zIndex: zIndex.value
472
+ },
473
+ "onClick": handleClickOutSide
474
+ }, null), [[external_vue_namespaceObject.vShow, localShow.value]])];
475
+ }
476
+ }), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
477
+ "name": "modal-".concat(props.animateType)
478
+ }, {
479
+ "default": function _default() {
480
+ return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
481
+ "class": resolveClassName('modal-wrapper'),
482
+ "style": modalWrapperStyles.value
483
+ }, [renderContent()]), [[external_vue_namespaceObject.vShow, localShow.value]])];
484
+ }
485
+ })])];
486
+ }
487
+ });
488
+ };
873
489
  }
874
490
  }));
875
491
  ;// CONCATENATED MODULE: ../../packages/modal/src/index.ts
@@ -906,8 +522,6 @@ var BkModal = (0,shared_namespaceObject.withInstallProps)(modal, {
906
522
  }, true);
907
523
  /* harmony default export */ const src = (BkModal);
908
524
 
909
- })();
910
-
911
525
  var __webpack_exports__BkModal = __webpack_exports__.BkModal;
912
526
  var __webpack_exports__default = __webpack_exports__["default"];
913
527
  var __webpack_exports__propsMixin = __webpack_exports__.propsMixin;