@nutui/nutui 3.1.23-beta.5 → 3.1.23-beta.6

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 (166) hide show
  1. package/dist/nutui.es.js +259 -247
  2. package/dist/nutui.umd.js +259 -247
  3. package/dist/packages/_es/ActionSheet.js +22 -4
  4. package/dist/packages/_es/Address.js +26 -8
  5. package/dist/packages/_es/AddressList.js +2 -2
  6. package/dist/packages/_es/Animate.js +21 -2
  7. package/dist/packages/_es/Audio.js +22 -5
  8. package/dist/packages/_es/AudioOperate.js +21 -2
  9. package/dist/packages/_es/Avatar.js +20 -5
  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 +1 -1
  14. package/dist/packages/_es/Button.js +1 -1
  15. package/dist/packages/_es/Calendar.js +1 -1
  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 +46 -19
  19. package/dist/packages/_es/Category.js +1 -1
  20. package/dist/packages/_es/CategoryPane.js +2 -2
  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 +1 -1
  24. package/dist/packages/_es/CheckboxGroup.js +1 -1
  25. package/dist/packages/_es/CircleProgress.js +1 -1
  26. package/dist/packages/_es/Col.js +1 -1
  27. package/dist/packages/_es/Collapse.js +10 -9
  28. package/dist/packages/_es/CollapseItem.js +24 -7
  29. package/dist/packages/_es/Comment.js +1 -1
  30. package/dist/packages/_es/ConfigProvider.js +1 -1
  31. package/dist/packages/_es/CountDown.js +23 -5
  32. package/dist/packages/_es/CountUp.js +22 -5
  33. package/dist/packages/_es/DatePicker.js +24 -7
  34. package/dist/packages/_es/Dialog.js +22 -4
  35. package/dist/packages/_es/Divider.js +24 -7
  36. package/dist/packages/_es/Drag.js +1 -1
  37. package/dist/packages/_es/Ecard.js +1 -1
  38. package/dist/packages/_es/Elevator.js +24 -5
  39. package/dist/packages/_es/Ellipsis.js +21 -2
  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 +1 -1
  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 +1 -1
  47. package/dist/packages/_es/Image.js +21 -2
  48. package/dist/packages/_es/ImagePreview.js +26 -8
  49. package/dist/packages/_es/Indicator.js +1 -1
  50. package/dist/packages/_es/InfiniteLoading.js +24 -5
  51. package/dist/packages/_es/Input.js +31 -4
  52. package/dist/packages/_es/InputNumber.js +1 -1
  53. package/dist/packages/_es/Layout.js +1 -1
  54. package/dist/packages/_es/List.js +22 -4
  55. package/dist/packages/_es/Menu.js +1 -1
  56. package/dist/packages/_es/MenuItem.js +28 -5
  57. package/dist/packages/_es/Navbar.js +1 -1
  58. package/dist/packages/_es/NoticeBar.js +23 -6
  59. package/dist/packages/_es/Notify.js +32 -19
  60. package/dist/packages/_es/NumberKeyboard.js +1 -1
  61. package/dist/packages/_es/OldPicker.js +28 -12
  62. package/dist/packages/_es/OverLay.js +20 -5
  63. package/dist/packages/_es/Pagination.js +1 -1
  64. package/dist/packages/_es/Picker.js +28 -12
  65. package/dist/packages/_es/Popover.js +22 -4
  66. package/dist/packages/_es/Popup.js +28 -14
  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 +20 -5
  70. package/dist/packages/_es/Radio.js +1 -1
  71. package/dist/packages/_es/RadioGroup.js +1 -1
  72. package/dist/packages/_es/Range.js +24 -5
  73. package/dist/packages/_es/Rate.js +24 -5
  74. package/dist/packages/_es/Row.js +1 -1
  75. package/dist/packages/_es/SearchBar.js +24 -5
  76. package/dist/packages/_es/ShortPassword.js +1 -1
  77. package/dist/packages/_es/SideNavBar.js +22 -4
  78. package/dist/packages/_es/SideNavBarItem.js +1 -1
  79. package/dist/packages/_es/Signature.js +28 -7
  80. package/dist/packages/_es/Skeleton.js +1 -1
  81. package/dist/packages/_es/Sku.js +22 -4
  82. package/dist/packages/_es/Step.js +22 -4
  83. package/dist/packages/_es/Steps.js +1 -1
  84. package/dist/packages/_es/Sticky.js +1 -1
  85. package/dist/packages/_es/SubSideNavBar.js +22 -4
  86. package/dist/packages/_es/Swipe.js +24 -5
  87. package/dist/packages/_es/Swiper.js +1 -1
  88. package/dist/packages/_es/SwiperItem.js +1 -1
  89. package/dist/packages/_es/Switch.js +1 -1
  90. package/dist/packages/_es/TabPane.js +1 -1
  91. package/dist/packages/_es/Tabbar.js +1 -1
  92. package/dist/packages/_es/TabbarItem.js +1 -1
  93. package/dist/packages/_es/Table.js +22 -4
  94. package/dist/packages/_es/Tabs.js +20 -5
  95. package/dist/packages/_es/Tag.js +1 -1
  96. package/dist/packages/_es/TextArea.js +1 -1
  97. package/dist/packages/_es/TimeDetail.js +24 -5
  98. package/dist/packages/_es/TimePannel.js +22 -4
  99. package/dist/packages/_es/TimeSelect.js +1 -1
  100. package/dist/packages/_es/Toast.js +31 -12
  101. package/dist/packages/_es/Uploader.js +20 -5
  102. package/dist/packages/_es/Video.js +24 -6
  103. package/dist/packages/_es/WaterMark.js +21 -2
  104. package/dist/packages/_es/common.js +1 -1
  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 +24 -6
  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/index.d.ts +3 -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/notify/index.scss +5 -0
  122. package/dist/packages/textarea/index.scss +6 -0
  123. package/dist/smartips/web-types.json +1 -1
  124. package/dist/style.css +1 -1
  125. package/dist/style.es.js +1 -1
  126. package/dist/styles/themes/default.scss +43 -43
  127. package/dist/styles/themes/jdb.scss +43 -43
  128. package/dist/styles/themes/jdt.scss +43 -43
  129. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  130. package/dist/types/__VUE/address/index.vue.d.ts +4 -4
  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 +1 -1
  137. package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
  138. package/dist/types/__VUE/cell/index.vue.d.ts +6 -6
  139. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  140. package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
  141. package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
  142. package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
  143. package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
  144. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  145. package/dist/types/__VUE/grid/index.vue.d.ts +5 -5
  146. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  147. package/dist/types/__VUE/input/index.vue.d.ts +3 -2
  148. package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
  149. package/dist/types/__VUE/menuitem/index.vue.d.ts +6 -0
  150. package/dist/types/__VUE/notify/index.vue.d.ts +5 -5
  151. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
  152. package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
  153. package/dist/types/__VUE/picker/index.vue.d.ts +3 -3
  154. package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
  155. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  156. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  157. package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
  158. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  159. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  160. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  161. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
  162. package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
  163. package/dist/types/__VUE/uploader/index.vue.d.ts +4 -4
  164. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  165. package/dist/types/index.d.ts +1 -1
  166. 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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -13,8 +32,7 @@ import "./Icon.js";
13
32
  import "./pxCheck.js";
14
33
  const { componentName, create } = createComponent("actionsheet");
15
34
  const _sfc_main = create({
16
- props: {
17
- ...popupProps,
35
+ props: __spreadProps(__spreadValues({}, popupProps), {
18
36
  cancelTxt: {
19
37
  type: String,
20
38
  default: ""
@@ -55,7 +73,7 @@ const _sfc_main = create({
55
73
  type: Boolean,
56
74
  default: true
57
75
  }
58
- },
76
+ }),
59
77
  emits: ["cancel", "close", "choose", "update:visible"],
60
78
  setup(props, { emit }) {
61
79
  const slotDefault = !!useSlots().default;
@@ -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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -14,8 +33,7 @@ import "./pxCheck.js";
14
33
  const { componentName, create, translate } = createComponent("address");
15
34
  const _sfc_main = create({
16
35
  inheritAttrs: false,
17
- props: {
18
- ...popupProps,
36
+ props: __spreadProps(__spreadValues({}, popupProps), {
19
37
  modelValue: {
20
38
  type: Array,
21
39
  default: () => []
@@ -84,7 +102,7 @@ const _sfc_main = create({
84
102
  type: [String, Array],
85
103
  default: ""
86
104
  }
87
- },
105
+ }),
88
106
  emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
89
107
  setup(props, { emit }) {
90
108
  const regionLine = ref(null);
@@ -335,7 +353,7 @@ const _sfc_main = create({
335
353
  }
336
354
  });
337
355
  });
338
- return {
356
+ return __spreadProps(__spreadValues({
339
357
  showPopup,
340
358
  privateType,
341
359
  tabIndex,
@@ -356,10 +374,10 @@ const _sfc_main = create({
356
374
  clickOverlay,
357
375
  handClose,
358
376
  handleElevatorItem,
359
- initCustomSelected,
360
- ...toRefs(props),
377
+ initCustomSelected
378
+ }, toRefs(props)), {
361
379
  translate
362
- };
380
+ });
363
381
  }
364
382
  });
365
383
  const _hoisted_1 = { class: "nut-address" };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -7,7 +7,7 @@ import { resolveComponent, openBlock, createElementBlock, createElementVNode, re
7
7
  import { c as createComponent, f as floatData } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
10
- var ItemContents_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => "/* @import './index.scss'; */")();
10
+ var ItemContents_vue_vue_type_style_index_0_lang = "";
11
11
  const { componentName: componentName$4, create: create$4 } = createComponent("item-contents");
12
12
  const { translate: translate$1 } = createComponent("addresslist");
13
13
  const _sfc_main$4 = create$4({
@@ -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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -46,7 +65,7 @@ const _sfc_main = create({
46
65
  }
47
66
  emit("click", event);
48
67
  };
49
- return { ...toRefs(state), classes, handleClick };
68
+ return __spreadProps(__spreadValues({}, toRefs(state)), { classes, handleClick });
50
69
  }
51
70
  });
52
71
  const _hoisted_1 = { class: "nut-animate" };
@@ -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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -171,9 +190,7 @@ const _sfc_main = create({
171
190
  fastBack,
172
191
  changeStatus
173
192
  });
174
- return {
175
- ...toRefs(props),
176
- ...toRefs(audioData),
193
+ return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(audioData)), {
177
194
  audioRef,
178
195
  fastBack,
179
196
  forward,
@@ -182,7 +199,7 @@ const _sfc_main = create({
182
199
  audioEnd,
183
200
  onTimeupdate,
184
201
  handleMute
185
- };
202
+ });
186
203
  }
187
204
  });
188
205
  const _hoisted_1 = { class: "nut-audio" };
@@ -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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -23,7 +42,7 @@ const _sfc_main = create({
23
42
  const audio = inject("audioParent");
24
43
  const parent = reactive(audio);
25
44
  const customSlot = ref(useSlots().default);
26
- return { ...toRefs(props), ...toRefs(parent), customSlot, translate };
45
+ return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(parent)), { customSlot, translate });
27
46
  }
28
47
  });
29
48
  const _hoisted_1 = { class: "nut-audio-operate" };
@@ -1,5 +1,21 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
1
17
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
19
  * (c) 2022 @jdf2e.
4
20
  * Released under the MIT License.
5
21
  */
@@ -112,7 +128,7 @@ const _sfc_main = create({
112
128
  const onError = (event) => {
113
129
  emit("onError", event);
114
130
  };
115
- return {
131
+ return __spreadValues({
116
132
  classes,
117
133
  styles,
118
134
  iconStyles,
@@ -122,9 +138,8 @@ const _sfc_main = create({
122
138
  onError,
123
139
  avatarGroup,
124
140
  visible,
125
- avatarRef,
126
- ...toRefs(state)
127
- };
141
+ avatarRef
142
+ }, toRefs(state));
128
143
  }
129
144
  });
130
145
  const _hoisted_1 = ["src", "alt"];
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,37 @@
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
+ var __restKey = (key) => typeof key === "symbol" ? key : key + "";
21
+ var __objRest = (source, exclude) => {
22
+ var target = {};
23
+ for (var prop in source)
24
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
+ target[prop] = source[prop];
26
+ if (source != null && __getOwnPropSymbols)
27
+ for (var prop of __getOwnPropSymbols(source)) {
28
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
+ target[prop] = source[prop];
30
+ }
31
+ return target;
32
+ };
1
33
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
34
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
35
  * (c) 2022 @jdf2e.
4
36
  * Released under the MIT License.
5
37
  */
@@ -13,16 +45,16 @@ import "./Icon.js";
13
45
  import "./pxCheck.js";
14
46
  const formatTree = (tree, parent, config) => tree.map((node) => {
15
47
  const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
16
- const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
17
- const newNode = {
18
- loading: false,
19
- ...others,
48
+ const _a = node, { [valueKey]: value, [textKey]: text, [childrenKey]: children } = _a, others = __objRest(_a, [__restKey(valueKey), __restKey(textKey), __restKey(childrenKey)]);
49
+ const newNode = __spreadProps(__spreadValues({
50
+ loading: false
51
+ }, others), {
20
52
  level: parent ? (parent && parent.level || 0) + 1 : 0,
21
53
  value,
22
54
  text,
23
55
  children,
24
56
  _parent: parent
25
- };
57
+ });
26
58
  if (newNode.children && newNode.children.length) {
27
59
  newNode.children = formatTree(newNode.children, newNode, config);
28
60
  }
@@ -47,15 +79,12 @@ const defaultConvertConfig = {
47
79
  sortKey: ""
48
80
  };
49
81
  const convertListToOptions = (list, options) => {
50
- const mergedOptions = {
51
- ...defaultConvertConfig,
52
- ...options || {}
53
- };
82
+ const mergedOptions = __spreadValues(__spreadValues({}, defaultConvertConfig), options || {});
54
83
  const { topId, idKey, pidKey, sortKey } = mergedOptions;
55
84
  let result = [];
56
85
  let map = {};
57
86
  list.forEach((node) => {
58
- node = { ...node };
87
+ node = __spreadValues({}, node);
59
88
  const { [idKey]: id, [pidKey]: pid } = node;
60
89
  const children = map[pid] = map[pid] || [];
61
90
  if (!result.length && pid === topId) {
@@ -76,12 +105,11 @@ const convertListToOptions = (list, options) => {
76
105
  };
77
106
  class Tree {
78
107
  constructor(nodes, config) {
79
- this.config = {
108
+ this.config = __spreadValues({
80
109
  value: "value",
81
110
  text: "text",
82
- children: "children",
83
- ...config || {}
84
- };
111
+ children: "children"
112
+ }, config || {});
85
113
  this.nodes = formatTree(nodes, null, this.config);
86
114
  }
87
115
  updateChildren(nodes, parent) {
@@ -346,7 +374,7 @@ const _sfc_main$1 = create$1({
346
374
  syncValue();
347
375
  }
348
376
  });
349
- return { panes, initLoading, tabsCursor, ...methods };
377
+ return __spreadValues({ panes, initLoading, tabsCursor }, methods);
350
378
  }
351
379
  });
352
380
  const _hoisted_1$1 = {
@@ -419,8 +447,7 @@ const _sfc_main = create({
419
447
  components: {
420
448
  [CascaderItem.name]: CascaderItem
421
449
  },
422
- props: {
423
- ...popupProps,
450
+ props: __spreadProps(__spreadValues({}, popupProps), {
424
451
  modelValue: Array,
425
452
  visible: Boolean,
426
453
  title: String,
@@ -443,7 +470,7 @@ const _sfc_main = create({
443
470
  default: "children"
444
471
  },
445
472
  convertConfig: Object
446
- },
473
+ }),
447
474
  emits: ["update:modelValue", "change", "pathChange", "update:visible"],
448
475
  setup(props, { emit }) {
449
476
  const innerValue = ref(props.modelValue);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -7,7 +7,7 @@ import { c as createComponent } from "./component.js";
7
7
  import { openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createCommentVNode } from "vue";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
10
- var index_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".nut-categorypane__cateList {\n display: flex;\n background: rgb(255, 255, 255);\n}\n.nut-categorypane__cateListLeft {\n background: rgb(246, 247, 249);\n}\n.nut-categorypane__cateListItemChecked, .nut-categorypane__cateListItem {\n width: 100px;\n height: 50px;\n font-size: 13px;\n font-family: PingFangSC;\n font-weight: normal;\n color: rgb(51, 51, 51);\n display: flex;\n justify-content: center;\n align-items: center;\n transition: all 0.3s;\n}\n.nut-categorypane__cateListItemChecked {\n background: rgb(255, 255, 255);\n font-weight: 500;\n transition: all 0.3s;\n}\n.nut-categorypane__cateListRight {\n padding-left: 15px;\n background: rgb(255, 255, 255);\n}\n.nut-categorypane__childTitle {\n margin-top: 15px;\n margin-bottom: 15px;\n font-size: 13px;\n font-family: PingFangSC;\n font-weight: 500;\n color: rgb(51, 51, 51);\n}\n.nut-categorypane__childItemList {\n display: flex;\n flex-wrap: wrap;\n}\n.nut-categorypane__childItem {\n margin-right: 10px;\n}\n.nut-categorypane__childImg {\n width: 75px;\n height: 75px;\n border-radius: 5px;\n}\n.nut-categorypane__skuName {\n margin-right: 10px;\n width: 75px;\n height: 40px;\n border: 1px solid rgb(153, 153, 153);\n border-radius: 5px;\n font-size: 12px;\n font-family: PingFangSC;\n font-weight: normal;\n color: rgb(102, 102, 102);\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.nut-categorypane__skuName:nth-child(3n) {\n margin-right: 0;\n}\n.nut-categorypane__skuName:nth-child(n+4) {\n margin-top: 15px;\n}\n.nut-categorypane__skuImg {\n font-size: 12px;\n font-family: PingFangSC;\n font-weight: normal;\n color: rgb(102, 102, 102);\n margin-top: 10px;\n margin-bottom: 10px;\n text-align: center;\n}\n.nut-categorypane__selfItemList {\n display: flex;\n flex-wrap: wrap;\n}\n.nut-categorypane__selfskuName {\n margin-left: 15px;\n margin-top: 15px;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 75px;\n height: 40px;\n border: 1px solid rgb(153, 153, 153);\n border-radius: 5px;\n font-size: 12px;\n font-family: PingFangSC;\n font-weight: normal;\n color: rgb(102, 102, 102);\n}\n.nut-categorypane__skuName {\n margin-left: 15px;\n margin-top: 15px;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 75px;\n height: 40px;\n border: 1px solid rgb(153, 153, 153);\n border-radius: 5px;\n font-size: 12px;\n font-family: PingFangSC;\n font-weight: normal;\n color: rgb(102, 102, 102);\n}")();
10
+ var index_vue_vue_type_style_index_0_lang = "";
11
11
  const { componentName, create } = createComponent("categorypane");
12
12
  const _sfc_main = create({
13
13
  props: {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06: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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, watch, provide, openBlock, createElementBlock, renderSlot } from "vue";
6
+ import { ref, watch, onMounted, getCurrentInstance, provide, openBlock, createElementBlock, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
@@ -52,20 +52,18 @@ const _sfc_main = create({
52
52
  emits: ["update:active", "change"],
53
53
  setup(props, { emit, slots }) {
54
54
  const collapseDom = ref(null);
55
+ const collapseChldren = ref([]);
55
56
  watch(() => props.active, (newval, oldval) => {
56
- var _a, _b;
57
- let domsProps = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots);
58
- let doms = (_b = collapseDom.value) == null ? void 0 : _b.children;
59
- Array.from(doms).forEach((dom, index2) => {
60
- const item = dom["__vueParentComponent"]["ctx"];
57
+ let doms = collapseChldren.value;
58
+ Array.from(doms).forEach((item) => {
61
59
  if (typeof newval == "number" || typeof newval == "string") {
62
- if (newval == domsProps[index2].props.name) {
60
+ if (newval == item.name) {
63
61
  item.changeOpen(!item.openExpanded);
64
62
  } else {
65
63
  item.changeOpen(false);
66
64
  }
67
65
  } else if (Object.values(newval) instanceof Array) {
68
- if (newval.indexOf(Number(domsProps[index2].props.name)) > -1 || newval.indexOf(String(domsProps[index2].props.name)) > -1) {
66
+ if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
69
67
  item.changeOpen(true);
70
68
  } else {
71
69
  item.changeOpen(false);
@@ -74,6 +72,9 @@ const _sfc_main = create({
74
72
  item.animation();
75
73
  });
76
74
  });
75
+ onMounted(() => {
76
+ collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
77
+ });
77
78
  const changeVal = (val) => {
78
79
  emit("update:active", val);
79
80
  emit("change", val);
@@ -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.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -166,19 +185,17 @@ const _sfc_main = create({
166
185
  }
167
186
  return _class;
168
187
  });
169
- return {
188
+ return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
170
189
  classes,
171
- emptyContent,
172
- ...toRefs(proxyData),
173
- ...toRefs(parent.props),
174
- ...toRefs(titleIconStyle),
190
+ emptyContent
191
+ }, toRefs(proxyData)), toRefs(parent.props)), toRefs(titleIconStyle)), {
175
192
  wrapperRef,
176
193
  contentRef,
177
194
  open,
178
195
  toggleOpen,
179
196
  changeOpen,
180
197
  animation
181
- };
198
+ });
182
199
  }
183
200
  });
184
201
  const _hoisted_1 = { class: "collapse-title" };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */