@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,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
  */
@@ -28,21 +28,17 @@ const _sfc_main = create({
28
28
  return () => {
29
29
  var _a;
30
30
  const _isImage = isImage();
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 : ""
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)
43
38
  },
44
- (_a = slots.default) == null ? void 0 : _a.call(slots)
45
- );
39
+ onClick: handleClick,
40
+ src: _isImage ? props.name : ""
41
+ }, (_a = slots.default) == null ? void 0 : _a.call(slots));
46
42
  };
47
43
  }
48
44
  });
@@ -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
  */
@@ -80,12 +99,9 @@ const _sfc_main = create({
80
99
  };
81
100
  return styless;
82
101
  });
83
- watch(
84
- () => props.src,
85
- (val) => {
86
- state.isError = false, state.loading = true;
87
- }
88
- );
102
+ watch(() => props.src, (val) => {
103
+ state.isError = false, state.loading = true;
104
+ });
89
105
  const load = () => {
90
106
  state.loading = false;
91
107
  emit("load");
@@ -98,7 +114,7 @@ const _sfc_main = create({
98
114
  const imageClick = (event) => {
99
115
  emit("click", event);
100
116
  };
101
- return { ...toRefs(state), imageClick, classes, styles, stylebox, error, load };
117
+ return __spreadProps(__spreadValues({}, toRefs(state)), { imageClick, classes, styles, stylebox, error, load });
102
118
  }
103
119
  });
104
120
  const _hoisted_1 = ["src", "alt"];
@@ -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
  */
@@ -235,23 +254,19 @@ const _sfc_main$1 = create$1({
235
254
  };
236
255
  const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
237
256
  watch(() => props.initNo, resetScale);
238
- watch(
239
- () => props.show,
240
- (value) => {
241
- if (!value) {
242
- resetScale();
243
- }
257
+ watch(() => props.show, (value) => {
258
+ if (!value) {
259
+ resetScale();
244
260
  }
245
- );
246
- return {
247
- ...toRefs(state),
261
+ });
262
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
248
263
  onTouchStart,
249
264
  onTouchMove,
250
265
  onTouchEnd,
251
266
  getDistance,
252
267
  imageStyle,
253
268
  imageLoad
254
- };
269
+ });
255
270
  }
256
271
  });
257
272
  const _hoisted_1$1 = ["src"];
@@ -418,26 +433,23 @@ const _sfc_main = create({
418
433
  state.rootWidth = swipeRef.value.offsetWidth;
419
434
  }, 100);
420
435
  };
421
- watch(
422
- () => props.show,
423
- (val) => {
424
- state.showPop = val;
425
- init();
426
- }
427
- );
436
+ watch(() => props.show, (val) => {
437
+ state.showPop = val;
438
+ init();
439
+ });
428
440
  onMounted(() => {
429
441
  state.active = props.initNo;
430
442
  state.showPop = props.show;
431
443
  state.maxNo = props.images.length + props.videos.length;
432
444
  });
433
- return {
434
- swipeRef,
435
- ...toRefs(state),
445
+ return __spreadProps(__spreadValues({
446
+ swipeRef
447
+ }, toRefs(state)), {
436
448
  slideChangeEnd,
437
449
  onClose,
438
450
  handleCloseIcon,
439
451
  styles
440
- };
452
+ });
441
453
  }
442
454
  });
443
455
  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
  */
@@ -187,16 +206,16 @@ const _sfc_main = create({
187
206
  isKeepAlive.value = true;
188
207
  state.scrollEl.removeEventListener("scroll", handleScroll, props.useCapture);
189
208
  });
190
- return {
191
- classes,
192
- ...toRefs(state),
209
+ return __spreadProps(__spreadValues({
210
+ classes
211
+ }, toRefs(state)), {
193
212
  touchStart,
194
213
  touchMove,
195
214
  touchEnd,
196
215
  getStyle,
197
216
  translate,
198
217
  slots
199
- };
218
+ });
200
219
  }
201
220
  });
202
221
  const _hoisted_1 = { class: "top-box" };
@@ -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
  */
@@ -31,7 +31,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
31
31
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
32
32
  return value.replace(regExp, "");
33
33
  }
34
- const { componentName, create, translate } = createComponent("input");
34
+ const { componentName, create } = createComponent("input");
35
35
  const _sfc_main = create({
36
36
  props: {
37
37
  ref: {
@@ -306,13 +306,10 @@ const _sfc_main = create({
306
306
  return;
307
307
  }
308
308
  };
309
- watch(
310
- () => props.modelValue,
311
- () => {
312
- updateValue(getModelValue());
313
- resetValidation();
314
- }
315
- );
309
+ watch(() => props.modelValue, () => {
310
+ updateValue(getModelValue());
311
+ resetValidation();
312
+ });
316
313
  onMounted(() => {
317
314
  updateValue(getModelValue(), props.formatTrigger);
318
315
  });
@@ -330,8 +327,7 @@ const _sfc_main = create({
330
327
  onClickInput,
331
328
  onClickLeftIcon,
332
329
  onClickRightIcon,
333
- onClick,
334
- translate
330
+ onClick
335
331
  };
336
332
  }
337
333
  });
@@ -401,7 +397,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
401
397
  ref: "inputRef",
402
398
  style: normalizeStyle(_ctx.stylesTextarea),
403
399
  maxlength: _ctx.maxLength,
404
- placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
400
+ placeholder: _ctx.placeholder,
405
401
  disabled: _ctx.disabled,
406
402
  readonly: _ctx.readonly,
407
403
  value: _ctx.modelValue,
@@ -418,7 +414,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
418
414
  style: normalizeStyle(_ctx.styles),
419
415
  type: _ctx.inputType(_ctx.type),
420
416
  maxlength: _ctx.maxLength,
421
- placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
417
+ placeholder: _ctx.placeholder,
422
418
  disabled: _ctx.disabled,
423
419
  readonly: _ctx.readonly,
424
420
  value: _ctx.modelValue,
@@ -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
  */
@@ -0,0 +1,156 @@
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));
20
+ /*!
21
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
+ * Released under the MIT License.
24
+ */
25
+ import { ref, reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, withDirectives, vModelText, createCommentVNode } from "vue";
26
+ import { c as createComponent } from "./component.js";
27
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
+ import "../locale/lang";
29
+ const { componentName, create } = createComponent("invoice");
30
+ const _sfc_main = create({
31
+ props: {
32
+ data: {
33
+ type: Array,
34
+ default: () => []
35
+ },
36
+ formValue: {
37
+ type: Object,
38
+ default: {}
39
+ },
40
+ submit: {
41
+ type: Boolean,
42
+ default: true
43
+ }
44
+ },
45
+ emits: ["onSubmit", "scroll-bottom"],
46
+ setup(props, { emit }) {
47
+ const formRef = ref();
48
+ const list = ref([]);
49
+ const state = reactive({});
50
+ const classes = computed(() => {
51
+ const prefixCls = componentName;
52
+ return {
53
+ [prefixCls]: true
54
+ };
55
+ });
56
+ onMounted(() => {
57
+ init();
58
+ });
59
+ const init = () => {
60
+ list.value = props.data;
61
+ };
62
+ const submit = () => {
63
+ formRef.value.validate().then(({ valid, errors }) => {
64
+ emit("onSubmit", valid, errors);
65
+ });
66
+ };
67
+ watch(() => props.data, () => init(), { deep: true });
68
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
69
+ classes,
70
+ formRef,
71
+ list,
72
+ submit
73
+ });
74
+ }
75
+ });
76
+ const _hoisted_1 = ["placeholder", "onUpdate:modelValue"];
77
+ const _hoisted_2 = {
78
+ key: 0,
79
+ class: "nut-invoice__submit"
80
+ };
81
+ const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u63D0\u4EA4\u5BA1\u6279");
82
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
83
+ const _component_nut_radio = resolveComponent("nut-radio");
84
+ const _component_nut_radiogroup = resolveComponent("nut-radiogroup");
85
+ const _component_nut_form_item = resolveComponent("nut-form-item");
86
+ const _component_nut_form = resolveComponent("nut-form");
87
+ const _component_nut_button = resolveComponent("nut-button");
88
+ return openBlock(), createElementBlock("view", {
89
+ class: normalizeClass(_ctx.classes)
90
+ }, [
91
+ createVNode(_component_nut_form, {
92
+ "model-value": _ctx.formValue,
93
+ ref: "formRef"
94
+ }, {
95
+ default: withCtx(() => [
96
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index2) => {
97
+ return openBlock(), createBlock(_component_nut_form_item, {
98
+ key: index2,
99
+ label: item.label,
100
+ required: item.required,
101
+ rules: item.rules,
102
+ prop: item.formItemProp
103
+ }, {
104
+ default: withCtx(() => [
105
+ item.type === "radio" ? (openBlock(), createBlock(_component_nut_radiogroup, {
106
+ key: 0,
107
+ modelValue: _ctx.formValue[item.formItemProp],
108
+ "onUpdate:modelValue": ($event) => _ctx.formValue[item.formItemProp] = $event
109
+ }, {
110
+ default: withCtx(() => [
111
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.radioLabel, (radioItem, radioIndex) => {
112
+ return openBlock(), createBlock(_component_nut_radio, {
113
+ key: radioIndex,
114
+ shape: "button",
115
+ label: radioItem.label
116
+ }, {
117
+ default: withCtx(() => [
118
+ createTextVNode(toDisplayString(radioItem.label), 1)
119
+ ]),
120
+ _: 2
121
+ }, 1032, ["label"]);
122
+ }), 128))
123
+ ]),
124
+ _: 2
125
+ }, 1032, ["modelValue", "onUpdate:modelValue"])) : withDirectives((openBlock(), createElementBlock("input", {
126
+ key: 1,
127
+ class: "nut-input-text",
128
+ placeholder: item.placeholder,
129
+ "onUpdate:modelValue": ($event) => _ctx.formValue[item.formItemProp] = $event,
130
+ type: "text"
131
+ }, null, 8, _hoisted_1)), [
132
+ [vModelText, _ctx.formValue[item.formItemProp]]
133
+ ])
134
+ ]),
135
+ _: 2
136
+ }, 1032, ["label", "required", "rules", "prop"]);
137
+ }), 128))
138
+ ]),
139
+ _: 1
140
+ }, 8, ["model-value"]),
141
+ _ctx.submit ? (openBlock(), createElementBlock("div", _hoisted_2, [
142
+ createVNode(_component_nut_button, {
143
+ type: "primary",
144
+ block: "",
145
+ onClick: _ctx.submit
146
+ }, {
147
+ default: withCtx(() => [
148
+ _hoisted_3
149
+ ]),
150
+ _: 1
151
+ }, 8, ["onClick"])
152
+ ])) : createCommentVNode("", true)
153
+ ], 2);
154
+ }
155
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
156
+ export { index as default };
@@ -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
  */
@@ -64,21 +83,17 @@ const _sfc_main = create({
64
83
  }
65
84
  state.startOffset = scrollTop - scrollTop % props.height;
66
85
  };
67
- watch(
68
- () => props.listData,
69
- () => {
70
- state.list = props.listData.slice();
71
- }
72
- );
73
- return {
74
- ...toRefs(state),
86
+ watch(() => props.listData, () => {
87
+ state.list = props.listData.slice();
88
+ });
89
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
75
90
  list,
76
91
  getTransform,
77
92
  listHeight,
78
93
  visibleData,
79
94
  classes,
80
95
  handleScrollEvent
81
- };
96
+ });
82
97
  }
83
98
  });
84
99
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1,9 +1,9 @@
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
  */
6
- import { ref, computed, onMounted, onUnmounted, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, mergeProps, renderSlot, provide } from "vue";
6
+ import { ref, computed, onMounted, onUnmounted, reactive, provide, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, mergeProps, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { u as useRect } from "./index2.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -56,17 +56,11 @@ const _sfc_main = create({
56
56
  publicChildren.push(child.proxy);
57
57
  }
58
58
  };
59
- provide(
60
- "menuParent",
61
- Object.assign(
62
- {
63
- link,
64
- children: publicChildren,
65
- internalChildren
66
- },
67
- value
68
- )
69
- );
59
+ provide("menuParent", Object.assign({
60
+ link,
61
+ children: publicChildren,
62
+ internalChildren
63
+ }, value));
70
64
  };
71
65
  return {
72
66
  children: publicChildren,
@@ -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
  */
@@ -70,7 +89,7 @@ const _sfc_main = create({
70
89
  if (parent.props.direction === "down") {
71
90
  return heightStyle;
72
91
  } else {
73
- return { ...heightStyle, top: "auto" };
92
+ return __spreadProps(__spreadValues({}, heightStyle), { top: "auto" });
74
93
  }
75
94
  });
76
95
  const toggle = (show = !state.showPopup, options = {}) => {
@@ -119,7 +138,7 @@ const _sfc_main = create({
119
138
  };
120
139
  }
121
140
  });
122
- const _hoisted_1 = { class: "nut-menu-item__content" };
141
+ const _hoisted_1 = { class: "nut-menu-item__content nut-menu-item__overflow" };
123
142
  const _hoisted_2 = ["onClick"];
124
143
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
125
144
  const _component_nut_icon = resolveComponent("nut-icon");
@@ -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
  */
@@ -10,7 +10,7 @@ import "../locale/lang";
10
10
  const { componentName, create } = createComponent("navbar");
11
11
  const _sfc_main = create({
12
12
  props: {
13
- leftShow: { type: Boolean, default: true },
13
+ leftShow: { type: Boolean, default: false },
14
14
  title: { type: String, default: "" },
15
15
  titIcon: { type: String, default: "" },
16
16
  leftText: { type: String, default: "" },