@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
  */
@@ -90,6 +90,7 @@ const _sfc_main = create({
90
90
  return null;
91
91
  });
92
92
  watch(choosed, (value, oldValue) => {
93
+ var _a, _b;
93
94
  state.active = value;
94
95
  let index2 = value;
95
96
  if (props.name) {
@@ -97,20 +98,18 @@ const _sfc_main = create({
97
98
  return item.name == value;
98
99
  });
99
100
  }
100
- setTimeout(() => {
101
- if (parent.children[index2].href) {
102
- window.location.href = parent.children[index2].href;
103
- return;
104
- }
105
- if (parent.children[index2].to) {
106
- let to = parent.children[index2].to;
107
- if (to && router) {
108
- router.push(to);
109
- } else {
110
- location.replace(to);
111
- }
101
+ if ((_a = parent.children[index2]) == null ? void 0 : _a.href) {
102
+ window.location.href = parent.children[index2].href;
103
+ return;
104
+ }
105
+ if ((_b = parent.children[index2]) == null ? void 0 : _b.to) {
106
+ let to = parent.children[index2].to;
107
+ if (to && router) {
108
+ router.push(to);
109
+ } else {
110
+ location.replace(to);
112
111
  }
113
- });
112
+ }
114
113
  });
115
114
  return {
116
115
  state,
@@ -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
  */
@@ -88,9 +88,12 @@ const component = (componentName2, translate2) => {
88
88
  return [columns.key, columns.render];
89
89
  });
90
90
  };
91
- watch(() => props.data, (val) => {
92
- state.curData = val.slice();
93
- });
91
+ watch(
92
+ () => props.data,
93
+ (val) => {
94
+ state.curData = val.slice();
95
+ }
96
+ );
94
97
  return {
95
98
  ...toRefs(state),
96
99
  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
  */
@@ -104,15 +104,21 @@ const component = {
104
104
  }
105
105
  findTabsIndex(props.modelValue);
106
106
  };
107
- watch(() => {
108
- var _a;
109
- return (_a = slots.default) == null ? void 0 : _a.call(slots);
110
- }, (vnodes) => {
111
- init(vnodes);
112
- });
113
- watch(() => props.modelValue, (value) => {
114
- findTabsIndex(value);
115
- });
107
+ watch(
108
+ () => {
109
+ var _a;
110
+ return (_a = slots.default) == null ? void 0 : _a.call(slots);
111
+ },
112
+ (vnodes) => {
113
+ init(vnodes);
114
+ }
115
+ );
116
+ watch(
117
+ () => props.modelValue,
118
+ (value) => {
119
+ findTabsIndex(value);
120
+ }
121
+ );
116
122
  onMounted(init);
117
123
  onActivated(init);
118
124
  const contentStyle = computed(() => {
@@ -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
  */
@@ -91,11 +91,14 @@ const _sfc_main = create({
91
91
  textarea.style.height = height + "px";
92
92
  }
93
93
  };
94
- watch(() => props.modelValue, () => {
95
- if (props.autosize) {
96
- nextTick(getContentHeight);
94
+ watch(
95
+ () => props.modelValue,
96
+ () => {
97
+ if (props.autosize) {
98
+ nextTick(getContentHeight);
99
+ }
97
100
  }
98
- });
101
+ );
99
102
  const emitChange = (value, event) => {
100
103
  if (props.maxLength && value.length > Number(props.maxLength)) {
101
104
  value = value.substring(0, Number(props.maxLength));
@@ -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
  */
@@ -106,11 +106,14 @@ const _sfc_main = create({
106
106
  if (props.duration) {
107
107
  show();
108
108
  }
109
- watch(() => props.duration, (val) => {
110
- if (val) {
111
- show();
109
+ watch(
110
+ () => props.duration,
111
+ (val) => {
112
+ if (val) {
113
+ show();
114
+ }
112
115
  }
113
- });
116
+ );
114
117
  const hasIcon = computed(() => {
115
118
  if (props.type !== "text") {
116
119
  return true;
@@ -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
  */
@@ -29,10 +29,14 @@ class Uploader {
29
29
  const xhr = new XMLHttpRequest();
30
30
  xhr.timeout = options.timeout;
31
31
  if (xhr.upload) {
32
- xhr.upload.addEventListener("progress", (e) => {
33
- var _a2;
34
- (_a2 = options.onProgress) == null ? void 0 : _a2.call(options, e, options);
35
- }, false);
32
+ xhr.upload.addEventListener(
33
+ "progress",
34
+ (e) => {
35
+ var _a2;
36
+ (_a2 = options.onProgress) == null ? void 0 : _a2.call(options, e, options);
37
+ },
38
+ false
39
+ );
36
40
  xhr.onreadystatechange = () => {
37
41
  var _a2, _b;
38
42
  if (xhr.readyState === 4) {
@@ -225,9 +229,11 @@ const _sfc_main = create({
225
229
  if (props.autoUpload) {
226
230
  task.upload();
227
231
  } else {
228
- uploadQueue.push(new Promise((resolve, reject) => {
229
- resolve(task);
230
- }));
232
+ uploadQueue.push(
233
+ new Promise((resolve, reject) => {
234
+ resolve(task);
235
+ })
236
+ );
231
237
  }
232
238
  };
233
239
  const clearUploadQueue = (index2 = -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
  */
@@ -76,16 +76,23 @@ const _sfc_main = create({
76
76
  const isDisabled = computed(() => {
77
77
  return props.options.disabled;
78
78
  });
79
- watch(() => props.source, (newValue) => {
80
- if (newValue.src) {
81
- nextTick(() => {
82
- state.videoElm.load();
83
- });
79
+ watch(
80
+ () => props.source,
81
+ (newValue) => {
82
+ if (newValue.src) {
83
+ nextTick(() => {
84
+ state.videoElm.load();
85
+ });
86
+ }
84
87
  }
85
- });
86
- watch(() => props.options, (newValue) => {
87
- state.state.isMuted = newValue ? newValue.muted : false;
88
- }, { immediate: true });
88
+ );
89
+ watch(
90
+ () => props.options,
91
+ (newValue) => {
92
+ state.state.isMuted = newValue ? newValue.muted : false;
93
+ },
94
+ { immediate: true }
95
+ );
89
96
  const init = () => {
90
97
  state.videoElm = root.value;
91
98
  if (props.options.autoplay) {
@@ -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
  */
@@ -120,7 +120,13 @@ const _sfc_main = create({
120
120
  img.referrerPolicy = "no-referrer";
121
121
  img.src = image;
122
122
  img.onload = () => {
123
- ctx.drawImage(img, -imageWidth * ratio / 2, -imageHeight * ratio / 2, imageWidth * ratio, imageHeight * ratio);
123
+ ctx.drawImage(
124
+ img,
125
+ -imageWidth * ratio / 2,
126
+ -imageHeight * ratio / 2,
127
+ imageWidth * ratio,
128
+ imageHeight * ratio
129
+ );
124
130
  ctx.restore();
125
131
  state.base64Url = canvas.toDataURL();
126
132
  };
@@ -141,25 +147,28 @@ const _sfc_main = create({
141
147
  }
142
148
  };
143
149
  init();
144
- watch(() => [
145
- zIndex,
146
- gapX,
147
- gapY,
148
- width,
149
- height,
150
- rotate,
151
- image,
152
- imageWidth,
153
- imageHeight,
154
- content,
155
- fontStyle,
156
- fontWeight,
157
- fontColor,
158
- fontSize,
159
- fontFamily
160
- ], () => {
161
- init();
162
- });
150
+ watch(
151
+ () => [
152
+ zIndex,
153
+ gapX,
154
+ gapY,
155
+ width,
156
+ height,
157
+ rotate,
158
+ image,
159
+ imageWidth,
160
+ imageHeight,
161
+ content,
162
+ fontStyle,
163
+ fontWeight,
164
+ fontColor,
165
+ fontSize,
166
+ fontFamily
167
+ ],
168
+ () => {
169
+ init();
170
+ }
171
+ );
163
172
  const classes = computed(() => {
164
173
  const prefixCls = componentName;
165
174
  return {
@@ -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
  */
@@ -54,11 +54,17 @@ function useProvide(key, childName) {
54
54
  };
55
55
  const extend = Object.assign;
56
56
  return (value) => {
57
- provide(key, extend({
58
- add,
59
- remove,
60
- internalChildren
61
- }, value));
57
+ provide(
58
+ key,
59
+ extend(
60
+ {
61
+ add,
62
+ remove,
63
+ internalChildren
64
+ },
65
+ value
66
+ )
67
+ );
62
68
  return {
63
69
  internalChildren
64
70
  };
@@ -126,10 +132,14 @@ const component = {
126
132
  });
127
133
  return () => {
128
134
  var _a;
129
- return h("view", {
130
- class: rootClass.value,
131
- style: rootStyle.value
132
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
135
+ return h(
136
+ "view",
137
+ {
138
+ class: rootClass.value,
139
+ style: rootStyle.value
140
+ },
141
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
142
+ );
133
143
  };
134
144
  }
135
145
  };
@@ -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
  */
@@ -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
  */
@@ -384,11 +384,17 @@ const _sfc_main = create({
384
384
  }
385
385
  monthInfo.cssScrollHeight = cssScrollHeight;
386
386
  if (type == "next") {
387
- if (!state.endData || !Utils.compareDate(`${state.endData[0]}-${state.endData[1]}-${Utils.getMonthDays(state.endData[0], state.endData[1])}`, `${curData[0]}-${curData[1]}-${curData[2]}`)) {
387
+ if (!state.endData || !Utils.compareDate(
388
+ `${state.endData[0]}-${state.endData[1]}-${Utils.getMonthDays(state.endData[0], state.endData[1])}`,
389
+ `${curData[0]}-${curData[1]}-${curData[2]}`
390
+ )) {
388
391
  state.monthsData.push(monthInfo);
389
392
  }
390
393
  } else {
391
- if (!state.startData || !Utils.compareDate(`${curData[0]}-${curData[1]}-${curData[2]}`, `${state.startData[0]}-${state.startData[1]}-01`)) {
394
+ if (!state.startData || !Utils.compareDate(
395
+ `${curData[0]}-${curData[1]}-${curData[2]}`,
396
+ `${state.startData[0]}-${state.startData[1]}-01`
397
+ )) {
392
398
  state.monthsData.unshift(monthInfo);
393
399
  } else {
394
400
  state.unLoadPrev = true;
@@ -440,9 +446,9 @@ const _sfc_main = create({
440
446
  if (state.currDate.length > 0) {
441
447
  let defaultArr = [];
442
448
  let obj = {};
443
- state.currDate.forEach((item, index) => {
449
+ state.currDate.forEach((item) => {
444
450
  if (propStartDate && !Utils.compareDate(item, propStartDate) && propEndDate && !Utils.compareDate(propEndDate, item)) {
445
- if (!obj.hasOwnProperty(item)) {
451
+ if (!Object.hasOwnProperty.call(obj, item)) {
446
452
  defaultArr.push(item);
447
453
  obj[item] = item;
448
454
  }
@@ -571,7 +577,7 @@ const _sfc_main = create({
571
577
  }
572
578
  return false;
573
579
  };
574
- const rangeTip = (day, month) => {
580
+ const rangeTip = () => {
575
581
  if (state.currDate.length >= 2) {
576
582
  return Utils.isEqual(state.currDate[0], state.currDate[1]);
577
583
  }
@@ -621,13 +627,16 @@ const _sfc_main = create({
621
627
  initData();
622
628
  };
623
629
  initData();
624
- watch(() => props.defaultValue, (val) => {
625
- if (val) {
626
- if (props.poppable) {
627
- resetRender();
630
+ watch(
631
+ () => props.defaultValue,
632
+ (val) => {
633
+ if (val) {
634
+ if (props.poppable) {
635
+ resetRender();
636
+ }
628
637
  }
629
638
  }
630
- });
639
+ );
631
640
  return {
632
641
  weeks,
633
642
  compConthsData,
@@ -767,7 +776,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
767
776
  !_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12, toDisplayString(_ctx.translate("today")), 1)) : createCommentVNode("", true),
768
777
  _ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
769
778
  key: 3,
770
- class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip(day, month) }])
779
+ class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip() }])
771
780
  }, toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : createCommentVNode("", true),
772
781
  _ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
773
782
  ], 10, _hoisted_8);
@@ -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
  */
@@ -15,6 +15,7 @@
15
15
  appearance: none;
16
16
  user-select: none;
17
17
  touch-action: manipulation;
18
+ vertical-align: bottom;
18
19
 
19
20
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
20
21
  -webkit-tap-highlight-color: transparent;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:27 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:20:04 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:27 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:20:04 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:27 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:20:04 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:27 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:20:04 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:27 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:20:04 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:27 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:20:04 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -55,6 +55,7 @@
55
55
  }
56
56
 
57
57
  &__label {
58
+ flex: 1;
58
59
  margin-left: $radio-label-margin-left;
59
60
  font-size: $radio-label-font-size;
60
61
  color: $radio-label-font-color;
@@ -1168,7 +1168,7 @@
1168
1168
  "description": "属性说明:预览的视频数组(视频自动放到图片之前、taro场景暂不支持),默认值:[]"
1169
1169
  },
1170
1170
  "nut-imagepreview/images": {
1171
- "type": "array<`string`>",
1171
+ "type": "{ src: string }[]",
1172
1172
  "description": "属性说明:预览图片数组,默认值:[]"
1173
1173
  },
1174
1174
  "nut-imagepreview/autoplay": {
@@ -1439,6 +1439,22 @@
1439
1439
  "type": "boolean",
1440
1440
  "description": "属性说明:只读状态禁用输入框操作行为,默认值:false"
1441
1441
  },
1442
+ "nut-inputnumber/icon-left `v3.2.2`": {
1443
+ "type": "string",
1444
+ "description": "属性说明:左侧操作符图标名,同 Icon 组件 name 属性,默认值:`minus`"
1445
+ },
1446
+ "nut-inputnumber/icon-right `v3.2.2`": {
1447
+ "type": "string",
1448
+ "description": "属性说明:右侧操作符图标名,同 Icon 组件 name 属性,默认值:`plus`"
1449
+ },
1450
+ "nut-inputnumber/font-class-name `v3.2.2`": {
1451
+ "type": "string",
1452
+ "description": "属性说明:自定义icon 字体基础类名,默认值:`nutui-iconfont`"
1453
+ },
1454
+ "nut-inputnumber/class-prefix `v3.2.2`": {
1455
+ "type": "string",
1456
+ "description": "属性说明:自定义icon 类名前缀,用于使用自定义图标,默认值:`nut-icon`"
1457
+ },
1442
1458
  "nut-layout/type": {
1443
1459
  "type": "string",
1444
1460
  "description": "属性说明:布局方式,可选值为flex,默认值:-"
@@ -1779,6 +1795,10 @@
1779
1795
  "type": "boolean",
1780
1796
  "description": "属性说明:是否开启3D效果,默认值:true"
1781
1797
  },
1798
+ "nut-picker/swipe-duration`v3.2.2`": {
1799
+ "type": "number、string",
1800
+ "description": "属性说明:惯性滚动时长,默认值:1000"
1801
+ },
1782
1802
  "nut-popover/list": {
1783
1803
  "type": "list[]",
1784
1804
  "description": "属性说明:选项列表,默认值:[]"