@nutui/nutui 3.1.11 → 3.1.12-beta.0

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 (86) hide show
  1. package/dist/nutui.es.js +439 -339
  2. package/dist/nutui.umd.js +439 -339
  3. package/dist/packages/_es/ActionSheet.js +1 -1
  4. package/dist/packages/_es/Address.js +1 -1
  5. package/dist/packages/_es/Avatar.js +1 -1
  6. package/dist/packages/_es/BackTop.js +1 -1
  7. package/dist/packages/_es/Badge.js +1 -1
  8. package/dist/packages/_es/Barrage.js +1 -1
  9. package/dist/packages/_es/Button.js +1 -1
  10. package/dist/packages/_es/Calendar.js +1 -1
  11. package/dist/packages/_es/Cell.js +1 -1
  12. package/dist/packages/_es/CellGroup.js +1 -1
  13. package/dist/packages/_es/Checkbox.js +1 -1
  14. package/dist/packages/_es/CheckboxGroup.js +2 -2
  15. package/dist/packages/_es/CircleProgress.js +1 -1
  16. package/dist/packages/_es/Col.js +1 -1
  17. package/dist/packages/_es/Collapse.js +1 -1
  18. package/dist/packages/_es/CollapseItem.js +1 -1
  19. package/dist/packages/_es/CountDown.js +1 -1
  20. package/dist/packages/_es/CountUp.js +1 -1
  21. package/dist/packages/_es/DatePicker.js +1 -1
  22. package/dist/packages/_es/Dialog.js +1 -1
  23. package/dist/packages/_es/Divider.js +1 -1
  24. package/dist/packages/_es/Drag.js +1 -1
  25. package/dist/packages/_es/Elevator.js +1 -1
  26. package/dist/packages/_es/FixedNav.js +1 -1
  27. package/dist/packages/_es/Icon.js +1 -1
  28. package/dist/packages/_es/ImagePreview.js +1 -1
  29. package/dist/packages/_es/InfiniteLoading.js +1 -1
  30. package/dist/packages/_es/Input.js +1 -1
  31. package/dist/packages/_es/InputNumber.js +1 -1
  32. package/dist/packages/_es/Layout.js +1 -1
  33. package/dist/packages/_es/Menu.js +83 -167
  34. package/dist/packages/_es/MenuItem.js +154 -15
  35. package/dist/packages/_es/Navbar.js +1 -1
  36. package/dist/packages/_es/NoticeBar.js +1 -1
  37. package/dist/packages/_es/Notify.js +1 -1
  38. package/dist/packages/_es/NumberKeyboard.js +1 -1
  39. package/dist/packages/_es/OverLay.js +1 -1
  40. package/dist/packages/_es/Pagination.js +1 -1
  41. package/dist/packages/_es/Picker.js +1 -1
  42. package/dist/packages/_es/Popover.js +1 -1
  43. package/dist/packages/_es/Popup.js +52 -13
  44. package/dist/packages/_es/Price.js +1 -1
  45. package/dist/packages/_es/Progress.js +1 -1
  46. package/dist/packages/_es/Radio.js +1 -1
  47. package/dist/packages/_es/RadioGroup.js +1 -1
  48. package/dist/packages/_es/Range.js +3 -31
  49. package/dist/packages/_es/Rate.js +1 -1
  50. package/dist/packages/_es/Row.js +1 -1
  51. package/dist/packages/_es/SearchBar.js +1 -1
  52. package/dist/packages/_es/ShortPassword.js +1 -1
  53. package/dist/packages/_es/Signature.js +1 -1
  54. package/dist/packages/_es/Sku.js +1 -1
  55. package/dist/packages/_es/Step.js +1 -1
  56. package/dist/packages/_es/Steps.js +1 -1
  57. package/dist/packages/_es/Swipe.js +1 -1
  58. package/dist/packages/_es/Swiper.js +2 -2
  59. package/dist/packages/_es/SwiperItem.js +1 -1
  60. package/dist/packages/_es/Switch.js +1 -1
  61. package/dist/packages/_es/TabPane.js +1 -1
  62. package/dist/packages/_es/Tabbar.js +1 -1
  63. package/dist/packages/_es/TabbarItem.js +1 -1
  64. package/dist/packages/_es/Tabs.js +1 -1
  65. package/dist/packages/_es/Tag.js +1 -1
  66. package/dist/packages/_es/TextArea.js +1 -1
  67. package/dist/packages/_es/TimeDetail.js +1 -1
  68. package/dist/packages/_es/TimePannel.js +1 -1
  69. package/dist/packages/_es/TimeSelect.js +1 -1
  70. package/dist/packages/_es/Toast.js +1 -1
  71. package/dist/packages/_es/Uploader.js +30 -22
  72. package/dist/packages/_es/Video.js +1 -1
  73. package/dist/packages/_es/component.js +1 -1
  74. package/dist/packages/_es/index.js +1 -1
  75. package/dist/packages/_es/index2.js +31 -8
  76. package/dist/packages/_es/index3.js +13 -0
  77. package/dist/packages/_es/plugin-vue_export-helper.js +4 -3
  78. package/dist/packages/_es/pxCheck.js +1 -1
  79. package/dist/packages/_es/raf.js +1 -1
  80. package/dist/packages/menu/index.scss +32 -60
  81. package/dist/packages/menuitem/index.scss +36 -99
  82. package/dist/style.css +1 -1
  83. package/dist/styles/themes/default.scss +35 -35
  84. package/dist/styles/variables.scss +13 -0
  85. package/package.json +1 -1
  86. package/dist/packages/_es/style.css +0 -160
package/dist/nutui.es.js CHANGED
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
22
22
  return value;
23
23
  };
24
24
  /*!
25
- * @nutui/nutui v3.1.11 Mon Nov 15 2021 22:27:37 GMT+0800 (中国标准时间)
25
+ * @nutui/nutui v3.1.12-beta.0 Mon Nov 22 2021 20:58:05 GMT+0800 (中国标准时间)
26
26
  * (c) 2021 @jdf2e.
27
27
  * Released under the MIT License.
28
28
  */
@@ -48,10 +48,11 @@ function createComponent(name) {
48
48
  };
49
49
  }
50
50
  var _export_sfc = (sfc, props) => {
51
+ const target = sfc.__vccOpts || sfc;
51
52
  for (const [key, val] of props) {
52
- sfc[key] = val;
53
+ target[key] = val;
53
54
  }
54
- return sfc;
55
+ return target;
55
56
  };
56
57
  const { componentName: componentName$X, create: create$1b } = createComponent("avatar");
57
58
  const _sfc_main$1b = create$1b({
@@ -110,7 +111,7 @@ const _sfc_main$1b = create$1b({
110
111
  };
111
112
  }
112
113
  });
113
- const _hoisted_1$N = {
114
+ const _hoisted_1$P = {
114
115
  key: 0,
115
116
  class: "text"
116
117
  };
@@ -125,7 +126,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
125
126
  class: "icon",
126
127
  name: _ctx.iconStyles
127
128
  }, null, 8, ["name"]),
128
- _ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_1$N, [
129
+ _ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_1$P, [
129
130
  renderSlot(_ctx.$slots, "default")
130
131
  ])) : createCommentVNode("", true)
131
132
  ], 6);
@@ -254,7 +255,7 @@ const _sfc_main$19 = create$19({
254
255
  };
255
256
  }
256
257
  });
257
- const _hoisted_1$M = { class: "nut-button__warp" };
258
+ const _hoisted_1$O = { class: "nut-button__warp" };
258
259
  function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
259
260
  const _component_nut_icon = resolveComponent("nut-icon");
260
261
  return openBlock(), createElementBlock("view", {
@@ -262,7 +263,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
262
263
  style: normalizeStyle(_ctx.getStyle),
263
264
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
264
265
  }, [
265
- createElementVNode("view", _hoisted_1$M, [
266
+ createElementVNode("view", _hoisted_1$O, [
266
267
  _ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
267
268
  key: 0,
268
269
  class: "nut-icon-loading"
@@ -326,8 +327,8 @@ const _sfc_main$18 = create$18({
326
327
  };
327
328
  }
328
329
  });
329
- const _hoisted_1$L = { class: "title" };
330
- const _hoisted_2$G = { class: "nut-cell__title-desc" };
330
+ const _hoisted_1$N = { class: "title" };
331
+ const _hoisted_2$H = { class: "nut-cell__title-desc" };
331
332
  function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
332
333
  const _component_nut_icon = resolveComponent("nut-icon");
333
334
  return openBlock(), createElementBlock("view", {
@@ -346,8 +347,8 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
346
347
  name: _ctx.icon
347
348
  }, null, 8, ["name"])) : createCommentVNode("", true),
348
349
  _ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
349
- createElementVNode("view", _hoisted_1$L, toDisplayString(_ctx.title), 1),
350
- createElementVNode("view", _hoisted_2$G, toDisplayString(_ctx.subTitle), 1)
350
+ createElementVNode("view", _hoisted_1$N, toDisplayString(_ctx.title), 1),
351
+ createElementVNode("view", _hoisted_2$H, toDisplayString(_ctx.subTitle), 1)
351
352
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
352
353
  createTextVNode(toDisplayString(_ctx.title), 1)
353
354
  ], 64))
@@ -383,17 +384,17 @@ const _sfc_main$17 = create$17({
383
384
  };
384
385
  }
385
386
  });
386
- const _hoisted_1$K = {
387
+ const _hoisted_1$M = {
387
388
  key: 1,
388
389
  class: "nut-cell-group__title"
389
390
  };
390
- const _hoisted_2$F = { class: "nut-cell-group__warp" };
391
+ const _hoisted_2$G = { class: "nut-cell-group__warp" };
391
392
  function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
392
393
  return openBlock(), createElementBlock("view", {
393
394
  class: normalizeClass(_ctx.classes)
394
395
  }, [
395
- _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$K, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
396
- createElementVNode("view", _hoisted_2$F, [
396
+ _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$M, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
397
+ createElementVNode("view", _hoisted_2$G, [
397
398
  renderSlot(_ctx.$slots, "default")
398
399
  ])
399
400
  ], 2);
@@ -483,8 +484,8 @@ const _sfc_main$16 = create$16({
483
484
  };
484
485
  }
485
486
  });
486
- const _hoisted_1$J = ["innerHTML"];
487
- const _hoisted_2$E = ["innerHTML"];
487
+ const _hoisted_1$L = ["innerHTML"];
488
+ const _hoisted_2$F = ["innerHTML"];
488
489
  function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
489
490
  return openBlock(), createElementBlock("view", {
490
491
  class: normalizeClass(_ctx.classes)
@@ -493,7 +494,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
493
494
  key: 0,
494
495
  class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
495
496
  innerHTML: _ctx.showSymbol
496
- }, null, 10, _hoisted_1$J)) : createCommentVNode("", true),
497
+ }, null, 10, _hoisted_1$L)) : createCommentVNode("", true),
497
498
  createElementVNode("view", {
498
499
  class: normalizeClass(`nut-price--${_ctx.size}`)
499
500
  }, toDisplayString(_ctx.formatThousands(_ctx.price)), 3),
@@ -508,7 +509,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
508
509
  key: 2,
509
510
  class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
510
511
  innerHTML: _ctx.showSymbol
511
- }, null, 10, _hoisted_2$E)) : createCommentVNode("", true)
512
+ }, null, 10, _hoisted_2$F)) : createCommentVNode("", true)
512
513
  ], 2);
513
514
  }
514
515
  var Price = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$10]]);
@@ -802,6 +803,10 @@ const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
802
803
  round: {
803
804
  type: Boolean,
804
805
  default: false
806
+ },
807
+ isWrapTeleport: {
808
+ type: Boolean,
809
+ default: true
805
810
  }
806
811
  });
807
812
  const _sfc_main$10 = create$10({
@@ -810,16 +815,7 @@ const _sfc_main$10 = create$10({
810
815
  [_sfc_main$1a.name]: _sfc_main$1a
811
816
  },
812
817
  props: __spreadValues({}, popupProps),
813
- emits: [
814
- "click",
815
- "click-close-icon",
816
- "open",
817
- "close",
818
- "opend",
819
- "closed",
820
- "update:visible",
821
- "click-overlay"
822
- ],
818
+ emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
823
819
  setup(props, { emit }) {
824
820
  const state = reactive({
825
821
  zIndex: props.zIndex ? props.zIndex : _zIndex,
@@ -934,10 +930,14 @@ const _sfc_main$10 = create$10({
934
930
  });
935
931
  }
936
932
  });
933
+ const _hoisted_1$K = { key: 1 };
937
934
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
938
935
  const _component_nut_overlay = resolveComponent("nut-overlay");
939
936
  const _component_nut_icon = resolveComponent("nut-icon");
940
- return openBlock(), createBlock(Teleport, { to: _ctx.teleport }, [
937
+ return _ctx.isWrapTeleport ? (openBlock(), createBlock(Teleport, {
938
+ key: 0,
939
+ to: _ctx.teleport
940
+ }, [
941
941
  _ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
942
942
  key: 0,
943
943
  visible: _ctx.visible,
@@ -977,7 +977,47 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
977
977
  ]),
978
978
  _: 3
979
979
  }, 8, ["name", "onAfterEnter", "onAfterLeave"])
980
- ], 8, ["to"]);
980
+ ], 8, ["to"])) : (openBlock(), createElementBlock("view", _hoisted_1$K, [
981
+ _ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
982
+ key: 0,
983
+ visible: _ctx.visible,
984
+ "close-on-click-overlay": _ctx.closeOnClickOverlay,
985
+ class: normalizeClass(_ctx.overlayClass),
986
+ style: normalizeStyle(_ctx.overlayStyle),
987
+ "z-index": _ctx.zIndex,
988
+ "lock-scroll": _ctx.lockScroll,
989
+ duration: _ctx.duration,
990
+ onClick: _ctx.onClickOverlay
991
+ }, null, 8, ["visible", "close-on-click-overlay", "class", "style", "z-index", "lock-scroll", "duration", "onClick"])) : createCommentVNode("", true),
992
+ createVNode(Transition, {
993
+ name: _ctx.transitionName,
994
+ onAfterEnter: _ctx.onOpened,
995
+ onAfterLeave: _ctx.onClosed
996
+ }, {
997
+ default: withCtx(() => [
998
+ withDirectives(createElementVNode("view", {
999
+ class: normalizeClass(_ctx.classes),
1000
+ style: normalizeStyle(_ctx.popStyle),
1001
+ onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1002
+ }, [
1003
+ _ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
1004
+ _ctx.closeable ? (openBlock(), createElementBlock("view", {
1005
+ key: 1,
1006
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
1007
+ class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
1008
+ }, [
1009
+ createVNode(_component_nut_icon, {
1010
+ name: _ctx.closeIcon,
1011
+ size: "12px"
1012
+ }, null, 8, ["name"])
1013
+ ], 2)) : createCommentVNode("", true)
1014
+ ], 6), [
1015
+ [vShow, _ctx.visible]
1016
+ ])
1017
+ ]),
1018
+ _: 3
1019
+ }, 8, ["name", "onAfterEnter", "onAfterLeave"])
1020
+ ]));
981
1021
  }
982
1022
  var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$X]]);
983
1023
  const { componentName: componentName$M, create: create$$ } = createComponent("imagepreview");
@@ -1018,14 +1058,14 @@ const _sfc_main$$ = create$$({
1018
1058
  });
1019
1059
  }
1020
1060
  });
1021
- const _hoisted_1$I = { class: "nut-imagepreview" };
1022
- const _hoisted_2$D = ["src"];
1023
- const _hoisted_3$w = { class: "nut-imagepreview-index" };
1061
+ const _hoisted_1$J = { class: "nut-imagepreview" };
1062
+ const _hoisted_2$E = ["src"];
1063
+ const _hoisted_3$v = { class: "nut-imagepreview-index" };
1024
1064
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
1025
1065
  const _component_nut_swiper_item = resolveComponent("nut-swiper-item");
1026
1066
  const _component_nut_swiper = resolveComponent("nut-swiper");
1027
1067
  const _component_nut_popup = resolveComponent("nut-popup");
1028
- return openBlock(), createElementBlock("view", _hoisted_1$I, [
1068
+ return openBlock(), createElementBlock("view", _hoisted_1$J, [
1029
1069
  createVNode(_component_nut_popup, {
1030
1070
  "pop-class": "custom-pop",
1031
1071
  visible: _ctx.showPop,
@@ -1049,7 +1089,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
1049
1089
  createElementVNode("img", {
1050
1090
  src: item.imgSrc,
1051
1091
  class: "nut-imagepreview-img"
1052
- }, null, 8, _hoisted_2$D)
1092
+ }, null, 8, _hoisted_2$E)
1053
1093
  ]),
1054
1094
  _: 2
1055
1095
  }, 1024);
@@ -1057,7 +1097,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
1057
1097
  ]),
1058
1098
  _: 1
1059
1099
  }, 8, ["onChange"])) : createCommentVNode("", true),
1060
- createElementVNode("view", _hoisted_3$w, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length), 1)
1100
+ createElementVNode("view", _hoisted_3$v, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length), 1)
1061
1101
  ]),
1062
1102
  _: 1
1063
1103
  }, 8, ["visible", "onClick"])
@@ -1268,12 +1308,12 @@ const _sfc_main$_ = create$_({
1268
1308
  });
1269
1309
  }
1270
1310
  });
1271
- const _hoisted_1$H = {
1311
+ const _hoisted_1$I = {
1272
1312
  class: "nut-swipe__left",
1273
1313
  ref: "leftRef"
1274
1314
  };
1275
- const _hoisted_2$C = { class: "nut-swipe__content" };
1276
- const _hoisted_3$v = {
1315
+ const _hoisted_2$D = { class: "nut-swipe__content" };
1316
+ const _hoisted_3$u = {
1277
1317
  class: "nut-swipe__right",
1278
1318
  ref: "rightRef"
1279
1319
  };
@@ -1286,13 +1326,13 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
1286
1326
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
1287
1327
  onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
1288
1328
  }, [
1289
- createElementVNode("view", _hoisted_1$H, [
1329
+ createElementVNode("view", _hoisted_1$I, [
1290
1330
  renderSlot(_ctx.$slots, "left")
1291
1331
  ], 512),
1292
- createElementVNode("view", _hoisted_2$C, [
1332
+ createElementVNode("view", _hoisted_2$D, [
1293
1333
  renderSlot(_ctx.$slots, "default")
1294
1334
  ]),
1295
- createElementVNode("view", _hoisted_3$v, [
1335
+ createElementVNode("view", _hoisted_3$u, [
1296
1336
  renderSlot(_ctx.$slots, "right")
1297
1337
  ], 512)
1298
1338
  ], 38);
@@ -1368,16 +1408,16 @@ const _sfc_main$Z = create$Z({
1368
1408
  };
1369
1409
  }
1370
1410
  });
1371
- const _hoisted_1$G = { class: "nut-actionsheet-panel" };
1372
- const _hoisted_2$B = {
1411
+ const _hoisted_1$H = { class: "nut-actionsheet-panel" };
1412
+ const _hoisted_2$C = {
1373
1413
  key: 0,
1374
1414
  class: "nut-actionsheet-title"
1375
1415
  };
1376
- const _hoisted_3$u = {
1416
+ const _hoisted_3$t = {
1377
1417
  key: 1,
1378
1418
  class: "nut-actionsheet-item desc"
1379
1419
  };
1380
- const _hoisted_4$o = {
1420
+ const _hoisted_4$n = {
1381
1421
  key: 2,
1382
1422
  class: "nut-actionsheet-menu"
1383
1423
  };
@@ -1396,10 +1436,10 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
1396
1436
  onClickOverlay: _ctx.close
1397
1437
  }, {
1398
1438
  default: withCtx(() => [
1399
- createElementVNode("view", _hoisted_1$G, [
1400
- _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$B, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
1401
- _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3$u, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
1402
- _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4$o, [
1439
+ createElementVNode("view", _hoisted_1$H, [
1440
+ _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$C, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
1441
+ _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3$t, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
1442
+ _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4$n, [
1403
1443
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
1404
1444
  return openBlock(), createElementBlock("view", {
1405
1445
  class: normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable }]),
@@ -1807,10 +1847,10 @@ const _sfc_main$W = create$W({
1807
1847
  });
1808
1848
  }
1809
1849
  });
1810
- const _hoisted_1$F = { class: "collapse-title" };
1811
- const _hoisted_2$A = { class: "collapse-title-value" };
1812
- const _hoisted_3$t = ["innerHTML"];
1813
- const _hoisted_4$n = {
1850
+ const _hoisted_1$G = { class: "collapse-title" };
1851
+ const _hoisted_2$B = { class: "collapse-title-value" };
1852
+ const _hoisted_3$s = ["innerHTML"];
1853
+ const _hoisted_4$m = {
1814
1854
  key: 0,
1815
1855
  class: "subTitle"
1816
1856
  };
@@ -1832,9 +1872,9 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
1832
1872
  class: normalizeClass(["collapse-item", { "item-expanded": _ctx.openExpanded }, { "nut-collapse-item-disabled": _ctx.disabled }]),
1833
1873
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleOpen && _ctx.toggleOpen(...args))
1834
1874
  }, [
1835
- createElementVNode("view", _hoisted_1$F, [
1875
+ createElementVNode("view", _hoisted_1$G, [
1836
1876
  createElementVNode("view", null, [
1837
- createElementVNode("view", _hoisted_2$A, [
1877
+ createElementVNode("view", _hoisted_2$B, [
1838
1878
  _ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, {
1839
1879
  key: 0,
1840
1880
  name: _ctx.titleIcon,
@@ -1846,11 +1886,11 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
1846
1886
  key: 2,
1847
1887
  innerHTML: _ctx.title,
1848
1888
  class: "collapse-icon-title"
1849
- }, null, 8, _hoisted_3$t))
1889
+ }, null, 8, _hoisted_3$s))
1850
1890
  ])
1851
1891
  ])
1852
1892
  ]),
1853
- _ctx.$slots.sTitle ? (openBlock(), createElementBlock("view", _hoisted_4$n, [
1893
+ _ctx.$slots.sTitle ? (openBlock(), createElementBlock("view", _hoisted_4$m, [
1854
1894
  renderSlot(_ctx.$slots, "sTitle")
1855
1895
  ])) : (openBlock(), createElementBlock("view", {
1856
1896
  key: 1,
@@ -2198,12 +2238,12 @@ const _sfc_main$U = create$U({
2198
2238
  };
2199
2239
  }
2200
2240
  });
2201
- const _hoisted_1$E = {
2241
+ const _hoisted_1$F = {
2202
2242
  key: 0,
2203
2243
  class: "nut-dialog__header"
2204
2244
  };
2205
- const _hoisted_2$z = ["innerHTML"];
2206
- const _hoisted_3$s = {
2245
+ const _hoisted_2$A = ["innerHTML"];
2246
+ const _hoisted_3$r = {
2207
2247
  key: 1,
2208
2248
  class: "nut-dialog__footer"
2209
2249
  };
@@ -2224,7 +2264,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
2224
2264
  createElementVNode("view", {
2225
2265
  class: normalizeClass(_ctx.classes)
2226
2266
  }, [
2227
- _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$E, [
2267
+ _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$F, [
2228
2268
  _ctx.$slots.header ? renderSlot(_ctx.$slots, "header", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2229
2269
  createTextVNode(toDisplayString(_ctx.title), 1)
2230
2270
  ], 64))
@@ -2236,9 +2276,9 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
2236
2276
  _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("view", {
2237
2277
  key: 1,
2238
2278
  innerHTML: _ctx.content
2239
- }, null, 8, _hoisted_2$z))
2279
+ }, null, 8, _hoisted_2$A))
2240
2280
  ], 4),
2241
- !_ctx.noFooter ? (openBlock(), createElementBlock("view", _hoisted_3$s, [
2281
+ !_ctx.noFooter ? (openBlock(), createElementBlock("view", _hoisted_3$r, [
2242
2282
  _ctx.$slots.footer ? renderSlot(_ctx.$slots, "footer", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2243
2283
  !_ctx.noCancelBtn ? (openBlock(), createBlock(_component_nut_button, {
2244
2284
  key: 0,
@@ -2534,10 +2574,10 @@ const _sfc_main$T = create$T({
2534
2574
  });
2535
2575
  }
2536
2576
  });
2537
- const _hoisted_1$D = { class: "top-box" };
2538
- const _hoisted_2$y = { class: "top-text" };
2539
- const _hoisted_3$r = { class: "nut-infinite-container" };
2540
- const _hoisted_4$m = { class: "nut-infinite-bottom" };
2577
+ const _hoisted_1$E = { class: "top-box" };
2578
+ const _hoisted_2$z = { class: "top-text" };
2579
+ const _hoisted_3$q = { class: "nut-infinite-container" };
2580
+ const _hoisted_4$l = { class: "nut-infinite-bottom" };
2541
2581
  const _hoisted_5$e = {
2542
2582
  key: 0,
2543
2583
  class: "bottom-box"
@@ -2561,18 +2601,18 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
2561
2601
  ref: "refreshTop",
2562
2602
  style: normalizeStyle(_ctx.getStyle)
2563
2603
  }, [
2564
- createElementVNode("view", _hoisted_1$D, [
2604
+ createElementVNode("view", _hoisted_1$E, [
2565
2605
  createVNode(_component_nut_icon, {
2566
2606
  class: "top-img",
2567
2607
  name: _ctx.pullIcon
2568
2608
  }, null, 8, ["name"]),
2569
- createElementVNode("view", _hoisted_2$y, toDisplayString(_ctx.pullTxt), 1)
2609
+ createElementVNode("view", _hoisted_2$z, toDisplayString(_ctx.pullTxt), 1)
2570
2610
  ])
2571
2611
  ], 4),
2572
- createElementVNode("view", _hoisted_3$r, [
2612
+ createElementVNode("view", _hoisted_3$q, [
2573
2613
  renderSlot(_ctx.$slots, "default")
2574
2614
  ]),
2575
- createElementVNode("view", _hoisted_4$m, [
2615
+ createElementVNode("view", _hoisted_4$l, [
2576
2616
  _ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_5$e, [
2577
2617
  createVNode(_component_nut_icon, {
2578
2618
  class: "bottom-img",
@@ -3011,13 +3051,13 @@ const _sfc_main$R = create$R({
3011
3051
  });
3012
3052
  }
3013
3053
  });
3014
- const _hoisted_1$C = { class: "nut-range-container" };
3015
- const _hoisted_2$x = {
3054
+ const _hoisted_1$D = { class: "nut-range-container" };
3055
+ const _hoisted_2$y = {
3016
3056
  key: 0,
3017
3057
  class: "min"
3018
3058
  };
3019
- const _hoisted_3$q = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
3020
- const _hoisted_4$l = {
3059
+ const _hoisted_3$p = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
3060
+ const _hoisted_4$k = {
3021
3061
  key: 0,
3022
3062
  class: "number"
3023
3063
  };
@@ -3031,8 +3071,8 @@ const _hoisted_7$7 = {
3031
3071
  class: "max"
3032
3072
  };
3033
3073
  function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
3034
- return openBlock(), createElementBlock("view", _hoisted_1$C, [
3035
- !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_2$x, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
3074
+ return openBlock(), createElementBlock("view", _hoisted_1$D, [
3075
+ !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_2$y, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
3036
3076
  createElementVNode("view", {
3037
3077
  ref: "root",
3038
3078
  style: normalizeStyle(_ctx.wrapperStyle),
@@ -3072,9 +3112,9 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
3072
3112
  class: "nut-range-button",
3073
3113
  style: normalizeStyle(_ctx.buttonStyle)
3074
3114
  }, [
3075
- !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$l, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
3115
+ !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$k, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
3076
3116
  ], 4))
3077
- ], 42, _hoisted_3$q);
3117
+ ], 42, _hoisted_3$p);
3078
3118
  }), 64)) : (openBlock(), createElementBlock("view", {
3079
3119
  key: 1,
3080
3120
  role: "slider",
@@ -3378,13 +3418,13 @@ const _sfc_main$Q = create$Q({
3378
3418
  });
3379
3419
  }
3380
3420
  });
3381
- const _hoisted_1$B = {
3421
+ const _hoisted_1$C = {
3382
3422
  class: "nut-video",
3383
3423
  ref: "videocon"
3384
3424
  };
3385
- const _hoisted_2$w = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
3386
- const _hoisted_3$p = ["src", "type"];
3387
- const _hoisted_4$k = { class: "current-time" };
3425
+ const _hoisted_2$x = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
3426
+ const _hoisted_3$o = ["src", "type"];
3427
+ const _hoisted_4$j = { class: "current-time" };
3388
3428
  const _hoisted_5$c = { class: "progress-container" };
3389
3429
  const _hoisted_6$9 = {
3390
3430
  class: "progress",
@@ -3402,7 +3442,7 @@ const _hoisted_10$4 = { class: "duration-time" };
3402
3442
  const _hoisted_11$4 = { class: "nut-video-error" };
3403
3443
  const _hoisted_12$4 = /* @__PURE__ */ createElementVNode("p", { class: "lose" }, "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25", -1);
3404
3444
  function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
3405
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
3445
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
3406
3446
  createElementVNode("video", {
3407
3447
  ref: "root",
3408
3448
  class: "nut-video-player",
@@ -3417,8 +3457,8 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
3417
3457
  createElementVNode("source", {
3418
3458
  src: _ctx.source.src,
3419
3459
  type: _ctx.source.type
3420
- }, null, 8, _hoisted_3$p)
3421
- ], 40, _hoisted_2$w),
3460
+ }, null, 8, _hoisted_3$o)
3461
+ ], 40, _hoisted_2$x),
3422
3462
  _ctx.showToolbox && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", {
3423
3463
  key: 0,
3424
3464
  class: "playing-mask",
@@ -3440,7 +3480,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
3440
3480
  class: "control-play-btn",
3441
3481
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.play && _ctx.play(...args))
3442
3482
  }),
3443
- createElementVNode("div", _hoisted_4$k, toDisplayString(_ctx.videoSet.displayTime), 1),
3483
+ createElementVNode("div", _hoisted_4$j, toDisplayString(_ctx.videoSet.displayTime), 1),
3444
3484
  createElementVNode("div", _hoisted_5$c, [
3445
3485
  createElementVNode("div", _hoisted_6$9, [
3446
3486
  createElementVNode("div", {
@@ -3581,13 +3621,13 @@ const _sfc_main$O = create$O({
3581
3621
  });
3582
3622
  }
3583
3623
  });
3584
- const _hoisted_1$A = { class: "nut-step-head" };
3585
- const _hoisted_2$v = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
3586
- const _hoisted_3$o = {
3624
+ const _hoisted_1$B = { class: "nut-step-head" };
3625
+ const _hoisted_2$w = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
3626
+ const _hoisted_3$n = {
3587
3627
  key: 2,
3588
3628
  class: "nut-step-inner"
3589
3629
  };
3590
- const _hoisted_4$j = { class: "nut-step-main" };
3630
+ const _hoisted_4$i = { class: "nut-step-main" };
3591
3631
  const _hoisted_5$b = { class: "nut-step-title" };
3592
3632
  const _hoisted_6$8 = ["innerHTML"];
3593
3633
  function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
@@ -3595,8 +3635,8 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
3595
3635
  return openBlock(), createElementBlock("view", {
3596
3636
  class: normalizeClass(_ctx.classes)
3597
3637
  }, [
3598
- createElementVNode("view", _hoisted_1$A, [
3599
- _hoisted_2$v,
3638
+ createElementVNode("view", _hoisted_1$B, [
3639
+ _hoisted_2$w,
3600
3640
  createElementVNode("view", {
3601
3641
  class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
3602
3642
  }, [
@@ -3606,10 +3646,10 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
3606
3646
  color: _ctx.iconColor,
3607
3647
  name: _ctx.icon,
3608
3648
  size: _ctx.size
3609
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$o, toDisplayString(_ctx.index), 1))
3649
+ }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$n, toDisplayString(_ctx.index), 1))
3610
3650
  ], 2)
3611
3651
  ]),
3612
- createElementVNode("view", _hoisted_4$j, [
3652
+ createElementVNode("view", _hoisted_4$i, [
3613
3653
  createElementVNode("view", _hoisted_5$b, toDisplayString(_ctx.title), 1),
3614
3654
  _ctx.content ? (openBlock(), createElementBlock("view", {
3615
3655
  key: 0,
@@ -4153,16 +4193,16 @@ const _sfc_main$L = create$L({
4153
4193
  };
4154
4194
  }
4155
4195
  });
4156
- const _hoisted_1$z = { class: "switch-button" };
4157
- const _hoisted_2$u = { class: "close-line" };
4196
+ const _hoisted_1$A = { class: "switch-button" };
4197
+ const _hoisted_2$v = { class: "close-line" };
4158
4198
  function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
4159
4199
  return openBlock(), createElementBlock("view", {
4160
4200
  class: normalizeClass(_ctx.classes),
4161
4201
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
4162
4202
  style: normalizeStyle(_ctx.style)
4163
4203
  }, [
4164
- createElementVNode("view", _hoisted_1$z, [
4165
- withDirectives(createElementVNode("view", _hoisted_2$u, null, 512), [
4204
+ createElementVNode("view", _hoisted_1$A, [
4205
+ withDirectives(createElementVNode("view", _hoisted_2$v, null, 512), [
4166
4206
  [vShow, !_ctx.modelValue]
4167
4207
  ]),
4168
4208
  _ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -4302,11 +4342,11 @@ const _sfc_main$K = create$K({
4302
4342
  };
4303
4343
  }
4304
4344
  });
4305
- const _hoisted_1$y = {
4345
+ const _hoisted_1$z = {
4306
4346
  key: 0,
4307
4347
  class: "nut-toast-icon-wrapper"
4308
4348
  };
4309
- const _hoisted_2$t = ["innerHTML"];
4349
+ const _hoisted_2$u = ["innerHTML"];
4310
4350
  function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
4311
4351
  const _component_nut_icon = resolveComponent("nut-icon");
4312
4352
  return openBlock(), createBlock(Transition, {
@@ -4329,7 +4369,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
4329
4369
  "background-color": _ctx.bgColor
4330
4370
  })
4331
4371
  }, [
4332
- _ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1$y, [
4372
+ _ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1$z, [
4333
4373
  createVNode(_component_nut_icon, {
4334
4374
  size: "20",
4335
4375
  color: "#ffffff",
@@ -4339,7 +4379,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
4339
4379
  createElementVNode("view", {
4340
4380
  class: "nut-toast-text",
4341
4381
  innerHTML: _ctx.msg
4342
- }, null, 8, _hoisted_2$t)
4382
+ }, null, 8, _hoisted_2$u)
4343
4383
  ], 4)
4344
4384
  ], 6), [
4345
4385
  [vShow, _ctx.state.mounted]
@@ -4541,10 +4581,10 @@ const _sfc_main$J = create$J({
4541
4581
  };
4542
4582
  }
4543
4583
  });
4544
- const _hoisted_1$x = { class: "nut-progress" };
4584
+ const _hoisted_1$y = { class: "nut-progress" };
4545
4585
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
4546
4586
  const _component_nut_icon = resolveComponent("nut-icon");
4547
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
4587
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
4548
4588
  createElementVNode("div", {
4549
4589
  class: normalizeClass(["nut-progress-outer", [
4550
4590
  _ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "",
@@ -4643,10 +4683,10 @@ const _sfc_main$I = create$I({
4643
4683
  };
4644
4684
  }
4645
4685
  });
4646
- const _hoisted_1$w = ["height", "width"];
4647
- const _hoisted_2$s = ["r", "cx", "cy", "stroke", "stroke-width"];
4648
- const _hoisted_3$n = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
4649
- const _hoisted_4$i = { class: "nut-circleprogress-content" };
4686
+ const _hoisted_1$x = ["height", "width"];
4687
+ const _hoisted_2$t = ["r", "cx", "cy", "stroke", "stroke-width"];
4688
+ const _hoisted_3$m = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
4689
+ const _hoisted_4$h = { class: "nut-circleprogress-content" };
4650
4690
  function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
4651
4691
  return openBlock(), createElementBlock("div", {
4652
4692
  class: normalizeClass(_ctx.classes),
@@ -4664,7 +4704,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
4664
4704
  stroke: _ctx.option.backColor,
4665
4705
  "stroke-width": _ctx.option.strokeOutWidth,
4666
4706
  fill: "none"
4667
- }, null, 8, _hoisted_2$s),
4707
+ }, null, 8, _hoisted_2$t),
4668
4708
  createElementVNode("circle", {
4669
4709
  r: _ctx.option.radius,
4670
4710
  cx: _ctx.option.cx,
@@ -4676,9 +4716,9 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
4676
4716
  transform: _ctx.option.startPosition,
4677
4717
  "stroke-linecap": "round",
4678
4718
  style: { "transition": "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s" }
4679
- }, null, 8, _hoisted_3$n)
4680
- ], 8, _hoisted_1$w)),
4681
- createElementVNode("div", _hoisted_4$i, [
4719
+ }, null, 8, _hoisted_3$m)
4720
+ ], 8, _hoisted_1$x)),
4721
+ createElementVNode("div", _hoisted_4$h, [
4682
4722
  !_ctx.isAuto ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
4683
4723
  createTextVNode(toDisplayString(_ctx.progress) + "%", 1)
4684
4724
  ]) : renderSlot(_ctx.$slots, "default", { key: 1 })
@@ -4943,11 +4983,11 @@ const _sfc_main$H = create$H({
4943
4983
  });
4944
4984
  }
4945
4985
  });
4946
- const _hoisted_1$v = {
4986
+ const _hoisted_1$w = {
4947
4987
  ref: "wrap",
4948
4988
  class: "wrap"
4949
4989
  };
4950
- const _hoisted_2$r = ["onClick"];
4990
+ const _hoisted_2$s = ["onClick"];
4951
4991
  function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
4952
4992
  const _component_nut_icon = resolveComponent("nut-icon");
4953
4993
  const _component_ScrollItem = resolveComponent("ScrollItem");
@@ -4972,7 +5012,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
4972
5012
  color: _ctx.color
4973
5013
  }, null, 8, ["color"])) : createCommentVNode("", true)
4974
5014
  ], 4)) : createCommentVNode("", true),
4975
- createElementVNode("view", _hoisted_1$v, [
5015
+ createElementVNode("view", _hoisted_1$w, [
4976
5016
  createElementVNode("view", {
4977
5017
  ref: "content",
4978
5018
  class: normalizeClass(["content", [
@@ -5029,7 +5069,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
5029
5069
  key: index,
5030
5070
  style: normalizeStyle({ height: _ctx.height }),
5031
5071
  onClick: ($event) => _ctx.go(item)
5032
- }, toDisplayString(item), 13, _hoisted_2$r);
5072
+ }, toDisplayString(item), 13, _hoisted_2$s);
5033
5073
  }), 128))
5034
5074
  ], 4)),
5035
5075
  createElementVNode("view", {
@@ -5139,16 +5179,16 @@ const _sfc_main$G = create$G({
5139
5179
  });
5140
5180
  }
5141
5181
  });
5142
- const _hoisted_1$u = {
5182
+ const _hoisted_1$v = {
5143
5183
  key: 0,
5144
5184
  class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
5145
5185
  };
5146
- const _hoisted_2$q = {
5186
+ const _hoisted_2$r = {
5147
5187
  key: 0,
5148
5188
  class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
5149
5189
  };
5150
- const _hoisted_3$m = { class: "nut-searchbar__input-inner" };
5151
- const _hoisted_4$h = ["type", "maxlength", "placeholder", "value"];
5190
+ const _hoisted_3$l = { class: "nut-searchbar__input-inner" };
5191
+ const _hoisted_4$g = ["type", "maxlength", "placeholder", "value"];
5152
5192
  const _hoisted_5$a = {
5153
5193
  key: 1,
5154
5194
  class: "nut-searchbar__search-icon nut-searchbar__iptright-sarch-icon"
@@ -5163,17 +5203,17 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
5163
5203
  class: "nut-searchbar",
5164
5204
  style: normalizeStyle(_ctx.searchbarStyle)
5165
5205
  }, [
5166
- _ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1$u, [
5206
+ _ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1$v, [
5167
5207
  renderSlot(_ctx.$slots, "leftout")
5168
5208
  ])) : createCommentVNode("", true),
5169
5209
  createElementVNode("view", {
5170
5210
  class: "nut-searchbar__search-input",
5171
5211
  style: normalizeStyle(_ctx.inputSearchbarStyle)
5172
5212
  }, [
5173
- _ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2$q, [
5213
+ _ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2$r, [
5174
5214
  renderSlot(_ctx.$slots, "leftin")
5175
5215
  ])) : createCommentVNode("", true),
5176
- createElementVNode("view", _hoisted_3$m, [
5216
+ createElementVNode("view", _hoisted_3$l, [
5177
5217
  createElementVNode("form", {
5178
5218
  action: "#",
5179
5219
  onSubmit: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
@@ -5187,7 +5227,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
5187
5227
  onInput: _cache[0] || (_cache[0] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
5188
5228
  onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
5189
5229
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
5190
- }, null, 40, _hoisted_4$h)
5230
+ }, null, 40, _hoisted_4$g)
5191
5231
  ], 32),
5192
5232
  _ctx.clearable ? withDirectives((openBlock(), createElementBlock("view", {
5193
5233
  key: 0,
@@ -5294,15 +5334,15 @@ const _sfc_main$F = create$F({
5294
5334
  };
5295
5335
  }
5296
5336
  });
5297
- const _hoisted_1$t = { class: "nut-navbar__left" };
5298
- const _hoisted_2$p = { class: "tab-title" };
5299
- const _hoisted_3$l = ["onClick"];
5337
+ const _hoisted_1$u = { class: "nut-navbar__left" };
5338
+ const _hoisted_2$q = { class: "tab-title" };
5339
+ const _hoisted_3$k = ["onClick"];
5300
5340
  function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
5301
5341
  const _component_nut_icon = resolveComponent("nut-icon");
5302
5342
  return openBlock(), createElementBlock("view", {
5303
5343
  class: normalizeClass(_ctx.classes)
5304
5344
  }, [
5305
- createElementVNode("view", _hoisted_1$t, [
5345
+ createElementVNode("view", _hoisted_1$u, [
5306
5346
  _ctx.leftShow ? (openBlock(), createBlock(_component_nut_icon, {
5307
5347
  key: 0,
5308
5348
  color: "#979797",
@@ -5324,7 +5364,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
5324
5364
  name: _ctx.titIcon,
5325
5365
  onClick: _ctx.handleCenterIcon
5326
5366
  }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
5327
- createElementVNode("view", _hoisted_2$p, [
5367
+ createElementVNode("view", _hoisted_2$q, [
5328
5368
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (item, index) => {
5329
5369
  return openBlock(), createElementBlock("view", {
5330
5370
  class: normalizeClass([
@@ -5333,7 +5373,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
5333
5373
  ]),
5334
5374
  onClick: ($event) => _ctx.switchTitle(item.id, item.name),
5335
5375
  key: item.id
5336
- }, toDisplayString(item.name), 11, _hoisted_3$l);
5376
+ }, toDisplayString(item.name), 11, _hoisted_3$k);
5337
5377
  }), 128))
5338
5378
  ])
5339
5379
  ], 2)) : createCommentVNode("", true),
@@ -5427,10 +5467,10 @@ const _sfc_main$E = create$E({
5427
5467
  return { classes, updateValue, selected };
5428
5468
  }
5429
5469
  });
5430
- const _hoisted_1$s = { class: "nut-fixednav__list" };
5431
- const _hoisted_2$o = ["onClick"];
5432
- const _hoisted_3$k = ["src"];
5433
- const _hoisted_4$g = { class: "span" };
5470
+ const _hoisted_1$t = { class: "nut-fixednav__list" };
5471
+ const _hoisted_2$p = ["onClick"];
5472
+ const _hoisted_3$j = ["src"];
5473
+ const _hoisted_4$f = { class: "span" };
5434
5474
  const _hoisted_5$9 = {
5435
5475
  key: 0,
5436
5476
  class: "b"
@@ -5450,7 +5490,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
5450
5490
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
5451
5491
  }, null, 8, ["visible"])) : createCommentVNode("", true),
5452
5492
  renderSlot(_ctx.$slots, "list", {}, () => [
5453
- createElementVNode("view", _hoisted_1$s, [
5493
+ createElementVNode("view", _hoisted_1$t, [
5454
5494
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index) => {
5455
5495
  return openBlock(), createElementBlock("view", {
5456
5496
  class: "nut-fixednav__list-item",
@@ -5459,10 +5499,10 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
5459
5499
  }, [
5460
5500
  createElementVNode("img", {
5461
5501
  src: item.icon
5462
- }, null, 8, _hoisted_3$k),
5463
- createElementVNode("view", _hoisted_4$g, toDisplayString(item.text), 1),
5502
+ }, null, 8, _hoisted_3$j),
5503
+ createElementVNode("view", _hoisted_4$f, toDisplayString(item.text), 1),
5464
5504
  item.num ? (openBlock(), createElementBlock("view", _hoisted_5$9, toDisplayString(item.num), 1)) : createCommentVNode("", true)
5465
- ], 8, _hoisted_2$o);
5505
+ ], 8, _hoisted_2$p);
5466
5506
  }), 128))
5467
5507
  ])
5468
5508
  ]),
@@ -5481,218 +5521,270 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
5481
5521
  ], 6);
5482
5522
  }
5483
5523
  var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$A]]);
5484
- var index_vue_vue_type_style_index_0_lang = "";
5485
5524
  const { componentName: componentName$t, create: create$D } = createComponent("menu");
5486
5525
  const _sfc_main$D = create$D({
5487
- components: {
5488
- [_sfc_main$1a.name]: _sfc_main$1a
5489
- },
5490
5526
  props: {
5491
- col: {
5492
- type: [String, Number],
5493
- default: 1
5494
- },
5495
5527
  activeColor: {
5496
5528
  type: String,
5497
- default: "#f00"
5529
+ default: "#FA2C19"
5530
+ },
5531
+ overlay: {
5532
+ type: Boolean,
5533
+ default: true
5534
+ },
5535
+ duration: {
5536
+ type: [Number, String],
5537
+ default: 0
5498
5538
  }
5499
5539
  },
5500
- emits: ["choose"],
5501
- setup(props, { slots, emit }) {
5502
- const menuList = reactive([]);
5503
- let activeTitle = ref("");
5504
- let showMask = ref(false);
5505
- let styleObj = reactive({
5506
- flexBasis: 100 / Number(props.col) + "%"
5507
- });
5508
- let nutMenuIndex = ref("auto");
5509
- let hasOptions = ref(true);
5510
- let isShowCustomer = ref(false);
5511
- if (slots.default) {
5512
- for (let i = 0; i < slots.default().length; i++) {
5513
- if (slots.default()[i].type["name"] === "nut-menu-item") {
5514
- let item = {
5515
- title: slots.default()[i].props["title"],
5516
- disabled: !!slots.default()[i].props["disabled"]
5517
- };
5518
- if (slots.default()[i].props["options"]) {
5519
- item["options"] = slots.default()[i].props["options"];
5520
- } else {
5521
- hasOptions.value = false;
5540
+ setup(props, { emit, slots }) {
5541
+ const barRef = ref();
5542
+ const offset = ref(0);
5543
+ const useChildren = () => {
5544
+ const publicChildren = reactive([]);
5545
+ const internalChildren = reactive([]);
5546
+ const linkChildren2 = (value) => {
5547
+ const link = (child) => {
5548
+ if (child.proxy) {
5549
+ internalChildren.push(child);
5550
+ publicChildren.push(child.proxy);
5522
5551
  }
5523
- menuList.push(item);
5524
- }
5525
- }
5526
- }
5527
- const handleClickTitle = (title, index) => {
5528
- if (!hasOptions.value) {
5529
- if (activeTitle.value) {
5530
- activeTitle.value = "";
5531
- isShowCustomer.value = false;
5532
- showMask.value = false;
5533
- nutMenuIndex.value = "auto";
5534
- } else {
5535
- activeTitle.value = title;
5536
- isShowCustomer.value = true;
5537
- showMask.value = true;
5538
- nutMenuIndex.value = 2001;
5539
- }
5540
- return;
5541
- }
5542
- if (menuList.length > 1) {
5543
- if (activeTitle.value === title) {
5544
- activeTitle.value = "";
5545
- nutMenuIndex.value = "auto";
5546
- showMask.value = false;
5547
- } else {
5548
- activeTitle.value = title;
5549
- nutMenuIndex.value = 2001;
5550
- showMask.value = true;
5551
- }
5552
- } else {
5553
- if (activeTitle.value) {
5554
- activeTitle.value = "";
5555
- nutMenuIndex.value = "auto";
5556
- showMask.value = false;
5557
- } else {
5558
- activeTitle.value = title;
5559
- nutMenuIndex.value = 2001;
5560
- showMask.value = true;
5561
- }
5562
- }
5563
- };
5564
- const handleClickOption = (text, index, value) => {
5565
- menuList[index].title = text;
5566
- activeTitle.value = "";
5567
- showMask.value = false;
5568
- nutMenuIndex.value = "auto";
5569
- emit("choose", text, value);
5552
+ };
5553
+ provide("menuParent", Object.assign({
5554
+ link,
5555
+ children: publicChildren,
5556
+ internalChildren
5557
+ }, value));
5558
+ };
5559
+ return {
5560
+ children: publicChildren,
5561
+ linkChildren: linkChildren2
5562
+ };
5570
5563
  };
5564
+ const { children, linkChildren } = useChildren();
5565
+ const opened = computed(() => children.some((item) => item.state.showWrapper));
5571
5566
  const classes = computed(() => {
5572
5567
  const prefixCls = componentName$t;
5573
5568
  return {
5574
5569
  [prefixCls]: true
5575
5570
  };
5576
5571
  });
5577
- const handleClose = () => {
5578
- activeTitle.value = "";
5579
- nutMenuIndex.value = "auto";
5580
- if (isShowCustomer.value) {
5581
- isShowCustomer.value = false;
5572
+ const updateOffset = () => {
5573
+ if (barRef.value) {
5574
+ const rect = useRect(barRef);
5575
+ offset.value = rect.bottom;
5582
5576
  }
5583
5577
  };
5578
+ linkChildren({ props, offset });
5579
+ const toggleItem = (active) => {
5580
+ children.forEach((item, index) => {
5581
+ if (index === active) {
5582
+ updateOffset();
5583
+ item.toggle();
5584
+ } else if (item.state.showPopup) {
5585
+ item.toggle(false, { immediate: true });
5586
+ }
5587
+ });
5588
+ };
5584
5589
  return {
5585
- menuList,
5586
- activeTitle,
5590
+ toggleItem,
5591
+ children,
5592
+ opened,
5587
5593
  classes,
5588
- showMask,
5589
- styleObj,
5590
- nutMenuIndex,
5591
- hasOptions,
5592
- isShowCustomer,
5593
- handleClickTitle,
5594
- handleClickOption,
5595
- handleClose
5594
+ barRef
5596
5595
  };
5597
5596
  }
5598
5597
  });
5599
- const _hoisted_1$r = { class: "title-list" };
5600
- const _hoisted_2$n = ["onClick"];
5601
- const _hoisted_3$j = ["onClick"];
5602
- const _hoisted_4$f = { class: "customer-item" };
5598
+ const _hoisted_1$s = ["onClick"];
5599
+ const _hoisted_2$o = { class: "nut-menu__title-text" };
5603
5600
  function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
5604
- const _component_nut_popup = resolveComponent("nut-popup");
5605
5601
  const _component_nut_icon = resolveComponent("nut-icon");
5606
- return openBlock(), createElementBlock("view", null, [
5607
- createVNode(_component_nut_popup, mergeProps(_ctx.$attrs, {
5608
- visible: _ctx.showMask,
5609
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showMask = $event),
5610
- onClose: _ctx.handleClose
5611
- }), null, 16, ["visible", "onClose"]),
5612
- createElementVNode("div", {
5613
- class: normalizeClass(_ctx.classes),
5614
- style: normalizeStyle({ "z-index": _ctx.nutMenuIndex })
5602
+ return openBlock(), createElementBlock("view", {
5603
+ class: normalizeClass(_ctx.classes)
5604
+ }, [
5605
+ createElementVNode("view", {
5606
+ class: normalizeClass(["nut-menu__bar", { opened: _ctx.opened }]),
5607
+ ref: "barRef"
5615
5608
  }, [
5616
- createElementVNode("div", _hoisted_1$r, [
5617
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuList, (menu, index) => {
5618
- return openBlock(), createElementBlock("div", {
5619
- key: index,
5620
- class: normalizeClass(["title", {
5621
- "is-active": _ctx.activeTitle === menu.title,
5622
- disabled: menu.disabled
5623
- }]),
5624
- onClick: ($event) => !menu.disabled && _ctx.handleClickTitle(menu.title, index)
5625
- }, [
5626
- createTextVNode(toDisplayString(menu.title) + " ", 1),
5627
- _ctx.activeTitle === menu.title ? (openBlock(), createBlock(_component_nut_icon, {
5628
- key: 0,
5629
- size: "10",
5630
- color: "#333",
5631
- name: "arrow-up"
5632
- })) : (openBlock(), createBlock(_component_nut_icon, {
5633
- key: 1,
5634
- size: "10",
5635
- color: "#999",
5636
- name: "arrow-down"
5637
- }))
5638
- ], 10, _hoisted_2$n);
5639
- }), 128))
5640
- ]),
5641
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuList, (menu, index) => {
5642
- return withDirectives((openBlock(), createElementBlock("div", {
5609
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item, index) => {
5610
+ return openBlock(), createElementBlock("view", {
5643
5611
  key: index,
5644
- class: "option-list"
5612
+ class: normalizeClass(["nut-menu__item", { disabled: item.disabled }]),
5613
+ onClick: ($event) => !item.disabled && _ctx.toggleItem(index),
5614
+ style: normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
5645
5615
  }, [
5646
- createElementVNode("ul", null, [
5647
- (openBlock(true), createElementBlock(Fragment, null, renderList(menu.options, (option, index2) => {
5648
- return openBlock(), createElementBlock("li", {
5649
- key: index2,
5650
- onClick: ($event) => _ctx.handleClickOption(option.text, index, option.value),
5651
- style: normalizeStyle(_ctx.styleObj)
5652
- }, [
5653
- menu.title === option.text ? (openBlock(), createBlock(_component_nut_icon, {
5654
- key: 0,
5655
- size: "20",
5656
- color: _ctx.activeColor,
5657
- name: "Check"
5658
- }, null, 8, ["color"])) : createCommentVNode("", true),
5659
- createTextVNode(toDisplayString(option.text), 1)
5660
- ], 12, _hoisted_3$j);
5661
- }), 128))
5662
- ])
5663
- ], 512)), [
5664
- [vShow, _ctx.hasOptions && _ctx.activeTitle === menu.title]
5665
- ]);
5666
- }), 128)),
5667
- withDirectives(createElementVNode("view", _hoisted_4$f, [
5668
- renderSlot(_ctx.$slots, "default")
5669
- ], 512), [
5670
- [vShow, !_ctx.hasOptions && _ctx.isShowCustomer]
5671
- ])
5672
- ], 6)
5673
- ]);
5616
+ createElementVNode("view", {
5617
+ class: normalizeClass(["nut-menu__title", { active: item.state.showPopup }])
5618
+ }, [
5619
+ createElementVNode("view", _hoisted_2$o, toDisplayString(item.renderTitle()), 1),
5620
+ createVNode(_component_nut_icon, {
5621
+ name: item.titleIcon,
5622
+ size: "10",
5623
+ class: "nut-menu__title-icon"
5624
+ }, null, 8, ["name"])
5625
+ ], 2)
5626
+ ], 14, _hoisted_1$s);
5627
+ }), 128))
5628
+ ], 2),
5629
+ renderSlot(_ctx.$slots, "default")
5630
+ ], 2);
5674
5631
  }
5675
5632
  var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$z]]);
5676
- var index_vue_vue_type_style_index_0_scoped_true_lang = "";
5677
- const { create: create$C, componentName: componentName$s } = createComponent("menu-item");
5633
+ const { componentName: componentName$s, create: create$C } = createComponent("menu-item");
5678
5634
  const _sfc_main$C = create$C({
5679
- setup() {
5680
- let pro = getCurrentInstance().proxy;
5681
- pro.toggle = () => {
5682
- pro.$parent.activeTitle = "";
5683
- pro.$parent.isShowCustomer = false;
5684
- pro.$parent.showMask = false;
5685
- pro.$parent.nutMenuIndex = "auto";
5686
- };
5687
- return {};
5635
+ props: {
5636
+ title: String,
5637
+ options: {
5638
+ type: Array,
5639
+ default: []
5640
+ },
5641
+ disabled: {
5642
+ type: Boolean,
5643
+ default: false
5644
+ },
5645
+ modelValue: null,
5646
+ cols: {
5647
+ type: Number,
5648
+ default: 1
5649
+ },
5650
+ titleIcon: {
5651
+ type: String,
5652
+ default: "down-arrow"
5653
+ }
5654
+ },
5655
+ components: {
5656
+ [_sfc_main$1a.name]: _sfc_main$1a,
5657
+ [Popup.name]: Popup
5658
+ },
5659
+ emits: ["update:modelValue", "change"],
5660
+ setup(props, { emit, slots }) {
5661
+ const state = reactive({
5662
+ showPopup: false,
5663
+ transition: true,
5664
+ showWrapper: false,
5665
+ isShowPlaceholderElement: false
5666
+ });
5667
+ const useParent = () => {
5668
+ const parent2 = inject("menuParent", null);
5669
+ if (parent2) {
5670
+ const instance = getCurrentInstance();
5671
+ const { link } = parent2;
5672
+ link(instance);
5673
+ return {
5674
+ parent: parent2
5675
+ };
5676
+ }
5677
+ };
5678
+ const { parent } = useParent();
5679
+ const classes = computed(() => {
5680
+ const prefixCls = componentName$s;
5681
+ return {
5682
+ [prefixCls]: true
5683
+ };
5684
+ });
5685
+ const toggle = (show = !state.showPopup, options = {}) => {
5686
+ if (show === state.showPopup) {
5687
+ return;
5688
+ }
5689
+ state.showPopup = show;
5690
+ state.isShowPlaceholderElement = show;
5691
+ if (show) {
5692
+ state.showWrapper = true;
5693
+ }
5694
+ };
5695
+ const renderTitle = () => {
5696
+ var _a;
5697
+ if (props.title) {
5698
+ return props.title;
5699
+ }
5700
+ const match = (_a = props.options) == null ? void 0 : _a.find((option) => option.value === props.modelValue);
5701
+ return match ? match.text : "";
5702
+ };
5703
+ const onClick = (option) => {
5704
+ state.showPopup = false;
5705
+ state.isShowPlaceholderElement = false;
5706
+ if (option.value !== props.modelValue) {
5707
+ emit("update:modelValue", option.value);
5708
+ emit("change", option.value);
5709
+ }
5710
+ };
5711
+ const handleClose = () => {
5712
+ state.showWrapper = false;
5713
+ state.isShowPlaceholderElement = false;
5714
+ };
5715
+ const handleClickOutside = () => {
5716
+ state.showPopup = false;
5717
+ };
5718
+ return {
5719
+ classes,
5720
+ renderTitle,
5721
+ state,
5722
+ parent,
5723
+ toggle,
5724
+ onClick,
5725
+ handleClose,
5726
+ handleClickOutside
5727
+ };
5688
5728
  }
5689
5729
  });
5730
+ const _hoisted_1$r = { class: "nut-menu-item__content" };
5731
+ const _hoisted_2$n = ["onClick"];
5690
5732
  function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
5691
- return openBlock(), createElementBlock("div", null, [
5692
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
5733
+ const _component_nut_icon = resolveComponent("nut-icon");
5734
+ const _component_nut_popup = resolveComponent("nut-popup");
5735
+ return withDirectives((openBlock(), createElementBlock("view", {
5736
+ class: normalizeClass(_ctx.classes)
5737
+ }, [
5738
+ withDirectives(createElementVNode("div", {
5739
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickOutside && _ctx.handleClickOutside(...args)),
5740
+ class: "placeholder-element",
5741
+ style: normalizeStyle({ height: _ctx.parent.offset.value + "px" })
5742
+ }, null, 4), [
5743
+ [vShow, _ctx.state.isShowPlaceholderElement]
5744
+ ]),
5745
+ createVNode(_component_nut_popup, mergeProps({
5746
+ style: { top: _ctx.parent.offset.value + "px" },
5747
+ overlayStyle: { top: _ctx.parent.offset.value + "px" }
5748
+ }, _ctx.$attrs, {
5749
+ visible: _ctx.state.showPopup,
5750
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.state.showPopup = $event),
5751
+ position: "top",
5752
+ duration: _ctx.parent.props.duration,
5753
+ "pop-class": "nut-menu__pop",
5754
+ overlayClass: "nut-menu__overlay",
5755
+ overlay: _ctx.parent.props.overlay,
5756
+ onClosed: _ctx.handleClose,
5757
+ isWrapTeleport: false
5758
+ }), {
5759
+ default: withCtx(() => [
5760
+ createElementVNode("view", _hoisted_1$r, [
5761
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
5762
+ return openBlock(), createElementBlock("view", {
5763
+ key: index,
5764
+ class: normalizeClass(["nut-menu-item__option", { active: option.value === _ctx.modelValue }]),
5765
+ style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
5766
+ onClick: ($event) => _ctx.onClick(option)
5767
+ }, [
5768
+ option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, {
5769
+ key: 0,
5770
+ name: "Check",
5771
+ color: _ctx.parent.props.activeColor
5772
+ }, null, 8, ["color"])) : createCommentVNode("", true),
5773
+ createElementVNode("view", {
5774
+ style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
5775
+ }, toDisplayString(option.text), 5)
5776
+ ], 14, _hoisted_2$n);
5777
+ }), 128)),
5778
+ renderSlot(_ctx.$slots, "default")
5779
+ ])
5780
+ ]),
5781
+ _: 3
5782
+ }, 16, ["style", "overlayStyle", "visible", "duration", "overlay", "onClosed"])
5783
+ ], 2)), [
5784
+ [vShow, _ctx.state.showWrapper]
5693
5785
  ]);
5694
5786
  }
5695
- var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$y], ["__scopeId", "data-v-02edb907"]]);
5787
+ var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$y]]);
5696
5788
  const { create: create$B } = createComponent("tabbar");
5697
5789
  const _sfc_main$B = create$B({
5698
5790
  props: {
@@ -9073,6 +9165,7 @@ const _sfc_main$h = create$h({
9073
9165
  fileItem.status = "ready";
9074
9166
  fileItem.type = file.type;
9075
9167
  fileItem.formData = formData;
9168
+ fileItem.message = "\u7B49\u5F85\u4E0A\u4F20";
9076
9169
  executeUpload(fileItem, index);
9077
9170
  if (props.isPreview && file.type.includes("image")) {
9078
9171
  const reader = new FileReader();
@@ -9167,20 +9260,25 @@ const _hoisted_5$5 = {
9167
9260
  class: "nut-uploader__preview__progress"
9168
9261
  };
9169
9262
  const _hoisted_6$3 = { class: "nut-uploader__preview__progress__msg" };
9170
- const _hoisted_7$3 = ["onClick", "src"];
9171
- const _hoisted_8$3 = {
9172
- key: 3,
9263
+ const _hoisted_7$3 = {
9264
+ key: 1,
9265
+ class: "nut-uploader__preview__progress"
9266
+ };
9267
+ const _hoisted_8$3 = { class: "nut-uploader__preview__progress__msg" };
9268
+ const _hoisted_9$2 = ["onClick", "src"];
9269
+ const _hoisted_10$2 = {
9270
+ key: 4,
9173
9271
  class: "nut-uploader__preview-img__file"
9174
9272
  };
9175
- const _hoisted_9$2 = ["onClick"];
9176
- const _hoisted_10$2 = { class: "tips" };
9177
- const _hoisted_11$2 = {
9273
+ const _hoisted_11$2 = ["onClick"];
9274
+ const _hoisted_12$2 = { class: "tips" };
9275
+ const _hoisted_13$1 = {
9178
9276
  key: 1,
9179
9277
  class: "nut-uploader__preview-list"
9180
9278
  };
9181
- const _hoisted_12$2 = ["onClick"];
9182
- const _hoisted_13$1 = ["accept", "multiple", "name", "disabled"];
9183
- const _hoisted_14$1 = ["accept", "multiple", "name", "disabled"];
9279
+ const _hoisted_14$1 = ["onClick"];
9280
+ const _hoisted_15$1 = ["accept", "multiple", "name", "disabled"];
9281
+ const _hoisted_16$1 = ["accept", "multiple", "name", "disabled"];
9184
9282
  function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
9185
9283
  const _component_nut_icon = resolveComponent("nut-icon");
9186
9284
  const _component_nut_progress = resolveComponent("nut-progress");
@@ -9218,26 +9316,28 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
9218
9316
  key: item.uid
9219
9317
  }, [
9220
9318
  _ctx.listType == "picture" && !_ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_4$9, [
9221
- item.status != "success" ? (openBlock(), createElementBlock("view", _hoisted_5$5, [
9319
+ item.status == "ready" ? (openBlock(), createElementBlock("view", _hoisted_5$5, [
9320
+ createElementVNode("view", _hoisted_6$3, toDisplayString(item.message), 1)
9321
+ ])) : item.status != "success" ? (openBlock(), createElementBlock("view", _hoisted_7$3, [
9222
9322
  createVNode(_component_nut_icon, {
9223
9323
  color: "#fff",
9224
9324
  name: item.status == "error" ? "failure" : "loading"
9225
9325
  }, null, 8, ["name"]),
9226
- createElementVNode("view", _hoisted_6$3, toDisplayString(item.message), 1)
9326
+ createElementVNode("view", _hoisted_8$3, toDisplayString(item.message), 1)
9227
9327
  ])) : createCommentVNode("", true),
9228
9328
  _ctx.isDeletable ? (openBlock(), createBlock(_component_nut_icon, {
9229
- key: 1,
9329
+ key: 2,
9230
9330
  color: "rgba(0,0,0,0.6)",
9231
9331
  onClick: ($event) => _ctx.onDelete(item, index),
9232
9332
  class: "close",
9233
9333
  name: "failure"
9234
9334
  }, null, 8, ["onClick"])) : createCommentVNode("", true),
9235
9335
  item.type.includes("image") && item.url ? (openBlock(), createElementBlock("img", {
9236
- key: 2,
9336
+ key: 3,
9237
9337
  class: "nut-uploader__preview-img__c",
9238
9338
  onClick: ($event) => _ctx.fileItemClick(item),
9239
9339
  src: item.url
9240
- }, null, 8, _hoisted_7$3)) : (openBlock(), createElementBlock("view", _hoisted_8$3, [
9340
+ }, null, 8, _hoisted_9$2)) : (openBlock(), createElementBlock("view", _hoisted_10$2, [
9241
9341
  createElementVNode("view", {
9242
9342
  onClick: ($event) => _ctx.fileItemClick(item),
9243
9343
  class: "nut-uploader__preview-img__file__name"
@@ -9247,17 +9347,17 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
9247
9347
  name: "link"
9248
9348
  }),
9249
9349
  createTextVNode("\xA0" + toDisplayString(item.name), 1)
9250
- ], 8, _hoisted_9$2)
9350
+ ], 8, _hoisted_11$2)
9251
9351
  ])),
9252
- createElementVNode("view", _hoisted_10$2, toDisplayString(item.name), 1)
9253
- ])) : _ctx.listType == "list" ? (openBlock(), createElementBlock("view", _hoisted_11$2, [
9352
+ createElementVNode("view", _hoisted_12$2, toDisplayString(item.name), 1)
9353
+ ])) : _ctx.listType == "list" ? (openBlock(), createElementBlock("view", _hoisted_13$1, [
9254
9354
  createElementVNode("view", {
9255
9355
  onClick: ($event) => _ctx.fileItemClick(item),
9256
9356
  class: normalizeClass(["nut-uploader__preview-img__file__name", [item.status]])
9257
9357
  }, [
9258
9358
  createVNode(_component_nut_icon, { name: "link" }),
9259
9359
  createTextVNode("\xA0" + toDisplayString(item.name), 1)
9260
- ], 10, _hoisted_12$2),
9360
+ ], 10, _hoisted_14$1),
9261
9361
  createVNode(_component_nut_icon, {
9262
9362
  class: "nut-uploader__preview-img__file__del",
9263
9363
  onClick: ($event) => _ctx.onDelete(item, index),
@@ -9293,7 +9393,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
9293
9393
  name: _ctx.name,
9294
9394
  disabled: _ctx.disabled,
9295
9395
  onChange: _cache[2] || (_cache[2] = (...args) => _ctx.onChange && _ctx.onChange(...args))
9296
- }, null, 40, _hoisted_13$1)) : (openBlock(), createElementBlock("input", {
9396
+ }, null, 40, _hoisted_15$1)) : (openBlock(), createElementBlock("input", {
9297
9397
  key: 1,
9298
9398
  class: "nut-uploader__input",
9299
9399
  type: "file",
@@ -9302,7 +9402,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
9302
9402
  name: _ctx.name,
9303
9403
  disabled: _ctx.disabled,
9304
9404
  onChange: _cache[3] || (_cache[3] = (...args) => _ctx.onChange && _ctx.onChange(...args))
9305
- }, null, 40, _hoisted_14$1))
9405
+ }, null, 40, _hoisted_16$1))
9306
9406
  ], 2)) : createCommentVNode("", true)
9307
9407
  ], 2);
9308
9408
  }
@@ -12104,6 +12204,6 @@ function install(app) {
12104
12204
  }
12105
12205
  });
12106
12206
  }
12107
- const version = "3.1.11";
12207
+ const version = "3.1.12-beta.0";
12108
12208
  var nutui_vue_build = { install, version };
12109
12209
  export { ActionSheet, Address, Avatar, BackTop, Badge, Barrage, Button, Calendar, Cell, CellGroup, _sfc_main$t as Checkbox, _sfc_main$s as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Elevator, FixedNav, _sfc_main$1a as Icon, ImagePreview, InfiniteLoading, Input, InputNumber, _sfc_main$13 as Layout, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, _sfc_main$m as Radio, _sfc_main$l as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, Signature, Sku, Step, _sfc_main$P as Steps, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, nutui_vue_build as default, install, version };