@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
package/dist/nutui.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:27 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:03 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -220,11 +220,11 @@
220
220
  }
221
221
  }
222
222
  const TypeOfFun = (value) => {
223
- if (value === null) {
223
+ if (null === value) {
224
224
  return "null";
225
225
  }
226
226
  const type = typeof value;
227
- if (type === "undefined" || type === "string") {
227
+ if ("undefined" === type || "string" === type) {
228
228
  return type;
229
229
  }
230
230
  const typeString = toString.call(value);
@@ -242,8 +242,8 @@
242
242
  case "[object RegExp]":
243
243
  return "regexp";
244
244
  case "[object Object]":
245
- if (value.nodeType !== void 0) {
246
- if (value.nodeType == 3) {
245
+ if (void 0 !== value.nodeType) {
246
+ if (3 == value.nodeType) {
247
247
  return /\S/.test(value.nodeValue) ? "textnode" : "whitespace";
248
248
  } else {
249
249
  return "element";
@@ -489,7 +489,7 @@
489
489
  }
490
490
  });
491
491
  const _hoisted_1$1l = { class: "nut-button__warp" };
492
- function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
492
+ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
493
493
  const _component_nut_icon = vue.resolveComponent("nut-icon");
494
494
  return vue.openBlock(), vue.createElementBlock("view", {
495
495
  class: vue.normalizeClass(_ctx.classes),
@@ -501,12 +501,13 @@
501
501
  key: 0,
502
502
  class: "nut-icon-loading"
503
503
  })) : vue.createCommentVNode("", true),
504
- _ctx.icon && !_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
504
+ _ctx.icon && !_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
505
505
  key: 1,
506
- name: _ctx.icon,
506
+ name: _ctx.icon
507
+ }, _ctx.$attrs, {
507
508
  "class-prefix": _ctx.iconClassPrefix,
508
509
  "font-class-name": _ctx.iconFontClassName
509
- }, null, 8, ["name", "class-prefix", "font-class-name"])) : vue.createCommentVNode("", true),
510
+ }), null, 16, ["name", "class-prefix", "font-class-name"])) : vue.createCommentVNode("", true),
510
511
  _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", {
511
512
  key: 2,
512
513
  class: vue.normalizeClass({ text: _ctx.icon || _ctx.loading })
@@ -516,7 +517,7 @@
516
517
  ])
517
518
  ], 6);
518
519
  }
519
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1C]]);
520
+ var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1B]]);
520
521
  function useRouter() {
521
522
  const proxy = vue.getCurrentInstance().proxy;
522
523
  return proxy.$router || null;
@@ -531,7 +532,7 @@
531
532
  };
532
533
  const _hoisted_3$Q = { class: "title" };
533
534
  const _hoisted_4$E = { class: "nut-cell__title-desc" };
534
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
535
+ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
535
536
  const _component_nut_icon = vue.resolveComponent("nut-icon");
536
537
  return vue.openBlock(), vue.createElementBlock("view", {
537
538
  class: vue.normalizeClass(_ctx.classes),
@@ -541,11 +542,10 @@
541
542
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
542
543
  _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1k, [
543
544
  vue.renderSlot(_ctx.$slots, "icon", {}, () => [
544
- _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
545
- key: 0,
545
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 0 }, _ctx.$attrs, {
546
546
  class: "icon",
547
547
  name: _ctx.icon
548
- }, null, 8, ["name"])) : vue.createCommentVNode("", true)
548
+ }), null, 16, ["name"])) : vue.createCommentVNode("", true)
549
549
  ])
550
550
  ])) : vue.createCommentVNode("", true),
551
551
  _ctx.title || _ctx.subTitle || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$14, [
@@ -564,11 +564,10 @@
564
564
  style: vue.normalizeStyle({ "text-align": _ctx.descTextAlign })
565
565
  }, vue.toDisplayString(_ctx.desc), 7)) : vue.createCommentVNode("", true),
566
566
  vue.renderSlot(_ctx.$slots, "link", {}, () => [
567
- _ctx.isLink || _ctx.to ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
567
+ _ctx.isLink || _ctx.to ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
568
568
  key: 0,
569
- class: "nut-cell__link",
570
- name: "right"
571
- })) : vue.createCommentVNode("", true)
569
+ class: "nut-cell__link"
570
+ }, _ctx.$attrs, { name: _ctx.rightIcon }), null, 16, ["name"])) : vue.createCommentVNode("", true)
572
571
  ])
573
572
  ])
574
573
  ], 6);
@@ -586,6 +585,7 @@
586
585
  roundRadius: { type: [String, Number], default: "" },
587
586
  url: { type: String, default: "" },
588
587
  icon: { type: String, default: "" },
588
+ rightIcon: { type: String, default: "right" },
589
589
  center: { type: Boolean, default: false },
590
590
  size: { type: String, default: "" }
591
591
  },
@@ -621,7 +621,7 @@
621
621
  };
622
622
  }
623
623
  });
624
- var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", render$2]]);
624
+ var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", render$3]]);
625
625
  const { componentName: componentName$1q, create: create$1M } = createComponent("cell-group");
626
626
  const _sfc_main$1M = create$1M({
627
627
  props: {
@@ -649,7 +649,7 @@
649
649
  class: "nut-cell-group__desc"
650
650
  };
651
651
  const _hoisted_3$P = { class: "nut-cell-group__warp" };
652
- function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
652
+ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
653
653
  return vue.openBlock(), vue.createElementBlock("view", {
654
654
  class: vue.normalizeClass(_ctx.classes)
655
655
  }, [
@@ -660,7 +660,7 @@
660
660
  ])
661
661
  ], 2);
662
662
  }
663
- var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1B]]);
663
+ var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1A]]);
664
664
  const { componentName: componentName$1p, create: create$1L } = createComponent("overlay");
665
665
  const overlayProps = {
666
666
  visible: {
@@ -737,7 +737,7 @@
737
737
  return { classes, style, touchmove, onClick };
738
738
  }
739
739
  });
740
- function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
740
+ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
741
741
  return vue.openBlock(), vue.createBlock(vue.Transition, { name: "overlay-fade" }, {
742
742
  default: vue.withCtx(() => [
743
743
  vue.withDirectives(vue.createElementVNode("view", {
@@ -754,7 +754,7 @@
754
754
  _: 3
755
755
  });
756
756
  }
757
- var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1A]]);
757
+ var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1z]]);
758
758
  let count = 0;
759
759
  const CLSNAME = "nut-overflow-hidden";
760
760
  const useLockScroll = (isLock) => {
@@ -954,7 +954,7 @@
954
954
  }
955
955
  });
956
956
  const _hoisted_1$1i = { key: 1 };
957
- function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
957
+ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
958
958
  const _component_nut_overlay = vue.resolveComponent("nut-overlay");
959
959
  const _component_nut_icon = vue.resolveComponent("nut-icon");
960
960
  return _ctx.isWrapTeleport ? (vue.openBlock(), vue.createBlock(vue.Teleport, {
@@ -990,10 +990,10 @@
990
990
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
991
991
  class: vue.normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
992
992
  }, [
993
- vue.createVNode(_component_nut_icon, {
993
+ vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
994
994
  name: _ctx.closeIcon,
995
995
  size: "12px"
996
- }, null, 8, ["name"])
996
+ }), null, 16, ["name"])
997
997
  ], 2)) : vue.createCommentVNode("", true)
998
998
  ], 6), [
999
999
  [vue.vShow, _ctx.visible]
@@ -1043,8 +1043,8 @@
1043
1043
  }, 8, ["name", "onAfterEnter", "onAfterLeave"])
1044
1044
  ]));
1045
1045
  }
1046
- var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1z]]);
1047
- const component$7 = {
1046
+ var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1y]]);
1047
+ const component$8 = {
1048
1048
  props: {
1049
1049
  theme: { type: String, default: "" },
1050
1050
  tag: { type: String, default: "div" }
@@ -1059,7 +1059,7 @@
1059
1059
  }
1060
1060
  };
1061
1061
  const { componentName: componentName$1n, create: create$1J } = createComponent("config-provider");
1062
- const _sfc_main$1J = create$1J(component$7);
1062
+ const _sfc_main$1J = create$1J(component$8);
1063
1063
  const { componentName: componentName$1m, create: create$1I } = createComponent("image");
1064
1064
  const _sfc_main$1I = create$1I({
1065
1065
  props: {
@@ -1159,7 +1159,7 @@
1159
1159
  key: 1,
1160
1160
  class: "nut-img-error"
1161
1161
  };
1162
- function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
1162
+ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
1163
1163
  const _component_nut_icon = vue.resolveComponent("nut-icon");
1164
1164
  return vue.openBlock(), vue.createElementBlock("view", {
1165
1165
  class: vue.normalizeClass(_ctx.classes),
@@ -1190,7 +1190,7 @@
1190
1190
  ])) : vue.createCommentVNode("", true)
1191
1191
  ], 6);
1192
1192
  }
1193
- var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1y]]);
1193
+ var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1x]]);
1194
1194
  const { create: create$1H } = createComponent("layout");
1195
1195
  const _sfc_main$1H = create$1H({});
1196
1196
  const { componentName: componentName$1l, create: create$1G } = createComponent("col");
@@ -1234,7 +1234,7 @@
1234
1234
  };
1235
1235
  }
1236
1236
  });
1237
- function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
1237
+ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
1238
1238
  return vue.openBlock(), vue.createElementBlock("view", {
1239
1239
  class: vue.normalizeClass(_ctx.classes),
1240
1240
  style: vue.normalizeStyle(_ctx.style),
@@ -1243,7 +1243,7 @@
1243
1243
  vue.renderSlot(_ctx.$slots, "default")
1244
1244
  ], 6);
1245
1245
  }
1246
- var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1x]]);
1246
+ var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1w]]);
1247
1247
  const { componentName: componentName$1k, create: create$1F } = createComponent("row");
1248
1248
  const _sfc_main$1F = create$1F({
1249
1249
  props: {
@@ -1294,7 +1294,7 @@
1294
1294
  };
1295
1295
  }
1296
1296
  });
1297
- function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
1297
+ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
1298
1298
  return vue.openBlock(), vue.createElementBlock("view", {
1299
1299
  class: vue.normalizeClass(_ctx.getClasses()),
1300
1300
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
@@ -1302,7 +1302,7 @@
1302
1302
  vue.renderSlot(_ctx.$slots, "default")
1303
1303
  ], 2);
1304
1304
  }
1305
- var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1w]]);
1305
+ var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1v]]);
1306
1306
  function isWindow(val) {
1307
1307
  return val === window;
1308
1308
  }
@@ -1514,7 +1514,7 @@
1514
1514
  return { classes };
1515
1515
  }
1516
1516
  });
1517
- function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
1517
+ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
1518
1518
  return _ctx.direction === "horizontal" ? (vue.openBlock(), vue.createElementBlock("view", {
1519
1519
  key: 0,
1520
1520
  class: vue.normalizeClass(_ctx.classes)
@@ -1525,7 +1525,7 @@
1525
1525
  class: vue.normalizeClass(_ctx.classes)
1526
1526
  }, null, 2));
1527
1527
  }
1528
- var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1v]]);
1528
+ var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1u]]);
1529
1529
  function flattenVNodes(children, childName) {
1530
1530
  const result = [];
1531
1531
  const traverse = (children2) => {
@@ -1626,7 +1626,7 @@
1626
1626
  default: false
1627
1627
  }
1628
1628
  };
1629
- const component$6 = {
1629
+ const component$7 = {
1630
1630
  props: gridProps,
1631
1631
  setup(props, { slots }) {
1632
1632
  useProvide(GRID_KEY, `${componentName$1h}-item`)({ props });
@@ -1654,7 +1654,7 @@
1654
1654
  }
1655
1655
  };
1656
1656
  const { create: create$1C } = createComponent("grid");
1657
- const _sfc_main$1C = create$1C(component$6);
1657
+ const _sfc_main$1C = create$1C(component$7);
1658
1658
  function useInject(key) {
1659
1659
  const parent = vue.inject(key, null);
1660
1660
  if (parent) {
@@ -1769,7 +1769,7 @@
1769
1769
  key: 3,
1770
1770
  class: "nut-grid-item__text"
1771
1771
  };
1772
- function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
1772
+ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
1773
1773
  const _component_nut_icon = vue.resolveComponent("nut-icon");
1774
1774
  return vue.openBlock(), vue.createElementBlock("view", {
1775
1775
  class: vue.normalizeClass(_ctx.rootClass),
@@ -1780,18 +1780,19 @@
1780
1780
  class: vue.normalizeClass(_ctx.contentClass)
1781
1781
  }, [
1782
1782
  _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
1783
- _ctx.$slots.icon ? vue.renderSlot(_ctx.$slots, "icon", { key: 0 }) : (vue.openBlock(), vue.createBlock(_component_nut_icon, {
1783
+ _ctx.$slots.icon ? vue.renderSlot(_ctx.$slots, "icon", { key: 0 }) : (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
1784
1784
  key: 1,
1785
- name: _ctx.iconProps.name,
1785
+ name: _ctx.iconProps.name
1786
+ }, _ctx.$attrs, {
1786
1787
  size: _ctx.iconProps.size,
1787
1788
  color: _ctx.iconProps.color
1788
- }, null, 8, ["name", "size", "color"])),
1789
+ }), null, 16, ["name", "size", "color"])),
1789
1790
  _ctx.$slots.text ? vue.renderSlot(_ctx.$slots, "text", { key: 2 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1g, vue.toDisplayString(_ctx.text), 1))
1790
1791
  ], 64))
1791
1792
  ], 2)
1792
1793
  ], 6);
1793
1794
  }
1794
- var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1u]]);
1795
+ var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1t]]);
1795
1796
  const { componentName: componentName$1f, create: create$1A } = createComponent("navbar");
1796
1797
  const _sfc_main$1A = create$1A({
1797
1798
  props: {
@@ -1897,7 +1898,7 @@
1897
1898
  key: 0,
1898
1899
  class: "nut-navbar__text"
1899
1900
  };
1900
- function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
1901
+ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
1901
1902
  const _component_nut_icon = vue.resolveComponent("nut-icon");
1902
1903
  return _ctx.fixed && _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1f, [
1903
1904
  vue.createElementVNode("view", {
@@ -1923,12 +1924,13 @@
1923
1924
  class: "title",
1924
1925
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
1925
1926
  }, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
1926
- _ctx.titIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
1927
+ _ctx.titIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
1927
1928
  key: 1,
1928
- class: "icon",
1929
+ class: "icon"
1930
+ }, _ctx.$attrs, {
1929
1931
  name: _ctx.titIcon,
1930
1932
  onClick: _ctx.handleCenterIcon
1931
- }, null, 8, ["name", "onClick"])) : vue.createCommentVNode("", true),
1933
+ }), null, 16, ["name", "onClick"])) : vue.createCommentVNode("", true),
1932
1934
  vue.renderSlot(_ctx.$slots, "content")
1933
1935
  ]),
1934
1936
  vue.createElementVNode("view", {
@@ -1962,12 +1964,13 @@
1962
1964
  class: "title",
1963
1965
  onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
1964
1966
  }, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
1965
- _ctx.titIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
1967
+ _ctx.titIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
1966
1968
  key: 1,
1967
- class: "icon",
1969
+ class: "icon"
1970
+ }, _ctx.$attrs, {
1968
1971
  name: _ctx.titIcon,
1969
1972
  onClick: _ctx.handleCenterIcon
1970
- }, null, 8, ["name", "onClick"])) : vue.createCommentVNode("", true),
1973
+ }), null, 16, ["name", "onClick"])) : vue.createCommentVNode("", true),
1971
1974
  vue.renderSlot(_ctx.$slots, "content")
1972
1975
  ]),
1973
1976
  vue.createElementVNode("view", {
@@ -1979,12 +1982,9 @@
1979
1982
  ])
1980
1983
  ], 6));
1981
1984
  }
1982
- var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1t]]);
1983
- const { componentName: componentName$1e, create: create$1z, translate: translate$t } = createComponent("fixednav");
1984
- const _sfc_main$1z = create$1z({
1985
- components: {
1986
- [OverLay.name]: OverLay
1987
- },
1985
+ var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1s]]);
1986
+ const { componentName: componentName$1e, translate: translate$t } = createComponent("fixednav");
1987
+ const component$6 = {
1988
1988
  props: {
1989
1989
  visible: {
1990
1990
  type: Boolean,
@@ -1998,6 +1998,10 @@
1998
1998
  default: () => [],
1999
1999
  type: Array
2000
2000
  },
2001
+ activeColor: {
2002
+ default: "",
2003
+ type: String
2004
+ },
2001
2005
  activeText: {
2002
2006
  default: "",
2003
2007
  type: String
@@ -2030,6 +2034,7 @@
2030
2034
  [props.type]: true
2031
2035
  };
2032
2036
  });
2037
+ const current = vue.ref(-1);
2033
2038
  const updateValue = (value = !props.visible) => {
2034
2039
  emit("update:visible", value);
2035
2040
  };
@@ -2038,10 +2043,11 @@
2038
2043
  item,
2039
2044
  event
2040
2045
  });
2046
+ current.value = item.id;
2041
2047
  };
2042
- return { classes, updateValue, selected, translate: translate$t };
2048
+ return { classes, updateValue, selected, translate: translate$t, current };
2043
2049
  }
2044
- });
2050
+ };
2045
2051
  const _hoisted_1$1e = { class: "nut-fixednav__list" };
2046
2052
  const _hoisted_2$10 = ["onClick"];
2047
2053
  const _hoisted_3$M = ["src"];
@@ -2051,7 +2057,7 @@
2051
2057
  class: "b"
2052
2058
  };
2053
2059
  const _hoisted_6$p = { class: "text" };
2054
- function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
2060
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2055
2061
  const _component_nut_overlay = vue.resolveComponent("nut-overlay");
2056
2062
  const _component_nut_icon = vue.resolveComponent("nut-icon");
2057
2063
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -2068,7 +2074,7 @@
2068
2074
  vue.createElementVNode("view", _hoisted_1$1e, [
2069
2075
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.navList, (item, index) => {
2070
2076
  return vue.openBlock(), vue.createElementBlock("view", {
2071
- class: "nut-fixednav__list-item",
2077
+ class: vue.normalizeClass(["nut-fixednav__list-item", { active: item.id == _ctx.current }]),
2072
2078
  onClick: ($event) => _ctx.selected(item, $event),
2073
2079
  key: item.id || index
2074
2080
  }, [
@@ -2077,7 +2083,7 @@
2077
2083
  }, null, 8, _hoisted_3$M),
2078
2084
  vue.createElementVNode("view", _hoisted_4$C, vue.toDisplayString(item.text), 1),
2079
2085
  item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$s, vue.toDisplayString(item.num), 1)) : vue.createCommentVNode("", true)
2080
- ], 8, _hoisted_2$10);
2086
+ ], 10, _hoisted_2$10);
2081
2087
  }), 128))
2082
2088
  ])
2083
2089
  ]),
@@ -2095,7 +2101,9 @@
2095
2101
  ])
2096
2102
  ], 6);
2097
2103
  }
2098
- var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1s]]);
2104
+ const { create: create$1z } = createComponent("fixednav");
2105
+ const _sfc_main$1z = create$1z(component$6);
2106
+ var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", render$2]]);
2099
2107
  const { componentName: componentName$1d, create: create$1y } = createComponent("menu");
2100
2108
  const _sfc_main$1y = create$1y({
2101
2109
  props: {
@@ -2115,6 +2123,7 @@
2115
2123
  type: [Number, String],
2116
2124
  default: 0
2117
2125
  },
2126
+ titleIcon: String,
2118
2127
  closeOnClickOverlay: {
2119
2128
  type: Boolean,
2120
2129
  default: true
@@ -2247,11 +2256,11 @@
2247
2256
  class: vue.normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
2248
2257
  }, [
2249
2258
  vue.createElementVNode("view", _hoisted_2$$, vue.toDisplayString(item.renderTitle()), 1),
2250
- vue.createVNode(_component_nut_icon, {
2251
- name: item.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
2259
+ vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
2260
+ name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
2252
2261
  size: "10",
2253
2262
  class: "nut-menu__title-icon"
2254
- }, null, 8, ["name"])
2263
+ }), null, 16, ["name"])
2255
2264
  ], 2)
2256
2265
  ], 14, _hoisted_1$1d);
2257
2266
  }), 128))
@@ -2277,7 +2286,8 @@
2277
2286
  type: Number,
2278
2287
  default: 1
2279
2288
  },
2280
- titleIcon: String,
2289
+ activeTitleClass: String,
2290
+ inactiveTitleClass: String,
2281
2291
  optionIcon: {
2282
2292
  type: String,
2283
2293
  default: "Check"
@@ -2403,18 +2413,19 @@
2403
2413
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option, index) => {
2404
2414
  return vue.openBlock(), vue.createElementBlock("view", {
2405
2415
  key: index,
2406
- class: vue.normalizeClass(["nut-menu-item__option", { active: option.value === _ctx.modelValue }]),
2416
+ class: vue.normalizeClass(["nut-menu-item__option", [{ active: option.value === _ctx.modelValue }]]),
2407
2417
  style: vue.normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
2408
2418
  onClick: ($event) => _ctx.onClick(option)
2409
2419
  }, [
2410
- option.value === _ctx.modelValue ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
2411
- key: 0,
2420
+ option.value === _ctx.modelValue ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 0 }, _ctx.$attrs, {
2421
+ class: { activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue },
2412
2422
  name: _ctx.optionIcon,
2413
2423
  color: _ctx.parent.props.activeColor
2414
- }, null, 8, ["name", "color"])) : vue.createCommentVNode("", true),
2424
+ }), null, 16, ["class", "name", "color"])) : vue.createCommentVNode("", true),
2415
2425
  vue.createElementVNode("view", {
2426
+ class: vue.normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
2416
2427
  style: vue.normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
2417
- }, vue.toDisplayString(option.text), 5)
2428
+ }, vue.toDisplayString(option.text), 7)
2418
2429
  ], 14, _hoisted_2$_);
2419
2430
  }), 128)),
2420
2431
  vue.renderSlot(_ctx.$slots, "default")
@@ -5444,12 +5455,12 @@
5444
5455
  const _hoisted_6$l = { class: "calendar-month-title" };
5445
5456
  const _hoisted_7$i = { class: "calendar-month-con" };
5446
5457
  const _hoisted_8$d = ["onClick"];
5447
- const _hoisted_9$8 = { class: "calendar-day" };
5448
- const _hoisted_10$5 = {
5458
+ const _hoisted_9$9 = { class: "calendar-day" };
5459
+ const _hoisted_10$6 = {
5449
5460
  key: 0,
5450
5461
  class: "calendar-curr-tips calendar-curr-tips-top"
5451
5462
  };
5452
- const _hoisted_11$5 = {
5463
+ const _hoisted_11$6 = {
5453
5464
  key: 1,
5454
5465
  class: "calendar-curr-tips calendar-curr-tips-bottom"
5455
5466
  };
@@ -5461,7 +5472,7 @@
5461
5472
  key: 4,
5462
5473
  class: "calendar-day-tip"
5463
5474
  };
5464
- const _hoisted_14$2 = {
5475
+ const _hoisted_14$3 = {
5465
5476
  key: 0,
5466
5477
  class: "nut-calendar-footer"
5467
5478
  };
@@ -5516,19 +5527,19 @@
5516
5527
  class: vue.normalizeClass(["calendar-month-day", _ctx.getClass(day, month)]),
5517
5528
  onClick: ($event) => _ctx.chooseDay(day, month)
5518
5529
  }, [
5519
- vue.createElementVNode("view", _hoisted_9$8, [
5530
+ vue.createElementVNode("view", _hoisted_9$9, [
5520
5531
  vue.renderSlot(_ctx.$slots, "day", {
5521
5532
  date: day.type == "curr" ? day : ""
5522
5533
  }, () => [
5523
5534
  vue.createTextVNode(vue.toDisplayString(day.type == "curr" ? day.day : ""), 1)
5524
5535
  ])
5525
5536
  ]),
5526
- _ctx.topInfo ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_10$5, [
5537
+ _ctx.topInfo ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_10$6, [
5527
5538
  vue.renderSlot(_ctx.$slots, "topInfo", {
5528
5539
  date: day.type == "curr" ? day : ""
5529
5540
  })
5530
5541
  ])) : vue.createCommentVNode("", true),
5531
- _ctx.bottomInfo ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11$5, [
5542
+ _ctx.bottomInfo ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11$6, [
5532
5543
  vue.renderSlot(_ctx.$slots, "bottomInfo", {
5533
5544
  date: day.type == "curr" ? day : ""
5534
5545
  })
@@ -5548,7 +5559,7 @@
5548
5559
  ], 4)
5549
5560
  ], 512)
5550
5561
  ], 544),
5551
- _ctx.poppable && !_ctx.isAutoBackFill ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_14$2, [
5562
+ _ctx.poppable && !_ctx.isAutoBackFill ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_14$3, [
5552
5563
  vue.createElementVNode("view", {
5553
5564
  class: "calendar-confirm-btn",
5554
5565
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
@@ -6402,6 +6413,12 @@
6402
6413
  }
6403
6414
  };
6404
6415
  const confirmHandler = () => {
6416
+ if (defaultValues.value && !defaultValues.value.length) {
6417
+ columnsList.value.forEach((columns) => {
6418
+ defaultValues.value.push(columns[0].value);
6419
+ selectedOptions.value.push(columns[0]);
6420
+ });
6421
+ }
6405
6422
  emit("confirm", {
6406
6423
  selectedValue: defaultValues.value,
6407
6424
  selectedOptions: selectedOptions.value
@@ -7229,12 +7246,18 @@
7229
7246
  }
7230
7247
  };
7231
7248
  const onFocus = (event) => {
7249
+ if (props.disabled || props.readonly) {
7250
+ return;
7251
+ }
7232
7252
  const input = event.target;
7233
7253
  let value = input.value;
7234
7254
  active.value = true;
7235
7255
  emit("focus", value, event);
7236
7256
  };
7237
7257
  const onBlur = (event) => {
7258
+ if (props.disabled || props.readonly) {
7259
+ return;
7260
+ }
7238
7261
  setTimeout(() => {
7239
7262
  active.value = false;
7240
7263
  }, 200);
@@ -7247,6 +7270,8 @@
7247
7270
  emit("blur", value, event);
7248
7271
  };
7249
7272
  const clear = (event) => {
7273
+ if (props.disabled)
7274
+ return;
7250
7275
  emit("update:modelValue", "", event);
7251
7276
  emit("change", "", event);
7252
7277
  emit("clear", "", event);
@@ -7258,10 +7283,29 @@
7258
7283
  }
7259
7284
  };
7260
7285
  const onClickInput = (event) => {
7286
+ if (props.disabled) {
7287
+ return;
7288
+ }
7261
7289
  emit("click-input", event);
7262
7290
  };
7263
- const onClickLeftIcon = (event) => emit("click-left-icon", event);
7264
- const onClickRightIcon = (event) => emit("click-right-icon", event);
7291
+ const onClickLeftIcon = (event) => {
7292
+ if (props.disabled) {
7293
+ return;
7294
+ }
7295
+ emit("click-left-icon", event);
7296
+ };
7297
+ const onClickRightIcon = (event) => {
7298
+ if (props.disabled) {
7299
+ return;
7300
+ }
7301
+ emit("click-right-icon", event);
7302
+ };
7303
+ const onClick = (e) => {
7304
+ if (props.disabled) {
7305
+ e.stopImmediatePropagation();
7306
+ return;
7307
+ }
7308
+ };
7265
7309
  vue.watch(() => props.modelValue, () => {
7266
7310
  updateValue(getModelValue());
7267
7311
  resetValidation();
@@ -7283,6 +7327,7 @@
7283
7327
  onClickInput,
7284
7328
  onClickLeftIcon,
7285
7329
  onClickRightIcon,
7330
+ onClick,
7286
7331
  translate: translate$m
7287
7332
  };
7288
7333
  }
@@ -7291,17 +7336,21 @@
7291
7336
  const _hoisted_2$N = { class: "nut-input-value" };
7292
7337
  const _hoisted_3$B = { class: "label-string" };
7293
7338
  const _hoisted_4$t = { class: "nut-input-value" };
7294
- const _hoisted_5$l = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
7295
- const _hoisted_6$k = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
7296
- const _hoisted_7$h = {
7339
+ const _hoisted_5$l = { class: "nut-input-inner" };
7340
+ const _hoisted_6$k = { class: "nut-input-box" };
7341
+ const _hoisted_7$h = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
7342
+ const _hoisted_8$c = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
7343
+ const _hoisted_9$8 = { class: "nut-input-clear-box" };
7344
+ const _hoisted_10$5 = {
7297
7345
  key: 0,
7298
7346
  class: "nut-input-word-limit"
7299
7347
  };
7300
- const _hoisted_8$c = { class: "nut-input-word-num" };
7348
+ const _hoisted_11$5 = { class: "nut-input-word-num" };
7301
7349
  function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
7302
7350
  const _component_nut_icon = vue.resolveComponent("nut-icon");
7303
7351
  return vue.openBlock(), vue.createElementBlock("view", {
7304
- class: vue.normalizeClass(_ctx.classes)
7352
+ class: vue.normalizeClass(_ctx.classes),
7353
+ onClick: _cache[11] || (_cache[11] = (...args) => _ctx.onClick && _ctx.onClick(...args))
7305
7354
  }, [
7306
7355
  _ctx.$slots.input ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
7307
7356
  _ctx.label ? (vue.openBlock(), vue.createElementBlock("view", {
@@ -7328,10 +7377,7 @@
7328
7377
  class: "nut-input-left-icon",
7329
7378
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClickLeftIcon && _ctx.onClickLeftIcon(...args))
7330
7379
  }, [
7331
- vue.createVNode(_component_nut_icon, {
7332
- name: _ctx.leftIcon,
7333
- size: _ctx.leftIconSize
7334
- }, null, 8, ["name", "size"])
7380
+ vue.createVNode(_component_nut_icon, vue.mergeProps({ name: _ctx.leftIcon }, _ctx.$attrs, { size: _ctx.leftIconSize }), null, 16, ["name", "size"])
7335
7381
  ])) : vue.createCommentVNode("", true),
7336
7382
  _ctx.label ? (vue.openBlock(), vue.createElementBlock("view", {
7337
7383
  key: 1,
@@ -7344,68 +7390,69 @@
7344
7390
  vue.createElementVNode("view", _hoisted_3$B, vue.toDisplayString(_ctx.label) + " " + vue.toDisplayString(_ctx.colon ? ":" : ""), 1)
7345
7391
  ], 6)) : vue.createCommentVNode("", true),
7346
7392
  vue.createElementVNode("view", _hoisted_4$t, [
7347
- vue.createElementVNode("view", {
7348
- class: "nut-input-inner",
7349
- onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
7350
- }, [
7351
- _ctx.type == "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
7352
- key: 0,
7353
- class: "input-text",
7354
- ref: "inputRef",
7355
- style: vue.normalizeStyle(_ctx.stylesTextarea),
7356
- maxlength: _ctx.maxLength,
7357
- placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
7358
- disabled: _ctx.disabled,
7359
- readonly: _ctx.readonly,
7360
- value: _ctx.modelValue,
7361
- formatTrigger: _ctx.formatTrigger,
7362
- autofocus: _ctx.autofocus,
7363
- onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
7364
- onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
7365
- onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
7366
- }, null, 44, _hoisted_5$l)) : (vue.openBlock(), vue.createElementBlock("input", {
7367
- key: 1,
7368
- class: "input-text",
7369
- ref: "inputRef",
7370
- style: vue.normalizeStyle(_ctx.styles),
7371
- type: _ctx.inputType(_ctx.type),
7372
- maxlength: _ctx.maxLength,
7373
- placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
7374
- disabled: _ctx.disabled,
7375
- readonly: _ctx.readonly,
7376
- value: _ctx.modelValue,
7377
- formatTrigger: _ctx.formatTrigger,
7378
- autofocus: _ctx.autofocus,
7379
- onInput: _cache[5] || (_cache[5] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
7380
- onFocus: _cache[6] || (_cache[6] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
7381
- onBlur: _cache[7] || (_cache[7] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
7382
- }, null, 44, _hoisted_6$k)),
7383
- _ctx.clearable && !_ctx.readonly ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_nut_icon, {
7384
- key: 2,
7385
- class: "nut-input-clear",
7386
- name: _ctx.clearIcon,
7387
- size: _ctx.clearSize,
7388
- onClick: _ctx.clear
7389
- }, null, 8, ["name", "size", "onClick"])), [
7390
- [vue.vShow, _ctx.active && _ctx.modelValue.length > 0]
7391
- ]) : vue.createCommentVNode("", true),
7393
+ vue.createElementVNode("view", _hoisted_5$l, [
7394
+ vue.createElementVNode("view", _hoisted_6$k, [
7395
+ _ctx.type == "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
7396
+ key: 0,
7397
+ class: "input-text",
7398
+ ref: "inputRef",
7399
+ style: vue.normalizeStyle(_ctx.stylesTextarea),
7400
+ maxlength: _ctx.maxLength,
7401
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
7402
+ disabled: _ctx.disabled,
7403
+ readonly: _ctx.readonly,
7404
+ value: _ctx.modelValue,
7405
+ formatTrigger: _ctx.formatTrigger,
7406
+ autofocus: _ctx.autofocus,
7407
+ onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
7408
+ onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
7409
+ onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
7410
+ onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
7411
+ }, null, 44, _hoisted_7$h)) : (vue.openBlock(), vue.createElementBlock("input", {
7412
+ key: 1,
7413
+ class: "input-text",
7414
+ ref: "inputRef",
7415
+ style: vue.normalizeStyle(_ctx.styles),
7416
+ type: _ctx.inputType(_ctx.type),
7417
+ maxlength: _ctx.maxLength,
7418
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
7419
+ disabled: _ctx.disabled,
7420
+ readonly: _ctx.readonly,
7421
+ value: _ctx.modelValue,
7422
+ formatTrigger: _ctx.formatTrigger,
7423
+ autofocus: _ctx.autofocus,
7424
+ onInput: _cache[6] || (_cache[6] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
7425
+ onFocus: _cache[7] || (_cache[7] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
7426
+ onBlur: _cache[8] || (_cache[8] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
7427
+ onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
7428
+ }, null, 44, _hoisted_8$c))
7429
+ ]),
7430
+ vue.createElementVNode("view", _hoisted_9$8, [
7431
+ _ctx.clearable && !_ctx.readonly ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
7432
+ key: 0,
7433
+ class: "nut-input-clear",
7434
+ name: _ctx.clearIcon
7435
+ }, _ctx.$attrs, {
7436
+ size: _ctx.clearSize,
7437
+ onClick: _ctx.clear
7438
+ }), null, 16, ["name", "size", "onClick"])), [
7439
+ [vue.vShow, _ctx.active && _ctx.modelValue.length > 0]
7440
+ ]) : vue.createCommentVNode("", true)
7441
+ ]),
7392
7442
  _ctx.rightIcon && _ctx.rightIcon.length > 0 ? (vue.openBlock(), vue.createElementBlock("view", {
7393
- key: 3,
7443
+ key: 0,
7394
7444
  class: "nut-input-right-icon",
7395
- onClick: _cache[8] || (_cache[8] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
7445
+ onClick: _cache[10] || (_cache[10] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
7396
7446
  }, [
7397
- vue.createVNode(_component_nut_icon, {
7398
- name: _ctx.rightIcon,
7399
- size: _ctx.rightIconSize
7400
- }, null, 8, ["name", "size"])
7447
+ vue.createVNode(_component_nut_icon, vue.mergeProps({ name: _ctx.rightIcon }, _ctx.$attrs, { size: _ctx.rightIconSize }), null, 16, ["name", "size"])
7401
7448
  ])) : vue.createCommentVNode("", true),
7402
7449
  _ctx.$slots.button ? vue.renderSlot(_ctx.$slots, "button", {
7403
- key: 4,
7450
+ key: 1,
7404
7451
  class: "nut-input-button"
7405
7452
  }) : vue.createCommentVNode("", true)
7406
7453
  ]),
7407
- _ctx.showWordLimit && _ctx.maxLength ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$h, [
7408
- vue.createElementVNode("span", _hoisted_8$c, vue.toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
7454
+ _ctx.showWordLimit && _ctx.maxLength ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_10$5, [
7455
+ vue.createElementVNode("span", _hoisted_11$5, vue.toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
7409
7456
  vue.createTextVNode("/" + vue.toDisplayString(_ctx.maxLength), 1)
7410
7457
  ])) : vue.createCommentVNode("", true),
7411
7458
  _ctx.errorMessage ? (vue.openBlock(), vue.createElementBlock("view", {
@@ -8143,8 +8190,8 @@
8143
8190
  xhr.setRequestHeader(key, value);
8144
8191
  }
8145
8192
  (_a = options.onStart) == null ? void 0 : _a.call(options, options);
8146
- if (options.method.toLowerCase() == "put") {
8147
- xhr.send(options.sourceFile);
8193
+ if (options.beforeXhrUpload) {
8194
+ options.beforeXhrUpload(xhr, options);
8148
8195
  } else {
8149
8196
  xhr.send(options.formData);
8150
8197
  }
@@ -8158,34 +8205,38 @@
8158
8205
  if (env === "WEB") {
8159
8206
  this.upload();
8160
8207
  } else {
8161
- const uploadTask = uploadFile({
8162
- url: options.url,
8163
- filePath: options.taroFilePath,
8164
- fileType: options.fileType,
8165
- header: {
8166
- "Content-Type": "multipart/form-data",
8167
- ...options.headers
8168
- },
8169
- formData: options.formData,
8170
- name: options.name,
8171
- success(response) {
8172
- var _a2, _b;
8173
- if (options.xhrState == response.statusCode) {
8174
- (_a2 = options.onSuccess) == null ? void 0 : _a2.call(options, response, options);
8175
- } else {
8176
- (_b = options.onFailure) == null ? void 0 : _b.call(options, response, options);
8208
+ if (options.beforeXhrUpload) {
8209
+ options.beforeXhrUpload(uploadFile, options);
8210
+ } else {
8211
+ const uploadTask = uploadFile({
8212
+ url: options.url,
8213
+ filePath: options.taroFilePath,
8214
+ fileType: options.fileType,
8215
+ header: {
8216
+ "Content-Type": "multipart/form-data",
8217
+ ...options.headers
8218
+ },
8219
+ formData: options.formData,
8220
+ name: options.name,
8221
+ success(response) {
8222
+ var _a2, _b;
8223
+ if (options.xhrState == response.statusCode) {
8224
+ (_a2 = options.onSuccess) == null ? void 0 : _a2.call(options, response, options);
8225
+ } else {
8226
+ (_b = options.onFailure) == null ? void 0 : _b.call(options, response, options);
8227
+ }
8228
+ },
8229
+ fail(e) {
8230
+ var _a2;
8231
+ (_a2 = options.onFailure) == null ? void 0 : _a2.call(options, e, options);
8177
8232
  }
8178
- },
8179
- fail(e) {
8233
+ });
8234
+ (_a = options.onStart) == null ? void 0 : _a.call(options, options);
8235
+ uploadTask.progress((res) => {
8180
8236
  var _a2;
8181
- (_a2 = options.onFailure) == null ? void 0 : _a2.call(options, e, options);
8182
- }
8183
- });
8184
- (_a = options.onStart) == null ? void 0 : _a.call(options, options);
8185
- uploadTask.progress((res) => {
8186
- var _a2;
8187
- (_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
8188
- });
8237
+ (_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
8238
+ });
8239
+ }
8189
8240
  }
8190
8241
  }
8191
8242
  }
@@ -8228,6 +8279,10 @@
8228
8279
  type: Function,
8229
8280
  default: null
8230
8281
  },
8282
+ beforeXhrUpload: {
8283
+ type: Function,
8284
+ default: null
8285
+ },
8231
8286
  beforeDelete: {
8232
8287
  type: Function,
8233
8288
  default: (file, files) => {
@@ -8271,6 +8326,7 @@
8271
8326
  uploadOption.xhrState = props.xhrState;
8272
8327
  uploadOption.headers = props.headers;
8273
8328
  uploadOption.withCredentials = props.withCredentials;
8329
+ uploadOption.beforeXhrUpload = props.beforeXhrUpload;
8274
8330
  try {
8275
8331
  uploadOption.sourceFile = fileItem.formData.get(props.name);
8276
8332
  } catch (error) {
@@ -8450,7 +8506,7 @@
8450
8506
  key: 1,
8451
8507
  class: "nut-uploader__preview-list"
8452
8508
  };
8453
- const _hoisted_14$1 = ["onClick"];
8509
+ const _hoisted_14$2 = ["onClick"];
8454
8510
  const _hoisted_15$1 = ["accept", "multiple", "name", "disabled"];
8455
8511
  const _hoisted_16$1 = ["accept", "multiple", "name", "disabled"];
8456
8512
  function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
@@ -8530,7 +8586,7 @@
8530
8586
  }, [
8531
8587
  vue.createVNode(_component_nut_icon, { name: "link" }),
8532
8588
  vue.createTextVNode("\xA0" + vue.toDisplayString(item.name), 1)
8533
- ], 10, _hoisted_14$1),
8589
+ ], 10, _hoisted_14$2),
8534
8590
  vue.createVNode(_component_nut_icon, {
8535
8591
  class: "nut-uploader__preview-img__file__del",
8536
8592
  onClick: ($event) => _ctx.onDelete(item, index),
@@ -8551,11 +8607,11 @@
8551
8607
  key: 1,
8552
8608
  class: vue.normalizeClass(["nut-uploader__upload", [_ctx.listType]])
8553
8609
  }, [
8554
- vue.createVNode(_component_nut_icon, {
8610
+ vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
8555
8611
  size: _ctx.uploadIconSize,
8556
8612
  color: "#808080",
8557
8613
  name: _ctx.uploadIcon
8558
- }, null, 8, ["size", "name"]),
8614
+ }), null, 16, ["size", "name"]),
8559
8615
  _ctx.capture ? (vue.openBlock(), vue.createElementBlock("input", {
8560
8616
  key: 0,
8561
8617
  class: "nut-uploader__input",
@@ -8669,19 +8725,17 @@
8669
8725
  if (customKeys.length > 2) {
8670
8726
  customKeys = [customKeys[0], customKeys[1]];
8671
8727
  }
8728
+ if (customKeys.length == 2 && props.title && props.type != "rightColumn") {
8729
+ customKeys = [customKeys[0]];
8730
+ }
8672
8731
  if (customKeys.length === 1) {
8673
- if (props.title) {
8732
+ if (props.title && props.type != "rightColumn") {
8674
8733
  keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: "delete", type: "delete" });
8675
8734
  } else {
8676
8735
  keys.push({ id: 0, type: "number" }, { id: customKeys[0], type: "custom" });
8677
8736
  }
8678
8737
  } else if (customKeys.length === 2) {
8679
8738
  keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: customKeys[1], type: "custom" });
8680
- if (props.title) {
8681
- keys.push({ id: "delete", type: "delete" });
8682
- }
8683
- } else {
8684
- keys.push({ id: 0, type: "number" });
8685
8739
  }
8686
8740
  return keys;
8687
8741
  }
@@ -8785,10 +8839,11 @@
8785
8839
  vue.createElementVNode("div", _hoisted_1$T, [
8786
8840
  _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$J, [
8787
8841
  vue.createElementVNode("h3", _hoisted_3$y, vue.toDisplayString(_ctx.title), 1),
8788
- vue.createElementVNode("span", {
8842
+ _ctx.type == "default" ? (vue.openBlock(), vue.createElementBlock("span", {
8843
+ key: 0,
8789
8844
  class: "keyboard-close",
8790
8845
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
8791
- }, vue.toDisplayString(_ctx.translate("done")), 1)
8846
+ }, vue.toDisplayString(_ctx.translate("done")), 1)) : vue.createCommentVNode("", true)
8792
8847
  ])) : vue.createCommentVNode("", true),
8793
8848
  vue.createElementVNode("div", _hoisted_4$q, [
8794
8849
  vue.createElementVNode("div", _hoisted_5$i, [
@@ -8831,15 +8886,14 @@
8831
8886
  onTouchend: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
8832
8887
  }, _hoisted_12$3, 34)
8833
8888
  ]),
8834
- _ctx.title == "" ? (vue.openBlock(), vue.createElementBlock("div", {
8835
- key: 0,
8889
+ vue.createElementVNode("div", {
8836
8890
  class: "key-board-wrapper key-board-finish",
8837
8891
  onClick: _cache[5] || (_cache[5] = ($event) => _ctx.closeBoard())
8838
8892
  }, [
8839
8893
  vue.createElementVNode("div", {
8840
8894
  class: vue.normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
8841
8895
  }, vue.toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
8842
- ])) : vue.createCommentVNode("", true)
8896
+ ])
8843
8897
  ])) : vue.createCommentVNode("", true)
8844
8898
  ])
8845
8899
  ], 512)
@@ -10741,10 +10795,7 @@
10741
10795
  style: vue.normalizeStyle(_ctx.getStyle)
10742
10796
  }, [
10743
10797
  vue.createElementVNode("view", _hoisted_1$M, [
10744
- vue.createVNode(_component_nut_icon, {
10745
- class: "top-img",
10746
- name: _ctx.pullIcon
10747
- }, null, 8, ["name"]),
10798
+ vue.createVNode(_component_nut_icon, vue.mergeProps({ class: "top-img" }, _ctx.$attrs, { name: _ctx.pullIcon }), null, 16, ["name"]),
10748
10799
  vue.createElementVNode("view", _hoisted_2$D, vue.toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
10749
10800
  ])
10750
10801
  ], 4),
@@ -10754,10 +10805,7 @@
10754
10805
  vue.createElementVNode("view", _hoisted_4$n, [
10755
10806
  _ctx.isInfiniting ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$g, [
10756
10807
  !_ctx.slots.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
10757
- vue.createVNode(_component_nut_icon, {
10758
- class: "bottom-img",
10759
- name: _ctx.loadIcon
10760
- }, null, 8, ["name"]),
10808
+ vue.createVNode(_component_nut_icon, vue.mergeProps({ class: "bottom-img" }, _ctx.$attrs, { name: _ctx.loadIcon }), null, 16, ["name"]),
10761
10809
  vue.createElementVNode("view", _hoisted_6$f, vue.toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
10762
10810
  ], 64)) : vue.renderSlot(_ctx.$slots, "loading", { key: 1 })
10763
10811
  ])) : !_ctx.hasMore ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -10786,7 +10834,7 @@
10786
10834
  type: String,
10787
10835
  default: "danger"
10788
10836
  },
10789
- showPopup: {
10837
+ modelVisible: {
10790
10838
  type: Boolean,
10791
10839
  default: false
10792
10840
  },
@@ -10809,7 +10857,7 @@
10809
10857
  });
10810
10858
  vue.onMounted(() => {
10811
10859
  });
10812
- const visible = vue.ref(false);
10860
+ const showPopup = vue.ref(props.modelVisible);
10813
10861
  const clickCover = () => {
10814
10862
  props.onClick && props.onClick();
10815
10863
  };
@@ -10843,7 +10891,7 @@
10843
10891
  props.unmount && props.unmount(props.id);
10844
10892
  props.onClose && props.onClose();
10845
10893
  };
10846
- return { state, hide, onAfterLeave, clickCover, visible };
10894
+ return { state, hide, onAfterLeave, clickCover, showPopup };
10847
10895
  }
10848
10896
  });
10849
10897
  function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
@@ -10872,18 +10920,12 @@
10872
10920
  var Notify = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$T]]);
10873
10921
  const defaultOptions$1 = {
10874
10922
  type: "base",
10875
- showPopup: true,
10876
10923
  visible: true,
10877
10924
  msg: "",
10878
10925
  color: void 0,
10879
10926
  background: void 0,
10880
10927
  duration: 3e3,
10881
- className: "",
10882
- onClosed: null,
10883
- onClick: null,
10884
- onOpened: null,
10885
- textTimer: null,
10886
- unmount: null
10928
+ className: ""
10887
10929
  };
10888
10930
  let idsMap$1 = [];
10889
10931
  let optsMap$1 = [];
@@ -11429,12 +11471,13 @@
11429
11471
  style: vue.normalizeStyle(_ctx.style)
11430
11472
  }, [
11431
11473
  vue.createElementVNode("view", _hoisted_1$K, [
11432
- _ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
11474
+ _ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
11433
11475
  key: 0,
11434
- name: _ctx.name,
11476
+ name: _ctx.name
11477
+ }, _ctx.$attrs, {
11435
11478
  size: _ctx.size,
11436
11479
  color: _ctx.color
11437
- }, null, 8, ["name", "size", "color"])) : vue.createCommentVNode("", true),
11480
+ }), null, 16, ["name", "size", "color"])) : vue.createCommentVNode("", true),
11438
11481
  _ctx.activeText ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
11439
11482
  vue.withDirectives(vue.createElementVNode("view", { class: "nut-switch-label open" }, vue.toDisplayString(_ctx.activeText), 513), [
11440
11483
  [vue.vShow, _ctx.modelValue]
@@ -11614,11 +11657,10 @@
11614
11657
  })
11615
11658
  }, [
11616
11659
  _ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$J, [
11617
- vue.createVNode(_component_nut_icon, {
11618
- size: _ctx.iconSize,
11660
+ vue.createVNode(_component_nut_icon, vue.mergeProps({ size: _ctx.iconSize }, _ctx.$attrs, {
11619
11661
  color: "#ffffff",
11620
11662
  name: _ctx.icon
11621
- }, null, 8, ["size", "name"])
11663
+ }), null, 16, ["size", "name"])
11622
11664
  ])) : vue.createCommentVNode("", true),
11623
11665
  _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$C, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
11624
11666
  vue.createElementVNode("view", {
@@ -11784,7 +11826,7 @@
11784
11826
  }
11785
11827
  },
11786
11828
  components: {},
11787
- emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute"],
11829
+ emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "can-play"],
11788
11830
  setup(props, { emit }) {
11789
11831
  const audioRef = vue.ref(null);
11790
11832
  const audioData = vue.reactive({
@@ -11816,22 +11858,25 @@
11816
11858
  } catch (e) {
11817
11859
  console.log(e.message);
11818
11860
  }
11819
- setTimeout(() => {
11820
- const audioR = audioRef.value;
11821
- if (props.autoplay) {
11822
- if (audioR && audioR.paused) {
11823
- audioR.play();
11824
- }
11825
- }
11826
- audioData.second = audioR.duration;
11827
- audioData.duration = formatSeconds(audioR.duration);
11828
- }, 500);
11829
11861
  });
11862
+ const onCanplay = (e) => {
11863
+ const audioR = audioRef.value;
11864
+ if (props.autoplay) {
11865
+ if (audioR && audioR.paused) {
11866
+ audioR.play();
11867
+ }
11868
+ }
11869
+ audioData.second = audioR.duration;
11870
+ audioData.duration = formatSeconds(audioR.duration);
11871
+ emit("can-play", e);
11872
+ };
11830
11873
  const onTimeupdate = (e) => {
11831
11874
  audioData.currentTime = parseInt(e.target.currentTime);
11832
11875
  };
11833
11876
  const fastBack = () => {
11834
- audioData.currentTime--;
11877
+ if (audioData.currentTime > 0) {
11878
+ audioData.currentTime--;
11879
+ }
11835
11880
  audioRef.value.currentTime = audioData.currentTime;
11836
11881
  emit("fastBack", audioData.currentTime);
11837
11882
  };
@@ -11870,37 +11915,17 @@
11870
11915
  emit("mute", audioData.hanMuted);
11871
11916
  };
11872
11917
  const formatSeconds = (value) => {
11873
- let theTime = parseInt(value);
11874
- let theTime1 = 0;
11875
- let theTime2 = 0;
11876
- if (theTime > 60) {
11877
- theTime1 = Math.floor(theTime / 60);
11878
- theTime = Math.floor(theTime % 60);
11879
- if (theTime1 > 60) {
11880
- theTime2 = Math.floor(theTime1 / 60);
11881
- theTime1 = Math.floor(theTime1 % 60);
11882
- }
11918
+ if (!value) {
11919
+ return "00:00:00";
11883
11920
  }
11921
+ let time = parseInt(value);
11922
+ let hours = Math.floor(time / 3600);
11923
+ let minutes = Math.floor((time - hours * 3600) / 60);
11924
+ let seconds = time - hours * 3600 - minutes * 60;
11884
11925
  let result = "";
11885
- if (theTime < 10) {
11886
- result = "0" + result;
11887
- }
11888
- if (theTime1 > 0) {
11889
- result = "" + theTime1 + ":" + result;
11890
- if (theTime1 < 10) {
11891
- result = "0" + result;
11892
- }
11893
- } else {
11894
- result = "00:" + result;
11895
- }
11896
- if (theTime2 > 0) {
11897
- result = "" + theTime2 + ":" + result;
11898
- if (theTime2 < 10) {
11899
- result = "0" + result;
11900
- }
11901
- } else {
11902
- result = "00:" + result;
11903
- }
11926
+ result += ("0" + hours.toString()).slice(-2) + ":";
11927
+ result += ("0" + minutes.toString()).slice(-2) + ":";
11928
+ result += ("0" + seconds.toString()).slice(-2);
11904
11929
  return result;
11905
11930
  };
11906
11931
  vue.watch(() => audioData.currentTime, (value) => {
@@ -11925,7 +11950,8 @@
11925
11950
  progressChange,
11926
11951
  audioEnd,
11927
11952
  onTimeupdate,
11928
- handleMute
11953
+ handleMute,
11954
+ onCanplay
11929
11955
  };
11930
11956
  }
11931
11957
  });
@@ -11998,7 +12024,8 @@
11998
12024
  autoplay: _ctx.autoplay,
11999
12025
  loop: _ctx.loop,
12000
12026
  onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
12001
- onEnded: _cache[4] || (_cache[4] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
12027
+ onCanplay: _cache[4] || (_cache[4] = (...args) => _ctx.onCanplay && _ctx.onCanplay(...args)),
12028
+ onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
12002
12029
  muted: _ctx.hanMuted
12003
12030
  }, null, 40, _hoisted_8$7)
12004
12031
  ]);
@@ -12009,9 +12036,7 @@
12009
12036
  props: {
12010
12037
  type: {
12011
12038
  type: String,
12012
- default() {
12013
- return "play";
12014
- }
12039
+ default: () => "play"
12015
12040
  }
12016
12041
  },
12017
12042
  components: {},
@@ -12244,11 +12269,10 @@
12244
12269
  src: _ctx.url,
12245
12270
  alt: _ctx.alt,
12246
12271
  onError: _cache[0] || (_cache[0] = (...args) => _ctx.onError && _ctx.onError(...args))
12247
- }, null, 40, _hoisted_1$G)) : _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
12248
- key: 1,
12272
+ }, null, 40, _hoisted_1$G)) : _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 1 }, _ctx.$attrs, {
12249
12273
  class: "icon",
12250
12274
  name: _ctx.iconStyles
12251
- }, null, 8, ["name"])) : vue.createCommentVNode("", true),
12275
+ }), null, 16, ["name"])) : vue.createCommentVNode("", true),
12252
12276
  _ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$z, [
12253
12277
  vue.renderSlot(_ctx.$slots, "default")
12254
12278
  ])) : vue.createCommentVNode("", true)
@@ -12557,12 +12581,11 @@
12557
12581
  _ctx.status == "active" || _ctx.status == "" ? (vue.openBlock(), vue.createElementBlock("span", {
12558
12582
  key: 0,
12559
12583
  style: vue.normalizeStyle(_ctx.textStyle)
12560
- }, vue.toDisplayString(_ctx.percentage) + vue.toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
12561
- key: 1,
12584
+ }, vue.toDisplayString(_ctx.percentage) + vue.toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 1 }, _ctx.$attrs, {
12562
12585
  size: "16px",
12563
12586
  name: _ctx.iconName,
12564
12587
  color: _ctx.iconColor
12565
- }, null, 8, ["name", "color"])) : vue.createCommentVNode("", true)
12588
+ }), null, 16, ["name", "color"])) : vue.createCommentVNode("", true)
12566
12589
  ], 4)) : vue.createCommentVNode("", true)
12567
12590
  ]);
12568
12591
  }
@@ -13034,10 +13057,10 @@
13034
13057
  onClick: _cache[2] || (_cache[2] = vue.withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
13035
13058
  }, [
13036
13059
  vue.renderSlot(_ctx.$slots, "right-icon", {}, () => [
13037
- vue.createVNode(_component_nut_icon, {
13060
+ vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
13038
13061
  name: _ctx.rightIcon ? _ctx.rightIcon : "close",
13039
13062
  color: _ctx.color
13040
- }, null, 8, ["name", "color"])
13063
+ }), null, 16, ["name", "color"])
13041
13064
  ])
13042
13065
  ])) : vue.createCommentVNode("", true)
13043
13066
  ], 6)), [
@@ -13618,13 +13641,14 @@
13618
13641
  vue.createElementVNode("view", {
13619
13642
  class: vue.normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
13620
13643
  }, [
13621
- _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
13644
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
13622
13645
  key: 0,
13623
- class: "nut-step-icon-inner",
13646
+ class: "nut-step-icon-inner"
13647
+ }, _ctx.$attrs, {
13624
13648
  color: _ctx.iconColor,
13625
13649
  name: _ctx.icon,
13626
13650
  size: _ctx.size
13627
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$n, vue.toDisplayString(_ctx.index), 1))
13651
+ }), null, 16, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$n, vue.toDisplayString(_ctx.index), 1))
13628
13652
  ], 2)
13629
13653
  ]),
13630
13654
  vue.createElementVNode("view", _hoisted_4$j, [
@@ -14741,10 +14765,7 @@
14741
14765
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCloseIcon && _ctx.handleCloseIcon(...args)),
14742
14766
  style: vue.normalizeStyle(_ctx.styles)
14743
14767
  }, [
14744
- vue.createVNode(_component_nut_icon, {
14745
- name: _ctx.closeIcon,
14746
- color: "#ffffff"
14747
- }, null, 8, ["name"])
14768
+ vue.createVNode(_component_nut_icon, vue.mergeProps({ name: _ctx.closeIcon }, _ctx.$attrs, { color: "#ffffff" }), null, 16, ["name"])
14748
14769
  ], 4)) : vue.createCommentVNode("", true)
14749
14770
  ]),
14750
14771
  _: 1
@@ -15694,23 +15715,19 @@
15694
15715
  };
15695
15716
  });
15696
15717
  const getStyle = () => {
15697
- if (color == null ? void 0 : color.value) {
15698
- return {
15699
- background: color.value,
15700
- color: textColor.value
15701
- };
15718
+ const style = {};
15719
+ if (textColor.value) {
15720
+ style.color = textColor.value;
15721
+ } else if (color.value && plain.value) {
15722
+ style.color = color.value;
15702
15723
  }
15703
15724
  if (plain.value) {
15704
- return {
15705
- color: "#FA2400",
15706
- background: "#fff",
15707
- border: "1px solid rgba(250,36,0,1)"
15708
- };
15725
+ style.background = "#fff";
15726
+ style["border-color"] = color.value;
15727
+ } else if (color.value) {
15728
+ style.background = color.value;
15709
15729
  }
15710
- return {
15711
- color: "",
15712
- background: ""
15713
- };
15730
+ return style;
15714
15731
  };
15715
15732
  const onClose = (event) => {
15716
15733
  event.stopPropagation();
@@ -16574,7 +16591,6 @@
16574
16591
  };
16575
16592
  });
16576
16593
  const createPopperInstance = () => {
16577
- console.log(reference.value, popoverRef.value);
16578
16594
  if (reference.value && popoverRef.value) {
16579
16595
  return createPopper(reference.value, popoverRef.value.popupRef, {
16580
16596
  placement: props.location,
@@ -16597,7 +16613,6 @@
16597
16613
  return null;
16598
16614
  };
16599
16615
  const clickOverlay = () => {
16600
- console.log("\u5173\u95ED");
16601
16616
  };
16602
16617
  const uploadLocation = () => {
16603
16618
  vue.nextTick(() => {
@@ -16605,7 +16620,6 @@
16605
16620
  return;
16606
16621
  if (!popper) {
16607
16622
  popper = createPopperInstance();
16608
- console.log(popper);
16609
16623
  } else {
16610
16624
  popper.setOptions({
16611
16625
  placement: props.location
@@ -16703,10 +16717,10 @@
16703
16717
  onClick: vue.withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
16704
16718
  }, [
16705
16719
  item.icon ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
16706
- vue.createVNode(_component_nut_icon, {
16720
+ vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
16707
16721
  class: "item-img",
16708
16722
  name: item.icon
16709
- }, null, 8, ["name"])
16723
+ }), null, 16, ["name"])
16710
16724
  ]) : vue.createCommentVNode("", true),
16711
16725
  vue.createElementVNode("view", _hoisted_2$o, vue.toDisplayString(item.name), 1)
16712
16726
  ], 10, _hoisted_1$t);
@@ -16894,20 +16908,18 @@
16894
16908
  emits: ["update:active", "change"],
16895
16909
  setup(props, { emit, slots }) {
16896
16910
  const collapseDom = vue.ref(null);
16911
+ const collapseChldren = vue.ref([]);
16897
16912
  vue.watch(() => props.active, (newval, oldval) => {
16898
- var _a, _b;
16899
- let domsProps = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots);
16900
- let doms = (_b = collapseDom.value) == null ? void 0 : _b.children;
16901
- Array.from(doms).forEach((dom, index) => {
16902
- const item = dom["__vueParentComponent"]["ctx"];
16913
+ let doms = collapseChldren.value;
16914
+ Array.from(doms).forEach((item) => {
16903
16915
  if (typeof newval == "number" || typeof newval == "string") {
16904
- if (newval == domsProps[index].props.name) {
16905
- item.changeOpen(!item.openExpanded);
16916
+ if (newval == item.name) {
16917
+ item.changeOpen(true);
16906
16918
  } else {
16907
16919
  item.changeOpen(false);
16908
16920
  }
16909
16921
  } else if (Object.values(newval) instanceof Array) {
16910
- if (newval.indexOf(Number(domsProps[index].props.name)) > -1 || newval.indexOf(String(domsProps[index].props.name)) > -1) {
16922
+ if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
16911
16923
  item.changeOpen(true);
16912
16924
  } else {
16913
16925
  item.changeOpen(false);
@@ -16916,6 +16928,9 @@
16916
16928
  item.animation();
16917
16929
  });
16918
16930
  });
16931
+ vue.onMounted(() => {
16932
+ collapseChldren.value = vue.getCurrentInstance().provides.collapseParent.children || [];
16933
+ });
16919
16934
  const changeVal = (val) => {
16920
16935
  emit("update:active", val);
16921
16936
  emit("change", val);
@@ -17157,13 +17172,14 @@
17157
17172
  vue.createElementVNode("view", _hoisted_1$q, [
17158
17173
  vue.createElementVNode("view", null, [
17159
17174
  vue.createElementVNode("view", _hoisted_2$m, [
17160
- _ctx.titleIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
17175
+ _ctx.titleIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
17161
17176
  key: 0,
17162
- name: _ctx.titleIcon,
17177
+ name: _ctx.titleIcon
17178
+ }, _ctx.$attrs, {
17163
17179
  size: _ctx.titleIconSize,
17164
17180
  color: _ctx.titleIconColor,
17165
- class: vue.normalizeClass([_ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"])
17166
- }, null, 8, ["name", "size", "color", "class"])) : vue.createCommentVNode("", true),
17181
+ class: [_ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"]
17182
+ }), null, 16, ["name", "size", "color", "class"])) : vue.createCommentVNode("", true),
17167
17183
  _ctx.$slots.mTitle ? vue.renderSlot(_ctx.$slots, "mTitle", { key: 1 }) : (vue.openBlock(), vue.createElementBlock("view", {
17168
17184
  key: 2,
17169
17185
  innerHTML: _ctx.title,
@@ -17179,14 +17195,15 @@
17179
17195
  innerHTML: _ctx.subTitle,
17180
17196
  class: "subTitle"
17181
17197
  }, null, 8, _hoisted_5$a)),
17182
- _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
17198
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
17183
17199
  key: 2,
17184
- name: _ctx.icon,
17200
+ name: _ctx.icon
17201
+ }, _ctx.$attrs, {
17185
17202
  size: _ctx.iconSize,
17186
17203
  color: _ctx.iconColor,
17187
- class: vue.normalizeClass(["collapse-icon", { "col-expanded": _ctx.openExpanded }, { "collapse-icon-disabled": _ctx.disabled }]),
17188
- style: vue.normalizeStyle(_ctx.iconStyle)
17189
- }, null, 8, ["name", "size", "color", "class", "style"])) : vue.createCommentVNode("", true)
17204
+ class: ["collapse-icon", { "col-expanded": _ctx.openExpanded }, { "collapse-icon-disabled": _ctx.disabled }],
17205
+ style: _ctx.iconStyle
17206
+ }), null, 16, ["name", "size", "color", "class", "style"])) : vue.createCommentVNode("", true)
17190
17207
  ], 2),
17191
17208
  _ctx.$slots.extraRender ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$9, [
17192
17209
  vue.createElementVNode("div", _hoisted_7$7, [
@@ -17739,7 +17756,6 @@
17739
17756
  const init = () => {
17740
17757
  const canvas = document.createElement("canvas");
17741
17758
  const ratio = window.devicePixelRatio;
17742
- console.log(ratio);
17743
17759
  const ctx = canvas.getContext("2d");
17744
17760
  const canvasWidth = `${(gapX + width) * ratio}px`;
17745
17761
  const canvasHeight = `${(gapY + height) * ratio}px`;
@@ -17759,7 +17775,6 @@
17759
17775
  ctx.drawImage(img, -imageWidth * ratio / 2, -imageHeight * ratio / 2, imageWidth * ratio, imageHeight * ratio);
17760
17776
  ctx.restore();
17761
17777
  state.base64Url = canvas.toDataURL();
17762
- console.log(state.base64Url);
17763
17778
  };
17764
17779
  } else if (content) {
17765
17780
  ctx.textBaseline = "middle";
@@ -17772,7 +17787,6 @@
17772
17787
  ctx.fillText(content, 0, 0);
17773
17788
  ctx.restore();
17774
17789
  state.base64Url = canvas.toDataURL();
17775
- console.log(state.base64Url);
17776
17790
  }
17777
17791
  } else {
17778
17792
  throw new Error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");
@@ -18195,7 +18209,7 @@
18195
18209
  };
18196
18210
  const _hoisted_12$1 = ["onClick"];
18197
18211
  const _hoisted_13$1 = { class: "elevator-group" };
18198
- const _hoisted_14 = {
18212
+ const _hoisted_14$1 = {
18199
18213
  key: 2,
18200
18214
  class: "exist-address"
18201
18215
  };
@@ -18233,10 +18247,10 @@
18233
18247
  class: "arrow-back",
18234
18248
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
18235
18249
  }, [
18236
- vue.withDirectives(vue.createVNode(_component_nut_icon, {
18250
+ vue.withDirectives(vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
18237
18251
  name: _ctx.backBtnIcon,
18238
18252
  color: "#cccccc"
18239
- }, null, 8, ["name"]), [
18253
+ }), null, 16, ["name"]), [
18240
18254
  [vue.vShow, _ctx.type == "exist" && _ctx.privateType == "custom" && _ctx.backBtnIcon]
18241
18255
  ])
18242
18256
  ]),
@@ -18245,12 +18259,11 @@
18245
18259
  class: "arrow-close",
18246
18260
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
18247
18261
  }, [
18248
- _ctx.closeBtnIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
18249
- key: 0,
18262
+ _ctx.closeBtnIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 0 }, _ctx.$attrs, {
18250
18263
  name: _ctx.closeBtnIcon,
18251
18264
  color: "#cccccc",
18252
18265
  size: "18px"
18253
- }, null, 8, ["name"])) : vue.createCommentVNode("", true)
18266
+ }), null, 16, ["name"])) : vue.createCommentVNode("", true)
18254
18267
  ])
18255
18268
  ]),
18256
18269
  _ctx.privateType == "custom" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$f, [
@@ -18278,13 +18291,14 @@
18278
18291
  class: vue.normalizeClass(["region-item", [_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]]),
18279
18292
  onClick: ($event) => _ctx.nextAreaList(item)
18280
18293
  }, [
18281
- _ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
18294
+ _ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
18282
18295
  key: 0,
18283
18296
  class: "region-item-icon",
18284
- type: "self",
18297
+ type: "self"
18298
+ }, _ctx.$attrs, {
18285
18299
  name: _ctx.selectedIcon,
18286
18300
  size: "13px"
18287
- }, null, 8, ["name"])) : vue.createCommentVNode("", true),
18301
+ }), null, 16, ["name"])) : vue.createCommentVNode("", true),
18288
18302
  vue.createTextVNode(vue.toDisplayString(item.name), 1)
18289
18303
  ], 10, _hoisted_9$2);
18290
18304
  }), 128))
@@ -18314,7 +18328,7 @@
18314
18328
  onClickItem: _ctx.handleElevatorItem
18315
18329
  }, null, 8, ["height", "index-list", "onClickItem"])
18316
18330
  ])
18317
- ])) : _ctx.privateType == "exist" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_14, [
18331
+ ])) : _ctx.privateType == "exist" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_14$1, [
18318
18332
  vue.createElementVNode("div", _hoisted_15, [
18319
18333
  vue.createElementVNode("ul", _hoisted_16, [
18320
18334
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.existAddress, (item, index) => {
@@ -18323,12 +18337,13 @@
18323
18337
  key: index,
18324
18338
  onClick: ($event) => _ctx.selectedExist(item)
18325
18339
  }, [
18326
- vue.createVNode(_component_nut_icon, {
18340
+ vue.createVNode(_component_nut_icon, vue.mergeProps({
18327
18341
  class: "exist-item-icon",
18328
- type: "self",
18342
+ type: "self"
18343
+ }, _ctx.$attrs, {
18329
18344
  name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
18330
18345
  size: "13px"
18331
- }, null, 8, ["name"]),
18346
+ }), null, 16, ["name"]),
18332
18347
  vue.createElementVNode("div", _hoisted_18, [
18333
18348
  item.name && item.phone ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
18334
18349
  vue.createElementVNode("div", _hoisted_20, vue.toDisplayString(item.name), 1),
@@ -18349,10 +18364,11 @@
18349
18364
  }, [
18350
18365
  vue.createElementVNode("div", _hoisted_23, vue.toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
18351
18366
  ])) : vue.createCommentVNode("", true)
18352
- ])) : vue.createCommentVNode("", true)
18367
+ ])) : vue.createCommentVNode("", true),
18368
+ vue.renderSlot(_ctx.$slots, "bottom")
18353
18369
  ])
18354
18370
  ]),
18355
- _: 1
18371
+ _: 3
18356
18372
  }, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
18357
18373
  }
18358
18374
  var Address = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n]]);
@@ -18485,7 +18501,15 @@
18485
18501
  },
18486
18502
  strokeStyle: {
18487
18503
  type: String,
18488
- default: "#000"
18504
+ default: () => {
18505
+ let bodyDom = document.getElementsByTagName("body");
18506
+ let clsName = bodyDom[0]["className"];
18507
+ if (clsName.indexOf("nut-theme-dark") == -1) {
18508
+ return "#000";
18509
+ } else {
18510
+ return "#fff";
18511
+ }
18512
+ }
18489
18513
  },
18490
18514
  type: {
18491
18515
  type: String,
@@ -18497,7 +18521,7 @@
18497
18521
  }
18498
18522
  },
18499
18523
  components: {},
18500
- emits: ["confirm", "clear"],
18524
+ emits: ["start", "end", "signing", "confirm", "clear"],
18501
18525
  setup(props, { emit }) {
18502
18526
  const canvas = vue.ref(null);
18503
18527
  const wrap = vue.ref(null);
@@ -18527,6 +18551,7 @@
18527
18551
  state.ctx.beginPath();
18528
18552
  state.ctx.lineWidth = props.lineWidth;
18529
18553
  state.ctx.strokeStyle = props.strokeStyle;
18554
+ emit("start");
18530
18555
  canvas.value.addEventListener(state.events[1], moveEventHandler, false);
18531
18556
  canvas.value.addEventListener(state.events[2], endEventHandler, false);
18532
18557
  canvas.value.addEventListener(state.events[3], leaveEventHandler, false);
@@ -18534,6 +18559,7 @@
18534
18559
  const moveEventHandler = (event) => {
18535
18560
  event.preventDefault();
18536
18561
  let evt = state.isSupportTouch ? event.touches[0] : event;
18562
+ emit("signing", evt);
18537
18563
  let coverPos = canvas.value.getBoundingClientRect();
18538
18564
  let mouseX = evt.clientX - coverPos.left;
18539
18565
  let mouseY = evt.clientY - coverPos.top;
@@ -18542,6 +18568,7 @@
18542
18568
  };
18543
18569
  const endEventHandler = (event) => {
18544
18570
  event.preventDefault();
18571
+ emit("end");
18545
18572
  canvas.value.removeEventListener(state.events[1], moveEventHandler, false);
18546
18573
  canvas.value.removeEventListener(state.events[2], endEventHandler, false);
18547
18574
  };
@@ -18589,7 +18616,7 @@
18589
18616
  };
18590
18617
  const _hoisted_2$i = ["height", "width"];
18591
18618
  const _hoisted_3$g = {
18592
- key: 1,
18619
+ key: 0,
18593
18620
  class: "nut-signature-unsopport"
18594
18621
  };
18595
18622
  function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
@@ -18598,12 +18625,14 @@
18598
18625
  class: vue.normalizeClass(_ctx.classes)
18599
18626
  }, [
18600
18627
  vue.createElementVNode("div", _hoisted_1$k, [
18601
- (() => _ctx.isCanvasSupported()) ? (vue.openBlock(), vue.createElementBlock("canvas", {
18602
- key: 0,
18628
+ vue.withDirectives(vue.createElementVNode("canvas", {
18603
18629
  ref: "canvas",
18604
18630
  height: _ctx.canvasHeight,
18605
18631
  width: _ctx.canvasWidth
18606
- }, null, 8, _hoisted_2$i)) : (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$g, vue.toDisplayString(_ctx.unSupportTpl || _ctx.translate("unSupportTpl")), 1))
18632
+ }, null, 8, _hoisted_2$i), [
18633
+ [vue.vShow, _ctx.isCanvasSupported()]
18634
+ ]),
18635
+ !_ctx.isCanvasSupported() ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$g, vue.toDisplayString(_ctx.unSupportTpl || _ctx.translate("unSupportTpl")), 1)) : vue.createCommentVNode("", true)
18607
18636
  ], 512),
18608
18637
  vue.createVNode(_component_nut_button, {
18609
18638
  class: "nut-signature-btn",
@@ -19596,7 +19625,7 @@
19596
19625
  ]);
19597
19626
  }
19598
19627
  var Ecard = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b]]);
19599
- var ItemContents_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => "@-webkit-keyframes nutFadeIn {\nfrom {\n opacity: 0;\n}\nto {\n opacity: 1;\n}\n}\n@keyframes nutFadeIn {\nfrom {\n opacity: 0;\n}\nto {\n opacity: 1;\n}\n}\n@-webkit-keyframes nutFadeOut {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n@keyframes nutFadeOut {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n.nutFade-enter-active,\n.nutFadeIn,\n.nutFade-leave-active,\n.nutFadeOut {\n -webkit-animation-duration: 0.25s;\n animation-duration: 0.25s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n}\n.nutFade-enter-active,\n.nutFadeIn {\n -webkit-animation-name: nutFadeIn;\n animation-name: nutFadeIn;\n}\n.nutFade-leave-active,\n.nutFadeOut {\n -webkit-animation-name: nutFadeOut;\n animation-name: nutFadeOut;\n}\n@-webkit-keyframes nutZoomIn {\nfrom {\n opacity: 0;\n -webkit-transform: scale3d(0.3, 0.3, 0.3);\n transform: scale3d(0.3, 0.3, 0.3);\n}\n50% {\n opacity: 1;\n}\n}\n@keyframes nutZoomIn {\nfrom {\n opacity: 0;\n -webkit-transform: scale3d(0.3, 0.3, 0.3);\n transform: scale3d(0.3, 0.3, 0.3);\n}\n50% {\n opacity: 1;\n}\n}\n@-webkit-keyframes nutZoomOut {\nfrom {\n opacity: 1;\n}\n50% {\n opacity: 0;\n -webkit-transform: scale3d(0.3, 0.3, 0.3);\n transform: scale3d(0.3, 0.3, 0.3);\n}\nto {\n opacity: 0;\n}\n}\n@keyframes nutZoomOut {\nfrom {\n opacity: 1;\n}\n50% {\n opacity: 0;\n -webkit-transform: scale3d(0.3, 0.3, 0.3);\n transform: scale3d(0.3, 0.3, 0.3);\n}\nto {\n opacity: 0;\n}\n}\n.nutZoom-enter-active,\n.nutZoomIn,\n.nutZoom-leave-active,\n.nutZoomOut {\n -webkit-animation-duration: 0.25s;\n animation-duration: 0.25s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n}\n.nutZoom-enter-active,\n.nutZoomIn {\n -webkit-animation-name: nutZoomIn;\n animation-name: nutZoomIn;\n}\n.nutZoom-leave-active,\n.nutZoomOut {\n -webkit-animation-name: nutZoomOut;\n animation-name: nutZoomOut;\n}\n@-webkit-keyframes nutEaseIn {\n0% {\n opacity: 0;\n -webkit-transform: scale(0.9);\n transform: scale(0.9);\n}\n100% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n}\n@keyframes nutEaseIn {\n0% {\n opacity: 0;\n -webkit-transform: scale(0.9);\n transform: scale(0.9);\n}\n100% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n}\n@-webkit-keyframes nutEaseOut {\n0% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n100% {\n opacity: 0;\n -webkit-transform: scale(0.9);\n transform: scale(0.9);\n}\n}\n@keyframes nutEaseOut {\n0% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n100% {\n opacity: 0;\n -webkit-transform: scale(0.9);\n transform: scale(0.9);\n}\n}\n.nutEase-enter-active,\n.nutEaseIn,\n.nutEase-leave-active,\n.nutEaseOut {\n -webkit-animation-duration: 0.25s;\n animation-duration: 0.25s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n}\n.nutEase-enter-active,\n.nutEaseIn {\n -webkit-animation-name: nutEaseIn;\n animation-name: nutEaseIn;\n}\n.nutEase-leave-active,\n.nutEaseOut {\n -webkit-animation-name: nutEaseOut;\n animation-name: nutEaseOut;\n}\n@-webkit-keyframes nutDropIn {\n0% {\n opacity: 0;\n -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n100% {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n}\n}\n@keyframes nutDropIn {\n0% {\n opacity: 0;\n -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n100% {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n}\n}\n@-webkit-keyframes nutDropOut {\n0% {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n}\n100% {\n opacity: 0;\n -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n}\n@keyframes nutDropOut {\n0% {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n}\n100% {\n opacity: 0;\n -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n}\n.nutDrop-enter-active,\n.nutDropIn,\n.nutDrop-leave-active,\n.nutDropOut {\n -webkit-animation-duration: 0.25s;\n animation-duration: 0.25s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n}\n.nutDrop-enter-active,\n.nutDropIn {\n -webkit-animation-name: nutDropIn;\n animation-name: nutDropIn;\n}\n.nutDrop-leave-active,\n.nutDropOut {\n -webkit-animation-name: nutDropOut;\n animation-name: nutDropOut;\n}\n@-webkit-keyframes rotation {\n0% {\n -webkit-transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(360deg);\n}\n}\n@keyframes rotation {\n0% {\n -webkit-transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(360deg);\n}\n}\n.nutRotate-enter-active,\n.nutRotateIn,\n.nutRotate-leave-active,\n.nutRotateOut {\n -webkit-animation-duration: 0.25s;\n animation-duration: 0.25s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n}\n.nutRotate-enter-active,\n.nutRotateIn {\n -webkit-animation-name: nutRotateIn;\n animation-name: nutRotateIn;\n}\n.nutRotate-leave-active,\n.nutRotateOut {\n -webkit-animation-name: nutRotateOut;\n animation-name: nutRotateOut;\n}\n@-webkit-keyframes nutJump {\nto {\n -webkit-transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n}\n}\n@keyframes nutJump {\nto {\n -webkit-transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n}\n}\n@-webkit-keyframes nutJumpOne {\n50% {\n -webkit-transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n}\n100% {\n -webkit-transform: scale3d(1, 1, 1) translateY(0);\n transform: scale3d(1, 1, 1) translateY(0);\n}\n}\n@keyframes nutJumpOne {\n50% {\n -webkit-transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n}\n100% {\n -webkit-transform: scale3d(1, 1, 1) translateY(0);\n transform: scale3d(1, 1, 1) translateY(0);\n}\n}\n@-webkit-keyframes nutBlink {\n0% {\n opacity: 0;\n}\n100% {\n opacity: 1;\n}\n}\n@keyframes nutBlink {\n0% {\n opacity: 0;\n}\n100% {\n opacity: 1;\n}\n}\n@-webkit-keyframes nutBreathe {\nfrom, to {\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n50% {\n -webkit-transform: scale(1.2);\n transform: scale(1.2);\n}\n}\n@keyframes nutBreathe {\nfrom, to {\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n50% {\n -webkit-transform: scale(1.2);\n transform: scale(1.2);\n}\n}\n@-webkit-keyframes nutFlash {\nfrom, 50%, to {\n opacity: 1;\n}\n25%, 75% {\n opacity: 0;\n}\n}\n@keyframes nutFlash {\nfrom, 50%, to {\n opacity: 1;\n}\n25%, 75% {\n opacity: 0;\n}\n}\n@-webkit-keyframes nutBounce {\nfrom, 20%, 53%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n40%, 43% {\n -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n -webkit-transform: translate3d(0, -30px, 0) scaleY(1.1);\n transform: translate3d(0, -30px, 0) scaleY(1.1);\n}\n70% {\n -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n -webkit-transform: translate3d(0, -15px, 0) scaleY(1.05);\n transform: translate3d(0, -15px, 0) scaleY(1.05);\n}\n80% {\n -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n -webkit-transform: translate3d(0, 0, 0) scaleY(0.95);\n transform: translate3d(0, 0, 0) scaleY(0.95);\n}\n90% {\n -webkit-transform: translate3d(0, -4px, 0) scaleY(1.02);\n transform: translate3d(0, -4px, 0) scaleY(1.02);\n}\n}\n@keyframes nutBounce {\nfrom, 20%, 53%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n40%, 43% {\n -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n -webkit-transform: translate3d(0, -30px, 0) scaleY(1.1);\n transform: translate3d(0, -30px, 0) scaleY(1.1);\n}\n70% {\n -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n -webkit-transform: translate3d(0, -15px, 0) scaleY(1.05);\n transform: translate3d(0, -15px, 0) scaleY(1.05);\n}\n80% {\n -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n -webkit-transform: translate3d(0, 0, 0) scaleY(0.95);\n transform: translate3d(0, 0, 0) scaleY(0.95);\n}\n90% {\n -webkit-transform: translate3d(0, -4px, 0) scaleY(1.02);\n transform: translate3d(0, -4px, 0) scaleY(1.02);\n}\n}\n@-webkit-keyframes nutShake {\n0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n6.5% {\n -webkit-transform: translateX(-6px) rotateY(-9deg);\n transform: translateX(-6px) rotateY(-9deg);\n}\n18.5% {\n -webkit-transform: translateX(5px) rotateY(7deg);\n transform: translateX(5px) rotateY(7deg);\n}\n31.5% {\n -webkit-transform: translateX(-3px) rotateY(-5deg);\n transform: translateX(-3px) rotateY(-5deg);\n}\n43.5% {\n -webkit-transform: translateX(2px) rotateY(3deg);\n transform: translateX(2px) rotateY(3deg);\n}\n50% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n}\n@keyframes nutShake {\n0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n6.5% {\n -webkit-transform: translateX(-6px) rotateY(-9deg);\n transform: translateX(-6px) rotateY(-9deg);\n}\n18.5% {\n -webkit-transform: translateX(5px) rotateY(7deg);\n transform: translateX(5px) rotateY(7deg);\n}\n31.5% {\n -webkit-transform: translateX(-3px) rotateY(-5deg);\n transform: translateX(-3px) rotateY(-5deg);\n}\n43.5% {\n -webkit-transform: translateX(2px) rotateY(3deg);\n transform: translateX(2px) rotateY(3deg);\n}\n50% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n}\n/* @import './index.scss'; */")();
19628
+ var ItemContents_vue_vue_type_style_index_0_lang = "";
19600
19629
  const { componentName: componentName$a, create: create$a } = createComponent("item-contents");
19601
19630
  const { translate: translate$3 } = createComponent("addresslist");
19602
19631
  const _sfc_main$a = create$a({
@@ -19615,7 +19644,6 @@
19615
19644
  setup(props, { emit }) {
19616
19645
  const delClick = (event) => {
19617
19646
  emit("delIconClick", event, props.item);
19618
- console.log(123);
19619
19647
  event.stopPropagation();
19620
19648
  };
19621
19649
  const editClick = (event) => {
@@ -20064,8 +20092,7 @@
20064
20092
  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"
20065
20093
  });
20066
20094
  const trowelData = () => {
20067
- console.log("props.data", props.data);
20068
- if (Object.keys(props.dataMapOptions).length > 0 && props.data.length > 0) {
20095
+ if (Object.keys(props.dataMapOptions).length > 0) {
20069
20096
  dataArray.value = props.data.map((item, index) => {
20070
20097
  return floatData(dataInfo, item, props.dataMapOptions);
20071
20098
  });
@@ -20250,7 +20277,7 @@
20250
20277
  vue.createElementVNode("div", {
20251
20278
  class: vue.normalizeClass([_ctx.checkIndex == index ? "nut-category__cateListItemChecked" : "nut-category__cateListItem"]),
20252
20279
  onClick: ($event) => _ctx.getChildList(index)
20253
- }, vue.toDisplayString(item.catName), 11, _hoisted_4$5)
20280
+ }, vue.toDisplayString(item == null ? void 0 : item.catName), 11, _hoisted_4$5)
20254
20281
  ]);
20255
20282
  }), 128))
20256
20283
  ])) : vue.createCommentVNode("", true),
@@ -20259,7 +20286,6 @@
20259
20286
  ]);
20260
20287
  }
20261
20288
  var Category = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
20262
- var index_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => "@-webkit-keyframes nutFadeIn {\nfrom {\n opacity: 0;\n}\nto {\n opacity: 1;\n}\n}\n@keyframes nutFadeIn {\nfrom {\n opacity: 0;\n}\nto {\n opacity: 1;\n}\n}\n@-webkit-keyframes nutFadeOut {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n@keyframes nutFadeOut {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n.nutFade-enter-active,\n.nutFadeIn,\n.nutFade-leave-active,\n.nutFadeOut {\n -webkit-animation-duration: 0.25s;\n animation-duration: 0.25s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n}\n.nutFade-enter-active,\n.nutFadeIn {\n -webkit-animation-name: nutFadeIn;\n animation-name: nutFadeIn;\n}\n.nutFade-leave-active,\n.nutFadeOut {\n -webkit-animation-name: nutFadeOut;\n animation-name: nutFadeOut;\n}\n@-webkit-keyframes nutZoomIn {\nfrom {\n opacity: 0;\n -webkit-transform: scale3d(0.3, 0.3, 0.3);\n transform: scale3d(0.3, 0.3, 0.3);\n}\n50% {\n opacity: 1;\n}\n}\n@keyframes nutZoomIn {\nfrom {\n opacity: 0;\n -webkit-transform: scale3d(0.3, 0.3, 0.3);\n transform: scale3d(0.3, 0.3, 0.3);\n}\n50% {\n opacity: 1;\n}\n}\n@-webkit-keyframes nutZoomOut {\nfrom {\n opacity: 1;\n}\n50% {\n opacity: 0;\n -webkit-transform: scale3d(0.3, 0.3, 0.3);\n transform: scale3d(0.3, 0.3, 0.3);\n}\nto {\n opacity: 0;\n}\n}\n@keyframes nutZoomOut {\nfrom {\n opacity: 1;\n}\n50% {\n opacity: 0;\n -webkit-transform: scale3d(0.3, 0.3, 0.3);\n transform: scale3d(0.3, 0.3, 0.3);\n}\nto {\n opacity: 0;\n}\n}\n.nutZoom-enter-active,\n.nutZoomIn,\n.nutZoom-leave-active,\n.nutZoomOut {\n -webkit-animation-duration: 0.25s;\n animation-duration: 0.25s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n}\n.nutZoom-enter-active,\n.nutZoomIn {\n -webkit-animation-name: nutZoomIn;\n animation-name: nutZoomIn;\n}\n.nutZoom-leave-active,\n.nutZoomOut {\n -webkit-animation-name: nutZoomOut;\n animation-name: nutZoomOut;\n}\n@-webkit-keyframes nutEaseIn {\n0% {\n opacity: 0;\n -webkit-transform: scale(0.9);\n transform: scale(0.9);\n}\n100% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n}\n@keyframes nutEaseIn {\n0% {\n opacity: 0;\n -webkit-transform: scale(0.9);\n transform: scale(0.9);\n}\n100% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n}\n@-webkit-keyframes nutEaseOut {\n0% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n100% {\n opacity: 0;\n -webkit-transform: scale(0.9);\n transform: scale(0.9);\n}\n}\n@keyframes nutEaseOut {\n0% {\n opacity: 1;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n100% {\n opacity: 0;\n -webkit-transform: scale(0.9);\n transform: scale(0.9);\n}\n}\n.nutEase-enter-active,\n.nutEaseIn,\n.nutEase-leave-active,\n.nutEaseOut {\n -webkit-animation-duration: 0.25s;\n animation-duration: 0.25s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n}\n.nutEase-enter-active,\n.nutEaseIn {\n -webkit-animation-name: nutEaseIn;\n animation-name: nutEaseIn;\n}\n.nutEase-leave-active,\n.nutEaseOut {\n -webkit-animation-name: nutEaseOut;\n animation-name: nutEaseOut;\n}\n@-webkit-keyframes nutDropIn {\n0% {\n opacity: 0;\n -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n100% {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n}\n}\n@keyframes nutDropIn {\n0% {\n opacity: 0;\n -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n100% {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n}\n}\n@-webkit-keyframes nutDropOut {\n0% {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n}\n100% {\n opacity: 0;\n -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n}\n@keyframes nutDropOut {\n0% {\n opacity: 1;\n -webkit-transform: scaleY(1);\n transform: scaleY(1);\n}\n100% {\n opacity: 0;\n -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n}\n.nutDrop-enter-active,\n.nutDropIn,\n.nutDrop-leave-active,\n.nutDropOut {\n -webkit-animation-duration: 0.25s;\n animation-duration: 0.25s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n}\n.nutDrop-enter-active,\n.nutDropIn {\n -webkit-animation-name: nutDropIn;\n animation-name: nutDropIn;\n}\n.nutDrop-leave-active,\n.nutDropOut {\n -webkit-animation-name: nutDropOut;\n animation-name: nutDropOut;\n}\n@-webkit-keyframes rotation {\n0% {\n -webkit-transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(360deg);\n}\n}\n@keyframes rotation {\n0% {\n -webkit-transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(360deg);\n}\n}\n.nutRotate-enter-active,\n.nutRotateIn,\n.nutRotate-leave-active,\n.nutRotateOut {\n -webkit-animation-duration: 0.25s;\n animation-duration: 0.25s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n -webkit-animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);\n}\n.nutRotate-enter-active,\n.nutRotateIn {\n -webkit-animation-name: nutRotateIn;\n animation-name: nutRotateIn;\n}\n.nutRotate-leave-active,\n.nutRotateOut {\n -webkit-animation-name: nutRotateOut;\n animation-name: nutRotateOut;\n}\n@-webkit-keyframes nutJump {\nto {\n -webkit-transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n}\n}\n@keyframes nutJump {\nto {\n -webkit-transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n}\n}\n@-webkit-keyframes nutJumpOne {\n50% {\n -webkit-transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n}\n100% {\n -webkit-transform: scale3d(1, 1, 1) translateY(0);\n transform: scale3d(1, 1, 1) translateY(0);\n}\n}\n@keyframes nutJumpOne {\n50% {\n -webkit-transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n transform: scale3d(0.8, 1, 0.9) translateY(-10px);\n}\n100% {\n -webkit-transform: scale3d(1, 1, 1) translateY(0);\n transform: scale3d(1, 1, 1) translateY(0);\n}\n}\n@-webkit-keyframes nutBlink {\n0% {\n opacity: 0;\n}\n100% {\n opacity: 1;\n}\n}\n@keyframes nutBlink {\n0% {\n opacity: 0;\n}\n100% {\n opacity: 1;\n}\n}\n@-webkit-keyframes nutBreathe {\nfrom, to {\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n50% {\n -webkit-transform: scale(1.2);\n transform: scale(1.2);\n}\n}\n@keyframes nutBreathe {\nfrom, to {\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n50% {\n -webkit-transform: scale(1.2);\n transform: scale(1.2);\n}\n}\n@-webkit-keyframes nutFlash {\nfrom, 50%, to {\n opacity: 1;\n}\n25%, 75% {\n opacity: 0;\n}\n}\n@keyframes nutFlash {\nfrom, 50%, to {\n opacity: 1;\n}\n25%, 75% {\n opacity: 0;\n}\n}\n@-webkit-keyframes nutBounce {\nfrom, 20%, 53%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n40%, 43% {\n -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n -webkit-transform: translate3d(0, -30px, 0) scaleY(1.1);\n transform: translate3d(0, -30px, 0) scaleY(1.1);\n}\n70% {\n -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n -webkit-transform: translate3d(0, -15px, 0) scaleY(1.05);\n transform: translate3d(0, -15px, 0) scaleY(1.05);\n}\n80% {\n -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n -webkit-transform: translate3d(0, 0, 0) scaleY(0.95);\n transform: translate3d(0, 0, 0) scaleY(0.95);\n}\n90% {\n -webkit-transform: translate3d(0, -4px, 0) scaleY(1.02);\n transform: translate3d(0, -4px, 0) scaleY(1.02);\n}\n}\n@keyframes nutBounce {\nfrom, 20%, 53%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n40%, 43% {\n -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n -webkit-transform: translate3d(0, -30px, 0) scaleY(1.1);\n transform: translate3d(0, -30px, 0) scaleY(1.1);\n}\n70% {\n -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n -webkit-transform: translate3d(0, -15px, 0) scaleY(1.05);\n transform: translate3d(0, -15px, 0) scaleY(1.05);\n}\n80% {\n -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n -webkit-transform: translate3d(0, 0, 0) scaleY(0.95);\n transform: translate3d(0, 0, 0) scaleY(0.95);\n}\n90% {\n -webkit-transform: translate3d(0, -4px, 0) scaleY(1.02);\n transform: translate3d(0, -4px, 0) scaleY(1.02);\n}\n}\n@-webkit-keyframes nutShake {\n0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n6.5% {\n -webkit-transform: translateX(-6px) rotateY(-9deg);\n transform: translateX(-6px) rotateY(-9deg);\n}\n18.5% {\n -webkit-transform: translateX(5px) rotateY(7deg);\n transform: translateX(5px) rotateY(7deg);\n}\n31.5% {\n -webkit-transform: translateX(-3px) rotateY(-5deg);\n transform: translateX(-3px) rotateY(-5deg);\n}\n43.5% {\n -webkit-transform: translateX(2px) rotateY(3deg);\n transform: translateX(2px) rotateY(3deg);\n}\n50% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n}\n@keyframes nutShake {\n0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n6.5% {\n -webkit-transform: translateX(-6px) rotateY(-9deg);\n transform: translateX(-6px) rotateY(-9deg);\n}\n18.5% {\n -webkit-transform: translateX(5px) rotateY(7deg);\n transform: translateX(5px) rotateY(7deg);\n}\n31.5% {\n -webkit-transform: translateX(-3px) rotateY(-5deg);\n transform: translateX(-3px) rotateY(-5deg);\n}\n43.5% {\n -webkit-transform: translateX(2px) rotateY(3deg);\n transform: translateX(2px) rotateY(3deg);\n}\n50% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n}\n.nut-categorypane__cateList {\n display: -webkit-box;\n display: -ms-flexbox;\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: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-transition: all 0.3s;\n transition: all 0.3s;\n}\n.nut-categorypane__cateListItemChecked {\n background: rgb(255, 255, 255);\n font-weight: 500;\n -webkit-transition: all 0.3s;\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: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\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: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: 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: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.nut-categorypane__selfskuName {\n margin-left: 15px;\n margin-top: 15px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: 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: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: 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}")();
20263
20289
  const { componentName: componentName$4, create: create$4 } = createComponent("categorypane");
20264
20290
  const _sfc_main$4 = create$4({
20265
20291
  props: {
@@ -20313,13 +20339,14 @@
20313
20339
  key: 2,
20314
20340
  class: "nut-categorypane__selfItemList"
20315
20341
  };
20342
+ const _hoisted_14 = ["onClick"];
20316
20343
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
20317
20344
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
20318
20345
  _ctx.type == "classify" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$4, [
20319
20346
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.categoryChild, (item, index) => {
20320
20347
  return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
20321
- vue.createElementVNode("div", _hoisted_3$4, vue.toDisplayString(item.catName), 1),
20322
- item.catType == 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$4, [
20348
+ vue.createElementVNode("div", _hoisted_3$4, vue.toDisplayString(item == null ? void 0 : item.catName), 1),
20349
+ (item == null ? void 0 : item.catType) == 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$4, [
20323
20350
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.childCateList, (sku, key) => {
20324
20351
  return vue.openBlock(), vue.createElementBlock("div", {
20325
20352
  class: "nut-categorypane__childItem",
@@ -20330,7 +20357,7 @@
20330
20357
  class: "nut-categorypane__childImg",
20331
20358
  src: sku.backImg
20332
20359
  }, null, 8, _hoisted_6$1),
20333
- vue.createElementVNode("div", _hoisted_7, vue.toDisplayString(sku.catName), 1)
20360
+ vue.createElementVNode("div", _hoisted_7, vue.toDisplayString(sku == null ? void 0 : sku.catName), 1)
20334
20361
  ], 8, _hoisted_5$2);
20335
20362
  }), 128))
20336
20363
  ])) : vue.createCommentVNode("", true)
@@ -20340,15 +20367,15 @@
20340
20367
  _ctx.type == "text" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
20341
20368
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.categoryChild, (item, index) => {
20342
20369
  return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
20343
- vue.createElementVNode("div", _hoisted_9, vue.toDisplayString(item.catName), 1),
20344
- item.catType == 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
20370
+ vue.createElementVNode("div", _hoisted_9, vue.toDisplayString(item == null ? void 0 : item.catName), 1),
20371
+ (item == null ? void 0 : item.catType) == 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
20345
20372
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.childCateList, (sku, key) => {
20346
20373
  return vue.openBlock(), vue.createElementBlock("div", {
20347
20374
  class: "nut-categorypane__childItem",
20348
20375
  key,
20349
20376
  onClick: ($event) => _ctx.onChange(sku)
20350
20377
  }, [
20351
- vue.createElementVNode("div", _hoisted_12, vue.toDisplayString(sku.catName), 1)
20378
+ vue.createElementVNode("div", _hoisted_12, vue.toDisplayString(sku == null ? void 0 : sku.catName), 1)
20352
20379
  ], 8, _hoisted_11);
20353
20380
  }), 128))
20354
20381
  ])) : vue.createCommentVNode("", true)
@@ -20360,8 +20387,8 @@
20360
20387
  return vue.openBlock(), vue.createElementBlock("div", {
20361
20388
  class: "nut-categorypane__skuName",
20362
20389
  key,
20363
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onChange())
20364
- }, vue.toDisplayString(sku.catName), 1);
20390
+ onClick: ($event) => _ctx.onChange(sku)
20391
+ }, vue.toDisplayString(sku == null ? void 0 : sku.catName), 9, _hoisted_14);
20365
20392
  }), 128))
20366
20393
  ])) : vue.createCommentVNode("", true)
20367
20394
  ]);
@@ -20808,7 +20835,7 @@
20808
20835
  }
20809
20836
  });
20810
20837
  }
20811
- const version = "3.1.23-beta.5";
20838
+ const version = "3.2.1";
20812
20839
  var nutui_vue_build = { install, version, Locale };
20813
20840
  exports2.ActionSheet = ActionSheet;
20814
20841
  exports2.Address = Address;