@nutui/nutui 4.1.0-beta.2 → 4.1.0-beta.3

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 (226) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +10 -42
  3. package/dist/nutui.es.js +1 -1
  4. package/dist/nutui.js +16177 -0
  5. package/dist/nutui.umd.js +1 -7
  6. package/dist/packages/_es/ActionSheet.js +22 -4
  7. package/dist/packages/_es/Address.js +41 -32
  8. package/dist/packages/_es/AddressList.js +5 -5
  9. package/dist/packages/_es/Animate.js +20 -1
  10. package/dist/packages/_es/Audio.js +21 -4
  11. package/dist/packages/_es/AudioOperate.js +20 -1
  12. package/dist/packages/_es/Avatar.js +19 -4
  13. package/dist/packages/_es/Calendar.js +2 -2
  14. package/dist/packages/_es/CalendarItem.js +1 -1
  15. package/dist/packages/_es/Cascader.js +123 -76
  16. package/dist/packages/_es/CellGroup.js +11 -23
  17. package/dist/packages/_es/Checkbox.js +4 -4
  18. package/dist/packages/_es/CheckboxGroup.js +15 -30
  19. package/dist/packages/_es/Collapse.js +18 -10
  20. package/dist/packages/_es/Countdown.js +22 -4
  21. package/dist/packages/_es/Countup.js +21 -4
  22. package/dist/packages/_es/DatePicker.js +21 -3
  23. package/dist/packages/_es/Dialog.js +31 -8
  24. package/dist/packages/_es/Divider.js +8 -18
  25. package/dist/packages/_es/Elevator.js +23 -4
  26. package/dist/packages/_es/Ellipsis.js +20 -1
  27. package/dist/packages/_es/Form.js +54 -24
  28. package/dist/packages/_es/Image.js +57 -7
  29. package/dist/packages/_es/ImagePreview.js +44 -19
  30. package/dist/packages/_es/InfiniteLoading.js +23 -4
  31. package/dist/packages/_es/Input.js +23 -5
  32. package/dist/packages/_es/Invoice.js +22 -4
  33. package/dist/packages/_es/List.js +21 -3
  34. package/dist/packages/_es/Menu.js +1 -2
  35. package/dist/packages/_es/MenuItem.js +44 -35
  36. package/dist/packages/_es/Noticebar.js +21 -4
  37. package/dist/packages/_es/Notify.js +28 -9
  38. package/dist/packages/_es/NumberKeyboard.js +1 -1
  39. package/dist/packages/_es/Overlay.js +19 -4
  40. package/dist/packages/_es/Picker.js +32 -19
  41. package/dist/packages/_es/Popover.js +1 -1
  42. package/dist/packages/_es/Popup.js +1 -1
  43. package/dist/packages/_es/PullRefresh.js +23 -4
  44. package/dist/packages/_es/Radio.js +1 -1
  45. package/dist/packages/_es/Range.js +23 -4
  46. package/dist/packages/_es/Rate.js +23 -4
  47. package/dist/packages/_es/Row.js +12 -12
  48. package/dist/packages/_es/Searchbar.js +33 -12
  49. package/dist/packages/_es/ShortPassword.js +1 -1
  50. package/dist/packages/_es/SideNavbar.js +21 -3
  51. package/dist/packages/_es/Signature.js +20 -1
  52. package/dist/packages/_es/Sku.js +22 -4
  53. package/dist/packages/_es/Step.js +21 -3
  54. package/dist/packages/_es/SubSideNavbar.js +21 -3
  55. package/dist/packages/_es/Swipe.js +23 -4
  56. package/dist/packages/_es/TabPane.js +21 -3
  57. package/dist/packages/_es/TabbarItem.js +8 -7
  58. package/dist/packages/_es/Table.js +21 -3
  59. package/dist/packages/_es/Tabs.js +48 -14
  60. package/dist/packages/_es/TimeDetail.js +23 -4
  61. package/dist/packages/_es/TimePannel.js +21 -3
  62. package/dist/packages/_es/TimeSelect.js +1 -1
  63. package/dist/packages/_es/Toast.js +30 -11
  64. package/dist/packages/_es/Tour.js +22 -4
  65. package/dist/packages/_es/TrendArrow.js +20 -1
  66. package/dist/packages/_es/Video.js +23 -5
  67. package/dist/packages/_es/Watermark.js +20 -1
  68. package/dist/packages/_es/{index-f933fcf6.js → index-87422be8.js} +23 -5
  69. package/dist/packages/_es/{index-c55ad69e.js → index-da0a7662.js} +25 -10
  70. package/dist/packages/_es/{index.vue_vue_type_script_lang-442e4704.js → index.vue_vue_type_script_lang-a8856969.js} +0 -1
  71. package/dist/packages/cell/index.scss +1 -1
  72. package/dist/packages/cellgroup/index.scss +1 -0
  73. package/dist/packages/circleprogress/index.scss +1 -1
  74. package/dist/packages/col/index.scss +2 -2
  75. package/dist/packages/imagepreview/index.scss +0 -5
  76. package/dist/packages/locale/lang/baseLang-3a8457ac.js +5 -0
  77. package/dist/packages/locale/lang/en-US.js +39 -36
  78. package/dist/packages/locale/lang/id-ID.js +39 -36
  79. package/dist/packages/locale/lang/index.js +44 -22
  80. package/dist/packages/locale/lang/zh-CN.js +38 -35
  81. package/dist/packages/locale/lang/zh-TW.js +38 -35
  82. package/dist/packages/menuitem/index.scss +7 -10
  83. package/dist/packages/numberkeyboard/index.scss +5 -3
  84. package/dist/packages/searchbar/index.scss +4 -0
  85. package/dist/packages/textarea/index.scss +1 -1
  86. package/dist/resolver/index.js +26 -1
  87. package/dist/resolver/index.mjs +17 -14
  88. package/dist/smartips/web-types.json +42 -159
  89. package/dist/style.css +1 -1
  90. package/dist/styles/mixins/make-animation.scss +1 -5
  91. package/dist/styles/themes/default.scss +149 -46
  92. package/dist/styles/themes/jdb.scss +149 -46
  93. package/dist/styles/themes/jddkh.scss +149 -46
  94. package/dist/styles/themes/jdt.scss +149 -46
  95. package/dist/styles/variables-jdb.scss +1 -0
  96. package/dist/styles/variables-jddkh.scss +1 -0
  97. package/dist/styles/variables-jdt.scss +1 -0
  98. package/dist/styles/variables.scss +1 -0
  99. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -291
  100. package/dist/types/__VUE/address/index.vue.d.ts +1 -345
  101. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +1 -59
  102. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -22
  103. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -72
  104. package/dist/types/__VUE/animate/index.vue.d.ts +1 -49
  105. package/dist/types/__VUE/audio/index.vue.d.ts +1 -109
  106. package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -26
  107. package/dist/types/__VUE/avatar/index.vue.d.ts +1 -65
  108. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -81
  109. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -87
  110. package/dist/types/__VUE/badge/index.vue.d.ts +1 -91
  111. package/dist/types/__VUE/barrage/index.vue.d.ts +1 -67
  112. package/dist/types/__VUE/button/index.vue.d.ts +1 -79
  113. package/dist/types/__VUE/button/type.d.ts +1 -0
  114. package/dist/types/__VUE/calendar/index.vue.d.ts +1 -164
  115. package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -205
  116. package/dist/types/__VUE/card/index.vue.d.ts +1 -57
  117. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +1 -66
  118. package/dist/types/__VUE/cascader/index.vue.d.ts +1 -252
  119. package/dist/types/__VUE/category/index.vue.d.ts +1 -27
  120. package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -34
  121. package/dist/types/__VUE/cell/index.vue.d.ts +1 -106
  122. package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -26
  123. package/dist/types/__VUE/checkbox/index.vue.d.ts +1 -1
  124. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -36
  125. package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -83
  126. package/dist/types/__VUE/col/index.vue.d.ts +1 -30
  127. package/dist/types/__VUE/collapse/index.vue.d.ts +1 -56
  128. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -99
  129. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +1 -41
  130. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +1 -35
  131. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +1 -58
  132. package/dist/types/__VUE/comment/index.vue.d.ts +1 -109
  133. package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -34
  134. package/dist/types/__VUE/countdown/index.vue.d.ts +1 -92
  135. package/dist/types/__VUE/countup/index.vue.d.ts +1 -204
  136. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -222
  137. package/dist/types/__VUE/dialog/index.d.ts +1 -0
  138. package/dist/types/__VUE/dialog/index.vue.d.ts +1 -325
  139. package/dist/types/__VUE/divider/index.vue.d.ts +1 -42
  140. package/dist/types/__VUE/divider/types.d.ts +2 -0
  141. package/dist/types/__VUE/drag/index.vue.d.ts +1 -49
  142. package/dist/types/__VUE/ecard/index.vue.d.ts +1 -114
  143. package/dist/types/__VUE/elevator/index.vue.d.ts +1 -98
  144. package/dist/types/__VUE/ellipsis/index.vue.d.ts +1 -85
  145. package/dist/types/__VUE/empty/index.vue.d.ts +1 -35
  146. package/dist/types/__VUE/fixednav/index.vue.d.ts +1 -94
  147. package/dist/types/__VUE/form/index.vue.d.ts +1 -29
  148. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -103
  149. package/dist/types/__VUE/formitem/types.d.ts +1 -1
  150. package/dist/types/__VUE/grid/index.vue.d.ts +1 -73
  151. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -36
  152. package/dist/types/__VUE/icon/index.vue.d.ts +1 -1
  153. package/dist/types/__VUE/image/index.vue.d.ts +1 -104
  154. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -106
  155. package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -172
  156. package/dist/types/__VUE/indicator/index.vue.d.ts +1 -59
  157. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -76
  158. package/dist/types/__VUE/input/index.vue.d.ts +2 -208
  159. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -105
  160. package/dist/types/__VUE/invoice/index.vue.d.ts +1 -41
  161. package/dist/types/__VUE/layout/index.vue.d.ts +1 -1
  162. package/dist/types/__VUE/list/index.vue.d.ts +1 -76
  163. package/dist/types/__VUE/menu/index.vue.d.ts +1 -81
  164. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -79
  165. package/dist/types/__VUE/navbar/index.vue.d.ts +1 -111
  166. package/dist/types/__VUE/noticebar/index.vue.d.ts +1 -196
  167. package/dist/types/__VUE/notify/index.vue.d.ts +1 -99
  168. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -109
  169. package/dist/types/__VUE/overlay/index.vue.d.ts +1 -74
  170. package/dist/types/__VUE/pagination/index.vue.d.ts +1 -100
  171. package/dist/types/__VUE/picker/Column.vue.d.ts +1 -103
  172. package/dist/types/__VUE/picker/common.d.ts +4 -405
  173. package/dist/types/__VUE/picker/index.vue.d.ts +1 -216
  174. package/dist/types/__VUE/picker/usePicker.d.ts +1 -1
  175. package/dist/types/__VUE/popover/index.vue.d.ts +1 -176
  176. package/dist/types/__VUE/popup/index.vue.d.ts +1 -208
  177. package/dist/types/__VUE/price/index.vue.d.ts +1 -84
  178. package/dist/types/__VUE/progress/index.vue.d.ts +1 -109
  179. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -106
  180. package/dist/types/__VUE/radio/index.vue.d.ts +1 -42
  181. package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -36
  182. package/dist/types/__VUE/range/index.vue.d.ts +1 -146
  183. package/dist/types/__VUE/rate/index.vue.d.ts +1 -122
  184. package/dist/types/__VUE/row/index.vue.d.ts +1 -51
  185. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -165
  186. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -92
  187. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -25
  188. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -29
  189. package/dist/types/__VUE/signature/index.vue.d.ts +1 -70
  190. package/dist/types/__VUE/skeleton/index.vue.d.ts +1 -104
  191. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +1 -16
  192. package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +1 -59
  193. package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +1 -24
  194. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +1 -55
  195. package/dist/types/__VUE/sku/index.vue.d.ts +1 -312
  196. package/dist/types/__VUE/step/index.vue.d.ts +1 -31
  197. package/dist/types/__VUE/steps/index.vue.d.ts +1 -35
  198. package/dist/types/__VUE/sticky/index.vue.d.ts +1 -52
  199. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -42
  200. package/dist/types/__VUE/swipe/index.vue.d.ts +1 -58
  201. package/dist/types/__VUE/swiper/index.vue.d.ts +1 -163
  202. package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -7
  203. package/dist/types/__VUE/switch/index.vue.d.ts +1 -98
  204. package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -74
  205. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -49
  206. package/dist/types/__VUE/table/common.d.ts +56 -3
  207. package/dist/types/__VUE/table/index.vue.d.ts +1 -69
  208. package/dist/types/__VUE/table/renderColumn.d.ts +1 -1
  209. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -33
  210. package/dist/types/__VUE/tabs/index.vue.d.ts +2 -167
  211. package/dist/types/__VUE/tag/index.vue.d.ts +1 -79
  212. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -111
  213. package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -27
  214. package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -31
  215. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -81
  216. package/dist/types/__VUE/toast/index.vue.d.ts +1 -149
  217. package/dist/types/__VUE/tour/index.vue.d.ts +1 -184
  218. package/dist/types/__VUE/trendarrow/index.vue.d.ts +1 -94
  219. package/dist/types/__VUE/uploader/index.vue.d.ts +1 -243
  220. package/dist/types/__VUE/video/index.vue.d.ts +1 -114
  221. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -164
  222. package/dist/types/index.d.ts +1 -1
  223. package/dist/types/utils/create/component.d.ts +24 -3
  224. package/dist/types/utils/unit.d.ts +2 -0
  225. package/package.json +4 -5
  226. package/dist/packages/locale/lang/baseLang-0bdc6353.js +0 -5
@@ -1,10 +1,28 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __pow = Math.pow;
2
8
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3
21
  var __publicField = (obj, key, value) => {
4
22
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
23
  return value;
6
24
  };
7
- import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, h } from "vue";
25
+ import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, nextTick, h } from "vue";
8
26
  import { c as createComponent, e as clamp, d as preventDefault, i as isArray } from "./component-81a4c1d0.js";
9
27
  import { u as useRect } from "./index-29892cda.js";
10
28
  import { u as useTouch } from "./index-7a7385e4.js";
@@ -12,7 +30,7 @@ import Video from "./Video.js";
12
30
  import SwiperItem from "./SwiperItem.js";
13
31
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
14
32
  import { CircleClose } from "@nutui/icons-vue";
15
- import { P as Popup } from "./index-c55ad69e.js";
33
+ import { P as Popup } from "./index-da0a7662.js";
16
34
  import Swiper from "./Swiper.js";
17
35
  import { f as funInterceptor } from "./Interceptor-956b24fc.js";
18
36
  import "../locale/lang";
@@ -29,8 +47,7 @@ const baseProps = {
29
47
  };
30
48
  const { create: create$1 } = createComponent("image-preview-item");
31
49
  const _sfc_main$1 = create$1({
32
- props: {
33
- ...baseProps,
50
+ props: __spreadProps(__spreadValues({}, baseProps), {
34
51
  image: {
35
52
  type: Object,
36
53
  default: () => ({})
@@ -46,8 +63,12 @@ const _sfc_main$1 = create$1({
46
63
  rootHeight: {
47
64
  type: Number,
48
65
  default: 0
66
+ },
67
+ contentClose: {
68
+ type: Boolean,
69
+ default: true
49
70
  }
50
- },
71
+ }),
51
72
  emits: ["close", "scale"],
52
73
  components: {
53
74
  [Video.name]: Video,
@@ -127,7 +148,7 @@ const _sfc_main$1 = create$1({
127
148
  state.moveX = 0;
128
149
  state.moveY = 0;
129
150
  };
130
- const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
151
+ const getDistance = (touches) => Math.sqrt(__pow(touches[0].clientX - touches[1].clientX, 2) + __pow(touches[0].clientY - touches[1].clientY, 2));
131
152
  let startMoveX;
132
153
  let startMoveY;
133
154
  let startScale;
@@ -187,7 +208,9 @@ const _sfc_main$1 = create$1({
187
208
  toggleScale();
188
209
  } else {
189
210
  doubleTapTimer = setTimeout(() => {
190
- emit("close");
211
+ if (props.contentClose) {
212
+ emit("close");
213
+ }
191
214
  doubleTapTimer = null;
192
215
  }, TAP_TIME);
193
216
  }
@@ -234,8 +257,7 @@ const _sfc_main$1 = create$1({
234
257
  }
235
258
  }
236
259
  );
237
- return {
238
- ...toRefs(state),
260
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
239
261
  onTouchStart,
240
262
  onTouchMove,
241
263
  onTouchEnd,
@@ -243,7 +265,7 @@ const _sfc_main$1 = create$1({
243
265
  imageStyle,
244
266
  imageLoad,
245
267
  closeSwiper
246
- };
268
+ });
247
269
  }
248
270
  });
249
271
  const _hoisted_1$1 = ["src"];
@@ -279,8 +301,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
279
301
  const ImagePreviewItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
280
302
  const { create } = createComponent("image-preview");
281
303
  const _sfc_main = create({
282
- props: {
283
- ...baseProps,
304
+ props: __spreadProps(__spreadValues({}, baseProps), {
284
305
  images: { type: Array, default: () => [] },
285
306
  videos: { type: Array, default: () => [] },
286
307
  contentClose: { type: Boolean, default: true },
@@ -303,7 +324,7 @@ const _sfc_main = create({
303
324
  type: Boolean,
304
325
  default: true
305
326
  }
306
- },
327
+ }),
307
328
  emits: ["close", "change"],
308
329
  components: {
309
330
  ImagePreviewItem,
@@ -373,14 +394,14 @@ const _sfc_main = create({
373
394
  onMounted(() => {
374
395
  setActive(props.initNo);
375
396
  });
376
- return {
377
- swipeRef,
378
- ...toRefs(state),
397
+ return __spreadProps(__spreadValues({
398
+ swipeRef
399
+ }, toRefs(state)), {
379
400
  onClose,
380
401
  mergeImages,
381
402
  setActive,
382
403
  iconClasses
383
- };
404
+ });
384
405
  }
385
406
  });
386
407
  const _hoisted_1 = {
@@ -430,9 +451,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
430
451
  show: _ctx.showPop,
431
452
  "init-no": _ctx.active + 1,
432
453
  onClose: _ctx.onClose,
454
+ "content-close": _ctx.contentClose,
433
455
  maxZoom: _ctx.maxZoom,
434
456
  minZoom: _ctx.minZoom
435
- }, null, 8, ["video", "image", "rootHeight", "rootWidth", "show", "init-no", "onClose", "maxZoom", "minZoom"]);
457
+ }, null, 8, ["video", "image", "rootHeight", "rootWidth", "show", "init-no", "onClose", "content-close", "maxZoom", "minZoom"]);
436
458
  }), 128))
437
459
  ]),
438
460
  _: 1
@@ -487,7 +509,10 @@ class ImagePreviewFunction {
487
509
  setup() {
488
510
  return () => {
489
511
  options.onClose = () => {
490
- unmount();
512
+ options.show = false;
513
+ nextTick(() => {
514
+ unmount();
515
+ });
491
516
  };
492
517
  return h(ImagePreview, options);
493
518
  };
@@ -1,3 +1,22 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  import { ref, reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
2
21
  import { c as createComponent, l as getScrollTopRoot } from "./component-81a4c1d0.js";
3
22
  import { u as useScrollParent } from "./index-43c34ac6.js";
@@ -122,13 +141,13 @@ const _sfc_main = create({
122
141
  }
123
142
  }
124
143
  );
125
- return {
144
+ return __spreadProps(__spreadValues({
126
145
  classes,
127
- scroller,
128
- ...toRefs(state),
146
+ scroller
147
+ }, toRefs(state)), {
129
148
  translate,
130
149
  slots
131
- };
150
+ });
132
151
  }
133
152
  });
134
153
  const _hoisted_1 = { class: "nut-infinite__container" };
@@ -1,3 +1,19 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
1
17
  import { ref, reactive, computed, watch, onMounted, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createBlock, resolveDynamicComponent, normalizeStyle, toDisplayString, createTextVNode, createCommentVNode, withDirectives, createVNode, mergeProps, vShow } from "vue";
2
18
  import { c as createComponent } from "./component-81a4c1d0.js";
3
19
  import { MaskClose } from "@nutui/icons-vue";
@@ -113,12 +129,14 @@ const _sfc_main = create({
113
129
  setup(props, { emit, slots }) {
114
130
  const active = ref(false);
115
131
  const inputRef = ref();
116
- const getModelValue = () => String(props.modelValue ?? "");
132
+ const getModelValue = () => {
133
+ var _a;
134
+ return String((_a = props.modelValue) != null ? _a : "");
135
+ };
117
136
  const renderInput = (type) => {
118
- return h("input", {
119
- style: styles,
120
- ...inputType(type)
121
- });
137
+ return h("input", __spreadValues({
138
+ style: styles
139
+ }, inputType(type)));
122
140
  };
123
141
  const state = reactive({
124
142
  focused: false,
@@ -1,8 +1,27 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  import { ref, reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, withDirectives, vModelText, createCommentVNode } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import Form from "./Form.js";
4
23
  import FormItem from "./FormItem.js";
5
- import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-442e4704.js";
24
+ import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-a8856969.js";
6
25
  import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-22dfc112.js";
7
26
  import Button from "./Button.js";
8
27
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -64,13 +83,12 @@ const _sfc_main = create({
64
83
  () => init(),
65
84
  { deep: true }
66
85
  );
67
- return {
68
- ...toRefs(state),
86
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
69
87
  classes,
70
88
  formRef,
71
89
  list,
72
90
  submitFun
73
- };
91
+ });
74
92
  }
75
93
  });
76
94
  const _hoisted_1 = ["placeholder", "onUpdate:modelValue"];
@@ -1,3 +1,22 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { u as useRect } from "./index-29892cda.js";
@@ -204,8 +223,7 @@ const _sfc_main = create({
204
223
  }
205
224
  }
206
225
  );
207
- return {
208
- ...toRefs(state),
226
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
209
227
  list,
210
228
  phantom,
211
229
  actualContent,
@@ -214,7 +232,7 @@ const _sfc_main = create({
214
232
  classes,
215
233
  getContainerHeight,
216
234
  handleScrollEvent
217
- };
235
+ });
218
236
  }
219
237
  });
220
238
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -25,9 +25,8 @@ const _sfc_main = create({
25
25
  },
26
26
  duration: {
27
27
  type: [Number, String],
28
- default: 0
28
+ default: 0.3
29
29
  },
30
- titleIcon: String,
31
30
  closeOnClickOverlay: {
32
31
  type: Boolean,
33
32
  default: true
@@ -1,11 +1,30 @@
1
- import { reactive, computed, inject, getCurrentInstance, onUnmounted, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow, createVNode, mergeProps, withCtx, Fragment, renderList, renderSlot, createCommentVNode, toDisplayString } from "vue";
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { reactive, computed, inject, getCurrentInstance, onUnmounted, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeStyle, createElementVNode, vShow, createVNode, mergeProps, withCtx, Fragment, renderList, normalizeClass, renderSlot, createCommentVNode, toDisplayString } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup } from "./index-c55ad69e.js";
22
+ import { P as Popup } from "./index-da0a7662.js";
4
23
  import { Check } from "@nutui/icons-vue";
5
24
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
6
25
  import "../locale/lang";
7
26
  import "./Overlay.js";
8
- const { componentName, create } = createComponent("menu-item");
27
+ const { create } = createComponent("menu-item");
9
28
  const _sfc_main = create({
10
29
  props: {
11
30
  title: String,
@@ -23,23 +42,17 @@ const _sfc_main = create({
23
42
  default: 1
24
43
  },
25
44
  activeTitleClass: String,
26
- inactiveTitleClass: String,
27
- optionIcon: {
28
- type: String,
29
- default: "Check"
30
- }
45
+ inactiveTitleClass: String
31
46
  },
32
47
  components: {
33
48
  [Popup.name]: Popup,
34
49
  Check
35
50
  },
36
51
  emits: ["update:modelValue", "change", "open", "close"],
37
- setup(props, { emit, slots }) {
52
+ setup(props, { emit }) {
38
53
  const state = reactive({
39
54
  showPopup: false,
40
- transition: true,
41
- showWrapper: false,
42
- isShowPlaceholderElement: false
55
+ showWrapper: false
43
56
  });
44
57
  const useParent = () => {
45
58
  const parent2 = inject("menuParent", null);
@@ -50,32 +63,30 @@ const _sfc_main = create({
50
63
  onUnmounted(() => {
51
64
  removeLink(instance);
52
65
  });
53
- return {
54
- parent: parent2
55
- };
66
+ return { parent: parent2 };
56
67
  }
57
68
  };
58
69
  const { parent } = useParent();
59
- const classes = computed(() => {
60
- const prefixCls = componentName;
61
- return {
62
- [prefixCls]: true
70
+ const style = computed(() => {
71
+ return parent.props.direction === "down" ? {
72
+ top: parent.offset.value + "px"
73
+ } : {
74
+ bottom: parent.offset.value + "px"
63
75
  };
64
76
  });
65
77
  const placeholderElementStyle = computed(() => {
66
78
  const heightStyle = { height: parent.offset.value + "px" };
67
79
  if (parent.props.direction === "down") {
68
- return heightStyle;
80
+ return __spreadProps(__spreadValues({}, heightStyle), { top: "0px" });
69
81
  } else {
70
- return { ...heightStyle, top: "auto" };
82
+ return __spreadProps(__spreadValues({}, heightStyle), { bottom: "0px" });
71
83
  }
72
84
  });
73
- const toggle = (show = !state.showPopup, options = {}) => {
85
+ const toggle = (show = !state.showPopup) => {
74
86
  if (show === state.showPopup) {
75
87
  return;
76
88
  }
77
89
  state.showPopup = show;
78
- state.isShowPlaceholderElement = show;
79
90
  if (show) {
80
91
  state.showWrapper = true;
81
92
  emit("open");
@@ -91,7 +102,6 @@ const _sfc_main = create({
91
102
  };
92
103
  const onClick = (option) => {
93
104
  state.showPopup = false;
94
- state.isShowPlaceholderElement = false;
95
105
  if (option.value !== props.modelValue) {
96
106
  emit("update:modelValue", option.value);
97
107
  emit("change", option.value);
@@ -100,14 +110,13 @@ const _sfc_main = create({
100
110
  const handleClose = () => {
101
111
  emit("close");
102
112
  state.showWrapper = false;
103
- state.isShowPlaceholderElement = false;
104
113
  };
105
114
  const handleClickOutside = () => {
106
115
  state.showPopup = false;
107
116
  emit("close");
108
117
  };
109
118
  return {
110
- classes,
119
+ style,
111
120
  placeholderElementStyle,
112
121
  renderTitle,
113
122
  state,
@@ -125,24 +134,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
125
134
  const _component_Check = resolveComponent("Check");
126
135
  const _component_nut_popup = resolveComponent("nut-popup");
127
136
  return withDirectives((openBlock(), createElementBlock("view", {
128
- class: normalizeClass(_ctx.classes)
137
+ class: "nut-menu-item",
138
+ style: normalizeStyle(_ctx.style)
129
139
  }, [
130
140
  withDirectives(createElementVNode("div", {
131
141
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickOutside && _ctx.handleClickOutside(...args)),
132
- class: normalizeClass(["nut-menu-item-placeholder-element", { up: _ctx.parent.props.direction === "up" }]),
142
+ class: "nut-menu-item-placeholder-element",
133
143
  style: normalizeStyle(_ctx.placeholderElementStyle)
134
- }, null, 6), [
135
- [vShow, _ctx.state.isShowPlaceholderElement]
144
+ }, null, 4), [
145
+ [vShow, _ctx.state.showPopup]
136
146
  ]),
137
147
  createVNode(_component_nut_popup, mergeProps({
138
- style: _ctx.parent.props.direction === "down" ? { top: _ctx.parent.offset.value + "px" } : { bottom: _ctx.parent.offset.value + "px" },
139
- overlayStyle: _ctx.parent.props.direction === "down" ? { top: _ctx.parent.offset.value + "px" } : { bottom: _ctx.parent.offset.value + "px", top: "auto" }
148
+ style: { position: "absolute" },
149
+ overlayStyle: { position: "absolute" }
140
150
  }, _ctx.$attrs, {
141
151
  visible: _ctx.state.showPopup,
142
152
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.state.showPopup = $event),
143
153
  position: _ctx.parent.props.direction === "down" ? "top" : "bottom",
144
154
  duration: _ctx.parent.props.duration,
145
- "pop-class": "nut-menu__pop",
146
155
  "destroy-on-close": false,
147
156
  overlay: _ctx.parent.props.overlay,
148
157
  onClosed: _ctx.handleClose,
@@ -179,8 +188,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
179
188
  ])
180
189
  ]),
181
190
  _: 3
182
- }, 16, ["style", "overlayStyle", "visible", "position", "duration", "overlay", "onClosed", "lockScroll", "close-on-click-overlay"])
183
- ], 2)), [
191
+ }, 16, ["visible", "position", "duration", "overlay", "onClosed", "lockScroll", "close-on-click-overlay"])
192
+ ], 4)), [
184
193
  [vShow, _ctx.state.showWrapper]
185
194
  ]);
186
195
  }
@@ -1,3 +1,22 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createElementVNode, renderSlot, createBlock, createCommentVNode, createTextVNode, toDisplayString, withModifiers, vShow, Fragment, renderList } from "vue";
2
21
  import { Notice, CircleClose } from "@nutui/icons-vue";
3
22
  import { c as createComponent } from "./component-81a4c1d0.js";
@@ -283,9 +302,7 @@ const _sfc_main = create({
283
302
  onUnmounted(() => {
284
303
  clearInterval(state.timer);
285
304
  });
286
- return {
287
- ...toRefs(props),
288
- ...toRefs(state),
305
+ return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(state)), {
289
306
  isEllipsis,
290
307
  classes,
291
308
  barStyle,
@@ -301,7 +318,7 @@ const _sfc_main = create({
301
318
  slots,
302
319
  pxCheck,
303
320
  wrapContentClass
304
- };
321
+ });
305
322
  }
306
323
  });
307
324
  const _hoisted_1 = { class: "nut-noticebar__page-lefticon" };
@@ -1,6 +1,25 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup } from "./index-c55ad69e.js";
22
+ import { P as Popup } from "./index-da0a7662.js";
4
23
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
24
  import "../locale/lang";
6
25
  import "./Overlay.js";
@@ -141,9 +160,9 @@ const updateNotify = (opts) => {
141
160
  if (container) {
142
161
  const currentOpt = optsMap.find((item) => item.id === opts.id);
143
162
  if (currentOpt) {
144
- opts = { ...defaultOptions, ...currentOpt, ...opts };
163
+ opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), currentOpt), opts);
145
164
  } else {
146
- opts = { ...defaultOptions, ...opts };
165
+ opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
147
166
  }
148
167
  const instance = createVNode(Notify, opts);
149
168
  render(instance, container);
@@ -161,7 +180,7 @@ const mountNotify = (opts) => {
161
180
  } else {
162
181
  _id = (/* @__PURE__ */ new Date()).getTime() + "";
163
182
  }
164
- opts = { ...defaultOptions, ...opts };
183
+ opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
165
184
  opts.id = _id;
166
185
  idsMap.push(opts.id);
167
186
  optsMap.push(opts);
@@ -194,23 +213,23 @@ const errorMsg = (msg) => {
194
213
  const showNotify = {
195
214
  text(msg, obj = {}) {
196
215
  errorMsg(msg);
197
- return mountNotify({ ...obj, msg });
216
+ return mountNotify(__spreadProps(__spreadValues({}, obj), { msg }));
198
217
  },
199
218
  primary(msg, obj = {}) {
200
219
  errorMsg(msg);
201
- return mountNotify({ ...obj, msg, type: "primary" });
220
+ return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "primary" }));
202
221
  },
203
222
  success(msg, obj = {}) {
204
223
  errorMsg(msg);
205
- return mountNotify({ ...obj, msg, type: "success" });
224
+ return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "success" }));
206
225
  },
207
226
  danger(msg, obj = {}) {
208
227
  errorMsg(msg);
209
- return mountNotify({ ...obj, msg, type: "danger" });
228
+ return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "danger" }));
210
229
  },
211
230
  warn(msg, obj = {}) {
212
231
  errorMsg(msg);
213
- return mountNotify({ ...obj, msg, type: "warning" });
232
+ return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "warning" }));
214
233
  },
215
234
  hide() {
216
235
  clearNotify();
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup } from "./index-c55ad69e.js";
3
+ import { P as Popup } from "./index-da0a7662.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  import "./Overlay.js";
@@ -1,3 +1,19 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
1
17
  import { computed, watchEffect, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, withModifiers, normalizeStyle, renderSlot, vShow } from "vue";
2
18
  import { b as body, c as createComponent } from "./component-81a4c1d0.js";
3
19
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -67,11 +83,10 @@ const _sfc_main = create({
67
83
  };
68
84
  });
69
85
  const style = computed(() => {
70
- return {
86
+ return __spreadValues({
71
87
  transitionDuration: `${props.duration}s`,
72
- zIndex: props.zIndex,
73
- ...props.overlayStyle
74
- };
88
+ zIndex: props.zIndex
89
+ }, props.overlayStyle);
75
90
  });
76
91
  watchEffect(() => {
77
92
  props.visible ? lock() : unlock();