@nutui/nutui 3.1.17 → 3.1.18-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 (117) hide show
  1. package/README.md +1 -1
  2. package/dist/nutui.es.js +179 -162
  3. package/dist/nutui.umd.js +183 -165
  4. package/dist/packages/_es/ActionSheet.js +7 -2
  5. package/dist/packages/_es/Address.js +1 -1
  6. package/dist/packages/_es/Audio.js +1 -1
  7. package/dist/packages/_es/Avatar.js +1 -1
  8. package/dist/packages/_es/BackTop.js +3 -3
  9. package/dist/packages/_es/Badge.js +1 -1
  10. package/dist/packages/_es/Barrage.js +1 -1
  11. package/dist/packages/_es/Button.js +1 -1
  12. package/dist/packages/_es/Calendar.js +1 -1
  13. package/dist/packages/_es/Card.js +1 -1
  14. package/dist/packages/_es/Cascader.js +1 -1
  15. package/dist/packages/_es/Cell.js +2 -2
  16. package/dist/packages/_es/CellGroup.js +1 -1
  17. package/dist/packages/_es/Checkbox.js +1 -1
  18. package/dist/packages/_es/CheckboxGroup.js +2 -2
  19. package/dist/packages/_es/CircleProgress.js +1 -1
  20. package/dist/packages/_es/Col.js +1 -1
  21. package/dist/packages/_es/Collapse.js +1 -1
  22. package/dist/packages/_es/CollapseItem.js +4 -2
  23. package/dist/packages/_es/CountDown.js +1 -1
  24. package/dist/packages/_es/CountUp.js +1 -1
  25. package/dist/packages/_es/DatePicker.js +1 -1
  26. package/dist/packages/_es/Dialog.js +1 -1
  27. package/dist/packages/_es/Divider.js +1 -1
  28. package/dist/packages/_es/Drag.js +1 -1
  29. package/dist/packages/_es/Elevator.js +2 -2
  30. package/dist/packages/_es/Empty.js +1 -1
  31. package/dist/packages/_es/FixedNav.js +1 -1
  32. package/dist/packages/_es/Form.js +1 -1
  33. package/dist/packages/_es/FormItem.js +1 -1
  34. package/dist/packages/_es/Grid.js +1 -1
  35. package/dist/packages/_es/GridItem.js +2 -2
  36. package/dist/packages/_es/Icon.js +1 -1
  37. package/dist/packages/_es/ImagePreview.js +8 -3
  38. package/dist/packages/_es/Indicator.js +1 -1
  39. package/dist/packages/_es/InfiniteLoading.js +1 -1
  40. package/dist/packages/_es/Input.js +1 -1
  41. package/dist/packages/_es/InputNumber.js +1 -1
  42. package/dist/packages/_es/Layout.js +1 -1
  43. package/dist/packages/_es/Menu.js +2 -2
  44. package/dist/packages/_es/MenuItem.js +1 -1
  45. package/dist/packages/_es/Navbar.js +18 -59
  46. package/dist/packages/_es/NoticeBar.js +38 -20
  47. package/dist/packages/_es/Notify.js +2 -2
  48. package/dist/packages/_es/NumberKeyboard.js +1 -1
  49. package/dist/packages/_es/OverLay.js +1 -1
  50. package/dist/packages/_es/Pagination.js +1 -1
  51. package/dist/packages/_es/Picker.js +2 -1
  52. package/dist/packages/_es/Popover.js +4 -1
  53. package/dist/packages/_es/Popup.js +1 -1
  54. package/dist/packages/_es/Price.js +1 -1
  55. package/dist/packages/_es/Progress.js +1 -1
  56. package/dist/packages/_es/Radio.js +1 -1
  57. package/dist/packages/_es/RadioGroup.js +1 -1
  58. package/dist/packages/_es/Range.js +3 -3
  59. package/dist/packages/_es/Rate.js +1 -1
  60. package/dist/packages/_es/Row.js +1 -1
  61. package/dist/packages/_es/SearchBar.js +1 -1
  62. package/dist/packages/_es/ShortPassword.js +8 -3
  63. package/dist/packages/_es/SideNavBar.js +1 -1
  64. package/dist/packages/_es/SideNavBarItem.js +1 -1
  65. package/dist/packages/_es/Signature.js +1 -1
  66. package/dist/packages/_es/Skeleton.js +1 -1
  67. package/dist/packages/_es/Sku.js +1 -1
  68. package/dist/packages/_es/Step.js +1 -1
  69. package/dist/packages/_es/Steps.js +1 -1
  70. package/dist/packages/_es/Sticky.js +2 -2
  71. package/dist/packages/_es/SubSideNavBar.js +1 -1
  72. package/dist/packages/_es/Swipe.js +2 -2
  73. package/dist/packages/_es/Swiper.js +2 -2
  74. package/dist/packages/_es/SwiperItem.js +2 -2
  75. package/dist/packages/_es/Switch.js +1 -1
  76. package/dist/packages/_es/TabPane.js +1 -1
  77. package/dist/packages/_es/Tabbar.js +1 -1
  78. package/dist/packages/_es/TabbarItem.js +7 -3
  79. package/dist/packages/_es/Table.js +1 -1
  80. package/dist/packages/_es/Tabs.js +1 -1
  81. package/dist/packages/_es/Tag.js +1 -1
  82. package/dist/packages/_es/TextArea.js +1 -1
  83. package/dist/packages/_es/TimeDetail.js +1 -1
  84. package/dist/packages/_es/TimePannel.js +1 -1
  85. package/dist/packages/_es/TimeSelect.js +7 -2
  86. package/dist/packages/_es/Toast.js +15 -8
  87. package/dist/packages/_es/Uploader.js +1 -1
  88. package/dist/packages/_es/Video.js +1 -1
  89. package/dist/packages/_es/common.js +1 -1
  90. package/dist/packages/_es/component.js +1 -1
  91. package/dist/packages/_es/index.js +5 -7
  92. package/dist/packages/_es/index2.js +8 -31
  93. package/dist/packages/_es/index3.js +28 -56
  94. package/dist/packages/_es/index4.js +64 -0
  95. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  96. package/dist/packages/_es/pxCheck.js +1 -1
  97. package/dist/packages/_es/raf.js +1 -1
  98. package/dist/packages/_es/util.js +1 -1
  99. package/dist/packages/actionsheet/index.scss +7 -6
  100. package/dist/packages/button/index.scss +5 -5
  101. package/dist/packages/cell/index.scss +3 -3
  102. package/dist/packages/cellgroup/index.scss +1 -1
  103. package/dist/packages/navbar/index.scss +2 -0
  104. package/dist/packages/noticebar/index.scss +11 -5
  105. package/dist/packages/notify/index.scss +1 -0
  106. package/dist/packages/progress/index.scss +21 -17
  107. package/dist/packages/range/index.scss +4 -4
  108. package/dist/packages/swiper/index.scss +4 -4
  109. package/dist/packages/switch/index.scss +8 -8
  110. package/dist/packages/tabbar/index.scss +3 -2
  111. package/dist/packages/tabbaritem/index.scss +4 -3
  112. package/dist/packages/tabs/index.scss +1 -0
  113. package/dist/packages/toast/index.scss +8 -7
  114. package/dist/style.css +1 -1
  115. package/dist/styles/themes/default.scss +41 -41
  116. package/dist/styles/variables.scss +89 -11
  117. package/package.json +2 -2
package/dist/nutui.umd.js CHANGED
@@ -35,13 +35,13 @@ var __publicField = (obj, key, value) => {
35
35
  return value;
36
36
  };
37
37
  /*!
38
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:11 GMT+0800 (中国标准时间)
38
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:28 GMT+0800 (中国标准时间)
39
39
  * (c) 2021 @jdf2e.
40
40
  * Released under the MIT License.
41
41
  */
42
42
  (function(global, factory) {
43
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("vue-router")) : typeof define === "function" && define.amd ? define(["exports", "vue", "vue-router"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.nutui = {}, global.Vue, global.vueRouter));
44
- })(this, function(exports2, vue, vueRouter) {
43
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue")) : typeof define === "function" && define.amd ? define(["exports", "vue"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.nutui = {}, global.Vue));
44
+ })(this, function(exports2, vue) {
45
45
  "use strict";
46
46
  function createComponent(name) {
47
47
  const componentName2 = "nut-" + name;
@@ -307,6 +307,10 @@ var __publicField = (obj, key, value) => {
307
307
  ], 6);
308
308
  }
309
309
  var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1j]]);
310
+ function useRouter() {
311
+ const proxy = vue.getCurrentInstance().proxy;
312
+ return proxy.$router || null;
313
+ }
310
314
  const { componentName: componentName$15, create: create$1q } = createComponent("cell");
311
315
  const _sfc_main$1q = create$1q({
312
316
  props: {
@@ -330,7 +334,7 @@ var __publicField = (obj, key, value) => {
330
334
  [`${prefixCls}--clickable`]: props.isLink || props.to
331
335
  };
332
336
  });
333
- const router = vueRouter.useRouter();
337
+ const router = useRouter();
334
338
  const baseStyle = vue.computed(() => {
335
339
  return {
336
340
  borderRadius: pxCheck(props.roundRadius)
@@ -352,7 +356,7 @@ var __publicField = (obj, key, value) => {
352
356
  }
353
357
  });
354
358
  const _hoisted_1$10 = { class: "title" };
355
- const _hoisted_2$Q = { class: "nut-cell__title-desc" };
359
+ const _hoisted_2$R = { class: "nut-cell__title-desc" };
356
360
  function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
357
361
  const _component_nut_icon = vue.resolveComponent("nut-icon");
358
362
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -372,7 +376,7 @@ var __publicField = (obj, key, value) => {
372
376
  }, null, 8, ["name"])) : vue.createCommentVNode("", true),
373
377
  _ctx.subTitle ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
374
378
  vue.createElementVNode("view", _hoisted_1$10, vue.toDisplayString(_ctx.title), 1),
375
- vue.createElementVNode("view", _hoisted_2$Q, vue.toDisplayString(_ctx.subTitle), 1)
379
+ vue.createElementVNode("view", _hoisted_2$R, vue.toDisplayString(_ctx.subTitle), 1)
376
380
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
377
381
  vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
378
382
  ], 64))
@@ -413,18 +417,18 @@ var __publicField = (obj, key, value) => {
413
417
  key: 1,
414
418
  class: "nut-cell-group__title"
415
419
  };
416
- const _hoisted_2$P = {
420
+ const _hoisted_2$Q = {
417
421
  key: 3,
418
422
  class: "nut-cell-group__desc"
419
423
  };
420
- const _hoisted_3$D = { class: "nut-cell-group__warp" };
424
+ const _hoisted_3$E = { class: "nut-cell-group__warp" };
421
425
  function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
422
426
  return vue.openBlock(), vue.createElementBlock("view", {
423
427
  class: vue.normalizeClass(_ctx.classes)
424
428
  }, [
425
429
  _ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$$, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
426
- _ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$P, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
427
- vue.createElementVNode("view", _hoisted_3$D, [
430
+ _ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$Q, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
431
+ vue.createElementVNode("view", _hoisted_3$E, [
428
432
  vue.renderSlot(_ctx.$slots, "default")
429
433
  ])
430
434
  ], 2);
@@ -515,7 +519,7 @@ var __publicField = (obj, key, value) => {
515
519
  }
516
520
  });
517
521
  const _hoisted_1$_ = ["innerHTML"];
518
- const _hoisted_2$O = ["innerHTML"];
522
+ const _hoisted_2$P = ["innerHTML"];
519
523
  function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
520
524
  return vue.openBlock(), vue.createElementBlock("view", {
521
525
  class: vue.normalizeClass(_ctx.classes)
@@ -539,7 +543,7 @@ var __publicField = (obj, key, value) => {
539
543
  key: 2,
540
544
  class: vue.normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
541
545
  innerHTML: _ctx.showSymbol
542
- }, null, 10, _hoisted_2$O)) : vue.createCommentVNode("", true)
546
+ }, null, 10, _hoisted_2$P)) : vue.createCommentVNode("", true)
543
547
  ], 2);
544
548
  }
545
549
  var Price = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1g]]);
@@ -1276,8 +1280,8 @@ var __publicField = (obj, key, value) => {
1276
1280
  class: "nut-video",
1277
1281
  ref: "videocon"
1278
1282
  };
1279
- const _hoisted_2$N = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
1280
- const _hoisted_3$C = ["src", "type"];
1283
+ const _hoisted_2$O = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
1284
+ const _hoisted_3$D = ["src", "type"];
1281
1285
  const _hoisted_4$t = { class: "current-time" };
1282
1286
  const _hoisted_5$k = { class: "progress-container" };
1283
1287
  const _hoisted_6$h = {
@@ -1311,8 +1315,8 @@ var __publicField = (obj, key, value) => {
1311
1315
  vue.createElementVNode("source", {
1312
1316
  src: _ctx.source.src,
1313
1317
  type: _ctx.source.type
1314
- }, null, 8, _hoisted_3$C)
1315
- ], 40, _hoisted_2$N),
1318
+ }, null, 8, _hoisted_3$D)
1319
+ ], 40, _hoisted_2$O),
1316
1320
  _ctx.showToolbox && !_ctx.isDisabled ? (vue.openBlock(), vue.createElementBlock("div", {
1317
1321
  key: 0,
1318
1322
  class: "playing-mask",
@@ -1881,6 +1885,10 @@ var __publicField = (obj, key, value) => {
1881
1885
  autoplay: {
1882
1886
  type: [Number, String],
1883
1887
  default: 3e3
1888
+ },
1889
+ isWrapTeleport: {
1890
+ type: Boolean,
1891
+ default: false
1884
1892
  }
1885
1893
  },
1886
1894
  emits: ["close"],
@@ -2020,7 +2028,7 @@ var __publicField = (obj, key, value) => {
2020
2028
  }
2021
2029
  });
2022
2030
  const _hoisted_1$X = ["src"];
2023
- const _hoisted_2$M = { class: "nut-imagepreview-index" };
2031
+ const _hoisted_2$N = { class: "nut-imagepreview-index" };
2024
2032
  function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
2025
2033
  const _component_nut_video = vue.resolveComponent("nut-video");
2026
2034
  const _component_nut_swiper_item = vue.resolveComponent("nut-swiper-item");
@@ -2030,6 +2038,7 @@ var __publicField = (obj, key, value) => {
2030
2038
  "pop-class": "custom-pop",
2031
2039
  visible: _ctx.showPop,
2032
2040
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.showPop = $event),
2041
+ isWrapTeleport: _ctx.isWrapTeleport,
2033
2042
  onClick: _ctx.onClose,
2034
2043
  style: { "width": "100%" }
2035
2044
  }, {
@@ -2078,10 +2087,10 @@ var __publicField = (obj, key, value) => {
2078
2087
  _: 1
2079
2088
  }, 8, ["auto-play", "onChange", "init-page", "pagination-visible", "pagination-color"])) : vue.createCommentVNode("", true)
2080
2089
  ], 32),
2081
- vue.createElementVNode("view", _hoisted_2$M, vue.toDisplayString(_ctx.active) + " / " + vue.toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
2090
+ vue.createElementVNode("view", _hoisted_2$N, vue.toDisplayString(_ctx.active) + " / " + vue.toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
2082
2091
  ]),
2083
2092
  _: 1
2084
- }, 8, ["visible", "onClick"]);
2093
+ }, 8, ["visible", "isWrapTeleport", "onClick"]);
2085
2094
  }
2086
2095
  var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$17]]);
2087
2096
  class ImagePreviewOptions {
@@ -2502,8 +2511,8 @@ var __publicField = (obj, key, value) => {
2502
2511
  class: "nut-swipe__left",
2503
2512
  ref: "leftRef"
2504
2513
  };
2505
- const _hoisted_2$L = { class: "nut-swipe__content" };
2506
- const _hoisted_3$B = {
2514
+ const _hoisted_2$M = { class: "nut-swipe__content" };
2515
+ const _hoisted_3$C = {
2507
2516
  class: "nut-swipe__right",
2508
2517
  ref: "rightRef"
2509
2518
  };
@@ -2519,10 +2528,10 @@ var __publicField = (obj, key, value) => {
2519
2528
  vue.createElementVNode("view", _hoisted_1$W, [
2520
2529
  vue.renderSlot(_ctx.$slots, "left")
2521
2530
  ], 512),
2522
- vue.createElementVNode("view", _hoisted_2$L, [
2531
+ vue.createElementVNode("view", _hoisted_2$M, [
2523
2532
  vue.renderSlot(_ctx.$slots, "default")
2524
2533
  ]),
2525
- vue.createElementVNode("view", _hoisted_3$B, [
2534
+ vue.createElementVNode("view", _hoisted_3$C, [
2526
2535
  vue.renderSlot(_ctx.$slots, "right")
2527
2536
  ], 512)
2528
2537
  ], 38);
@@ -2562,6 +2571,10 @@ var __publicField = (obj, key, value) => {
2562
2571
  menuItems: {
2563
2572
  type: Array,
2564
2573
  default: () => []
2574
+ },
2575
+ isWrapTeleport: {
2576
+ type: Boolean,
2577
+ default: true
2565
2578
  }
2566
2579
  }),
2567
2580
  emits: ["cancel", "close", "choose", "update:visible"],
@@ -2599,11 +2612,11 @@ var __publicField = (obj, key, value) => {
2599
2612
  }
2600
2613
  });
2601
2614
  const _hoisted_1$V = { class: "nut-actionsheet-panel" };
2602
- const _hoisted_2$K = {
2615
+ const _hoisted_2$L = {
2603
2616
  key: 0,
2604
2617
  class: "nut-actionsheet-title"
2605
2618
  };
2606
- const _hoisted_3$A = {
2619
+ const _hoisted_3$B = {
2607
2620
  key: 1,
2608
2621
  class: "nut-actionsheet-item desc"
2609
2622
  };
@@ -2621,14 +2634,15 @@ var __publicField = (obj, key, value) => {
2621
2634
  vue.createVNode(_component_nut_popup, {
2622
2635
  "pop-class": "popclass",
2623
2636
  visible: _ctx.visible,
2637
+ isWrapTeleport: _ctx.isWrapTeleport,
2624
2638
  position: "bottom",
2625
2639
  round: "",
2626
2640
  onClickOverlay: _ctx.close
2627
2641
  }, {
2628
2642
  default: vue.withCtx(() => [
2629
2643
  vue.createElementVNode("view", _hoisted_1$V, [
2630
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$K, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
2631
- _ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$A, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
2644
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$L, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
2645
+ _ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$B, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
2632
2646
  _ctx.menuItems.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$s, [
2633
2647
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuItems, (item, index) => {
2634
2648
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -2650,7 +2664,7 @@ var __publicField = (obj, key, value) => {
2650
2664
  ])
2651
2665
  ]),
2652
2666
  _: 1
2653
- }, 8, ["visible", "onClickOverlay"])
2667
+ }, 8, ["visible", "isWrapTeleport", "onClickOverlay"])
2654
2668
  ], 2);
2655
2669
  }
2656
2670
  var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$15]]);
@@ -2666,8 +2680,8 @@ var __publicField = (obj, key, value) => {
2666
2680
  default: 10
2667
2681
  },
2668
2682
  elId: {
2669
- type: String,
2670
- default: ""
2683
+ type: [String, Element],
2684
+ default: "body"
2671
2685
  },
2672
2686
  distance: {
2673
2687
  type: Number,
@@ -2944,7 +2958,9 @@ var __publicField = (obj, key, value) => {
2944
2958
  const contentRef = vue.ref(null);
2945
2959
  const onTransitionEnd = () => {
2946
2960
  const wrapperRefEle = document.getElementsByClassName("collapse-wrapper")[0];
2947
- wrapperRefEle.style.willChange = "auto";
2961
+ if (wrapperRefEle) {
2962
+ wrapperRefEle.style.willChange = "auto";
2963
+ }
2948
2964
  };
2949
2965
  const animation = () => {
2950
2966
  const wrapperRefEle = wrapperRef.value;
@@ -3046,8 +3062,8 @@ var __publicField = (obj, key, value) => {
3046
3062
  }
3047
3063
  });
3048
3064
  const _hoisted_1$U = { class: "collapse-title" };
3049
- const _hoisted_2$J = { class: "collapse-title-value" };
3050
- const _hoisted_3$z = ["innerHTML"];
3065
+ const _hoisted_2$K = { class: "collapse-title-value" };
3066
+ const _hoisted_3$A = ["innerHTML"];
3051
3067
  const _hoisted_4$r = {
3052
3068
  key: 0,
3053
3069
  class: "subTitle"
@@ -3072,7 +3088,7 @@ var __publicField = (obj, key, value) => {
3072
3088
  }, [
3073
3089
  vue.createElementVNode("view", _hoisted_1$U, [
3074
3090
  vue.createElementVNode("view", null, [
3075
- vue.createElementVNode("view", _hoisted_2$J, [
3091
+ vue.createElementVNode("view", _hoisted_2$K, [
3076
3092
  _ctx.titleIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
3077
3093
  key: 0,
3078
3094
  name: _ctx.titleIcon,
@@ -3084,7 +3100,7 @@ var __publicField = (obj, key, value) => {
3084
3100
  key: 2,
3085
3101
  innerHTML: _ctx.title,
3086
3102
  class: "collapse-icon-title"
3087
- }, null, 8, _hoisted_3$z))
3103
+ }, null, 8, _hoisted_3$A))
3088
3104
  ])
3089
3105
  ])
3090
3106
  ]),
@@ -3428,7 +3444,7 @@ var __publicField = (obj, key, value) => {
3428
3444
  key: 0,
3429
3445
  class: "nut-dialog__header"
3430
3446
  };
3431
- const _hoisted_2$I = ["innerHTML"];
3447
+ const _hoisted_2$J = ["innerHTML"];
3432
3448
  function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
3433
3449
  const _component_nut_button = vue.resolveComponent("nut-button");
3434
3450
  const _component_nut_popup = vue.resolveComponent("nut-popup");
@@ -3458,7 +3474,7 @@ var __publicField = (obj, key, value) => {
3458
3474
  _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", {
3459
3475
  key: 1,
3460
3476
  innerHTML: _ctx.content
3461
- }, null, 8, _hoisted_2$I))
3477
+ }, null, 8, _hoisted_2$J))
3462
3478
  ], 4),
3463
3479
  !_ctx.noFooter ? (vue.openBlock(), vue.createElementBlock("view", {
3464
3480
  key: 1,
@@ -3760,8 +3776,8 @@ var __publicField = (obj, key, value) => {
3760
3776
  }
3761
3777
  });
3762
3778
  const _hoisted_1$S = { class: "top-box" };
3763
- const _hoisted_2$H = { class: "top-text" };
3764
- const _hoisted_3$y = { class: "nut-infinite-container" };
3779
+ const _hoisted_2$I = { class: "top-text" };
3780
+ const _hoisted_3$z = { class: "nut-infinite-container" };
3765
3781
  const _hoisted_4$q = { class: "nut-infinite-bottom" };
3766
3782
  const _hoisted_5$h = {
3767
3783
  key: 0,
@@ -3791,10 +3807,10 @@ var __publicField = (obj, key, value) => {
3791
3807
  class: "top-img",
3792
3808
  name: _ctx.pullIcon
3793
3809
  }, null, 8, ["name"]),
3794
- vue.createElementVNode("view", _hoisted_2$H, vue.toDisplayString(_ctx.pullTxt), 1)
3810
+ vue.createElementVNode("view", _hoisted_2$I, vue.toDisplayString(_ctx.pullTxt), 1)
3795
3811
  ])
3796
3812
  ], 4),
3797
- vue.createElementVNode("view", _hoisted_3$y, [
3813
+ vue.createElementVNode("view", _hoisted_3$z, [
3798
3814
  vue.renderSlot(_ctx.$slots, "default")
3799
3815
  ]),
3800
3816
  vue.createElementVNode("view", _hoisted_4$q, [
@@ -3887,7 +3903,7 @@ var __publicField = (obj, key, value) => {
3887
3903
  }, {
3888
3904
  default: vue.withCtx(() => [
3889
3905
  vue.withDirectives(vue.createElementVNode("view", {
3890
- class: vue.normalizeClass(["popup-top", "nut-notify", `nut-notify--${_ctx.type}`, { className: _ctx.className }]),
3906
+ class: vue.normalizeClass(["popup-top", "nut-notify", `nut-notify--${_ctx.type}`, [_ctx.className]]),
3891
3907
  style: vue.normalizeStyle({ color: _ctx.color, background: _ctx.background }),
3892
3908
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clickCover && _ctx.clickCover(...args))
3893
3909
  }, [
@@ -4208,11 +4224,11 @@ var __publicField = (obj, key, value) => {
4208
4224
  }
4209
4225
  });
4210
4226
  const _hoisted_1$R = { class: "nut-range-container" };
4211
- const _hoisted_2$G = {
4227
+ const _hoisted_2$H = {
4212
4228
  key: 0,
4213
4229
  class: "min"
4214
4230
  };
4215
- const _hoisted_3$x = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
4231
+ const _hoisted_3$y = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
4216
4232
  const _hoisted_4$p = {
4217
4233
  key: 0,
4218
4234
  class: "number"
@@ -4228,7 +4244,7 @@ var __publicField = (obj, key, value) => {
4228
4244
  };
4229
4245
  function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
4230
4246
  return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$R, [
4231
- !_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$G, vue.toDisplayString(+_ctx.min), 1)) : vue.createCommentVNode("", true),
4247
+ !_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$H, vue.toDisplayString(+_ctx.min), 1)) : vue.createCommentVNode("", true),
4232
4248
  vue.createElementVNode("view", {
4233
4249
  ref: "root",
4234
4250
  style: vue.normalizeStyle(_ctx.wrapperStyle),
@@ -4270,7 +4286,7 @@ var __publicField = (obj, key, value) => {
4270
4286
  }, [
4271
4287
  !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$p, vue.toDisplayString(_ctx.curValue(index)), 1)) : vue.createCommentVNode("", true)
4272
4288
  ], 4))
4273
- ], 42, _hoisted_3$x);
4289
+ ], 42, _hoisted_3$y);
4274
4290
  }), 64)) : (vue.openBlock(), vue.createElementBlock("view", {
4275
4291
  key: 1,
4276
4292
  role: "slider",
@@ -4739,8 +4755,8 @@ var __publicField = (obj, key, value) => {
4739
4755
  }
4740
4756
  });
4741
4757
  const _hoisted_1$P = { class: "nut-step-head" };
4742
- const _hoisted_2$F = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-step-line" }, null, -1);
4743
- const _hoisted_3$w = {
4758
+ const _hoisted_2$G = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-step-line" }, null, -1);
4759
+ const _hoisted_3$x = {
4744
4760
  key: 2,
4745
4761
  class: "nut-step-inner"
4746
4762
  };
@@ -4753,7 +4769,7 @@ var __publicField = (obj, key, value) => {
4753
4769
  class: vue.normalizeClass(_ctx.classes)
4754
4770
  }, [
4755
4771
  vue.createElementVNode("view", _hoisted_1$P, [
4756
- _hoisted_2$F,
4772
+ _hoisted_2$G,
4757
4773
  vue.createElementVNode("view", {
4758
4774
  class: vue.normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
4759
4775
  }, [
@@ -4763,7 +4779,7 @@ var __publicField = (obj, key, value) => {
4763
4779
  color: _ctx.iconColor,
4764
4780
  name: _ctx.icon,
4765
4781
  size: _ctx.size
4766
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$w, vue.toDisplayString(_ctx.index), 1))
4782
+ }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$x, vue.toDisplayString(_ctx.index), 1))
4767
4783
  ], 2)
4768
4784
  ]),
4769
4785
  vue.createElementVNode("view", _hoisted_4$o, [
@@ -4914,6 +4930,10 @@ var __publicField = (obj, key, value) => {
4914
4930
  type: [String, Number],
4915
4931
  default: "base"
4916
4932
  },
4933
+ iconSize: {
4934
+ type: String,
4935
+ default: "20"
4936
+ },
4917
4937
  icon: String,
4918
4938
  textAlignCenter: {
4919
4939
  type: Boolean,
@@ -4925,7 +4945,7 @@ var __publicField = (obj, key, value) => {
4925
4945
  },
4926
4946
  bgColor: {
4927
4947
  type: String,
4928
- default: "rgba(0, 0, 0, .8)"
4948
+ default: ""
4929
4949
  },
4930
4950
  onClose: Function,
4931
4951
  unmount: Function,
@@ -4935,7 +4955,7 @@ var __publicField = (obj, key, value) => {
4935
4955
  },
4936
4956
  coverColor: {
4937
4957
  type: String,
4938
- default: "rgba(0, 0, 0, 0)"
4958
+ default: ""
4939
4959
  },
4940
4960
  title: {
4941
4961
  type: String,
@@ -4946,7 +4966,8 @@ var __publicField = (obj, key, value) => {
4946
4966
  default: false
4947
4967
  }
4948
4968
  },
4949
- setup(props) {
4969
+ emits: ["close"],
4970
+ setup(props, { emit }) {
4950
4971
  let timer;
4951
4972
  const state = vue.reactive({
4952
4973
  mounted: false
@@ -4974,6 +4995,7 @@ var __publicField = (obj, key, value) => {
4974
4995
  const clickCover = () => {
4975
4996
  if (props.closeOnClickOverlay) {
4976
4997
  hide();
4998
+ emit("close");
4977
4999
  }
4978
5000
  };
4979
5001
  if (props.duration) {
@@ -5021,11 +5043,11 @@ var __publicField = (obj, key, value) => {
5021
5043
  key: 0,
5022
5044
  class: "nut-toast-icon-wrapper"
5023
5045
  };
5024
- const _hoisted_2$E = {
5046
+ const _hoisted_2$F = {
5025
5047
  key: 1,
5026
5048
  class: "nut-toast-title"
5027
5049
  };
5028
- const _hoisted_3$v = ["innerHTML"];
5050
+ const _hoisted_3$w = ["innerHTML"];
5029
5051
  function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
5030
5052
  const _component_nut_icon = vue.resolveComponent("nut-icon");
5031
5053
  return vue.openBlock(), vue.createBlock(vue.Transition, {
@@ -5050,16 +5072,16 @@ var __publicField = (obj, key, value) => {
5050
5072
  }, [
5051
5073
  _ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$N, [
5052
5074
  vue.createVNode(_component_nut_icon, {
5053
- size: "20",
5075
+ size: _ctx.iconSize,
5054
5076
  color: "#ffffff",
5055
5077
  name: _ctx.icon
5056
- }, null, 8, ["name"])
5078
+ }, null, 8, ["size", "name"])
5057
5079
  ])) : vue.createCommentVNode("", true),
5058
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$E, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
5080
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$F, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
5059
5081
  vue.createElementVNode("view", {
5060
5082
  class: "nut-toast-text",
5061
5083
  innerHTML: _ctx.msg
5062
- }, null, 8, _hoisted_3$v)
5084
+ }, null, 8, _hoisted_3$w)
5063
5085
  ], 4)
5064
5086
  ], 6), [
5065
5087
  [vue.vShow, _ctx.state.mounted]
@@ -5079,14 +5101,15 @@ var __publicField = (obj, key, value) => {
5079
5101
  customClass: "",
5080
5102
  bottom: "30px",
5081
5103
  size: "base",
5104
+ iconSize: "20",
5082
5105
  icon: null,
5083
5106
  textAlignCenter: true,
5084
5107
  loadingRotate: true,
5085
- bgColor: "rgba(0, 0, 0, .8)",
5108
+ bgColor: "",
5086
5109
  onClose: null,
5087
5110
  unmount: null,
5088
5111
  cover: false,
5089
- coverColor: "rgba(0, 0, 0, 0)",
5112
+ coverColor: "",
5090
5113
  closeOnClickOverlay: false
5091
5114
  };
5092
5115
  let idsMap = [];
@@ -5378,8 +5401,8 @@ var __publicField = (obj, key, value) => {
5378
5401
  }
5379
5402
  });
5380
5403
  const _hoisted_1$L = ["height", "width"];
5381
- const _hoisted_2$D = ["r", "cx", "cy", "stroke", "stroke-width"];
5382
- const _hoisted_3$u = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
5404
+ const _hoisted_2$E = ["r", "cx", "cy", "stroke", "stroke-width"];
5405
+ const _hoisted_3$v = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
5383
5406
  const _hoisted_4$n = { class: "nut-circleprogress-content" };
5384
5407
  function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
5385
5408
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -5398,7 +5421,7 @@ var __publicField = (obj, key, value) => {
5398
5421
  stroke: _ctx.option.backColor,
5399
5422
  "stroke-width": _ctx.option.strokeOutWidth,
5400
5423
  fill: "none"
5401
- }, null, 8, _hoisted_2$D),
5424
+ }, null, 8, _hoisted_2$E),
5402
5425
  vue.createElementVNode("circle", {
5403
5426
  r: _ctx.option.radius,
5404
5427
  cx: _ctx.option.cx,
@@ -5410,7 +5433,7 @@ var __publicField = (obj, key, value) => {
5410
5433
  transform: _ctx.option.startPosition,
5411
5434
  "stroke-linecap": "round",
5412
5435
  style: { "transition": "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s" }
5413
- }, null, 8, _hoisted_3$u)
5436
+ }, null, 8, _hoisted_3$v)
5414
5437
  ], 8, _hoisted_1$L)),
5415
5438
  vue.createElementVNode("div", _hoisted_4$n, [
5416
5439
  !_ctx.isAuto ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
@@ -5458,6 +5481,7 @@ var __publicField = (obj, key, value) => {
5458
5481
  default: false
5459
5482
  },
5460
5483
  leftIcon: { type: String, default: "" },
5484
+ rightIcon: { type: String, default: "" },
5461
5485
  color: {
5462
5486
  type: String,
5463
5487
  default: ""
@@ -5472,7 +5496,7 @@ var __publicField = (obj, key, value) => {
5472
5496
  },
5473
5497
  scrollable: {
5474
5498
  type: Boolean,
5475
- default: true
5499
+ default: null
5476
5500
  },
5477
5501
  speed: {
5478
5502
  type: Number,
@@ -5482,6 +5506,7 @@ var __publicField = (obj, key, value) => {
5482
5506
  components: {
5483
5507
  ScrollItem: function(props) {
5484
5508
  props.item.props.style = props.style;
5509
+ props.item.key = props.key;
5485
5510
  return vue.h(props.item);
5486
5511
  }
5487
5512
  },
@@ -5500,7 +5525,8 @@ var __publicField = (obj, key, value) => {
5500
5525
  scrollList: [],
5501
5526
  distance: 0,
5502
5527
  timer: null,
5503
- keepAlive: false
5528
+ keepAlive: false,
5529
+ isCanScroll: null
5504
5530
  });
5505
5531
  const classes = vue.computed(() => {
5506
5532
  const prefixCls = componentName$H;
@@ -5508,6 +5534,13 @@ var __publicField = (obj, key, value) => {
5508
5534
  [prefixCls]: true
5509
5535
  };
5510
5536
  });
5537
+ const isEllipsis = vue.computed(() => {
5538
+ if (state.isCanScroll == null) {
5539
+ return false;
5540
+ } else {
5541
+ return !state.isCanScroll && !props.wrapable;
5542
+ }
5543
+ });
5511
5544
  const iconShow = vue.computed(() => {
5512
5545
  if (props.leftIcon == "close") {
5513
5546
  return false;
@@ -5526,9 +5559,9 @@ var __publicField = (obj, key, value) => {
5526
5559
  });
5527
5560
  const contentStyle = vue.computed(() => {
5528
5561
  return {
5529
- paddingLeft: state.firstRound ? 0 : state.wrapWidth + "px",
5530
5562
  animationDelay: (state.firstRound ? props.delay : 0) + "s",
5531
- animationDuration: state.duration + "s"
5563
+ animationDuration: state.duration + "s",
5564
+ transform: `translateX(${state.firstRound ? 0 : state.wrapWidth + "px"})`
5532
5565
  };
5533
5566
  });
5534
5567
  const iconBg = vue.computed(() => {
@@ -5571,7 +5604,8 @@ var __publicField = (obj, key, value) => {
5571
5604
  }
5572
5605
  const wrapWidth = wrap.value.getBoundingClientRect().width;
5573
5606
  const offsetWidth = content.value.getBoundingClientRect().width;
5574
- if (props.scrollable && offsetWidth > wrapWidth) {
5607
+ state.isCanScroll = props.scrollable == null ? offsetWidth > wrapWidth : props.scrollable;
5608
+ if (state.isCanScroll) {
5575
5609
  state.wrapWidth = wrapWidth;
5576
5610
  state.offsetWidth = offsetWidth;
5577
5611
  state.duration = offsetWidth / props.speed;
@@ -5585,7 +5619,9 @@ var __publicField = (obj, key, value) => {
5585
5619
  emit("click", event);
5586
5620
  };
5587
5621
  const onClickIcon = (event) => {
5588
- state.showNoticeBar = !props.closeMode;
5622
+ if (props.closeMode) {
5623
+ state.showNoticeBar = !props.closeMode;
5624
+ }
5589
5625
  emit("close", event);
5590
5626
  };
5591
5627
  const onAnimationEnd = () => {
@@ -5658,6 +5694,7 @@ var __publicField = (obj, key, value) => {
5658
5694
  clearInterval(state.timer);
5659
5695
  });
5660
5696
  return __spreadProps(__spreadValues(__spreadValues({}, vue.toRefs(props)), vue.toRefs(state)), {
5697
+ isEllipsis,
5661
5698
  classes,
5662
5699
  iconShow,
5663
5700
  barStyle,
@@ -5679,7 +5716,7 @@ var __publicField = (obj, key, value) => {
5679
5716
  ref: "wrap",
5680
5717
  class: "wrap"
5681
5718
  };
5682
- const _hoisted_2$C = ["onClick"];
5719
+ const _hoisted_2$D = ["onClick"];
5683
5720
  function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
5684
5721
  const _component_nut_icon = vue.resolveComponent("nut-icon");
5685
5722
  const _component_ScrollItem = vue.resolveComponent("ScrollItem");
@@ -5697,17 +5734,19 @@ var __publicField = (obj, key, value) => {
5697
5734
  class: "left-icon",
5698
5735
  style: vue.normalizeStyle({ "background-image": `url(${_ctx.iconBg})` })
5699
5736
  }, [
5700
- !_ctx.iconBg ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
5701
- key: 0,
5702
- name: "notice",
5703
- size: "16",
5704
- color: _ctx.color
5705
- }, null, 8, ["color"])) : vue.createCommentVNode("", true)
5737
+ vue.renderSlot(_ctx.$slots, "left-icon", {}, () => [
5738
+ !_ctx.iconBg ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
5739
+ key: 0,
5740
+ name: "notice",
5741
+ size: "16",
5742
+ color: _ctx.color
5743
+ }, null, 8, ["color"])) : vue.createCommentVNode("", true)
5744
+ ])
5706
5745
  ], 4)) : vue.createCommentVNode("", true),
5707
5746
  vue.createElementVNode("view", _hoisted_1$K, [
5708
5747
  vue.createElementVNode("view", {
5709
5748
  ref: "content",
5710
- class: vue.normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": !_ctx.scrollable && !_ctx.wrapable }]]),
5749
+ class: vue.normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": _ctx.isEllipsis }]]),
5711
5750
  style: vue.normalizeStyle(_ctx.contentStyle),
5712
5751
  onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
5713
5752
  onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
@@ -5717,15 +5756,17 @@ var __publicField = (obj, key, value) => {
5717
5756
  ])
5718
5757
  ], 38)
5719
5758
  ], 512),
5720
- _ctx.closeMode ? (vue.openBlock(), vue.createElementBlock("view", {
5759
+ _ctx.closeMode || _ctx.rightIcon ? (vue.openBlock(), vue.createElementBlock("view", {
5721
5760
  key: 1,
5722
5761
  class: "right-icon",
5723
5762
  onClick: _cache[2] || (_cache[2] = vue.withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
5724
5763
  }, [
5725
- vue.createVNode(_component_nut_icon, {
5726
- name: "close",
5727
- color: _ctx.color
5728
- }, null, 8, ["color"])
5764
+ vue.renderSlot(_ctx.$slots, "right-icon", {}, () => [
5765
+ vue.createVNode(_component_nut_icon, {
5766
+ name: _ctx.rightIcon ? _ctx.rightIcon : "close",
5767
+ color: _ctx.color
5768
+ }, null, 8, ["name", "color"])
5769
+ ])
5729
5770
  ])) : vue.createCommentVNode("", true)
5730
5771
  ], 6)), [
5731
5772
  [vue.vShow, _ctx.showNoticeBar]
@@ -5758,7 +5799,7 @@ var __publicField = (obj, key, value) => {
5758
5799
  key: index,
5759
5800
  style: vue.normalizeStyle({ height: _ctx.height }),
5760
5801
  onClick: ($event) => _ctx.go(item)
5761
- }, vue.toDisplayString(item), 13, _hoisted_2$C);
5802
+ }, vue.toDisplayString(item), 13, _hoisted_2$D);
5762
5803
  }), 128))
5763
5804
  ], 4)),
5764
5805
  vue.createElementVNode("view", {
@@ -5872,11 +5913,11 @@ var __publicField = (obj, key, value) => {
5872
5913
  key: 0,
5873
5914
  class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
5874
5915
  };
5875
- const _hoisted_2$B = {
5916
+ const _hoisted_2$C = {
5876
5917
  key: 0,
5877
5918
  class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
5878
5919
  };
5879
- const _hoisted_3$t = { class: "nut-searchbar__input-inner" };
5920
+ const _hoisted_3$u = { class: "nut-searchbar__input-inner" };
5880
5921
  const _hoisted_4$m = ["type", "maxlength", "placeholder", "value"];
5881
5922
  const _hoisted_5$e = {
5882
5923
  key: 1,
@@ -5899,10 +5940,10 @@ var __publicField = (obj, key, value) => {
5899
5940
  class: "nut-searchbar__search-input",
5900
5941
  style: vue.normalizeStyle(_ctx.inputSearchbarStyle)
5901
5942
  }, [
5902
- _ctx.$slots.leftin ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$B, [
5943
+ _ctx.$slots.leftin ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$C, [
5903
5944
  vue.renderSlot(_ctx.$slots, "leftin")
5904
5945
  ])) : vue.createCommentVNode("", true),
5905
- vue.createElementVNode("view", _hoisted_3$t, [
5946
+ vue.createElementVNode("view", _hoisted_3$u, [
5906
5947
  vue.createElementVNode("form", {
5907
5948
  action: "#",
5908
5949
  onSubmit: _cache[3] || (_cache[3] = vue.withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
@@ -5983,8 +6024,8 @@ var __publicField = (obj, key, value) => {
5983
6024
  }
5984
6025
  });
5985
6026
  const _hoisted_1$I = { class: "nut-empty" };
5986
- const _hoisted_2$A = ["src"];
5987
- const _hoisted_3$s = {
6027
+ const _hoisted_2$B = ["src"];
6028
+ const _hoisted_3$t = {
5988
6029
  key: 1,
5989
6030
  class: "nut-empty-description"
5990
6031
  };
@@ -5999,10 +6040,10 @@ var __publicField = (obj, key, value) => {
5999
6040
  key: 0,
6000
6041
  class: "img",
6001
6042
  src: _ctx.imageUrl
6002
- }, null, 8, _hoisted_2$A)) : vue.createCommentVNode("", true)
6043
+ }, null, 8, _hoisted_2$B)) : vue.createCommentVNode("", true)
6003
6044
  ], 64))
6004
6045
  ], 4),
6005
- _ctx.$slots.description ? vue.renderSlot(_ctx.$slots, "description", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$s, vue.toDisplayString(_ctx.description), 1)),
6046
+ _ctx.$slots.description ? vue.renderSlot(_ctx.$slots, "description", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$t, vue.toDisplayString(_ctx.description), 1)),
6006
6047
  _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 2 }) : vue.createCommentVNode("", true)
6007
6048
  ]);
6008
6049
  }
@@ -6194,11 +6235,11 @@ var __publicField = (obj, key, value) => {
6194
6235
  }
6195
6236
  });
6196
6237
  const _hoisted_1$H = { class: "nut-audio" };
6197
- const _hoisted_2$z = {
6238
+ const _hoisted_2$A = {
6198
6239
  key: 0,
6199
6240
  class: "progress-wrapper"
6200
6241
  };
6201
- const _hoisted_3$r = { class: "time" };
6242
+ const _hoisted_3$s = { class: "time" };
6202
6243
  const _hoisted_4$l = { class: "progress-bar-wrapper" };
6203
6244
  const _hoisted_5$d = /* @__PURE__ */ vue.createElementVNode("div", { class: "custom-button" }, null, -1);
6204
6245
  const _hoisted_6$a = { class: "time" };
@@ -6211,8 +6252,8 @@ var __publicField = (obj, key, value) => {
6211
6252
  const _component_nut_range = vue.resolveComponent("nut-range");
6212
6253
  const _component_nut_icon = vue.resolveComponent("nut-icon");
6213
6254
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
6214
- _ctx.type == "progress" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, [
6215
- vue.createElementVNode("div", _hoisted_3$r, vue.toDisplayString(_ctx.currentDuration), 1),
6255
+ _ctx.type == "progress" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$A, [
6256
+ vue.createElementVNode("div", _hoisted_3$s, vue.toDisplayString(_ctx.currentDuration), 1),
6216
6257
  vue.createElementVNode("div", _hoisted_4$l, [
6217
6258
  vue.createVNode(_component_nut_range, {
6218
6259
  modelValue: _ctx.percent,
@@ -6288,8 +6329,8 @@ var __publicField = (obj, key, value) => {
6288
6329
  }
6289
6330
  });
6290
6331
  const _hoisted_1$G = { class: "nut-audio-operate" };
6291
- const _hoisted_2$y = /* @__PURE__ */ vue.createTextVNode("\u5012\u9000");
6292
- const _hoisted_3$q = /* @__PURE__ */ vue.createTextVNode("\u5FEB\u8FDB");
6332
+ const _hoisted_2$z = /* @__PURE__ */ vue.createTextVNode("\u5012\u9000");
6333
+ const _hoisted_3$r = /* @__PURE__ */ vue.createTextVNode("\u5FEB\u8FDB");
6293
6334
  const _hoisted_4$k = /* @__PURE__ */ vue.createTextVNode("\u9759\u97F3");
6294
6335
  function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
6295
6336
  const _component_nut_button = vue.resolveComponent("nut-button");
@@ -6305,7 +6346,7 @@ var __publicField = (obj, key, value) => {
6305
6346
  size: "small"
6306
6347
  }, {
6307
6348
  default: vue.withCtx(() => [
6308
- _hoisted_2$y
6349
+ _hoisted_2$z
6309
6350
  ]),
6310
6351
  _: 1
6311
6352
  })) : vue.createCommentVNode("", true),
@@ -6339,7 +6380,7 @@ var __publicField = (obj, key, value) => {
6339
6380
  size: "small"
6340
6381
  }, {
6341
6382
  default: vue.withCtx(() => [
6342
- _hoisted_3$q
6383
+ _hoisted_3$r
6343
6384
  ]),
6344
6385
  _: 1
6345
6386
  })) : vue.createCommentVNode("", true),
@@ -6371,27 +6412,13 @@ var __publicField = (obj, key, value) => {
6371
6412
  leftShow: { type: Boolean, default: true },
6372
6413
  title: { type: String, default: "" },
6373
6414
  titIcon: { type: String, default: "" },
6374
- icon: { type: String, default: "" },
6375
6415
  desc: { type: String, default: "" },
6376
6416
  defaultIndex: {
6377
6417
  type: Number,
6378
6418
  default: 0
6379
6419
  }
6380
6420
  },
6381
- emits: [
6382
- "click",
6383
- "on-click-back",
6384
- "on-click-title",
6385
- "on-click-right",
6386
- "on-click-desc",
6387
- "on-click-icon",
6388
- "on-click-more",
6389
- "on-click-clear",
6390
- "on-click-send",
6391
- "on-click-slot",
6392
- "on-click-slot-send",
6393
- "switch-tab"
6394
- ],
6421
+ emits: ["click", "on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
6395
6422
  setup(props, { emit }) {
6396
6423
  const activeIndex = vue.ref(props.defaultIndex);
6397
6424
  const classes = vue.computed(() => {
@@ -6409,32 +6436,22 @@ var __publicField = (obj, key, value) => {
6409
6436
  function handleCenterIcon() {
6410
6437
  emit("on-click-icon");
6411
6438
  }
6412
- function handleClear() {
6413
- emit("on-click-clear");
6414
- }
6415
- function handleSend() {
6416
- emit("on-click-send");
6417
- }
6418
- function handleSlot() {
6419
- emit("on-click-slot");
6420
- }
6421
- function handleSends() {
6422
- emit("on-click-slot-send");
6439
+ function handleRight() {
6440
+ emit("on-click-right");
6423
6441
  }
6424
6442
  return {
6425
6443
  classes,
6426
6444
  handleLeft,
6427
6445
  handleCenter,
6428
6446
  handleCenterIcon,
6429
- handleClear,
6430
- handleSend,
6431
- handleSlot,
6432
- handleSends,
6447
+ handleRight,
6433
6448
  activeIndex
6434
6449
  };
6435
6450
  }
6436
6451
  });
6437
6452
  const _hoisted_1$F = { class: "nut-navbar__left" };
6453
+ const _hoisted_2$y = { class: "nut-navbar__title" };
6454
+ const _hoisted_3$q = { class: "nut-navbar__right" };
6438
6455
  function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
6439
6456
  const _component_nut_icon = vue.resolveComponent("nut-icon");
6440
6457
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -6446,11 +6463,10 @@ var __publicField = (obj, key, value) => {
6446
6463
  color: "#979797",
6447
6464
  name: "left",
6448
6465
  onClick: _ctx.handleLeft
6449
- }, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
6466
+ }, null, 8, ["onClick"])) : vue.createCommentVNode("", true),
6467
+ vue.renderSlot(_ctx.$slots, "left")
6450
6468
  ]),
6451
- vue.createElementVNode("view", {
6452
- class: vue.normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
6453
- }, [
6469
+ vue.createElementVNode("view", _hoisted_2$y, [
6454
6470
  _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
6455
6471
  key: 0,
6456
6472
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
@@ -6462,31 +6478,15 @@ var __publicField = (obj, key, value) => {
6462
6478
  onClick: _ctx.handleCenterIcon
6463
6479
  }, null, 8, ["name", "onClick"])) : vue.createCommentVNode("", true),
6464
6480
  vue.renderSlot(_ctx.$slots, "content")
6465
- ], 2),
6466
- _ctx.desc || _ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", {
6467
- key: 0,
6468
- class: vue.normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
6469
- }, [
6481
+ ]),
6482
+ vue.createElementVNode("view", _hoisted_3$q, [
6470
6483
  _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", {
6471
6484
  key: 0,
6472
- style: vue.normalizeStyle({ "text-align": _ctx.descTextAlign }),
6473
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClear && _ctx.handleClear(...args))
6474
- }, vue.toDisplayString(_ctx.desc), 5)) : vue.createCommentVNode("", true),
6475
- _ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", {
6476
- key: 1,
6477
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleSends && _ctx.handleSends(...args))
6478
- }, [
6479
- vue.renderSlot(_ctx.$slots, "icons")
6480
- ])) : vue.createCommentVNode("", true),
6481
- vue.createElementVNode("view", null, [
6482
- _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
6483
- key: 0,
6484
- class: "rightIcon",
6485
- name: _ctx.icon,
6486
- onClick: _ctx.handleSend
6487
- }, null, 8, ["name", "onClick"])) : vue.createCommentVNode("", true)
6488
- ])
6489
- ], 2)) : vue.createCommentVNode("", true)
6485
+ class: "right_text",
6486
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
6487
+ }, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
6488
+ vue.renderSlot(_ctx.$slots, "right")
6489
+ ])
6490
6490
  ], 2);
6491
6491
  }
6492
6492
  var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$N]]);
@@ -6985,7 +6985,7 @@ var __publicField = (obj, key, value) => {
6985
6985
  active: parent.modelValue,
6986
6986
  index: 0
6987
6987
  });
6988
- const router = vueRouter.useRouter();
6988
+ const router = useRouter();
6989
6989
  const relation = (child) => {
6990
6990
  if (child.proxy) {
6991
6991
  let index = parent.children.length;
@@ -7011,7 +7011,11 @@ var __publicField = (obj, key, value) => {
7011
7011
  }
7012
7012
  if (parent.children[value].to) {
7013
7013
  let to = parent.children[value].to;
7014
- router.push(to);
7014
+ if (to && router) {
7015
+ router.push(to);
7016
+ } else {
7017
+ location.replace(to);
7018
+ }
7015
7019
  }
7016
7020
  });
7017
7021
  });
@@ -7899,7 +7903,7 @@ var __publicField = (obj, key, value) => {
7899
7903
  color: props.iconColor || parent.iconColor
7900
7904
  };
7901
7905
  });
7902
- const router = vueRouter.useRouter();
7906
+ const router = useRouter();
7903
7907
  const handleClick = (event) => {
7904
7908
  emit("click", event);
7905
7909
  if (props.to && router) {
@@ -9456,6 +9460,7 @@ var __publicField = (obj, key, value) => {
9456
9460
  return "text";
9457
9461
  });
9458
9462
  const columnList = vue.computed(() => {
9463
+ console.log("\u521D\u59CB\u5316", dataType.value);
9459
9464
  if (dataType.value === "text") {
9460
9465
  return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
9461
9466
  } else if (dataType.value === "multipleColumns") {
@@ -10479,6 +10484,10 @@ var __publicField = (obj, key, value) => {
10479
10484
  length: {
10480
10485
  type: [String, Number],
10481
10486
  default: 6
10487
+ },
10488
+ isWrapTeleport: {
10489
+ type: Boolean,
10490
+ default: true
10482
10491
  }
10483
10492
  },
10484
10493
  emits: ["update:modelValue", "update:visible", "complete", "change", "ok", "tips", "close", "cancel"],
@@ -10595,7 +10604,8 @@ var __publicField = (obj, key, value) => {
10595
10604
  closeable: true,
10596
10605
  onClickCloseIcon: _ctx.closeIcon,
10597
10606
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
10598
- onClickOverlay: _ctx.close
10607
+ onClickOverlay: _ctx.close,
10608
+ isWrapTeleport: _ctx.isWrapTeleport
10599
10609
  }, {
10600
10610
  default: vue.withCtx(() => [
10601
10611
  vue.createElementVNode("view", _hoisted_1$n, vue.toDisplayString(_ctx.title), 1),
@@ -10652,7 +10662,7 @@ var __publicField = (obj, key, value) => {
10652
10662
  ])) : vue.createCommentVNode("", true)
10653
10663
  ]),
10654
10664
  _: 1
10655
- }, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay"])
10665
+ }, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "isWrapTeleport"])
10656
10666
  ]);
10657
10667
  }
10658
10668
  var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]);
@@ -12495,6 +12505,9 @@ var __publicField = (obj, key, value) => {
12495
12505
  emit("update:visible", false);
12496
12506
  };
12497
12507
  const chooseItem = (item, index) => {
12508
+ if (item.disabled) {
12509
+ return;
12510
+ }
12498
12511
  emit("choose", item, index);
12499
12512
  };
12500
12513
  return {
@@ -14300,6 +14313,10 @@ var __publicField = (obj, key, value) => {
14300
14313
  default: () => {
14301
14314
  return [];
14302
14315
  }
14316
+ },
14317
+ isWrapTeleport: {
14318
+ type: Boolean,
14319
+ default: false
14303
14320
  }
14304
14321
  },
14305
14322
  emits: ["update:visible", "select"],
@@ -14342,6 +14359,7 @@ var __publicField = (obj, key, value) => {
14342
14359
  position: "bottom",
14343
14360
  closeable: "",
14344
14361
  round: "",
14362
+ isWrapTeleport: _ctx.isWrapTeleport,
14345
14363
  visible: _ctx.visible,
14346
14364
  style: vue.normalizeStyle(_ctx.popStyle),
14347
14365
  onClickOverlay: _ctx.close,
@@ -14365,7 +14383,7 @@ var __publicField = (obj, key, value) => {
14365
14383
  ], 2)
14366
14384
  ]),
14367
14385
  _: 3
14368
- }, 8, ["visible", "style", "onClickOverlay", "onClickCloseIcon"]);
14386
+ }, 8, ["isWrapTeleport", "visible", "style", "onClickOverlay", "onClickCloseIcon"]);
14369
14387
  }
14370
14388
  var TimeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9]]);
14371
14389
  const { componentName: componentName$7, create: create$8 } = createComponent("timepannel");
@@ -15245,7 +15263,7 @@ var __publicField = (obj, key, value) => {
15245
15263
  }
15246
15264
  });
15247
15265
  }
15248
- const version = "3.1.16";
15266
+ const version = "3.1.18-beta.0";
15249
15267
  var nutui_vue_build = { install, version };
15250
15268
  exports2.ActionSheet = ActionSheet;
15251
15269
  exports2.Address = Address;