@nutui/nutui 3.2.1 → 3.2.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/dist/nutui.es.js +938 -548
  2. package/dist/nutui.umd.js +938 -548
  3. package/dist/packages/_es/ActionSheet.js +1 -1
  4. package/dist/packages/_es/Address.js +56 -32
  5. package/dist/packages/_es/AddressList.js +6 -2
  6. package/dist/packages/_es/Animate.js +1 -1
  7. package/dist/packages/_es/Audio.js +7 -4
  8. package/dist/packages/_es/AudioOperate.js +1 -1
  9. package/dist/packages/_es/Avatar.js +1 -1
  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 +7 -4
  14. package/dist/packages/_es/Button.js +1 -1
  15. package/dist/packages/_es/Calendar.js +10 -4
  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 +33 -20
  19. package/dist/packages/_es/Category.js +1 -1
  20. package/dist/packages/_es/CategoryPane.js +1 -1
  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 +31 -17
  24. package/dist/packages/_es/CheckboxGroup.js +14 -7
  25. package/dist/packages/_es/CircleProgress.js +1 -1
  26. package/dist/packages/_es/Col.js +5 -11
  27. package/dist/packages/_es/Collapse.js +22 -19
  28. package/dist/packages/_es/CollapseItem.js +12 -9
  29. package/dist/packages/_es/Comment.js +13 -9
  30. package/dist/packages/_es/ConfigProvider.js +8 -4
  31. package/dist/packages/_es/CountDown.js +36 -24
  32. package/dist/packages/_es/CountUp.js +35 -19
  33. package/dist/packages/_es/DatePicker.js +19 -10
  34. package/dist/packages/_es/Dialog.js +9 -6
  35. package/dist/packages/_es/Divider.js +1 -1
  36. package/dist/packages/_es/Drag.js +1 -1
  37. package/dist/packages/_es/Ecard.js +7 -4
  38. package/dist/packages/_es/Elevator.js +21 -15
  39. package/dist/packages/_es/Ellipsis.js +13 -8
  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 +8 -4
  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 +15 -11
  47. package/dist/packages/_es/Image.js +7 -4
  48. package/dist/packages/_es/ImagePreview.js +15 -9
  49. package/dist/packages/_es/Indicator.js +1 -1
  50. package/dist/packages/_es/InfiniteLoading.js +1 -1
  51. package/dist/packages/_es/Input.js +8 -5
  52. package/dist/packages/_es/InputNumber.js +20 -14
  53. package/dist/packages/_es/Layout.js +1 -1
  54. package/dist/packages/_es/List.js +7 -4
  55. package/dist/packages/_es/Menu.js +12 -6
  56. package/dist/packages/_es/MenuItem.js +1 -1
  57. package/dist/packages/_es/Navbar.js +1 -1
  58. package/dist/packages/_es/NoticeBar.js +13 -7
  59. package/dist/packages/_es/Notify.js +8 -5
  60. package/dist/packages/_es/NumberKeyboard.js +12 -5
  61. package/dist/packages/_es/OldPicker.js +36 -19
  62. package/dist/packages/_es/OverLay.js +7 -4
  63. package/dist/packages/_es/Pagination.js +1 -1
  64. package/dist/packages/_es/Picker.js +64 -32
  65. package/dist/packages/_es/Popover.js +52 -31
  66. package/dist/packages/_es/Popup.js +22 -13
  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 +1 -1
  70. package/dist/packages/_es/Radio.js +25 -13
  71. package/dist/packages/_es/RadioGroup.js +12 -5
  72. package/dist/packages/_es/Range.js +16 -10
  73. package/dist/packages/_es/Rate.js +1 -1
  74. package/dist/packages/_es/Row.js +5 -11
  75. package/dist/packages/_es/SearchBar.js +1 -1
  76. package/dist/packages/_es/ShortPassword.js +18 -11
  77. package/dist/packages/_es/SideNavBar.js +1 -1
  78. package/dist/packages/_es/SideNavBarItem.js +1 -1
  79. package/dist/packages/_es/Signature.js +1 -1
  80. package/dist/packages/_es/Skeleton.js +1 -1
  81. package/dist/packages/_es/Sku.js +21 -11
  82. package/dist/packages/_es/Step.js +1 -1
  83. package/dist/packages/_es/Steps.js +8 -4
  84. package/dist/packages/_es/Sticky.js +23 -12
  85. package/dist/packages/_es/SubSideNavBar.js +1 -1
  86. package/dist/packages/_es/Swipe.js +1 -1
  87. package/dist/packages/_es/Swiper.js +23 -14
  88. package/dist/packages/_es/SwiperItem.js +1 -1
  89. package/dist/packages/_es/Switch.js +10 -7
  90. package/dist/packages/_es/TabPane.js +1 -1
  91. package/dist/packages/_es/Tabbar.js +7 -4
  92. package/dist/packages/_es/TabbarItem.js +13 -14
  93. package/dist/packages/_es/Table.js +7 -4
  94. package/dist/packages/_es/Tabs.js +16 -10
  95. package/dist/packages/_es/Tag.js +1 -1
  96. package/dist/packages/_es/TextArea.js +8 -5
  97. package/dist/packages/_es/TimeDetail.js +1 -1
  98. package/dist/packages/_es/TimePannel.js +1 -1
  99. package/dist/packages/_es/TimeSelect.js +1 -1
  100. package/dist/packages/_es/Toast.js +8 -5
  101. package/dist/packages/_es/Uploader.js +14 -8
  102. package/dist/packages/_es/Video.js +17 -10
  103. package/dist/packages/_es/WaterMark.js +30 -21
  104. package/dist/packages/_es/common.js +20 -10
  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 +21 -12
  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/button/index.scss +1 -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/radio/index.scss +1 -0
  122. package/dist/smartips/attributes.json +21 -1
  123. package/dist/smartips/tags.json +7 -2
  124. package/dist/smartips/web-types.json +47 -2
  125. package/dist/style.css +1 -1
  126. package/dist/styles/themes/default.scss +49 -49
  127. package/dist/styles/themes/jdb.scss +49 -49
  128. package/dist/styles/themes/jdt.scss +49 -49
  129. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  130. package/dist/types/__VUE/address/index.vue.d.ts +3 -3
  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 +8 -1
  137. package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
  138. package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
  139. package/dist/types/__VUE/cell/index.vue.d.ts +8 -8
  140. package/dist/types/__VUE/col/index.vue.d.ts +2 -5
  141. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  142. package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
  143. package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
  144. package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
  145. package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
  146. package/dist/types/__VUE/fixednav/index.vue.d.ts +4 -4
  147. package/dist/types/__VUE/grid/index.vue.d.ts +3 -3
  148. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  149. package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
  150. package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
  151. package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
  152. package/dist/types/__VUE/input/index.vue.d.ts +4 -4
  153. package/dist/types/__VUE/inputnumber/index.vue.d.ts +14 -0
  154. package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
  155. package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
  156. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -4
  157. package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
  158. package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
  159. package/dist/types/__VUE/picker/index.vue.d.ts +18 -3
  160. package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
  161. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  162. package/dist/types/__VUE/row/index.vue.d.ts +2 -5
  163. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  164. package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
  165. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  166. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  167. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
  168. package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
  169. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  170. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  171. package/dist/types/index.d.ts +1 -1
  172. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -182,19 +182,28 @@ const _sfc_main = create({
182
182
  state.keepAlive = true;
183
183
  }
184
184
  });
185
- watch(() => props.visible, (value) => {
186
- if (value) {
187
- open();
188
- } else {
189
- close();
185
+ watch(
186
+ () => props.visible,
187
+ (value) => {
188
+ if (value) {
189
+ open();
190
+ } else {
191
+ close();
192
+ }
190
193
  }
191
- });
192
- watch(() => props.position, (value) => {
193
- value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
194
- });
195
- watch(() => props.closeable, (value) => {
196
- state.closed = value;
197
- });
194
+ );
195
+ watch(
196
+ () => props.position,
197
+ (value) => {
198
+ value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
199
+ }
200
+ );
201
+ watch(
202
+ () => props.closeable,
203
+ (value) => {
204
+ state.closed = value;
205
+ }
206
+ );
198
207
  return {
199
208
  ...toRefs(state),
200
209
  popStyle,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -67,15 +67,23 @@ const _sfc_main = create({
67
67
  };
68
68
  const renderLabel = () => {
69
69
  var _a;
70
- return h("view", {
71
- class: `${componentName}__label ${props.disabled ? `${componentName}__label--disabled` : ""}`
72
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
70
+ return h(
71
+ "view",
72
+ {
73
+ class: `${componentName}__label ${props.disabled ? `${componentName}__label--disabled` : ""}`
74
+ },
75
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
76
+ );
73
77
  };
74
78
  const renderButton = () => {
75
79
  var _a;
76
- return h("view", {
77
- class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${props.disabled ? `${componentName}__button--disabled` : ""}`
78
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
80
+ return h(
81
+ "view",
82
+ {
83
+ class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${props.disabled ? `${componentName}__button--disabled` : ""}`
84
+ },
85
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
86
+ );
79
87
  };
80
88
  const handleClick = () => {
81
89
  if (isCurValue.value || props.disabled)
@@ -84,12 +92,16 @@ const _sfc_main = create({
84
92
  };
85
93
  let reverseState = position.value === "left";
86
94
  return () => {
87
- return h("view", {
88
- class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
89
- onClick: handleClick
90
- }, [
91
- props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
92
- ]);
95
+ return h(
96
+ "view",
97
+ {
98
+ class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
99
+ onClick: handleClick
100
+ },
101
+ [
102
+ props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
103
+ ]
104
+ );
93
105
  };
94
106
  }
95
107
  });
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -30,12 +30,19 @@ const _sfc_main = create({
30
30
  position: props.textPosition,
31
31
  updateValue
32
32
  });
33
- watch(() => props.modelValue, (value) => emit("change", value));
33
+ watch(
34
+ () => props.modelValue,
35
+ (value) => emit("change", value)
36
+ );
34
37
  return () => {
35
38
  var _a;
36
- return h("view", {
37
- class: `${componentName} ${componentName}--${props.direction}`
38
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
39
+ return h(
40
+ "view",
41
+ {
42
+ class: `${componentName} ${componentName}--${props.direction}`
43
+ },
44
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
45
+ );
39
46
  };
40
47
  }
41
48
  });
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -361,12 +361,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
361
361
  "aria-valuenow": _ctx.curValue(index2),
362
362
  "aria-valuemax": +_ctx.max,
363
363
  "aria-orientation": "horizontal",
364
- onTouchstart: withModifiers((e) => {
365
- if (typeof index2 === "number") {
366
- _ctx.buttonIndex = index2;
367
- }
368
- _ctx.onTouchStart(e);
369
- }, ["stop", "prevent"]),
364
+ onTouchstart: withModifiers(
365
+ (e) => {
366
+ if (typeof index2 === "number") {
367
+ _ctx.buttonIndex = index2;
368
+ }
369
+ _ctx.onTouchStart(e);
370
+ },
371
+ ["stop", "prevent"]
372
+ ),
370
373
  onTouchmove: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
371
374
  onTouchend: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
372
375
  onTouchcancel: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
@@ -389,9 +392,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
389
392
  "aria-valuenow": _ctx.curValue(),
390
393
  "aria-valuemax": +_ctx.max,
391
394
  "aria-orientation": "horizontal",
392
- onTouchstart: _cache[4] || (_cache[4] = withModifiers((e) => {
393
- _ctx.onTouchStart(e);
394
- }, ["stop", "prevent"])),
395
+ onTouchstart: _cache[4] || (_cache[4] = withModifiers(
396
+ (e) => {
397
+ _ctx.onTouchStart(e);
398
+ },
399
+ ["stop", "prevent"]
400
+ )),
395
401
  onTouchmove: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
396
402
  onTouchend: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
397
403
  onTouchcancel: _cache[7] || (_cache[7] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -31,8 +31,8 @@ const _sfc_main = create({
31
31
  default: "nowrap"
32
32
  }
33
33
  },
34
- emits: ["click"],
35
- setup(props, { emit }) {
34
+ emits: [],
35
+ setup(props) {
36
36
  const prefixCls = componentName;
37
37
  provide("gutter", props.gutter);
38
38
  const getClass = (prefix, type) => {
@@ -47,20 +47,14 @@ const _sfc_main = create({
47
47
  ${prefixCls}
48
48
  `;
49
49
  };
50
- const handleClick = (evt) => {
51
- evt.stopPropagation();
52
- emit("click", evt);
53
- };
54
50
  return {
55
- getClasses,
56
- handleClick
51
+ getClasses
57
52
  };
58
53
  }
59
54
  });
60
55
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
61
56
  return openBlock(), createElementBlock("view", {
62
- class: normalizeClass(_ctx.getClasses()),
63
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
57
+ class: normalizeClass(_ctx.getClasses())
64
58
  }, [
65
59
  renderSlot(_ctx.$slots, "default")
66
60
  ], 2);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -63,16 +63,23 @@ const _sfc_main = create({
63
63
  function focus() {
64
64
  realpwd.value.focus();
65
65
  }
66
- watch(() => props.visible, (value) => {
67
- show.value = value;
68
- });
69
- watch(() => props.modelValue, (value) => {
70
- realInput.value = value;
71
- emit("update:modelValue", value);
72
- }, {
73
- deep: true,
74
- immediate: true
75
- });
66
+ watch(
67
+ () => props.visible,
68
+ (value) => {
69
+ show.value = value;
70
+ }
71
+ );
72
+ watch(
73
+ () => props.modelValue,
74
+ (value) => {
75
+ realInput.value = value;
76
+ emit("update:modelValue", value);
77
+ },
78
+ {
79
+ deep: true,
80
+ immediate: true
81
+ }
82
+ );
76
83
  function changeValue(e) {
77
84
  const input = e.target;
78
85
  let val = input.value;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -65,9 +65,13 @@ const _sfc_main$3 = create$3({
65
65
  emits: ["selectSku"],
66
66
  setup(props, { emit }) {
67
67
  const skuInfo = ref([]);
68
- watch(() => props.sku, (value) => {
69
- skuInfo.value = [].slice.call(value);
70
- }, { deep: true });
68
+ watch(
69
+ () => props.sku,
70
+ (value) => {
71
+ skuInfo.value = [].slice.call(value);
72
+ },
73
+ { deep: true }
74
+ );
71
75
  onMounted(() => {
72
76
  if (props.sku.length > 0) {
73
77
  skuInfo.value = [].slice.call(props.sku);
@@ -349,14 +353,20 @@ const _sfc_main = create({
349
353
  setup(props, { emit, slots }) {
350
354
  const showPopup = ref(props.visible);
351
355
  const goodsCount = ref(props.stepperMin);
352
- watch(() => props.visible, (value) => {
353
- showPopup.value = value;
354
- });
355
- watch(() => showPopup.value, (value) => {
356
- if (value == false) {
357
- close();
356
+ watch(
357
+ () => props.visible,
358
+ (value) => {
359
+ showPopup.value = value;
358
360
  }
359
- });
361
+ );
362
+ watch(
363
+ () => showPopup.value,
364
+ (value) => {
365
+ if (value == false) {
366
+ close();
367
+ }
368
+ }
369
+ );
360
370
  onMounted(() => {
361
371
  });
362
372
  const getSlots = (name) => slots[name];
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -49,9 +49,13 @@ const _sfc_main = create({
49
49
  });
50
50
  return () => {
51
51
  var _a;
52
- return h("view", {
53
- class: classes.value
54
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
52
+ return h(
53
+ "view",
54
+ {
55
+ class: classes.value
56
+ },
57
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
58
+ );
55
59
  };
56
60
  }
57
61
  });
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -83,10 +83,14 @@ const _sfc_main = create({
83
83
  };
84
84
  const renderFixed = () => {
85
85
  var _a;
86
- return h("view", {
87
- style: stickyStyle.value,
88
- class: state.fixed ? `${componentName} nut-sticky--fixed` : componentName
89
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
86
+ return h(
87
+ "view",
88
+ {
89
+ style: stickyStyle.value,
90
+ class: state.fixed ? `${componentName} nut-sticky--fixed` : componentName
91
+ },
92
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
93
+ );
90
94
  };
91
95
  const onScroll = () => {
92
96
  if (!isExistRoot())
@@ -123,9 +127,12 @@ const _sfc_main = create({
123
127
  fixed: state.fixed
124
128
  });
125
129
  };
126
- watch(() => state.fixed, (val) => {
127
- emit("change", val);
128
- });
130
+ watch(
131
+ () => state.fixed,
132
+ (val) => {
133
+ emit("change", val);
134
+ }
135
+ );
129
136
  onMounted(() => {
130
137
  window.addEventListener("scroll", onScroll);
131
138
  onScroll();
@@ -134,10 +141,14 @@ const _sfc_main = create({
134
141
  window.removeEventListener("scroll", onScroll);
135
142
  });
136
143
  return () => {
137
- return h("view", {
138
- style: rootStyle.value,
139
- ref: root
140
- }, [renderFixed()]);
144
+ return h(
145
+ "view",
146
+ {
147
+ style: rootStyle.value,
148
+ ref: root
149
+ },
150
+ [renderFixed()]
151
+ );
141
152
  };
142
153
  }
143
154
  });
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -391,19 +391,28 @@ const _sfc_main = create({
391
391
  onBeforeUnmount(() => {
392
392
  stopAutoPlay();
393
393
  });
394
- watch(() => props.initPage, (val) => {
395
- nextTick(() => {
396
- init(Number(val));
397
- });
398
- });
399
- watch(() => state.children.length, () => {
400
- nextTick(() => {
401
- init();
402
- });
403
- });
404
- watch(() => props.autoPlay, (val) => {
405
- val > 0 ? autoplay() : stopAutoPlay();
406
- });
394
+ watch(
395
+ () => props.initPage,
396
+ (val) => {
397
+ nextTick(() => {
398
+ init(Number(val));
399
+ });
400
+ }
401
+ );
402
+ watch(
403
+ () => state.children.length,
404
+ () => {
405
+ nextTick(() => {
406
+ init();
407
+ });
408
+ }
409
+ );
410
+ watch(
411
+ () => props.autoPlay,
412
+ (val) => {
413
+ val > 0 ? autoplay() : stopAutoPlay();
414
+ }
415
+ );
407
416
  return {
408
417
  state,
409
418
  classes,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -85,13 +85,16 @@ const _sfc_main = create({
85
85
  emit("update:modelValue", value);
86
86
  emit("change", value, event);
87
87
  };
88
- watch(() => props.modelValue, (v) => {
89
- if (updateType == "click") {
90
- updateType = "";
91
- } else {
92
- emit("change", v);
88
+ watch(
89
+ () => props.modelValue,
90
+ (v) => {
91
+ if (updateType == "click") {
92
+ updateType = "";
93
+ } else {
94
+ emit("change", v);
95
+ }
93
96
  }
94
- });
97
+ );
95
98
  return {
96
99
  classes,
97
100
  style,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -59,9 +59,12 @@ const _sfc_main = create({
59
59
  changeIndex
60
60
  });
61
61
  provide("parent", parentData);
62
- watch(() => props.visible, (value) => {
63
- parentData.modelValue = value;
64
- });
62
+ watch(
63
+ () => props.visible,
64
+ (value) => {
65
+ parentData.modelValue = value;
66
+ }
67
+ );
65
68
  return {
66
69
  changeIndex
67
70
  };