@nutui/nutui 3.1.23-beta.5 → 3.2.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 (226) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/dist/nutui.es.js +382 -355
  3. package/dist/nutui.umd.js +375 -348
  4. package/dist/packages/_es/ActionSheet.js +1 -1
  5. package/dist/packages/_es/Address.js +17 -15
  6. package/dist/packages/_es/AddressList.js +3 -5
  7. package/dist/packages/_es/Animate.js +1 -1
  8. package/dist/packages/_es/Audio.js +29 -44
  9. package/dist/packages/_es/AudioOperate.js +2 -4
  10. package/dist/packages/_es/Avatar.js +4 -5
  11. package/dist/packages/_es/AvatarGroup.js +1 -1
  12. package/dist/packages/_es/BackTop.js +1 -1
  13. package/dist/packages/_es/Badge.js +1 -1
  14. package/dist/packages/_es/Barrage.js +1 -1
  15. package/dist/packages/_es/Button.js +6 -5
  16. package/dist/packages/_es/Calendar.js +1 -1
  17. package/dist/packages/_es/CalendarItem.js +1 -1
  18. package/dist/packages/_es/Card.js +1 -1
  19. package/dist/packages/_es/Cascader.js +1 -1
  20. package/dist/packages/_es/Category.js +2 -2
  21. package/dist/packages/_es/CategoryPane.js +10 -10
  22. package/dist/packages/_es/Cell.js +8 -9
  23. package/dist/packages/_es/CellGroup.js +1 -1
  24. package/dist/packages/_es/Checkbox.js +1 -1
  25. package/dist/packages/_es/CheckboxGroup.js +1 -1
  26. package/dist/packages/_es/CircleProgress.js +1 -1
  27. package/dist/packages/_es/Col.js +1 -1
  28. package/dist/packages/_es/Collapse.js +11 -10
  29. package/dist/packages/_es/CollapseItem.js +13 -11
  30. package/dist/packages/_es/Comment.js +1 -1
  31. package/dist/packages/_es/ConfigProvider.js +1 -1
  32. package/dist/packages/_es/CountDown.js +1 -1
  33. package/dist/packages/_es/CountUp.js +1 -1
  34. package/dist/packages/_es/DatePicker.js +1 -1
  35. package/dist/packages/_es/Dialog.js +1 -1
  36. package/dist/packages/_es/Divider.js +1 -1
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +1 -1
  39. package/dist/packages/_es/Elevator.js +1 -1
  40. package/dist/packages/_es/Ellipsis.js +1 -1
  41. package/dist/packages/_es/Empty.js +1 -1
  42. package/dist/packages/_es/FixedNav.js +18 -14
  43. package/dist/packages/_es/Form.js +1 -1
  44. package/dist/packages/_es/FormItem.js +1 -1
  45. package/dist/packages/_es/Grid.js +1 -1
  46. package/dist/packages/_es/GridItem.js +6 -5
  47. package/dist/packages/_es/Icon.js +1 -1
  48. package/dist/packages/_es/Image.js +1 -1
  49. package/dist/packages/_es/ImagePreview.js +3 -6
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +4 -10
  52. package/dist/packages/_es/Input.js +97 -67
  53. package/dist/packages/_es/InputNumber.js +1 -1
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +1 -1
  56. package/dist/packages/_es/Menu.js +6 -5
  57. package/dist/packages/_es/MenuItem.js +9 -7
  58. package/dist/packages/_es/Navbar.js +10 -8
  59. package/dist/packages/_es/NoticeBar.js +4 -4
  60. package/dist/packages/_es/Notify.js +5 -11
  61. package/dist/packages/_es/NumberKeyboard.js +10 -12
  62. package/dist/packages/_es/OldPicker.js +1 -1
  63. package/dist/packages/_es/OverLay.js +1 -1
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +7 -1
  66. package/dist/packages/_es/Popover.js +4 -7
  67. package/dist/packages/_es/Popup.js +4 -4
  68. package/dist/packages/_es/Price.js +1 -1
  69. package/dist/packages/_es/Progress.js +4 -5
  70. package/dist/packages/_es/PullRefresh.js +1 -1
  71. package/dist/packages/_es/Radio.js +1 -1
  72. package/dist/packages/_es/RadioGroup.js +1 -1
  73. package/dist/packages/_es/Range.js +1 -1
  74. package/dist/packages/_es/Rate.js +1 -1
  75. package/dist/packages/_es/Row.js +1 -1
  76. package/dist/packages/_es/SearchBar.js +1 -1
  77. package/dist/packages/_es/ShortPassword.js +1 -1
  78. package/dist/packages/_es/SideNavBar.js +1 -1
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +21 -8
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +1 -1
  83. package/dist/packages/_es/Step.js +6 -5
  84. package/dist/packages/_es/Steps.js +1 -1
  85. package/dist/packages/_es/Sticky.js +1 -1
  86. package/dist/packages/_es/SubSideNavBar.js +1 -1
  87. package/dist/packages/_es/Swipe.js +1 -1
  88. package/dist/packages/_es/Swiper.js +1 -1
  89. package/dist/packages/_es/SwiperItem.js +1 -1
  90. package/dist/packages/_es/Switch.js +6 -5
  91. package/dist/packages/_es/TabPane.js +1 -1
  92. package/dist/packages/_es/Tabbar.js +1 -1
  93. package/dist/packages/_es/TabbarItem.js +1 -1
  94. package/dist/packages/_es/Table.js +1 -1
  95. package/dist/packages/_es/Tabs.js +1 -1
  96. package/dist/packages/_es/Tag.js +11 -15
  97. package/dist/packages/_es/TextArea.js +1 -1
  98. package/dist/packages/_es/TimeDetail.js +1 -1
  99. package/dist/packages/_es/TimePannel.js +1 -1
  100. package/dist/packages/_es/TimeSelect.js +1 -1
  101. package/dist/packages/_es/Toast.js +4 -5
  102. package/dist/packages/_es/Uploader.js +41 -32
  103. package/dist/packages/_es/Video.js +1 -1
  104. package/dist/packages/_es/WaterMark.js +1 -4
  105. package/dist/packages/_es/common.js +2 -2
  106. package/dist/packages/_es/component.js +5 -5
  107. package/dist/packages/_es/index.js +1 -1
  108. package/dist/packages/_es/index2.js +1 -1
  109. package/dist/packages/_es/index3.js +1 -1
  110. package/dist/packages/_es/index4.js +1 -1
  111. package/dist/packages/_es/index5.js +1 -1
  112. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  113. package/dist/packages/_es/pxCheck.js +1 -1
  114. package/dist/packages/_es/raf.js +1 -1
  115. package/dist/packages/_es/style.css +1 -111
  116. package/dist/packages/actionsheet/index.scss +17 -0
  117. package/dist/packages/address/index.scss +60 -0
  118. package/dist/packages/addresslist/index.scss +57 -17
  119. package/dist/packages/audio/index.scss +8 -0
  120. package/dist/packages/barrage/index.scss +7 -0
  121. package/dist/packages/card/index.scss +8 -1
  122. package/dist/packages/category/index.scss +25 -4
  123. package/dist/packages/categorypane/index.scss +18 -65
  124. package/dist/packages/circleprogress/index.scss +6 -0
  125. package/dist/packages/collapseitem/index.scss +21 -0
  126. package/dist/packages/comment/index.scss +37 -0
  127. package/dist/packages/countup/index.scss +24 -3
  128. package/dist/packages/ecard/index.scss +31 -1
  129. package/dist/packages/elevator/index.scss +16 -0
  130. package/dist/packages/empty/index.scss +6 -0
  131. package/dist/packages/fixednav/index.scss +7 -0
  132. package/dist/packages/image/index.scss +12 -0
  133. package/dist/packages/infiniteloading/index.scss +18 -0
  134. package/dist/packages/locale/lang/baseLang.js +1 -1
  135. package/dist/packages/locale/lang/en-US.js +1 -1
  136. package/dist/packages/locale/lang/id-ID.js +1 -1
  137. package/dist/packages/locale/lang/index.js +1 -1
  138. package/dist/packages/locale/lang/zh-CN.js +1 -1
  139. package/dist/packages/locale/lang/zh-TW.js +1 -1
  140. package/dist/packages/menu/index.scss +14 -2
  141. package/dist/packages/menuitem/index.scss +8 -0
  142. package/dist/packages/noticebar/index.scss +13 -0
  143. package/dist/packages/notify/index.scss +5 -0
  144. package/dist/packages/numberkeyboard/index.scss +10 -0
  145. package/dist/packages/picker/index.scss +33 -0
  146. package/dist/packages/popup/index.scss +10 -0
  147. package/dist/packages/shortpassword/index.scss +20 -0
  148. package/dist/packages/sidenavbaritem/index.scss +9 -0
  149. package/dist/packages/sku/index.scss +40 -0
  150. package/dist/packages/step/index.scss +52 -0
  151. package/dist/packages/subsidenavbar/index.scss +12 -0
  152. package/dist/packages/swiper/index.scss +2 -0
  153. package/dist/packages/swiperitem/index.scss +3 -0
  154. package/dist/packages/tag/index.scss +20 -0
  155. package/dist/packages/textarea/index.scss +6 -0
  156. package/dist/packages/watermark/index.scss +1 -1
  157. package/dist/smartips/attributes.json +17 -1
  158. package/dist/smartips/tags.json +8 -3
  159. package/dist/smartips/web-types.json +40 -3
  160. package/dist/style.css +1 -1
  161. package/dist/style.es.js +1 -1
  162. package/dist/styles/themes/default.scss +50 -50
  163. package/dist/styles/themes/jdb.scss +50 -50
  164. package/dist/styles/themes/jdt.scss +50 -50
  165. package/dist/styles/variables-jdb.scss +28 -7
  166. package/dist/styles/variables-jdt.scss +28 -7
  167. package/dist/styles/variables.scss +27 -7
  168. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
  169. package/dist/types/__VUE/address/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
  171. package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
  172. package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
  173. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  175. package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
  176. package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
  177. package/dist/types/__VUE/cell/index.vue.d.ts +7 -0
  178. package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
  179. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
  180. package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
  181. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  182. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  183. package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
  184. package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
  185. package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
  186. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  187. package/dist/types/__VUE/fixednav/common.d.ts +56 -0
  188. package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
  189. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
  190. package/dist/types/__VUE/grid/index.vue.d.ts +2 -2
  191. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  192. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
  193. package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
  194. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
  195. package/dist/types/__VUE/input/index.vue.d.ts +5 -9
  196. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  197. package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
  198. package/dist/types/__VUE/menuitem/index.vue.d.ts +7 -4
  199. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
  200. package/dist/types/__VUE/notify/index.vue.d.ts +5 -5
  201. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -3
  202. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
  203. package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
  204. package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
  205. package/dist/types/__VUE/picker/index.vue.d.ts +13 -13
  206. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
  207. package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
  208. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  209. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  210. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
  211. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
  212. package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
  213. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
  214. package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
  215. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  216. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  217. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
  218. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  219. package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
  220. package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
  221. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  222. package/dist/types/__VUE/uploader/index.vue.d.ts +9 -2
  223. package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
  224. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  225. package/dist/types/index.d.ts +1 -1
  226. package/package.json +1 -1
@@ -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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, computed, reactive, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode } from "vue";
6
+ import { ref, computed, reactive, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, mergeProps, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { popupProps } from "./Popup.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -425,10 +425,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
425
425
  class: "arrow-back",
426
426
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
427
427
  }, [
428
- withDirectives(createVNode(_component_nut_icon, {
428
+ withDirectives(createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
429
429
  name: _ctx.backBtnIcon,
430
430
  color: "#cccccc"
431
- }, null, 8, ["name"]), [
431
+ }), null, 16, ["name"]), [
432
432
  [vShow, _ctx.type == "exist" && _ctx.privateType == "custom" && _ctx.backBtnIcon]
433
433
  ])
434
434
  ]),
@@ -437,12 +437,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
437
437
  class: "arrow-close",
438
438
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
439
439
  }, [
440
- _ctx.closeBtnIcon ? (openBlock(), createBlock(_component_nut_icon, {
441
- key: 0,
440
+ _ctx.closeBtnIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
442
441
  name: _ctx.closeBtnIcon,
443
442
  color: "#cccccc",
444
443
  size: "18px"
445
- }, null, 8, ["name"])) : createCommentVNode("", true)
444
+ }), null, 16, ["name"])) : createCommentVNode("", true)
446
445
  ])
447
446
  ]),
448
447
  _ctx.privateType == "custom" ? (openBlock(), createElementBlock("view", _hoisted_4, [
@@ -470,13 +469,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
470
469
  class: normalizeClass(["region-item", [_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]]),
471
470
  onClick: ($event) => _ctx.nextAreaList(item)
472
471
  }, [
473
- _ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, {
472
+ _ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
474
473
  key: 0,
475
474
  class: "region-item-icon",
476
- type: "self",
475
+ type: "self"
476
+ }, _ctx.$attrs, {
477
477
  name: _ctx.selectedIcon,
478
478
  size: "13px"
479
- }, null, 8, ["name"])) : createCommentVNode("", true),
479
+ }), null, 16, ["name"])) : createCommentVNode("", true),
480
480
  createTextVNode(toDisplayString(item.name), 1)
481
481
  ], 10, _hoisted_9);
482
482
  }), 128))
@@ -515,12 +515,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
515
515
  key: index2,
516
516
  onClick: ($event) => _ctx.selectedExist(item)
517
517
  }, [
518
- createVNode(_component_nut_icon, {
518
+ createVNode(_component_nut_icon, mergeProps({
519
519
  class: "exist-item-icon",
520
- type: "self",
520
+ type: "self"
521
+ }, _ctx.$attrs, {
521
522
  name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
522
523
  size: "13px"
523
- }, null, 8, ["name"]),
524
+ }), null, 16, ["name"]),
524
525
  createElementVNode("div", _hoisted_18, [
525
526
  item.name && item.phone ? (openBlock(), createElementBlock("div", _hoisted_19, [
526
527
  createElementVNode("div", _hoisted_20, toDisplayString(item.name), 1),
@@ -541,10 +542,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
541
542
  }, [
542
543
  createElementVNode("div", _hoisted_23, toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
543
544
  ])) : createCommentVNode("", true)
544
- ])) : createCommentVNode("", true)
545
+ ])) : createCommentVNode("", true),
546
+ renderSlot(_ctx.$slots, "bottom")
545
547
  ])
546
548
  ]),
547
- _: 1
549
+ _: 3
548
550
  }, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
549
551
  }
550
552
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -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.2.1 Tue Aug 09 2022 17:11:10 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({
@@ -26,7 +26,6 @@ const _sfc_main$4 = create$4({
26
26
  setup(props, { emit }) {
27
27
  const delClick = (event) => {
28
28
  emit("delIconClick", event, props.item);
29
- console.log(123);
30
29
  event.stopPropagation();
31
30
  };
32
31
  const editClick = (event) => {
@@ -475,8 +474,7 @@ const _sfc_main = create({
475
474
  fullAddress: "\u5317\u4EAC\u5E02\u901A\u5DDE\u533A\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5"
476
475
  });
477
476
  const trowelData = () => {
478
- console.log("props.data", props.data);
479
- if (Object.keys(props.dataMapOptions).length > 0 && props.data.length > 0) {
477
+ if (Object.keys(props.dataMapOptions).length > 0) {
480
478
  dataArray.value = props.data.map((item, index2) => {
481
479
  return floatData(dataInfo, item, props.dataMapOptions);
482
480
  });
@@ -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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -40,7 +40,7 @@ const _sfc_main = create({
40
40
  }
41
41
  },
42
42
  components: {},
43
- emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute"],
43
+ emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "can-play"],
44
44
  setup(props, { emit }) {
45
45
  const audioRef = ref(null);
46
46
  const audioData = reactive({
@@ -72,22 +72,25 @@ const _sfc_main = create({
72
72
  } catch (e) {
73
73
  console.log(e.message);
74
74
  }
75
- setTimeout(() => {
76
- const audioR = audioRef.value;
77
- if (props.autoplay) {
78
- if (audioR && audioR.paused) {
79
- audioR.play();
80
- }
81
- }
82
- audioData.second = audioR.duration;
83
- audioData.duration = formatSeconds(audioR.duration);
84
- }, 500);
85
75
  });
76
+ const onCanplay = (e) => {
77
+ const audioR = audioRef.value;
78
+ if (props.autoplay) {
79
+ if (audioR && audioR.paused) {
80
+ audioR.play();
81
+ }
82
+ }
83
+ audioData.second = audioR.duration;
84
+ audioData.duration = formatSeconds(audioR.duration);
85
+ emit("can-play", e);
86
+ };
86
87
  const onTimeupdate = (e) => {
87
88
  audioData.currentTime = parseInt(e.target.currentTime);
88
89
  };
89
90
  const fastBack = () => {
90
- audioData.currentTime--;
91
+ if (audioData.currentTime > 0) {
92
+ audioData.currentTime--;
93
+ }
91
94
  audioRef.value.currentTime = audioData.currentTime;
92
95
  emit("fastBack", audioData.currentTime);
93
96
  };
@@ -126,37 +129,17 @@ const _sfc_main = create({
126
129
  emit("mute", audioData.hanMuted);
127
130
  };
128
131
  const formatSeconds = (value) => {
129
- let theTime = parseInt(value);
130
- let theTime1 = 0;
131
- let theTime2 = 0;
132
- if (theTime > 60) {
133
- theTime1 = Math.floor(theTime / 60);
134
- theTime = Math.floor(theTime % 60);
135
- if (theTime1 > 60) {
136
- theTime2 = Math.floor(theTime1 / 60);
137
- theTime1 = Math.floor(theTime1 % 60);
138
- }
132
+ if (!value) {
133
+ return "00:00:00";
139
134
  }
135
+ let time = parseInt(value);
136
+ let hours = Math.floor(time / 3600);
137
+ let minutes = Math.floor((time - hours * 3600) / 60);
138
+ let seconds = time - hours * 3600 - minutes * 60;
140
139
  let result = "";
141
- if (theTime < 10) {
142
- result = "0" + result;
143
- }
144
- if (theTime1 > 0) {
145
- result = "" + theTime1 + ":" + result;
146
- if (theTime1 < 10) {
147
- result = "0" + result;
148
- }
149
- } else {
150
- result = "00:" + result;
151
- }
152
- if (theTime2 > 0) {
153
- result = "" + theTime2 + ":" + result;
154
- if (theTime2 < 10) {
155
- result = "0" + result;
156
- }
157
- } else {
158
- result = "00:" + result;
159
- }
140
+ result += ("0" + hours.toString()).slice(-2) + ":";
141
+ result += ("0" + minutes.toString()).slice(-2) + ":";
142
+ result += ("0" + seconds.toString()).slice(-2);
160
143
  return result;
161
144
  };
162
145
  watch(() => audioData.currentTime, (value) => {
@@ -181,7 +164,8 @@ const _sfc_main = create({
181
164
  progressChange,
182
165
  audioEnd,
183
166
  onTimeupdate,
184
- handleMute
167
+ handleMute,
168
+ onCanplay
185
169
  };
186
170
  }
187
171
  });
@@ -254,7 +238,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
254
238
  autoplay: _ctx.autoplay,
255
239
  loop: _ctx.loop,
256
240
  onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
257
- onEnded: _cache[4] || (_cache[4] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
241
+ onCanplay: _cache[4] || (_cache[4] = (...args) => _ctx.onCanplay && _ctx.onCanplay(...args)),
242
+ onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
258
243
  muted: _ctx.hanMuted
259
244
  }, null, 40, _hoisted_8)
260
245
  ]);
@@ -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.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -12,9 +12,7 @@ const _sfc_main = create({
12
12
  props: {
13
13
  type: {
14
14
  type: String,
15
- default() {
16
- return "play";
17
- }
15
+ default: () => "play"
18
16
  }
19
17
  },
20
18
  components: {},
@@ -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.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { toRefs, inject, ref, reactive, onMounted, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, Fragment, createBlock, createCommentVNode, renderSlot, toDisplayString } from "vue";
6
+ import { toRefs, inject, ref, reactive, onMounted, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, Fragment, createBlock, mergeProps, createCommentVNode, renderSlot, toDisplayString } 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";
@@ -152,11 +152,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
152
152
  src: _ctx.url,
153
153
  alt: _ctx.alt,
154
154
  onError: _cache[0] || (_cache[0] = (...args) => _ctx.onError && _ctx.onError(...args))
155
- }, null, 40, _hoisted_1)) : _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
156
- key: 1,
155
+ }, null, 40, _hoisted_1)) : _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 1 }, _ctx.$attrs, {
157
156
  class: "icon",
158
157
  name: _ctx.iconStyles
159
- }, null, 8, ["name"])) : createCommentVNode("", true),
158
+ }), null, 16, ["name"])) : createCommentVNode("", true),
160
159
  _ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_2, [
161
160
  renderSlot(_ctx.$slots, "default")
162
161
  ])) : createCommentVNode("", true)
@@ -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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
6
+ import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, mergeProps, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import _sfc_main$1 from "./Icon.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -115,12 +115,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
115
115
  key: 0,
116
116
  class: "nut-icon-loading"
117
117
  })) : createCommentVNode("", true),
118
- _ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
118
+ _ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
119
119
  key: 1,
120
- name: _ctx.icon,
120
+ name: _ctx.icon
121
+ }, _ctx.$attrs, {
121
122
  "class-prefix": _ctx.iconClassPrefix,
122
123
  "font-class-name": _ctx.iconFontClassName
123
- }, null, 8, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
124
+ }), null, 16, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
124
125
  _ctx.$slots.default ? (openBlock(), createElementBlock("view", {
125
126
  key: 2,
126
127
  class: normalizeClass({ text: _ctx.icon || _ctx.loading })
@@ -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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -51,7 +51,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
51
51
  createElementVNode("div", {
52
52
  class: normalizeClass([_ctx.checkIndex == index2 ? "nut-category__cateListItemChecked" : "nut-category__cateListItem"]),
53
53
  onClick: ($event) => _ctx.getChildList(index2)
54
- }, toDisplayString(item.catName), 11, _hoisted_4)
54
+ }, toDisplayString(item == null ? void 0 : item.catName), 11, _hoisted_4)
55
55
  ]);
56
56
  }), 128))
57
57
  ])) : createCommentVNode("", true),
@@ -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.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -7,7 +7,6 @@ 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}")();
11
10
  const { componentName, create } = createComponent("categorypane");
12
11
  const _sfc_main = create({
13
12
  props: {
@@ -61,13 +60,14 @@ const _hoisted_13 = {
61
60
  key: 2,
62
61
  class: "nut-categorypane__selfItemList"
63
62
  };
63
+ const _hoisted_14 = ["onClick"];
64
64
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
65
65
  return openBlock(), createElementBlock("div", _hoisted_1, [
66
66
  _ctx.type == "classify" ? (openBlock(), createElementBlock("div", _hoisted_2, [
67
67
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.categoryChild, (item, index2) => {
68
68
  return openBlock(), createElementBlock("div", { key: index2 }, [
69
- createElementVNode("div", _hoisted_3, toDisplayString(item.catName), 1),
70
- item.catType == 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
69
+ createElementVNode("div", _hoisted_3, toDisplayString(item == null ? void 0 : item.catName), 1),
70
+ (item == null ? void 0 : item.catType) == 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
71
71
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
72
72
  return openBlock(), createElementBlock("div", {
73
73
  class: "nut-categorypane__childItem",
@@ -78,7 +78,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
78
78
  class: "nut-categorypane__childImg",
79
79
  src: sku.backImg
80
80
  }, null, 8, _hoisted_6),
81
- createElementVNode("div", _hoisted_7, toDisplayString(sku.catName), 1)
81
+ createElementVNode("div", _hoisted_7, toDisplayString(sku == null ? void 0 : sku.catName), 1)
82
82
  ], 8, _hoisted_5);
83
83
  }), 128))
84
84
  ])) : createCommentVNode("", true)
@@ -88,15 +88,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
88
88
  _ctx.type == "text" ? (openBlock(), createElementBlock("div", _hoisted_8, [
89
89
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.categoryChild, (item, index2) => {
90
90
  return openBlock(), createElementBlock("div", { key: index2 }, [
91
- createElementVNode("div", _hoisted_9, toDisplayString(item.catName), 1),
92
- item.catType == 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
91
+ createElementVNode("div", _hoisted_9, toDisplayString(item == null ? void 0 : item.catName), 1),
92
+ (item == null ? void 0 : item.catType) == 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
93
93
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
94
94
  return openBlock(), createElementBlock("div", {
95
95
  class: "nut-categorypane__childItem",
96
96
  key,
97
97
  onClick: ($event) => _ctx.onChange(sku)
98
98
  }, [
99
- createElementVNode("div", _hoisted_12, toDisplayString(sku.catName), 1)
99
+ createElementVNode("div", _hoisted_12, toDisplayString(sku == null ? void 0 : sku.catName), 1)
100
100
  ], 8, _hoisted_11);
101
101
  }), 128))
102
102
  ])) : createCommentVNode("", true)
@@ -108,8 +108,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
108
108
  return openBlock(), createElementBlock("div", {
109
109
  class: "nut-categorypane__skuName",
110
110
  key,
111
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onChange())
112
- }, toDisplayString(sku.catName), 1);
111
+ onClick: ($event) => _ctx.onChange(sku)
112
+ }, toDisplayString(sku == null ? void 0 : sku.catName), 9, _hoisted_14);
113
113
  }), 128))
114
114
  ])) : createCommentVNode("", true)
115
115
  ]);
@@ -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.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode, computed } from "vue";
6
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, mergeProps, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode, computed } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { u as useRouter } from "./index.js";
9
9
  import { p as pxCheck } from "./pxCheck.js";
@@ -29,11 +29,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
29
29
  renderSlot(_ctx.$slots, "default", {}, () => [
30
30
  _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("view", _hoisted_1, [
31
31
  renderSlot(_ctx.$slots, "icon", {}, () => [
32
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
33
- key: 0,
32
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
34
33
  class: "icon",
35
34
  name: _ctx.icon
36
- }, null, 8, ["name"])) : createCommentVNode("", true)
35
+ }), null, 16, ["name"])) : createCommentVNode("", true)
37
36
  ])
38
37
  ])) : createCommentVNode("", true),
39
38
  _ctx.title || _ctx.subTitle || _ctx.$slots.title ? (openBlock(), createElementBlock("view", _hoisted_2, [
@@ -52,11 +51,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
52
51
  style: normalizeStyle({ "text-align": _ctx.descTextAlign })
53
52
  }, toDisplayString(_ctx.desc), 7)) : createCommentVNode("", true),
54
53
  renderSlot(_ctx.$slots, "link", {}, () => [
55
- _ctx.isLink || _ctx.to ? (openBlock(), createBlock(_component_nut_icon, {
54
+ _ctx.isLink || _ctx.to ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
56
55
  key: 0,
57
- class: "nut-cell__link",
58
- name: "right"
59
- })) : createCommentVNode("", true)
56
+ class: "nut-cell__link"
57
+ }, _ctx.$attrs, { name: _ctx.rightIcon }), null, 16, ["name"])) : createCommentVNode("", true)
60
58
  ])
61
59
  ])
62
60
  ], 6);
@@ -74,6 +72,7 @@ const _sfc_main = create({
74
72
  roundRadius: { type: [String, Number], default: "" },
75
73
  url: { type: String, default: "" },
76
74
  icon: { type: String, default: "" },
75
+ rightIcon: { type: String, default: "right" },
77
76
  center: { type: Boolean, default: false },
78
77
  size: { type: String, default: "" }
79
78
  },
@@ -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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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.2.1 Tue Aug 09 2022 17:11:10 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) {
63
- item.changeOpen(!item.openExpanded);
60
+ if (newval == item.name) {
61
+ item.changeOpen(true);
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);