@nutui/nutui 3.1.23-beta.5 → 3.1.23-beta.6

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 (166) hide show
  1. package/dist/nutui.es.js +259 -247
  2. package/dist/nutui.umd.js +259 -247
  3. package/dist/packages/_es/ActionSheet.js +22 -4
  4. package/dist/packages/_es/Address.js +26 -8
  5. package/dist/packages/_es/AddressList.js +2 -2
  6. package/dist/packages/_es/Animate.js +21 -2
  7. package/dist/packages/_es/Audio.js +22 -5
  8. package/dist/packages/_es/AudioOperate.js +21 -2
  9. package/dist/packages/_es/Avatar.js +20 -5
  10. package/dist/packages/_es/AvatarGroup.js +1 -1
  11. package/dist/packages/_es/BackTop.js +1 -1
  12. package/dist/packages/_es/Badge.js +1 -1
  13. package/dist/packages/_es/Barrage.js +1 -1
  14. package/dist/packages/_es/Button.js +1 -1
  15. package/dist/packages/_es/Calendar.js +1 -1
  16. package/dist/packages/_es/CalendarItem.js +1 -1
  17. package/dist/packages/_es/Card.js +1 -1
  18. package/dist/packages/_es/Cascader.js +46 -19
  19. package/dist/packages/_es/Category.js +1 -1
  20. package/dist/packages/_es/CategoryPane.js +2 -2
  21. package/dist/packages/_es/Cell.js +1 -1
  22. package/dist/packages/_es/CellGroup.js +1 -1
  23. package/dist/packages/_es/Checkbox.js +1 -1
  24. package/dist/packages/_es/CheckboxGroup.js +1 -1
  25. package/dist/packages/_es/CircleProgress.js +1 -1
  26. package/dist/packages/_es/Col.js +1 -1
  27. package/dist/packages/_es/Collapse.js +10 -9
  28. package/dist/packages/_es/CollapseItem.js +24 -7
  29. package/dist/packages/_es/Comment.js +1 -1
  30. package/dist/packages/_es/ConfigProvider.js +1 -1
  31. package/dist/packages/_es/CountDown.js +23 -5
  32. package/dist/packages/_es/CountUp.js +22 -5
  33. package/dist/packages/_es/DatePicker.js +24 -7
  34. package/dist/packages/_es/Dialog.js +22 -4
  35. package/dist/packages/_es/Divider.js +24 -7
  36. package/dist/packages/_es/Drag.js +1 -1
  37. package/dist/packages/_es/Ecard.js +1 -1
  38. package/dist/packages/_es/Elevator.js +24 -5
  39. package/dist/packages/_es/Ellipsis.js +21 -2
  40. package/dist/packages/_es/Empty.js +1 -1
  41. package/dist/packages/_es/FixedNav.js +1 -1
  42. package/dist/packages/_es/Form.js +1 -1
  43. package/dist/packages/_es/FormItem.js +1 -1
  44. package/dist/packages/_es/Grid.js +1 -1
  45. package/dist/packages/_es/GridItem.js +1 -1
  46. package/dist/packages/_es/Icon.js +1 -1
  47. package/dist/packages/_es/Image.js +21 -2
  48. package/dist/packages/_es/ImagePreview.js +26 -8
  49. package/dist/packages/_es/Indicator.js +1 -1
  50. package/dist/packages/_es/InfiniteLoading.js +24 -5
  51. package/dist/packages/_es/Input.js +31 -4
  52. package/dist/packages/_es/InputNumber.js +1 -1
  53. package/dist/packages/_es/Layout.js +1 -1
  54. package/dist/packages/_es/List.js +22 -4
  55. package/dist/packages/_es/Menu.js +1 -1
  56. package/dist/packages/_es/MenuItem.js +28 -5
  57. package/dist/packages/_es/Navbar.js +1 -1
  58. package/dist/packages/_es/NoticeBar.js +23 -6
  59. package/dist/packages/_es/Notify.js +32 -19
  60. package/dist/packages/_es/NumberKeyboard.js +1 -1
  61. package/dist/packages/_es/OldPicker.js +28 -12
  62. package/dist/packages/_es/OverLay.js +20 -5
  63. package/dist/packages/_es/Pagination.js +1 -1
  64. package/dist/packages/_es/Picker.js +28 -12
  65. package/dist/packages/_es/Popover.js +22 -4
  66. package/dist/packages/_es/Popup.js +28 -14
  67. package/dist/packages/_es/Price.js +1 -1
  68. package/dist/packages/_es/Progress.js +1 -1
  69. package/dist/packages/_es/PullRefresh.js +20 -5
  70. package/dist/packages/_es/Radio.js +1 -1
  71. package/dist/packages/_es/RadioGroup.js +1 -1
  72. package/dist/packages/_es/Range.js +24 -5
  73. package/dist/packages/_es/Rate.js +24 -5
  74. package/dist/packages/_es/Row.js +1 -1
  75. package/dist/packages/_es/SearchBar.js +24 -5
  76. package/dist/packages/_es/ShortPassword.js +1 -1
  77. package/dist/packages/_es/SideNavBar.js +22 -4
  78. package/dist/packages/_es/SideNavBarItem.js +1 -1
  79. package/dist/packages/_es/Signature.js +28 -7
  80. package/dist/packages/_es/Skeleton.js +1 -1
  81. package/dist/packages/_es/Sku.js +22 -4
  82. package/dist/packages/_es/Step.js +22 -4
  83. package/dist/packages/_es/Steps.js +1 -1
  84. package/dist/packages/_es/Sticky.js +1 -1
  85. package/dist/packages/_es/SubSideNavBar.js +22 -4
  86. package/dist/packages/_es/Swipe.js +24 -5
  87. package/dist/packages/_es/Swiper.js +1 -1
  88. package/dist/packages/_es/SwiperItem.js +1 -1
  89. package/dist/packages/_es/Switch.js +1 -1
  90. package/dist/packages/_es/TabPane.js +1 -1
  91. package/dist/packages/_es/Tabbar.js +1 -1
  92. package/dist/packages/_es/TabbarItem.js +1 -1
  93. package/dist/packages/_es/Table.js +22 -4
  94. package/dist/packages/_es/Tabs.js +20 -5
  95. package/dist/packages/_es/Tag.js +1 -1
  96. package/dist/packages/_es/TextArea.js +1 -1
  97. package/dist/packages/_es/TimeDetail.js +24 -5
  98. package/dist/packages/_es/TimePannel.js +22 -4
  99. package/dist/packages/_es/TimeSelect.js +1 -1
  100. package/dist/packages/_es/Toast.js +31 -12
  101. package/dist/packages/_es/Uploader.js +20 -5
  102. package/dist/packages/_es/Video.js +24 -6
  103. package/dist/packages/_es/WaterMark.js +21 -2
  104. package/dist/packages/_es/common.js +1 -1
  105. package/dist/packages/_es/component.js +1 -1
  106. package/dist/packages/_es/index.js +1 -1
  107. package/dist/packages/_es/index2.js +1 -1
  108. package/dist/packages/_es/index3.js +1 -1
  109. package/dist/packages/_es/index4.js +1 -1
  110. package/dist/packages/_es/index5.js +24 -6
  111. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  112. package/dist/packages/_es/pxCheck.js +1 -1
  113. package/dist/packages/_es/raf.js +1 -1
  114. package/dist/packages/index.d.ts +3 -0
  115. package/dist/packages/locale/lang/baseLang.js +1 -1
  116. package/dist/packages/locale/lang/en-US.js +1 -1
  117. package/dist/packages/locale/lang/id-ID.js +1 -1
  118. package/dist/packages/locale/lang/index.js +1 -1
  119. package/dist/packages/locale/lang/zh-CN.js +1 -1
  120. package/dist/packages/locale/lang/zh-TW.js +1 -1
  121. package/dist/packages/notify/index.scss +5 -0
  122. package/dist/packages/textarea/index.scss +6 -0
  123. package/dist/smartips/web-types.json +1 -1
  124. package/dist/style.css +1 -1
  125. package/dist/style.es.js +1 -1
  126. package/dist/styles/themes/default.scss +43 -43
  127. package/dist/styles/themes/jdb.scss +43 -43
  128. package/dist/styles/themes/jdt.scss +43 -43
  129. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  130. package/dist/types/__VUE/address/index.vue.d.ts +4 -4
  131. package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
  132. package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
  133. package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
  134. package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
  135. package/dist/types/__VUE/button/index.vue.d.ts +2 -2
  136. package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
  137. package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
  138. package/dist/types/__VUE/cell/index.vue.d.ts +6 -6
  139. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  140. package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
  141. package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
  142. package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
  143. package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
  144. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  145. package/dist/types/__VUE/grid/index.vue.d.ts +5 -5
  146. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  147. package/dist/types/__VUE/input/index.vue.d.ts +3 -2
  148. package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
  149. package/dist/types/__VUE/menuitem/index.vue.d.ts +6 -0
  150. package/dist/types/__VUE/notify/index.vue.d.ts +5 -5
  151. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
  152. package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
  153. package/dist/types/__VUE/picker/index.vue.d.ts +3 -3
  154. package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
  155. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  156. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  157. package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
  158. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  159. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  160. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  161. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
  162. package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
  163. package/dist/types/__VUE/uploader/index.vue.d.ts +4 -4
  164. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  165. package/dist/types/index.d.ts +1 -1
  166. package/package.json +1 -1
@@ -1,5 +1,24 @@
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
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -67,15 +86,14 @@ const _sfc_main = create({
67
86
  watch(() => props.listData, () => {
68
87
  state.list = props.listData.slice();
69
88
  });
70
- return {
71
- ...toRefs(state),
89
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
72
90
  list,
73
91
  getTransform,
74
92
  listHeight,
75
93
  visibleData,
76
94
  classes,
77
95
  handleScrollEvent
78
- };
96
+ });
79
97
  }
80
98
  });
81
99
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,24 @@
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
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -29,6 +48,8 @@ const _sfc_main = create({
29
48
  default: 1
30
49
  },
31
50
  titleIcon: String,
51
+ activeTitleClass: String,
52
+ inactiveTitleClass: String,
32
53
  optionIcon: {
33
54
  type: String,
34
55
  default: "Check"
@@ -69,7 +90,7 @@ const _sfc_main = create({
69
90
  if (parent.props.direction === "down") {
70
91
  return heightStyle;
71
92
  } else {
72
- return { ...heightStyle, top: "auto" };
93
+ return __spreadProps(__spreadValues({}, heightStyle), { top: "auto" });
73
94
  }
74
95
  });
75
96
  const toggle = (show = !state.showPopup, options = {}) => {
@@ -154,18 +175,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
154
175
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index2) => {
155
176
  return openBlock(), createElementBlock("view", {
156
177
  key: index2,
157
- class: normalizeClass(["nut-menu-item__option", { active: option.value === _ctx.modelValue }]),
178
+ class: normalizeClass(["nut-menu-item__option", [{ active: option.value === _ctx.modelValue }]]),
158
179
  style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
159
180
  onClick: ($event) => _ctx.onClick(option)
160
181
  }, [
161
182
  option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, {
162
183
  key: 0,
184
+ class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
163
185
  name: _ctx.optionIcon,
164
186
  color: _ctx.parent.props.activeColor
165
- }, null, 8, ["name", "color"])) : createCommentVNode("", true),
187
+ }, null, 8, ["class", "name", "color"])) : createCommentVNode("", true),
166
188
  createElementVNode("view", {
189
+ class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
167
190
  style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
168
- }, toDisplayString(option.text), 5)
191
+ }, toDisplayString(option.text), 7)
169
192
  ], 14, _hoisted_2);
170
193
  }), 128)),
171
194
  renderSlot(_ctx.$slots, "default")
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,24 @@
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
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -153,7 +172,7 @@ const _sfc_main = create({
153
172
  return styles;
154
173
  });
155
174
  watch(() => props.text, (value) => {
156
- initScrollWrap();
175
+ initScrollWrap(value);
157
176
  });
158
177
  watch(() => props.list, (value) => {
159
178
  state.scrollList = [].concat(value);
@@ -258,9 +277,7 @@ const _sfc_main = create({
258
277
  onUnmounted(() => {
259
278
  clearInterval(state.timer);
260
279
  });
261
- return {
262
- ...toRefs(props),
263
- ...toRefs(state),
280
+ return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(state)), {
264
281
  isEllipsis,
265
282
  classes,
266
283
  iconShow,
@@ -276,7 +293,7 @@ const _sfc_main = create({
276
293
  go,
277
294
  handleClickIcon,
278
295
  slots
279
- };
296
+ });
280
297
  }
281
298
  });
282
299
  const _hoisted_1 = {
@@ -1,5 +1,24 @@
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
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -30,7 +49,7 @@ const _sfc_main = create({
30
49
  type: String,
31
50
  default: "danger"
32
51
  },
33
- showPopup: {
52
+ modelVisible: {
34
53
  type: Boolean,
35
54
  default: false
36
55
  },
@@ -53,7 +72,7 @@ const _sfc_main = create({
53
72
  });
54
73
  onMounted(() => {
55
74
  });
56
- const visible = ref(false);
75
+ const showPopup = ref(props.modelVisible);
57
76
  const clickCover = () => {
58
77
  props.onClick && props.onClick();
59
78
  };
@@ -87,7 +106,7 @@ const _sfc_main = create({
87
106
  props.unmount && props.unmount(props.id);
88
107
  props.onClose && props.onClose();
89
108
  };
90
- return { state, hide, onAfterLeave, clickCover, visible };
109
+ return { state, hide, onAfterLeave, clickCover, showPopup };
91
110
  }
92
111
  });
93
112
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -116,18 +135,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
116
135
  var Notify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
117
136
  const defaultOptions = {
118
137
  type: "base",
119
- showPopup: true,
120
138
  visible: true,
121
139
  msg: "",
122
140
  color: void 0,
123
141
  background: void 0,
124
142
  duration: 3e3,
125
- className: "",
126
- onClosed: null,
127
- onClick: null,
128
- onOpened: null,
129
- textTimer: null,
130
- unmount: null
143
+ className: ""
131
144
  };
132
145
  let idsMap = [];
133
146
  let optsMap = [];
@@ -155,9 +168,9 @@ const updateNotify = (opts) => {
155
168
  if (container) {
156
169
  const currentOpt = optsMap.find((item) => item.id === opts.id);
157
170
  if (currentOpt) {
158
- opts = { ...defaultOptions, ...currentOpt, ...opts };
171
+ opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), currentOpt), opts);
159
172
  } else {
160
- opts = { ...defaultOptions, ...opts };
173
+ opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
161
174
  }
162
175
  const instance = createVNode(Notify, opts);
163
176
  render(instance, container);
@@ -175,7 +188,7 @@ const mountNotify = (opts) => {
175
188
  } else {
176
189
  _id = new Date().getTime() + "";
177
190
  }
178
- opts = { ...defaultOptions, ...opts };
191
+ opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
179
192
  opts.id = _id;
180
193
  idsMap.push(opts.id);
181
194
  optsMap.push(opts);
@@ -207,23 +220,23 @@ const errorMsg = (msg) => {
207
220
  const NotifyFunction = {
208
221
  text(msg, obj = {}) {
209
222
  errorMsg(msg);
210
- return mountNotify({ ...obj, msg });
223
+ return mountNotify(__spreadProps(__spreadValues({}, obj), { msg }));
211
224
  },
212
225
  primary(msg, obj = {}) {
213
226
  errorMsg(msg);
214
- return mountNotify({ ...obj, msg, type: "primary" });
227
+ return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "primary" }));
215
228
  },
216
229
  success(msg, obj = {}) {
217
230
  errorMsg(msg);
218
- return mountNotify({ ...obj, msg, type: "success" });
231
+ return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "success" }));
219
232
  },
220
233
  danger(msg, obj = {}) {
221
234
  errorMsg(msg);
222
- return mountNotify({ ...obj, msg, type: "danger" });
235
+ return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "danger" }));
223
236
  },
224
237
  warn(msg, obj = {}) {
225
238
  errorMsg(msg);
226
- return mountNotify({ ...obj, msg, type: "warning" });
239
+ return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "warning" }));
227
240
  },
228
241
  hide() {
229
242
  clearNotify();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,24 @@
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
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -171,9 +190,7 @@ const _sfc_main$1 = create$1({
171
190
  onMounted(() => {
172
191
  modifyStatus(true);
173
192
  });
174
- return {
175
- ...toRefs(state),
176
- ...toRefs(props),
193
+ return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
177
194
  wrapper,
178
195
  setRollerStyle,
179
196
  isHidden,
@@ -186,7 +203,7 @@ const _sfc_main$1 = create$1({
186
203
  touchRollerStyle,
187
204
  touchListStyle,
188
205
  setMove
189
- };
206
+ });
190
207
  }
191
208
  });
192
209
  const _hoisted_1$1 = { class: "nut-oldpicker-content" };
@@ -238,8 +255,7 @@ const _sfc_main = create({
238
255
  [column.name]: column,
239
256
  [Popup.name]: Popup
240
257
  },
241
- props: {
242
- ...popupProps,
258
+ props: __spreadProps(__spreadValues({}, popupProps), {
243
259
  title: {
244
260
  type: String,
245
261
  default: ""
@@ -266,7 +282,7 @@ const _sfc_main = create({
266
282
  type: [Number, String],
267
283
  default: 0
268
284
  }
269
- },
285
+ }),
270
286
  emits: ["close", "change", "confirm", "update:visible"],
271
287
  setup(props, { emit }) {
272
288
  const childrenKey = "children";
@@ -395,16 +411,16 @@ const _sfc_main = create({
395
411
  watch(() => props.listData, (val) => {
396
412
  state.formattedColumns = val;
397
413
  });
398
- return {
399
- classes,
400
- ...toRefs(state),
414
+ return __spreadProps(__spreadValues({
415
+ classes
416
+ }, toRefs(state)), {
401
417
  column,
402
418
  dataType,
403
419
  columnList,
404
420
  close,
405
421
  changeHandler,
406
422
  confirm
407
- };
423
+ });
408
424
  }
409
425
  });
410
426
  const _hoisted_1 = { class: "nut-oldpicker__bar" };
@@ -1,5 +1,21 @@
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
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
19
  * (c) 2022 @jdf2e.
4
20
  * Released under the MIT License.
5
21
  */
@@ -64,11 +80,10 @@ const _sfc_main = create({
64
80
  onMounted(lock);
65
81
  onActivated(lock);
66
82
  const style = computed(() => {
67
- return {
83
+ return __spreadValues({
68
84
  animationDuration: `${props.duration}s`,
69
- zIndex: props.zIndex,
70
- ...props.overlayStyle
71
- };
85
+ zIndex: props.zIndex
86
+ }, props.overlayStyle);
72
87
  });
73
88
  const touchmove = (e) => {
74
89
  if (props.lockScroll)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,24 @@
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
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -203,9 +222,7 @@ const _sfc_main$1 = create$1({
203
222
  onMounted(() => {
204
223
  modifyStatus(true);
205
224
  });
206
- return {
207
- ...toRefs(state),
208
- ...toRefs(props),
225
+ return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
209
226
  wrapper,
210
227
  setRollerStyle,
211
228
  isHidden,
@@ -218,7 +235,7 @@ const _sfc_main$1 = create$1({
218
235
  touchTileStyle,
219
236
  setMove,
220
237
  stopMomentum
221
- };
238
+ });
222
239
  }
223
240
  });
224
241
  const _hoisted_1$1 = {
@@ -273,8 +290,7 @@ const _sfc_main = create({
273
290
  [column.name]: column,
274
291
  [Popup.name]: Popup
275
292
  },
276
- props: {
277
- ...popupProps,
293
+ props: __spreadProps(__spreadValues({}, popupProps), {
278
294
  modelValue: {
279
295
  type: Array,
280
296
  default: () => []
@@ -305,7 +321,7 @@ const _sfc_main = create({
305
321
  type: Boolean,
306
322
  default: true
307
323
  }
308
- },
324
+ }),
309
325
  emits: ["close", "change", "confirm", "update:visible", "update:modelValue"],
310
326
  setup(props, { emit }) {
311
327
  const state = reactive({
@@ -436,9 +452,9 @@ const _sfc_main = create({
436
452
  if (val.length)
437
453
  state.formattedColumns = val;
438
454
  });
439
- return {
440
- classes,
441
- ...toRefs(state),
455
+ return __spreadProps(__spreadValues({
456
+ classes
457
+ }, toRefs(state)), {
442
458
  column,
443
459
  columnsType,
444
460
  columnsList,
@@ -447,7 +463,7 @@ const _sfc_main = create({
447
463
  confirmHandler,
448
464
  defaultValues,
449
465
  translate
450
- };
466
+ });
451
467
  }
452
468
  });
453
469
  const _hoisted_1 = { class: "nut-picker__bar" };
@@ -1,5 +1,24 @@
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
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -787,8 +806,7 @@ const _sfc_main = create({
787
806
  [Popup.name]: Popup,
788
807
  [Button.name]: Button
789
808
  },
790
- props: {
791
- ...popupProps,
809
+ props: __spreadProps(__spreadValues({}, popupProps), {
792
810
  list: {
793
811
  type: Array,
794
812
  default: []
@@ -813,7 +831,7 @@ const _sfc_main = create({
813
831
  type: Boolean,
814
832
  default: true
815
833
  }
816
- },
834
+ }),
817
835
  emits: ["update", "update:visible", "close", "choose", "open"],
818
836
  setup(props, { emit }) {
819
837
  let popper;
@@ -1,5 +1,24 @@
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
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -29,8 +48,7 @@ const useLockScroll = (isLock) => {
29
48
  };
30
49
  const { componentName, create } = createComponent("popup");
31
50
  let _zIndex = 2e3;
32
- const popupProps = {
33
- ...overlayProps,
51
+ const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
34
52
  position: {
35
53
  type: String,
36
54
  default: "center"
@@ -79,15 +97,13 @@ const popupProps = {
79
97
  type: Boolean,
80
98
  default: false
81
99
  }
82
- };
100
+ });
83
101
  const _sfc_main = create({
84
102
  components: {
85
103
  [overlay.name]: overlay,
86
104
  [_sfc_main$1.name]: _sfc_main$1
87
105
  },
88
- props: {
89
- ...popupProps
90
- },
106
+ props: __spreadValues({}, popupProps),
91
107
  emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
92
108
  setup(props, { emit }) {
93
109
  const popupRef = ref();
@@ -111,11 +127,10 @@ const _sfc_main = create({
111
127
  };
112
128
  });
113
129
  const popStyle = computed(() => {
114
- return {
130
+ return __spreadValues({
115
131
  zIndex: state.zIndex,
116
- animationDuration: props.duration ? `${props.duration}s` : "initial",
117
- ...props.style
118
- };
132
+ animationDuration: props.duration ? `${props.duration}s` : "initial"
133
+ }, props.style);
119
134
  });
120
135
  const open = () => {
121
136
  if (props.zIndex != 2e3) {
@@ -195,8 +210,7 @@ const _sfc_main = create({
195
210
  watch(() => props.closeable, (value) => {
196
211
  state.closed = value;
197
212
  });
198
- return {
199
- ...toRefs(state),
213
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
200
214
  popStyle,
201
215
  classes,
202
216
  onClick,
@@ -205,7 +219,7 @@ const _sfc_main = create({
205
219
  onOpened,
206
220
  onClosed,
207
221
  popupRef
208
- };
222
+ });
209
223
  }
210
224
  });
211
225
  const _hoisted_1 = { key: 1 };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */