@nutui/nutui 4.1.4 → 4.1.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/README.md +1 -1
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +2100 -2067
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/_es/ActionSheet.js +6 -5
  6. package/dist/packages/_es/Address.js +17 -17
  7. package/dist/packages/_es/AddressList.js +3 -3
  8. package/dist/packages/_es/Animate.js +2 -2
  9. package/dist/packages/_es/Audio.js +7 -7
  10. package/dist/packages/_es/Avatar.js +2 -2
  11. package/dist/packages/_es/AvatarGroup.js +3 -3
  12. package/dist/packages/_es/Badge.js +3 -3
  13. package/dist/packages/_es/Calendar.js +23 -18
  14. package/dist/packages/_es/CalendarItem.js +1 -1
  15. package/dist/packages/_es/Cascader.js +16 -16
  16. package/dist/packages/_es/Category.js +2 -2
  17. package/dist/packages/_es/CategoryPane.js +3 -3
  18. package/dist/packages/_es/Collapse.js +2 -2
  19. package/dist/packages/_es/CollapseItem.js +7 -7
  20. package/dist/packages/_es/Comment.js +3 -3
  21. package/dist/packages/_es/ConfigProvider.js +57 -66
  22. package/dist/packages/_es/Countdown.js +20 -6
  23. package/dist/packages/_es/Countup.js +11 -11
  24. package/dist/packages/_es/DatePicker.js +11 -11
  25. package/dist/packages/_es/Dialog.js +3 -3
  26. package/dist/packages/_es/Drag.js +1 -1
  27. package/dist/packages/_es/Ecard.js +3 -3
  28. package/dist/packages/_es/Elevator.js +8 -8
  29. package/dist/packages/_es/Ellipsis.js +2 -2
  30. package/dist/packages/_es/FormItem.js +0 -1
  31. package/dist/packages/_es/GridItem.js +1 -1
  32. package/dist/packages/_es/Image.js +2 -2
  33. package/dist/packages/_es/ImagePreview.js +18 -18
  34. package/dist/packages/_es/InfiniteLoading.js +5 -5
  35. package/dist/packages/_es/Input.js +5 -5
  36. package/dist/packages/_es/Invoice.js +11 -5
  37. package/dist/packages/_es/List.js +11 -11
  38. package/dist/packages/_es/Menu.js +4 -4
  39. package/dist/packages/_es/MenuItem.js +11 -12
  40. package/dist/packages/_es/Navbar.js +21 -7
  41. package/dist/packages/_es/Noticebar.js +20 -14
  42. package/dist/packages/_es/Notify.js +3 -3
  43. package/dist/packages/_es/NumberKeyboard.js +10 -5
  44. package/dist/packages/_es/Overlay.js +3 -3
  45. package/dist/packages/_es/Picker.js +3 -3
  46. package/dist/packages/_es/Popover.js +9 -9
  47. package/dist/packages/_es/Popup.js +1 -1
  48. package/dist/packages/_es/PullRefresh.js +1 -1
  49. package/dist/packages/_es/Range.js +5 -5
  50. package/dist/packages/_es/Row.js +0 -1
  51. package/dist/packages/_es/Searchbar.js +10 -10
  52. package/dist/packages/_es/ShortPassword.js +14 -9
  53. package/dist/packages/_es/SideNavbar.js +2 -3
  54. package/dist/packages/_es/SideNavbarItem.js +2 -2
  55. package/dist/packages/_es/Signature.js +2 -2
  56. package/dist/packages/_es/Sku.js +38 -37
  57. package/dist/packages/_es/Step.js +1 -1
  58. package/dist/packages/_es/Steps.js +2 -2
  59. package/dist/packages/_es/Sticky.js +2 -2
  60. package/dist/packages/_es/SubSideNavbar.js +2 -2
  61. package/dist/packages/_es/Swipe.js +2 -2
  62. package/dist/packages/_es/SwipeGroup.js +2 -2
  63. package/dist/packages/_es/Swiper.js +4 -4
  64. package/dist/packages/_es/Switch.js +2 -2
  65. package/dist/packages/_es/Tabbar.js +2 -2
  66. package/dist/packages/_es/Table.js +6 -6
  67. package/dist/packages/_es/Tabs.js +13 -13
  68. package/dist/packages/_es/Textarea.js +3 -3
  69. package/dist/packages/_es/TimeDetail.js +1 -1
  70. package/dist/packages/_es/TimeSelect.js +3 -3
  71. package/dist/packages/_es/Tour.js +7 -7
  72. package/dist/packages/_es/Uploader.js +11 -11
  73. package/dist/packages/_es/Video.js +11 -11
  74. package/dist/packages/_es/{index-7fe29a2f.js → index-3032df15.js} +8 -9
  75. package/dist/packages/_es/{index-66fff386.js → index-7fdbc8f1.js} +13 -10
  76. package/dist/packages/circleprogress/index.scss +3 -1
  77. package/dist/packages/popover/index.scss +3 -1
  78. package/dist/packages/video/index.scss +4 -1
  79. package/dist/smartips/web-types.json +2 -2
  80. package/dist/style.css +1 -1
  81. package/dist/styles/themes/default.scss +42 -42
  82. package/dist/styles/themes/jdb.scss +42 -42
  83. package/dist/styles/themes/jddkh.scss +42 -42
  84. package/dist/styles/themes/jdt.scss +42 -42
  85. package/dist/styles/variables-jdb.scss +7 -1
  86. package/dist/styles/variables-jddkh.scss +7 -1
  87. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
  88. package/dist/types/__VUE/address/index.vue.d.ts +3 -3
  89. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +60 -0
  90. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +23 -0
  91. package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
  92. package/dist/types/__VUE/audio/index.vue.d.ts +3 -3
  93. package/dist/types/__VUE/calendar/index.vue.d.ts +9 -0
  94. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +77 -0
  95. package/dist/types/__VUE/collapseitem/index.vue.d.ts +3 -3
  96. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +42 -0
  97. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +36 -0
  98. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +59 -0
  99. package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
  100. package/dist/types/__VUE/configprovider/common.d.ts +19 -0
  101. package/dist/types/__VUE/countdown/index.vue.d.ts +7 -4
  102. package/dist/types/__VUE/countup/index.vue.d.ts +3 -3
  103. package/dist/types/__VUE/datepicker/index.vue.d.ts +3 -3
  104. package/dist/types/__VUE/elevator/index.vue.d.ts +3 -3
  105. package/dist/types/__VUE/empty/index.vue.d.ts +1 -1
  106. package/dist/types/__VUE/formitem/index.vue.d.ts +2 -4
  107. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  108. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +126 -0
  109. package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
  110. package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
  111. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +3 -3
  112. package/dist/types/__VUE/input/index.vue.d.ts +3 -3
  113. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  114. package/dist/types/__VUE/invoice/index.vue.d.ts +3 -2
  115. package/dist/types/__VUE/list/index.vue.d.ts +4 -4
  116. package/dist/types/__VUE/navbar/index.vue.d.ts +9 -5
  117. package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
  118. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +13 -4
  119. package/dist/types/__VUE/picker/Column.vue.d.ts +134 -0
  120. package/dist/types/__VUE/picker/common.d.ts +484 -4
  121. package/dist/types/__VUE/picker/index.vue.d.ts +125 -5
  122. package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
  123. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  124. package/dist/types/__VUE/range/index.vue.d.ts +8 -7
  125. package/dist/types/__VUE/rate/index.vue.d.ts +5 -5
  126. package/dist/types/__VUE/row/index.vue.d.ts +2 -2
  127. package/dist/types/__VUE/searchbar/index.vue.d.ts +7 -7
  128. package/dist/types/__VUE/shortpassword/index.vue.d.ts +9 -0
  129. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +2 -2
  130. package/dist/types/__VUE/signature/index.vue.d.ts +1 -1
  131. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +17 -0
  132. package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +60 -0
  133. package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +25 -0
  134. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +56 -0
  135. package/dist/types/__VUE/sku/index.vue.d.ts +9 -9
  136. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  137. package/dist/types/__VUE/steps/index.vue.d.ts +2 -2
  138. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +2 -2
  139. package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
  140. package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
  141. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +3 -3
  142. package/dist/types/__VUE/table/common.d.ts +1 -1
  143. package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
  144. package/dist/types/__VUE/tag/index.vue.d.ts +3 -0
  145. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  146. package/dist/types/__VUE/toast/index.vue.d.ts +4 -4
  147. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  148. package/dist/types/index.d.ts +1 -1
  149. package/package.json +1 -1
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { c as createComponent } from "./component-0fbad28e.js";
21
21
  import { useSlots, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle } from "vue";
22
- import { P as Popup, p as popupProps } from "./index-7fe29a2f.js";
22
+ import { P as Popup, p as popupProps } from "./index-3032df15.js";
23
23
  import { Loading } from "@nutui/icons-vue";
24
24
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
25
25
  import "../locale/lang";
@@ -129,8 +129,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
129
129
  visible: _ctx.visible,
130
130
  position: "bottom",
131
131
  round: "",
132
- onClickOverlay: _ctx.close,
133
- closeOnClickOverlay: _ctx.closeAbled
132
+ "close-on-click-overlay": _ctx.closeAbled,
133
+ "lock-scroll": _ctx.lockScroll,
134
+ onClickOverlay: _ctx.close
134
135
  }, {
135
136
  default: withCtx(() => [
136
137
  createElementVNode("view", {
@@ -143,12 +144,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
143
144
  _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4, [
144
145
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index2) => {
145
146
  return openBlock(), createElementBlock("view", {
147
+ key: index2,
146
148
  class: normalizeClass(["nut-action-sheet__item", {
147
149
  "nut-action-sheet__item--disabled": item.disable,
148
150
  "nut-action-sheet__item--loading": item.loading
149
151
  }]),
150
152
  style: normalizeStyle({ color: _ctx.isHighlight(item) || item.color }),
151
- key: index2,
152
153
  onClick: ($event) => _ctx.chooseItem(item, index2)
153
154
  }, [
154
155
  item.loading ? (openBlock(), createBlock(_component_Loading, {
@@ -168,7 +169,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
168
169
  ], 2)
169
170
  ]),
170
171
  _: 3
171
- }, 8, ["visible", "onClickOverlay", "closeOnClickOverlay"]);
172
+ }, 8, ["visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay"]);
172
173
  }
173
174
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
174
175
  export {
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
21
21
  import { c as createComponent } from "./component-0fbad28e.js";
22
- import { P as Popup, p as popupProps } from "./index-7fe29a2f.js";
22
+ import { P as Popup, p as popupProps } from "./index-3032df15.js";
23
23
  import Elevator from "./Elevator.js";
24
24
  import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
25
25
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -95,7 +95,7 @@ const _sfc_main = create({
95
95
  default: ""
96
96
  }
97
97
  }),
98
- emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
98
+ emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "closeMask", "switchModule"],
99
99
  setup(props, { emit }) {
100
100
  const regionLine = ref(null);
101
101
  const tabRegion = ref(null);
@@ -279,7 +279,7 @@ const _sfc_main = create({
279
279
  if (closeWay.value == "self") {
280
280
  emit("close", callBackParams);
281
281
  } else {
282
- emit("close-mask", { closeWay });
282
+ emit("closeMask", { closeWay });
283
283
  }
284
284
  emit("update:visible", false);
285
285
  };
@@ -287,7 +287,7 @@ const _sfc_main = create({
287
287
  const type = privateType.value;
288
288
  privateType.value = type == "exist" ? "custom" : "exist";
289
289
  initAddress();
290
- emit("switch-module", { type: privateType.value });
290
+ emit("switchModule", { type: privateType.value });
291
291
  };
292
292
  const handleElevatorItem = (key, item) => {
293
293
  nextAreaList(item);
@@ -342,8 +342,8 @@ const _hoisted_4 = {
342
342
  class: "nut-address__custom"
343
343
  };
344
344
  const _hoisted_5 = {
345
- class: "nut-address__region",
346
- ref: "tabRegion"
345
+ ref: "tabRegion",
346
+ class: "nut-address__region"
347
347
  };
348
348
  const _hoisted_6 = ["onClick"];
349
349
  const _hoisted_7 = {
@@ -355,8 +355,8 @@ const _hoisted_8 = {
355
355
  class: "nut-address__detail"
356
356
  };
357
357
  const _hoisted_9 = {
358
- class: "nut-address__detail-list",
359
- ref: "scrollDom"
358
+ ref: "scrollDom",
359
+ class: "nut-address__detail-list"
360
360
  };
361
361
  const _hoisted_10 = ["onClick"];
362
362
  const _hoisted_11 = {
@@ -389,16 +389,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
389
389
  const _component_Location2 = resolveComponent("Location2");
390
390
  const _component_nut_popup = resolveComponent("nut-popup");
391
391
  return openBlock(), createBlock(_component_nut_popup, {
392
+ visible: _ctx.showPopup,
393
+ "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => _ctx.showPopup = $event),
392
394
  position: "bottom",
393
395
  "lock-scroll": _ctx.lockScroll,
394
396
  round: _ctx.round,
397
+ "teleport-disable": _ctx.teleportDisable,
398
+ teleport: _ctx.teleport,
395
399
  onClose: _ctx.close,
396
400
  onClickOverlay: _ctx.clickOverlay,
397
- onOpen: _cache[3] || (_cache[3] = ($event) => _ctx.closeWay = "self"),
398
- visible: _ctx.showPopup,
399
- "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event),
400
- teleportDisable: _ctx.teleportDisable,
401
- teleport: _ctx.teleport
401
+ onOpen: _cache[4] || (_cache[4] = ($event) => _ctx.closeWay = "self")
402
402
  }, {
403
403
  default: withCtx(() => [
404
404
  createElementVNode("view", _hoisted_1, [
@@ -430,8 +430,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
430
430
  createElementVNode("view", _hoisted_5, [
431
431
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, index2) => {
432
432
  return openBlock(), createElementBlock("view", {
433
- class: normalizeClass(["nut-address__region-item", index2 == _ctx.tabIndex ? "active" : ""]),
434
433
  key: index2,
434
+ class: normalizeClass(["nut-address__region-item", index2 == _ctx.tabIndex ? "active" : ""]),
435
435
  onClick: ($event) => _ctx.changeRegionTab(item, index2)
436
436
  }, [
437
437
  createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index2)), 1)
@@ -441,8 +441,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
441
441
  createElementVNode("view", null, toDisplayString(_ctx.getTabName(null, _ctx.selectedRegion.length)), 1)
442
442
  ])) : createCommentVNode("", true),
443
443
  createElementVNode("view", {
444
- class: "nut-address__region-line",
445
444
  ref: "regionLine",
445
+ class: "nut-address__region-line",
446
446
  style: normalizeStyle({ left: _ctx.lineDistance + "px" })
447
447
  }, null, 4)
448
448
  ], 512),
@@ -479,8 +479,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
479
479
  createElementVNode("ul", _hoisted_14, [
480
480
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index2) => {
481
481
  return openBlock(), createElementBlock("li", {
482
- class: normalizeClass(["nut-address__exist-group-item", item.selectedAddress ? "active" : ""]),
483
482
  key: index2,
483
+ class: normalizeClass(["nut-address__exist-group-item", item.selectedAddress ? "active" : ""]),
484
484
  onClick: ($event) => _ctx.selectedExist(item)
485
485
  }, [
486
486
  !item.selectedAddress ? renderSlot(_ctx.$slots, "unselected-icon", { key: 0 }, () => [
@@ -518,7 +518,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
518
518
  ])
519
519
  ]),
520
520
  _: 3
521
- }, 8, ["lock-scroll", "round", "onClose", "onClickOverlay", "visible", "teleportDisable", "teleport"]);
521
+ }, 8, ["visible", "lock-scroll", "round", "teleport-disable", "teleport", "onClose", "onClickOverlay"]);
522
522
  }
523
523
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
524
524
  export {
@@ -413,8 +413,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
413
413
  return openBlock(), createBlock(_component_general_shell, {
414
414
  key: index2,
415
415
  item,
416
- longPress: _ctx.longPress,
417
- swipeEdition: _ctx.swipeEdition,
416
+ "long-press": _ctx.longPress,
417
+ "swipe-edition": _ctx.swipeEdition,
418
418
  onDelIcon: _ctx.clickDelIcon,
419
419
  onEditIcon: _ctx.clickEditIcon,
420
420
  onClickItem: _ctx.clickContentItem,
@@ -448,7 +448,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
448
448
  ]),
449
449
  key: "1"
450
450
  } : void 0
451
- ]), 1032, ["item", "longPress", "swipeEdition", "onDelIcon", "onEditIcon", "onClickItem", "onSwipeDel", "onLongCopy", "onLongSet", "onLongDel"]);
451
+ ]), 1032, ["item", "long-press", "swipe-edition", "onDelIcon", "onEditIcon", "onClickItem", "onSwipeDel", "onLongCopy", "onLongSet", "onLongDel"]);
452
452
  }), 128)),
453
453
  _ctx.showBottomButton ? (openBlock(), createElementBlock("div", {
454
454
  key: 0,
@@ -69,10 +69,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
69
69
  return openBlock(), createElementBlock("view", _hoisted_1, [
70
70
  createElementVNode("view", {
71
71
  class: normalizeClass(_ctx.classes),
72
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
73
72
  style: normalizeStyle({
74
73
  animationDuration: _ctx.duration ? `${_ctx.duration}ms` : void 0
75
- })
74
+ }),
75
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
76
76
  }, [
77
77
  renderSlot(_ctx.$slots, "default")
78
78
  ], 6)
@@ -67,7 +67,7 @@ const _sfc_main = create({
67
67
  Service,
68
68
  [Range.name]: Range
69
69
  },
70
- emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "can-play"],
70
+ emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "canPlay"],
71
71
  setup(props, { emit, slots }) {
72
72
  const audioRef = ref(null);
73
73
  const audioData = reactive({
@@ -109,7 +109,7 @@ const _sfc_main = create({
109
109
  }
110
110
  audioData.second = audioR.duration;
111
111
  audioData.duration = formatSeconds(audioR.duration);
112
- emit("can-play", e);
112
+ emit("canPlay", e);
113
113
  };
114
114
  const onTimeupdate = (e) => {
115
115
  audioData.currentTime = parseInt(e.target.currentTime);
@@ -223,9 +223,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
223
223
  modelValue: _ctx.percent,
224
224
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.percent = $event),
225
225
  "hidden-range": "",
226
- onChange: _ctx.progressChange,
227
226
  "inactive-color": "#cccccc",
228
- "active-color": "#fa2c19"
227
+ "active-color": "#fa2c19",
228
+ onChange: _ctx.progressChange
229
229
  }, {
230
230
  button: withCtx(() => [
231
231
  _hoisted_5
@@ -254,17 +254,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
254
254
  ])) : createCommentVNode("", true),
255
255
  _ctx.type != "none" ? renderSlot(_ctx.$slots, "default", { key: 3 }) : createCommentVNode("", true),
256
256
  createElementVNode("audio", {
257
+ ref: "audioRef",
257
258
  class: "audioMain",
258
259
  controls: _ctx.type == "controls",
259
- ref: "audioRef",
260
260
  src: _ctx.url,
261
261
  preload: _ctx.preload,
262
262
  autoplay: _ctx.autoplay,
263
263
  loop: _ctx.loop,
264
+ muted: _ctx.hanMuted,
264
265
  onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
265
266
  onCanplay: _cache[4] || (_cache[4] = (...args) => _ctx.onCanplay && _ctx.onCanplay(...args)),
266
- onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
267
- muted: _ctx.hanMuted
267
+ onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args))
268
268
  }, null, 40, _hoisted_8)
269
269
  ]);
270
270
  }
@@ -55,9 +55,9 @@ const _sfc_main = create({
55
55
  });
56
56
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
57
57
  return openBlock(), createElementBlock("view", {
58
+ ref: "avatarRef",
58
59
  style: normalizeStyle(_ctx.styles),
59
- class: normalizeClass(_ctx.classes),
60
- ref: "avatarRef"
60
+ class: normalizeClass(_ctx.classes)
61
61
  }, [
62
62
  renderSlot(_ctx.$slots, "default")
63
63
  ], 6);
@@ -120,8 +120,8 @@ const _sfc_main = create({
120
120
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
121
121
  const _component_nut_avatar = resolveComponent("nut-avatar");
122
122
  return openBlock(), createElementBlock("view", {
123
- class: "nut-avatar-group",
124
123
  ref: "avatarGroupRef",
124
+ class: "nut-avatar-group",
125
125
  style: normalizeStyle(_ctx.styles)
126
126
  }, [
127
127
  renderSlot(_ctx.$slots, "default"),
@@ -129,7 +129,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
129
129
  key: 0,
130
130
  class: "avater-fold",
131
131
  color: _ctx.maxColor,
132
- bgColor: _ctx.maxBgColor,
132
+ "bg-color": _ctx.maxBgColor,
133
133
  size: _ctx.size,
134
134
  shape: _ctx.shape,
135
135
  style: normalizeStyle({ magrinLeft: `${_ctx.span}px` })
@@ -138,7 +138,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
138
138
  createTextVNode(toDisplayString(_ctx.maxContent || _ctx.foldCount), 1)
139
139
  ]),
140
140
  _: 1
141
- }, 8, ["color", "bgColor", "size", "shape", "style"])) : createCommentVNode("", true)
141
+ }, 8, ["color", "bg-color", "size", "shape", "style"])) : createCommentVNode("", true)
142
142
  ], 4);
143
143
  }
144
144
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -1,4 +1,4 @@
1
- import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, toDisplayString, normalizeClass } from "vue";
1
+ import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, normalizeClass, toDisplayString } from "vue";
2
2
  import { c as createComponent } from "./component-0fbad28e.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
@@ -82,9 +82,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
82
82
  ]),
83
83
  renderSlot(_ctx.$slots, "default"),
84
84
  withDirectives(createElementVNode("view", {
85
- textContent: toDisplayString(_ctx.content),
86
85
  class: normalizeClass(["nut-badge__content nut-badge__content--sup", { "nut-badge__content--dot": _ctx.dot, "nut-badge__content--bubble": !_ctx.dot && _ctx.bubble }]),
87
- style: normalizeStyle(_ctx.stl)
86
+ style: normalizeStyle(_ctx.stl),
87
+ textContent: toDisplayString(_ctx.content)
88
88
  }, null, 14, _hoisted_2), [
89
89
  [vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
90
90
  ])
@@ -1,7 +1,7 @@
1
1
  import { computed, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createSlots, renderSlot } from "vue";
2
2
  import { c as createComponent } from "./component-0fbad28e.js";
3
- import { C as CalendarItem, U as Utils } from "./index-66fff386.js";
4
- import { P as Popup } from "./index-7fe29a2f.js";
3
+ import { C as CalendarItem, U as Utils } from "./index-7fdbc8f1.js";
4
+ import { P as Popup } from "./index-3032df15.js";
5
5
  import { u as useExpose } from "./index-79c5dc33.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
7
7
  import "../locale/lang";
@@ -78,6 +78,10 @@ const _sfc_main = create({
78
78
  type: Number,
79
79
  default: 0,
80
80
  validator: (val) => val >= 0 && val <= 6
81
+ },
82
+ lockScroll: {
83
+ type: Boolean,
84
+ default: true
81
85
  }
82
86
  },
83
87
  emits: ["choose", "close", "update:visible", "select"],
@@ -148,9 +152,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
148
152
  round: "",
149
153
  closeable: ""
150
154
  }, _ctx.$attrs, {
155
+ style: { height: "85vh" },
156
+ "lock-scroll": _ctx.lockScroll,
151
157
  onClickOverlay: _ctx.closePopup,
152
- onClickCloseIcon: _ctx.closePopup,
153
- style: { height: "85vh" }
158
+ onClickCloseIcon: _ctx.closePopup
154
159
  }), {
155
160
  default: withCtx(() => [
156
161
  createVNode(_component_nut_calendar_item, {
@@ -162,10 +167,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
162
167
  "default-value": _ctx.defaultValue,
163
168
  "start-date": _ctx.startDate,
164
169
  "end-date": _ctx.endDate,
165
- onUpdate: _ctx.update,
166
- onClose: _ctx.close,
167
- onChoose: _ctx.choose,
168
- onSelect: _ctx.select,
169
170
  "confirm-text": _ctx.confirmText,
170
171
  "start-text": _ctx.startText,
171
172
  "end-text": _ctx.endText,
@@ -173,7 +174,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
173
174
  "show-title": _ctx.showTitle,
174
175
  "show-sub-title": _ctx.showSubTitle,
175
176
  "to-date-animation": _ctx.toDateAnimation,
176
- "first-day-of-week": _ctx.firstDayOfWeek
177
+ "first-day-of-week": _ctx.firstDayOfWeek,
178
+ onUpdate: _ctx.update,
179
+ onClose: _ctx.close,
180
+ onChoose: _ctx.choose,
181
+ onSelect: _ctx.select
177
182
  }, createSlots({ _: 2 }, [
178
183
  _ctx.showTopBtn ? {
179
184
  name: "btn",
@@ -209,31 +214,31 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
209
214
  ]),
210
215
  key: "3"
211
216
  } : void 0
212
- ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "confirm-text", "start-text", "end-text", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week"])
217
+ ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "default-value", "start-date", "end-date", "confirm-text", "start-text", "end-text", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week", "onUpdate", "onClose", "onChoose", "onSelect"])
213
218
  ]),
214
219
  _: 3
215
- }, 16, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
220
+ }, 16, ["visible", "lock-scroll", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
216
221
  key: 1,
222
+ ref: "calendarRef",
217
223
  type: _ctx.type,
218
224
  "is-auto-back-fill": _ctx.isAutoBackFill,
219
225
  poppable: _ctx.poppable,
220
226
  title: _ctx.title,
221
- ref: "calendarRef",
222
227
  "confirm-text": _ctx.confirmText,
223
228
  "start-text": _ctx.startText,
224
229
  "end-text": _ctx.endText,
225
230
  "default-value": _ctx.defaultValue,
226
231
  "start-date": _ctx.startDate,
227
232
  "end-date": _ctx.endDate,
228
- onUpdate: _ctx.update,
229
- onClose: _ctx.close,
230
- onChoose: _ctx.choose,
231
- onSelect: _ctx.select,
232
233
  "show-title": _ctx.showTitle,
233
234
  "show-sub-title": _ctx.showSubTitle,
234
235
  "to-date-animation": _ctx.toDateAnimation,
235
236
  "show-today": _ctx.showToday,
236
- "first-day-of-week": _ctx.firstDayOfWeek
237
+ "first-day-of-week": _ctx.firstDayOfWeek,
238
+ onUpdate: _ctx.update,
239
+ onClose: _ctx.close,
240
+ onChoose: _ctx.choose,
241
+ onSelect: _ctx.select
237
242
  }, createSlots({ _: 2 }, [
238
243
  _ctx.showTopBtn ? {
239
244
  name: "btn",
@@ -269,7 +274,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
269
274
  ]),
270
275
  key: "3"
271
276
  } : void 0
272
- ]), 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-title", "show-sub-title", "to-date-animation", "show-today", "first-day-of-week"]));
277
+ ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "show-title", "show-sub-title", "to-date-animation", "show-today", "first-day-of-week", "onUpdate", "onClose", "onChoose", "onSelect"]));
273
278
  }
274
279
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
275
280
  export {
@@ -1,4 +1,4 @@
1
- import { C } from "./index-66fff386.js";
1
+ import { C } from "./index-7fdbc8f1.js";
2
2
  import "vue";
3
3
  import "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "./component-0fbad28e.js";
@@ -55,7 +55,7 @@ var __async = (__this, __arguments, generator) => {
55
55
  });
56
56
  };
57
57
  import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
58
- import { P as Popup, p as popupProps } from "./index-7fe29a2f.js";
58
+ import { P as Popup, p as popupProps } from "./index-3032df15.js";
59
59
  import { c as createComponent } from "./component-0fbad28e.js";
60
60
  import { Loading, Checklist } from "@nutui/icons-vue";
61
61
  import Tabs from "./Tabs.js";
@@ -438,17 +438,17 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
438
438
  const _component_nut_tab_pane = resolveComponent("nut-tab-pane");
439
439
  const _component_nut_tabs = resolveComponent("nut-tabs");
440
440
  return openBlock(), createBlock(_component_nut_tabs, {
441
- class: "nut-cascader",
442
441
  modelValue: _ctx.tabsCursor,
443
442
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.tabsCursor = $event),
444
- onClick: _ctx.handleTabClick,
445
- "title-scroll": ""
443
+ class: "nut-cascader",
444
+ "title-scroll": "",
445
+ onClick: _ctx.handleTabClick
446
446
  }, {
447
447
  default: withCtx(() => [
448
448
  !_ctx.initLoading && _ctx.panes.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.panes, (pane, index2) => {
449
449
  return openBlock(), createBlock(_component_nut_tab_pane, {
450
- title: _ctx.formatTabTitle(pane),
451
- key: index2
450
+ key: index2,
451
+ title: _ctx.formatTabTitle(pane)
452
452
  }, {
453
453
  default: withCtx(() => [
454
454
  createElementVNode("view", _hoisted_1$1, [
@@ -583,9 +583,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
583
583
  innerHTML: _ctx.title
584
584
  }, null, 8, _hoisted_1)) : createCommentVNode("", true),
585
585
  createVNode(_component_nut_cascader_item, {
586
- onChange: _ctx.onChange,
587
- onPathChange: _ctx.onPathChange,
588
- modelValue: _ctx.innerValue,
586
+ "model-value": _ctx.innerValue,
589
587
  options: _ctx.options,
590
588
  lazy: _ctx.lazy,
591
589
  "lazy-load": _ctx.lazyLoad,
@@ -593,15 +591,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
593
591
  "text-key": _ctx.textKey,
594
592
  "children-key": _ctx.childrenKey,
595
593
  "convert-config": _ctx.convertConfig,
596
- visible: _ctx.innerVisible
597
- }, null, 8, ["onChange", "onPathChange", "modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible"])
594
+ visible: _ctx.innerVisible,
595
+ onChange: _ctx.onChange,
596
+ onPathChange: _ctx.onPathChange
597
+ }, null, 8, ["model-value", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible", "onChange", "onPathChange"])
598
598
  ]),
599
599
  _: 1
600
600
  }, 8, ["visible", "closeable", "close-icon-position"])) : (openBlock(), createBlock(_component_nut_cascader_item, {
601
601
  key: 1,
602
- onChange: _ctx.onChange,
603
- onPathChange: _ctx.onPathChange,
604
- modelValue: _ctx.innerValue,
602
+ "model-value": _ctx.innerValue,
605
603
  options: _ctx.options,
606
604
  lazy: _ctx.lazy,
607
605
  "lazy-load": _ctx.lazyLoad,
@@ -609,8 +607,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
609
607
  "text-key": _ctx.textKey,
610
608
  "children-key": _ctx.childrenKey,
611
609
  "convert-config": _ctx.convertConfig,
612
- visible: _ctx.innerVisible
613
- }, null, 8, ["onChange", "onPathChange", "modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible"]));
610
+ visible: _ctx.innerVisible,
611
+ onChange: _ctx.onChange,
612
+ onPathChange: _ctx.onPathChange
613
+ }, null, 8, ["model-value", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible", "onChange", "onPathChange"]));
614
614
  }
615
615
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
616
616
  export {
@@ -40,8 +40,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
40
40
  _ctx.type == "classify" || _ctx.type == "text" ? (openBlock(), createElementBlock("div", _hoisted_3, [
41
41
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.category, (item, index2) => {
42
42
  return openBlock(), createElementBlock("div", {
43
- class: "nut-category__cateListLeft",
44
- key: index2
43
+ key: index2,
44
+ class: "nut-category__cateListLeft"
45
45
  }, [
46
46
  createElementVNode("div", {
47
47
  class: normalizeClass([_ctx.checkIndex == index2 ? "nut-category__cateListItemChecked" : "nut-category__cateListItem"]),
@@ -68,8 +68,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
68
68
  (item == null ? void 0 : item.catType) == 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
69
69
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
70
70
  return openBlock(), createElementBlock("div", {
71
- class: "nut-category-pane__childItem",
72
71
  key,
72
+ class: "nut-category-pane__childItem",
73
73
  onClick: ($event) => _ctx.onChange(sku)
74
74
  }, [
75
75
  createElementVNode("img", {
@@ -90,8 +90,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
90
90
  (item == null ? void 0 : item.catType) == 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
91
91
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
92
92
  return openBlock(), createElementBlock("div", {
93
- class: "nut-category-pane__childItem",
94
93
  key,
94
+ class: "nut-category-pane__childItem",
95
95
  onClick: ($event) => _ctx.onChange(sku)
96
96
  }, [
97
97
  createElementVNode("div", _hoisted_12, toDisplayString(sku == null ? void 0 : sku.catName), 1)
@@ -104,8 +104,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
104
104
  _ctx.type == "custom" ? (openBlock(), createElementBlock("div", _hoisted_13, [
105
105
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.customCategory, (sku, key) => {
106
106
  return openBlock(), createElementBlock("div", {
107
- class: "nut-category-pane__skuName",
108
107
  key,
108
+ class: "nut-category-pane__skuName",
109
109
  onClick: ($event) => _ctx.onChange(sku)
110
110
  }, toDisplayString(sku == null ? void 0 : sku.catName), 9, _hoisted_14);
111
111
  }), 128))
@@ -73,8 +73,8 @@ const _sfc_main = create({
73
73
  });
74
74
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
75
75
  return openBlock(), createElementBlock("view", {
76
- class: normalizeClass(_ctx.classes),
77
- ref: "collapseDom"
76
+ ref: "collapseDom",
77
+ class: normalizeClass(_ctx.classes)
78
78
  }, [
79
79
  renderSlot(_ctx.$slots, "default")
80
80
  ], 2);
@@ -125,8 +125,8 @@ const _hoisted_7 = {
125
125
  };
126
126
  const _hoisted_8 = { class: "nut-collapse__item-extraWrapper__extraRender" };
127
127
  const _hoisted_9 = {
128
- class: "nut-collapse__item-wrapper__content",
129
- ref: "contentRef"
128
+ ref: "contentRef",
129
+ class: "nut-collapse__item-wrapper__content"
130
130
  };
131
131
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
132
132
  return openBlock(), createElementBlock("view", {
@@ -140,8 +140,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
140
140
  createElementVNode("view", _hoisted_2, [
141
141
  _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : (openBlock(), createElementBlock("view", {
142
142
  key: 1,
143
- innerHTML: _ctx.title,
144
- class: "nut-collapse-item__title-mtitle"
143
+ class: "nut-collapse-item__title-mtitle",
144
+ innerHTML: _ctx.title
145
145
  }, null, 8, _hoisted_3)),
146
146
  _ctx.label ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
147
147
  ])
@@ -150,8 +150,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
150
150
  renderSlot(_ctx.$slots, "value")
151
151
  ])) : (openBlock(), createElementBlock("view", {
152
152
  key: 1,
153
- innerHTML: _ctx.value,
154
- class: "nut-collapse-item__title-sub"
153
+ class: "nut-collapse-item__title-sub",
154
+ innerHTML: _ctx.value
155
155
  }, null, 8, _hoisted_6)),
156
156
  createElementVNode("view", {
157
157
  class: normalizeClass(["nut-collapse-item__title-icon", { "nut-collapse-item__title-icon--expanded": _ctx.expanded }]),
@@ -166,8 +166,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
166
166
  ])
167
167
  ])) : createCommentVNode("", true),
168
168
  createElementVNode("view", {
169
- class: "nut-collapse__item-wrapper",
170
169
  ref: "wrapperRef",
170
+ class: "nut-collapse__item-wrapper",
171
171
  style: normalizeStyle({
172
172
  willChange: "height",
173
173
  height: _ctx.wrapperHeight
@@ -183,8 +183,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
183
183
  }, [
184
184
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.videos, (itV, index2) => {
185
185
  return openBlock(), createElementBlock("view", {
186
- class: "nut-comment-images__item nut-comment-images__item--video",
187
186
  key: itV.id,
187
+ class: "nut-comment-images__item nut-comment-images__item--video",
188
188
  onClick: ($event) => _ctx.showImages("video", index2)
189
189
  }, [
190
190
  createElementVNode("img", {
@@ -269,8 +269,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
269
269
  const _component_MoreX = resolveComponent("MoreX");
270
270
  return openBlock(), createElementBlock("view", _hoisted_1$1, [
271
271
  createElementVNode("view", {
272
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
273
- class: "nut-comment-bottom__lable"
272
+ class: "nut-comment-bottom__lable",
273
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
274
274
  }, [
275
275
  _ctx.type != "complex" ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(_ctx.info.size), 1)) : createCommentVNode("", true)
276
276
  ]),