@nutui/nutui 3.2.4-beta.0 → 3.2.4-beta.2

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 (202) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +72 -39
  3. package/dist/nutui.es.js +303 -271
  4. package/dist/nutui.umd.js +303 -271
  5. package/dist/packages/_es/ActionSheet.js +1 -1
  6. package/dist/packages/_es/Address.js +6 -4
  7. package/dist/packages/_es/AddressList.js +1 -1
  8. package/dist/packages/_es/Animate.js +1 -1
  9. package/dist/packages/_es/Audio.js +1 -1
  10. package/dist/packages/_es/AudioOperate.js +1 -1
  11. package/dist/packages/_es/Avatar.js +1 -1
  12. package/dist/packages/_es/AvatarGroup.js +1 -1
  13. package/dist/packages/_es/BackTop.js +1 -1
  14. package/dist/packages/_es/Badge.js +1 -1
  15. package/dist/packages/_es/Barrage.js +42 -29
  16. package/dist/packages/_es/Button.js +1 -1
  17. package/dist/packages/_es/Calendar.js +1 -1
  18. package/dist/packages/_es/CalendarItem.js +1 -1
  19. package/dist/packages/_es/Card.js +1 -1
  20. package/dist/packages/_es/Cascader.js +1 -1
  21. package/dist/packages/_es/Category.js +1 -1
  22. package/dist/packages/_es/CategoryPane.js +1 -1
  23. package/dist/packages/_es/Cell.js +1 -1
  24. package/dist/packages/_es/CellGroup.js +1 -1
  25. package/dist/packages/_es/Checkbox.js +1 -1
  26. package/dist/packages/_es/CheckboxGroup.js +1 -1
  27. package/dist/packages/_es/CircleProgress.js +1 -1
  28. package/dist/packages/_es/Col.js +1 -1
  29. package/dist/packages/_es/Collapse.js +1 -1
  30. package/dist/packages/_es/CollapseItem.js +1 -1
  31. package/dist/packages/_es/Comment.js +1 -1
  32. package/dist/packages/_es/ConfigProvider.js +1 -1
  33. package/dist/packages/_es/CountDown.js +1 -1
  34. package/dist/packages/_es/CountUp.js +1 -1
  35. package/dist/packages/_es/DatePicker.js +22 -7
  36. package/dist/packages/_es/Dialog.js +1 -1
  37. package/dist/packages/_es/Divider.js +1 -1
  38. package/dist/packages/_es/Drag.js +1 -1
  39. package/dist/packages/_es/Ecard.js +1 -1
  40. package/dist/packages/_es/Elevator.js +1 -1
  41. package/dist/packages/_es/Ellipsis.js +1 -1
  42. package/dist/packages/_es/Empty.js +1 -1
  43. package/dist/packages/_es/FixedNav.js +1 -1
  44. package/dist/packages/_es/Form.js +1 -1
  45. package/dist/packages/_es/FormItem.js +1 -1
  46. package/dist/packages/_es/Grid.js +1 -1
  47. package/dist/packages/_es/GridItem.js +1 -1
  48. package/dist/packages/_es/Icon.js +1 -1
  49. package/dist/packages/_es/Image.js +1 -1
  50. package/dist/packages/_es/ImagePreview.js +3 -3
  51. package/dist/packages/_es/Indicator.js +1 -1
  52. package/dist/packages/_es/InfiniteLoading.js +1 -1
  53. package/dist/packages/_es/Input.js +1 -1
  54. package/dist/packages/_es/InputNumber.js +1 -1
  55. package/dist/packages/_es/Invoice.js +1 -1
  56. package/dist/packages/_es/Layout.js +1 -1
  57. package/dist/packages/_es/List.js +1 -1
  58. package/dist/packages/_es/Menu.js +1 -1
  59. package/dist/packages/_es/MenuItem.js +1 -1
  60. package/dist/packages/_es/Navbar.js +1 -1
  61. package/dist/packages/_es/NoticeBar.js +1 -1
  62. package/dist/packages/_es/Notify.js +1 -1
  63. package/dist/packages/_es/NumberKeyboard.js +1 -1
  64. package/dist/packages/_es/OldPicker.js +1 -1
  65. package/dist/packages/_es/OverLay.js +1 -1
  66. package/dist/packages/_es/Pagination.js +1 -1
  67. package/dist/packages/_es/Picker.js +5 -3
  68. package/dist/packages/_es/Popover.js +1 -1
  69. package/dist/packages/_es/Popup.js +2 -2
  70. package/dist/packages/_es/Price.js +1 -1
  71. package/dist/packages/_es/Progress.js +1 -1
  72. package/dist/packages/_es/PullRefresh.js +1 -1
  73. package/dist/packages/_es/Radio.js +1 -1
  74. package/dist/packages/_es/RadioGroup.js +1 -1
  75. package/dist/packages/_es/Range.js +1 -1
  76. package/dist/packages/_es/Rate.js +1 -1
  77. package/dist/packages/_es/Row.js +1 -1
  78. package/dist/packages/_es/SearchBar.js +1 -1
  79. package/dist/packages/_es/ShortPassword.js +1 -1
  80. package/dist/packages/_es/SideNavBar.js +1 -1
  81. package/dist/packages/_es/SideNavBarItem.js +1 -1
  82. package/dist/packages/_es/Signature.js +1 -1
  83. package/dist/packages/_es/Skeleton.js +1 -1
  84. package/dist/packages/_es/Sku.js +1 -1
  85. package/dist/packages/_es/Step.js +1 -1
  86. package/dist/packages/_es/Steps.js +1 -1
  87. package/dist/packages/_es/Sticky.js +1 -1
  88. package/dist/packages/_es/SubSideNavBar.js +1 -1
  89. package/dist/packages/_es/Swipe.js +1 -1
  90. package/dist/packages/_es/Swiper.js +1 -1
  91. package/dist/packages/_es/SwiperItem.js +1 -1
  92. package/dist/packages/_es/Switch.js +1 -1
  93. package/dist/packages/_es/TabPane.js +1 -1
  94. package/dist/packages/_es/Tabbar.js +1 -1
  95. package/dist/packages/_es/TabbarItem.js +1 -1
  96. package/dist/packages/_es/Table.js +1 -1
  97. package/dist/packages/_es/Tabs.js +1 -1
  98. package/dist/packages/_es/Tag.js +1 -1
  99. package/dist/packages/_es/TextArea.js +1 -1
  100. package/dist/packages/_es/TimeDetail.js +1 -1
  101. package/dist/packages/_es/TimePannel.js +1 -1
  102. package/dist/packages/_es/TimeSelect.js +1 -1
  103. package/dist/packages/_es/Toast.js +1 -1
  104. package/dist/packages/_es/TrendArrow.js +1 -1
  105. package/dist/packages/_es/Uploader.js +1 -1
  106. package/dist/packages/_es/Video.js +1 -1
  107. package/dist/packages/_es/WaterMark.js +1 -1
  108. package/dist/packages/_es/common.js +1 -1
  109. package/dist/packages/_es/component.js +1 -1
  110. package/dist/packages/_es/index.js +1 -1
  111. package/dist/packages/_es/index2.js +1 -1
  112. package/dist/packages/_es/index3.js +1 -1
  113. package/dist/packages/_es/index4.js +1 -1
  114. package/dist/packages/_es/index5.js +1 -1
  115. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  116. package/dist/packages/_es/pxCheck.js +1 -1
  117. package/dist/packages/_es/raf.js +1 -1
  118. package/dist/packages/_es/style.css +2 -2
  119. package/dist/packages/address/index.scss +10 -8
  120. package/dist/packages/barrage/index.scss +0 -8
  121. package/dist/packages/button/index.scss +4 -0
  122. package/dist/packages/calendar/index.scss +1 -0
  123. package/dist/packages/card/index.scss +2 -0
  124. package/dist/packages/checkbox/index.scss +1 -1
  125. package/dist/packages/dialog/index.scss +3 -2
  126. package/dist/packages/inputnumber/index.scss +11 -1
  127. package/dist/packages/locale/lang/baseLang.js +1 -1
  128. package/dist/packages/locale/lang/en-US.js +1 -1
  129. package/dist/packages/locale/lang/id-ID.js +1 -1
  130. package/dist/packages/locale/lang/index.js +1 -1
  131. package/dist/packages/locale/lang/zh-CN.js +1 -1
  132. package/dist/packages/locale/lang/zh-TW.js +1 -1
  133. package/dist/packages/menuitem/index.scss +1 -1
  134. package/dist/packages/popover/index.scss +3 -2
  135. package/dist/packages/radio/index.scss +1 -1
  136. package/dist/packages/searchbar/index.scss +5 -0
  137. package/dist/packages/skeleton/index.scss +1 -1
  138. package/dist/packages/sku/index.scss +20 -17
  139. package/dist/packages/tabbar/index.scss +10 -1
  140. package/dist/packages/tabs/index.scss +2 -0
  141. package/dist/packages/tag/index.scss +1 -0
  142. package/dist/smartips/attributes.json +10 -2
  143. package/dist/smartips/tags.json +5 -3
  144. package/dist/smartips/web-types.json +22 -4
  145. package/dist/style.css +1 -1
  146. package/dist/styles/themes/default.scss +49 -49
  147. package/dist/styles/themes/jdb.scss +49 -49
  148. package/dist/styles/themes/jddkh.scss +104 -0
  149. package/dist/styles/themes/jdt.scss +49 -49
  150. package/dist/styles/variables-jdb.scss +60 -0
  151. package/dist/styles/variables-jddkh.scss +894 -0
  152. package/dist/styles/variables-jdt.scss +61 -0
  153. package/dist/styles/variables.scss +60 -0
  154. package/dist/types/__VUE/actionsheet/index.vue.d.ts +4 -4
  155. package/dist/types/__VUE/address/index.vue.d.ts +5 -5
  156. package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
  157. package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
  158. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  159. package/dist/types/__VUE/badge/index.vue.d.ts +3 -3
  160. package/dist/types/__VUE/barrage/index.vue.d.ts +1 -0
  161. package/dist/types/__VUE/button/index.vue.d.ts +3 -3
  162. package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
  163. package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
  164. package/dist/types/__VUE/cell/index.vue.d.ts +4 -4
  165. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  166. package/dist/types/__VUE/comment/index.vue.d.ts +1 -1
  167. package/dist/types/__VUE/datepicker/index.vue.d.ts +5 -5
  168. package/dist/types/__VUE/dialog/index.vue.d.ts +4 -4
  169. package/dist/types/__VUE/fixednav/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  171. package/dist/types/__VUE/image/index.vue.d.ts +1 -1
  172. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
  173. package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/input/index.vue.d.ts +4 -4
  175. package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
  176. package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -5
  177. package/dist/types/__VUE/notify/index.vue.d.ts +1 -1
  178. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
  179. package/dist/types/__VUE/oldpicker/index.vue.d.ts +4 -4
  180. package/dist/types/__VUE/picker/Column.vue.d.ts +1 -1
  181. package/dist/types/__VUE/picker/index.vue.d.ts +5 -5
  182. package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
  183. package/dist/types/__VUE/popup/index.vue.d.ts +5 -5
  184. package/dist/types/__VUE/radio/index.vue.d.ts +1 -1
  185. package/dist/types/__VUE/range/index.vue.d.ts +2 -2
  186. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  187. package/dist/types/__VUE/skeleton/index.vue.d.ts +1 -1
  188. package/dist/types/__VUE/sku/index.vue.d.ts +4 -4
  189. package/dist/types/__VUE/step/index.vue.d.ts +1 -1
  190. package/dist/types/__VUE/sticky/index.vue.d.ts +2 -2
  191. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  192. package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
  193. package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -1
  194. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  195. package/dist/types/__VUE/tag/index.vue.d.ts +1 -1
  196. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  197. package/dist/types/__VUE/toast/index.vue.d.ts +3 -3
  198. package/dist/types/__VUE/uploader/index.vue.d.ts +4 -4
  199. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  200. package/dist/types/__VUE/watermark/index.vue.d.ts +2 -2
  201. package/dist/types/index.d.ts +1 -1
  202. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -260,6 +260,7 @@ const _sfc_main = create({
260
260
  lineAnimation();
261
261
  };
262
262
  const close = () => {
263
+ console.log("\u5173\u95ED", closeWay.value, showPopup.value);
263
264
  const resCopy = Object.assign(
264
265
  {
265
266
  addressIdStr: "",
@@ -318,9 +319,10 @@ const _sfc_main = create({
318
319
  watch(
319
320
  () => showPopup.value,
320
321
  (value) => {
321
- if (value == false) {
322
- close();
323
- } else {
322
+ console.log("\u76D1\u542C showpopup", showPopup.value);
323
+ if (value == false)
324
+ ;
325
+ else {
324
326
  initCustomSelected();
325
327
  }
326
328
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,15 +1,16 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { useSlots, computed, ref, onMounted, onUnmounted, onDeactivated, watch, nextTick, useCssVars, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
6
+ import { useSlots, computed, ref, onMounted, onUnmounted, onDeactivated, watch, nextTick, useCssVars, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
10
10
  var index_vue_vue_type_style_index_0_lang = "";
11
11
  const { componentName, create } = createComponent("barrage");
12
12
  const __default__ = create({
13
+ name: "barrage",
13
14
  props: {
14
15
  danmu: {
15
16
  type: Array,
@@ -38,6 +39,7 @@ const __default__ = create({
38
39
  },
39
40
  emits: ["click"],
40
41
  setup(props, { slots }) {
42
+ const classTime = new Date().getTime();
41
43
  const slotDefault = !!useSlots().default;
42
44
  const classes = computed(() => {
43
45
  const prefixCls = componentName;
@@ -58,17 +60,28 @@ const __default__ = create({
58
60
  var _a;
59
61
  danmuCWidth.value = dmBody.value.offsetWidth;
60
62
  if (slotDefault) {
61
- danmuList.value = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots);
62
- run();
63
- } else {
64
- run();
63
+ const list = document.getElementsByClassName("slotBody" + classTime);
64
+ let childrens = ((_a = list == null ? void 0 : list[0]) == null ? void 0 : _a.children) || [];
65
+ const dmList = [];
66
+ if (childrens) {
67
+ Array.from(childrens).forEach((item) => {
68
+ item.style.opacity = "0";
69
+ dmList.push(item);
70
+ });
71
+ }
72
+ danmuList.value = dmList;
65
73
  }
74
+ setTimeout(() => {
75
+ run();
76
+ }, 300);
66
77
  });
67
78
  onUnmounted(() => {
79
+ danmuList.value = [];
68
80
  clearInterval(timer);
69
81
  timer = 0;
70
82
  });
71
83
  onDeactivated(() => {
84
+ danmuList.value = [];
72
85
  clearInterval(timer);
73
86
  timer = 0;
74
87
  });
@@ -98,31 +111,33 @@ const __default__ = create({
98
111
  };
99
112
  const distance = ref("0");
100
113
  const play = () => {
101
- var _a, _b;
114
+ var _a, _b, _c;
102
115
  if (!props.loop && index2.value >= danmuList.value.length) {
103
116
  return;
104
117
  }
105
118
  const _index = props.loop ? index2.value % danmuList.value.length : index2.value;
106
- let el = document.createElement(`div`);
107
- if (slotDefault && ((_a = danmuList.value[_index]) == null ? void 0 : _a.el)) {
108
- el = (_b = danmuList.value[_index]) == null ? void 0 : _b.el;
109
- if (el == null ? void 0 : el.classList.contains("dmitem")) {
119
+ let el = document.createElement(`view`);
120
+ if (slotDefault && typeof danmuList.value[_index] == "object") {
121
+ el = danmuList.value[_index];
122
+ if ((_a = el == null ? void 0 : el.classList) == null ? void 0 : _a.contains("dmitem")) {
110
123
  el.classList.remove("dmitem");
111
124
  }
112
- if (el == null ? void 0 : el.classList.contains("move")) {
125
+ if ((_b = el == null ? void 0 : el.classList) == null ? void 0 : _b.contains("move")) {
113
126
  el.classList.remove("move");
114
127
  }
115
- el == null ? void 0 : el.classList.add("dmitem");
128
+ (_c = el == null ? void 0 : el.classList) == null ? void 0 : _c.add("dmitem");
116
129
  } else {
117
130
  el.innerHTML = danmuList.value[_index];
118
131
  el.classList.add("dmitem");
119
132
  dmContainer.value.appendChild(el);
120
133
  }
121
134
  nextTick(() => {
135
+ var _a2;
122
136
  const height = el.offsetHeight;
123
- el.classList.add("move");
137
+ (_a2 = el == null ? void 0 : el.classList) == null ? void 0 : _a2.add("move");
124
138
  el.style.animationDuration = `${speeds}ms`;
125
139
  el.style.top = _index % rows.value * (height + top.value) + 20 + "px";
140
+ el.style.opacity = "1";
126
141
  if (!slotDefault) {
127
142
  const width = el.offsetWidth;
128
143
  el.style.width = width + 20 + "px";
@@ -140,12 +155,12 @@ const __default__ = create({
140
155
  }
141
156
  });
142
157
  };
143
- return { classes, danmuList, dmBody, dmContainer, add, distance };
158
+ return { classTime, classes, danmuList, dmBody, dmContainer, add, distance };
144
159
  }
145
160
  });
146
161
  const __injectCSSVars__ = () => {
147
162
  useCssVars((_ctx) => ({
148
- "21cca3b5": _ctx.distance
163
+ "01d702ea": _ctx.distance
149
164
  }));
150
165
  };
151
166
  const __setup__ = __default__.setup;
@@ -154,24 +169,22 @@ __default__.setup = __setup__ ? (props, ctx) => {
154
169
  return __setup__(props, ctx);
155
170
  } : __injectCSSVars__;
156
171
  const _sfc_main = __default__;
157
- const _hoisted_1 = {
158
- key: 0,
159
- ref: "dmContainer",
160
- class: "dmContainer slotContainer"
161
- };
162
- const _hoisted_2 = {
163
- key: 1,
164
- ref: "dmContainer",
165
- class: "dmContainer"
166
- };
167
172
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
168
173
  return openBlock(), createElementBlock("div", {
169
174
  ref: "dmBody",
170
175
  class: normalizeClass(_ctx.classes)
171
176
  }, [
172
- _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_1, [
173
- renderSlot(_ctx.$slots, "default")
174
- ], 512)) : (openBlock(), createElementBlock("div", _hoisted_2, null, 512))
177
+ createElementVNode("div", {
178
+ ref: "dmContainer",
179
+ class: normalizeClass(["dmContainer", _ctx.$slots.default && "slotContainer"])
180
+ }, [
181
+ _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
182
+ key: 0,
183
+ class: normalizeClass(["slotBody", "slotBody" + _ctx.classTime])
184
+ }, [
185
+ renderSlot(_ctx.$slots, "default")
186
+ ], 2)) : createCommentVNode("", true)
187
+ ], 2)
175
188
  ], 2);
176
189
  }
177
190
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -88,7 +88,7 @@ const _sfc_main = create({
88
88
  },
89
89
  filter: Function
90
90
  },
91
- emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
91
+ emits: ["click", "update:visible", "change", "confirm", "update:modelValue"],
92
92
  setup(props, { emit }) {
93
93
  const state = reactive({
94
94
  show: props.visible,
@@ -219,10 +219,10 @@ const _sfc_main = create({
219
219
  formatDate.push(item);
220
220
  });
221
221
  if (props.type == "month-day" && formatDate.length < 3) {
222
- formatDate.unshift(new Date(props.modelValue || props.minDate || props.maxDate).getFullYear());
222
+ formatDate.unshift(new Date(state.currentDate || props.minDate || props.maxDate).getFullYear());
223
223
  }
224
224
  if (props.type == "year-month" && formatDate.length < 3) {
225
- formatDate.push(new Date(props.modelValue || props.minDate || props.maxDate).getDate());
225
+ formatDate.push(new Date(state.currentDate || props.minDate || props.maxDate).getDate());
226
226
  }
227
227
  const year = Number(formatDate[0]);
228
228
  const month = Number(formatDate[1]) - 1;
@@ -297,7 +297,20 @@ const _sfc_main = create({
297
297
  watch(
298
298
  () => props.modelValue,
299
299
  (value) => {
300
- state.currentDate = formatValue(value);
300
+ const newValues = formatValue(value);
301
+ const isSameValue = JSON.stringify(newValues) === JSON.stringify(state.currentDate);
302
+ if (!isSameValue) {
303
+ state.currentDate = newValues;
304
+ }
305
+ }
306
+ );
307
+ watch(
308
+ () => state.currentDate,
309
+ (newValues) => {
310
+ const isSameValue = JSON.stringify(newValues) === JSON.stringify(props.modelValue);
311
+ if (!isSameValue) {
312
+ emit("update:modelValue", newValues);
313
+ }
301
314
  }
302
315
  );
303
316
  watch(
@@ -337,7 +350,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
337
350
  onConfirm: _ctx.confirm,
338
351
  isWrapTeleport: _ctx.isWrapTeleport,
339
352
  threeDimensional: _ctx.threeDimensional,
340
- swipeDuration: _ctx.swipeDuration
353
+ swipeDuration: _ctx.swipeDuration,
354
+ safeAreaInsetBottom: _ctx.safeAreaInsetBottom,
355
+ destroyOnClose: _ctx.destroyOnClose
341
356
  }, {
342
357
  top: withCtx(() => [
343
358
  renderSlot(_ctx.$slots, "top")
@@ -346,7 +361,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
346
361
  renderSlot(_ctx.$slots, "default")
347
362
  ]),
348
363
  _: 3
349
- }, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional", "swipeDuration"]);
364
+ }, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional", "swipeDuration", "safeAreaInsetBottom", "destroyOnClose"]);
350
365
  }
351
366
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
352
367
  export { index as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 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.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -455,7 +455,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
455
455
  visible: _ctx.showPop,
456
456
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPop = $event),
457
457
  isWrapTeleport: _ctx.isWrapTeleport,
458
- onClick: _ctx.onClose,
458
+ onClosed: _ctx.onClose,
459
459
  style: { "width": "100%" },
460
460
  "lock-scroll": ""
461
461
  }, {
@@ -513,7 +513,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
513
513
  ], 4)) : createCommentVNode("", true)
514
514
  ]),
515
515
  _: 1
516
- }, 8, ["visible", "isWrapTeleport", "onClick"]);
516
+ }, 8, ["visible", "isWrapTeleport", "onClosed"]);
517
517
  }
518
518
  var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
519
519
  class ImagePreviewOptions {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.2 Fri Oct 21 2022 18:19:00 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */