@nutui/nutui 3.2.2-beta.1 → 3.2.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 (183) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +5 -3
  3. package/dist/nutui.es.js +1767 -1993
  4. package/dist/nutui.umd.js +1777 -2002
  5. package/dist/packages/_es/ActionSheet.js +22 -4
  6. package/dist/packages/_es/Address.js +57 -63
  7. package/dist/packages/_es/AddressList.js +3 -7
  8. package/dist/packages/_es/Animate.js +21 -2
  9. package/dist/packages/_es/Audio.js +25 -11
  10. package/dist/packages/_es/AudioOperate.js +21 -2
  11. package/dist/packages/_es/Avatar.js +20 -5
  12. package/dist/packages/_es/AvatarGroup.js +1 -1
  13. package/dist/packages/_es/BackTop.js +2 -2
  14. package/dist/packages/_es/Badge.js +1 -1
  15. package/dist/packages/_es/Barrage.js +4 -7
  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 +65 -51
  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 +17 -31
  26. package/dist/packages/_es/CheckboxGroup.js +7 -14
  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 +19 -22
  30. package/dist/packages/_es/CollapseItem.js +32 -18
  31. package/dist/packages/_es/Comment.js +9 -13
  32. package/dist/packages/_es/ConfigProvider.js +4 -8
  33. package/dist/packages/_es/CountDown.js +46 -40
  34. package/dist/packages/_es/CountUp.js +40 -39
  35. package/dist/packages/_es/DatePicker.js +40 -27
  36. package/dist/packages/_es/Dialog.js +28 -13
  37. package/dist/packages/_es/Divider.js +24 -7
  38. package/dist/packages/_es/Drag.js +4 -4
  39. package/dist/packages/_es/Ecard.js +4 -7
  40. package/dist/packages/_es/Elevator.js +38 -25
  41. package/dist/packages/_es/Ellipsis.js +28 -14
  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 +5 -9
  45. package/dist/packages/_es/FormItem.js +5 -4
  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 +11 -15
  49. package/dist/packages/_es/Image.js +24 -8
  50. package/dist/packages/_es/ImagePreview.js +34 -22
  51. package/dist/packages/_es/Indicator.js +1 -1
  52. package/dist/packages/_es/InfiniteLoading.js +24 -5
  53. package/dist/packages/_es/Input.js +9 -13
  54. package/dist/packages/_es/InputNumber.js +1 -1
  55. package/dist/packages/_es/Invoice.js +156 -0
  56. package/dist/packages/_es/Layout.js +1 -1
  57. package/dist/packages/_es/List.js +25 -10
  58. package/dist/packages/_es/Menu.js +7 -13
  59. package/dist/packages/_es/MenuItem.js +22 -3
  60. package/dist/packages/_es/Navbar.js +2 -2
  61. package/dist/packages/_es/NoticeBar.js +28 -17
  62. package/dist/packages/_es/Notify.js +38 -20
  63. package/dist/packages/_es/NumberKeyboard.js +5 -12
  64. package/dist/packages/_es/OldPicker.js +46 -47
  65. package/dist/packages/_es/OverLay.js +23 -11
  66. package/dist/packages/_es/Pagination.js +1 -1
  67. package/dist/packages/_es/Picker.js +72 -64
  68. package/dist/packages/_es/Popover.js +52 -55
  69. package/dist/packages/_es/Popup.js +40 -35
  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 +20 -5
  73. package/dist/packages/_es/Radio.js +15 -27
  74. package/dist/packages/_es/RadioGroup.js +5 -12
  75. package/dist/packages/_es/Range.js +33 -20
  76. package/dist/packages/_es/Rate.js +24 -5
  77. package/dist/packages/_es/Row.js +1 -1
  78. package/dist/packages/_es/SearchBar.js +44 -11
  79. package/dist/packages/_es/ShortPassword.js +11 -18
  80. package/dist/packages/_es/SideNavBar.js +22 -4
  81. package/dist/packages/_es/SideNavBarItem.js +1 -1
  82. package/dist/packages/_es/Signature.js +21 -2
  83. package/dist/packages/_es/Skeleton.js +1 -1
  84. package/dist/packages/_es/Sku.js +32 -24
  85. package/dist/packages/_es/Step.js +22 -4
  86. package/dist/packages/_es/Steps.js +4 -8
  87. package/dist/packages/_es/Sticky.js +12 -23
  88. package/dist/packages/_es/SubSideNavBar.js +22 -4
  89. package/dist/packages/_es/Swipe.js +24 -5
  90. package/dist/packages/_es/Swiper.js +14 -23
  91. package/dist/packages/_es/SwiperItem.js +1 -1
  92. package/dist/packages/_es/Switch.js +7 -10
  93. package/dist/packages/_es/TabPane.js +1 -1
  94. package/dist/packages/_es/Tabbar.js +4 -7
  95. package/dist/packages/_es/TabbarItem.js +1 -1
  96. package/dist/packages/_es/Table.js +25 -10
  97. package/dist/packages/_es/Tabs.js +41 -25
  98. package/dist/packages/_es/Tag.js +1 -1
  99. package/dist/packages/_es/TextArea.js +5 -8
  100. package/dist/packages/_es/TimeDetail.js +24 -5
  101. package/dist/packages/_es/TimePannel.js +22 -4
  102. package/dist/packages/_es/TimeSelect.js +1 -1
  103. package/dist/packages/_es/Toast.js +47 -28
  104. package/dist/packages/_es/Uploader.js +27 -18
  105. package/dist/packages/_es/Video.js +33 -22
  106. package/dist/packages/_es/WaterMark.js +41 -31
  107. package/dist/packages/_es/common.js +11 -21
  108. package/dist/packages/_es/component.js +5 -5
  109. package/dist/packages/_es/index.js +1 -1
  110. package/dist/packages/_es/index2.js +1 -1
  111. package/dist/packages/_es/index3.js +1 -1
  112. package/dist/packages/_es/index4.js +1 -1
  113. package/dist/packages/_es/index5.js +31 -23
  114. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  115. package/dist/packages/_es/pxCheck.js +1 -1
  116. package/dist/packages/_es/raf.js +1 -1
  117. package/dist/packages/address/index.scss +17 -0
  118. package/dist/packages/invoice/index.scss +33 -0
  119. package/dist/packages/locale/lang/baseLang.js +1 -1
  120. package/dist/packages/locale/lang/en-US.js +1 -1
  121. package/dist/packages/locale/lang/id-ID.js +1 -1
  122. package/dist/packages/locale/lang/index.js +1 -1
  123. package/dist/packages/locale/lang/zh-CN.js +1 -1
  124. package/dist/packages/locale/lang/zh-TW.js +1 -1
  125. package/dist/packages/menuitem/index.scss +3 -1
  126. package/dist/packages/navbar/index.scss +6 -8
  127. package/dist/packages/picker/index.scss +8 -0
  128. package/dist/packages/price/index.scss +1 -1
  129. package/dist/packages/searchbar/index.scss +2 -0
  130. package/dist/packages/textarea/index.scss +4 -1
  131. package/dist/packages/toast/index.scss +3 -0
  132. package/dist/smartips/attributes.json +36 -12
  133. package/dist/smartips/tags.json +20 -10
  134. package/dist/smartips/web-types.json +74 -13
  135. package/dist/style.css +1 -1
  136. package/dist/style.es.js +1 -1
  137. package/dist/styles/themes/default.scss +51 -50
  138. package/dist/styles/themes/jdb.scss +51 -50
  139. package/dist/styles/themes/jdt.scss +51 -50
  140. package/dist/styles/variables-jdb.scss +4 -1
  141. package/dist/styles/variables-jdt.scss +4 -1
  142. package/dist/styles/variables.scss +4 -1
  143. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  144. package/dist/types/__VUE/address/index.vue.d.ts +3 -3
  145. package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
  146. package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
  147. package/dist/types/__VUE/backtop/index.vue.d.ts +5 -8
  148. package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
  149. package/dist/types/__VUE/button/index.vue.d.ts +2 -2
  150. package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
  151. package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
  152. package/dist/types/__VUE/cell/index.vue.d.ts +8 -8
  153. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  154. package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
  155. package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -2
  156. package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
  157. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  158. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
  159. package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
  160. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  161. package/dist/types/__VUE/input/index.vue.d.ts +6 -7
  162. package/dist/types/__VUE/invoice/index.vue.d.ts +48 -0
  163. package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
  164. package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
  165. package/dist/types/__VUE/notify/index.d.ts +15 -5
  166. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
  167. package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
  168. package/dist/types/__VUE/picker/index.vue.d.ts +5 -3
  169. package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
  170. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  171. package/dist/types/__VUE/radio/index.vue.d.ts +3 -3
  172. package/dist/types/__VUE/searchbar/index.vue.d.ts +18 -3
  173. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
  175. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  176. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  177. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
  178. package/dist/types/__VUE/toast/index.vue.d.ts +5 -2
  179. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  180. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  181. package/dist/types/index.d.ts +1 -1
  182. package/dist/types/nutui.d.ts +2 -1
  183. 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.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -34,6 +53,10 @@ const _sfc_main = create({
34
53
  type: Boolean,
35
54
  default: true
36
55
  },
56
+ clearIcon: {
57
+ type: String,
58
+ default: "circle-close"
59
+ },
37
60
  background: {
38
61
  type: String,
39
62
  default: ""
@@ -42,6 +65,11 @@ const _sfc_main = create({
42
65
  type: String,
43
66
  default: ""
44
67
  },
68
+ focusStyle: {
69
+ type: Object,
70
+ default: () => {
71
+ }
72
+ },
45
73
  autofocus: {
46
74
  type: Boolean,
47
75
  default: false
@@ -93,10 +121,12 @@ const _sfc_main = create({
93
121
  emit("update:modelValue", val, event);
94
122
  emit("change", val, event);
95
123
  };
124
+ const focusCss = ref({});
96
125
  const valueFocus = (event) => {
97
126
  const input = event.target;
98
127
  let value = input.value;
99
128
  state.active = true;
129
+ focusCss.value = props.focusStyle;
100
130
  emit("focus", value, event);
101
131
  };
102
132
  const valueBlur = (event) => {
@@ -108,6 +138,7 @@ const _sfc_main = create({
108
138
  if (props.maxLength && value.length > Number(props.maxLength)) {
109
139
  value = value.slice(0, Number(props.maxLength));
110
140
  }
141
+ focusCss.value = {};
111
142
  emit("blur", value, event);
112
143
  };
113
144
  const handleClear = (event) => {
@@ -128,9 +159,10 @@ const _sfc_main = create({
128
159
  emit("click-right-icon", props.modelValue, event);
129
160
  };
130
161
  const styleSearchbar = computed(() => {
131
- return {
132
- "text-align": props.inputAlign
162
+ const style = {
163
+ textAlign: props.inputAlign
133
164
  };
165
+ return style;
134
166
  });
135
167
  const inputsearch = ref(null);
136
168
  onMounted(() => {
@@ -138,9 +170,9 @@ const _sfc_main = create({
138
170
  inputsearch.value.focus();
139
171
  }
140
172
  });
141
- return {
142
- inputsearch,
143
- ...toRefs(state),
173
+ return __spreadProps(__spreadValues({
174
+ inputsearch
175
+ }, toRefs(state)), {
144
176
  valueChange,
145
177
  valueFocus,
146
178
  valueBlur,
@@ -148,12 +180,13 @@ const _sfc_main = create({
148
180
  handleSubmit,
149
181
  searchbarStyle,
150
182
  inputSearchbarStyle,
183
+ focusCss,
151
184
  translate,
152
185
  clickInput,
153
186
  leftIconClick,
154
187
  rightIconClick,
155
188
  styleSearchbar
156
- };
189
+ });
157
190
  }
158
191
  });
159
192
  const _hoisted_1 = {
@@ -182,7 +215,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
182
215
  ])) : createCommentVNode("", true),
183
216
  createElementVNode("view", {
184
217
  class: "nut-searchbar__search-input",
185
- style: normalizeStyle(_ctx.inputSearchbarStyle)
218
+ style: normalizeStyle(__spreadValues(__spreadValues({}, _ctx.inputSearchbarStyle), _ctx.focusCss))
186
219
  }, [
187
220
  _ctx.$slots.leftin ? (openBlock(), createElementBlock("view", {
188
221
  key: 0,
@@ -218,12 +251,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
218
251
  class: "nut-searchbar__input-clear"
219
252
  }, [
220
253
  createVNode(_component_nut_icon, {
221
- name: "circle-close",
254
+ name: _ctx.clearIcon,
222
255
  size: "12",
223
256
  color: "#555"
224
- })
257
+ }, null, 8, ["name"])
225
258
  ], 512)), [
226
- [vShow, _ctx.modelValue.length > 0]
259
+ [vShow, String(_ctx.modelValue).length > 0]
227
260
  ]) : createCommentVNode("", true)
228
261
  ]),
229
262
  _ctx.$slots.rightin ? (openBlock(), createElementBlock("view", {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -63,23 +63,16 @@ const _sfc_main = create({
63
63
  function focus() {
64
64
  realpwd.value.focus();
65
65
  }
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
- );
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
+ });
83
76
  function changeValue(e) {
84
77
  const input = e.target;
85
78
  let val = input.value;
@@ -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.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -60,11 +79,10 @@ const _sfc_main = create({
60
79
  subtree: false
61
80
  });
62
81
  });
63
- return {
64
- ...toRefs(state),
82
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
65
83
  list,
66
84
  classes
67
- };
85
+ });
68
86
  }
69
87
  });
70
88
  const _hoisted_1 = { class: "nut-sidenavbar__content" };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10: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.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -126,7 +145,7 @@ const _sfc_main = create({
126
145
  addEvent();
127
146
  }
128
147
  });
129
- return { ...toRefs(state), canvas, wrap, isCanvasSupported, confirm, clear, classes, translate };
148
+ return __spreadProps(__spreadValues({}, toRefs(state)), { canvas, wrap, isCanvasSupported, confirm, clear, classes, translate });
130
149
  }
131
150
  });
132
151
  const _hoisted_1 = {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10: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.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -65,13 +84,9 @@ const _sfc_main$3 = create$3({
65
84
  emits: ["selectSku"],
66
85
  setup(props, { emit }) {
67
86
  const skuInfo = ref([]);
68
- watch(
69
- () => props.sku,
70
- (value) => {
71
- skuInfo.value = [].slice.call(value);
72
- },
73
- { deep: true }
74
- );
87
+ watch(() => props.sku, (value) => {
88
+ skuInfo.value = [].slice.call(value);
89
+ }, { deep: true });
75
90
  onMounted(() => {
76
91
  if (props.sku.length > 0) {
77
92
  skuInfo.value = [].slice.call(props.sku);
@@ -284,8 +299,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
284
299
  var SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
285
300
  const { componentName, create, translate } = createComponent("sku");
286
301
  const _sfc_main = create({
287
- props: {
288
- ...popupProps,
302
+ props: __spreadProps(__spreadValues({}, popupProps), {
289
303
  sku: {
290
304
  type: Array,
291
305
  default: []
@@ -330,7 +344,7 @@ const _sfc_main = create({
330
344
  type: String,
331
345
  default: ""
332
346
  }
333
- },
347
+ }),
334
348
  emits: [
335
349
  "update:visible",
336
350
  "selectSku",
@@ -353,20 +367,14 @@ const _sfc_main = create({
353
367
  setup(props, { emit, slots }) {
354
368
  const showPopup = ref(props.visible);
355
369
  const goodsCount = ref(props.stepperMin);
356
- watch(
357
- () => props.visible,
358
- (value) => {
359
- showPopup.value = value;
360
- }
361
- );
362
- watch(
363
- () => showPopup.value,
364
- (value) => {
365
- if (value == false) {
366
- close();
367
- }
370
+ watch(() => props.visible, (value) => {
371
+ showPopup.value = value;
372
+ });
373
+ watch(() => showPopup.value, (value) => {
374
+ if (value == false) {
375
+ close();
368
376
  }
369
- );
377
+ });
370
378
  onMounted(() => {
371
379
  });
372
380
  const getSlots = (name) => slots[name];
@@ -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.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -59,12 +78,11 @@ const _sfc_main = create({
59
78
  const handleClickStep = () => {
60
79
  parent["onEmit"](index2.value);
61
80
  };
62
- return {
63
- ...toRefs(state),
81
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
64
82
  index: index2,
65
83
  classes,
66
84
  handleClickStep
67
- };
85
+ });
68
86
  }
69
87
  });
70
88
  const _hoisted_1 = { class: "nut-step-head" };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -49,13 +49,9 @@ const _sfc_main = create({
49
49
  });
50
50
  return () => {
51
51
  var _a;
52
- return h(
53
- "view",
54
- {
55
- class: classes.value
56
- },
57
- (_a = slots.default) == null ? void 0 : _a.call(slots)
58
- );
52
+ return h("view", {
53
+ class: classes.value
54
+ }, (_a = slots.default) == null ? void 0 : _a.call(slots));
59
55
  };
60
56
  }
61
57
  });
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -83,14 +83,10 @@ const _sfc_main = create({
83
83
  };
84
84
  const renderFixed = () => {
85
85
  var _a;
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
- );
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));
94
90
  };
95
91
  const onScroll = () => {
96
92
  if (!isExistRoot())
@@ -127,12 +123,9 @@ const _sfc_main = create({
127
123
  fixed: state.fixed
128
124
  });
129
125
  };
130
- watch(
131
- () => state.fixed,
132
- (val) => {
133
- emit("change", val);
134
- }
135
- );
126
+ watch(() => state.fixed, (val) => {
127
+ emit("change", val);
128
+ });
136
129
  onMounted(() => {
137
130
  window.addEventListener("scroll", onScroll);
138
131
  onScroll();
@@ -141,14 +134,10 @@ const _sfc_main = create({
141
134
  window.removeEventListener("scroll", onScroll);
142
135
  });
143
136
  return () => {
144
- return h(
145
- "view",
146
- {
147
- style: rootStyle.value,
148
- ref: root
149
- },
150
- [renderFixed()]
151
- );
137
+ return h("view", {
138
+ style: rootStyle.value,
139
+ ref: root
140
+ }, [renderFixed()]);
152
141
  };
153
142
  }
154
143
  });
@@ -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.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -46,12 +65,11 @@ const _sfc_main = create({
46
65
  onMounted(() => {
47
66
  state.direction = props.open ? "" : "up";
48
67
  });
49
- return {
50
- ...toRefs(state),
68
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
51
69
  classes,
52
70
  style,
53
71
  handleClick
54
- };
72
+ });
55
73
  }
56
74
  });
57
75
  const _hoisted_1 = ["ikey"];
@@ -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.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -144,15 +163,15 @@ const _sfc_main = create({
144
163
  }
145
164
  }
146
165
  };
147
- return {
166
+ return __spreadProps(__spreadValues({
148
167
  classes,
149
- touchStyle,
150
- ...touchMethods,
168
+ touchStyle
169
+ }, touchMethods), {
151
170
  leftRef,
152
171
  rightRef,
153
172
  open,
154
173
  close
155
- };
174
+ });
156
175
  }
157
176
  });
158
177
  const _hoisted_1 = {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -391,28 +391,19 @@ const _sfc_main = create({
391
391
  onBeforeUnmount(() => {
392
392
  stopAutoPlay();
393
393
  });
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
- );
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
+ });
416
407
  return {
417
408
  state,
418
409
  classes,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10: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.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -85,16 +85,13 @@ const _sfc_main = create({
85
85
  emit("update:modelValue", value);
86
86
  emit("change", value, event);
87
87
  };
88
- watch(
89
- () => props.modelValue,
90
- (v) => {
91
- if (updateType == "click") {
92
- updateType = "";
93
- } else {
94
- emit("change", v);
95
- }
88
+ watch(() => props.modelValue, (v) => {
89
+ if (updateType == "click") {
90
+ updateType = "";
91
+ } else {
92
+ emit("change", v);
96
93
  }
97
- );
94
+ });
98
95
  return {
99
96
  classes,
100
97
  style,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */