@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
  */
@@ -131,14 +131,17 @@ const _sfc_main = create({
131
131
  proxyData.openExpanded = true;
132
132
  }
133
133
  });
134
- watch(() => {
135
- var _a, _b;
136
- return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
137
- }, () => {
138
- setTimeout(() => {
139
- animation();
140
- }, 300);
141
- });
134
+ watch(
135
+ () => {
136
+ var _a, _b;
137
+ return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
138
+ },
139
+ () => {
140
+ setTimeout(() => {
141
+ animation();
142
+ }, 300);
143
+ }
144
+ );
142
145
  const init = () => {
143
146
  const { name } = props;
144
147
  const active = parent && parent.props.active;
@@ -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
  */
@@ -131,14 +131,18 @@ const _sfc_main$2 = create$2({
131
131
  const isShowImage = ref(false);
132
132
  const initIndex = ref(1);
133
133
  const totalImages = ref([]);
134
- watch(() => [props.videos, props.images], (value) => {
135
- if (value[0].length > 0) {
136
- value[0].forEach((el) => {
137
- el.type = "video";
138
- });
139
- }
140
- totalImages.value = value[0].concat(value[1]);
141
- }, { deep: true });
134
+ watch(
135
+ () => [props.videos, props.images],
136
+ (value) => {
137
+ if (value[0].length > 0) {
138
+ value[0].forEach((el) => {
139
+ el.type = "video";
140
+ });
141
+ }
142
+ totalImages.value = value[0].concat(value[1]);
143
+ },
144
+ { deep: true }
145
+ );
142
146
  onMounted(() => {
143
147
  if (props.videos.length > 0) {
144
148
  props.videos.forEach((el) => {
@@ -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
  */
@@ -14,9 +14,13 @@ const component = {
14
14
  setup(props, { slots }) {
15
15
  return () => {
16
16
  var _a;
17
- return h(props.tag, {
18
- class: `nut-theme-${props.theme}`
19
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
17
+ return h(
18
+ props.tag,
19
+ {
20
+ class: `nut-theme-${props.theme}`
21
+ },
22
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
23
+ );
20
24
  };
21
25
  }
22
26
  };
@@ -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
  */
@@ -192,31 +192,43 @@ const _sfc_main = create({
192
192
  state.restTime = props.time;
193
193
  }
194
194
  });
195
- watch(() => state.restTime, (value) => {
196
- let tranTime = formatRemainTime(value, "custom");
197
- emit("update:modelValue", tranTime);
198
- emit("input", tranTime);
199
- });
200
- watch(() => props.paused, (v, ov) => {
201
- if (!ov) {
202
- if (state.counting) {
203
- pause();
204
- }
205
- } else {
206
- if (!state.counting) {
207
- state.counting = true;
208
- state.handleEndTime = Date.now() + Number(state.restTime);
209
- tick();
195
+ watch(
196
+ () => state.restTime,
197
+ (value) => {
198
+ let tranTime = formatRemainTime(value, "custom");
199
+ emit("update:modelValue", tranTime);
200
+ emit("input", tranTime);
201
+ }
202
+ );
203
+ watch(
204
+ () => props.paused,
205
+ (v, ov) => {
206
+ if (!ov) {
207
+ if (state.counting) {
208
+ pause();
209
+ }
210
+ } else {
211
+ if (!state.counting) {
212
+ state.counting = true;
213
+ state.handleEndTime = Date.now() + Number(state.restTime);
214
+ tick();
215
+ }
216
+ emit("on-restart", state.restTime);
210
217
  }
211
- emit("on-restart", state.restTime);
212
218
  }
213
- });
214
- watch(() => props.endTime, (value) => {
215
- initTime();
216
- });
217
- watch(() => props.startTime, (value) => {
218
- initTime();
219
- });
219
+ );
220
+ watch(
221
+ () => props.endTime,
222
+ (value) => {
223
+ initTime();
224
+ }
225
+ );
226
+ watch(
227
+ () => props.startTime,
228
+ (value) => {
229
+ initTime();
230
+ }
231
+ );
220
232
  return {
221
233
  ...toRefs(props),
222
234
  slots,
@@ -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
  */
@@ -116,23 +116,35 @@ const _sfc_main = create({
116
116
  typeMachine: ""
117
117
  });
118
118
  const { startFlag, scrolling, customBgImg, type } = reactive(props);
119
- watch(() => props.customChangeNum, (count, prevCount) => {
120
- clearIntervalTime();
121
- countGo(0);
122
- });
123
- watch(() => props.machinePrizeLevel, (count, prevCount) => {
124
- data.prizeLevelTrun = count;
125
- });
126
- watch(() => props.initNum, (count, prevCount) => {
127
- data.current = count;
128
- data.valFlag = false;
129
- valChange();
130
- });
131
- watch(() => props.endNum, (count, prevCount) => {
132
- data.current = props.initNum;
133
- data.valFlag = false;
134
- valChange();
135
- });
119
+ watch(
120
+ () => props.customChangeNum,
121
+ (count, prevCount) => {
122
+ clearIntervalTime();
123
+ countGo(0);
124
+ }
125
+ );
126
+ watch(
127
+ () => props.machinePrizeLevel,
128
+ (count, prevCount) => {
129
+ data.prizeLevelTrun = count;
130
+ }
131
+ );
132
+ watch(
133
+ () => props.initNum,
134
+ (count, prevCount) => {
135
+ data.current = count;
136
+ data.valFlag = false;
137
+ valChange();
138
+ }
139
+ );
140
+ watch(
141
+ () => props.endNum,
142
+ (count, prevCount) => {
143
+ data.current = props.initNum;
144
+ data.valFlag = false;
145
+ valChange();
146
+ }
147
+ );
136
148
  const valChange = () => {
137
149
  if (data.valFlag) {
138
150
  return false;
@@ -379,7 +391,11 @@ const _sfc_main = create({
379
391
  if (data.prizeLevelTrun < 0) {
380
392
  newLocation += props.numHeight * data.notPrize[i];
381
393
  }
382
- scrollTime(i, newLocation, local);
394
+ scrollTime(
395
+ i,
396
+ newLocation,
397
+ local
398
+ );
383
399
  }, 500 * i);
384
400
  }
385
401
  };
@@ -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
  */
@@ -290,15 +290,24 @@ const _sfc_main = create({
290
290
  onBeforeMount(() => {
291
291
  state.currentDate = formatValue(props.modelValue);
292
292
  });
293
- watch(() => props.modelValue, (value) => {
294
- state.currentDate = formatValue(value);
295
- });
296
- watch(() => props.title, (val) => {
297
- state.title = val;
298
- });
299
- watch(() => props.visible, (val) => {
300
- state.show = val;
301
- });
293
+ watch(
294
+ () => props.modelValue,
295
+ (value) => {
296
+ state.currentDate = formatValue(value);
297
+ }
298
+ );
299
+ watch(
300
+ () => props.title,
301
+ (val) => {
302
+ state.title = val;
303
+ }
304
+ );
305
+ watch(
306
+ () => props.visible,
307
+ (val) => {
308
+ state.show = val;
309
+ }
310
+ );
302
311
  return {
303
312
  ...toRefs(state),
304
313
  changeHandler,
@@ -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,12 +90,15 @@ const _sfc_main = create({
90
90
  });
91
91
  }
92
92
  });
93
- watch(() => props.visible, (value) => {
94
- showPopup.value = value;
95
- if (value) {
96
- emit("opened");
93
+ watch(
94
+ () => props.visible,
95
+ (value) => {
96
+ showPopup.value = value;
97
+ if (value) {
98
+ emit("opened");
99
+ }
97
100
  }
98
- });
101
+ );
99
102
  const classes = computed(() => {
100
103
  return {
101
104
  [componentName]: 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
  */
@@ -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
  */
@@ -94,9 +94,12 @@ const _sfc_main = create({
94
94
  stepValue.value = value;
95
95
  emit("changeStep", stepValue.value, currentValue.value);
96
96
  };
97
- watch(() => props.modelValue, (value) => {
98
- money.value = value;
99
- });
97
+ watch(
98
+ () => props.modelValue,
99
+ (value) => {
100
+ money.value = value;
101
+ }
102
+ );
100
103
  return {
101
104
  handleClick,
102
105
  changeStep,
@@ -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
  */
@@ -152,21 +152,27 @@ const _sfc_main = create({
152
152
  useExpose({
153
153
  scrollTo
154
154
  });
155
- watch(() => state.listGroup.length, () => {
156
- state.listHeight = [];
157
- nextTick(calculateHeight);
158
- });
159
- watch(() => state.diff, (newVal) => {
160
- const listHeight = state.listHeight;
161
- let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
162
- if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
163
- if (fixedTop !== 0)
164
- fixedTop = 0;
155
+ watch(
156
+ () => state.listGroup.length,
157
+ () => {
158
+ state.listHeight = [];
159
+ nextTick(calculateHeight);
165
160
  }
166
- if (state.fixedTop === fixedTop)
167
- return;
168
- state.fixedTop = fixedTop;
169
- });
161
+ );
162
+ watch(
163
+ () => state.diff,
164
+ (newVal) => {
165
+ const listHeight = state.listHeight;
166
+ let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
167
+ if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
168
+ if (fixedTop !== 0)
169
+ fixedTop = 0;
170
+ }
171
+ if (state.fixedTop === fixedTop)
172
+ return;
173
+ state.fixedTop = fixedTop;
174
+ }
175
+ );
170
176
  return {
171
177
  classes,
172
178
  ...toRefs(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
  */
@@ -51,14 +51,17 @@ const _sfc_main = create({
51
51
  [prefixCls]: true
52
52
  };
53
53
  });
54
- watch(() => props.content, (newV, oldVal) => {
55
- if (newV != oldVal) {
56
- if (container) {
57
- document.body.appendChild(container);
54
+ watch(
55
+ () => props.content,
56
+ (newV, oldVal) => {
57
+ if (newV != oldVal) {
58
+ if (container) {
59
+ document.body.appendChild(container);
60
+ }
61
+ createContainer();
58
62
  }
59
- createContainer();
60
63
  }
61
- });
64
+ );
62
65
  onMounted(() => {
63
66
  createContainer();
64
67
  });
@@ -83,7 +86,9 @@ const _sfc_main = create({
83
86
  container.style.webkitLineClamp = "unset";
84
87
  container.style.display = "block";
85
88
  const lineHeight = pxToNumber(originStyle.lineHeight);
86
- maxHeight = Math.floor(lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom));
89
+ maxHeight = Math.floor(
90
+ lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
91
+ );
87
92
  container.innerText = props.content;
88
93
  document.body.appendChild(container);
89
94
  calcEllipse();
@@ -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
  */
@@ -27,9 +27,13 @@ const component = {
27
27
  const reset = () => {
28
28
  clearErrorTips();
29
29
  };
30
- watch(() => props.modelValue, (value) => {
31
- clearErrorTips(value);
32
- }, { immediate: true });
30
+ watch(
31
+ () => props.modelValue,
32
+ (value) => {
33
+ clearErrorTips(value);
34
+ },
35
+ { immediate: true }
36
+ );
33
37
  const findFormItem = (vnodes) => {
34
38
  let task = [];
35
39
  vnodes.forEach((vnode, index2) => {
@@ -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
  */
@@ -28,17 +28,21 @@ const _sfc_main = create({
28
28
  return () => {
29
29
  var _a;
30
30
  const _isImage = isImage();
31
- return h(_isImage ? "img" : props.tag, {
32
- class: _isImage ? `${componentName}__img` : `${props.fontClassName} ${componentName} ${props.classPrefix}-${props.name}`,
33
- style: {
34
- color: props.color,
35
- fontSize: pxCheck(props.size),
36
- width: pxCheck(props.size),
37
- height: pxCheck(props.size)
31
+ return h(
32
+ _isImage ? "img" : props.tag,
33
+ {
34
+ class: _isImage ? `${componentName}__img` : `${props.fontClassName} ${componentName} ${props.classPrefix}-${props.name}`,
35
+ style: {
36
+ color: props.color,
37
+ fontSize: pxCheck(props.size),
38
+ width: pxCheck(props.size),
39
+ height: pxCheck(props.size)
40
+ },
41
+ onClick: handleClick,
42
+ src: _isImage ? props.name : ""
38
43
  },
39
- onClick: handleClick,
40
- src: _isImage ? props.name : ""
41
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
44
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
45
+ );
42
46
  };
43
47
  }
44
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
  */
@@ -80,9 +80,12 @@ const _sfc_main = create({
80
80
  };
81
81
  return styless;
82
82
  });
83
- watch(() => props.src, (val) => {
84
- state.isError = false, state.loading = true;
85
- });
83
+ watch(
84
+ () => props.src,
85
+ (val) => {
86
+ state.isError = false, state.loading = true;
87
+ }
88
+ );
86
89
  const load = () => {
87
90
  state.loading = false;
88
91
  emit("load");
@@ -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
  */
@@ -235,11 +235,14 @@ const _sfc_main$1 = create$1({
235
235
  };
236
236
  const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
237
237
  watch(() => props.initNo, resetScale);
238
- watch(() => props.show, (value) => {
239
- if (!value) {
240
- resetScale();
238
+ watch(
239
+ () => props.show,
240
+ (value) => {
241
+ if (!value) {
242
+ resetScale();
243
+ }
241
244
  }
242
- });
245
+ );
243
246
  return {
244
247
  ...toRefs(state),
245
248
  onTouchStart,
@@ -415,10 +418,13 @@ const _sfc_main = create({
415
418
  state.rootWidth = swipeRef.value.offsetWidth;
416
419
  }, 100);
417
420
  };
418
- watch(() => props.show, (val) => {
419
- state.showPop = val;
420
- init();
421
- });
421
+ watch(
422
+ () => props.show,
423
+ (val) => {
424
+ state.showPop = val;
425
+ init();
426
+ }
427
+ );
422
428
  onMounted(() => {
423
429
  state.active = props.initNo;
424
430
  state.showPop = props.show;
@@ -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
  */
@@ -306,10 +306,13 @@ const _sfc_main = create({
306
306
  return;
307
307
  }
308
308
  };
309
- watch(() => props.modelValue, () => {
310
- updateValue(getModelValue());
311
- resetValidation();
312
- });
309
+ watch(
310
+ () => props.modelValue,
311
+ () => {
312
+ updateValue(getModelValue());
313
+ resetValidation();
314
+ }
315
+ );
313
316
  onMounted(() => {
314
317
  updateValue(getModelValue(), props.formatTrigger);
315
318
  });