@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.umd.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
  */
@@ -50,10 +50,11 @@ var __publicField = (obj, key, value) => {
50
50
  };
51
51
  }
52
52
  var _export_sfc = (sfc, props) => {
53
+ const target = sfc.__vccOpts || sfc;
53
54
  for (const [key, val] of props) {
54
- sfc[key] = val;
55
+ target[key] = val;
55
56
  }
56
- return sfc;
57
+ return target;
57
58
  };
58
59
  const { componentName: componentName$X, create: create$1b } = createComponent("avatar");
59
60
  const _sfc_main$1b = create$1b({
@@ -112,7 +113,7 @@ var __publicField = (obj, key, value) => {
112
113
  };
113
114
  }
114
115
  });
115
- const _hoisted_1$N = {
116
+ const _hoisted_1$P = {
116
117
  key: 0,
117
118
  class: "text"
118
119
  };
@@ -127,7 +128,7 @@ var __publicField = (obj, key, value) => {
127
128
  class: "icon",
128
129
  name: _ctx.iconStyles
129
130
  }, null, 8, ["name"]),
130
- _ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$N, [
131
+ _ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$P, [
131
132
  vue.renderSlot(_ctx.$slots, "default")
132
133
  ])) : vue.createCommentVNode("", true)
133
134
  ], 6);
@@ -256,7 +257,7 @@ var __publicField = (obj, key, value) => {
256
257
  };
257
258
  }
258
259
  });
259
- const _hoisted_1$M = { class: "nut-button__warp" };
260
+ const _hoisted_1$O = { class: "nut-button__warp" };
260
261
  function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
261
262
  const _component_nut_icon = vue.resolveComponent("nut-icon");
262
263
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -264,7 +265,7 @@ var __publicField = (obj, key, value) => {
264
265
  style: vue.normalizeStyle(_ctx.getStyle),
265
266
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
266
267
  }, [
267
- vue.createElementVNode("view", _hoisted_1$M, [
268
+ vue.createElementVNode("view", _hoisted_1$O, [
268
269
  _ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
269
270
  key: 0,
270
271
  class: "nut-icon-loading"
@@ -328,8 +329,8 @@ var __publicField = (obj, key, value) => {
328
329
  };
329
330
  }
330
331
  });
331
- const _hoisted_1$L = { class: "title" };
332
- const _hoisted_2$G = { class: "nut-cell__title-desc" };
332
+ const _hoisted_1$N = { class: "title" };
333
+ const _hoisted_2$H = { class: "nut-cell__title-desc" };
333
334
  function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
334
335
  const _component_nut_icon = vue.resolveComponent("nut-icon");
335
336
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -348,8 +349,8 @@ var __publicField = (obj, key, value) => {
348
349
  name: _ctx.icon
349
350
  }, null, 8, ["name"])) : vue.createCommentVNode("", true),
350
351
  _ctx.subTitle ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
351
- vue.createElementVNode("view", _hoisted_1$L, vue.toDisplayString(_ctx.title), 1),
352
- vue.createElementVNode("view", _hoisted_2$G, vue.toDisplayString(_ctx.subTitle), 1)
352
+ vue.createElementVNode("view", _hoisted_1$N, vue.toDisplayString(_ctx.title), 1),
353
+ vue.createElementVNode("view", _hoisted_2$H, vue.toDisplayString(_ctx.subTitle), 1)
353
354
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
354
355
  vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
355
356
  ], 64))
@@ -385,17 +386,17 @@ var __publicField = (obj, key, value) => {
385
386
  };
386
387
  }
387
388
  });
388
- const _hoisted_1$K = {
389
+ const _hoisted_1$M = {
389
390
  key: 1,
390
391
  class: "nut-cell-group__title"
391
392
  };
392
- const _hoisted_2$F = { class: "nut-cell-group__warp" };
393
+ const _hoisted_2$G = { class: "nut-cell-group__warp" };
393
394
  function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
394
395
  return vue.openBlock(), vue.createElementBlock("view", {
395
396
  class: vue.normalizeClass(_ctx.classes)
396
397
  }, [
397
- _ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$K, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
398
- vue.createElementVNode("view", _hoisted_2$F, [
398
+ _ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$M, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
399
+ vue.createElementVNode("view", _hoisted_2$G, [
399
400
  vue.renderSlot(_ctx.$slots, "default")
400
401
  ])
401
402
  ], 2);
@@ -485,8 +486,8 @@ var __publicField = (obj, key, value) => {
485
486
  };
486
487
  }
487
488
  });
488
- const _hoisted_1$J = ["innerHTML"];
489
- const _hoisted_2$E = ["innerHTML"];
489
+ const _hoisted_1$L = ["innerHTML"];
490
+ const _hoisted_2$F = ["innerHTML"];
490
491
  function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
491
492
  return vue.openBlock(), vue.createElementBlock("view", {
492
493
  class: vue.normalizeClass(_ctx.classes)
@@ -495,7 +496,7 @@ var __publicField = (obj, key, value) => {
495
496
  key: 0,
496
497
  class: vue.normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
497
498
  innerHTML: _ctx.showSymbol
498
- }, null, 10, _hoisted_1$J)) : vue.createCommentVNode("", true),
499
+ }, null, 10, _hoisted_1$L)) : vue.createCommentVNode("", true),
499
500
  vue.createElementVNode("view", {
500
501
  class: vue.normalizeClass(`nut-price--${_ctx.size}`)
501
502
  }, vue.toDisplayString(_ctx.formatThousands(_ctx.price)), 3),
@@ -510,7 +511,7 @@ var __publicField = (obj, key, value) => {
510
511
  key: 2,
511
512
  class: vue.normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
512
513
  innerHTML: _ctx.showSymbol
513
- }, null, 10, _hoisted_2$E)) : vue.createCommentVNode("", true)
514
+ }, null, 10, _hoisted_2$F)) : vue.createCommentVNode("", true)
514
515
  ], 2);
515
516
  }
516
517
  var Price = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$10]]);
@@ -804,6 +805,10 @@ var __publicField = (obj, key, value) => {
804
805
  round: {
805
806
  type: Boolean,
806
807
  default: false
808
+ },
809
+ isWrapTeleport: {
810
+ type: Boolean,
811
+ default: true
807
812
  }
808
813
  });
809
814
  const _sfc_main$10 = create$10({
@@ -812,16 +817,7 @@ var __publicField = (obj, key, value) => {
812
817
  [_sfc_main$1a.name]: _sfc_main$1a
813
818
  },
814
819
  props: __spreadValues({}, popupProps),
815
- emits: [
816
- "click",
817
- "click-close-icon",
818
- "open",
819
- "close",
820
- "opend",
821
- "closed",
822
- "update:visible",
823
- "click-overlay"
824
- ],
820
+ emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
825
821
  setup(props, { emit }) {
826
822
  const state = vue.reactive({
827
823
  zIndex: props.zIndex ? props.zIndex : _zIndex,
@@ -936,10 +932,14 @@ var __publicField = (obj, key, value) => {
936
932
  });
937
933
  }
938
934
  });
935
+ const _hoisted_1$K = { key: 1 };
939
936
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
940
937
  const _component_nut_overlay = vue.resolveComponent("nut-overlay");
941
938
  const _component_nut_icon = vue.resolveComponent("nut-icon");
942
- return vue.openBlock(), vue.createBlock(vue.Teleport, { to: _ctx.teleport }, [
939
+ return _ctx.isWrapTeleport ? (vue.openBlock(), vue.createBlock(vue.Teleport, {
940
+ key: 0,
941
+ to: _ctx.teleport
942
+ }, [
943
943
  _ctx.overlay ? (vue.openBlock(), vue.createBlock(_component_nut_overlay, {
944
944
  key: 0,
945
945
  visible: _ctx.visible,
@@ -979,7 +979,47 @@ var __publicField = (obj, key, value) => {
979
979
  ]),
980
980
  _: 3
981
981
  }, 8, ["name", "onAfterEnter", "onAfterLeave"])
982
- ], 8, ["to"]);
982
+ ], 8, ["to"])) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$K, [
983
+ _ctx.overlay ? (vue.openBlock(), vue.createBlock(_component_nut_overlay, {
984
+ key: 0,
985
+ visible: _ctx.visible,
986
+ "close-on-click-overlay": _ctx.closeOnClickOverlay,
987
+ class: vue.normalizeClass(_ctx.overlayClass),
988
+ style: vue.normalizeStyle(_ctx.overlayStyle),
989
+ "z-index": _ctx.zIndex,
990
+ "lock-scroll": _ctx.lockScroll,
991
+ duration: _ctx.duration,
992
+ onClick: _ctx.onClickOverlay
993
+ }, null, 8, ["visible", "close-on-click-overlay", "class", "style", "z-index", "lock-scroll", "duration", "onClick"])) : vue.createCommentVNode("", true),
994
+ vue.createVNode(vue.Transition, {
995
+ name: _ctx.transitionName,
996
+ onAfterEnter: _ctx.onOpened,
997
+ onAfterLeave: _ctx.onClosed
998
+ }, {
999
+ default: vue.withCtx(() => [
1000
+ vue.withDirectives(vue.createElementVNode("view", {
1001
+ class: vue.normalizeClass(_ctx.classes),
1002
+ style: vue.normalizeStyle(_ctx.popStyle),
1003
+ onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args))
1004
+ }, [
1005
+ _ctx.showSlot ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("", true),
1006
+ _ctx.closeable ? (vue.openBlock(), vue.createElementBlock("view", {
1007
+ key: 1,
1008
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
1009
+ class: vue.normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
1010
+ }, [
1011
+ vue.createVNode(_component_nut_icon, {
1012
+ name: _ctx.closeIcon,
1013
+ size: "12px"
1014
+ }, null, 8, ["name"])
1015
+ ], 2)) : vue.createCommentVNode("", true)
1016
+ ], 6), [
1017
+ [vue.vShow, _ctx.visible]
1018
+ ])
1019
+ ]),
1020
+ _: 3
1021
+ }, 8, ["name", "onAfterEnter", "onAfterLeave"])
1022
+ ]));
983
1023
  }
984
1024
  var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$X]]);
985
1025
  const { componentName: componentName$M, create: create$$ } = createComponent("imagepreview");
@@ -1020,14 +1060,14 @@ var __publicField = (obj, key, value) => {
1020
1060
  });
1021
1061
  }
1022
1062
  });
1023
- const _hoisted_1$I = { class: "nut-imagepreview" };
1024
- const _hoisted_2$D = ["src"];
1025
- const _hoisted_3$w = { class: "nut-imagepreview-index" };
1063
+ const _hoisted_1$J = { class: "nut-imagepreview" };
1064
+ const _hoisted_2$E = ["src"];
1065
+ const _hoisted_3$v = { class: "nut-imagepreview-index" };
1026
1066
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
1027
1067
  const _component_nut_swiper_item = vue.resolveComponent("nut-swiper-item");
1028
1068
  const _component_nut_swiper = vue.resolveComponent("nut-swiper");
1029
1069
  const _component_nut_popup = vue.resolveComponent("nut-popup");
1030
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$I, [
1070
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$J, [
1031
1071
  vue.createVNode(_component_nut_popup, {
1032
1072
  "pop-class": "custom-pop",
1033
1073
  visible: _ctx.showPop,
@@ -1051,7 +1091,7 @@ var __publicField = (obj, key, value) => {
1051
1091
  vue.createElementVNode("img", {
1052
1092
  src: item.imgSrc,
1053
1093
  class: "nut-imagepreview-img"
1054
- }, null, 8, _hoisted_2$D)
1094
+ }, null, 8, _hoisted_2$E)
1055
1095
  ]),
1056
1096
  _: 2
1057
1097
  }, 1024);
@@ -1059,7 +1099,7 @@ var __publicField = (obj, key, value) => {
1059
1099
  ]),
1060
1100
  _: 1
1061
1101
  }, 8, ["onChange"])) : vue.createCommentVNode("", true),
1062
- vue.createElementVNode("view", _hoisted_3$w, vue.toDisplayString(_ctx.active) + " / " + vue.toDisplayString(_ctx.images.length), 1)
1102
+ vue.createElementVNode("view", _hoisted_3$v, vue.toDisplayString(_ctx.active) + " / " + vue.toDisplayString(_ctx.images.length), 1)
1063
1103
  ]),
1064
1104
  _: 1
1065
1105
  }, 8, ["visible", "onClick"])
@@ -1270,12 +1310,12 @@ var __publicField = (obj, key, value) => {
1270
1310
  });
1271
1311
  }
1272
1312
  });
1273
- const _hoisted_1$H = {
1313
+ const _hoisted_1$I = {
1274
1314
  class: "nut-swipe__left",
1275
1315
  ref: "leftRef"
1276
1316
  };
1277
- const _hoisted_2$C = { class: "nut-swipe__content" };
1278
- const _hoisted_3$v = {
1317
+ const _hoisted_2$D = { class: "nut-swipe__content" };
1318
+ const _hoisted_3$u = {
1279
1319
  class: "nut-swipe__right",
1280
1320
  ref: "rightRef"
1281
1321
  };
@@ -1288,13 +1328,13 @@ var __publicField = (obj, key, value) => {
1288
1328
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
1289
1329
  onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
1290
1330
  }, [
1291
- vue.createElementVNode("view", _hoisted_1$H, [
1331
+ vue.createElementVNode("view", _hoisted_1$I, [
1292
1332
  vue.renderSlot(_ctx.$slots, "left")
1293
1333
  ], 512),
1294
- vue.createElementVNode("view", _hoisted_2$C, [
1334
+ vue.createElementVNode("view", _hoisted_2$D, [
1295
1335
  vue.renderSlot(_ctx.$slots, "default")
1296
1336
  ]),
1297
- vue.createElementVNode("view", _hoisted_3$v, [
1337
+ vue.createElementVNode("view", _hoisted_3$u, [
1298
1338
  vue.renderSlot(_ctx.$slots, "right")
1299
1339
  ], 512)
1300
1340
  ], 38);
@@ -1370,16 +1410,16 @@ var __publicField = (obj, key, value) => {
1370
1410
  };
1371
1411
  }
1372
1412
  });
1373
- const _hoisted_1$G = { class: "nut-actionsheet-panel" };
1374
- const _hoisted_2$B = {
1413
+ const _hoisted_1$H = { class: "nut-actionsheet-panel" };
1414
+ const _hoisted_2$C = {
1375
1415
  key: 0,
1376
1416
  class: "nut-actionsheet-title"
1377
1417
  };
1378
- const _hoisted_3$u = {
1418
+ const _hoisted_3$t = {
1379
1419
  key: 1,
1380
1420
  class: "nut-actionsheet-item desc"
1381
1421
  };
1382
- const _hoisted_4$o = {
1422
+ const _hoisted_4$n = {
1383
1423
  key: 2,
1384
1424
  class: "nut-actionsheet-menu"
1385
1425
  };
@@ -1398,10 +1438,10 @@ var __publicField = (obj, key, value) => {
1398
1438
  onClickOverlay: _ctx.close
1399
1439
  }, {
1400
1440
  default: vue.withCtx(() => [
1401
- vue.createElementVNode("view", _hoisted_1$G, [
1402
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$B, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
1403
- _ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$u, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
1404
- _ctx.menuItems.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$o, [
1441
+ vue.createElementVNode("view", _hoisted_1$H, [
1442
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$C, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
1443
+ _ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$t, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
1444
+ _ctx.menuItems.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$n, [
1405
1445
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuItems, (item, index) => {
1406
1446
  return vue.openBlock(), vue.createElementBlock("view", {
1407
1447
  class: vue.normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable }]),
@@ -1809,10 +1849,10 @@ var __publicField = (obj, key, value) => {
1809
1849
  });
1810
1850
  }
1811
1851
  });
1812
- const _hoisted_1$F = { class: "collapse-title" };
1813
- const _hoisted_2$A = { class: "collapse-title-value" };
1814
- const _hoisted_3$t = ["innerHTML"];
1815
- const _hoisted_4$n = {
1852
+ const _hoisted_1$G = { class: "collapse-title" };
1853
+ const _hoisted_2$B = { class: "collapse-title-value" };
1854
+ const _hoisted_3$s = ["innerHTML"];
1855
+ const _hoisted_4$m = {
1816
1856
  key: 0,
1817
1857
  class: "subTitle"
1818
1858
  };
@@ -1834,9 +1874,9 @@ var __publicField = (obj, key, value) => {
1834
1874
  class: vue.normalizeClass(["collapse-item", { "item-expanded": _ctx.openExpanded }, { "nut-collapse-item-disabled": _ctx.disabled }]),
1835
1875
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleOpen && _ctx.toggleOpen(...args))
1836
1876
  }, [
1837
- vue.createElementVNode("view", _hoisted_1$F, [
1877
+ vue.createElementVNode("view", _hoisted_1$G, [
1838
1878
  vue.createElementVNode("view", null, [
1839
- vue.createElementVNode("view", _hoisted_2$A, [
1879
+ vue.createElementVNode("view", _hoisted_2$B, [
1840
1880
  _ctx.titleIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
1841
1881
  key: 0,
1842
1882
  name: _ctx.titleIcon,
@@ -1848,11 +1888,11 @@ var __publicField = (obj, key, value) => {
1848
1888
  key: 2,
1849
1889
  innerHTML: _ctx.title,
1850
1890
  class: "collapse-icon-title"
1851
- }, null, 8, _hoisted_3$t))
1891
+ }, null, 8, _hoisted_3$s))
1852
1892
  ])
1853
1893
  ])
1854
1894
  ]),
1855
- _ctx.$slots.sTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$n, [
1895
+ _ctx.$slots.sTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$m, [
1856
1896
  vue.renderSlot(_ctx.$slots, "sTitle")
1857
1897
  ])) : (vue.openBlock(), vue.createElementBlock("view", {
1858
1898
  key: 1,
@@ -2200,12 +2240,12 @@ var __publicField = (obj, key, value) => {
2200
2240
  };
2201
2241
  }
2202
2242
  });
2203
- const _hoisted_1$E = {
2243
+ const _hoisted_1$F = {
2204
2244
  key: 0,
2205
2245
  class: "nut-dialog__header"
2206
2246
  };
2207
- const _hoisted_2$z = ["innerHTML"];
2208
- const _hoisted_3$s = {
2247
+ const _hoisted_2$A = ["innerHTML"];
2248
+ const _hoisted_3$r = {
2209
2249
  key: 1,
2210
2250
  class: "nut-dialog__footer"
2211
2251
  };
@@ -2226,7 +2266,7 @@ var __publicField = (obj, key, value) => {
2226
2266
  vue.createElementVNode("view", {
2227
2267
  class: vue.normalizeClass(_ctx.classes)
2228
2268
  }, [
2229
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$E, [
2269
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$F, [
2230
2270
  _ctx.$slots.header ? vue.renderSlot(_ctx.$slots, "header", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
2231
2271
  vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
2232
2272
  ], 64))
@@ -2238,9 +2278,9 @@ var __publicField = (obj, key, value) => {
2238
2278
  _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", {
2239
2279
  key: 1,
2240
2280
  innerHTML: _ctx.content
2241
- }, null, 8, _hoisted_2$z))
2281
+ }, null, 8, _hoisted_2$A))
2242
2282
  ], 4),
2243
- !_ctx.noFooter ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$s, [
2283
+ !_ctx.noFooter ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$r, [
2244
2284
  _ctx.$slots.footer ? vue.renderSlot(_ctx.$slots, "footer", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
2245
2285
  !_ctx.noCancelBtn ? (vue.openBlock(), vue.createBlock(_component_nut_button, {
2246
2286
  key: 0,
@@ -2536,10 +2576,10 @@ var __publicField = (obj, key, value) => {
2536
2576
  });
2537
2577
  }
2538
2578
  });
2539
- const _hoisted_1$D = { class: "top-box" };
2540
- const _hoisted_2$y = { class: "top-text" };
2541
- const _hoisted_3$r = { class: "nut-infinite-container" };
2542
- const _hoisted_4$m = { class: "nut-infinite-bottom" };
2579
+ const _hoisted_1$E = { class: "top-box" };
2580
+ const _hoisted_2$z = { class: "top-text" };
2581
+ const _hoisted_3$q = { class: "nut-infinite-container" };
2582
+ const _hoisted_4$l = { class: "nut-infinite-bottom" };
2543
2583
  const _hoisted_5$e = {
2544
2584
  key: 0,
2545
2585
  class: "bottom-box"
@@ -2563,18 +2603,18 @@ var __publicField = (obj, key, value) => {
2563
2603
  ref: "refreshTop",
2564
2604
  style: vue.normalizeStyle(_ctx.getStyle)
2565
2605
  }, [
2566
- vue.createElementVNode("view", _hoisted_1$D, [
2606
+ vue.createElementVNode("view", _hoisted_1$E, [
2567
2607
  vue.createVNode(_component_nut_icon, {
2568
2608
  class: "top-img",
2569
2609
  name: _ctx.pullIcon
2570
2610
  }, null, 8, ["name"]),
2571
- vue.createElementVNode("view", _hoisted_2$y, vue.toDisplayString(_ctx.pullTxt), 1)
2611
+ vue.createElementVNode("view", _hoisted_2$z, vue.toDisplayString(_ctx.pullTxt), 1)
2572
2612
  ])
2573
2613
  ], 4),
2574
- vue.createElementVNode("view", _hoisted_3$r, [
2614
+ vue.createElementVNode("view", _hoisted_3$q, [
2575
2615
  vue.renderSlot(_ctx.$slots, "default")
2576
2616
  ]),
2577
- vue.createElementVNode("view", _hoisted_4$m, [
2617
+ vue.createElementVNode("view", _hoisted_4$l, [
2578
2618
  _ctx.isInfiniting ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$e, [
2579
2619
  vue.createVNode(_component_nut_icon, {
2580
2620
  class: "bottom-img",
@@ -3013,13 +3053,13 @@ var __publicField = (obj, key, value) => {
3013
3053
  });
3014
3054
  }
3015
3055
  });
3016
- const _hoisted_1$C = { class: "nut-range-container" };
3017
- const _hoisted_2$x = {
3056
+ const _hoisted_1$D = { class: "nut-range-container" };
3057
+ const _hoisted_2$y = {
3018
3058
  key: 0,
3019
3059
  class: "min"
3020
3060
  };
3021
- const _hoisted_3$q = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
3022
- const _hoisted_4$l = {
3061
+ const _hoisted_3$p = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
3062
+ const _hoisted_4$k = {
3023
3063
  key: 0,
3024
3064
  class: "number"
3025
3065
  };
@@ -3033,8 +3073,8 @@ var __publicField = (obj, key, value) => {
3033
3073
  class: "max"
3034
3074
  };
3035
3075
  function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
3036
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$C, [
3037
- !_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$x, vue.toDisplayString(+_ctx.min), 1)) : vue.createCommentVNode("", true),
3076
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$D, [
3077
+ !_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$y, vue.toDisplayString(+_ctx.min), 1)) : vue.createCommentVNode("", true),
3038
3078
  vue.createElementVNode("view", {
3039
3079
  ref: "root",
3040
3080
  style: vue.normalizeStyle(_ctx.wrapperStyle),
@@ -3074,9 +3114,9 @@ var __publicField = (obj, key, value) => {
3074
3114
  class: "nut-range-button",
3075
3115
  style: vue.normalizeStyle(_ctx.buttonStyle)
3076
3116
  }, [
3077
- !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$l, vue.toDisplayString(_ctx.curValue(index)), 1)) : vue.createCommentVNode("", true)
3117
+ !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$k, vue.toDisplayString(_ctx.curValue(index)), 1)) : vue.createCommentVNode("", true)
3078
3118
  ], 4))
3079
- ], 42, _hoisted_3$q);
3119
+ ], 42, _hoisted_3$p);
3080
3120
  }), 64)) : (vue.openBlock(), vue.createElementBlock("view", {
3081
3121
  key: 1,
3082
3122
  role: "slider",
@@ -3380,13 +3420,13 @@ var __publicField = (obj, key, value) => {
3380
3420
  });
3381
3421
  }
3382
3422
  });
3383
- const _hoisted_1$B = {
3423
+ const _hoisted_1$C = {
3384
3424
  class: "nut-video",
3385
3425
  ref: "videocon"
3386
3426
  };
3387
- const _hoisted_2$w = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
3388
- const _hoisted_3$p = ["src", "type"];
3389
- const _hoisted_4$k = { class: "current-time" };
3427
+ const _hoisted_2$x = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
3428
+ const _hoisted_3$o = ["src", "type"];
3429
+ const _hoisted_4$j = { class: "current-time" };
3390
3430
  const _hoisted_5$c = { class: "progress-container" };
3391
3431
  const _hoisted_6$9 = {
3392
3432
  class: "progress",
@@ -3404,7 +3444,7 @@ var __publicField = (obj, key, value) => {
3404
3444
  const _hoisted_11$4 = { class: "nut-video-error" };
3405
3445
  const _hoisted_12$4 = /* @__PURE__ */ vue.createElementVNode("p", { class: "lose" }, "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25", -1);
3406
3446
  function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
3407
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
3447
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
3408
3448
  vue.createElementVNode("video", {
3409
3449
  ref: "root",
3410
3450
  class: "nut-video-player",
@@ -3419,8 +3459,8 @@ var __publicField = (obj, key, value) => {
3419
3459
  vue.createElementVNode("source", {
3420
3460
  src: _ctx.source.src,
3421
3461
  type: _ctx.source.type
3422
- }, null, 8, _hoisted_3$p)
3423
- ], 40, _hoisted_2$w),
3462
+ }, null, 8, _hoisted_3$o)
3463
+ ], 40, _hoisted_2$x),
3424
3464
  _ctx.showToolbox && !_ctx.isDisabled ? (vue.openBlock(), vue.createElementBlock("div", {
3425
3465
  key: 0,
3426
3466
  class: "playing-mask",
@@ -3442,7 +3482,7 @@ var __publicField = (obj, key, value) => {
3442
3482
  class: "control-play-btn",
3443
3483
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.play && _ctx.play(...args))
3444
3484
  }),
3445
- vue.createElementVNode("div", _hoisted_4$k, vue.toDisplayString(_ctx.videoSet.displayTime), 1),
3485
+ vue.createElementVNode("div", _hoisted_4$j, vue.toDisplayString(_ctx.videoSet.displayTime), 1),
3446
3486
  vue.createElementVNode("div", _hoisted_5$c, [
3447
3487
  vue.createElementVNode("div", _hoisted_6$9, [
3448
3488
  vue.createElementVNode("div", {
@@ -3583,13 +3623,13 @@ var __publicField = (obj, key, value) => {
3583
3623
  });
3584
3624
  }
3585
3625
  });
3586
- const _hoisted_1$A = { class: "nut-step-head" };
3587
- const _hoisted_2$v = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-step-line" }, null, -1);
3588
- const _hoisted_3$o = {
3626
+ const _hoisted_1$B = { class: "nut-step-head" };
3627
+ const _hoisted_2$w = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-step-line" }, null, -1);
3628
+ const _hoisted_3$n = {
3589
3629
  key: 2,
3590
3630
  class: "nut-step-inner"
3591
3631
  };
3592
- const _hoisted_4$j = { class: "nut-step-main" };
3632
+ const _hoisted_4$i = { class: "nut-step-main" };
3593
3633
  const _hoisted_5$b = { class: "nut-step-title" };
3594
3634
  const _hoisted_6$8 = ["innerHTML"];
3595
3635
  function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
@@ -3597,8 +3637,8 @@ var __publicField = (obj, key, value) => {
3597
3637
  return vue.openBlock(), vue.createElementBlock("view", {
3598
3638
  class: vue.normalizeClass(_ctx.classes)
3599
3639
  }, [
3600
- vue.createElementVNode("view", _hoisted_1$A, [
3601
- _hoisted_2$v,
3640
+ vue.createElementVNode("view", _hoisted_1$B, [
3641
+ _hoisted_2$w,
3602
3642
  vue.createElementVNode("view", {
3603
3643
  class: vue.normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
3604
3644
  }, [
@@ -3608,10 +3648,10 @@ var __publicField = (obj, key, value) => {
3608
3648
  color: _ctx.iconColor,
3609
3649
  name: _ctx.icon,
3610
3650
  size: _ctx.size
3611
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$o, vue.toDisplayString(_ctx.index), 1))
3651
+ }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$n, vue.toDisplayString(_ctx.index), 1))
3612
3652
  ], 2)
3613
3653
  ]),
3614
- vue.createElementVNode("view", _hoisted_4$j, [
3654
+ vue.createElementVNode("view", _hoisted_4$i, [
3615
3655
  vue.createElementVNode("view", _hoisted_5$b, vue.toDisplayString(_ctx.title), 1),
3616
3656
  _ctx.content ? (vue.openBlock(), vue.createElementBlock("view", {
3617
3657
  key: 0,
@@ -4155,16 +4195,16 @@ var __publicField = (obj, key, value) => {
4155
4195
  };
4156
4196
  }
4157
4197
  });
4158
- const _hoisted_1$z = { class: "switch-button" };
4159
- const _hoisted_2$u = { class: "close-line" };
4198
+ const _hoisted_1$A = { class: "switch-button" };
4199
+ const _hoisted_2$v = { class: "close-line" };
4160
4200
  function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
4161
4201
  return vue.openBlock(), vue.createElementBlock("view", {
4162
4202
  class: vue.normalizeClass(_ctx.classes),
4163
4203
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
4164
4204
  style: vue.normalizeStyle(_ctx.style)
4165
4205
  }, [
4166
- vue.createElementVNode("view", _hoisted_1$z, [
4167
- vue.withDirectives(vue.createElementVNode("view", _hoisted_2$u, null, 512), [
4206
+ vue.createElementVNode("view", _hoisted_1$A, [
4207
+ vue.withDirectives(vue.createElementVNode("view", _hoisted_2$v, null, 512), [
4168
4208
  [vue.vShow, !_ctx.modelValue]
4169
4209
  ]),
4170
4210
  _ctx.activeText ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
@@ -4304,11 +4344,11 @@ var __publicField = (obj, key, value) => {
4304
4344
  };
4305
4345
  }
4306
4346
  });
4307
- const _hoisted_1$y = {
4347
+ const _hoisted_1$z = {
4308
4348
  key: 0,
4309
4349
  class: "nut-toast-icon-wrapper"
4310
4350
  };
4311
- const _hoisted_2$t = ["innerHTML"];
4351
+ const _hoisted_2$u = ["innerHTML"];
4312
4352
  function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
4313
4353
  const _component_nut_icon = vue.resolveComponent("nut-icon");
4314
4354
  return vue.openBlock(), vue.createBlock(vue.Transition, {
@@ -4331,7 +4371,7 @@ var __publicField = (obj, key, value) => {
4331
4371
  "background-color": _ctx.bgColor
4332
4372
  })
4333
4373
  }, [
4334
- _ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$y, [
4374
+ _ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$z, [
4335
4375
  vue.createVNode(_component_nut_icon, {
4336
4376
  size: "20",
4337
4377
  color: "#ffffff",
@@ -4341,7 +4381,7 @@ var __publicField = (obj, key, value) => {
4341
4381
  vue.createElementVNode("view", {
4342
4382
  class: "nut-toast-text",
4343
4383
  innerHTML: _ctx.msg
4344
- }, null, 8, _hoisted_2$t)
4384
+ }, null, 8, _hoisted_2$u)
4345
4385
  ], 4)
4346
4386
  ], 6), [
4347
4387
  [vue.vShow, _ctx.state.mounted]
@@ -4543,10 +4583,10 @@ var __publicField = (obj, key, value) => {
4543
4583
  };
4544
4584
  }
4545
4585
  });
4546
- const _hoisted_1$x = { class: "nut-progress" };
4586
+ const _hoisted_1$y = { class: "nut-progress" };
4547
4587
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
4548
4588
  const _component_nut_icon = vue.resolveComponent("nut-icon");
4549
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
4589
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
4550
4590
  vue.createElementVNode("div", {
4551
4591
  class: vue.normalizeClass(["nut-progress-outer", [
4552
4592
  _ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "",
@@ -4645,10 +4685,10 @@ var __publicField = (obj, key, value) => {
4645
4685
  };
4646
4686
  }
4647
4687
  });
4648
- const _hoisted_1$w = ["height", "width"];
4649
- const _hoisted_2$s = ["r", "cx", "cy", "stroke", "stroke-width"];
4650
- const _hoisted_3$n = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
4651
- const _hoisted_4$i = { class: "nut-circleprogress-content" };
4688
+ const _hoisted_1$x = ["height", "width"];
4689
+ const _hoisted_2$t = ["r", "cx", "cy", "stroke", "stroke-width"];
4690
+ const _hoisted_3$m = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
4691
+ const _hoisted_4$h = { class: "nut-circleprogress-content" };
4652
4692
  function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
4653
4693
  return vue.openBlock(), vue.createElementBlock("div", {
4654
4694
  class: vue.normalizeClass(_ctx.classes),
@@ -4666,7 +4706,7 @@ var __publicField = (obj, key, value) => {
4666
4706
  stroke: _ctx.option.backColor,
4667
4707
  "stroke-width": _ctx.option.strokeOutWidth,
4668
4708
  fill: "none"
4669
- }, null, 8, _hoisted_2$s),
4709
+ }, null, 8, _hoisted_2$t),
4670
4710
  vue.createElementVNode("circle", {
4671
4711
  r: _ctx.option.radius,
4672
4712
  cx: _ctx.option.cx,
@@ -4678,9 +4718,9 @@ var __publicField = (obj, key, value) => {
4678
4718
  transform: _ctx.option.startPosition,
4679
4719
  "stroke-linecap": "round",
4680
4720
  style: { "transition": "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s" }
4681
- }, null, 8, _hoisted_3$n)
4682
- ], 8, _hoisted_1$w)),
4683
- vue.createElementVNode("div", _hoisted_4$i, [
4721
+ }, null, 8, _hoisted_3$m)
4722
+ ], 8, _hoisted_1$x)),
4723
+ vue.createElementVNode("div", _hoisted_4$h, [
4684
4724
  !_ctx.isAuto ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
4685
4725
  vue.createTextVNode(vue.toDisplayString(_ctx.progress) + "%", 1)
4686
4726
  ]) : vue.renderSlot(_ctx.$slots, "default", { key: 1 })
@@ -4945,11 +4985,11 @@ var __publicField = (obj, key, value) => {
4945
4985
  });
4946
4986
  }
4947
4987
  });
4948
- const _hoisted_1$v = {
4988
+ const _hoisted_1$w = {
4949
4989
  ref: "wrap",
4950
4990
  class: "wrap"
4951
4991
  };
4952
- const _hoisted_2$r = ["onClick"];
4992
+ const _hoisted_2$s = ["onClick"];
4953
4993
  function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
4954
4994
  const _component_nut_icon = vue.resolveComponent("nut-icon");
4955
4995
  const _component_ScrollItem = vue.resolveComponent("ScrollItem");
@@ -4974,7 +5014,7 @@ var __publicField = (obj, key, value) => {
4974
5014
  color: _ctx.color
4975
5015
  }, null, 8, ["color"])) : vue.createCommentVNode("", true)
4976
5016
  ], 4)) : vue.createCommentVNode("", true),
4977
- vue.createElementVNode("view", _hoisted_1$v, [
5017
+ vue.createElementVNode("view", _hoisted_1$w, [
4978
5018
  vue.createElementVNode("view", {
4979
5019
  ref: "content",
4980
5020
  class: vue.normalizeClass(["content", [
@@ -5031,7 +5071,7 @@ var __publicField = (obj, key, value) => {
5031
5071
  key: index,
5032
5072
  style: vue.normalizeStyle({ height: _ctx.height }),
5033
5073
  onClick: ($event) => _ctx.go(item)
5034
- }, vue.toDisplayString(item), 13, _hoisted_2$r);
5074
+ }, vue.toDisplayString(item), 13, _hoisted_2$s);
5035
5075
  }), 128))
5036
5076
  ], 4)),
5037
5077
  vue.createElementVNode("view", {
@@ -5141,16 +5181,16 @@ var __publicField = (obj, key, value) => {
5141
5181
  });
5142
5182
  }
5143
5183
  });
5144
- const _hoisted_1$u = {
5184
+ const _hoisted_1$v = {
5145
5185
  key: 0,
5146
5186
  class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
5147
5187
  };
5148
- const _hoisted_2$q = {
5188
+ const _hoisted_2$r = {
5149
5189
  key: 0,
5150
5190
  class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
5151
5191
  };
5152
- const _hoisted_3$m = { class: "nut-searchbar__input-inner" };
5153
- const _hoisted_4$h = ["type", "maxlength", "placeholder", "value"];
5192
+ const _hoisted_3$l = { class: "nut-searchbar__input-inner" };
5193
+ const _hoisted_4$g = ["type", "maxlength", "placeholder", "value"];
5154
5194
  const _hoisted_5$a = {
5155
5195
  key: 1,
5156
5196
  class: "nut-searchbar__search-icon nut-searchbar__iptright-sarch-icon"
@@ -5165,17 +5205,17 @@ var __publicField = (obj, key, value) => {
5165
5205
  class: "nut-searchbar",
5166
5206
  style: vue.normalizeStyle(_ctx.searchbarStyle)
5167
5207
  }, [
5168
- _ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$u, [
5208
+ _ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$v, [
5169
5209
  vue.renderSlot(_ctx.$slots, "leftout")
5170
5210
  ])) : vue.createCommentVNode("", true),
5171
5211
  vue.createElementVNode("view", {
5172
5212
  class: "nut-searchbar__search-input",
5173
5213
  style: vue.normalizeStyle(_ctx.inputSearchbarStyle)
5174
5214
  }, [
5175
- _ctx.$slots.leftin ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$q, [
5215
+ _ctx.$slots.leftin ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$r, [
5176
5216
  vue.renderSlot(_ctx.$slots, "leftin")
5177
5217
  ])) : vue.createCommentVNode("", true),
5178
- vue.createElementVNode("view", _hoisted_3$m, [
5218
+ vue.createElementVNode("view", _hoisted_3$l, [
5179
5219
  vue.createElementVNode("form", {
5180
5220
  action: "#",
5181
5221
  onSubmit: _cache[3] || (_cache[3] = vue.withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
@@ -5189,7 +5229,7 @@ var __publicField = (obj, key, value) => {
5189
5229
  onInput: _cache[0] || (_cache[0] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
5190
5230
  onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
5191
5231
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
5192
- }, null, 40, _hoisted_4$h)
5232
+ }, null, 40, _hoisted_4$g)
5193
5233
  ], 32),
5194
5234
  _ctx.clearable ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
5195
5235
  key: 0,
@@ -5296,15 +5336,15 @@ var __publicField = (obj, key, value) => {
5296
5336
  };
5297
5337
  }
5298
5338
  });
5299
- const _hoisted_1$t = { class: "nut-navbar__left" };
5300
- const _hoisted_2$p = { class: "tab-title" };
5301
- const _hoisted_3$l = ["onClick"];
5339
+ const _hoisted_1$u = { class: "nut-navbar__left" };
5340
+ const _hoisted_2$q = { class: "tab-title" };
5341
+ const _hoisted_3$k = ["onClick"];
5302
5342
  function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
5303
5343
  const _component_nut_icon = vue.resolveComponent("nut-icon");
5304
5344
  return vue.openBlock(), vue.createElementBlock("view", {
5305
5345
  class: vue.normalizeClass(_ctx.classes)
5306
5346
  }, [
5307
- vue.createElementVNode("view", _hoisted_1$t, [
5347
+ vue.createElementVNode("view", _hoisted_1$u, [
5308
5348
  _ctx.leftShow ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
5309
5349
  key: 0,
5310
5350
  color: "#979797",
@@ -5326,7 +5366,7 @@ var __publicField = (obj, key, value) => {
5326
5366
  name: _ctx.titIcon,
5327
5367
  onClick: _ctx.handleCenterIcon
5328
5368
  }, null, 8, ["name", "onClick"])) : vue.createCommentVNode("", true),
5329
- vue.createElementVNode("view", _hoisted_2$p, [
5369
+ vue.createElementVNode("view", _hoisted_2$q, [
5330
5370
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tabs, (item, index) => {
5331
5371
  return vue.openBlock(), vue.createElementBlock("view", {
5332
5372
  class: vue.normalizeClass([
@@ -5335,7 +5375,7 @@ var __publicField = (obj, key, value) => {
5335
5375
  ]),
5336
5376
  onClick: ($event) => _ctx.switchTitle(item.id, item.name),
5337
5377
  key: item.id
5338
- }, vue.toDisplayString(item.name), 11, _hoisted_3$l);
5378
+ }, vue.toDisplayString(item.name), 11, _hoisted_3$k);
5339
5379
  }), 128))
5340
5380
  ])
5341
5381
  ], 2)) : vue.createCommentVNode("", true),
@@ -5429,10 +5469,10 @@ var __publicField = (obj, key, value) => {
5429
5469
  return { classes, updateValue, selected };
5430
5470
  }
5431
5471
  });
5432
- const _hoisted_1$s = { class: "nut-fixednav__list" };
5433
- const _hoisted_2$o = ["onClick"];
5434
- const _hoisted_3$k = ["src"];
5435
- const _hoisted_4$g = { class: "span" };
5472
+ const _hoisted_1$t = { class: "nut-fixednav__list" };
5473
+ const _hoisted_2$p = ["onClick"];
5474
+ const _hoisted_3$j = ["src"];
5475
+ const _hoisted_4$f = { class: "span" };
5436
5476
  const _hoisted_5$9 = {
5437
5477
  key: 0,
5438
5478
  class: "b"
@@ -5452,7 +5492,7 @@ var __publicField = (obj, key, value) => {
5452
5492
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
5453
5493
  }, null, 8, ["visible"])) : vue.createCommentVNode("", true),
5454
5494
  vue.renderSlot(_ctx.$slots, "list", {}, () => [
5455
- vue.createElementVNode("view", _hoisted_1$s, [
5495
+ vue.createElementVNode("view", _hoisted_1$t, [
5456
5496
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.navList, (item, index) => {
5457
5497
  return vue.openBlock(), vue.createElementBlock("view", {
5458
5498
  class: "nut-fixednav__list-item",
@@ -5461,10 +5501,10 @@ var __publicField = (obj, key, value) => {
5461
5501
  }, [
5462
5502
  vue.createElementVNode("img", {
5463
5503
  src: item.icon
5464
- }, null, 8, _hoisted_3$k),
5465
- vue.createElementVNode("view", _hoisted_4$g, vue.toDisplayString(item.text), 1),
5504
+ }, null, 8, _hoisted_3$j),
5505
+ vue.createElementVNode("view", _hoisted_4$f, vue.toDisplayString(item.text), 1),
5466
5506
  item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$9, vue.toDisplayString(item.num), 1)) : vue.createCommentVNode("", true)
5467
- ], 8, _hoisted_2$o);
5507
+ ], 8, _hoisted_2$p);
5468
5508
  }), 128))
5469
5509
  ])
5470
5510
  ]),
@@ -5483,218 +5523,270 @@ var __publicField = (obj, key, value) => {
5483
5523
  ], 6);
5484
5524
  }
5485
5525
  var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$A]]);
5486
- var index_vue_vue_type_style_index_0_lang = "";
5487
5526
  const { componentName: componentName$t, create: create$D } = createComponent("menu");
5488
5527
  const _sfc_main$D = create$D({
5489
- components: {
5490
- [_sfc_main$1a.name]: _sfc_main$1a
5491
- },
5492
5528
  props: {
5493
- col: {
5494
- type: [String, Number],
5495
- default: 1
5496
- },
5497
5529
  activeColor: {
5498
5530
  type: String,
5499
- default: "#f00"
5531
+ default: "#FA2C19"
5532
+ },
5533
+ overlay: {
5534
+ type: Boolean,
5535
+ default: true
5536
+ },
5537
+ duration: {
5538
+ type: [Number, String],
5539
+ default: 0
5500
5540
  }
5501
5541
  },
5502
- emits: ["choose"],
5503
- setup(props, { slots, emit }) {
5504
- const menuList = vue.reactive([]);
5505
- let activeTitle = vue.ref("");
5506
- let showMask = vue.ref(false);
5507
- let styleObj = vue.reactive({
5508
- flexBasis: 100 / Number(props.col) + "%"
5509
- });
5510
- let nutMenuIndex = vue.ref("auto");
5511
- let hasOptions = vue.ref(true);
5512
- let isShowCustomer = vue.ref(false);
5513
- if (slots.default) {
5514
- for (let i = 0; i < slots.default().length; i++) {
5515
- if (slots.default()[i].type["name"] === "nut-menu-item") {
5516
- let item = {
5517
- title: slots.default()[i].props["title"],
5518
- disabled: !!slots.default()[i].props["disabled"]
5519
- };
5520
- if (slots.default()[i].props["options"]) {
5521
- item["options"] = slots.default()[i].props["options"];
5522
- } else {
5523
- hasOptions.value = false;
5542
+ setup(props, { emit, slots }) {
5543
+ const barRef = vue.ref();
5544
+ const offset = vue.ref(0);
5545
+ const useChildren = () => {
5546
+ const publicChildren = vue.reactive([]);
5547
+ const internalChildren = vue.reactive([]);
5548
+ const linkChildren2 = (value) => {
5549
+ const link = (child) => {
5550
+ if (child.proxy) {
5551
+ internalChildren.push(child);
5552
+ publicChildren.push(child.proxy);
5524
5553
  }
5525
- menuList.push(item);
5526
- }
5527
- }
5528
- }
5529
- const handleClickTitle = (title, index) => {
5530
- if (!hasOptions.value) {
5531
- if (activeTitle.value) {
5532
- activeTitle.value = "";
5533
- isShowCustomer.value = false;
5534
- showMask.value = false;
5535
- nutMenuIndex.value = "auto";
5536
- } else {
5537
- activeTitle.value = title;
5538
- isShowCustomer.value = true;
5539
- showMask.value = true;
5540
- nutMenuIndex.value = 2001;
5541
- }
5542
- return;
5543
- }
5544
- if (menuList.length > 1) {
5545
- if (activeTitle.value === title) {
5546
- activeTitle.value = "";
5547
- nutMenuIndex.value = "auto";
5548
- showMask.value = false;
5549
- } else {
5550
- activeTitle.value = title;
5551
- nutMenuIndex.value = 2001;
5552
- showMask.value = true;
5553
- }
5554
- } else {
5555
- if (activeTitle.value) {
5556
- activeTitle.value = "";
5557
- nutMenuIndex.value = "auto";
5558
- showMask.value = false;
5559
- } else {
5560
- activeTitle.value = title;
5561
- nutMenuIndex.value = 2001;
5562
- showMask.value = true;
5563
- }
5564
- }
5565
- };
5566
- const handleClickOption = (text, index, value) => {
5567
- menuList[index].title = text;
5568
- activeTitle.value = "";
5569
- showMask.value = false;
5570
- nutMenuIndex.value = "auto";
5571
- emit("choose", text, value);
5554
+ };
5555
+ vue.provide("menuParent", Object.assign({
5556
+ link,
5557
+ children: publicChildren,
5558
+ internalChildren
5559
+ }, value));
5560
+ };
5561
+ return {
5562
+ children: publicChildren,
5563
+ linkChildren: linkChildren2
5564
+ };
5572
5565
  };
5566
+ const { children, linkChildren } = useChildren();
5567
+ const opened = vue.computed(() => children.some((item) => item.state.showWrapper));
5573
5568
  const classes = vue.computed(() => {
5574
5569
  const prefixCls = componentName$t;
5575
5570
  return {
5576
5571
  [prefixCls]: true
5577
5572
  };
5578
5573
  });
5579
- const handleClose = () => {
5580
- activeTitle.value = "";
5581
- nutMenuIndex.value = "auto";
5582
- if (isShowCustomer.value) {
5583
- isShowCustomer.value = false;
5574
+ const updateOffset = () => {
5575
+ if (barRef.value) {
5576
+ const rect = useRect(barRef);
5577
+ offset.value = rect.bottom;
5584
5578
  }
5585
5579
  };
5580
+ linkChildren({ props, offset });
5581
+ const toggleItem = (active) => {
5582
+ children.forEach((item, index) => {
5583
+ if (index === active) {
5584
+ updateOffset();
5585
+ item.toggle();
5586
+ } else if (item.state.showPopup) {
5587
+ item.toggle(false, { immediate: true });
5588
+ }
5589
+ });
5590
+ };
5586
5591
  return {
5587
- menuList,
5588
- activeTitle,
5592
+ toggleItem,
5593
+ children,
5594
+ opened,
5589
5595
  classes,
5590
- showMask,
5591
- styleObj,
5592
- nutMenuIndex,
5593
- hasOptions,
5594
- isShowCustomer,
5595
- handleClickTitle,
5596
- handleClickOption,
5597
- handleClose
5596
+ barRef
5598
5597
  };
5599
5598
  }
5600
5599
  });
5601
- const _hoisted_1$r = { class: "title-list" };
5602
- const _hoisted_2$n = ["onClick"];
5603
- const _hoisted_3$j = ["onClick"];
5604
- const _hoisted_4$f = { class: "customer-item" };
5600
+ const _hoisted_1$s = ["onClick"];
5601
+ const _hoisted_2$o = { class: "nut-menu__title-text" };
5605
5602
  function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
5606
- const _component_nut_popup = vue.resolveComponent("nut-popup");
5607
5603
  const _component_nut_icon = vue.resolveComponent("nut-icon");
5608
- return vue.openBlock(), vue.createElementBlock("view", null, [
5609
- vue.createVNode(_component_nut_popup, vue.mergeProps(_ctx.$attrs, {
5610
- visible: _ctx.showMask,
5611
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showMask = $event),
5612
- onClose: _ctx.handleClose
5613
- }), null, 16, ["visible", "onClose"]),
5614
- vue.createElementVNode("div", {
5615
- class: vue.normalizeClass(_ctx.classes),
5616
- style: vue.normalizeStyle({ "z-index": _ctx.nutMenuIndex })
5604
+ return vue.openBlock(), vue.createElementBlock("view", {
5605
+ class: vue.normalizeClass(_ctx.classes)
5606
+ }, [
5607
+ vue.createElementVNode("view", {
5608
+ class: vue.normalizeClass(["nut-menu__bar", { opened: _ctx.opened }]),
5609
+ ref: "barRef"
5617
5610
  }, [
5618
- vue.createElementVNode("div", _hoisted_1$r, [
5619
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuList, (menu, index) => {
5620
- return vue.openBlock(), vue.createElementBlock("div", {
5621
- key: index,
5622
- class: vue.normalizeClass(["title", {
5623
- "is-active": _ctx.activeTitle === menu.title,
5624
- disabled: menu.disabled
5625
- }]),
5626
- onClick: ($event) => !menu.disabled && _ctx.handleClickTitle(menu.title, index)
5627
- }, [
5628
- vue.createTextVNode(vue.toDisplayString(menu.title) + " ", 1),
5629
- _ctx.activeTitle === menu.title ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
5630
- key: 0,
5631
- size: "10",
5632
- color: "#333",
5633
- name: "arrow-up"
5634
- })) : (vue.openBlock(), vue.createBlock(_component_nut_icon, {
5635
- key: 1,
5636
- size: "10",
5637
- color: "#999",
5638
- name: "arrow-down"
5639
- }))
5640
- ], 10, _hoisted_2$n);
5641
- }), 128))
5642
- ]),
5643
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuList, (menu, index) => {
5644
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
5611
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.children, (item, index) => {
5612
+ return vue.openBlock(), vue.createElementBlock("view", {
5645
5613
  key: index,
5646
- class: "option-list"
5614
+ class: vue.normalizeClass(["nut-menu__item", { disabled: item.disabled }]),
5615
+ onClick: ($event) => !item.disabled && _ctx.toggleItem(index),
5616
+ style: vue.normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
5647
5617
  }, [
5648
- vue.createElementVNode("ul", null, [
5649
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(menu.options, (option, index2) => {
5650
- return vue.openBlock(), vue.createElementBlock("li", {
5651
- key: index2,
5652
- onClick: ($event) => _ctx.handleClickOption(option.text, index, option.value),
5653
- style: vue.normalizeStyle(_ctx.styleObj)
5654
- }, [
5655
- menu.title === option.text ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
5656
- key: 0,
5657
- size: "20",
5658
- color: _ctx.activeColor,
5659
- name: "Check"
5660
- }, null, 8, ["color"])) : vue.createCommentVNode("", true),
5661
- vue.createTextVNode(vue.toDisplayString(option.text), 1)
5662
- ], 12, _hoisted_3$j);
5663
- }), 128))
5664
- ])
5665
- ], 512)), [
5666
- [vue.vShow, _ctx.hasOptions && _ctx.activeTitle === menu.title]
5667
- ]);
5668
- }), 128)),
5669
- vue.withDirectives(vue.createElementVNode("view", _hoisted_4$f, [
5670
- vue.renderSlot(_ctx.$slots, "default")
5671
- ], 512), [
5672
- [vue.vShow, !_ctx.hasOptions && _ctx.isShowCustomer]
5673
- ])
5674
- ], 6)
5675
- ]);
5618
+ vue.createElementVNode("view", {
5619
+ class: vue.normalizeClass(["nut-menu__title", { active: item.state.showPopup }])
5620
+ }, [
5621
+ vue.createElementVNode("view", _hoisted_2$o, vue.toDisplayString(item.renderTitle()), 1),
5622
+ vue.createVNode(_component_nut_icon, {
5623
+ name: item.titleIcon,
5624
+ size: "10",
5625
+ class: "nut-menu__title-icon"
5626
+ }, null, 8, ["name"])
5627
+ ], 2)
5628
+ ], 14, _hoisted_1$s);
5629
+ }), 128))
5630
+ ], 2),
5631
+ vue.renderSlot(_ctx.$slots, "default")
5632
+ ], 2);
5676
5633
  }
5677
5634
  var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$z]]);
5678
- var index_vue_vue_type_style_index_0_scoped_true_lang = "";
5679
- const { create: create$C, componentName: componentName$s } = createComponent("menu-item");
5635
+ const { componentName: componentName$s, create: create$C } = createComponent("menu-item");
5680
5636
  const _sfc_main$C = create$C({
5681
- setup() {
5682
- let pro = vue.getCurrentInstance().proxy;
5683
- pro.toggle = () => {
5684
- pro.$parent.activeTitle = "";
5685
- pro.$parent.isShowCustomer = false;
5686
- pro.$parent.showMask = false;
5687
- pro.$parent.nutMenuIndex = "auto";
5688
- };
5689
- return {};
5637
+ props: {
5638
+ title: String,
5639
+ options: {
5640
+ type: Array,
5641
+ default: []
5642
+ },
5643
+ disabled: {
5644
+ type: Boolean,
5645
+ default: false
5646
+ },
5647
+ modelValue: null,
5648
+ cols: {
5649
+ type: Number,
5650
+ default: 1
5651
+ },
5652
+ titleIcon: {
5653
+ type: String,
5654
+ default: "down-arrow"
5655
+ }
5656
+ },
5657
+ components: {
5658
+ [_sfc_main$1a.name]: _sfc_main$1a,
5659
+ [Popup.name]: Popup
5660
+ },
5661
+ emits: ["update:modelValue", "change"],
5662
+ setup(props, { emit, slots }) {
5663
+ const state = vue.reactive({
5664
+ showPopup: false,
5665
+ transition: true,
5666
+ showWrapper: false,
5667
+ isShowPlaceholderElement: false
5668
+ });
5669
+ const useParent = () => {
5670
+ const parent2 = vue.inject("menuParent", null);
5671
+ if (parent2) {
5672
+ const instance = vue.getCurrentInstance();
5673
+ const { link } = parent2;
5674
+ link(instance);
5675
+ return {
5676
+ parent: parent2
5677
+ };
5678
+ }
5679
+ };
5680
+ const { parent } = useParent();
5681
+ const classes = vue.computed(() => {
5682
+ const prefixCls = componentName$s;
5683
+ return {
5684
+ [prefixCls]: true
5685
+ };
5686
+ });
5687
+ const toggle = (show = !state.showPopup, options = {}) => {
5688
+ if (show === state.showPopup) {
5689
+ return;
5690
+ }
5691
+ state.showPopup = show;
5692
+ state.isShowPlaceholderElement = show;
5693
+ if (show) {
5694
+ state.showWrapper = true;
5695
+ }
5696
+ };
5697
+ const renderTitle = () => {
5698
+ var _a;
5699
+ if (props.title) {
5700
+ return props.title;
5701
+ }
5702
+ const match = (_a = props.options) == null ? void 0 : _a.find((option) => option.value === props.modelValue);
5703
+ return match ? match.text : "";
5704
+ };
5705
+ const onClick = (option) => {
5706
+ state.showPopup = false;
5707
+ state.isShowPlaceholderElement = false;
5708
+ if (option.value !== props.modelValue) {
5709
+ emit("update:modelValue", option.value);
5710
+ emit("change", option.value);
5711
+ }
5712
+ };
5713
+ const handleClose = () => {
5714
+ state.showWrapper = false;
5715
+ state.isShowPlaceholderElement = false;
5716
+ };
5717
+ const handleClickOutside = () => {
5718
+ state.showPopup = false;
5719
+ };
5720
+ return {
5721
+ classes,
5722
+ renderTitle,
5723
+ state,
5724
+ parent,
5725
+ toggle,
5726
+ onClick,
5727
+ handleClose,
5728
+ handleClickOutside
5729
+ };
5690
5730
  }
5691
5731
  });
5732
+ const _hoisted_1$r = { class: "nut-menu-item__content" };
5733
+ const _hoisted_2$n = ["onClick"];
5692
5734
  function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
5693
- return vue.openBlock(), vue.createElementBlock("div", null, [
5694
- vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
5735
+ const _component_nut_icon = vue.resolveComponent("nut-icon");
5736
+ const _component_nut_popup = vue.resolveComponent("nut-popup");
5737
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
5738
+ class: vue.normalizeClass(_ctx.classes)
5739
+ }, [
5740
+ vue.withDirectives(vue.createElementVNode("div", {
5741
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickOutside && _ctx.handleClickOutside(...args)),
5742
+ class: "placeholder-element",
5743
+ style: vue.normalizeStyle({ height: _ctx.parent.offset.value + "px" })
5744
+ }, null, 4), [
5745
+ [vue.vShow, _ctx.state.isShowPlaceholderElement]
5746
+ ]),
5747
+ vue.createVNode(_component_nut_popup, vue.mergeProps({
5748
+ style: { top: _ctx.parent.offset.value + "px" },
5749
+ overlayStyle: { top: _ctx.parent.offset.value + "px" }
5750
+ }, _ctx.$attrs, {
5751
+ visible: _ctx.state.showPopup,
5752
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.state.showPopup = $event),
5753
+ position: "top",
5754
+ duration: _ctx.parent.props.duration,
5755
+ "pop-class": "nut-menu__pop",
5756
+ overlayClass: "nut-menu__overlay",
5757
+ overlay: _ctx.parent.props.overlay,
5758
+ onClosed: _ctx.handleClose,
5759
+ isWrapTeleport: false
5760
+ }), {
5761
+ default: vue.withCtx(() => [
5762
+ vue.createElementVNode("view", _hoisted_1$r, [
5763
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option, index) => {
5764
+ return vue.openBlock(), vue.createElementBlock("view", {
5765
+ key: index,
5766
+ class: vue.normalizeClass(["nut-menu-item__option", { active: option.value === _ctx.modelValue }]),
5767
+ style: vue.normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
5768
+ onClick: ($event) => _ctx.onClick(option)
5769
+ }, [
5770
+ option.value === _ctx.modelValue ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
5771
+ key: 0,
5772
+ name: "Check",
5773
+ color: _ctx.parent.props.activeColor
5774
+ }, null, 8, ["color"])) : vue.createCommentVNode("", true),
5775
+ vue.createElementVNode("view", {
5776
+ style: vue.normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
5777
+ }, vue.toDisplayString(option.text), 5)
5778
+ ], 14, _hoisted_2$n);
5779
+ }), 128)),
5780
+ vue.renderSlot(_ctx.$slots, "default")
5781
+ ])
5782
+ ]),
5783
+ _: 3
5784
+ }, 16, ["style", "overlayStyle", "visible", "duration", "overlay", "onClosed"])
5785
+ ], 2)), [
5786
+ [vue.vShow, _ctx.state.showWrapper]
5695
5787
  ]);
5696
5788
  }
5697
- var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$y], ["__scopeId", "data-v-02edb907"]]);
5789
+ var MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$y]]);
5698
5790
  const { create: create$B } = createComponent("tabbar");
5699
5791
  const _sfc_main$B = create$B({
5700
5792
  props: {
@@ -9075,6 +9167,7 @@ var __publicField = (obj, key, value) => {
9075
9167
  fileItem.status = "ready";
9076
9168
  fileItem.type = file.type;
9077
9169
  fileItem.formData = formData;
9170
+ fileItem.message = "\u7B49\u5F85\u4E0A\u4F20";
9078
9171
  executeUpload(fileItem, index);
9079
9172
  if (props.isPreview && file.type.includes("image")) {
9080
9173
  const reader = new FileReader();
@@ -9169,20 +9262,25 @@ var __publicField = (obj, key, value) => {
9169
9262
  class: "nut-uploader__preview__progress"
9170
9263
  };
9171
9264
  const _hoisted_6$3 = { class: "nut-uploader__preview__progress__msg" };
9172
- const _hoisted_7$3 = ["onClick", "src"];
9173
- const _hoisted_8$3 = {
9174
- key: 3,
9265
+ const _hoisted_7$3 = {
9266
+ key: 1,
9267
+ class: "nut-uploader__preview__progress"
9268
+ };
9269
+ const _hoisted_8$3 = { class: "nut-uploader__preview__progress__msg" };
9270
+ const _hoisted_9$2 = ["onClick", "src"];
9271
+ const _hoisted_10$2 = {
9272
+ key: 4,
9175
9273
  class: "nut-uploader__preview-img__file"
9176
9274
  };
9177
- const _hoisted_9$2 = ["onClick"];
9178
- const _hoisted_10$2 = { class: "tips" };
9179
- const _hoisted_11$2 = {
9275
+ const _hoisted_11$2 = ["onClick"];
9276
+ const _hoisted_12$2 = { class: "tips" };
9277
+ const _hoisted_13$1 = {
9180
9278
  key: 1,
9181
9279
  class: "nut-uploader__preview-list"
9182
9280
  };
9183
- const _hoisted_12$2 = ["onClick"];
9184
- const _hoisted_13$1 = ["accept", "multiple", "name", "disabled"];
9185
- const _hoisted_14$1 = ["accept", "multiple", "name", "disabled"];
9281
+ const _hoisted_14$1 = ["onClick"];
9282
+ const _hoisted_15$1 = ["accept", "multiple", "name", "disabled"];
9283
+ const _hoisted_16$1 = ["accept", "multiple", "name", "disabled"];
9186
9284
  function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
9187
9285
  const _component_nut_icon = vue.resolveComponent("nut-icon");
9188
9286
  const _component_nut_progress = vue.resolveComponent("nut-progress");
@@ -9220,26 +9318,28 @@ var __publicField = (obj, key, value) => {
9220
9318
  key: item.uid
9221
9319
  }, [
9222
9320
  _ctx.listType == "picture" && !_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$9, [
9223
- item.status != "success" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$5, [
9321
+ item.status == "ready" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$5, [
9322
+ vue.createElementVNode("view", _hoisted_6$3, vue.toDisplayString(item.message), 1)
9323
+ ])) : item.status != "success" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$3, [
9224
9324
  vue.createVNode(_component_nut_icon, {
9225
9325
  color: "#fff",
9226
9326
  name: item.status == "error" ? "failure" : "loading"
9227
9327
  }, null, 8, ["name"]),
9228
- vue.createElementVNode("view", _hoisted_6$3, vue.toDisplayString(item.message), 1)
9328
+ vue.createElementVNode("view", _hoisted_8$3, vue.toDisplayString(item.message), 1)
9229
9329
  ])) : vue.createCommentVNode("", true),
9230
9330
  _ctx.isDeletable ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
9231
- key: 1,
9331
+ key: 2,
9232
9332
  color: "rgba(0,0,0,0.6)",
9233
9333
  onClick: ($event) => _ctx.onDelete(item, index),
9234
9334
  class: "close",
9235
9335
  name: "failure"
9236
9336
  }, null, 8, ["onClick"])) : vue.createCommentVNode("", true),
9237
9337
  item.type.includes("image") && item.url ? (vue.openBlock(), vue.createElementBlock("img", {
9238
- key: 2,
9338
+ key: 3,
9239
9339
  class: "nut-uploader__preview-img__c",
9240
9340
  onClick: ($event) => _ctx.fileItemClick(item),
9241
9341
  src: item.url
9242
- }, null, 8, _hoisted_7$3)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_8$3, [
9342
+ }, null, 8, _hoisted_9$2)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_10$2, [
9243
9343
  vue.createElementVNode("view", {
9244
9344
  onClick: ($event) => _ctx.fileItemClick(item),
9245
9345
  class: "nut-uploader__preview-img__file__name"
@@ -9249,17 +9349,17 @@ var __publicField = (obj, key, value) => {
9249
9349
  name: "link"
9250
9350
  }),
9251
9351
  vue.createTextVNode("\xA0" + vue.toDisplayString(item.name), 1)
9252
- ], 8, _hoisted_9$2)
9352
+ ], 8, _hoisted_11$2)
9253
9353
  ])),
9254
- vue.createElementVNode("view", _hoisted_10$2, vue.toDisplayString(item.name), 1)
9255
- ])) : _ctx.listType == "list" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11$2, [
9354
+ vue.createElementVNode("view", _hoisted_12$2, vue.toDisplayString(item.name), 1)
9355
+ ])) : _ctx.listType == "list" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_13$1, [
9256
9356
  vue.createElementVNode("view", {
9257
9357
  onClick: ($event) => _ctx.fileItemClick(item),
9258
9358
  class: vue.normalizeClass(["nut-uploader__preview-img__file__name", [item.status]])
9259
9359
  }, [
9260
9360
  vue.createVNode(_component_nut_icon, { name: "link" }),
9261
9361
  vue.createTextVNode("\xA0" + vue.toDisplayString(item.name), 1)
9262
- ], 10, _hoisted_12$2),
9362
+ ], 10, _hoisted_14$1),
9263
9363
  vue.createVNode(_component_nut_icon, {
9264
9364
  class: "nut-uploader__preview-img__file__del",
9265
9365
  onClick: ($event) => _ctx.onDelete(item, index),
@@ -9295,7 +9395,7 @@ var __publicField = (obj, key, value) => {
9295
9395
  name: _ctx.name,
9296
9396
  disabled: _ctx.disabled,
9297
9397
  onChange: _cache[2] || (_cache[2] = (...args) => _ctx.onChange && _ctx.onChange(...args))
9298
- }, null, 40, _hoisted_13$1)) : (vue.openBlock(), vue.createElementBlock("input", {
9398
+ }, null, 40, _hoisted_15$1)) : (vue.openBlock(), vue.createElementBlock("input", {
9299
9399
  key: 1,
9300
9400
  class: "nut-uploader__input",
9301
9401
  type: "file",
@@ -9304,7 +9404,7 @@ var __publicField = (obj, key, value) => {
9304
9404
  name: _ctx.name,
9305
9405
  disabled: _ctx.disabled,
9306
9406
  onChange: _cache[3] || (_cache[3] = (...args) => _ctx.onChange && _ctx.onChange(...args))
9307
- }, null, 40, _hoisted_14$1))
9407
+ }, null, 40, _hoisted_16$1))
9308
9408
  ], 2)) : vue.createCommentVNode("", true)
9309
9409
  ], 2);
9310
9410
  }
@@ -12106,7 +12206,7 @@ var __publicField = (obj, key, value) => {
12106
12206
  }
12107
12207
  });
12108
12208
  }
12109
- const version = "3.1.11";
12209
+ const version = "3.1.12-beta.0";
12110
12210
  var nutui_vue_build = { install, version };
12111
12211
  exports2.ActionSheet = ActionSheet;
12112
12212
  exports2.Address = Address;