@nutui/nutui 3.1.23-beta.6 → 3.2.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/dist/nutui.es.js +1475 -1070
  3. package/dist/nutui.umd.js +1468 -1063
  4. package/dist/packages/_es/ActionSheet.js +4 -22
  5. package/dist/packages/_es/Address.js +79 -71
  6. package/dist/packages/_es/AddressList.js +7 -5
  7. package/dist/packages/_es/Animate.js +2 -21
  8. package/dist/packages/_es/Audio.js +39 -68
  9. package/dist/packages/_es/AudioOperate.js +3 -24
  10. package/dist/packages/_es/Avatar.js +8 -24
  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 +7 -4
  15. package/dist/packages/_es/Button.js +6 -5
  16. package/dist/packages/_es/Calendar.js +10 -4
  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 +51 -65
  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 +31 -17
  25. package/dist/packages/_es/CheckboxGroup.js +14 -7
  26. package/dist/packages/_es/CircleProgress.js +1 -1
  27. package/dist/packages/_es/Col.js +5 -11
  28. package/dist/packages/_es/Collapse.js +22 -19
  29. package/dist/packages/_es/CollapseItem.js +30 -42
  30. package/dist/packages/_es/Comment.js +13 -9
  31. package/dist/packages/_es/ConfigProvider.js +8 -4
  32. package/dist/packages/_es/CountDown.js +40 -46
  33. package/dist/packages/_es/CountUp.js +39 -40
  34. package/dist/packages/_es/DatePicker.js +25 -33
  35. package/dist/packages/_es/Dialog.js +12 -27
  36. package/dist/packages/_es/Divider.js +7 -24
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +7 -4
  39. package/dist/packages/_es/Elevator.js +25 -38
  40. package/dist/packages/_es/Ellipsis.js +14 -28
  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 +8 -4
  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 +15 -11
  48. package/dist/packages/_es/Image.js +8 -24
  49. package/dist/packages/_es/ImagePreview.js +24 -39
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +8 -33
  52. package/dist/packages/_es/Input.js +75 -69
  53. package/dist/packages/_es/InputNumber.js +20 -14
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +10 -25
  56. package/dist/packages/_es/Menu.js +17 -10
  57. package/dist/packages/_es/MenuItem.js +5 -26
  58. package/dist/packages/_es/Navbar.js +10 -8
  59. package/dist/packages/_es/NoticeBar.js +20 -31
  60. package/dist/packages/_es/Notify.js +16 -32
  61. package/dist/packages/_es/NumberKeyboard.js +21 -16
  62. package/dist/packages/_es/OldPicker.js +47 -46
  63. package/dist/packages/_es/OverLay.js +11 -23
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +81 -59
  66. package/dist/packages/_es/Popover.js +58 -58
  67. package/dist/packages/_es/Popup.js +38 -43
  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 +5 -20
  71. package/dist/packages/_es/Radio.js +25 -13
  72. package/dist/packages/_es/RadioGroup.js +12 -5
  73. package/dist/packages/_es/Range.js +20 -33
  74. package/dist/packages/_es/Rate.js +5 -24
  75. package/dist/packages/_es/Row.js +5 -11
  76. package/dist/packages/_es/SearchBar.js +5 -24
  77. package/dist/packages/_es/ShortPassword.js +18 -11
  78. package/dist/packages/_es/SideNavBar.js +4 -22
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +15 -23
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +24 -32
  83. package/dist/packages/_es/Step.js +9 -26
  84. package/dist/packages/_es/Steps.js +8 -4
  85. package/dist/packages/_es/Sticky.js +23 -12
  86. package/dist/packages/_es/SubSideNavBar.js +4 -22
  87. package/dist/packages/_es/Swipe.js +5 -24
  88. package/dist/packages/_es/Swiper.js +23 -14
  89. package/dist/packages/_es/SwiperItem.js +1 -1
  90. package/dist/packages/_es/Switch.js +15 -11
  91. package/dist/packages/_es/TabPane.js +1 -1
  92. package/dist/packages/_es/Tabbar.js +7 -4
  93. package/dist/packages/_es/TabbarItem.js +13 -14
  94. package/dist/packages/_es/Table.js +10 -25
  95. package/dist/packages/_es/Tabs.js +20 -29
  96. package/dist/packages/_es/Tag.js +11 -15
  97. package/dist/packages/_es/TextArea.js +8 -5
  98. package/dist/packages/_es/TimeDetail.js +5 -24
  99. package/dist/packages/_es/TimePannel.js +4 -22
  100. package/dist/packages/_es/TimeSelect.js +1 -1
  101. package/dist/packages/_es/Toast.js +22 -39
  102. package/dist/packages/_es/Uploader.js +54 -54
  103. package/dist/packages/_es/Video.js +22 -33
  104. package/dist/packages/_es/WaterMark.js +31 -44
  105. package/dist/packages/_es/common.js +21 -11
  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 +26 -35
  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/button/index.scss +1 -0
  122. package/dist/packages/card/index.scss +8 -1
  123. package/dist/packages/category/index.scss +25 -4
  124. package/dist/packages/categorypane/index.scss +18 -65
  125. package/dist/packages/circleprogress/index.scss +6 -0
  126. package/dist/packages/collapseitem/index.scss +21 -0
  127. package/dist/packages/comment/index.scss +37 -0
  128. package/dist/packages/countup/index.scss +24 -3
  129. package/dist/packages/ecard/index.scss +31 -1
  130. package/dist/packages/elevator/index.scss +16 -0
  131. package/dist/packages/empty/index.scss +6 -0
  132. package/dist/packages/fixednav/index.scss +7 -0
  133. package/dist/packages/image/index.scss +12 -0
  134. package/dist/packages/infiniteloading/index.scss +18 -0
  135. package/dist/packages/locale/lang/baseLang.js +1 -1
  136. package/dist/packages/locale/lang/en-US.js +1 -1
  137. package/dist/packages/locale/lang/id-ID.js +1 -1
  138. package/dist/packages/locale/lang/index.js +1 -1
  139. package/dist/packages/locale/lang/zh-CN.js +1 -1
  140. package/dist/packages/locale/lang/zh-TW.js +1 -1
  141. package/dist/packages/menu/index.scss +14 -2
  142. package/dist/packages/menuitem/index.scss +8 -0
  143. package/dist/packages/noticebar/index.scss +13 -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/radio/index.scss +1 -0
  148. package/dist/packages/shortpassword/index.scss +20 -0
  149. package/dist/packages/sidenavbaritem/index.scss +9 -0
  150. package/dist/packages/sku/index.scss +40 -0
  151. package/dist/packages/step/index.scss +52 -0
  152. package/dist/packages/subsidenavbar/index.scss +12 -0
  153. package/dist/packages/swiper/index.scss +2 -0
  154. package/dist/packages/swiperitem/index.scss +3 -0
  155. package/dist/packages/tag/index.scss +20 -0
  156. package/dist/packages/watermark/index.scss +1 -1
  157. package/dist/smartips/attributes.json +38 -2
  158. package/dist/smartips/tags.json +14 -4
  159. package/dist/smartips/web-types.json +86 -4
  160. package/dist/style.css +1 -1
  161. package/dist/styles/themes/default.scss +51 -51
  162. package/dist/styles/themes/jdb.scss +51 -51
  163. package/dist/styles/themes/jdt.scss +51 -51
  164. package/dist/styles/variables-jdb.scss +28 -7
  165. package/dist/styles/variables-jdt.scss +28 -7
  166. package/dist/styles/variables.scss +27 -7
  167. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
  168. package/dist/types/__VUE/address/index.vue.d.ts +1 -1
  169. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
  171. package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
  172. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  173. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/calendar/index.vue.d.ts +7 -0
  175. package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
  176. package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
  177. package/dist/types/__VUE/cell/index.vue.d.ts +9 -2
  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/col/index.vue.d.ts +2 -5
  182. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  183. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  184. package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
  185. package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
  186. package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
  187. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  188. package/dist/types/__VUE/fixednav/common.d.ts +56 -0
  189. package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
  190. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
  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.d.ts +7 -6
  194. package/dist/types/__VUE/imagepreview/index.vue.d.ts +4 -4
  195. package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
  196. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
  197. package/dist/types/__VUE/input/index.vue.d.ts +4 -9
  198. package/dist/types/__VUE/inputnumber/index.vue.d.ts +15 -1
  199. package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
  200. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -4
  201. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
  202. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
  203. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
  204. package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
  205. package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
  206. package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
  207. package/dist/types/__VUE/picker/index.vue.d.ts +28 -13
  208. package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
  209. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
  210. package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
  211. package/dist/types/__VUE/row/index.vue.d.ts +2 -5
  212. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  213. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  214. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
  215. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
  216. package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
  217. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
  218. package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
  219. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  220. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  221. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
  222. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  223. package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
  224. package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
  225. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  226. package/dist/types/__VUE/uploader/index.vue.d.ts +7 -0
  227. package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
  228. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  229. package/dist/types/index.d.ts +1 -1
  230. package/package.json +2 -1
  231. package/dist/packages/index.d.ts +0 -3
package/dist/nutui.es.js CHANGED
@@ -1,41 +1,9 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __restKey = (key) => typeof key === "symbol" ? key : key + "";
21
- var __objRest = (source, exclude) => {
22
- var target = {};
23
- for (var prop in source)
24
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
- target[prop] = source[prop];
26
- if (source != null && __getOwnPropSymbols)
27
- for (var prop of __getOwnPropSymbols(source)) {
28
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
- target[prop] = source[prop];
30
- }
31
- return target;
32
- };
33
1
  /*!
34
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:41 GMT+0800 (中国标准时间)
35
3
  * (c) 2022 @jdf2e.
36
4
  * Released under the MIT License.
37
5
  */
38
- import { reactive, ref, defineComponent, h, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, onBeforeMount, Teleport, createVNode, useSlots, inject, provide, unref, onUnmounted, shallowReactive, markRaw, isVNode, nextTick, renderList, mergeProps, watchEffect, createSlots, readonly, vModelText, toRaw, resolveDynamicComponent, render as render$3 } from "vue";
6
+ import { reactive, ref, defineComponent, h, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, mergeProps, renderSlot, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, onBeforeMount, Teleport, createVNode, useSlots, inject, provide, unref, onUnmounted, shallowReactive, markRaw, isVNode, nextTick, renderList, watchEffect, createSlots, readonly, vModelText, toRaw, resolveDynamicComponent, render as render$4 } from "vue";
39
7
  class BaseLang {
40
8
  }
41
9
  class Lang$1 extends BaseLang {
@@ -249,11 +217,11 @@ class Lang extends BaseLang {
249
217
  }
250
218
  }
251
219
  const TypeOfFun = (value) => {
252
- if (value === null) {
220
+ if (null === value) {
253
221
  return "null";
254
222
  }
255
223
  const type = typeof value;
256
- if (type === "undefined" || type === "string") {
224
+ if ("undefined" === type || "string" === type) {
257
225
  return type;
258
226
  }
259
227
  const typeString = toString.call(value);
@@ -271,8 +239,8 @@ const TypeOfFun = (value) => {
271
239
  case "[object RegExp]":
272
240
  return "regexp";
273
241
  case "[object Object]":
274
- if (value.nodeType !== void 0) {
275
- if (value.nodeType == 3) {
242
+ if (void 0 !== value.nodeType) {
243
+ if (3 == value.nodeType) {
276
244
  return /\S/.test(value.nodeValue) ? "textnode" : "whitespace";
277
245
  } else {
278
246
  return "element";
@@ -403,17 +371,21 @@ const _sfc_main$1P = create$1P({
403
371
  return () => {
404
372
  var _a;
405
373
  const _isImage = isImage();
406
- return h(_isImage ? "img" : props.tag, {
407
- class: _isImage ? `${componentName$1t}__img` : `${props.fontClassName} ${componentName$1t} ${props.classPrefix}-${props.name}`,
408
- style: {
409
- color: props.color,
410
- fontSize: pxCheck(props.size),
411
- width: pxCheck(props.size),
412
- height: pxCheck(props.size)
374
+ return h(
375
+ _isImage ? "img" : props.tag,
376
+ {
377
+ class: _isImage ? `${componentName$1t}__img` : `${props.fontClassName} ${componentName$1t} ${props.classPrefix}-${props.name}`,
378
+ style: {
379
+ color: props.color,
380
+ fontSize: pxCheck(props.size),
381
+ width: pxCheck(props.size),
382
+ height: pxCheck(props.size)
383
+ },
384
+ onClick: handleClick,
385
+ src: _isImage ? props.name : ""
413
386
  },
414
- onClick: handleClick,
415
- src: _isImage ? props.name : ""
416
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
387
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
388
+ );
417
389
  };
418
390
  }
419
391
  });
@@ -518,7 +490,7 @@ const _sfc_main$1O = create$1O({
518
490
  }
519
491
  });
520
492
  const _hoisted_1$1l = { class: "nut-button__warp" };
521
- function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
493
+ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
522
494
  const _component_nut_icon = resolveComponent("nut-icon");
523
495
  return openBlock(), createElementBlock("view", {
524
496
  class: normalizeClass(_ctx.classes),
@@ -530,12 +502,13 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
530
502
  key: 0,
531
503
  class: "nut-icon-loading"
532
504
  })) : createCommentVNode("", true),
533
- _ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
505
+ _ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
534
506
  key: 1,
535
- name: _ctx.icon,
507
+ name: _ctx.icon
508
+ }, _ctx.$attrs, {
536
509
  "class-prefix": _ctx.iconClassPrefix,
537
510
  "font-class-name": _ctx.iconFontClassName
538
- }, null, 8, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
511
+ }), null, 16, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
539
512
  _ctx.$slots.default ? (openBlock(), createElementBlock("view", {
540
513
  key: 2,
541
514
  class: normalizeClass({ text: _ctx.icon || _ctx.loading })
@@ -545,7 +518,7 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
545
518
  ])
546
519
  ], 6);
547
520
  }
548
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1C]]);
521
+ var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1B]]);
549
522
  function useRouter() {
550
523
  const proxy = getCurrentInstance().proxy;
551
524
  return proxy.$router || null;
@@ -560,7 +533,7 @@ const _hoisted_2$14 = {
560
533
  };
561
534
  const _hoisted_3$Q = { class: "title" };
562
535
  const _hoisted_4$E = { class: "nut-cell__title-desc" };
563
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
536
+ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
564
537
  const _component_nut_icon = resolveComponent("nut-icon");
565
538
  return openBlock(), createElementBlock("view", {
566
539
  class: normalizeClass(_ctx.classes),
@@ -570,11 +543,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
570
543
  renderSlot(_ctx.$slots, "default", {}, () => [
571
544
  _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("view", _hoisted_1$1k, [
572
545
  renderSlot(_ctx.$slots, "icon", {}, () => [
573
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
574
- key: 0,
546
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
575
547
  class: "icon",
576
548
  name: _ctx.icon
577
- }, null, 8, ["name"])) : createCommentVNode("", true)
549
+ }), null, 16, ["name"])) : createCommentVNode("", true)
578
550
  ])
579
551
  ])) : createCommentVNode("", true),
580
552
  _ctx.title || _ctx.subTitle || _ctx.$slots.title ? (openBlock(), createElementBlock("view", _hoisted_2$14, [
@@ -593,11 +565,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
593
565
  style: normalizeStyle({ "text-align": _ctx.descTextAlign })
594
566
  }, toDisplayString(_ctx.desc), 7)) : createCommentVNode("", true),
595
567
  renderSlot(_ctx.$slots, "link", {}, () => [
596
- _ctx.isLink || _ctx.to ? (openBlock(), createBlock(_component_nut_icon, {
568
+ _ctx.isLink || _ctx.to ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
597
569
  key: 0,
598
- class: "nut-cell__link",
599
- name: "right"
600
- })) : createCommentVNode("", true)
570
+ class: "nut-cell__link"
571
+ }, _ctx.$attrs, { name: _ctx.rightIcon }), null, 16, ["name"])) : createCommentVNode("", true)
601
572
  ])
602
573
  ])
603
574
  ], 6);
@@ -615,6 +586,7 @@ const _sfc_main$1N = create$1N({
615
586
  roundRadius: { type: [String, Number], default: "" },
616
587
  url: { type: String, default: "" },
617
588
  icon: { type: String, default: "" },
589
+ rightIcon: { type: String, default: "right" },
618
590
  center: { type: Boolean, default: false },
619
591
  size: { type: String, default: "" }
620
592
  },
@@ -650,7 +622,7 @@ const _sfc_main$1N = create$1N({
650
622
  };
651
623
  }
652
624
  });
653
- var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", render$2]]);
625
+ var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", render$3]]);
654
626
  const { componentName: componentName$1q, create: create$1M } = createComponent("cell-group");
655
627
  const _sfc_main$1M = create$1M({
656
628
  props: {
@@ -678,7 +650,7 @@ const _hoisted_2$13 = {
678
650
  class: "nut-cell-group__desc"
679
651
  };
680
652
  const _hoisted_3$P = { class: "nut-cell-group__warp" };
681
- function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
653
+ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
682
654
  return openBlock(), createElementBlock("view", {
683
655
  class: normalizeClass(_ctx.classes)
684
656
  }, [
@@ -689,7 +661,7 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
689
661
  ])
690
662
  ], 2);
691
663
  }
692
- var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1B]]);
664
+ var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1A]]);
693
665
  const { componentName: componentName$1p, create: create$1L } = createComponent("overlay");
694
666
  const overlayProps = {
695
667
  visible: {
@@ -731,9 +703,12 @@ const _sfc_main$1L = create$1L({
731
703
  [props.overlayClass]: true
732
704
  };
733
705
  });
734
- watch(() => props.visible, (value) => {
735
- value ? lock() : unlock();
736
- });
706
+ watch(
707
+ () => props.visible,
708
+ (value) => {
709
+ value ? lock() : unlock();
710
+ }
711
+ );
737
712
  const lock = () => {
738
713
  if (props.lockScroll && props.visible) {
739
714
  document.body.classList.add("nut-overflow-hidden");
@@ -747,10 +722,11 @@ const _sfc_main$1L = create$1L({
747
722
  onMounted(lock);
748
723
  onActivated(lock);
749
724
  const style = computed(() => {
750
- return __spreadValues({
725
+ return {
751
726
  animationDuration: `${props.duration}s`,
752
- zIndex: props.zIndex
753
- }, props.overlayStyle);
727
+ zIndex: props.zIndex,
728
+ ...props.overlayStyle
729
+ };
754
730
  });
755
731
  const touchmove = (e) => {
756
732
  if (props.lockScroll)
@@ -765,7 +741,7 @@ const _sfc_main$1L = create$1L({
765
741
  return { classes, style, touchmove, onClick };
766
742
  }
767
743
  });
768
- function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
744
+ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
769
745
  return openBlock(), createBlock(Transition, { name: "overlay-fade" }, {
770
746
  default: withCtx(() => [
771
747
  withDirectives(createElementVNode("view", {
@@ -782,7 +758,7 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
782
758
  _: 3
783
759
  });
784
760
  }
785
- var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1A]]);
761
+ var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1z]]);
786
762
  let count = 0;
787
763
  const CLSNAME = "nut-overflow-hidden";
788
764
  const useLockScroll = (isLock) => {
@@ -802,7 +778,8 @@ const useLockScroll = (isLock) => {
802
778
  };
803
779
  const { componentName: componentName$1o, create: create$1K } = createComponent("popup");
804
780
  let _zIndex = 2e3;
805
- const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
781
+ const popupProps = {
782
+ ...overlayProps,
806
783
  position: {
807
784
  type: String,
808
785
  default: "center"
@@ -851,13 +828,15 @@ const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
851
828
  type: Boolean,
852
829
  default: false
853
830
  }
854
- });
831
+ };
855
832
  const _sfc_main$1K = create$1K({
856
833
  components: {
857
834
  [OverLay.name]: OverLay,
858
835
  [_sfc_main$1P.name]: _sfc_main$1P
859
836
  },
860
- props: __spreadValues({}, popupProps),
837
+ props: {
838
+ ...popupProps
839
+ },
861
840
  emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
862
841
  setup(props, { emit }) {
863
842
  const popupRef = ref();
@@ -881,10 +860,11 @@ const _sfc_main$1K = create$1K({
881
860
  };
882
861
  });
883
862
  const popStyle = computed(() => {
884
- return __spreadValues({
863
+ return {
885
864
  zIndex: state.zIndex,
886
- animationDuration: props.duration ? `${props.duration}s` : "initial"
887
- }, props.style);
865
+ animationDuration: props.duration ? `${props.duration}s` : "initial",
866
+ ...props.style
867
+ };
888
868
  });
889
869
  const open = () => {
890
870
  if (props.zIndex != 2e3) {
@@ -951,20 +931,30 @@ const _sfc_main$1K = create$1K({
951
931
  state.keepAlive = true;
952
932
  }
953
933
  });
954
- watch(() => props.visible, (value) => {
955
- if (value) {
956
- open();
957
- } else {
958
- close();
934
+ watch(
935
+ () => props.visible,
936
+ (value) => {
937
+ if (value) {
938
+ open();
939
+ } else {
940
+ close();
941
+ }
959
942
  }
960
- });
961
- watch(() => props.position, (value) => {
962
- value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
963
- });
964
- watch(() => props.closeable, (value) => {
965
- state.closed = value;
966
- });
967
- return __spreadProps(__spreadValues({}, toRefs(state)), {
943
+ );
944
+ watch(
945
+ () => props.position,
946
+ (value) => {
947
+ value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
948
+ }
949
+ );
950
+ watch(
951
+ () => props.closeable,
952
+ (value) => {
953
+ state.closed = value;
954
+ }
955
+ );
956
+ return {
957
+ ...toRefs(state),
968
958
  popStyle,
969
959
  classes,
970
960
  onClick,
@@ -973,11 +963,11 @@ const _sfc_main$1K = create$1K({
973
963
  onOpened,
974
964
  onClosed,
975
965
  popupRef
976
- });
966
+ };
977
967
  }
978
968
  });
979
969
  const _hoisted_1$1i = { key: 1 };
980
- function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
970
+ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
981
971
  const _component_nut_overlay = resolveComponent("nut-overlay");
982
972
  const _component_nut_icon = resolveComponent("nut-icon");
983
973
  return _ctx.isWrapTeleport ? (openBlock(), createBlock(Teleport, {
@@ -1013,10 +1003,10 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
1013
1003
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
1014
1004
  class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
1015
1005
  }, [
1016
- createVNode(_component_nut_icon, {
1006
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
1017
1007
  name: _ctx.closeIcon,
1018
1008
  size: "12px"
1019
- }, null, 8, ["name"])
1009
+ }), null, 16, ["name"])
1020
1010
  ], 2)) : createCommentVNode("", true)
1021
1011
  ], 6), [
1022
1012
  [vShow, _ctx.visible]
@@ -1066,8 +1056,8 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
1066
1056
  }, 8, ["name", "onAfterEnter", "onAfterLeave"])
1067
1057
  ]));
1068
1058
  }
1069
- var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1z]]);
1070
- const component$7 = {
1059
+ var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1y]]);
1060
+ const component$8 = {
1071
1061
  props: {
1072
1062
  theme: { type: String, default: "" },
1073
1063
  tag: { type: String, default: "div" }
@@ -1075,14 +1065,18 @@ const component$7 = {
1075
1065
  setup(props, { slots }) {
1076
1066
  return () => {
1077
1067
  var _a;
1078
- return h(props.tag, {
1079
- class: `nut-theme-${props.theme}`
1080
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
1068
+ return h(
1069
+ props.tag,
1070
+ {
1071
+ class: `nut-theme-${props.theme}`
1072
+ },
1073
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
1074
+ );
1081
1075
  };
1082
1076
  }
1083
1077
  };
1084
1078
  const { componentName: componentName$1n, create: create$1J } = createComponent("config-provider");
1085
- const _sfc_main$1J = create$1J(component$7);
1079
+ const _sfc_main$1J = create$1J(component$8);
1086
1080
  const { componentName: componentName$1m, create: create$1I } = createComponent("image");
1087
1081
  const _sfc_main$1I = create$1I({
1088
1082
  props: {
@@ -1155,9 +1149,12 @@ const _sfc_main$1I = create$1I({
1155
1149
  };
1156
1150
  return styless;
1157
1151
  });
1158
- watch(() => props.src, (val) => {
1159
- state.isError = false, state.loading = true;
1160
- });
1152
+ watch(
1153
+ () => props.src,
1154
+ (val) => {
1155
+ state.isError = false, state.loading = true;
1156
+ }
1157
+ );
1161
1158
  const load = () => {
1162
1159
  state.loading = false;
1163
1160
  emit("load");
@@ -1170,7 +1167,7 @@ const _sfc_main$1I = create$1I({
1170
1167
  const imageClick = (event) => {
1171
1168
  emit("click", event);
1172
1169
  };
1173
- return __spreadProps(__spreadValues({}, toRefs(state)), { imageClick, classes, styles, stylebox, error, load });
1170
+ return { ...toRefs(state), imageClick, classes, styles, stylebox, error, load };
1174
1171
  }
1175
1172
  });
1176
1173
  const _hoisted_1$1h = ["src", "alt"];
@@ -1182,7 +1179,7 @@ const _hoisted_3$O = {
1182
1179
  key: 1,
1183
1180
  class: "nut-img-error"
1184
1181
  };
1185
- function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
1182
+ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
1186
1183
  const _component_nut_icon = resolveComponent("nut-icon");
1187
1184
  return openBlock(), createElementBlock("view", {
1188
1185
  class: normalizeClass(_ctx.classes),
@@ -1213,7 +1210,7 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
1213
1210
  ])) : createCommentVNode("", true)
1214
1211
  ], 6);
1215
1212
  }
1216
- var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1y]]);
1213
+ var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1x]]);
1217
1214
  const { create: create$1H } = createComponent("layout");
1218
1215
  const _sfc_main$1H = create$1H({});
1219
1216
  const { componentName: componentName$1l, create: create$1G } = createComponent("col");
@@ -1228,8 +1225,8 @@ const _sfc_main$1G = create$1G({
1228
1225
  default: "0"
1229
1226
  }
1230
1227
  },
1231
- emits: ["click"],
1232
- setup(props, { emit }) {
1228
+ emits: [],
1229
+ setup(props) {
1233
1230
  const prefixCls = componentName$1l;
1234
1231
  const gutter = inject("gutter");
1235
1232
  const classes = computed(() => {
@@ -1246,27 +1243,21 @@ const _sfc_main$1G = create$1G({
1246
1243
  paddingRight: gutter / 2 + "px"
1247
1244
  };
1248
1245
  });
1249
- const handleClick = (evt) => {
1250
- evt.stopPropagation();
1251
- emit("click", evt);
1252
- };
1253
1246
  return {
1254
1247
  classes,
1255
- style,
1256
- handleClick
1248
+ style
1257
1249
  };
1258
1250
  }
1259
1251
  });
1260
- function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
1252
+ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
1261
1253
  return openBlock(), createElementBlock("view", {
1262
1254
  class: normalizeClass(_ctx.classes),
1263
- style: normalizeStyle(_ctx.style),
1264
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
1255
+ style: normalizeStyle(_ctx.style)
1265
1256
  }, [
1266
1257
  renderSlot(_ctx.$slots, "default")
1267
1258
  ], 6);
1268
1259
  }
1269
- var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1x]]);
1260
+ var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1w]]);
1270
1261
  const { componentName: componentName$1k, create: create$1F } = createComponent("row");
1271
1262
  const _sfc_main$1F = create$1F({
1272
1263
  props: {
@@ -1291,8 +1282,8 @@ const _sfc_main$1F = create$1F({
1291
1282
  default: "nowrap"
1292
1283
  }
1293
1284
  },
1294
- emits: ["click"],
1295
- setup(props, { emit }) {
1285
+ emits: [],
1286
+ setup(props) {
1296
1287
  const prefixCls = componentName$1k;
1297
1288
  provide("gutter", props.gutter);
1298
1289
  const getClass = (prefix, type) => {
@@ -1307,25 +1298,19 @@ const _sfc_main$1F = create$1F({
1307
1298
  ${prefixCls}
1308
1299
  `;
1309
1300
  };
1310
- const handleClick = (evt) => {
1311
- evt.stopPropagation();
1312
- emit("click", evt);
1313
- };
1314
1301
  return {
1315
- getClasses,
1316
- handleClick
1302
+ getClasses
1317
1303
  };
1318
1304
  }
1319
1305
  });
1320
- function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
1306
+ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
1321
1307
  return openBlock(), createElementBlock("view", {
1322
- class: normalizeClass(_ctx.getClasses()),
1323
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
1308
+ class: normalizeClass(_ctx.getClasses())
1324
1309
  }, [
1325
1310
  renderSlot(_ctx.$slots, "default")
1326
1311
  ], 2);
1327
1312
  }
1328
- var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1w]]);
1313
+ var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1v]]);
1329
1314
  function isWindow(val) {
1330
1315
  return val === window;
1331
1316
  }
@@ -1431,10 +1416,14 @@ const _sfc_main$1E = create$1E({
1431
1416
  };
1432
1417
  const renderFixed = () => {
1433
1418
  var _a;
1434
- return h("view", {
1435
- style: stickyStyle.value,
1436
- class: state.fixed ? `${componentName$1j} nut-sticky--fixed` : componentName$1j
1437
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
1419
+ return h(
1420
+ "view",
1421
+ {
1422
+ style: stickyStyle.value,
1423
+ class: state.fixed ? `${componentName$1j} nut-sticky--fixed` : componentName$1j
1424
+ },
1425
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
1426
+ );
1438
1427
  };
1439
1428
  const onScroll = () => {
1440
1429
  if (!isExistRoot())
@@ -1471,9 +1460,12 @@ const _sfc_main$1E = create$1E({
1471
1460
  fixed: state.fixed
1472
1461
  });
1473
1462
  };
1474
- watch(() => state.fixed, (val) => {
1475
- emit("change", val);
1476
- });
1463
+ watch(
1464
+ () => state.fixed,
1465
+ (val) => {
1466
+ emit("change", val);
1467
+ }
1468
+ );
1477
1469
  onMounted(() => {
1478
1470
  window.addEventListener("scroll", onScroll);
1479
1471
  onScroll();
@@ -1482,10 +1474,14 @@ const _sfc_main$1E = create$1E({
1482
1474
  window.removeEventListener("scroll", onScroll);
1483
1475
  });
1484
1476
  return () => {
1485
- return h("view", {
1486
- style: rootStyle.value,
1487
- ref: root
1488
- }, [renderFixed()]);
1477
+ return h(
1478
+ "view",
1479
+ {
1480
+ style: rootStyle.value,
1481
+ ref: root
1482
+ },
1483
+ [renderFixed()]
1484
+ );
1489
1485
  };
1490
1486
  }
1491
1487
  });
@@ -1518,24 +1514,26 @@ const _sfc_main$1D = create$1D({
1518
1514
  };
1519
1515
  let classesObj = {};
1520
1516
  if (props.direction === "horizontal") {
1521
- classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
1517
+ classesObj = {
1518
+ ...defaultClassesObj,
1522
1519
  [`${prefixCls}-center`]: context.slots.default,
1523
1520
  [`${prefixCls}-left`]: props.contentPosition === "left",
1524
1521
  [`${prefixCls}-right`]: props.contentPosition === "right",
1525
1522
  [`${prefixCls}-dashed`]: props.dashed,
1526
1523
  [`${prefixCls}-hairline`]: props.hairline
1527
- });
1524
+ };
1528
1525
  } else {
1529
- classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
1526
+ classesObj = {
1527
+ ...defaultClassesObj,
1530
1528
  [`${prefixCls}-vertical`]: props.direction === "vertical"
1531
- });
1529
+ };
1532
1530
  }
1533
1531
  return classesObj;
1534
1532
  });
1535
1533
  return { classes };
1536
1534
  }
1537
1535
  });
1538
- function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
1536
+ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
1539
1537
  return _ctx.direction === "horizontal" ? (openBlock(), createElementBlock("view", {
1540
1538
  key: 0,
1541
1539
  class: normalizeClass(_ctx.classes)
@@ -1546,7 +1544,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
1546
1544
  class: normalizeClass(_ctx.classes)
1547
1545
  }, null, 2));
1548
1546
  }
1549
- var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1v]]);
1547
+ var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1u]]);
1550
1548
  function flattenVNodes(children, childName) {
1551
1549
  const result = [];
1552
1550
  const traverse = (children2) => {
@@ -1595,11 +1593,17 @@ function useProvide(key, childName) {
1595
1593
  };
1596
1594
  const extend = Object.assign;
1597
1595
  return (value) => {
1598
- provide(key, extend({
1599
- add,
1600
- remove,
1601
- internalChildren
1602
- }, value));
1596
+ provide(
1597
+ key,
1598
+ extend(
1599
+ {
1600
+ add,
1601
+ remove,
1602
+ internalChildren
1603
+ },
1604
+ value
1605
+ )
1606
+ );
1603
1607
  return {
1604
1608
  internalChildren
1605
1609
  };
@@ -1647,7 +1651,7 @@ const gridProps = {
1647
1651
  default: false
1648
1652
  }
1649
1653
  };
1650
- const component$6 = {
1654
+ const component$7 = {
1651
1655
  props: gridProps,
1652
1656
  setup(props, { slots }) {
1653
1657
  useProvide(GRID_KEY, `${componentName$1h}-item`)({ props });
@@ -1667,15 +1671,19 @@ const component$6 = {
1667
1671
  });
1668
1672
  return () => {
1669
1673
  var _a;
1670
- return h("view", {
1671
- class: rootClass.value,
1672
- style: rootStyle.value
1673
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
1674
+ return h(
1675
+ "view",
1676
+ {
1677
+ class: rootClass.value,
1678
+ style: rootStyle.value
1679
+ },
1680
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
1681
+ );
1674
1682
  };
1675
1683
  }
1676
1684
  };
1677
1685
  const { create: create$1C } = createComponent("grid");
1678
- const _sfc_main$1C = create$1C(component$6);
1686
+ const _sfc_main$1C = create$1C(component$7);
1679
1687
  function useInject(key) {
1680
1688
  const parent = inject(key, null);
1681
1689
  if (parent) {
@@ -1790,7 +1798,7 @@ const _hoisted_1$1g = {
1790
1798
  key: 3,
1791
1799
  class: "nut-grid-item__text"
1792
1800
  };
1793
- function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
1801
+ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
1794
1802
  const _component_nut_icon = resolveComponent("nut-icon");
1795
1803
  return openBlock(), createElementBlock("view", {
1796
1804
  class: normalizeClass(_ctx.rootClass),
@@ -1801,18 +1809,19 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
1801
1809
  class: normalizeClass(_ctx.contentClass)
1802
1810
  }, [
1803
1811
  _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1804
- _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }) : (openBlock(), createBlock(_component_nut_icon, {
1812
+ _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }) : (openBlock(), createBlock(_component_nut_icon, mergeProps({
1805
1813
  key: 1,
1806
- name: _ctx.iconProps.name,
1814
+ name: _ctx.iconProps.name
1815
+ }, _ctx.$attrs, {
1807
1816
  size: _ctx.iconProps.size,
1808
1817
  color: _ctx.iconProps.color
1809
- }, null, 8, ["name", "size", "color"])),
1818
+ }), null, 16, ["name", "size", "color"])),
1810
1819
  _ctx.$slots.text ? renderSlot(_ctx.$slots, "text", { key: 2 }) : (openBlock(), createElementBlock("view", _hoisted_1$1g, toDisplayString(_ctx.text), 1))
1811
1820
  ], 64))
1812
1821
  ], 2)
1813
1822
  ], 6);
1814
1823
  }
1815
- var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1u]]);
1824
+ var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1t]]);
1816
1825
  const { componentName: componentName$1f, create: create$1A } = createComponent("navbar");
1817
1826
  const _sfc_main$1A = create$1A({
1818
1827
  props: {
@@ -1918,7 +1927,7 @@ const _hoisted_7$k = {
1918
1927
  key: 0,
1919
1928
  class: "nut-navbar__text"
1920
1929
  };
1921
- function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
1930
+ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
1922
1931
  const _component_nut_icon = resolveComponent("nut-icon");
1923
1932
  return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", _hoisted_1$1f, [
1924
1933
  createElementVNode("view", {
@@ -1944,12 +1953,13 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
1944
1953
  class: "title",
1945
1954
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
1946
1955
  }, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
1947
- _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
1956
+ _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
1948
1957
  key: 1,
1949
- class: "icon",
1958
+ class: "icon"
1959
+ }, _ctx.$attrs, {
1950
1960
  name: _ctx.titIcon,
1951
1961
  onClick: _ctx.handleCenterIcon
1952
- }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
1962
+ }), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
1953
1963
  renderSlot(_ctx.$slots, "content")
1954
1964
  ]),
1955
1965
  createElementVNode("view", {
@@ -1983,12 +1993,13 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
1983
1993
  class: "title",
1984
1994
  onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
1985
1995
  }, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
1986
- _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
1996
+ _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
1987
1997
  key: 1,
1988
- class: "icon",
1998
+ class: "icon"
1999
+ }, _ctx.$attrs, {
1989
2000
  name: _ctx.titIcon,
1990
2001
  onClick: _ctx.handleCenterIcon
1991
- }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
2002
+ }), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
1992
2003
  renderSlot(_ctx.$slots, "content")
1993
2004
  ]),
1994
2005
  createElementVNode("view", {
@@ -2000,12 +2011,9 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
2000
2011
  ])
2001
2012
  ], 6));
2002
2013
  }
2003
- var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1t]]);
2004
- const { componentName: componentName$1e, create: create$1z, translate: translate$t } = createComponent("fixednav");
2005
- const _sfc_main$1z = create$1z({
2006
- components: {
2007
- [OverLay.name]: OverLay
2008
- },
2014
+ var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1s]]);
2015
+ const { componentName: componentName$1e, translate: translate$t } = createComponent("fixednav");
2016
+ const component$6 = {
2009
2017
  props: {
2010
2018
  visible: {
2011
2019
  type: Boolean,
@@ -2019,6 +2027,10 @@ const _sfc_main$1z = create$1z({
2019
2027
  default: () => [],
2020
2028
  type: Array
2021
2029
  },
2030
+ activeColor: {
2031
+ default: "",
2032
+ type: String
2033
+ },
2022
2034
  activeText: {
2023
2035
  default: "",
2024
2036
  type: String
@@ -2051,6 +2063,7 @@ const _sfc_main$1z = create$1z({
2051
2063
  [props.type]: true
2052
2064
  };
2053
2065
  });
2066
+ const current = ref(-1);
2054
2067
  const updateValue = (value = !props.visible) => {
2055
2068
  emit("update:visible", value);
2056
2069
  };
@@ -2059,10 +2072,11 @@ const _sfc_main$1z = create$1z({
2059
2072
  item,
2060
2073
  event
2061
2074
  });
2075
+ current.value = item.id;
2062
2076
  };
2063
- return { classes, updateValue, selected, translate: translate$t };
2077
+ return { classes, updateValue, selected, translate: translate$t, current };
2064
2078
  }
2065
- });
2079
+ };
2066
2080
  const _hoisted_1$1e = { class: "nut-fixednav__list" };
2067
2081
  const _hoisted_2$10 = ["onClick"];
2068
2082
  const _hoisted_3$M = ["src"];
@@ -2072,7 +2086,7 @@ const _hoisted_5$s = {
2072
2086
  class: "b"
2073
2087
  };
2074
2088
  const _hoisted_6$p = { class: "text" };
2075
- function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
2089
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2076
2090
  const _component_nut_overlay = resolveComponent("nut-overlay");
2077
2091
  const _component_nut_icon = resolveComponent("nut-icon");
2078
2092
  return openBlock(), createElementBlock("view", {
@@ -2089,7 +2103,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
2089
2103
  createElementVNode("view", _hoisted_1$1e, [
2090
2104
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index) => {
2091
2105
  return openBlock(), createElementBlock("view", {
2092
- class: "nut-fixednav__list-item",
2106
+ class: normalizeClass(["nut-fixednav__list-item", { active: item.id == _ctx.current }]),
2093
2107
  onClick: ($event) => _ctx.selected(item, $event),
2094
2108
  key: item.id || index
2095
2109
  }, [
@@ -2098,7 +2112,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
2098
2112
  }, null, 8, _hoisted_3$M),
2099
2113
  createElementVNode("view", _hoisted_4$C, toDisplayString(item.text), 1),
2100
2114
  item.num ? (openBlock(), createElementBlock("view", _hoisted_5$s, toDisplayString(item.num), 1)) : createCommentVNode("", true)
2101
- ], 8, _hoisted_2$10);
2115
+ ], 10, _hoisted_2$10);
2102
2116
  }), 128))
2103
2117
  ])
2104
2118
  ]),
@@ -2116,7 +2130,9 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
2116
2130
  ])
2117
2131
  ], 6);
2118
2132
  }
2119
- var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1s]]);
2133
+ const { create: create$1z } = createComponent("fixednav");
2134
+ const _sfc_main$1z = create$1z(component$6);
2135
+ var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", render$2]]);
2120
2136
  const { componentName: componentName$1d, create: create$1y } = createComponent("menu");
2121
2137
  const _sfc_main$1y = create$1y({
2122
2138
  props: {
@@ -2136,6 +2152,7 @@ const _sfc_main$1y = create$1y({
2136
2152
  type: [Number, String],
2137
2153
  default: 0
2138
2154
  },
2155
+ titleIcon: String,
2139
2156
  closeOnClickOverlay: {
2140
2157
  type: Boolean,
2141
2158
  default: true
@@ -2164,11 +2181,17 @@ const _sfc_main$1y = create$1y({
2164
2181
  publicChildren.push(child.proxy);
2165
2182
  }
2166
2183
  };
2167
- provide("menuParent", Object.assign({
2168
- link,
2169
- children: publicChildren,
2170
- internalChildren
2171
- }, value));
2184
+ provide(
2185
+ "menuParent",
2186
+ Object.assign(
2187
+ {
2188
+ link,
2189
+ children: publicChildren,
2190
+ internalChildren
2191
+ },
2192
+ value
2193
+ )
2194
+ );
2172
2195
  };
2173
2196
  return {
2174
2197
  children: publicChildren,
@@ -2268,11 +2291,11 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
2268
2291
  class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
2269
2292
  }, [
2270
2293
  createElementVNode("view", _hoisted_2$$, toDisplayString(item.renderTitle()), 1),
2271
- createVNode(_component_nut_icon, {
2272
- name: item.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
2294
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
2295
+ name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
2273
2296
  size: "10",
2274
2297
  class: "nut-menu__title-icon"
2275
- }, null, 8, ["name"])
2298
+ }), null, 16, ["name"])
2276
2299
  ], 2)
2277
2300
  ], 14, _hoisted_1$1d);
2278
2301
  }), 128))
@@ -2298,7 +2321,6 @@ const _sfc_main$1x = create$1x({
2298
2321
  type: Number,
2299
2322
  default: 1
2300
2323
  },
2301
- titleIcon: String,
2302
2324
  activeTitleClass: String,
2303
2325
  inactiveTitleClass: String,
2304
2326
  optionIcon: {
@@ -2341,7 +2363,7 @@ const _sfc_main$1x = create$1x({
2341
2363
  if (parent.props.direction === "down") {
2342
2364
  return heightStyle;
2343
2365
  } else {
2344
- return __spreadProps(__spreadValues({}, heightStyle), { top: "auto" });
2366
+ return { ...heightStyle, top: "auto" };
2345
2367
  }
2346
2368
  });
2347
2369
  const toggle = (show = !state.showPopup, options = {}) => {
@@ -2430,12 +2452,11 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
2430
2452
  style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
2431
2453
  onClick: ($event) => _ctx.onClick(option)
2432
2454
  }, [
2433
- option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, {
2434
- key: 0,
2435
- class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
2455
+ option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
2456
+ class: { activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue },
2436
2457
  name: _ctx.optionIcon,
2437
2458
  color: _ctx.parent.props.activeColor
2438
- }, null, 8, ["class", "name", "color"])) : createCommentVNode("", true),
2459
+ }), null, 16, ["class", "name", "color"])) : createCommentVNode("", true),
2439
2460
  createElementVNode("view", {
2440
2461
  class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
2441
2462
  style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
@@ -2504,9 +2525,12 @@ const _sfc_main$1w = create$1w({
2504
2525
  changeIndex
2505
2526
  });
2506
2527
  provide("parent", parentData);
2507
- watch(() => props.visible, (value) => {
2508
- parentData.modelValue = value;
2509
- });
2528
+ watch(
2529
+ () => props.visible,
2530
+ (value) => {
2531
+ parentData.modelValue = value;
2532
+ }
2533
+ );
2510
2534
  return {
2511
2535
  changeIndex
2512
2536
  };
@@ -2602,6 +2626,7 @@ const _sfc_main$1v = create$1v({
2602
2626
  return null;
2603
2627
  });
2604
2628
  watch(choosed, (value, oldValue) => {
2629
+ var _a, _b;
2605
2630
  state.active = value;
2606
2631
  let index = value;
2607
2632
  if (props.name) {
@@ -2609,20 +2634,18 @@ const _sfc_main$1v = create$1v({
2609
2634
  return item.name == value;
2610
2635
  });
2611
2636
  }
2612
- setTimeout(() => {
2613
- if (parent.children[index].href) {
2614
- window.location.href = parent.children[index].href;
2615
- return;
2616
- }
2617
- if (parent.children[index].to) {
2618
- let to = parent.children[index].to;
2619
- if (to && router) {
2620
- router.push(to);
2621
- } else {
2622
- location.replace(to);
2623
- }
2637
+ if ((_a = parent.children[index]) == null ? void 0 : _a.href) {
2638
+ window.location.href = parent.children[index].href;
2639
+ return;
2640
+ }
2641
+ if ((_b = parent.children[index]) == null ? void 0 : _b.to) {
2642
+ let to = parent.children[index].to;
2643
+ if (to && router) {
2644
+ router.push(to);
2645
+ } else {
2646
+ location.replace(to);
2624
2647
  }
2625
- });
2648
+ }
2626
2649
  });
2627
2650
  return {
2628
2651
  state,
@@ -2838,24 +2861,30 @@ const _sfc_main$1u = create$1u({
2838
2861
  useExpose({
2839
2862
  scrollTo
2840
2863
  });
2841
- watch(() => state.listGroup.length, () => {
2842
- state.listHeight = [];
2843
- nextTick(calculateHeight);
2844
- });
2845
- watch(() => state.diff, (newVal) => {
2846
- const listHeight = state.listHeight;
2847
- let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
2848
- if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
2849
- if (fixedTop !== 0)
2850
- fixedTop = 0;
2864
+ watch(
2865
+ () => state.listGroup.length,
2866
+ () => {
2867
+ state.listHeight = [];
2868
+ nextTick(calculateHeight);
2869
+ }
2870
+ );
2871
+ watch(
2872
+ () => state.diff,
2873
+ (newVal) => {
2874
+ const listHeight = state.listHeight;
2875
+ let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
2876
+ if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
2877
+ if (fixedTop !== 0)
2878
+ fixedTop = 0;
2879
+ }
2880
+ if (state.fixedTop === fixedTop)
2881
+ return;
2882
+ state.fixedTop = fixedTop;
2851
2883
  }
2852
- if (state.fixedTop === fixedTop)
2853
- return;
2854
- state.fixedTop = fixedTop;
2855
- });
2856
- return __spreadProps(__spreadValues({
2857
- classes
2858
- }, toRefs(state)), {
2884
+ );
2885
+ return {
2886
+ classes,
2887
+ ...toRefs(state),
2859
2888
  fixedStyle,
2860
2889
  clientHeight,
2861
2890
  setListGroup,
@@ -2865,7 +2894,7 @@ const _sfc_main$1u = create$1u({
2865
2894
  touchEnd,
2866
2895
  handleClickItem,
2867
2896
  handleClickIndex
2868
- });
2897
+ };
2869
2898
  }
2870
2899
  });
2871
2900
  const _hoisted_1$1a = { class: "nut-elevator__list__item__code" };
@@ -3196,15 +3225,21 @@ const component$5 = {
3196
3225
  }
3197
3226
  findTabsIndex(props.modelValue);
3198
3227
  };
3199
- watch(() => {
3200
- var _a;
3201
- return (_a = slots.default) == null ? void 0 : _a.call(slots);
3202
- }, (vnodes) => {
3203
- init(vnodes);
3204
- });
3205
- watch(() => props.modelValue, (value) => {
3206
- findTabsIndex(value);
3207
- });
3228
+ watch(
3229
+ () => {
3230
+ var _a;
3231
+ return (_a = slots.default) == null ? void 0 : _a.call(slots);
3232
+ },
3233
+ (vnodes) => {
3234
+ init(vnodes);
3235
+ }
3236
+ );
3237
+ watch(
3238
+ () => props.modelValue,
3239
+ (value) => {
3240
+ findTabsIndex(value);
3241
+ }
3242
+ );
3208
3243
  onMounted(init);
3209
3244
  onActivated(init);
3210
3245
  const contentStyle = computed(() => {
@@ -3241,13 +3276,14 @@ const component$5 = {
3241
3276
  emit("change", item);
3242
3277
  }
3243
3278
  };
3244
- return __spreadValues({
3279
+ return {
3245
3280
  titles,
3246
3281
  contentStyle,
3247
3282
  tabsNavStyle,
3248
3283
  titleStyle,
3249
- tabsActiveStyle
3250
- }, methods);
3284
+ tabsActiveStyle,
3285
+ ...methods
3286
+ };
3251
3287
  }
3252
3288
  };
3253
3289
  const _hoisted_1$18 = ["onClick"];
@@ -3443,10 +3479,11 @@ const _sfc_main$1p = create$1p({
3443
3479
  subtree: false
3444
3480
  });
3445
3481
  });
3446
- return __spreadProps(__spreadValues({}, toRefs(state)), {
3482
+ return {
3483
+ ...toRefs(state),
3447
3484
  list,
3448
3485
  classes
3449
- });
3486
+ };
3450
3487
  }
3451
3488
  });
3452
3489
  const _hoisted_1$17 = { class: "nut-sidenavbar__content" };
@@ -3546,11 +3583,12 @@ const _sfc_main$1n = create$1n({
3546
3583
  onMounted(() => {
3547
3584
  state.direction = props.open ? "" : "up";
3548
3585
  });
3549
- return __spreadProps(__spreadValues({}, toRefs(state)), {
3586
+ return {
3587
+ ...toRefs(state),
3550
3588
  classes,
3551
3589
  style,
3552
3590
  handleClick
3553
- });
3591
+ };
3554
3592
  }
3555
3593
  });
3556
3594
  const _hoisted_1$15 = ["ikey"];
@@ -3912,7 +3950,7 @@ const _sfc_main$1m = create$1m({
3912
3950
  const value = typeof idx === "number" ? props.modelValue[idx] : props.modelValue;
3913
3951
  return value;
3914
3952
  };
3915
- return __spreadProps(__spreadValues({
3953
+ return {
3916
3954
  root,
3917
3955
  classes,
3918
3956
  wrapperStyle,
@@ -3920,8 +3958,8 @@ const _sfc_main$1m = create$1m({
3920
3958
  onClick,
3921
3959
  onTouchStart,
3922
3960
  onTouchMove,
3923
- onTouchEnd
3924
- }, toRefs(props)), {
3961
+ onTouchEnd,
3962
+ ...toRefs(props),
3925
3963
  barStyle,
3926
3964
  curValue,
3927
3965
  buttonIndex,
@@ -3930,7 +3968,7 @@ const _sfc_main$1m = create$1m({
3930
3968
  marksStyle,
3931
3969
  marksList,
3932
3970
  tickStyle
3933
- });
3971
+ };
3934
3972
  }
3935
3973
  });
3936
3974
  const _hoisted_1$14 = {
@@ -3998,12 +4036,15 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
3998
4036
  "aria-valuenow": _ctx.curValue(index),
3999
4037
  "aria-valuemax": +_ctx.max,
4000
4038
  "aria-orientation": "horizontal",
4001
- onTouchstart: withModifiers((e) => {
4002
- if (typeof index === "number") {
4003
- _ctx.buttonIndex = index;
4004
- }
4005
- _ctx.onTouchStart(e);
4006
- }, ["stop", "prevent"]),
4039
+ onTouchstart: withModifiers(
4040
+ (e) => {
4041
+ if (typeof index === "number") {
4042
+ _ctx.buttonIndex = index;
4043
+ }
4044
+ _ctx.onTouchStart(e);
4045
+ },
4046
+ ["stop", "prevent"]
4047
+ ),
4007
4048
  onTouchmove: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
4008
4049
  onTouchend: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
4009
4050
  onTouchcancel: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
@@ -4026,9 +4067,12 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
4026
4067
  "aria-valuenow": _ctx.curValue(),
4027
4068
  "aria-valuemax": +_ctx.max,
4028
4069
  "aria-orientation": "horizontal",
4029
- onTouchstart: _cache[4] || (_cache[4] = withModifiers((e) => {
4030
- _ctx.onTouchStart(e);
4031
- }, ["stop", "prevent"])),
4070
+ onTouchstart: _cache[4] || (_cache[4] = withModifiers(
4071
+ (e) => {
4072
+ _ctx.onTouchStart(e);
4073
+ },
4074
+ ["stop", "prevent"]
4075
+ )),
4032
4076
  onTouchmove: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
4033
4077
  onTouchend: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
4034
4078
  onTouchcancel: _cache[7] || (_cache[7] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
@@ -4179,9 +4223,9 @@ const _sfc_main$1l = create$1l({
4179
4223
  inputsearch.value.focus();
4180
4224
  }
4181
4225
  });
4182
- return __spreadProps(__spreadValues({
4183
- inputsearch
4184
- }, toRefs(state)), {
4226
+ return {
4227
+ inputsearch,
4228
+ ...toRefs(state),
4185
4229
  valueChange,
4186
4230
  valueFocus,
4187
4231
  valueBlur,
@@ -4194,7 +4238,7 @@ const _sfc_main$1l = create$1l({
4194
4238
  leftIconClick,
4195
4239
  rightIconClick,
4196
4240
  styleSearchbar
4197
- });
4241
+ };
4198
4242
  }
4199
4243
  });
4200
4244
  const _hoisted_1$13 = {
@@ -4283,16 +4327,16 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
4283
4327
  var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1f]]);
4284
4328
  const formatTree = (tree, parent, config) => tree.map((node) => {
4285
4329
  const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
4286
- const _a = node, { [valueKey]: value, [textKey]: text, [childrenKey]: children } = _a, others = __objRest(_a, [__restKey(valueKey), __restKey(textKey), __restKey(childrenKey)]);
4287
- const newNode = __spreadProps(__spreadValues({
4288
- loading: false
4289
- }, others), {
4330
+ const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
4331
+ const newNode = {
4332
+ loading: false,
4333
+ ...others,
4290
4334
  level: parent ? (parent && parent.level || 0) + 1 : 0,
4291
4335
  value,
4292
4336
  text,
4293
4337
  children,
4294
4338
  _parent: parent
4295
- });
4339
+ };
4296
4340
  if (newNode.children && newNode.children.length) {
4297
4341
  newNode.children = formatTree(newNode.children, newNode, config);
4298
4342
  }
@@ -4317,12 +4361,15 @@ const defaultConvertConfig = {
4317
4361
  sortKey: ""
4318
4362
  };
4319
4363
  const convertListToOptions = (list, options) => {
4320
- const mergedOptions = __spreadValues(__spreadValues({}, defaultConvertConfig), options || {});
4364
+ const mergedOptions = {
4365
+ ...defaultConvertConfig,
4366
+ ...options || {}
4367
+ };
4321
4368
  const { topId, idKey, pidKey, sortKey } = mergedOptions;
4322
4369
  let result = [];
4323
4370
  let map = {};
4324
4371
  list.forEach((node) => {
4325
- node = __spreadValues({}, node);
4372
+ node = { ...node };
4326
4373
  const { [idKey]: id, [pidKey]: pid } = node;
4327
4374
  const children = map[pid] = map[pid] || [];
4328
4375
  if (!result.length && pid === topId) {
@@ -4343,11 +4390,12 @@ const convertListToOptions = (list, options) => {
4343
4390
  };
4344
4391
  class Tree {
4345
4392
  constructor(nodes, config) {
4346
- this.config = __spreadValues({
4393
+ this.config = {
4347
4394
  value: "value",
4348
4395
  text: "text",
4349
- children: "children"
4350
- }, config || {});
4396
+ children: "children",
4397
+ ...config || {}
4398
+ };
4351
4399
  this.nodes = formatTree(nodes, null, this.config);
4352
4400
  }
4353
4401
  updateChildren(nodes, parent) {
@@ -4595,24 +4643,34 @@ const _sfc_main$1k = create$1k({
4595
4643
  return pane.selectedNode && pane.selectedNode.value === node.value;
4596
4644
  }
4597
4645
  };
4598
- watch([configs, () => props.options], () => {
4599
- init();
4600
- }, {
4601
- deep: true,
4602
- immediate: true
4603
- });
4604
- watch(() => props.modelValue, (value) => {
4605
- if (value !== innerValue.value) {
4606
- innerValue.value = value;
4607
- syncValue();
4646
+ watch(
4647
+ [configs, () => props.options],
4648
+ () => {
4649
+ init();
4650
+ },
4651
+ {
4652
+ deep: true,
4653
+ immediate: true
4654
+ }
4655
+ );
4656
+ watch(
4657
+ () => props.modelValue,
4658
+ (value) => {
4659
+ if (value !== innerValue.value) {
4660
+ innerValue.value = value;
4661
+ syncValue();
4662
+ }
4608
4663
  }
4609
- });
4610
- watch(() => props.visible, (val) => {
4611
- if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
4612
- syncValue();
4664
+ );
4665
+ watch(
4666
+ () => props.visible,
4667
+ (val) => {
4668
+ if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
4669
+ syncValue();
4670
+ }
4613
4671
  }
4614
- });
4615
- return __spreadValues({ panes, initLoading, tabsCursor }, methods);
4672
+ );
4673
+ return { panes, initLoading, tabsCursor, ...methods };
4616
4674
  }
4617
4675
  });
4618
4676
  const _hoisted_1$12 = {
@@ -4685,7 +4743,8 @@ const _sfc_main$1j = create$1j({
4685
4743
  components: {
4686
4744
  [CascaderItem.name]: CascaderItem
4687
4745
  },
4688
- props: __spreadProps(__spreadValues({}, popupProps), {
4746
+ props: {
4747
+ ...popupProps,
4689
4748
  modelValue: Array,
4690
4749
  visible: Boolean,
4691
4750
  title: String,
@@ -4708,7 +4767,7 @@ const _sfc_main$1j = create$1j({
4708
4767
  default: "children"
4709
4768
  },
4710
4769
  convertConfig: Object
4711
- }),
4770
+ },
4712
4771
  emits: ["update:modelValue", "change", "pathChange", "update:visible"],
4713
4772
  setup(props, { emit }) {
4714
4773
  const innerValue = ref(props.modelValue);
@@ -4729,11 +4788,14 @@ const _sfc_main$1j = create$1j({
4729
4788
  const onPathChange = (pathNodes) => {
4730
4789
  emit("pathChange", pathNodes);
4731
4790
  };
4732
- watch(() => props.modelValue, (value) => {
4733
- if (value !== innerValue.value) {
4734
- innerValue.value = value;
4791
+ watch(
4792
+ () => props.modelValue,
4793
+ (value) => {
4794
+ if (value !== innerValue.value) {
4795
+ innerValue.value = value;
4796
+ }
4735
4797
  }
4736
- });
4798
+ );
4737
4799
  return {
4738
4800
  onChange,
4739
4801
  onPathChange,
@@ -5170,11 +5232,17 @@ const _sfc_main$1i = create$1i({
5170
5232
  }
5171
5233
  monthInfo.cssScrollHeight = cssScrollHeight;
5172
5234
  if (type == "next") {
5173
- if (!state.endData || !Utils.compareDate(`${state.endData[0]}-${state.endData[1]}-${Utils.getMonthDays(state.endData[0], state.endData[1])}`, `${curData[0]}-${curData[1]}-${curData[2]}`)) {
5235
+ if (!state.endData || !Utils.compareDate(
5236
+ `${state.endData[0]}-${state.endData[1]}-${Utils.getMonthDays(state.endData[0], state.endData[1])}`,
5237
+ `${curData[0]}-${curData[1]}-${curData[2]}`
5238
+ )) {
5174
5239
  state.monthsData.push(monthInfo);
5175
5240
  }
5176
5241
  } else {
5177
- if (!state.startData || !Utils.compareDate(`${curData[0]}-${curData[1]}-${curData[2]}`, `${state.startData[0]}-${state.startData[1]}-01`)) {
5242
+ if (!state.startData || !Utils.compareDate(
5243
+ `${curData[0]}-${curData[1]}-${curData[2]}`,
5244
+ `${state.startData[0]}-${state.startData[1]}-01`
5245
+ )) {
5178
5246
  state.monthsData.unshift(monthInfo);
5179
5247
  } else {
5180
5248
  state.unLoadPrev = true;
@@ -5226,9 +5294,9 @@ const _sfc_main$1i = create$1i({
5226
5294
  if (state.currDate.length > 0) {
5227
5295
  let defaultArr = [];
5228
5296
  let obj = {};
5229
- state.currDate.forEach((item, index) => {
5297
+ state.currDate.forEach((item) => {
5230
5298
  if (propStartDate && !Utils.compareDate(item, propStartDate) && propEndDate && !Utils.compareDate(propEndDate, item)) {
5231
- if (!obj.hasOwnProperty(item)) {
5299
+ if (!Object.hasOwnProperty.call(obj, item)) {
5232
5300
  defaultArr.push(item);
5233
5301
  obj[item] = item;
5234
5302
  }
@@ -5357,7 +5425,7 @@ const _sfc_main$1i = create$1i({
5357
5425
  }
5358
5426
  return false;
5359
5427
  };
5360
- const rangeTip = (day, month) => {
5428
+ const rangeTip = () => {
5361
5429
  if (state.currDate.length >= 2) {
5362
5430
  return Utils.isEqual(state.currDate[0], state.currDate[1]);
5363
5431
  }
@@ -5407,14 +5475,17 @@ const _sfc_main$1i = create$1i({
5407
5475
  initData();
5408
5476
  };
5409
5477
  initData();
5410
- watch(() => props.defaultValue, (val) => {
5411
- if (val) {
5412
- if (props.poppable) {
5413
- resetRender();
5478
+ watch(
5479
+ () => props.defaultValue,
5480
+ (val) => {
5481
+ if (val) {
5482
+ if (props.poppable) {
5483
+ resetRender();
5484
+ }
5414
5485
  }
5415
5486
  }
5416
- });
5417
- return __spreadProps(__spreadValues(__spreadValues({
5487
+ );
5488
+ return {
5418
5489
  weeks,
5419
5490
  compConthsData,
5420
5491
  showTopBtn,
@@ -5431,10 +5502,11 @@ const _sfc_main$1i = create$1i({
5431
5502
  monthsPanel,
5432
5503
  months,
5433
5504
  weeksPanel,
5434
- viewArea
5435
- }, toRefs(state)), toRefs(props)), {
5505
+ viewArea,
5506
+ ...toRefs(state),
5507
+ ...toRefs(props),
5436
5508
  translate: translate$p
5437
- });
5509
+ };
5438
5510
  }
5439
5511
  });
5440
5512
  const _hoisted_1$10 = {
@@ -5460,12 +5532,12 @@ const _hoisted_5$m = {
5460
5532
  const _hoisted_6$l = { class: "calendar-month-title" };
5461
5533
  const _hoisted_7$i = { class: "calendar-month-con" };
5462
5534
  const _hoisted_8$d = ["onClick"];
5463
- const _hoisted_9$8 = { class: "calendar-day" };
5464
- const _hoisted_10$5 = {
5535
+ const _hoisted_9$9 = { class: "calendar-day" };
5536
+ const _hoisted_10$6 = {
5465
5537
  key: 0,
5466
5538
  class: "calendar-curr-tips calendar-curr-tips-top"
5467
5539
  };
5468
- const _hoisted_11$5 = {
5540
+ const _hoisted_11$6 = {
5469
5541
  key: 1,
5470
5542
  class: "calendar-curr-tips calendar-curr-tips-bottom"
5471
5543
  };
@@ -5477,7 +5549,7 @@ const _hoisted_13$3 = {
5477
5549
  key: 4,
5478
5550
  class: "calendar-day-tip"
5479
5551
  };
5480
- const _hoisted_14$2 = {
5552
+ const _hoisted_14$3 = {
5481
5553
  key: 0,
5482
5554
  class: "nut-calendar-footer"
5483
5555
  };
@@ -5532,19 +5604,19 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
5532
5604
  class: normalizeClass(["calendar-month-day", _ctx.getClass(day, month)]),
5533
5605
  onClick: ($event) => _ctx.chooseDay(day, month)
5534
5606
  }, [
5535
- createElementVNode("view", _hoisted_9$8, [
5607
+ createElementVNode("view", _hoisted_9$9, [
5536
5608
  renderSlot(_ctx.$slots, "day", {
5537
5609
  date: day.type == "curr" ? day : ""
5538
5610
  }, () => [
5539
5611
  createTextVNode(toDisplayString(day.type == "curr" ? day.day : ""), 1)
5540
5612
  ])
5541
5613
  ]),
5542
- _ctx.topInfo ? (openBlock(), createElementBlock("view", _hoisted_10$5, [
5614
+ _ctx.topInfo ? (openBlock(), createElementBlock("view", _hoisted_10$6, [
5543
5615
  renderSlot(_ctx.$slots, "topInfo", {
5544
5616
  date: day.type == "curr" ? day : ""
5545
5617
  })
5546
5618
  ])) : createCommentVNode("", true),
5547
- _ctx.bottomInfo ? (openBlock(), createElementBlock("view", _hoisted_11$5, [
5619
+ _ctx.bottomInfo ? (openBlock(), createElementBlock("view", _hoisted_11$6, [
5548
5620
  renderSlot(_ctx.$slots, "bottomInfo", {
5549
5621
  date: day.type == "curr" ? day : ""
5550
5622
  })
@@ -5552,7 +5624,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
5552
5624
  !_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12$5, toDisplayString(_ctx.translate("today")), 1)) : createCommentVNode("", true),
5553
5625
  _ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
5554
5626
  key: 3,
5555
- class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip(day, month) }])
5627
+ class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip() }])
5556
5628
  }, toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : createCommentVNode("", true),
5557
5629
  _ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13$3, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
5558
5630
  ], 10, _hoisted_8$d);
@@ -5564,7 +5636,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
5564
5636
  ], 4)
5565
5637
  ], 512)
5566
5638
  ], 544),
5567
- _ctx.poppable && !_ctx.isAutoBackFill ? (openBlock(), createElementBlock("view", _hoisted_14$2, [
5639
+ _ctx.poppable && !_ctx.isAutoBackFill ? (openBlock(), createElementBlock("view", _hoisted_14$3, [
5568
5640
  createElementVNode("view", {
5569
5641
  class: "calendar-confirm-btn",
5570
5642
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
@@ -5587,6 +5659,10 @@ const _sfc_main$1h = create$1h({
5587
5659
  type: Boolean,
5588
5660
  default: false
5589
5661
  },
5662
+ toDateAnimation: {
5663
+ type: Boolean,
5664
+ default: true
5665
+ },
5590
5666
  poppable: {
5591
5667
  type: Boolean,
5592
5668
  default: true
@@ -5723,7 +5799,8 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
5723
5799
  onSelect: _ctx.select,
5724
5800
  "show-today": _ctx.showToday,
5725
5801
  "show-title": _ctx.showTitle,
5726
- "show-sub-title": _ctx.showSubTitle
5802
+ "show-sub-title": _ctx.showSubTitle,
5803
+ "to-date-animation": _ctx.toDateAnimation
5727
5804
  }, createSlots({ _: 2 }, [
5728
5805
  _ctx.showTopBtn ? {
5729
5806
  name: "btn",
@@ -5755,7 +5832,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
5755
5832
  })
5756
5833
  ])
5757
5834
  } : void 0
5758
- ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"])) : createCommentVNode("", true)
5835
+ ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"])) : createCommentVNode("", true)
5759
5836
  ]),
5760
5837
  _: 3
5761
5838
  }, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
@@ -5777,6 +5854,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
5777
5854
  "show-today": _ctx.showToday,
5778
5855
  "show-title": _ctx.showTitle,
5779
5856
  "show-sub-title": _ctx.showSubTitle,
5857
+ "to-date-animation": _ctx.toDateAnimation,
5780
5858
  ref: "calendarRef"
5781
5859
  }, createSlots({ _: 2 }, [
5782
5860
  _ctx.showTopBtn ? {
@@ -5809,7 +5887,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
5809
5887
  })
5810
5888
  ])
5811
5889
  } : void 0
5812
- ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"]));
5890
+ ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"]));
5813
5891
  }
5814
5892
  var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1b]]);
5815
5893
  const component$4 = (componentName2, nutIcon) => {
@@ -5890,13 +5968,16 @@ const component$4 = (componentName2, nutIcon) => {
5890
5968
  emit("update:modelValue", value);
5891
5969
  emit("change", value, label);
5892
5970
  };
5893
- watch(() => props.modelValue, (v) => {
5894
- if (updateType == "click") {
5895
- updateType = "";
5896
- } else {
5897
- emit("change", v);
5971
+ watch(
5972
+ () => props.modelValue,
5973
+ (v) => {
5974
+ if (updateType == "click") {
5975
+ updateType = "";
5976
+ } else {
5977
+ emit("change", v);
5978
+ }
5898
5979
  }
5899
- });
5980
+ );
5900
5981
  const renderIcon = () => {
5901
5982
  const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName, iconIndeterminateName } = props;
5902
5983
  return h(nutIcon, {
@@ -5909,9 +5990,13 @@ const component$4 = (componentName2, nutIcon) => {
5909
5990
  };
5910
5991
  const renderLabel = () => {
5911
5992
  var _a;
5912
- return h("view", {
5913
- class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
5914
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
5993
+ return h(
5994
+ "view",
5995
+ {
5996
+ class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
5997
+ },
5998
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
5999
+ );
5915
6000
  };
5916
6001
  const handleClick = (e) => {
5917
6002
  var _a, _b;
@@ -5939,14 +6024,21 @@ const component$4 = (componentName2, nutIcon) => {
5939
6024
  onMounted(() => {
5940
6025
  hasParent.value && parent["relation"](getCurrentInstance());
5941
6026
  });
5942
- watch(() => props.indeterminate, (newVal) => {
5943
- state.partialSelect = newVal;
5944
- });
6027
+ watch(
6028
+ () => props.indeterminate,
6029
+ (newVal) => {
6030
+ state.partialSelect = newVal;
6031
+ }
6032
+ );
5945
6033
  return () => {
5946
- return h("view", {
5947
- class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
5948
- onClick: handleClick
5949
- }, [renderIcon(), renderLabel()]);
6034
+ return h(
6035
+ "view",
6036
+ {
6037
+ class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
6038
+ onClick: handleClick
6039
+ },
6040
+ [renderIcon(), renderLabel()]
6041
+ );
5950
6042
  };
5951
6043
  }
5952
6044
  };
@@ -6015,15 +6107,22 @@ const _sfc_main$1f = create$1f({
6015
6107
  updateValue,
6016
6108
  relation
6017
6109
  });
6018
- watch(() => props.modelValue, (value) => {
6019
- emit("change", value);
6020
- });
6110
+ watch(
6111
+ () => props.modelValue,
6112
+ (value) => {
6113
+ emit("change", value);
6114
+ }
6115
+ );
6021
6116
  useExpose({ toggleAll, toggleReverse });
6022
6117
  return () => {
6023
6118
  var _a;
6024
- return h("view", {
6025
- class: `${componentName$13}`
6026
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
6119
+ return h(
6120
+ "view",
6121
+ {
6122
+ class: `${componentName$13}`
6123
+ },
6124
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
6125
+ );
6027
6126
  };
6028
6127
  }
6029
6128
  });
@@ -6047,6 +6146,10 @@ const _sfc_main$1e = create$1e({
6047
6146
  threeDimensional: {
6048
6147
  type: Boolean,
6049
6148
  default: true
6149
+ },
6150
+ swipeDuration: {
6151
+ type: [Number, String],
6152
+ default: 1e3
6050
6153
  }
6051
6154
  },
6052
6155
  emits: ["click", "change"],
@@ -6074,6 +6177,7 @@ const _sfc_main$1e = create$1e({
6074
6177
  const moving = ref(false);
6075
6178
  const touchDeg = ref(0);
6076
6179
  const touchTime = ref(0);
6180
+ const DEFAULT_DURATION = 200;
6077
6181
  const INERTIA_TIME = 300;
6078
6182
  const INERTIA_DISTANCE = 15;
6079
6183
  const touchRollerStyle = computed(() => {
@@ -6122,7 +6226,7 @@ const _sfc_main$1e = create$1e({
6122
6226
  let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
6123
6227
  if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
6124
6228
  const distance = momentum(move, moveTime);
6125
- setMove(distance, "end", moveTime + 1e3);
6229
+ setMove(distance, "end", +props.swipeDuration);
6126
6230
  return;
6127
6231
  } else {
6128
6232
  setMove(move, "end");
@@ -6144,7 +6248,7 @@ const _sfc_main$1e = create$1e({
6144
6248
  return false;
6145
6249
  }
6146
6250
  };
6147
- const setTransform = (translateY = 0, type, time = 1e3, deg) => {
6251
+ const setTransform = (translateY = 0, type, time = DEFAULT_DURATION, deg) => {
6148
6252
  if (type === "end") {
6149
6253
  touchTime.value = time;
6150
6254
  } else {
@@ -6201,24 +6305,34 @@ const _sfc_main$1e = create$1e({
6201
6305
  moving.value = false;
6202
6306
  setChooseValue();
6203
6307
  };
6204
- watch(() => props.column, (val) => {
6205
- if (props.column && props.column.length > 0) {
6308
+ watch(
6309
+ () => props.column,
6310
+ (val) => {
6311
+ if (props.column && props.column.length > 0) {
6312
+ state.transformY = 0;
6313
+ modifyStatus(false);
6314
+ }
6315
+ },
6316
+ {
6317
+ deep: true
6318
+ }
6319
+ );
6320
+ watch(
6321
+ () => props.value,
6322
+ (val) => {
6206
6323
  state.transformY = 0;
6207
6324
  modifyStatus(false);
6325
+ },
6326
+ {
6327
+ deep: true
6208
6328
  }
6209
- }, {
6210
- deep: true
6211
- });
6212
- watch(() => props.value, (val) => {
6213
- state.transformY = 0;
6214
- modifyStatus(false);
6215
- }, {
6216
- deep: true
6217
- });
6329
+ );
6218
6330
  onMounted(() => {
6219
6331
  modifyStatus(true);
6220
6332
  });
6221
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
6333
+ return {
6334
+ ...toRefs(state),
6335
+ ...toRefs(props),
6222
6336
  wrapper,
6223
6337
  setRollerStyle,
6224
6338
  isHidden,
@@ -6231,7 +6345,7 @@ const _sfc_main$1e = create$1e({
6231
6345
  touchTileStyle,
6232
6346
  setMove,
6233
6347
  stopMomentum
6234
- });
6348
+ };
6235
6349
  }
6236
6350
  });
6237
6351
  const _hoisted_1$$ = {
@@ -6286,7 +6400,8 @@ const _sfc_main$1d = create$1d({
6286
6400
  [column$1.name]: column$1,
6287
6401
  [Popup.name]: Popup
6288
6402
  },
6289
- props: __spreadProps(__spreadValues({}, popupProps), {
6403
+ props: {
6404
+ ...popupProps,
6290
6405
  modelValue: {
6291
6406
  type: Array,
6292
6407
  default: () => []
@@ -6316,8 +6431,12 @@ const _sfc_main$1d = create$1d({
6316
6431
  threeDimensional: {
6317
6432
  type: Boolean,
6318
6433
  default: true
6434
+ },
6435
+ swipeDuration: {
6436
+ type: [Number, String],
6437
+ default: 1e3
6319
6438
  }
6320
- }),
6439
+ },
6321
6440
  emits: ["close", "change", "confirm", "update:visible", "update:modelValue"],
6322
6441
  setup(props, { emit }) {
6323
6442
  const state = reactive({
@@ -6415,6 +6534,12 @@ const _sfc_main$1d = create$1d({
6415
6534
  }
6416
6535
  };
6417
6536
  const confirmHandler = () => {
6537
+ if (defaultValues.value && !defaultValues.value.length) {
6538
+ columnsList.value.forEach((columns) => {
6539
+ defaultValues.value.push(columns[0].value);
6540
+ selectedOptions.value.push(columns[0]);
6541
+ });
6542
+ }
6418
6543
  emit("confirm", {
6419
6544
  selectedValue: defaultValues.value,
6420
6545
  selectedOptions: selectedOptions.value
@@ -6429,28 +6554,42 @@ const _sfc_main$1d = create$1d({
6429
6554
  if (props.visible)
6430
6555
  state.show = false;
6431
6556
  });
6432
- watch(() => props.modelValue, (newValues) => {
6433
- const isSameValue = JSON.stringify(newValues) === JSON.stringify(defaultValues.value);
6434
- if (!isSameValue) {
6435
- defaultValues.value = newValues;
6436
- }
6437
- }, { deep: true });
6438
- watch(defaultValues, (newValues) => {
6439
- const isSameValue = JSON.stringify(newValues) === JSON.stringify(props.modelValue);
6440
- if (!isSameValue) {
6441
- emit("update:modelValue", newValues);
6442
- }
6443
- }, { immediate: true });
6444
- watch(() => props.visible, (val) => {
6445
- state.show = val;
6446
- });
6447
- watch(() => props.columns, (val) => {
6448
- if (val.length)
6449
- state.formattedColumns = val;
6450
- });
6451
- return __spreadProps(__spreadValues({
6452
- classes
6453
- }, toRefs(state)), {
6557
+ watch(
6558
+ () => props.modelValue,
6559
+ (newValues) => {
6560
+ const isSameValue = JSON.stringify(newValues) === JSON.stringify(defaultValues.value);
6561
+ if (!isSameValue) {
6562
+ defaultValues.value = newValues;
6563
+ }
6564
+ },
6565
+ { deep: true }
6566
+ );
6567
+ watch(
6568
+ defaultValues,
6569
+ (newValues) => {
6570
+ const isSameValue = JSON.stringify(newValues) === JSON.stringify(props.modelValue);
6571
+ if (!isSameValue) {
6572
+ emit("update:modelValue", newValues);
6573
+ }
6574
+ },
6575
+ { immediate: true }
6576
+ );
6577
+ watch(
6578
+ () => props.visible,
6579
+ (val) => {
6580
+ state.show = val;
6581
+ }
6582
+ );
6583
+ watch(
6584
+ () => props.columns,
6585
+ (val) => {
6586
+ if (val.length)
6587
+ state.formattedColumns = val;
6588
+ }
6589
+ );
6590
+ return {
6591
+ classes,
6592
+ ...toRefs(state),
6454
6593
  column: column$1,
6455
6594
  columnsType,
6456
6595
  columnsList,
@@ -6459,7 +6598,7 @@ const _sfc_main$1d = create$1d({
6459
6598
  confirmHandler,
6460
6599
  defaultValues,
6461
6600
  translate: translate$o
6462
- });
6601
+ };
6463
6602
  }
6464
6603
  });
6465
6604
  const _hoisted_1$_ = { class: "nut-picker__bar" };
@@ -6513,10 +6652,11 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
6513
6652
  columnsType: _ctx.columnsType,
6514
6653
  value: _ctx.defaultValues[columnIndex],
6515
6654
  threeDimensional: _ctx.threeDimensional,
6655
+ swipeDuration: _ctx.swipeDuration,
6516
6656
  onChange: (option) => {
6517
6657
  _ctx.changeHandler(columnIndex, option);
6518
6658
  }
6519
- }, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "onChange"])
6659
+ }, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "swipeDuration", "onChange"])
6520
6660
  ]);
6521
6661
  }), 128))
6522
6662
  ], 512),
@@ -6551,7 +6691,8 @@ const _sfc_main$1c = create$1c({
6551
6691
  components: {
6552
6692
  [Picker.name]: Picker
6553
6693
  },
6554
- props: __spreadProps(__spreadValues({}, popupProps), {
6694
+ props: {
6695
+ ...popupProps,
6555
6696
  modelValue: null,
6556
6697
  title: {
6557
6698
  type: String,
@@ -6596,7 +6737,7 @@ const _sfc_main$1c = create$1c({
6596
6737
  default: true
6597
6738
  },
6598
6739
  filter: Function
6599
- }),
6740
+ },
6600
6741
  emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
6601
6742
  setup(props, { emit }) {
6602
6743
  const state = reactive({
@@ -6803,21 +6944,31 @@ const _sfc_main$1c = create$1c({
6803
6944
  onBeforeMount(() => {
6804
6945
  state.currentDate = formatValue(props.modelValue);
6805
6946
  });
6806
- watch(() => props.modelValue, (value) => {
6807
- state.currentDate = formatValue(value);
6808
- });
6809
- watch(() => props.title, (val) => {
6810
- state.title = val;
6811
- });
6812
- watch(() => props.visible, (val) => {
6813
- state.show = val;
6814
- });
6815
- return __spreadProps(__spreadValues({}, toRefs(state)), {
6947
+ watch(
6948
+ () => props.modelValue,
6949
+ (value) => {
6950
+ state.currentDate = formatValue(value);
6951
+ }
6952
+ );
6953
+ watch(
6954
+ () => props.title,
6955
+ (val) => {
6956
+ state.title = val;
6957
+ }
6958
+ );
6959
+ watch(
6960
+ () => props.visible,
6961
+ (val) => {
6962
+ state.show = val;
6963
+ }
6964
+ );
6965
+ return {
6966
+ ...toRefs(state),
6816
6967
  changeHandler,
6817
6968
  closeHandler,
6818
6969
  confirm,
6819
6970
  columns
6820
- });
6971
+ };
6821
6972
  }
6822
6973
  });
6823
6974
  function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
@@ -6885,6 +7036,14 @@ const _sfc_main$1b = create$1b({
6885
7036
  readonly: {
6886
7037
  type: Boolean,
6887
7038
  default: false
7039
+ },
7040
+ iconLeft: {
7041
+ type: String,
7042
+ default: "minus"
7043
+ },
7044
+ iconRight: {
7045
+ type: String,
7046
+ default: "plus"
6888
7047
  }
6889
7048
  },
6890
7049
  emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
@@ -6974,12 +7133,11 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
6974
7133
  class: normalizeClass(_ctx.classes),
6975
7134
  style: normalizeStyle({ height: _ctx.pxCheck(_ctx.buttonSize) })
6976
7135
  }, [
6977
- createVNode(_component_nut_icon, {
6978
- name: "minus",
6979
- class: normalizeClass(["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.reduceAllow() }]),
6980
- size: _ctx.buttonSize,
6981
- onClick: _ctx.reduce
6982
- }, null, 8, ["class", "size", "onClick"]),
7136
+ createVNode(_component_nut_icon, mergeProps({
7137
+ name: _ctx.iconLeft,
7138
+ class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.reduceAllow() }],
7139
+ size: _ctx.buttonSize
7140
+ }, _ctx.$attrs, { onClick: _ctx.reduce }), null, 16, ["name", "class", "size", "onClick"]),
6983
7141
  createElementVNode("input", {
6984
7142
  type: "number",
6985
7143
  min: _ctx.min,
@@ -6992,12 +7150,11 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
6992
7150
  onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
6993
7151
  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
6994
7152
  }, null, 44, _hoisted_1$Z),
6995
- createVNode(_component_nut_icon, {
6996
- name: "plus",
6997
- class: normalizeClass(["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.addAllow() }]),
6998
- size: _ctx.buttonSize,
6999
- onClick: _ctx.add
7000
- }, null, 8, ["class", "size", "onClick"])
7153
+ createVNode(_component_nut_icon, mergeProps({
7154
+ name: _ctx.iconRight,
7155
+ class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.addAllow() }],
7156
+ size: _ctx.buttonSize
7157
+ }, _ctx.$attrs, { onClick: _ctx.add }), null, 16, ["name", "class", "size", "onClick"])
7001
7158
  ], 6);
7002
7159
  }
7003
7160
  var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$17]]);
@@ -7264,6 +7421,8 @@ const _sfc_main$1a = create$1a({
7264
7421
  emit("blur", value, event);
7265
7422
  };
7266
7423
  const clear = (event) => {
7424
+ if (props.disabled)
7425
+ return;
7267
7426
  emit("update:modelValue", "", event);
7268
7427
  emit("change", "", event);
7269
7428
  emit("clear", "", event);
@@ -7298,10 +7457,13 @@ const _sfc_main$1a = create$1a({
7298
7457
  return;
7299
7458
  }
7300
7459
  };
7301
- watch(() => props.modelValue, () => {
7302
- updateValue(getModelValue());
7303
- resetValidation();
7304
- });
7460
+ watch(
7461
+ () => props.modelValue,
7462
+ () => {
7463
+ updateValue(getModelValue());
7464
+ resetValidation();
7465
+ }
7466
+ );
7305
7467
  onMounted(() => {
7306
7468
  updateValue(getModelValue(), props.formatTrigger);
7307
7469
  });
@@ -7328,18 +7490,21 @@ const _hoisted_1$Y = { class: "label-string" };
7328
7490
  const _hoisted_2$N = { class: "nut-input-value" };
7329
7491
  const _hoisted_3$B = { class: "label-string" };
7330
7492
  const _hoisted_4$t = { class: "nut-input-value" };
7331
- const _hoisted_5$l = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
7332
- const _hoisted_6$k = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
7333
- const _hoisted_7$h = {
7493
+ const _hoisted_5$l = { class: "nut-input-inner" };
7494
+ const _hoisted_6$k = { class: "nut-input-box" };
7495
+ const _hoisted_7$h = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
7496
+ const _hoisted_8$c = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
7497
+ const _hoisted_9$8 = { class: "nut-input-clear-box" };
7498
+ const _hoisted_10$5 = {
7334
7499
  key: 0,
7335
7500
  class: "nut-input-word-limit"
7336
7501
  };
7337
- const _hoisted_8$c = { class: "nut-input-word-num" };
7502
+ const _hoisted_11$5 = { class: "nut-input-word-num" };
7338
7503
  function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
7339
7504
  const _component_nut_icon = resolveComponent("nut-icon");
7340
7505
  return openBlock(), createElementBlock("view", {
7341
7506
  class: normalizeClass(_ctx.classes),
7342
- onClick: _cache[10] || (_cache[10] = (...args) => _ctx.onClick && _ctx.onClick(...args))
7507
+ onClick: _cache[11] || (_cache[11] = (...args) => _ctx.onClick && _ctx.onClick(...args))
7343
7508
  }, [
7344
7509
  _ctx.$slots.input ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
7345
7510
  _ctx.label ? (openBlock(), createElementBlock("view", {
@@ -7366,10 +7531,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
7366
7531
  class: "nut-input-left-icon",
7367
7532
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClickLeftIcon && _ctx.onClickLeftIcon(...args))
7368
7533
  }, [
7369
- createVNode(_component_nut_icon, {
7370
- name: _ctx.leftIcon,
7371
- size: _ctx.leftIconSize
7372
- }, null, 8, ["name", "size"])
7534
+ createVNode(_component_nut_icon, mergeProps({ name: _ctx.leftIcon }, _ctx.$attrs, { size: _ctx.leftIconSize }), null, 16, ["name", "size"])
7373
7535
  ])) : createCommentVNode("", true),
7374
7536
  _ctx.label ? (openBlock(), createElementBlock("view", {
7375
7537
  key: 1,
@@ -7382,68 +7544,69 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
7382
7544
  createElementVNode("view", _hoisted_3$B, toDisplayString(_ctx.label) + " " + toDisplayString(_ctx.colon ? ":" : ""), 1)
7383
7545
  ], 6)) : createCommentVNode("", true),
7384
7546
  createElementVNode("view", _hoisted_4$t, [
7385
- createElementVNode("view", {
7386
- class: "nut-input-inner",
7387
- onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
7388
- }, [
7389
- _ctx.type == "textarea" ? (openBlock(), createElementBlock("textarea", {
7390
- key: 0,
7391
- class: "input-text",
7392
- ref: "inputRef",
7393
- style: normalizeStyle(_ctx.stylesTextarea),
7394
- maxlength: _ctx.maxLength,
7395
- placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
7396
- disabled: _ctx.disabled,
7397
- readonly: _ctx.readonly,
7398
- value: _ctx.modelValue,
7399
- formatTrigger: _ctx.formatTrigger,
7400
- autofocus: _ctx.autofocus,
7401
- onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
7402
- onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
7403
- onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
7404
- }, null, 44, _hoisted_5$l)) : (openBlock(), createElementBlock("input", {
7405
- key: 1,
7406
- class: "input-text",
7407
- ref: "inputRef",
7408
- style: normalizeStyle(_ctx.styles),
7409
- type: _ctx.inputType(_ctx.type),
7410
- maxlength: _ctx.maxLength,
7411
- placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
7412
- disabled: _ctx.disabled,
7413
- readonly: _ctx.readonly,
7414
- value: _ctx.modelValue,
7415
- formatTrigger: _ctx.formatTrigger,
7416
- autofocus: _ctx.autofocus,
7417
- onInput: _cache[5] || (_cache[5] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
7418
- onFocus: _cache[6] || (_cache[6] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
7419
- onBlur: _cache[7] || (_cache[7] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
7420
- }, null, 44, _hoisted_6$k)),
7421
- _ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createBlock(_component_nut_icon, {
7422
- key: 2,
7423
- class: "nut-input-clear",
7424
- name: _ctx.clearIcon,
7425
- size: _ctx.clearSize,
7426
- onClick: _ctx.clear
7427
- }, null, 8, ["name", "size", "onClick"])), [
7428
- [vShow, _ctx.active && _ctx.modelValue.length > 0]
7429
- ]) : createCommentVNode("", true),
7547
+ createElementVNode("view", _hoisted_5$l, [
7548
+ createElementVNode("view", _hoisted_6$k, [
7549
+ _ctx.type == "textarea" ? (openBlock(), createElementBlock("textarea", {
7550
+ key: 0,
7551
+ class: "input-text",
7552
+ ref: "inputRef",
7553
+ style: normalizeStyle(_ctx.stylesTextarea),
7554
+ maxlength: _ctx.maxLength,
7555
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
7556
+ disabled: _ctx.disabled,
7557
+ readonly: _ctx.readonly,
7558
+ value: _ctx.modelValue,
7559
+ formatTrigger: _ctx.formatTrigger,
7560
+ autofocus: _ctx.autofocus,
7561
+ onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
7562
+ onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
7563
+ onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
7564
+ onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
7565
+ }, null, 44, _hoisted_7$h)) : (openBlock(), createElementBlock("input", {
7566
+ key: 1,
7567
+ class: "input-text",
7568
+ ref: "inputRef",
7569
+ style: normalizeStyle(_ctx.styles),
7570
+ type: _ctx.inputType(_ctx.type),
7571
+ maxlength: _ctx.maxLength,
7572
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
7573
+ disabled: _ctx.disabled,
7574
+ readonly: _ctx.readonly,
7575
+ value: _ctx.modelValue,
7576
+ formatTrigger: _ctx.formatTrigger,
7577
+ autofocus: _ctx.autofocus,
7578
+ onInput: _cache[6] || (_cache[6] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
7579
+ onFocus: _cache[7] || (_cache[7] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
7580
+ onBlur: _cache[8] || (_cache[8] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
7581
+ onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
7582
+ }, null, 44, _hoisted_8$c))
7583
+ ]),
7584
+ createElementVNode("view", _hoisted_9$8, [
7585
+ _ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createBlock(_component_nut_icon, mergeProps({
7586
+ key: 0,
7587
+ class: "nut-input-clear",
7588
+ name: _ctx.clearIcon
7589
+ }, _ctx.$attrs, {
7590
+ size: _ctx.clearSize,
7591
+ onClick: _ctx.clear
7592
+ }), null, 16, ["name", "size", "onClick"])), [
7593
+ [vShow, _ctx.active && _ctx.modelValue.length > 0]
7594
+ ]) : createCommentVNode("", true)
7595
+ ]),
7430
7596
  _ctx.rightIcon && _ctx.rightIcon.length > 0 ? (openBlock(), createElementBlock("view", {
7431
- key: 3,
7597
+ key: 0,
7432
7598
  class: "nut-input-right-icon",
7433
- onClick: _cache[8] || (_cache[8] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
7599
+ onClick: _cache[10] || (_cache[10] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
7434
7600
  }, [
7435
- createVNode(_component_nut_icon, {
7436
- name: _ctx.rightIcon,
7437
- size: _ctx.rightIconSize
7438
- }, null, 8, ["name", "size"])
7601
+ createVNode(_component_nut_icon, mergeProps({ name: _ctx.rightIcon }, _ctx.$attrs, { size: _ctx.rightIconSize }), null, 16, ["name", "size"])
7439
7602
  ])) : createCommentVNode("", true),
7440
7603
  _ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {
7441
- key: 4,
7604
+ key: 1,
7442
7605
  class: "nut-input-button"
7443
7606
  }) : createCommentVNode("", true)
7444
7607
  ]),
7445
- _ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_7$h, [
7446
- createElementVNode("span", _hoisted_8$c, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
7608
+ _ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_10$5, [
7609
+ createElementVNode("span", _hoisted_11$5, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
7447
7610
  createTextVNode("/" + toDisplayString(_ctx.maxLength), 1)
7448
7611
  ])) : createCommentVNode("", true),
7449
7612
  _ctx.errorMessage ? (openBlock(), createElementBlock("view", {
@@ -7517,15 +7680,23 @@ const _sfc_main$19 = create$19({
7517
7680
  };
7518
7681
  const renderLabel = () => {
7519
7682
  var _a;
7520
- return h("view", {
7521
- class: `${componentName$_}__label ${props.disabled ? `${componentName$_}__label--disabled` : ""}`
7522
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
7683
+ return h(
7684
+ "view",
7685
+ {
7686
+ class: `${componentName$_}__label ${props.disabled ? `${componentName$_}__label--disabled` : ""}`
7687
+ },
7688
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
7689
+ );
7523
7690
  };
7524
7691
  const renderButton = () => {
7525
7692
  var _a;
7526
- return h("view", {
7527
- class: `${componentName$_}__button ${isCurValue.value && `${componentName$_}__button--active`} ${props.disabled ? `${componentName$_}__button--disabled` : ""}`
7528
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
7693
+ return h(
7694
+ "view",
7695
+ {
7696
+ class: `${componentName$_}__button ${isCurValue.value && `${componentName$_}__button--active`} ${props.disabled ? `${componentName$_}__button--disabled` : ""}`
7697
+ },
7698
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
7699
+ );
7529
7700
  };
7530
7701
  const handleClick = () => {
7531
7702
  if (isCurValue.value || props.disabled)
@@ -7534,12 +7705,16 @@ const _sfc_main$19 = create$19({
7534
7705
  };
7535
7706
  let reverseState = position.value === "left";
7536
7707
  return () => {
7537
- return h("view", {
7538
- class: `${componentName$_} ${componentName$_}--${props.shape} ${reverseState ? `${componentName$_}--reverse` : ""}`,
7539
- onClick: handleClick
7540
- }, [
7541
- props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
7542
- ]);
7708
+ return h(
7709
+ "view",
7710
+ {
7711
+ class: `${componentName$_} ${componentName$_}--${props.shape} ${reverseState ? `${componentName$_}--reverse` : ""}`,
7712
+ onClick: handleClick
7713
+ },
7714
+ [
7715
+ props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
7716
+ ]
7717
+ );
7543
7718
  };
7544
7719
  }
7545
7720
  });
@@ -7567,12 +7742,19 @@ const _sfc_main$18 = create$18({
7567
7742
  position: props.textPosition,
7568
7743
  updateValue
7569
7744
  });
7570
- watch(() => props.modelValue, (value) => emit("change", value));
7745
+ watch(
7746
+ () => props.modelValue,
7747
+ (value) => emit("change", value)
7748
+ );
7571
7749
  return () => {
7572
7750
  var _a;
7573
- return h("view", {
7574
- class: `${componentName$Z} ${componentName$Z}--${props.direction}`
7575
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
7751
+ return h(
7752
+ "view",
7753
+ {
7754
+ class: `${componentName$Z} ${componentName$Z}--${props.direction}`
7755
+ },
7756
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
7757
+ );
7576
7758
  };
7577
7759
  }
7578
7760
  });
@@ -7699,14 +7881,14 @@ const useComponent = (touchable = true) => {
7699
7881
  }
7700
7882
  };
7701
7883
  const refRandomId = Math.random().toString(36).slice(-8);
7702
- return __spreadProps(__spreadValues({
7703
- classes
7704
- }, touchMethods), {
7884
+ return {
7885
+ classes,
7886
+ ...touchMethods,
7705
7887
  onClick,
7706
7888
  pxCheck,
7707
7889
  rateRefs,
7708
7890
  refRandomId
7709
- });
7891
+ };
7710
7892
  }
7711
7893
  };
7712
7894
  };
@@ -7818,16 +8000,23 @@ const _sfc_main$16 = create$16({
7818
8000
  function focus() {
7819
8001
  realpwd.value.focus();
7820
8002
  }
7821
- watch(() => props.visible, (value) => {
7822
- show.value = value;
7823
- });
7824
- watch(() => props.modelValue, (value) => {
7825
- realInput.value = value;
7826
- emit("update:modelValue", value);
7827
- }, {
7828
- deep: true,
7829
- immediate: true
7830
- });
8003
+ watch(
8004
+ () => props.visible,
8005
+ (value) => {
8006
+ show.value = value;
8007
+ }
8008
+ );
8009
+ watch(
8010
+ () => props.modelValue,
8011
+ (value) => {
8012
+ realInput.value = value;
8013
+ emit("update:modelValue", value);
8014
+ },
8015
+ {
8016
+ deep: true,
8017
+ immediate: true
8018
+ }
8019
+ );
7831
8020
  function changeValue(e) {
7832
8021
  const input = e.target;
7833
8022
  let val = input.value;
@@ -8067,11 +8256,14 @@ const _sfc_main$15 = create$15({
8067
8256
  textarea.style.height = height + "px";
8068
8257
  }
8069
8258
  };
8070
- watch(() => props.modelValue, () => {
8071
- if (props.autosize) {
8072
- nextTick(getContentHeight);
8259
+ watch(
8260
+ () => props.modelValue,
8261
+ () => {
8262
+ if (props.autosize) {
8263
+ nextTick(getContentHeight);
8264
+ }
8073
8265
  }
8074
- });
8266
+ );
8075
8267
  const emitChange = (value, event) => {
8076
8268
  if (props.maxLength && value.length > Number(props.maxLength)) {
8077
8269
  value = value.substring(0, Number(props.maxLength));
@@ -8161,10 +8353,14 @@ class Uploader$1 {
8161
8353
  const xhr = new XMLHttpRequest();
8162
8354
  xhr.timeout = options.timeout;
8163
8355
  if (xhr.upload) {
8164
- xhr.upload.addEventListener("progress", (e) => {
8165
- var _a2;
8166
- (_a2 = options.onProgress) == null ? void 0 : _a2.call(options, e, options);
8167
- }, false);
8356
+ xhr.upload.addEventListener(
8357
+ "progress",
8358
+ (e) => {
8359
+ var _a2;
8360
+ (_a2 = options.onProgress) == null ? void 0 : _a2.call(options, e, options);
8361
+ },
8362
+ false
8363
+ );
8168
8364
  xhr.onreadystatechange = () => {
8169
8365
  var _a2, _b;
8170
8366
  if (xhr.readyState === 4) {
@@ -8181,8 +8377,8 @@ class Uploader$1 {
8181
8377
  xhr.setRequestHeader(key, value);
8182
8378
  }
8183
8379
  (_a = options.onStart) == null ? void 0 : _a.call(options, options);
8184
- if (options.method.toLowerCase() == "put") {
8185
- xhr.send(options.sourceFile);
8380
+ if (options.beforeXhrUpload) {
8381
+ options.beforeXhrUpload(xhr, options);
8186
8382
  } else {
8187
8383
  xhr.send(options.formData);
8188
8384
  }
@@ -8196,33 +8392,38 @@ class Uploader$1 {
8196
8392
  if (env === "WEB") {
8197
8393
  this.upload();
8198
8394
  } else {
8199
- const uploadTask = uploadFile({
8200
- url: options.url,
8201
- filePath: options.taroFilePath,
8202
- fileType: options.fileType,
8203
- header: __spreadValues({
8204
- "Content-Type": "multipart/form-data"
8205
- }, options.headers),
8206
- formData: options.formData,
8207
- name: options.name,
8208
- success(response) {
8209
- var _a2, _b;
8210
- if (options.xhrState == response.statusCode) {
8211
- (_a2 = options.onSuccess) == null ? void 0 : _a2.call(options, response, options);
8212
- } else {
8213
- (_b = options.onFailure) == null ? void 0 : _b.call(options, response, options);
8395
+ if (options.beforeXhrUpload) {
8396
+ options.beforeXhrUpload(uploadFile, options);
8397
+ } else {
8398
+ const uploadTask = uploadFile({
8399
+ url: options.url,
8400
+ filePath: options.taroFilePath,
8401
+ fileType: options.fileType,
8402
+ header: {
8403
+ "Content-Type": "multipart/form-data",
8404
+ ...options.headers
8405
+ },
8406
+ formData: options.formData,
8407
+ name: options.name,
8408
+ success(response) {
8409
+ var _a2, _b;
8410
+ if (options.xhrState == response.statusCode) {
8411
+ (_a2 = options.onSuccess) == null ? void 0 : _a2.call(options, response, options);
8412
+ } else {
8413
+ (_b = options.onFailure) == null ? void 0 : _b.call(options, response, options);
8414
+ }
8415
+ },
8416
+ fail(e) {
8417
+ var _a2;
8418
+ (_a2 = options.onFailure) == null ? void 0 : _a2.call(options, e, options);
8214
8419
  }
8215
- },
8216
- fail(e) {
8420
+ });
8421
+ (_a = options.onStart) == null ? void 0 : _a.call(options, options);
8422
+ uploadTask.progress((res) => {
8217
8423
  var _a2;
8218
- (_a2 = options.onFailure) == null ? void 0 : _a2.call(options, e, options);
8219
- }
8220
- });
8221
- (_a = options.onStart) == null ? void 0 : _a.call(options, options);
8222
- uploadTask.progress((res) => {
8223
- var _a2;
8224
- (_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
8225
- });
8424
+ (_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
8425
+ });
8426
+ }
8226
8427
  }
8227
8428
  }
8228
8429
  }
@@ -8265,6 +8466,10 @@ const _sfc_main$14 = create$14({
8265
8466
  type: Function,
8266
8467
  default: null
8267
8468
  },
8469
+ beforeXhrUpload: {
8470
+ type: Function,
8471
+ default: null
8472
+ },
8268
8473
  beforeDelete: {
8269
8474
  type: Function,
8270
8475
  default: (file, files) => {
@@ -8308,6 +8513,7 @@ const _sfc_main$14 = create$14({
8308
8513
  uploadOption.xhrState = props.xhrState;
8309
8514
  uploadOption.headers = props.headers;
8310
8515
  uploadOption.withCredentials = props.withCredentials;
8516
+ uploadOption.beforeXhrUpload = props.beforeXhrUpload;
8311
8517
  try {
8312
8518
  uploadOption.sourceFile = fileItem.formData.get(props.name);
8313
8519
  } catch (error) {
@@ -8347,9 +8553,11 @@ const _sfc_main$14 = create$14({
8347
8553
  if (props.autoUpload) {
8348
8554
  task.upload();
8349
8555
  } else {
8350
- uploadQueue.push(new Promise((resolve, reject) => {
8351
- resolve(task);
8352
- }));
8556
+ uploadQueue.push(
8557
+ new Promise((resolve, reject) => {
8558
+ resolve(task);
8559
+ })
8560
+ );
8353
8561
  }
8354
8562
  };
8355
8563
  const clearUploadQueue = (index = -1) => {
@@ -8487,7 +8695,7 @@ const _hoisted_13$2 = {
8487
8695
  key: 1,
8488
8696
  class: "nut-uploader__preview-list"
8489
8697
  };
8490
- const _hoisted_14$1 = ["onClick"];
8698
+ const _hoisted_14$2 = ["onClick"];
8491
8699
  const _hoisted_15$1 = ["accept", "multiple", "name", "disabled"];
8492
8700
  const _hoisted_16$1 = ["accept", "multiple", "name", "disabled"];
8493
8701
  function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
@@ -8567,7 +8775,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
8567
8775
  }, [
8568
8776
  createVNode(_component_nut_icon, { name: "link" }),
8569
8777
  createTextVNode("\xA0" + toDisplayString(item.name), 1)
8570
- ], 10, _hoisted_14$1),
8778
+ ], 10, _hoisted_14$2),
8571
8779
  createVNode(_component_nut_icon, {
8572
8780
  class: "nut-uploader__preview-img__file__del",
8573
8781
  onClick: ($event) => _ctx.onDelete(item, index),
@@ -8588,11 +8796,11 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
8588
8796
  key: 1,
8589
8797
  class: normalizeClass(["nut-uploader__upload", [_ctx.listType]])
8590
8798
  }, [
8591
- createVNode(_component_nut_icon, {
8799
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
8592
8800
  size: _ctx.uploadIconSize,
8593
8801
  color: "#808080",
8594
8802
  name: _ctx.uploadIcon
8595
- }, null, 8, ["size", "name"]),
8803
+ }), null, 16, ["size", "name"]),
8596
8804
  _ctx.capture ? (openBlock(), createElementBlock("input", {
8597
8805
  key: 0,
8598
8806
  class: "nut-uploader__input",
@@ -8706,19 +8914,21 @@ const _sfc_main$13 = create$13({
8706
8914
  if (customKeys.length > 2) {
8707
8915
  customKeys = [customKeys[0], customKeys[1]];
8708
8916
  }
8917
+ if (customKeys.length == 2 && props.title && props.type != "rightColumn") {
8918
+ customKeys = [customKeys[0]];
8919
+ }
8709
8920
  if (customKeys.length === 1) {
8710
- if (props.title) {
8921
+ if (props.title && props.type != "rightColumn") {
8711
8922
  keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: "delete", type: "delete" });
8712
8923
  } else {
8713
8924
  keys.push({ id: 0, type: "number" }, { id: customKeys[0], type: "custom" });
8714
8925
  }
8715
8926
  } else if (customKeys.length === 2) {
8716
- keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: customKeys[1], type: "custom" });
8717
- if (props.title) {
8718
- keys.push({ id: "delete", type: "delete" });
8719
- }
8720
- } else {
8721
- keys.push({ id: 0, type: "number" });
8927
+ keys.push(
8928
+ { id: customKeys[0], type: "custom" },
8929
+ { id: 0, type: "number" },
8930
+ { id: customKeys[1], type: "custom" }
8931
+ );
8722
8932
  }
8723
8933
  return keys;
8724
8934
  }
@@ -8728,9 +8938,12 @@ const _sfc_main$13 = create$13({
8728
8938
  }
8729
8939
  return defaultKey();
8730
8940
  });
8731
- watch(() => props.visible, (value) => {
8732
- show.value = value;
8733
- });
8941
+ watch(
8942
+ () => props.visible,
8943
+ (value) => {
8944
+ show.value = value;
8945
+ }
8946
+ );
8734
8947
  function onTouchstart(item, event) {
8735
8948
  event.stopPropagation();
8736
8949
  clickKeyIndex.value = item.id;
@@ -8822,10 +9035,11 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
8822
9035
  createElementVNode("div", _hoisted_1$T, [
8823
9036
  _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$J, [
8824
9037
  createElementVNode("h3", _hoisted_3$y, toDisplayString(_ctx.title), 1),
8825
- createElementVNode("span", {
9038
+ _ctx.type == "default" ? (openBlock(), createElementBlock("span", {
9039
+ key: 0,
8826
9040
  class: "keyboard-close",
8827
9041
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
8828
- }, toDisplayString(_ctx.translate("done")), 1)
9042
+ }, toDisplayString(_ctx.translate("done")), 1)) : createCommentVNode("", true)
8829
9043
  ])) : createCommentVNode("", true),
8830
9044
  createElementVNode("div", _hoisted_4$q, [
8831
9045
  createElementVNode("div", _hoisted_5$i, [
@@ -8868,15 +9082,14 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
8868
9082
  onTouchend: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
8869
9083
  }, _hoisted_12$3, 34)
8870
9084
  ]),
8871
- _ctx.title == "" ? (openBlock(), createElementBlock("div", {
8872
- key: 0,
9085
+ createElementVNode("div", {
8873
9086
  class: "key-board-wrapper key-board-finish",
8874
9087
  onClick: _cache[5] || (_cache[5] = ($event) => _ctx.closeBoard())
8875
9088
  }, [
8876
9089
  createElementVNode("div", {
8877
9090
  class: normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
8878
9091
  }, toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
8879
- ])) : createCommentVNode("", true)
9092
+ ])
8880
9093
  ])) : createCommentVNode("", true)
8881
9094
  ])
8882
9095
  ], 512)
@@ -8905,9 +9118,13 @@ const component$2 = {
8905
9118
  const reset = () => {
8906
9119
  clearErrorTips();
8907
9120
  };
8908
- watch(() => props.modelValue, (value) => {
8909
- clearErrorTips(value);
8910
- }, { immediate: true });
9121
+ watch(
9122
+ () => props.modelValue,
9123
+ (value) => {
9124
+ clearErrorTips(value);
9125
+ },
9126
+ { immediate: true }
9127
+ );
8911
9128
  const findFormItem = (vnodes) => {
8912
9129
  let task = [];
8913
9130
  vnodes.forEach((vnode, index) => {
@@ -9288,20 +9505,29 @@ const _sfc_main$10 = create$10({
9288
9505
  type && setChooseValue();
9289
9506
  setMove(-move);
9290
9507
  };
9291
- watch(() => props.listData, (val) => {
9292
- state.transformY = 0;
9293
- modifyStatus(false);
9294
- }, {
9295
- deep: true
9296
- });
9297
- watch(() => props.defaultIndex, (val) => {
9298
- state.transformY = 0;
9299
- modifyStatus(false);
9300
- });
9508
+ watch(
9509
+ () => props.listData,
9510
+ (val) => {
9511
+ state.transformY = 0;
9512
+ modifyStatus(false);
9513
+ },
9514
+ {
9515
+ deep: true
9516
+ }
9517
+ );
9518
+ watch(
9519
+ () => props.defaultIndex,
9520
+ (val) => {
9521
+ state.transformY = 0;
9522
+ modifyStatus(false);
9523
+ }
9524
+ );
9301
9525
  onMounted(() => {
9302
9526
  modifyStatus(true);
9303
9527
  });
9304
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
9528
+ return {
9529
+ ...toRefs(state),
9530
+ ...toRefs(props),
9305
9531
  wrapper,
9306
9532
  setRollerStyle,
9307
9533
  isHidden,
@@ -9314,7 +9540,7 @@ const _sfc_main$10 = create$10({
9314
9540
  touchRollerStyle,
9315
9541
  touchListStyle,
9316
9542
  setMove
9317
- });
9543
+ };
9318
9544
  }
9319
9545
  });
9320
9546
  const _hoisted_1$R = { class: "nut-oldpicker-content" };
@@ -9366,7 +9592,8 @@ const _sfc_main$$ = create$$({
9366
9592
  [column.name]: column,
9367
9593
  [Popup.name]: Popup
9368
9594
  },
9369
- props: __spreadProps(__spreadValues({}, popupProps), {
9595
+ props: {
9596
+ ...popupProps,
9370
9597
  title: {
9371
9598
  type: String,
9372
9599
  default: ""
@@ -9393,7 +9620,7 @@ const _sfc_main$$ = create$$({
9393
9620
  type: [Number, String],
9394
9621
  default: 0
9395
9622
  }
9396
- }),
9623
+ },
9397
9624
  emits: ["close", "change", "confirm", "update:visible"],
9398
9625
  setup(props, { emit }) {
9399
9626
  const childrenKey = "children";
@@ -9489,7 +9716,9 @@ const _sfc_main$$ = create$$({
9489
9716
  _defaultIndex = dataIndex;
9490
9717
  } else if (dataType.value === "multipleColumns") {
9491
9718
  defaultIndexList[columnIndex] = dataIndex;
9492
- const val = defaultIndexList.map((res, i) => toRaw(state.formattedColumns)[i].values[res]);
9719
+ const val = defaultIndexList.map(
9720
+ (res, i) => toRaw(state.formattedColumns)[i].values[res]
9721
+ );
9493
9722
  emit("change", val, columnIndex, dataIndex);
9494
9723
  }
9495
9724
  };
@@ -9501,7 +9730,9 @@ const _sfc_main$$ = create$$({
9501
9730
  for (let i = 0; i < defaultIndexList.length; i++) {
9502
9731
  state.formattedColumns[i].defaultIndex = defaultIndexList[i];
9503
9732
  }
9504
- const checkedArr = toRaw(state.formattedColumns).map((res) => res.values && res.values[res.defaultIndex]);
9733
+ const checkedArr = toRaw(state.formattedColumns).map(
9734
+ (res) => res.values && res.values[res.defaultIndex]
9735
+ );
9505
9736
  emit("confirm", checkedArr);
9506
9737
  } else if (dataType.value === "cascade") {
9507
9738
  emit("confirm", getCascadeData(toRaw(state.formattedColumns), state.defaultIndex));
@@ -9516,22 +9747,28 @@ const _sfc_main$$ = create$$({
9516
9747
  if (props.visible)
9517
9748
  state.show = false;
9518
9749
  });
9519
- watch(() => props.visible, (val) => {
9520
- state.show = val;
9521
- });
9522
- watch(() => props.listData, (val) => {
9523
- state.formattedColumns = val;
9524
- });
9525
- return __spreadProps(__spreadValues({
9526
- classes
9527
- }, toRefs(state)), {
9750
+ watch(
9751
+ () => props.visible,
9752
+ (val) => {
9753
+ state.show = val;
9754
+ }
9755
+ );
9756
+ watch(
9757
+ () => props.listData,
9758
+ (val) => {
9759
+ state.formattedColumns = val;
9760
+ }
9761
+ );
9762
+ return {
9763
+ classes,
9764
+ ...toRefs(state),
9528
9765
  column,
9529
9766
  dataType,
9530
9767
  columnList,
9531
9768
  close,
9532
9769
  changeHandler,
9533
9770
  confirm
9534
- });
9771
+ };
9535
9772
  }
9536
9773
  });
9537
9774
  const _hoisted_1$Q = { class: "nut-oldpicker__bar" };
@@ -9729,15 +9966,15 @@ const _sfc_main$_ = create$_({
9729
9966
  }
9730
9967
  }
9731
9968
  };
9732
- return __spreadProps(__spreadValues({
9969
+ return {
9733
9970
  classes,
9734
- touchStyle
9735
- }, touchMethods), {
9971
+ touchStyle,
9972
+ ...touchMethods,
9736
9973
  leftRef,
9737
9974
  rightRef,
9738
9975
  open,
9739
9976
  close
9740
- });
9977
+ };
9741
9978
  }
9742
9979
  });
9743
9980
  const _hoisted_1$P = {
@@ -9772,7 +10009,8 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
9772
10009
  var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$Z]]);
9773
10010
  const { componentName: componentName$S, create: create$Z } = createComponent("actionsheet");
9774
10011
  const _sfc_main$Z = create$Z({
9775
- props: __spreadProps(__spreadValues({}, popupProps), {
10012
+ props: {
10013
+ ...popupProps,
9776
10014
  cancelTxt: {
9777
10015
  type: String,
9778
10016
  default: ""
@@ -9813,7 +10051,7 @@ const _sfc_main$Z = create$Z({
9813
10051
  type: Boolean,
9814
10052
  default: true
9815
10053
  }
9816
- }),
10054
+ },
9817
10055
  emits: ["cancel", "close", "choose", "update:visible"],
9818
10056
  setup(props, { emit }) {
9819
10057
  const slotDefault = !!useSlots().default;
@@ -10270,7 +10508,8 @@ const _sfc_main$W = create$W({
10270
10508
  [Popup.name]: Popup,
10271
10509
  [Button.name]: Button
10272
10510
  },
10273
- props: __spreadProps(__spreadValues({}, popupProps), {
10511
+ props: {
10512
+ ...popupProps,
10274
10513
  closeOnClickOverlay: {
10275
10514
  type: Boolean,
10276
10515
  default: false
@@ -10329,7 +10568,7 @@ const _sfc_main$W = create$W({
10329
10568
  beforeClose: {
10330
10569
  type: Function
10331
10570
  }
10332
- }),
10571
+ },
10333
10572
  emits: ["update", "update:visible", "ok", "cancel", "opened", "closed"],
10334
10573
  setup(props, { emit }) {
10335
10574
  const showPopup = ref(props.visible);
@@ -10340,12 +10579,15 @@ const _sfc_main$W = create$W({
10340
10579
  });
10341
10580
  }
10342
10581
  });
10343
- watch(() => props.visible, (value) => {
10344
- showPopup.value = value;
10345
- if (value) {
10346
- emit("opened");
10582
+ watch(
10583
+ () => props.visible,
10584
+ (value) => {
10585
+ showPopup.value = value;
10586
+ if (value) {
10587
+ emit("opened");
10588
+ }
10347
10589
  }
10348
- });
10590
+ );
10349
10591
  const classes = computed(() => {
10350
10592
  return {
10351
10593
  [componentName$P]: true,
@@ -10543,7 +10785,7 @@ class DialogFunction {
10543
10785
  };
10544
10786
  this.instance = createVNode(Wrapper);
10545
10787
  elWarp.appendChild(root);
10546
- render$3(this.instance, root);
10788
+ render$4(this.instance, root);
10547
10789
  }
10548
10790
  }
10549
10791
  const _Dialog = function(options) {
@@ -10733,16 +10975,16 @@ const _sfc_main$V = create$V({
10733
10975
  isKeepAlive.value = true;
10734
10976
  state.scrollEl.removeEventListener("scroll", handleScroll, props.useCapture);
10735
10977
  });
10736
- return __spreadProps(__spreadValues({
10737
- classes
10738
- }, toRefs(state)), {
10978
+ return {
10979
+ classes,
10980
+ ...toRefs(state),
10739
10981
  touchStart,
10740
10982
  touchMove,
10741
10983
  touchEnd,
10742
10984
  getStyle,
10743
10985
  translate: translate$f,
10744
10986
  slots
10745
- });
10987
+ };
10746
10988
  }
10747
10989
  });
10748
10990
  const _hoisted_1$M = { class: "top-box" };
@@ -10773,10 +11015,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
10773
11015
  style: normalizeStyle(_ctx.getStyle)
10774
11016
  }, [
10775
11017
  createElementVNode("view", _hoisted_1$M, [
10776
- createVNode(_component_nut_icon, {
10777
- class: "top-img",
10778
- name: _ctx.pullIcon
10779
- }, null, 8, ["name"]),
11018
+ createVNode(_component_nut_icon, mergeProps({ class: "top-img" }, _ctx.$attrs, { name: _ctx.pullIcon }), null, 16, ["name"]),
10780
11019
  createElementVNode("view", _hoisted_2$D, toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
10781
11020
  ])
10782
11021
  ], 4),
@@ -10786,10 +11025,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
10786
11025
  createElementVNode("view", _hoisted_4$n, [
10787
11026
  _ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_5$g, [
10788
11027
  !_ctx.slots.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
10789
- createVNode(_component_nut_icon, {
10790
- class: "bottom-img",
10791
- name: _ctx.loadIcon
10792
- }, null, 8, ["name"]),
11028
+ createVNode(_component_nut_icon, mergeProps({ class: "bottom-img" }, _ctx.$attrs, { name: _ctx.loadIcon }), null, 16, ["name"]),
10793
11029
  createElementVNode("view", _hoisted_6$f, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
10794
11030
  ], 64)) : renderSlot(_ctx.$slots, "loading", { key: 1 })
10795
11031
  ])) : !_ctx.hasMore ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
@@ -10865,11 +11101,14 @@ const _sfc_main$U = create$U({
10865
11101
  if (props.duration) {
10866
11102
  show();
10867
11103
  }
10868
- watch(() => props.duration, (val) => {
10869
- if (val) {
10870
- show();
11104
+ watch(
11105
+ () => props.duration,
11106
+ (val) => {
11107
+ if (val) {
11108
+ show();
11109
+ }
10871
11110
  }
10872
- });
11111
+ );
10873
11112
  const onAfterLeave = () => {
10874
11113
  clearTimer();
10875
11114
  props.unmount && props.unmount(props.id);
@@ -10937,12 +11176,12 @@ const updateNotify = (opts) => {
10937
11176
  if (container) {
10938
11177
  const currentOpt = optsMap$1.find((item) => item.id === opts.id);
10939
11178
  if (currentOpt) {
10940
- opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions$1), currentOpt), opts);
11179
+ opts = { ...defaultOptions$1, ...currentOpt, ...opts };
10941
11180
  } else {
10942
- opts = __spreadValues(__spreadValues({}, defaultOptions$1), opts);
11181
+ opts = { ...defaultOptions$1, ...opts };
10943
11182
  }
10944
11183
  const instance = createVNode(Notify, opts);
10945
- render$3(instance, container);
11184
+ render$4(instance, container);
10946
11185
  return instance.component.ctx;
10947
11186
  }
10948
11187
  };
@@ -10957,7 +11196,7 @@ const mountNotify = (opts) => {
10957
11196
  } else {
10958
11197
  _id = new Date().getTime() + "";
10959
11198
  }
10960
- opts = __spreadValues(__spreadValues({}, defaultOptions$1), opts);
11199
+ opts = { ...defaultOptions$1, ...opts };
10961
11200
  opts.id = _id;
10962
11201
  idsMap$1.push(opts.id);
10963
11202
  optsMap$1.push(opts);
@@ -10978,7 +11217,7 @@ const mountNotify = (opts) => {
10978
11217
  };
10979
11218
  const instance = createVNode(Wrapper);
10980
11219
  document.body.appendChild(root);
10981
- render$3(instance, root);
11220
+ render$4(instance, root);
10982
11221
  };
10983
11222
  const errorMsg$1 = (msg) => {
10984
11223
  if (!msg) {
@@ -10989,23 +11228,23 @@ const errorMsg$1 = (msg) => {
10989
11228
  const NotifyFunction = {
10990
11229
  text(msg, obj = {}) {
10991
11230
  errorMsg$1(msg);
10992
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg }));
11231
+ return mountNotify({ ...obj, msg });
10993
11232
  },
10994
11233
  primary(msg, obj = {}) {
10995
11234
  errorMsg$1(msg);
10996
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "primary" }));
11235
+ return mountNotify({ ...obj, msg, type: "primary" });
10997
11236
  },
10998
11237
  success(msg, obj = {}) {
10999
11238
  errorMsg$1(msg);
11000
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "success" }));
11239
+ return mountNotify({ ...obj, msg, type: "success" });
11001
11240
  },
11002
11241
  danger(msg, obj = {}) {
11003
11242
  errorMsg$1(msg);
11004
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "danger" }));
11243
+ return mountNotify({ ...obj, msg, type: "danger" });
11005
11244
  },
11006
11245
  warn(msg, obj = {}) {
11007
11246
  errorMsg$1(msg);
11008
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "warning" }));
11247
+ return mountNotify({ ...obj, msg, type: "warning" });
11009
11248
  },
11010
11249
  hide() {
11011
11250
  clearNotify();
@@ -11311,7 +11550,7 @@ const _sfc_main$T = create$T({
11311
11550
  }
11312
11551
  }
11313
11552
  };
11314
- return __spreadValues({
11553
+ return {
11315
11554
  scroller,
11316
11555
  touchStart,
11317
11556
  touchMove,
@@ -11323,8 +11562,9 @@ const _sfc_main$T = create$T({
11323
11562
  reachLeft,
11324
11563
  getBottomStyle,
11325
11564
  refreshTopTem,
11326
- refreshBottomTem
11327
- }, toRefs(state));
11565
+ refreshBottomTem,
11566
+ ...toRefs(state)
11567
+ };
11328
11568
  }
11329
11569
  });
11330
11570
  const _hoisted_1$L = {
@@ -11431,13 +11671,16 @@ const _sfc_main$S = create$S({
11431
11671
  emit("update:modelValue", value);
11432
11672
  emit("change", value, event);
11433
11673
  };
11434
- watch(() => props.modelValue, (v) => {
11435
- if (updateType == "click") {
11436
- updateType = "";
11437
- } else {
11438
- emit("change", v);
11674
+ watch(
11675
+ () => props.modelValue,
11676
+ (v) => {
11677
+ if (updateType == "click") {
11678
+ updateType = "";
11679
+ } else {
11680
+ emit("change", v);
11681
+ }
11439
11682
  }
11440
- });
11683
+ );
11441
11684
  return {
11442
11685
  classes,
11443
11686
  style,
@@ -11454,12 +11697,13 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
11454
11697
  style: normalizeStyle(_ctx.style)
11455
11698
  }, [
11456
11699
  createElementVNode("view", _hoisted_1$K, [
11457
- _ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
11700
+ _ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
11458
11701
  key: 0,
11459
- name: _ctx.name,
11702
+ name: _ctx.name
11703
+ }, _ctx.$attrs, {
11460
11704
  size: _ctx.size,
11461
11705
  color: _ctx.color
11462
- }, null, 8, ["name", "size", "color"])) : createCommentVNode("", true),
11706
+ }), null, 16, ["name", "size", "color"])) : createCommentVNode("", true),
11463
11707
  _ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
11464
11708
  withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
11465
11709
  [vShow, _ctx.modelValue]
@@ -11569,11 +11813,14 @@ const _sfc_main$R = create$R({
11569
11813
  if (props.duration) {
11570
11814
  show();
11571
11815
  }
11572
- watch(() => props.duration, (val) => {
11573
- if (val) {
11574
- show();
11816
+ watch(
11817
+ () => props.duration,
11818
+ (val) => {
11819
+ if (val) {
11820
+ show();
11821
+ }
11575
11822
  }
11576
- });
11823
+ );
11577
11824
  const hasIcon = computed(() => {
11578
11825
  if (props.type !== "text") {
11579
11826
  return true;
@@ -11639,11 +11886,10 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
11639
11886
  })
11640
11887
  }, [
11641
11888
  _ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1$J, [
11642
- createVNode(_component_nut_icon, {
11643
- size: _ctx.iconSize,
11889
+ createVNode(_component_nut_icon, mergeProps({ size: _ctx.iconSize }, _ctx.$attrs, {
11644
11890
  color: "#ffffff",
11645
11891
  name: _ctx.icon
11646
- }, null, 8, ["size", "name"])
11892
+ }), null, 16, ["size", "name"])
11647
11893
  ])) : createCommentVNode("", true),
11648
11894
  _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$C, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
11649
11895
  createElementVNode("view", {
@@ -11706,12 +11952,12 @@ const updateToast = (opts) => {
11706
11952
  if (container) {
11707
11953
  const currentOpt = optsMap.find((item) => item.id === opts.id);
11708
11954
  if (currentOpt) {
11709
- opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), currentOpt), opts);
11955
+ opts = { ...defaultOptions, ...currentOpt, ...opts };
11710
11956
  } else {
11711
- opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
11957
+ opts = { ...defaultOptions, ...opts };
11712
11958
  }
11713
11959
  const instance = createVNode(Toast, opts);
11714
- render$3(instance, container);
11960
+ render$4(instance, container);
11715
11961
  return instance.component.ctx;
11716
11962
  }
11717
11963
  };
@@ -11726,14 +11972,14 @@ const mountToast = (opts) => {
11726
11972
  } else {
11727
11973
  _id = new Date().getTime() + "";
11728
11974
  }
11729
- opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
11975
+ opts = { ...defaultOptions, ...opts };
11730
11976
  opts.id = _id;
11731
11977
  idsMap.push(opts.id);
11732
11978
  optsMap.push(opts);
11733
11979
  const container = document.createElement("div");
11734
11980
  container.id = opts.id;
11735
11981
  const instance = createVNode(Toast, opts);
11736
- render$3(instance, container);
11982
+ render$4(instance, container);
11737
11983
  document.body.appendChild(container);
11738
11984
  return instance.component.ctx;
11739
11985
  };
@@ -11746,27 +11992,27 @@ const errorMsg = (msg) => {
11746
11992
  const ToastFunction = {
11747
11993
  text(msg, opts = {}) {
11748
11994
  errorMsg(msg);
11749
- return mountToast(__spreadProps(__spreadValues({}, opts), { type: "text", msg }));
11995
+ return mountToast({ ...opts, type: "text", msg });
11750
11996
  },
11751
11997
  success(msg, opts = {}) {
11752
11998
  errorMsg(msg);
11753
- return mountToast(__spreadProps(__spreadValues({ icon: "success" }, opts), { msg, type: "success" }));
11999
+ return mountToast({ icon: "success", ...opts, msg, type: "success" });
11754
12000
  },
11755
12001
  fail(msg, opts = {}) {
11756
12002
  errorMsg(msg);
11757
- return mountToast(__spreadProps(__spreadValues({ icon: "failure" }, opts), { msg, type: "fail" }));
12003
+ return mountToast({ icon: "failure", ...opts, msg, type: "fail" });
11758
12004
  },
11759
12005
  warn(msg, opts = {}) {
11760
12006
  errorMsg(msg);
11761
- return mountToast(__spreadProps(__spreadValues({ icon: "tips" }, opts), { msg, type: "warn" }));
12007
+ return mountToast({ icon: "tips", ...opts, msg, type: "warn" });
11762
12008
  },
11763
12009
  loading(msg, opts = {}) {
11764
- return mountToast(__spreadProps(__spreadValues({
11765
- icon: "loading"
11766
- }, opts), {
12010
+ return mountToast({
12011
+ icon: "loading",
12012
+ ...opts,
11767
12013
  msg,
11768
12014
  type: "loading"
11769
- }));
12015
+ });
11770
12016
  },
11771
12017
  hide(id) {
11772
12018
  clearToast(id);
@@ -11809,7 +12055,7 @@ const _sfc_main$Q = create$Q({
11809
12055
  }
11810
12056
  },
11811
12057
  components: {},
11812
- emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute"],
12058
+ emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "can-play"],
11813
12059
  setup(props, { emit }) {
11814
12060
  const audioRef = ref(null);
11815
12061
  const audioData = reactive({
@@ -11841,22 +12087,25 @@ const _sfc_main$Q = create$Q({
11841
12087
  } catch (e) {
11842
12088
  console.log(e.message);
11843
12089
  }
11844
- setTimeout(() => {
11845
- const audioR = audioRef.value;
11846
- if (props.autoplay) {
11847
- if (audioR && audioR.paused) {
11848
- audioR.play();
11849
- }
11850
- }
11851
- audioData.second = audioR.duration;
11852
- audioData.duration = formatSeconds(audioR.duration);
11853
- }, 500);
11854
12090
  });
12091
+ const onCanplay = (e) => {
12092
+ const audioR = audioRef.value;
12093
+ if (props.autoplay) {
12094
+ if (audioR && audioR.paused) {
12095
+ audioR.play();
12096
+ }
12097
+ }
12098
+ audioData.second = audioR.duration;
12099
+ audioData.duration = formatSeconds(audioR.duration);
12100
+ emit("can-play", e);
12101
+ };
11855
12102
  const onTimeupdate = (e) => {
11856
12103
  audioData.currentTime = parseInt(e.target.currentTime);
11857
12104
  };
11858
12105
  const fastBack = () => {
11859
- audioData.currentTime--;
12106
+ if (audioData.currentTime > 0) {
12107
+ audioData.currentTime--;
12108
+ }
11860
12109
  audioRef.value.currentTime = audioData.currentTime;
11861
12110
  emit("fastBack", audioData.currentTime);
11862
12111
  };
@@ -11895,42 +12144,25 @@ const _sfc_main$Q = create$Q({
11895
12144
  emit("mute", audioData.hanMuted);
11896
12145
  };
11897
12146
  const formatSeconds = (value) => {
11898
- let theTime = parseInt(value);
11899
- let theTime1 = 0;
11900
- let theTime2 = 0;
11901
- if (theTime > 60) {
11902
- theTime1 = Math.floor(theTime / 60);
11903
- theTime = Math.floor(theTime % 60);
11904
- if (theTime1 > 60) {
11905
- theTime2 = Math.floor(theTime1 / 60);
11906
- theTime1 = Math.floor(theTime1 % 60);
11907
- }
12147
+ if (!value) {
12148
+ return "00:00:00";
11908
12149
  }
12150
+ let time = parseInt(value);
12151
+ let hours = Math.floor(time / 3600);
12152
+ let minutes = Math.floor((time - hours * 3600) / 60);
12153
+ let seconds = time - hours * 3600 - minutes * 60;
11909
12154
  let result = "";
11910
- if (theTime < 10) {
11911
- result = "0" + result;
11912
- }
11913
- if (theTime1 > 0) {
11914
- result = "" + theTime1 + ":" + result;
11915
- if (theTime1 < 10) {
11916
- result = "0" + result;
11917
- }
11918
- } else {
11919
- result = "00:" + result;
11920
- }
11921
- if (theTime2 > 0) {
11922
- result = "" + theTime2 + ":" + result;
11923
- if (theTime2 < 10) {
11924
- result = "0" + result;
11925
- }
11926
- } else {
11927
- result = "00:" + result;
11928
- }
12155
+ result += ("0" + hours.toString()).slice(-2) + ":";
12156
+ result += ("0" + minutes.toString()).slice(-2) + ":";
12157
+ result += ("0" + seconds.toString()).slice(-2);
11929
12158
  return result;
11930
12159
  };
11931
- watch(() => audioData.currentTime, (value) => {
11932
- handle(value);
11933
- });
12160
+ watch(
12161
+ () => audioData.currentTime,
12162
+ (value) => {
12163
+ handle(value);
12164
+ }
12165
+ );
11934
12166
  provide("audioParent", {
11935
12167
  children: [],
11936
12168
  props,
@@ -11940,7 +12172,9 @@ const _sfc_main$Q = create$Q({
11940
12172
  fastBack,
11941
12173
  changeStatus
11942
12174
  });
11943
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(audioData)), {
12175
+ return {
12176
+ ...toRefs(props),
12177
+ ...toRefs(audioData),
11944
12178
  audioRef,
11945
12179
  fastBack,
11946
12180
  forward,
@@ -11948,8 +12182,9 @@ const _sfc_main$Q = create$Q({
11948
12182
  progressChange,
11949
12183
  audioEnd,
11950
12184
  onTimeupdate,
11951
- handleMute
11952
- });
12185
+ handleMute,
12186
+ onCanplay
12187
+ };
11953
12188
  }
11954
12189
  });
11955
12190
  const _hoisted_1$I = { class: "nut-audio" };
@@ -12021,7 +12256,8 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
12021
12256
  autoplay: _ctx.autoplay,
12022
12257
  loop: _ctx.loop,
12023
12258
  onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
12024
- onEnded: _cache[4] || (_cache[4] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
12259
+ onCanplay: _cache[4] || (_cache[4] = (...args) => _ctx.onCanplay && _ctx.onCanplay(...args)),
12260
+ onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
12025
12261
  muted: _ctx.hanMuted
12026
12262
  }, null, 40, _hoisted_8$7)
12027
12263
  ]);
@@ -12032,9 +12268,7 @@ const _sfc_main$P = create$P({
12032
12268
  props: {
12033
12269
  type: {
12034
12270
  type: String,
12035
- default() {
12036
- return "play";
12037
- }
12271
+ default: () => "play"
12038
12272
  }
12039
12273
  },
12040
12274
  components: {},
@@ -12043,7 +12277,7 @@ const _sfc_main$P = create$P({
12043
12277
  const audio = inject("audioParent");
12044
12278
  const parent = reactive(audio);
12045
12279
  const customSlot = ref(useSlots().default);
12046
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(parent)), { customSlot, translate: translate$e });
12280
+ return { ...toRefs(props), ...toRefs(parent), customSlot, translate: translate$e };
12047
12281
  }
12048
12282
  });
12049
12283
  const _hoisted_1$H = { class: "nut-audio-operate" };
@@ -12227,7 +12461,7 @@ const _sfc_main$O = create$O({
12227
12461
  const onError = (event) => {
12228
12462
  emit("onError", event);
12229
12463
  };
12230
- return __spreadValues({
12464
+ return {
12231
12465
  classes,
12232
12466
  styles,
12233
12467
  iconStyles,
@@ -12237,8 +12471,9 @@ const _sfc_main$O = create$O({
12237
12471
  onError,
12238
12472
  avatarGroup,
12239
12473
  visible,
12240
- avatarRef
12241
- }, toRefs(state));
12474
+ avatarRef,
12475
+ ...toRefs(state)
12476
+ };
12242
12477
  }
12243
12478
  });
12244
12479
  const _hoisted_1$G = ["src", "alt"];
@@ -12266,11 +12501,10 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
12266
12501
  src: _ctx.url,
12267
12502
  alt: _ctx.alt,
12268
12503
  onError: _cache[0] || (_cache[0] = (...args) => _ctx.onError && _ctx.onError(...args))
12269
- }, null, 40, _hoisted_1$G)) : _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
12270
- key: 1,
12504
+ }, null, 40, _hoisted_1$G)) : _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 1 }, _ctx.$attrs, {
12271
12505
  class: "icon",
12272
12506
  name: _ctx.iconStyles
12273
- }, null, 8, ["name"])) : createCommentVNode("", true),
12507
+ }), null, 16, ["name"])) : createCommentVNode("", true),
12274
12508
  _ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_2$z, [
12275
12509
  renderSlot(_ctx.$slots, "default")
12276
12510
  ])) : createCommentVNode("", true)
@@ -12404,17 +12638,21 @@ const _sfc_main$M = create$M({
12404
12638
  }
12405
12639
  state.startOffset = scrollTop - scrollTop % props.height;
12406
12640
  };
12407
- watch(() => props.listData, () => {
12408
- state.list = props.listData.slice();
12409
- });
12410
- return __spreadProps(__spreadValues({}, toRefs(state)), {
12641
+ watch(
12642
+ () => props.listData,
12643
+ () => {
12644
+ state.list = props.listData.slice();
12645
+ }
12646
+ );
12647
+ return {
12648
+ ...toRefs(state),
12411
12649
  list,
12412
12650
  getTransform,
12413
12651
  listHeight,
12414
12652
  visibleData,
12415
12653
  classes,
12416
12654
  handleScrollEvent
12417
- });
12655
+ };
12418
12656
  }
12419
12657
  });
12420
12658
  function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
@@ -12578,12 +12816,11 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
12578
12816
  _ctx.status == "active" || _ctx.status == "" ? (openBlock(), createElementBlock("span", {
12579
12817
  key: 0,
12580
12818
  style: normalizeStyle(_ctx.textStyle)
12581
- }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, {
12582
- key: 1,
12819
+ }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 1 }, _ctx.$attrs, {
12583
12820
  size: "16px",
12584
12821
  name: _ctx.iconName,
12585
12822
  color: _ctx.iconColor
12586
- }, null, 8, ["name", "color"])) : createCommentVNode("", true)
12823
+ }), null, 16, ["name", "color"])) : createCommentVNode("", true)
12587
12824
  ], 4)) : createCommentVNode("", true)
12588
12825
  ]);
12589
12826
  }
@@ -12878,12 +13115,18 @@ const _sfc_main$J = create$J({
12878
13115
  }
12879
13116
  return styles;
12880
13117
  });
12881
- watch(() => props.text, (value) => {
12882
- initScrollWrap(value);
12883
- });
12884
- watch(() => props.list, (value) => {
12885
- state.scrollList = [].concat(value);
12886
- });
13118
+ watch(
13119
+ () => props.text,
13120
+ (value) => {
13121
+ initScrollWrap();
13122
+ }
13123
+ );
13124
+ watch(
13125
+ () => props.list,
13126
+ (value) => {
13127
+ state.scrollList = [].concat(value);
13128
+ }
13129
+ );
12887
13130
  const initScrollWrap = (value) => {
12888
13131
  if (state.showNoticeBar == false) {
12889
13132
  return;
@@ -12984,7 +13227,9 @@ const _sfc_main$J = create$J({
12984
13227
  onUnmounted(() => {
12985
13228
  clearInterval(state.timer);
12986
13229
  });
12987
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(state)), {
13230
+ return {
13231
+ ...toRefs(props),
13232
+ ...toRefs(state),
12988
13233
  isEllipsis,
12989
13234
  classes,
12990
13235
  iconShow,
@@ -13000,7 +13245,7 @@ const _sfc_main$J = create$J({
13000
13245
  go,
13001
13246
  handleClickIcon,
13002
13247
  slots
13003
- });
13248
+ };
13004
13249
  }
13005
13250
  });
13006
13251
  const _hoisted_1$D = {
@@ -13053,10 +13298,10 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
13053
13298
  onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
13054
13299
  }, [
13055
13300
  renderSlot(_ctx.$slots, "right-icon", {}, () => [
13056
- createVNode(_component_nut_icon, {
13301
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
13057
13302
  name: _ctx.rightIcon ? _ctx.rightIcon : "close",
13058
13303
  color: _ctx.color
13059
- }, null, 8, ["name", "color"])
13304
+ }), null, 16, ["name", "color"])
13060
13305
  ])
13061
13306
  ])) : createCommentVNode("", true)
13062
13307
  ], 6)), [
@@ -13243,16 +13488,23 @@ const _sfc_main$H = create$H({
13243
13488
  const isDisabled = computed(() => {
13244
13489
  return props.options.disabled;
13245
13490
  });
13246
- watch(() => props.source, (newValue) => {
13247
- if (newValue.src) {
13248
- nextTick(() => {
13249
- state.videoElm.load();
13250
- });
13491
+ watch(
13492
+ () => props.source,
13493
+ (newValue) => {
13494
+ if (newValue.src) {
13495
+ nextTick(() => {
13496
+ state.videoElm.load();
13497
+ });
13498
+ }
13251
13499
  }
13252
- });
13253
- watch(() => props.options, (newValue) => {
13254
- state.state.isMuted = newValue ? newValue.muted : false;
13255
- }, { immediate: true });
13500
+ );
13501
+ watch(
13502
+ () => props.options,
13503
+ (newValue) => {
13504
+ state.state.isMuted = newValue ? newValue.muted : false;
13505
+ },
13506
+ { immediate: true }
13507
+ );
13256
13508
  const init = () => {
13257
13509
  state.videoElm = root.value;
13258
13510
  if (props.options.autoplay) {
@@ -13381,9 +13633,10 @@ const _sfc_main$H = create$H({
13381
13633
  onMounted(() => {
13382
13634
  init();
13383
13635
  });
13384
- return __spreadProps(__spreadValues(__spreadValues({
13385
- root
13386
- }, toRefs(props)), toRefs(state)), {
13636
+ return {
13637
+ root,
13638
+ ...toRefs(props),
13639
+ ...toRefs(state),
13387
13640
  handleError,
13388
13641
  isDisabled,
13389
13642
  play,
@@ -13394,7 +13647,7 @@ const _sfc_main$H = create$H({
13394
13647
  retry,
13395
13648
  fullScreen,
13396
13649
  translate: translate$c
13397
- });
13650
+ };
13398
13651
  }
13399
13652
  });
13400
13653
  const _hoisted_1$B = {
@@ -13545,9 +13798,13 @@ const _sfc_main$G = create$G({
13545
13798
  });
13546
13799
  return () => {
13547
13800
  var _a;
13548
- return h("view", {
13549
- class: classes.value
13550
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
13801
+ return h(
13802
+ "view",
13803
+ {
13804
+ class: classes.value
13805
+ },
13806
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
13807
+ );
13551
13808
  };
13552
13809
  }
13553
13810
  });
@@ -13603,11 +13860,12 @@ const _sfc_main$F = create$F({
13603
13860
  const handleClickStep = () => {
13604
13861
  parent["onEmit"](index.value);
13605
13862
  };
13606
- return __spreadProps(__spreadValues({}, toRefs(state)), {
13863
+ return {
13864
+ ...toRefs(state),
13607
13865
  index,
13608
13866
  classes,
13609
13867
  handleClickStep
13610
- });
13868
+ };
13611
13869
  }
13612
13870
  });
13613
13871
  const _hoisted_1$A = { class: "nut-step-head" };
@@ -13635,13 +13893,14 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
13635
13893
  createElementVNode("view", {
13636
13894
  class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
13637
13895
  }, [
13638
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
13896
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
13639
13897
  key: 0,
13640
- class: "nut-step-icon-inner",
13898
+ class: "nut-step-icon-inner"
13899
+ }, _ctx.$attrs, {
13641
13900
  color: _ctx.iconColor,
13642
13901
  name: _ctx.icon,
13643
13902
  size: _ctx.size
13644
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$n, toDisplayString(_ctx.index), 1))
13903
+ }), null, 16, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$n, toDisplayString(_ctx.index), 1))
13645
13904
  ], 2)
13646
13905
  ]),
13647
13906
  createElementVNode("view", _hoisted_4$j, [
@@ -14043,19 +14302,28 @@ const _sfc_main$E = create$E({
14043
14302
  onBeforeUnmount(() => {
14044
14303
  stopAutoPlay();
14045
14304
  });
14046
- watch(() => props.initPage, (val) => {
14047
- nextTick(() => {
14048
- init(Number(val));
14049
- });
14050
- });
14051
- watch(() => state.children.length, () => {
14052
- nextTick(() => {
14053
- init();
14054
- });
14055
- });
14056
- watch(() => props.autoPlay, (val) => {
14057
- val > 0 ? autoplay() : stopAutoPlay();
14058
- });
14305
+ watch(
14306
+ () => props.initPage,
14307
+ (val) => {
14308
+ nextTick(() => {
14309
+ init(Number(val));
14310
+ });
14311
+ }
14312
+ );
14313
+ watch(
14314
+ () => state.children.length,
14315
+ () => {
14316
+ nextTick(() => {
14317
+ init();
14318
+ });
14319
+ }
14320
+ );
14321
+ watch(
14322
+ () => props.autoPlay,
14323
+ (val) => {
14324
+ val > 0 ? autoplay() : stopAutoPlay();
14325
+ }
14326
+ );
14059
14327
  return {
14060
14328
  state,
14061
14329
  classes,
@@ -14488,19 +14756,23 @@ const _sfc_main$B = create$B({
14488
14756
  };
14489
14757
  const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
14490
14758
  watch(() => props.initNo, resetScale);
14491
- watch(() => props.show, (value) => {
14492
- if (!value) {
14493
- resetScale();
14759
+ watch(
14760
+ () => props.show,
14761
+ (value) => {
14762
+ if (!value) {
14763
+ resetScale();
14764
+ }
14494
14765
  }
14495
- });
14496
- return __spreadProps(__spreadValues({}, toRefs(state)), {
14766
+ );
14767
+ return {
14768
+ ...toRefs(state),
14497
14769
  onTouchStart,
14498
14770
  onTouchMove,
14499
14771
  onTouchEnd,
14500
14772
  getDistance,
14501
14773
  imageStyle,
14502
14774
  imageLoad
14503
- });
14775
+ };
14504
14776
  }
14505
14777
  });
14506
14778
  const _hoisted_1$y = ["src"];
@@ -14667,23 +14939,26 @@ const _sfc_main$A = create$A({
14667
14939
  state.rootWidth = swipeRef.value.offsetWidth;
14668
14940
  }, 100);
14669
14941
  };
14670
- watch(() => props.show, (val) => {
14671
- state.showPop = val;
14672
- init();
14673
- });
14942
+ watch(
14943
+ () => props.show,
14944
+ (val) => {
14945
+ state.showPop = val;
14946
+ init();
14947
+ }
14948
+ );
14674
14949
  onMounted(() => {
14675
14950
  state.active = props.initNo;
14676
14951
  state.showPop = props.show;
14677
14952
  state.maxNo = props.images.length + props.videos.length;
14678
14953
  });
14679
- return __spreadProps(__spreadValues({
14680
- swipeRef
14681
- }, toRefs(state)), {
14954
+ return {
14955
+ swipeRef,
14956
+ ...toRefs(state),
14682
14957
  slideChangeEnd,
14683
14958
  onClose,
14684
14959
  handleCloseIcon,
14685
14960
  styles
14686
- });
14961
+ };
14687
14962
  }
14688
14963
  });
14689
14964
  const _hoisted_1$x = {
@@ -14757,10 +15032,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
14757
15032
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCloseIcon && _ctx.handleCloseIcon(...args)),
14758
15033
  style: normalizeStyle(_ctx.styles)
14759
15034
  }, [
14760
- createVNode(_component_nut_icon, {
14761
- name: _ctx.closeIcon,
14762
- color: "#ffffff"
14763
- }, null, 8, ["name"])
15035
+ createVNode(_component_nut_icon, mergeProps({ name: _ctx.closeIcon }, _ctx.$attrs, { color: "#ffffff" }), null, 16, ["name"])
14764
15036
  ], 4)) : createCommentVNode("", true)
14765
15037
  ]),
14766
15038
  _: 1
@@ -14804,7 +15076,7 @@ class ImagePreviewFunction {
14804
15076
  };
14805
15077
  const instance = createVNode(Wrapper);
14806
15078
  elWarp.appendChild(root);
14807
- render$3(instance, root);
15079
+ render$4(instance, root);
14808
15080
  }
14809
15081
  }
14810
15082
  const _ImagePreview = function(options) {
@@ -14923,23 +15195,35 @@ const _sfc_main$z = create$z({
14923
15195
  typeMachine: ""
14924
15196
  });
14925
15197
  const { startFlag, scrolling, customBgImg, type } = reactive(props);
14926
- watch(() => props.customChangeNum, (count2, prevCount) => {
14927
- clearIntervalTime();
14928
- countGo(0);
14929
- });
14930
- watch(() => props.machinePrizeLevel, (count2, prevCount) => {
14931
- data.prizeLevelTrun = count2;
14932
- });
14933
- watch(() => props.initNum, (count2, prevCount) => {
14934
- data.current = count2;
14935
- data.valFlag = false;
14936
- valChange();
14937
- });
14938
- watch(() => props.endNum, (count2, prevCount) => {
14939
- data.current = props.initNum;
14940
- data.valFlag = false;
14941
- valChange();
14942
- });
15198
+ watch(
15199
+ () => props.customChangeNum,
15200
+ (count2, prevCount) => {
15201
+ clearIntervalTime();
15202
+ countGo(0);
15203
+ }
15204
+ );
15205
+ watch(
15206
+ () => props.machinePrizeLevel,
15207
+ (count2, prevCount) => {
15208
+ data.prizeLevelTrun = count2;
15209
+ }
15210
+ );
15211
+ watch(
15212
+ () => props.initNum,
15213
+ (count2, prevCount) => {
15214
+ data.current = count2;
15215
+ data.valFlag = false;
15216
+ valChange();
15217
+ }
15218
+ );
15219
+ watch(
15220
+ () => props.endNum,
15221
+ (count2, prevCount) => {
15222
+ data.current = props.initNum;
15223
+ data.valFlag = false;
15224
+ valChange();
15225
+ }
15226
+ );
14943
15227
  const valChange = () => {
14944
15228
  if (data.valFlag) {
14945
15229
  return false;
@@ -15186,7 +15470,11 @@ const _sfc_main$z = create$z({
15186
15470
  if (data.prizeLevelTrun < 0) {
15187
15471
  newLocation += props.numHeight * data.notPrize[i];
15188
15472
  }
15189
- scrollTime(i, newLocation, local);
15473
+ scrollTime(
15474
+ i,
15475
+ newLocation,
15476
+ local
15477
+ );
15190
15478
  }, 500 * i);
15191
15479
  }
15192
15480
  };
@@ -15236,12 +15524,14 @@ const _sfc_main$z = create$z({
15236
15524
  clearIntervalTime();
15237
15525
  data.timer = null;
15238
15526
  });
15239
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(data)), toRefs(reactive(props))), {
15527
+ return {
15528
+ ...toRefs(data),
15529
+ ...toRefs(reactive(props)),
15240
15530
  runNumberImg,
15241
15531
  setRef,
15242
15532
  topNumber,
15243
15533
  turnNumber
15244
- });
15534
+ };
15245
15535
  }
15246
15536
  });
15247
15537
  const _hoisted_1$w = { class: "nut-countup" };
@@ -15473,7 +15763,7 @@ const _sfc_main$y = create$y({
15473
15763
  rest.s = Math.floor(ts % MINUTE / SECOND);
15474
15764
  rest.ms = Math.floor(ts % SECOND);
15475
15765
  }
15476
- return type == "custom" ? rest : parseFormat(__spreadValues({}, rest));
15766
+ return type == "custom" ? rest : parseFormat({ ...rest });
15477
15767
  };
15478
15768
  const parseFormat = (time) => {
15479
15769
  let { d, h: h2, m, s, ms } = time;
@@ -15536,32 +15826,45 @@ const _sfc_main$y = create$y({
15536
15826
  state.restTime = props.time;
15537
15827
  }
15538
15828
  });
15539
- watch(() => state.restTime, (value) => {
15540
- let tranTime = formatRemainTime(value, "custom");
15541
- emit("update:modelValue", tranTime);
15542
- emit("input", tranTime);
15543
- });
15544
- watch(() => props.paused, (v, ov) => {
15545
- if (!ov) {
15546
- if (state.counting) {
15547
- pause();
15548
- }
15549
- } else {
15550
- if (!state.counting) {
15551
- state.counting = true;
15552
- state.handleEndTime = Date.now() + Number(state.restTime);
15553
- tick();
15829
+ watch(
15830
+ () => state.restTime,
15831
+ (value) => {
15832
+ let tranTime = formatRemainTime(value, "custom");
15833
+ emit("update:modelValue", tranTime);
15834
+ emit("input", tranTime);
15835
+ }
15836
+ );
15837
+ watch(
15838
+ () => props.paused,
15839
+ (v, ov) => {
15840
+ if (!ov) {
15841
+ if (state.counting) {
15842
+ pause();
15843
+ }
15844
+ } else {
15845
+ if (!state.counting) {
15846
+ state.counting = true;
15847
+ state.handleEndTime = Date.now() + Number(state.restTime);
15848
+ tick();
15849
+ }
15850
+ emit("on-restart", state.restTime);
15554
15851
  }
15555
- emit("on-restart", state.restTime);
15556
15852
  }
15557
- });
15558
- watch(() => props.endTime, (value) => {
15559
- initTime();
15560
- });
15561
- watch(() => props.startTime, (value) => {
15562
- initTime();
15563
- });
15564
- return __spreadProps(__spreadValues({}, toRefs(props)), {
15853
+ );
15854
+ watch(
15855
+ () => props.endTime,
15856
+ (value) => {
15857
+ initTime();
15858
+ }
15859
+ );
15860
+ watch(
15861
+ () => props.startTime,
15862
+ (value) => {
15863
+ initTime();
15864
+ }
15865
+ );
15866
+ return {
15867
+ ...toRefs(props),
15565
15868
  slots,
15566
15869
  classes,
15567
15870
  getTimeStamp,
@@ -15570,7 +15873,7 @@ const _sfc_main$y = create$y({
15570
15873
  renderTime,
15571
15874
  translate: translate$b,
15572
15875
  reset
15573
- });
15876
+ };
15574
15877
  }
15575
15878
  });
15576
15879
  const _hoisted_1$v = ["innerHTML"];
@@ -15707,23 +16010,19 @@ const _sfc_main$w = create$w({
15707
16010
  };
15708
16011
  });
15709
16012
  const getStyle = () => {
15710
- if (color == null ? void 0 : color.value) {
15711
- return {
15712
- background: color.value,
15713
- color: textColor.value
15714
- };
16013
+ const style = {};
16014
+ if (textColor.value) {
16015
+ style.color = textColor.value;
16016
+ } else if (color.value && plain.value) {
16017
+ style.color = color.value;
15715
16018
  }
15716
16019
  if (plain.value) {
15717
- return {
15718
- color: "#FA2400",
15719
- background: "#fff",
15720
- border: "1px solid rgba(250,36,0,1)"
15721
- };
16020
+ style.background = "#fff";
16021
+ style["border-color"] = color.value;
16022
+ } else if (color.value) {
16023
+ style.background = color.value;
15722
16024
  }
15723
- return {
15724
- color: "",
15725
- background: ""
15726
- };
16025
+ return style;
15727
16026
  };
15728
16027
  const onClose = (event) => {
15729
16028
  event.stopPropagation();
@@ -15785,32 +16084,47 @@ function isShadowRoot(node) {
15785
16084
  return node instanceof OwnElement || node instanceof ShadowRoot;
15786
16085
  }
15787
16086
  var round = Math.round;
15788
- function getBoundingClientRect(element, includeScale) {
16087
+ function getUAString() {
16088
+ var uaData = navigator.userAgentData;
16089
+ if (uaData != null && uaData.brands) {
16090
+ return uaData.brands.map(function(item) {
16091
+ return item.brand + "/" + item.version;
16092
+ }).join(" ");
16093
+ }
16094
+ return navigator.userAgent;
16095
+ }
16096
+ function isLayoutViewport() {
16097
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
16098
+ }
16099
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
15789
16100
  if (includeScale === void 0) {
15790
16101
  includeScale = false;
15791
16102
  }
15792
- var rect = element.getBoundingClientRect();
16103
+ if (isFixedStrategy === void 0) {
16104
+ isFixedStrategy = false;
16105
+ }
16106
+ var clientRect = element.getBoundingClientRect();
15793
16107
  var scaleX = 1;
15794
16108
  var scaleY = 1;
15795
- if (isHTMLElement(element) && includeScale) {
15796
- var offsetHeight = element.offsetHeight;
15797
- var offsetWidth = element.offsetWidth;
15798
- if (offsetWidth > 0) {
15799
- scaleX = round(rect.width) / offsetWidth || 1;
15800
- }
15801
- if (offsetHeight > 0) {
15802
- scaleY = round(rect.height) / offsetHeight || 1;
15803
- }
16109
+ if (includeScale && isHTMLElement(element)) {
16110
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
16111
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
15804
16112
  }
16113
+ var _ref = isElement(element) ? getWindow(element) : window, visualViewport = _ref.visualViewport;
16114
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
16115
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
16116
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
16117
+ var width = clientRect.width / scaleX;
16118
+ var height = clientRect.height / scaleY;
15805
16119
  return {
15806
- width: rect.width / scaleX,
15807
- height: rect.height / scaleY,
15808
- top: rect.top / scaleY,
15809
- right: rect.right / scaleX,
15810
- bottom: rect.bottom / scaleY,
15811
- left: rect.left / scaleX,
15812
- x: rect.left / scaleX,
15813
- y: rect.top / scaleY
16120
+ width,
16121
+ height,
16122
+ top: y,
16123
+ right: x + width,
16124
+ bottom: y + height,
16125
+ left: x,
16126
+ x,
16127
+ y
15814
16128
  };
15815
16129
  }
15816
16130
  function getWindowScroll(node) {
@@ -15864,7 +16178,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
15864
16178
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
15865
16179
  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
15866
16180
  var documentElement = getDocumentElement(offsetParent);
15867
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
16181
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
15868
16182
  var scroll = {
15869
16183
  scrollLeft: 0,
15870
16184
  scrollTop: 0
@@ -15946,8 +16260,8 @@ function getTrueOffsetParent(element) {
15946
16260
  return element.offsetParent;
15947
16261
  }
15948
16262
  function getContainingBlock(element) {
15949
- var isFirefox = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1;
15950
- var isIE = navigator.userAgent.indexOf("Trident") !== -1;
16263
+ var isFirefox = /firefox/i.test(getUAString());
16264
+ var isIE = /Trident/i.test(getUAString());
15951
16265
  if (isIE && isHTMLElement(element)) {
15952
16266
  var elementCss = getComputedStyle(element);
15953
16267
  if (elementCss.position === "fixed") {
@@ -16534,7 +16848,8 @@ const _sfc_main$v = create$v({
16534
16848
  [Popup.name]: Popup,
16535
16849
  [Button.name]: Button
16536
16850
  },
16537
- props: __spreadProps(__spreadValues({}, popupProps), {
16851
+ props: {
16852
+ ...popupProps,
16538
16853
  list: {
16539
16854
  type: Array,
16540
16855
  default: []
@@ -16559,7 +16874,7 @@ const _sfc_main$v = create$v({
16559
16874
  type: Boolean,
16560
16875
  default: true
16561
16876
  }
16562
- }),
16877
+ },
16563
16878
  emits: ["update", "update:visible", "close", "choose", "open"],
16564
16879
  setup(props, { emit }) {
16565
16880
  let popper;
@@ -16586,7 +16901,6 @@ const _sfc_main$v = create$v({
16586
16901
  };
16587
16902
  });
16588
16903
  const createPopperInstance = () => {
16589
- console.log(reference.value, popoverRef.value);
16590
16904
  if (reference.value && popoverRef.value) {
16591
16905
  return createPopper(reference.value, popoverRef.value.popupRef, {
16592
16906
  placement: props.location,
@@ -16609,7 +16923,6 @@ const _sfc_main$v = create$v({
16609
16923
  return null;
16610
16924
  };
16611
16925
  const clickOverlay = () => {
16612
- console.log("\u5173\u95ED");
16613
16926
  };
16614
16927
  const uploadLocation = () => {
16615
16928
  nextTick(() => {
@@ -16617,7 +16930,6 @@ const _sfc_main$v = create$v({
16617
16930
  return;
16618
16931
  if (!popper) {
16619
16932
  popper = createPopperInstance();
16620
- console.log(popper);
16621
16933
  } else {
16622
16934
  popper.setOptions({
16623
16935
  placement: props.location
@@ -16637,13 +16949,19 @@ const _sfc_main$v = create$v({
16637
16949
  onUnmounted(() => {
16638
16950
  window.removeEventListener("click", clickAway, true);
16639
16951
  });
16640
- watch(() => props.visible, (value) => {
16641
- showPopup.value = value;
16642
- uploadLocation();
16643
- });
16644
- watch(() => props.location, (value) => {
16645
- uploadLocation();
16646
- });
16952
+ watch(
16953
+ () => props.visible,
16954
+ (value) => {
16955
+ showPopup.value = value;
16956
+ uploadLocation();
16957
+ }
16958
+ );
16959
+ watch(
16960
+ () => props.location,
16961
+ (value) => {
16962
+ uploadLocation();
16963
+ }
16964
+ );
16647
16965
  const update = (val) => {
16648
16966
  emit("update", val);
16649
16967
  emit("update:visible", val);
@@ -16715,10 +17033,10 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
16715
17033
  onClick: withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
16716
17034
  }, [
16717
17035
  item.icon ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
16718
- createVNode(_component_nut_icon, {
17036
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
16719
17037
  class: "item-img",
16720
17038
  name: item.icon
16721
- }, null, 8, ["name"])
17039
+ }), null, 16, ["name"])
16722
17040
  ]) : createCommentVNode("", true),
16723
17041
  createElementVNode("view", _hoisted_2$o, toDisplayString(item.name), 1)
16724
17042
  ], 10, _hoisted_1$t);
@@ -16907,25 +17225,28 @@ const _sfc_main$t = create$t({
16907
17225
  setup(props, { emit, slots }) {
16908
17226
  const collapseDom = ref(null);
16909
17227
  const collapseChldren = ref([]);
16910
- watch(() => props.active, (newval, oldval) => {
16911
- let doms = collapseChldren.value;
16912
- Array.from(doms).forEach((item) => {
16913
- if (typeof newval == "number" || typeof newval == "string") {
16914
- if (newval == item.name) {
16915
- item.changeOpen(!item.openExpanded);
16916
- } else {
16917
- item.changeOpen(false);
16918
- }
16919
- } else if (Object.values(newval) instanceof Array) {
16920
- if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
16921
- item.changeOpen(true);
16922
- } else {
16923
- item.changeOpen(false);
17228
+ watch(
17229
+ () => props.active,
17230
+ (newval, oldval) => {
17231
+ let doms = collapseChldren.value;
17232
+ Array.from(doms).forEach((item) => {
17233
+ if (typeof newval == "number" || typeof newval == "string") {
17234
+ if (newval == item.name) {
17235
+ item.changeOpen(true);
17236
+ } else {
17237
+ item.changeOpen(false);
17238
+ }
17239
+ } else if (Object.values(newval) instanceof Array) {
17240
+ if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
17241
+ item.changeOpen(true);
17242
+ } else {
17243
+ item.changeOpen(false);
17244
+ }
16924
17245
  }
16925
- }
16926
- item.animation();
16927
- });
16928
- });
17246
+ item.animation();
17247
+ });
17248
+ }
17249
+ );
16929
17250
  onMounted(() => {
16930
17251
  collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
16931
17252
  });
@@ -17091,14 +17412,17 @@ const _sfc_main$s = create$s({
17091
17412
  proxyData.openExpanded = true;
17092
17413
  }
17093
17414
  });
17094
- watch(() => {
17095
- var _a, _b;
17096
- return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
17097
- }, () => {
17098
- setTimeout(() => {
17099
- animation();
17100
- }, 300);
17101
- });
17415
+ watch(
17416
+ () => {
17417
+ var _a, _b;
17418
+ return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
17419
+ },
17420
+ () => {
17421
+ setTimeout(() => {
17422
+ animation();
17423
+ }, 300);
17424
+ }
17425
+ );
17102
17426
  const init = () => {
17103
17427
  const { name } = props;
17104
17428
  const active = parent && parent.props.active;
@@ -17126,17 +17450,19 @@ const _sfc_main$s = create$s({
17126
17450
  }
17127
17451
  return _class;
17128
17452
  });
17129
- return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
17453
+ return {
17130
17454
  classes,
17131
- emptyContent
17132
- }, toRefs(proxyData)), toRefs(parent.props)), toRefs(titleIconStyle)), {
17455
+ emptyContent,
17456
+ ...toRefs(proxyData),
17457
+ ...toRefs(parent.props),
17458
+ ...toRefs(titleIconStyle),
17133
17459
  wrapperRef,
17134
17460
  contentRef,
17135
17461
  open,
17136
17462
  toggleOpen,
17137
17463
  changeOpen,
17138
17464
  animation
17139
- });
17465
+ };
17140
17466
  }
17141
17467
  });
17142
17468
  const _hoisted_1$q = { class: "collapse-title" };
@@ -17168,13 +17494,14 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
17168
17494
  createElementVNode("view", _hoisted_1$q, [
17169
17495
  createElementVNode("view", null, [
17170
17496
  createElementVNode("view", _hoisted_2$m, [
17171
- _ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, {
17497
+ _ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
17172
17498
  key: 0,
17173
- name: _ctx.titleIcon,
17499
+ name: _ctx.titleIcon
17500
+ }, _ctx.$attrs, {
17174
17501
  size: _ctx.titleIconSize,
17175
17502
  color: _ctx.titleIconColor,
17176
- class: normalizeClass([_ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"])
17177
- }, null, 8, ["name", "size", "color", "class"])) : createCommentVNode("", true),
17503
+ class: [_ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"]
17504
+ }), null, 16, ["name", "size", "color", "class"])) : createCommentVNode("", true),
17178
17505
  _ctx.$slots.mTitle ? renderSlot(_ctx.$slots, "mTitle", { key: 1 }) : (openBlock(), createElementBlock("view", {
17179
17506
  key: 2,
17180
17507
  innerHTML: _ctx.title,
@@ -17190,14 +17517,15 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
17190
17517
  innerHTML: _ctx.subTitle,
17191
17518
  class: "subTitle"
17192
17519
  }, null, 8, _hoisted_5$a)),
17193
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
17520
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
17194
17521
  key: 2,
17195
- name: _ctx.icon,
17522
+ name: _ctx.icon
17523
+ }, _ctx.$attrs, {
17196
17524
  size: _ctx.iconSize,
17197
17525
  color: _ctx.iconColor,
17198
- class: normalizeClass(["collapse-icon", { "col-expanded": _ctx.openExpanded }, { "collapse-icon-disabled": _ctx.disabled }]),
17199
- style: normalizeStyle(_ctx.iconStyle)
17200
- }, null, 8, ["name", "size", "color", "class", "style"])) : createCommentVNode("", true)
17526
+ class: ["collapse-icon", { "col-expanded": _ctx.openExpanded }, { "collapse-icon-disabled": _ctx.disabled }],
17527
+ style: _ctx.iconStyle
17528
+ }), null, 16, ["name", "size", "color", "class", "style"])) : createCommentVNode("", true)
17201
17529
  ], 2),
17202
17530
  _ctx.$slots.extraRender ? (openBlock(), createElementBlock("view", _hoisted_6$9, [
17203
17531
  createElementVNode("div", _hoisted_7$7, [
@@ -17296,10 +17624,14 @@ const component = (componentName2, translate2) => {
17296
17624
  return [columns.key, columns.render];
17297
17625
  });
17298
17626
  };
17299
- watch(() => props.data, (val) => {
17300
- state.curData = val.slice();
17301
- });
17302
- return __spreadProps(__spreadValues({}, toRefs(state)), {
17627
+ watch(
17628
+ () => props.data,
17629
+ (val) => {
17630
+ state.curData = val.slice();
17631
+ }
17632
+ );
17633
+ return {
17634
+ ...toRefs(state),
17303
17635
  classes,
17304
17636
  cellClasses,
17305
17637
  getColumnItem,
@@ -17309,7 +17641,7 @@ const component = (componentName2, translate2) => {
17309
17641
  translate: translate2,
17310
17642
  stylehead,
17311
17643
  stylecolumn
17312
- });
17644
+ };
17313
17645
  }
17314
17646
  };
17315
17647
  };
@@ -17441,7 +17773,7 @@ const _sfc_main$q = create$q({
17441
17773
  }
17442
17774
  emit("click", event);
17443
17775
  };
17444
- return __spreadProps(__spreadValues({}, toRefs(state)), { classes, handleClick });
17776
+ return { ...toRefs(state), classes, handleClick };
17445
17777
  }
17446
17778
  });
17447
17779
  const _hoisted_1$o = { class: "nut-animate" };
@@ -17500,14 +17832,17 @@ const _sfc_main$p = create$p({
17500
17832
  [prefixCls]: true
17501
17833
  };
17502
17834
  });
17503
- watch(() => props.content, (newV, oldVal) => {
17504
- if (newV != oldVal) {
17505
- if (container) {
17506
- document.body.appendChild(container);
17835
+ watch(
17836
+ () => props.content,
17837
+ (newV, oldVal) => {
17838
+ if (newV != oldVal) {
17839
+ if (container) {
17840
+ document.body.appendChild(container);
17841
+ }
17842
+ createContainer();
17507
17843
  }
17508
- createContainer();
17509
17844
  }
17510
- });
17845
+ );
17511
17846
  onMounted(() => {
17512
17847
  createContainer();
17513
17848
  });
@@ -17532,7 +17867,9 @@ const _sfc_main$p = create$p({
17532
17867
  container.style.webkitLineClamp = "unset";
17533
17868
  container.style.display = "block";
17534
17869
  const lineHeight = pxToNumber(originStyle.lineHeight);
17535
- maxHeight = Math.floor(lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom));
17870
+ maxHeight = Math.floor(
17871
+ lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
17872
+ );
17536
17873
  container.innerText = props.content;
17537
17874
  document.body.appendChild(container);
17538
17875
  calcEllipse();
@@ -17619,7 +17956,7 @@ const _sfc_main$p = create$p({
17619
17956
  const handleClick = () => {
17620
17957
  emit("click");
17621
17958
  };
17622
- return __spreadProps(__spreadValues({}, toRefs(state)), { root, ellipsis, classes, clickHandle, handleClick });
17959
+ return { ...toRefs(state), root, ellipsis, classes, clickHandle, handleClick };
17623
17960
  }
17624
17961
  });
17625
17962
  const _hoisted_1$n = { key: 0 };
@@ -17749,7 +18086,6 @@ const _sfc_main$o = create$o({
17749
18086
  const init = () => {
17750
18087
  const canvas = document.createElement("canvas");
17751
18088
  const ratio = window.devicePixelRatio;
17752
- console.log(ratio);
17753
18089
  const ctx = canvas.getContext("2d");
17754
18090
  const canvasWidth = `${(gapX + width) * ratio}px`;
17755
18091
  const canvasHeight = `${(gapY + height) * ratio}px`;
@@ -17766,10 +18102,15 @@ const _sfc_main$o = create$o({
17766
18102
  img.referrerPolicy = "no-referrer";
17767
18103
  img.src = image;
17768
18104
  img.onload = () => {
17769
- ctx.drawImage(img, -imageWidth * ratio / 2, -imageHeight * ratio / 2, imageWidth * ratio, imageHeight * ratio);
18105
+ ctx.drawImage(
18106
+ img,
18107
+ -imageWidth * ratio / 2,
18108
+ -imageHeight * ratio / 2,
18109
+ imageWidth * ratio,
18110
+ imageHeight * ratio
18111
+ );
17770
18112
  ctx.restore();
17771
18113
  state.base64Url = canvas.toDataURL();
17772
- console.log(state.base64Url);
17773
18114
  };
17774
18115
  } else if (content) {
17775
18116
  ctx.textBaseline = "middle";
@@ -17782,32 +18123,34 @@ const _sfc_main$o = create$o({
17782
18123
  ctx.fillText(content, 0, 0);
17783
18124
  ctx.restore();
17784
18125
  state.base64Url = canvas.toDataURL();
17785
- console.log(state.base64Url);
17786
18126
  }
17787
18127
  } else {
17788
18128
  throw new Error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");
17789
18129
  }
17790
18130
  };
17791
18131
  init();
17792
- watch(() => [
17793
- zIndex,
17794
- gapX,
17795
- gapY,
17796
- width,
17797
- height,
17798
- rotate,
17799
- image,
17800
- imageWidth,
17801
- imageHeight,
17802
- content,
17803
- fontStyle,
17804
- fontWeight,
17805
- fontColor,
17806
- fontSize,
17807
- fontFamily
17808
- ], () => {
17809
- init();
17810
- });
18132
+ watch(
18133
+ () => [
18134
+ zIndex,
18135
+ gapX,
18136
+ gapY,
18137
+ width,
18138
+ height,
18139
+ rotate,
18140
+ image,
18141
+ imageWidth,
18142
+ imageHeight,
18143
+ content,
18144
+ fontStyle,
18145
+ fontWeight,
18146
+ fontColor,
18147
+ fontSize,
18148
+ fontFamily
18149
+ ],
18150
+ () => {
18151
+ init();
18152
+ }
18153
+ );
17811
18154
  const classes = computed(() => {
17812
18155
  const prefixCls = componentName$n;
17813
18156
  return {
@@ -17815,7 +18158,7 @@ const _sfc_main$o = create$o({
17815
18158
  [`${prefixCls}-full-page`]: props.fullPage
17816
18159
  };
17817
18160
  });
17818
- return __spreadProps(__spreadValues({}, toRefs(state)), { classes });
18161
+ return { ...toRefs(state), classes };
17819
18162
  }
17820
18163
  });
17821
18164
  function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
@@ -17832,7 +18175,8 @@ var WaterMark = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render
17832
18175
  const { componentName: componentName$m, create: create$n, translate: translate$9 } = createComponent("address");
17833
18176
  const _sfc_main$n = create$n({
17834
18177
  inheritAttrs: false,
17835
- props: __spreadProps(__spreadValues({}, popupProps), {
18178
+ props: {
18179
+ ...popupProps,
17836
18180
  modelValue: {
17837
18181
  type: Array,
17838
18182
  default: () => []
@@ -17901,7 +18245,7 @@ const _sfc_main$n = create$n({
17901
18245
  type: [String, Array],
17902
18246
  default: ""
17903
18247
  }
17904
- }),
18248
+ },
17905
18249
  emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
17906
18250
  setup(props, { emit }) {
17907
18251
  const regionLine = ref(null);
@@ -18077,10 +18421,13 @@ const _sfc_main$n = create$n({
18077
18421
  lineAnimation();
18078
18422
  };
18079
18423
  const close = () => {
18080
- const resCopy = Object.assign({
18081
- addressIdStr: "",
18082
- addressStr: ""
18083
- }, selectedRegion);
18424
+ const resCopy = Object.assign(
18425
+ {
18426
+ addressIdStr: "",
18427
+ addressStr: ""
18428
+ },
18429
+ selectedRegion
18430
+ );
18084
18431
  const res = {
18085
18432
  data: {},
18086
18433
  type: privateType.value
@@ -18123,36 +18470,57 @@ const _sfc_main$n = create$n({
18123
18470
  const handleElevatorItem = (key, item) => {
18124
18471
  nextAreaList(item);
18125
18472
  };
18126
- watch(() => props.visible, (value) => {
18127
- showPopup.value = value;
18128
- });
18129
- watch(() => showPopup.value, (value) => {
18130
- if (value == false) {
18131
- close();
18132
- } else {
18133
- initCustomSelected();
18134
- }
18135
- });
18136
- watch(() => props.province, (value) => {
18137
- regionList.province = isCustom2.value ? transformData(value) : value;
18138
- });
18139
- watch(() => props.city, (value) => {
18140
- regionList.city = isCustom2.value ? transformData(value) : value;
18141
- });
18142
- watch(() => props.country, (value) => {
18143
- regionList.country = isCustom2.value ? transformData(value) : value;
18144
- });
18145
- watch(() => props.town, (value) => {
18146
- regionList.town = isCustom2.value ? transformData(value) : value;
18147
- });
18148
- watch(() => props.existAddress, (value) => {
18149
- value.forEach((item, index) => {
18150
- if (item.selectedAddress) {
18151
- selectedExistAddress = item;
18473
+ watch(
18474
+ () => props.visible,
18475
+ (value) => {
18476
+ showPopup.value = value;
18477
+ }
18478
+ );
18479
+ watch(
18480
+ () => showPopup.value,
18481
+ (value) => {
18482
+ if (value == false) {
18483
+ close();
18484
+ } else {
18485
+ initCustomSelected();
18152
18486
  }
18153
- });
18154
- });
18155
- return __spreadProps(__spreadValues({
18487
+ }
18488
+ );
18489
+ watch(
18490
+ () => props.province,
18491
+ (value) => {
18492
+ regionList.province = isCustom2.value ? transformData(value) : value;
18493
+ }
18494
+ );
18495
+ watch(
18496
+ () => props.city,
18497
+ (value) => {
18498
+ regionList.city = isCustom2.value ? transformData(value) : value;
18499
+ }
18500
+ );
18501
+ watch(
18502
+ () => props.country,
18503
+ (value) => {
18504
+ regionList.country = isCustom2.value ? transformData(value) : value;
18505
+ }
18506
+ );
18507
+ watch(
18508
+ () => props.town,
18509
+ (value) => {
18510
+ regionList.town = isCustom2.value ? transformData(value) : value;
18511
+ }
18512
+ );
18513
+ watch(
18514
+ () => props.existAddress,
18515
+ (value) => {
18516
+ value.forEach((item, index) => {
18517
+ if (item.selectedAddress) {
18518
+ selectedExistAddress = item;
18519
+ }
18520
+ });
18521
+ }
18522
+ );
18523
+ return {
18156
18524
  showPopup,
18157
18525
  privateType,
18158
18526
  tabIndex,
@@ -18173,10 +18541,10 @@ const _sfc_main$n = create$n({
18173
18541
  clickOverlay,
18174
18542
  handClose,
18175
18543
  handleElevatorItem,
18176
- initCustomSelected
18177
- }, toRefs(props)), {
18544
+ initCustomSelected,
18545
+ ...toRefs(props),
18178
18546
  translate: translate$9
18179
- });
18547
+ };
18180
18548
  }
18181
18549
  });
18182
18550
  const _hoisted_1$m = { class: "nut-address" };
@@ -18204,7 +18572,7 @@ const _hoisted_11$1 = {
18204
18572
  };
18205
18573
  const _hoisted_12$1 = ["onClick"];
18206
18574
  const _hoisted_13$1 = { class: "elevator-group" };
18207
- const _hoisted_14 = {
18575
+ const _hoisted_14$1 = {
18208
18576
  key: 2,
18209
18577
  class: "exist-address"
18210
18578
  };
@@ -18242,10 +18610,10 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
18242
18610
  class: "arrow-back",
18243
18611
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
18244
18612
  }, [
18245
- withDirectives(createVNode(_component_nut_icon, {
18613
+ withDirectives(createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
18246
18614
  name: _ctx.backBtnIcon,
18247
18615
  color: "#cccccc"
18248
- }, null, 8, ["name"]), [
18616
+ }), null, 16, ["name"]), [
18249
18617
  [vShow, _ctx.type == "exist" && _ctx.privateType == "custom" && _ctx.backBtnIcon]
18250
18618
  ])
18251
18619
  ]),
@@ -18254,12 +18622,11 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
18254
18622
  class: "arrow-close",
18255
18623
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
18256
18624
  }, [
18257
- _ctx.closeBtnIcon ? (openBlock(), createBlock(_component_nut_icon, {
18258
- key: 0,
18625
+ _ctx.closeBtnIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
18259
18626
  name: _ctx.closeBtnIcon,
18260
18627
  color: "#cccccc",
18261
18628
  size: "18px"
18262
- }, null, 8, ["name"])) : createCommentVNode("", true)
18629
+ }), null, 16, ["name"])) : createCommentVNode("", true)
18263
18630
  ])
18264
18631
  ]),
18265
18632
  _ctx.privateType == "custom" ? (openBlock(), createElementBlock("view", _hoisted_4$f, [
@@ -18287,13 +18654,14 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
18287
18654
  class: normalizeClass(["region-item", [_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]]),
18288
18655
  onClick: ($event) => _ctx.nextAreaList(item)
18289
18656
  }, [
18290
- _ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, {
18657
+ _ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
18291
18658
  key: 0,
18292
18659
  class: "region-item-icon",
18293
- type: "self",
18660
+ type: "self"
18661
+ }, _ctx.$attrs, {
18294
18662
  name: _ctx.selectedIcon,
18295
18663
  size: "13px"
18296
- }, null, 8, ["name"])) : createCommentVNode("", true),
18664
+ }), null, 16, ["name"])) : createCommentVNode("", true),
18297
18665
  createTextVNode(toDisplayString(item.name), 1)
18298
18666
  ], 10, _hoisted_9$2);
18299
18667
  }), 128))
@@ -18323,7 +18691,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
18323
18691
  onClickItem: _ctx.handleElevatorItem
18324
18692
  }, null, 8, ["height", "index-list", "onClickItem"])
18325
18693
  ])
18326
- ])) : _ctx.privateType == "exist" ? (openBlock(), createElementBlock("view", _hoisted_14, [
18694
+ ])) : _ctx.privateType == "exist" ? (openBlock(), createElementBlock("view", _hoisted_14$1, [
18327
18695
  createElementVNode("div", _hoisted_15, [
18328
18696
  createElementVNode("ul", _hoisted_16, [
18329
18697
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index) => {
@@ -18332,12 +18700,13 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
18332
18700
  key: index,
18333
18701
  onClick: ($event) => _ctx.selectedExist(item)
18334
18702
  }, [
18335
- createVNode(_component_nut_icon, {
18703
+ createVNode(_component_nut_icon, mergeProps({
18336
18704
  class: "exist-item-icon",
18337
- type: "self",
18705
+ type: "self"
18706
+ }, _ctx.$attrs, {
18338
18707
  name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
18339
18708
  size: "13px"
18340
- }, null, 8, ["name"]),
18709
+ }), null, 16, ["name"]),
18341
18710
  createElementVNode("div", _hoisted_18, [
18342
18711
  item.name && item.phone ? (openBlock(), createElementBlock("div", _hoisted_19, [
18343
18712
  createElementVNode("div", _hoisted_20, toDisplayString(item.name), 1),
@@ -18358,10 +18727,11 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
18358
18727
  }, [
18359
18728
  createElementVNode("div", _hoisted_23, toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
18360
18729
  ])) : createCommentVNode("", true)
18361
- ])) : createCommentVNode("", true)
18730
+ ])) : createCommentVNode("", true),
18731
+ renderSlot(_ctx.$slots, "bottom")
18362
18732
  ])
18363
18733
  ]),
18364
- _: 1
18734
+ _: 3
18365
18735
  }, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
18366
18736
  }
18367
18737
  var Address = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n]]);
@@ -18422,9 +18792,12 @@ const _sfc_main$m = create$m({
18422
18792
  clearInterval(timer);
18423
18793
  timer = 0;
18424
18794
  });
18425
- watch(() => props.danmu, (newValue, oldVlaue) => {
18426
- danmuList.value = [...newValue];
18427
- });
18795
+ watch(
18796
+ () => props.danmu,
18797
+ (newValue, oldVlaue) => {
18798
+ danmuList.value = [...newValue];
18799
+ }
18800
+ );
18428
18801
  const add = (word) => {
18429
18802
  const _index = index.value % danmuList.value.length;
18430
18803
  if (!props.loop && index.value === danmuList.value.length) {
@@ -18494,7 +18867,15 @@ const _sfc_main$l = create$l({
18494
18867
  },
18495
18868
  strokeStyle: {
18496
18869
  type: String,
18497
- default: "#000"
18870
+ default: () => {
18871
+ let bodyDom = document.getElementsByTagName("body");
18872
+ let clsName = bodyDom[0]["className"];
18873
+ if (clsName.indexOf("nut-theme-dark") == -1) {
18874
+ return "#000";
18875
+ } else {
18876
+ return "#fff";
18877
+ }
18878
+ }
18498
18879
  },
18499
18880
  type: {
18500
18881
  type: String,
@@ -18506,7 +18887,7 @@ const _sfc_main$l = create$l({
18506
18887
  }
18507
18888
  },
18508
18889
  components: {},
18509
- emits: ["confirm", "clear"],
18890
+ emits: ["start", "end", "signing", "confirm", "clear"],
18510
18891
  setup(props, { emit }) {
18511
18892
  const canvas = ref(null);
18512
18893
  const wrap = ref(null);
@@ -18536,6 +18917,7 @@ const _sfc_main$l = create$l({
18536
18917
  state.ctx.beginPath();
18537
18918
  state.ctx.lineWidth = props.lineWidth;
18538
18919
  state.ctx.strokeStyle = props.strokeStyle;
18920
+ emit("start");
18539
18921
  canvas.value.addEventListener(state.events[1], moveEventHandler, false);
18540
18922
  canvas.value.addEventListener(state.events[2], endEventHandler, false);
18541
18923
  canvas.value.addEventListener(state.events[3], leaveEventHandler, false);
@@ -18543,6 +18925,7 @@ const _sfc_main$l = create$l({
18543
18925
  const moveEventHandler = (event) => {
18544
18926
  event.preventDefault();
18545
18927
  let evt = state.isSupportTouch ? event.touches[0] : event;
18928
+ emit("signing", evt);
18546
18929
  let coverPos = canvas.value.getBoundingClientRect();
18547
18930
  let mouseX = evt.clientX - coverPos.left;
18548
18931
  let mouseY = evt.clientY - coverPos.top;
@@ -18551,6 +18934,7 @@ const _sfc_main$l = create$l({
18551
18934
  };
18552
18935
  const endEventHandler = (event) => {
18553
18936
  event.preventDefault();
18937
+ emit("end");
18554
18938
  canvas.value.removeEventListener(state.events[1], moveEventHandler, false);
18555
18939
  canvas.value.removeEventListener(state.events[2], endEventHandler, false);
18556
18940
  };
@@ -18589,7 +18973,7 @@ const _sfc_main$l = create$l({
18589
18973
  addEvent();
18590
18974
  }
18591
18975
  });
18592
- return __spreadProps(__spreadValues({}, toRefs(state)), { canvas, wrap, isCanvasSupported, confirm, clear, classes, translate: translate$8 });
18976
+ return { ...toRefs(state), canvas, wrap, isCanvasSupported, confirm, clear, classes, translate: translate$8 };
18593
18977
  }
18594
18978
  });
18595
18979
  const _hoisted_1$k = {
@@ -18775,10 +19159,11 @@ const _sfc_main$j = create$j({
18775
19159
  const handlePannel = (pannelKey) => {
18776
19160
  context.emit("change", pannelKey);
18777
19161
  };
18778
- return __spreadProps(__spreadValues({}, toRefs(state)), {
19162
+ return {
19163
+ ...toRefs(state),
18779
19164
  classes,
18780
19165
  handlePannel
18781
- });
19166
+ };
18782
19167
  }
18783
19168
  });
18784
19169
  function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
@@ -18832,13 +19217,13 @@ const _sfc_main$i = create$i({
18832
19217
  const handleTime = (time) => {
18833
19218
  context.emit("select", time);
18834
19219
  };
18835
- return __spreadProps(__spreadValues({
18836
- classes
18837
- }, toRefs(state)), {
19220
+ return {
19221
+ classes,
19222
+ ...toRefs(state),
18838
19223
  getClass,
18839
19224
  renderData,
18840
19225
  handleTime
18841
- });
19226
+ };
18842
19227
  }
18843
19228
  });
18844
19229
  const _hoisted_1$i = { class: "nut-timedetail__detail nut-timedetail__detail--moring" };
@@ -18916,9 +19301,13 @@ const _sfc_main$g = create$g({
18916
19301
  emits: ["selectSku"],
18917
19302
  setup(props, { emit }) {
18918
19303
  const skuInfo = ref([]);
18919
- watch(() => props.sku, (value) => {
18920
- skuInfo.value = [].slice.call(value);
18921
- }, { deep: true });
19304
+ watch(
19305
+ () => props.sku,
19306
+ (value) => {
19307
+ skuInfo.value = [].slice.call(value);
19308
+ },
19309
+ { deep: true }
19310
+ );
18922
19311
  onMounted(() => {
18923
19312
  if (props.sku.length > 0) {
18924
19313
  skuInfo.value = [].slice.call(props.sku);
@@ -19131,7 +19520,8 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
19131
19520
  var SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e]]);
19132
19521
  const { componentName: componentName$c, create: create$d, translate: translate$5 } = createComponent("sku");
19133
19522
  const _sfc_main$d = create$d({
19134
- props: __spreadProps(__spreadValues({}, popupProps), {
19523
+ props: {
19524
+ ...popupProps,
19135
19525
  sku: {
19136
19526
  type: Array,
19137
19527
  default: []
@@ -19176,7 +19566,7 @@ const _sfc_main$d = create$d({
19176
19566
  type: String,
19177
19567
  default: ""
19178
19568
  }
19179
- }),
19569
+ },
19180
19570
  emits: [
19181
19571
  "update:visible",
19182
19572
  "selectSku",
@@ -19199,14 +19589,20 @@ const _sfc_main$d = create$d({
19199
19589
  setup(props, { emit, slots }) {
19200
19590
  const showPopup = ref(props.visible);
19201
19591
  const goodsCount = ref(props.stepperMin);
19202
- watch(() => props.visible, (value) => {
19203
- showPopup.value = value;
19204
- });
19205
- watch(() => showPopup.value, (value) => {
19206
- if (value == false) {
19207
- close();
19592
+ watch(
19593
+ () => props.visible,
19594
+ (value) => {
19595
+ showPopup.value = value;
19596
+ }
19597
+ );
19598
+ watch(
19599
+ () => showPopup.value,
19600
+ (value) => {
19601
+ if (value == false) {
19602
+ close();
19603
+ }
19208
19604
  }
19209
- });
19605
+ );
19210
19606
  onMounted(() => {
19211
19607
  });
19212
19608
  const getSlots = (name) => slots[name];
@@ -19538,9 +19934,12 @@ const _sfc_main$b = create$b({
19538
19934
  stepValue.value = value;
19539
19935
  emit("changeStep", stepValue.value, currentValue.value);
19540
19936
  };
19541
- watch(() => props.modelValue, (value) => {
19542
- money.value = value;
19543
- });
19937
+ watch(
19938
+ () => props.modelValue,
19939
+ (value) => {
19940
+ money.value = value;
19941
+ }
19942
+ );
19544
19943
  return {
19545
19944
  handleClick,
19546
19945
  changeStep,
@@ -19624,7 +20023,6 @@ const _sfc_main$a = create$a({
19624
20023
  setup(props, { emit }) {
19625
20024
  const delClick = (event) => {
19626
20025
  emit("delIconClick", event, props.item);
19627
- console.log(123);
19628
20026
  event.stopPropagation();
19629
20027
  };
19630
20028
  const editClick = (event) => {
@@ -20073,14 +20471,17 @@ const _sfc_main$6 = create$6({
20073
20471
  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"
20074
20472
  });
20075
20473
  const trowelData = () => {
20076
- console.log("props.data", props.data);
20077
- if (Object.keys(props.dataMapOptions).length > 0 && props.data.length > 0) {
20474
+ if (Object.keys(props.dataMapOptions).length > 0) {
20078
20475
  dataArray.value = props.data.map((item, index) => {
20079
20476
  return floatData(dataInfo, item, props.dataMapOptions);
20080
20477
  });
20081
20478
  }
20082
20479
  };
20083
- watch(() => props.data, () => trowelData(), { deep: true });
20480
+ watch(
20481
+ () => props.data,
20482
+ () => trowelData(),
20483
+ { deep: true }
20484
+ );
20084
20485
  const clickDelIcon = (event, item) => {
20085
20486
  emit("handelDelIcon", event, item);
20086
20487
  event.stopPropagation();
@@ -20259,7 +20660,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
20259
20660
  createElementVNode("div", {
20260
20661
  class: normalizeClass([_ctx.checkIndex == index ? "nut-category__cateListItemChecked" : "nut-category__cateListItem"]),
20261
20662
  onClick: ($event) => _ctx.getChildList(index)
20262
- }, toDisplayString(item.catName), 11, _hoisted_4$5)
20663
+ }, toDisplayString(item == null ? void 0 : item.catName), 11, _hoisted_4$5)
20263
20664
  ]);
20264
20665
  }), 128))
20265
20666
  ])) : createCommentVNode("", true),
@@ -20268,7 +20669,6 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
20268
20669
  ]);
20269
20670
  }
20270
20671
  var Category = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
20271
- var index_vue_vue_type_style_index_0_lang = "";
20272
20672
  const { componentName: componentName$4, create: create$4 } = createComponent("categorypane");
20273
20673
  const _sfc_main$4 = create$4({
20274
20674
  props: {
@@ -20322,13 +20722,14 @@ const _hoisted_13 = {
20322
20722
  key: 2,
20323
20723
  class: "nut-categorypane__selfItemList"
20324
20724
  };
20725
+ const _hoisted_14 = ["onClick"];
20325
20726
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
20326
20727
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
20327
20728
  _ctx.type == "classify" ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
20328
20729
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.categoryChild, (item, index) => {
20329
20730
  return openBlock(), createElementBlock("div", { key: index }, [
20330
- createElementVNode("div", _hoisted_3$4, toDisplayString(item.catName), 1),
20331
- item.catType == 1 ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
20731
+ createElementVNode("div", _hoisted_3$4, toDisplayString(item == null ? void 0 : item.catName), 1),
20732
+ (item == null ? void 0 : item.catType) == 1 ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
20332
20733
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
20333
20734
  return openBlock(), createElementBlock("div", {
20334
20735
  class: "nut-categorypane__childItem",
@@ -20339,7 +20740,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
20339
20740
  class: "nut-categorypane__childImg",
20340
20741
  src: sku.backImg
20341
20742
  }, null, 8, _hoisted_6$1),
20342
- createElementVNode("div", _hoisted_7, toDisplayString(sku.catName), 1)
20743
+ createElementVNode("div", _hoisted_7, toDisplayString(sku == null ? void 0 : sku.catName), 1)
20343
20744
  ], 8, _hoisted_5$2);
20344
20745
  }), 128))
20345
20746
  ])) : createCommentVNode("", true)
@@ -20349,15 +20750,15 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
20349
20750
  _ctx.type == "text" ? (openBlock(), createElementBlock("div", _hoisted_8, [
20350
20751
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.categoryChild, (item, index) => {
20351
20752
  return openBlock(), createElementBlock("div", { key: index }, [
20352
- createElementVNode("div", _hoisted_9, toDisplayString(item.catName), 1),
20353
- item.catType == 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
20753
+ createElementVNode("div", _hoisted_9, toDisplayString(item == null ? void 0 : item.catName), 1),
20754
+ (item == null ? void 0 : item.catType) == 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
20354
20755
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
20355
20756
  return openBlock(), createElementBlock("div", {
20356
20757
  class: "nut-categorypane__childItem",
20357
20758
  key,
20358
20759
  onClick: ($event) => _ctx.onChange(sku)
20359
20760
  }, [
20360
- createElementVNode("div", _hoisted_12, toDisplayString(sku.catName), 1)
20761
+ createElementVNode("div", _hoisted_12, toDisplayString(sku == null ? void 0 : sku.catName), 1)
20361
20762
  ], 8, _hoisted_11);
20362
20763
  }), 128))
20363
20764
  ])) : createCommentVNode("", true)
@@ -20369,8 +20770,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
20369
20770
  return openBlock(), createElementBlock("div", {
20370
20771
  class: "nut-categorypane__skuName",
20371
20772
  key,
20372
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onChange())
20373
- }, toDisplayString(sku.catName), 1);
20773
+ onClick: ($event) => _ctx.onChange(sku)
20774
+ }, toDisplayString(sku == null ? void 0 : sku.catName), 9, _hoisted_14);
20374
20775
  }), 128))
20375
20776
  ])) : createCommentVNode("", true)
20376
20777
  ]);
@@ -20500,14 +20901,18 @@ const _sfc_main$2 = create$2({
20500
20901
  const isShowImage = ref(false);
20501
20902
  const initIndex = ref(1);
20502
20903
  const totalImages = ref([]);
20503
- watch(() => [props.videos, props.images], (value) => {
20504
- if (value[0].length > 0) {
20505
- value[0].forEach((el) => {
20506
- el.type = "video";
20507
- });
20508
- }
20509
- totalImages.value = value[0].concat(value[1]);
20510
- }, { deep: true });
20904
+ watch(
20905
+ () => [props.videos, props.images],
20906
+ (value) => {
20907
+ if (value[0].length > 0) {
20908
+ value[0].forEach((el) => {
20909
+ el.type = "video";
20910
+ });
20911
+ }
20912
+ totalImages.value = value[0].concat(value[1]);
20913
+ },
20914
+ { deep: true }
20915
+ );
20511
20916
  onMounted(() => {
20512
20917
  if (props.videos.length > 0) {
20513
20918
  props.videos.forEach((el) => {
@@ -20817,6 +21222,6 @@ function install(app) {
20817
21222
  }
20818
21223
  });
20819
21224
  }
20820
- const version = "3.1.23-beta.6";
21225
+ const version = "3.2.2-beta.1";
20821
21226
  var nutui_vue_build = { install, version, Locale };
20822
21227
  export { ActionSheet, Address, AddressList, Animate, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$1g as Checkbox, _sfc_main$1f as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, Comment, _sfc_main$1J as ConfigProvider, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Ecard, Elevator, Ellipsis, Empty, FixedNav, Form, FormItem, _sfc_main$1C as Grid, GridItem, _sfc_main$1P as Icon, Image$1 as Image, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1H as Layout, List, Locale, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OldPicker, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$19 as Radio, _sfc_main$18 as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$G as Steps, _sfc_main$1E as Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, WaterMark, nutui_vue_build as default, install, version };