@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.es.js CHANGED
@@ -35,12 +35,11 @@ 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
- import { defineComponent, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, createVNode, renderSlot, createCommentVNode, h, createElementVNode, createBlock, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, inject, provide, reactive, onBeforeMount, Teleport, ref, nextTick, getCurrentInstance, renderList, render, unref, onUnmounted, useSlots, mergeProps, watchEffect, shallowReactive, markRaw, isVNode, createSlots, toRaw, readonly, vModelText } from "vue";
43
- import { useRouter } from "vue-router";
42
+ import { defineComponent, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, createVNode, renderSlot, createCommentVNode, h, createElementVNode, createBlock, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, inject, provide, reactive, onBeforeMount, Teleport, ref, nextTick, renderList, render, unref, onUnmounted, useSlots, mergeProps, watchEffect, shallowReactive, markRaw, isVNode, createSlots, toRaw, readonly, vModelText } from "vue";
44
43
  function createComponent(name) {
45
44
  const componentName2 = "nut-" + name;
46
45
  return {
@@ -305,6 +304,10 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
305
304
  ], 6);
306
305
  }
307
306
  var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1j]]);
307
+ function useRouter() {
308
+ const proxy = getCurrentInstance().proxy;
309
+ return proxy.$router || null;
310
+ }
308
311
  const { componentName: componentName$15, create: create$1q } = createComponent("cell");
309
312
  const _sfc_main$1q = create$1q({
310
313
  props: {
@@ -350,7 +353,7 @@ const _sfc_main$1q = create$1q({
350
353
  }
351
354
  });
352
355
  const _hoisted_1$10 = { class: "title" };
353
- const _hoisted_2$Q = { class: "nut-cell__title-desc" };
356
+ const _hoisted_2$R = { class: "nut-cell__title-desc" };
354
357
  function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
355
358
  const _component_nut_icon = resolveComponent("nut-icon");
356
359
  return openBlock(), createElementBlock("view", {
@@ -370,7 +373,7 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
370
373
  }, null, 8, ["name"])) : createCommentVNode("", true),
371
374
  _ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
372
375
  createElementVNode("view", _hoisted_1$10, toDisplayString(_ctx.title), 1),
373
- createElementVNode("view", _hoisted_2$Q, toDisplayString(_ctx.subTitle), 1)
376
+ createElementVNode("view", _hoisted_2$R, toDisplayString(_ctx.subTitle), 1)
374
377
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
375
378
  createTextVNode(toDisplayString(_ctx.title), 1)
376
379
  ], 64))
@@ -411,18 +414,18 @@ const _hoisted_1$$ = {
411
414
  key: 1,
412
415
  class: "nut-cell-group__title"
413
416
  };
414
- const _hoisted_2$P = {
417
+ const _hoisted_2$Q = {
415
418
  key: 3,
416
419
  class: "nut-cell-group__desc"
417
420
  };
418
- const _hoisted_3$D = { class: "nut-cell-group__warp" };
421
+ const _hoisted_3$E = { class: "nut-cell-group__warp" };
419
422
  function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
420
423
  return openBlock(), createElementBlock("view", {
421
424
  class: normalizeClass(_ctx.classes)
422
425
  }, [
423
426
  _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$$, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
424
- _ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$P, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
425
- createElementVNode("view", _hoisted_3$D, [
427
+ _ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$Q, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
428
+ createElementVNode("view", _hoisted_3$E, [
426
429
  renderSlot(_ctx.$slots, "default")
427
430
  ])
428
431
  ], 2);
@@ -513,7 +516,7 @@ const _sfc_main$1o = create$1o({
513
516
  }
514
517
  });
515
518
  const _hoisted_1$_ = ["innerHTML"];
516
- const _hoisted_2$O = ["innerHTML"];
519
+ const _hoisted_2$P = ["innerHTML"];
517
520
  function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
518
521
  return openBlock(), createElementBlock("view", {
519
522
  class: normalizeClass(_ctx.classes)
@@ -537,7 +540,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
537
540
  key: 2,
538
541
  class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
539
542
  innerHTML: _ctx.showSymbol
540
- }, null, 10, _hoisted_2$O)) : createCommentVNode("", true)
543
+ }, null, 10, _hoisted_2$P)) : createCommentVNode("", true)
541
544
  ], 2);
542
545
  }
543
546
  var Price = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1g]]);
@@ -1274,8 +1277,8 @@ const _hoisted_1$Y = {
1274
1277
  class: "nut-video",
1275
1278
  ref: "videocon"
1276
1279
  };
1277
- const _hoisted_2$N = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
1278
- const _hoisted_3$C = ["src", "type"];
1280
+ const _hoisted_2$O = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
1281
+ const _hoisted_3$D = ["src", "type"];
1279
1282
  const _hoisted_4$t = { class: "current-time" };
1280
1283
  const _hoisted_5$k = { class: "progress-container" };
1281
1284
  const _hoisted_6$h = {
@@ -1309,8 +1312,8 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
1309
1312
  createElementVNode("source", {
1310
1313
  src: _ctx.source.src,
1311
1314
  type: _ctx.source.type
1312
- }, null, 8, _hoisted_3$C)
1313
- ], 40, _hoisted_2$N),
1315
+ }, null, 8, _hoisted_3$D)
1316
+ ], 40, _hoisted_2$O),
1314
1317
  _ctx.showToolbox && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", {
1315
1318
  key: 0,
1316
1319
  class: "playing-mask",
@@ -1879,6 +1882,10 @@ const _sfc_main$1e = create$1e({
1879
1882
  autoplay: {
1880
1883
  type: [Number, String],
1881
1884
  default: 3e3
1885
+ },
1886
+ isWrapTeleport: {
1887
+ type: Boolean,
1888
+ default: false
1882
1889
  }
1883
1890
  },
1884
1891
  emits: ["close"],
@@ -2018,7 +2025,7 @@ const _sfc_main$1e = create$1e({
2018
2025
  }
2019
2026
  });
2020
2027
  const _hoisted_1$X = ["src"];
2021
- const _hoisted_2$M = { class: "nut-imagepreview-index" };
2028
+ const _hoisted_2$N = { class: "nut-imagepreview-index" };
2022
2029
  function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
2023
2030
  const _component_nut_video = resolveComponent("nut-video");
2024
2031
  const _component_nut_swiper_item = resolveComponent("nut-swiper-item");
@@ -2028,6 +2035,7 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
2028
2035
  "pop-class": "custom-pop",
2029
2036
  visible: _ctx.showPop,
2030
2037
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.showPop = $event),
2038
+ isWrapTeleport: _ctx.isWrapTeleport,
2031
2039
  onClick: _ctx.onClose,
2032
2040
  style: { "width": "100%" }
2033
2041
  }, {
@@ -2076,10 +2084,10 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
2076
2084
  _: 1
2077
2085
  }, 8, ["auto-play", "onChange", "init-page", "pagination-visible", "pagination-color"])) : createCommentVNode("", true)
2078
2086
  ], 32),
2079
- createElementVNode("view", _hoisted_2$M, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
2087
+ createElementVNode("view", _hoisted_2$N, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
2080
2088
  ]),
2081
2089
  _: 1
2082
- }, 8, ["visible", "onClick"]);
2090
+ }, 8, ["visible", "isWrapTeleport", "onClick"]);
2083
2091
  }
2084
2092
  var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$17]]);
2085
2093
  class ImagePreviewOptions {
@@ -2500,8 +2508,8 @@ const _hoisted_1$W = {
2500
2508
  class: "nut-swipe__left",
2501
2509
  ref: "leftRef"
2502
2510
  };
2503
- const _hoisted_2$L = { class: "nut-swipe__content" };
2504
- const _hoisted_3$B = {
2511
+ const _hoisted_2$M = { class: "nut-swipe__content" };
2512
+ const _hoisted_3$C = {
2505
2513
  class: "nut-swipe__right",
2506
2514
  ref: "rightRef"
2507
2515
  };
@@ -2517,10 +2525,10 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
2517
2525
  createElementVNode("view", _hoisted_1$W, [
2518
2526
  renderSlot(_ctx.$slots, "left")
2519
2527
  ], 512),
2520
- createElementVNode("view", _hoisted_2$L, [
2528
+ createElementVNode("view", _hoisted_2$M, [
2521
2529
  renderSlot(_ctx.$slots, "default")
2522
2530
  ]),
2523
- createElementVNode("view", _hoisted_3$B, [
2531
+ createElementVNode("view", _hoisted_3$C, [
2524
2532
  renderSlot(_ctx.$slots, "right")
2525
2533
  ], 512)
2526
2534
  ], 38);
@@ -2560,6 +2568,10 @@ const _sfc_main$1b = create$1b({
2560
2568
  menuItems: {
2561
2569
  type: Array,
2562
2570
  default: () => []
2571
+ },
2572
+ isWrapTeleport: {
2573
+ type: Boolean,
2574
+ default: true
2563
2575
  }
2564
2576
  }),
2565
2577
  emits: ["cancel", "close", "choose", "update:visible"],
@@ -2597,11 +2609,11 @@ const _sfc_main$1b = create$1b({
2597
2609
  }
2598
2610
  });
2599
2611
  const _hoisted_1$V = { class: "nut-actionsheet-panel" };
2600
- const _hoisted_2$K = {
2612
+ const _hoisted_2$L = {
2601
2613
  key: 0,
2602
2614
  class: "nut-actionsheet-title"
2603
2615
  };
2604
- const _hoisted_3$A = {
2616
+ const _hoisted_3$B = {
2605
2617
  key: 1,
2606
2618
  class: "nut-actionsheet-item desc"
2607
2619
  };
@@ -2619,14 +2631,15 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
2619
2631
  createVNode(_component_nut_popup, {
2620
2632
  "pop-class": "popclass",
2621
2633
  visible: _ctx.visible,
2634
+ isWrapTeleport: _ctx.isWrapTeleport,
2622
2635
  position: "bottom",
2623
2636
  round: "",
2624
2637
  onClickOverlay: _ctx.close
2625
2638
  }, {
2626
2639
  default: withCtx(() => [
2627
2640
  createElementVNode("view", _hoisted_1$V, [
2628
- _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$K, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
2629
- _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3$A, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
2641
+ _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$L, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
2642
+ _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3$B, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
2630
2643
  _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4$s, [
2631
2644
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
2632
2645
  return openBlock(), createElementBlock("view", {
@@ -2648,7 +2661,7 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
2648
2661
  ])
2649
2662
  ]),
2650
2663
  _: 1
2651
- }, 8, ["visible", "onClickOverlay"])
2664
+ }, 8, ["visible", "isWrapTeleport", "onClickOverlay"])
2652
2665
  ], 2);
2653
2666
  }
2654
2667
  var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$15]]);
@@ -2664,8 +2677,8 @@ const _sfc_main$1a = create$1a({
2664
2677
  default: 10
2665
2678
  },
2666
2679
  elId: {
2667
- type: String,
2668
- default: ""
2680
+ type: [String, Element],
2681
+ default: "body"
2669
2682
  },
2670
2683
  distance: {
2671
2684
  type: Number,
@@ -2942,7 +2955,9 @@ const _sfc_main$18 = create$18({
2942
2955
  const contentRef = ref(null);
2943
2956
  const onTransitionEnd = () => {
2944
2957
  const wrapperRefEle = document.getElementsByClassName("collapse-wrapper")[0];
2945
- wrapperRefEle.style.willChange = "auto";
2958
+ if (wrapperRefEle) {
2959
+ wrapperRefEle.style.willChange = "auto";
2960
+ }
2946
2961
  };
2947
2962
  const animation = () => {
2948
2963
  const wrapperRefEle = wrapperRef.value;
@@ -3044,8 +3059,8 @@ const _sfc_main$18 = create$18({
3044
3059
  }
3045
3060
  });
3046
3061
  const _hoisted_1$U = { class: "collapse-title" };
3047
- const _hoisted_2$J = { class: "collapse-title-value" };
3048
- const _hoisted_3$z = ["innerHTML"];
3062
+ const _hoisted_2$K = { class: "collapse-title-value" };
3063
+ const _hoisted_3$A = ["innerHTML"];
3049
3064
  const _hoisted_4$r = {
3050
3065
  key: 0,
3051
3066
  class: "subTitle"
@@ -3070,7 +3085,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
3070
3085
  }, [
3071
3086
  createElementVNode("view", _hoisted_1$U, [
3072
3087
  createElementVNode("view", null, [
3073
- createElementVNode("view", _hoisted_2$J, [
3088
+ createElementVNode("view", _hoisted_2$K, [
3074
3089
  _ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, {
3075
3090
  key: 0,
3076
3091
  name: _ctx.titleIcon,
@@ -3082,7 +3097,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
3082
3097
  key: 2,
3083
3098
  innerHTML: _ctx.title,
3084
3099
  class: "collapse-icon-title"
3085
- }, null, 8, _hoisted_3$z))
3100
+ }, null, 8, _hoisted_3$A))
3086
3101
  ])
3087
3102
  ])
3088
3103
  ]),
@@ -3426,7 +3441,7 @@ const _hoisted_1$T = {
3426
3441
  key: 0,
3427
3442
  class: "nut-dialog__header"
3428
3443
  };
3429
- const _hoisted_2$I = ["innerHTML"];
3444
+ const _hoisted_2$J = ["innerHTML"];
3430
3445
  function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
3431
3446
  const _component_nut_button = resolveComponent("nut-button");
3432
3447
  const _component_nut_popup = resolveComponent("nut-popup");
@@ -3456,7 +3471,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
3456
3471
  _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("view", {
3457
3472
  key: 1,
3458
3473
  innerHTML: _ctx.content
3459
- }, null, 8, _hoisted_2$I))
3474
+ }, null, 8, _hoisted_2$J))
3460
3475
  ], 4),
3461
3476
  !_ctx.noFooter ? (openBlock(), createElementBlock("view", {
3462
3477
  key: 1,
@@ -3758,8 +3773,8 @@ const _sfc_main$15 = create$15({
3758
3773
  }
3759
3774
  });
3760
3775
  const _hoisted_1$S = { class: "top-box" };
3761
- const _hoisted_2$H = { class: "top-text" };
3762
- const _hoisted_3$y = { class: "nut-infinite-container" };
3776
+ const _hoisted_2$I = { class: "top-text" };
3777
+ const _hoisted_3$z = { class: "nut-infinite-container" };
3763
3778
  const _hoisted_4$q = { class: "nut-infinite-bottom" };
3764
3779
  const _hoisted_5$h = {
3765
3780
  key: 0,
@@ -3789,10 +3804,10 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
3789
3804
  class: "top-img",
3790
3805
  name: _ctx.pullIcon
3791
3806
  }, null, 8, ["name"]),
3792
- createElementVNode("view", _hoisted_2$H, toDisplayString(_ctx.pullTxt), 1)
3807
+ createElementVNode("view", _hoisted_2$I, toDisplayString(_ctx.pullTxt), 1)
3793
3808
  ])
3794
3809
  ], 4),
3795
- createElementVNode("view", _hoisted_3$y, [
3810
+ createElementVNode("view", _hoisted_3$z, [
3796
3811
  renderSlot(_ctx.$slots, "default")
3797
3812
  ]),
3798
3813
  createElementVNode("view", _hoisted_4$q, [
@@ -3885,7 +3900,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
3885
3900
  }, {
3886
3901
  default: withCtx(() => [
3887
3902
  withDirectives(createElementVNode("view", {
3888
- class: normalizeClass(["popup-top", "nut-notify", `nut-notify--${_ctx.type}`, { className: _ctx.className }]),
3903
+ class: normalizeClass(["popup-top", "nut-notify", `nut-notify--${_ctx.type}`, [_ctx.className]]),
3889
3904
  style: normalizeStyle({ color: _ctx.color, background: _ctx.background }),
3890
3905
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clickCover && _ctx.clickCover(...args))
3891
3906
  }, [
@@ -4206,11 +4221,11 @@ const _sfc_main$13 = create$13({
4206
4221
  }
4207
4222
  });
4208
4223
  const _hoisted_1$R = { class: "nut-range-container" };
4209
- const _hoisted_2$G = {
4224
+ const _hoisted_2$H = {
4210
4225
  key: 0,
4211
4226
  class: "min"
4212
4227
  };
4213
- const _hoisted_3$x = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
4228
+ const _hoisted_3$y = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
4214
4229
  const _hoisted_4$p = {
4215
4230
  key: 0,
4216
4231
  class: "number"
@@ -4226,7 +4241,7 @@ const _hoisted_7$9 = {
4226
4241
  };
4227
4242
  function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
4228
4243
  return openBlock(), createElementBlock("view", _hoisted_1$R, [
4229
- !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_2$G, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
4244
+ !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_2$H, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
4230
4245
  createElementVNode("view", {
4231
4246
  ref: "root",
4232
4247
  style: normalizeStyle(_ctx.wrapperStyle),
@@ -4268,7 +4283,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
4268
4283
  }, [
4269
4284
  !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$p, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
4270
4285
  ], 4))
4271
- ], 42, _hoisted_3$x);
4286
+ ], 42, _hoisted_3$y);
4272
4287
  }), 64)) : (openBlock(), createElementBlock("view", {
4273
4288
  key: 1,
4274
4289
  role: "slider",
@@ -4737,8 +4752,8 @@ const _sfc_main$10 = create$10({
4737
4752
  }
4738
4753
  });
4739
4754
  const _hoisted_1$P = { class: "nut-step-head" };
4740
- const _hoisted_2$F = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
4741
- const _hoisted_3$w = {
4755
+ const _hoisted_2$G = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
4756
+ const _hoisted_3$x = {
4742
4757
  key: 2,
4743
4758
  class: "nut-step-inner"
4744
4759
  };
@@ -4751,7 +4766,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
4751
4766
  class: normalizeClass(_ctx.classes)
4752
4767
  }, [
4753
4768
  createElementVNode("view", _hoisted_1$P, [
4754
- _hoisted_2$F,
4769
+ _hoisted_2$G,
4755
4770
  createElementVNode("view", {
4756
4771
  class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
4757
4772
  }, [
@@ -4761,7 +4776,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
4761
4776
  color: _ctx.iconColor,
4762
4777
  name: _ctx.icon,
4763
4778
  size: _ctx.size
4764
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$w, toDisplayString(_ctx.index), 1))
4779
+ }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$x, toDisplayString(_ctx.index), 1))
4765
4780
  ], 2)
4766
4781
  ]),
4767
4782
  createElementVNode("view", _hoisted_4$o, [
@@ -4912,6 +4927,10 @@ const _sfc_main$_ = create$_({
4912
4927
  type: [String, Number],
4913
4928
  default: "base"
4914
4929
  },
4930
+ iconSize: {
4931
+ type: String,
4932
+ default: "20"
4933
+ },
4915
4934
  icon: String,
4916
4935
  textAlignCenter: {
4917
4936
  type: Boolean,
@@ -4923,7 +4942,7 @@ const _sfc_main$_ = create$_({
4923
4942
  },
4924
4943
  bgColor: {
4925
4944
  type: String,
4926
- default: "rgba(0, 0, 0, .8)"
4945
+ default: ""
4927
4946
  },
4928
4947
  onClose: Function,
4929
4948
  unmount: Function,
@@ -4933,7 +4952,7 @@ const _sfc_main$_ = create$_({
4933
4952
  },
4934
4953
  coverColor: {
4935
4954
  type: String,
4936
- default: "rgba(0, 0, 0, 0)"
4955
+ default: ""
4937
4956
  },
4938
4957
  title: {
4939
4958
  type: String,
@@ -4944,7 +4963,8 @@ const _sfc_main$_ = create$_({
4944
4963
  default: false
4945
4964
  }
4946
4965
  },
4947
- setup(props) {
4966
+ emits: ["close"],
4967
+ setup(props, { emit }) {
4948
4968
  let timer;
4949
4969
  const state = reactive({
4950
4970
  mounted: false
@@ -4972,6 +4992,7 @@ const _sfc_main$_ = create$_({
4972
4992
  const clickCover = () => {
4973
4993
  if (props.closeOnClickOverlay) {
4974
4994
  hide();
4995
+ emit("close");
4975
4996
  }
4976
4997
  };
4977
4998
  if (props.duration) {
@@ -5019,11 +5040,11 @@ const _hoisted_1$N = {
5019
5040
  key: 0,
5020
5041
  class: "nut-toast-icon-wrapper"
5021
5042
  };
5022
- const _hoisted_2$E = {
5043
+ const _hoisted_2$F = {
5023
5044
  key: 1,
5024
5045
  class: "nut-toast-title"
5025
5046
  };
5026
- const _hoisted_3$v = ["innerHTML"];
5047
+ const _hoisted_3$w = ["innerHTML"];
5027
5048
  function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
5028
5049
  const _component_nut_icon = resolveComponent("nut-icon");
5029
5050
  return openBlock(), createBlock(Transition, {
@@ -5048,16 +5069,16 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
5048
5069
  }, [
5049
5070
  _ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1$N, [
5050
5071
  createVNode(_component_nut_icon, {
5051
- size: "20",
5072
+ size: _ctx.iconSize,
5052
5073
  color: "#ffffff",
5053
5074
  name: _ctx.icon
5054
- }, null, 8, ["name"])
5075
+ }, null, 8, ["size", "name"])
5055
5076
  ])) : createCommentVNode("", true),
5056
- _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
5077
+ _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$F, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
5057
5078
  createElementVNode("view", {
5058
5079
  class: "nut-toast-text",
5059
5080
  innerHTML: _ctx.msg
5060
- }, null, 8, _hoisted_3$v)
5081
+ }, null, 8, _hoisted_3$w)
5061
5082
  ], 4)
5062
5083
  ], 6), [
5063
5084
  [vShow, _ctx.state.mounted]
@@ -5077,14 +5098,15 @@ const defaultOptions = {
5077
5098
  customClass: "",
5078
5099
  bottom: "30px",
5079
5100
  size: "base",
5101
+ iconSize: "20",
5080
5102
  icon: null,
5081
5103
  textAlignCenter: true,
5082
5104
  loadingRotate: true,
5083
- bgColor: "rgba(0, 0, 0, .8)",
5105
+ bgColor: "",
5084
5106
  onClose: null,
5085
5107
  unmount: null,
5086
5108
  cover: false,
5087
- coverColor: "rgba(0, 0, 0, 0)",
5109
+ coverColor: "",
5088
5110
  closeOnClickOverlay: false
5089
5111
  };
5090
5112
  let idsMap = [];
@@ -5376,8 +5398,8 @@ const _sfc_main$Y = create$Y({
5376
5398
  }
5377
5399
  });
5378
5400
  const _hoisted_1$L = ["height", "width"];
5379
- const _hoisted_2$D = ["r", "cx", "cy", "stroke", "stroke-width"];
5380
- const _hoisted_3$u = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
5401
+ const _hoisted_2$E = ["r", "cx", "cy", "stroke", "stroke-width"];
5402
+ const _hoisted_3$v = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
5381
5403
  const _hoisted_4$n = { class: "nut-circleprogress-content" };
5382
5404
  function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
5383
5405
  return openBlock(), createElementBlock("div", {
@@ -5396,7 +5418,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
5396
5418
  stroke: _ctx.option.backColor,
5397
5419
  "stroke-width": _ctx.option.strokeOutWidth,
5398
5420
  fill: "none"
5399
- }, null, 8, _hoisted_2$D),
5421
+ }, null, 8, _hoisted_2$E),
5400
5422
  createElementVNode("circle", {
5401
5423
  r: _ctx.option.radius,
5402
5424
  cx: _ctx.option.cx,
@@ -5408,7 +5430,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
5408
5430
  transform: _ctx.option.startPosition,
5409
5431
  "stroke-linecap": "round",
5410
5432
  style: { "transition": "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s" }
5411
- }, null, 8, _hoisted_3$u)
5433
+ }, null, 8, _hoisted_3$v)
5412
5434
  ], 8, _hoisted_1$L)),
5413
5435
  createElementVNode("div", _hoisted_4$n, [
5414
5436
  !_ctx.isAuto ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
@@ -5456,6 +5478,7 @@ const _sfc_main$X = create$X({
5456
5478
  default: false
5457
5479
  },
5458
5480
  leftIcon: { type: String, default: "" },
5481
+ rightIcon: { type: String, default: "" },
5459
5482
  color: {
5460
5483
  type: String,
5461
5484
  default: ""
@@ -5470,7 +5493,7 @@ const _sfc_main$X = create$X({
5470
5493
  },
5471
5494
  scrollable: {
5472
5495
  type: Boolean,
5473
- default: true
5496
+ default: null
5474
5497
  },
5475
5498
  speed: {
5476
5499
  type: Number,
@@ -5480,6 +5503,7 @@ const _sfc_main$X = create$X({
5480
5503
  components: {
5481
5504
  ScrollItem: function(props) {
5482
5505
  props.item.props.style = props.style;
5506
+ props.item.key = props.key;
5483
5507
  return h(props.item);
5484
5508
  }
5485
5509
  },
@@ -5498,7 +5522,8 @@ const _sfc_main$X = create$X({
5498
5522
  scrollList: [],
5499
5523
  distance: 0,
5500
5524
  timer: null,
5501
- keepAlive: false
5525
+ keepAlive: false,
5526
+ isCanScroll: null
5502
5527
  });
5503
5528
  const classes = computed(() => {
5504
5529
  const prefixCls = componentName$H;
@@ -5506,6 +5531,13 @@ const _sfc_main$X = create$X({
5506
5531
  [prefixCls]: true
5507
5532
  };
5508
5533
  });
5534
+ const isEllipsis = computed(() => {
5535
+ if (state.isCanScroll == null) {
5536
+ return false;
5537
+ } else {
5538
+ return !state.isCanScroll && !props.wrapable;
5539
+ }
5540
+ });
5509
5541
  const iconShow = computed(() => {
5510
5542
  if (props.leftIcon == "close") {
5511
5543
  return false;
@@ -5524,9 +5556,9 @@ const _sfc_main$X = create$X({
5524
5556
  });
5525
5557
  const contentStyle = computed(() => {
5526
5558
  return {
5527
- paddingLeft: state.firstRound ? 0 : state.wrapWidth + "px",
5528
5559
  animationDelay: (state.firstRound ? props.delay : 0) + "s",
5529
- animationDuration: state.duration + "s"
5560
+ animationDuration: state.duration + "s",
5561
+ transform: `translateX(${state.firstRound ? 0 : state.wrapWidth + "px"})`
5530
5562
  };
5531
5563
  });
5532
5564
  const iconBg = computed(() => {
@@ -5569,7 +5601,8 @@ const _sfc_main$X = create$X({
5569
5601
  }
5570
5602
  const wrapWidth = wrap.value.getBoundingClientRect().width;
5571
5603
  const offsetWidth = content.value.getBoundingClientRect().width;
5572
- if (props.scrollable && offsetWidth > wrapWidth) {
5604
+ state.isCanScroll = props.scrollable == null ? offsetWidth > wrapWidth : props.scrollable;
5605
+ if (state.isCanScroll) {
5573
5606
  state.wrapWidth = wrapWidth;
5574
5607
  state.offsetWidth = offsetWidth;
5575
5608
  state.duration = offsetWidth / props.speed;
@@ -5583,7 +5616,9 @@ const _sfc_main$X = create$X({
5583
5616
  emit("click", event);
5584
5617
  };
5585
5618
  const onClickIcon = (event) => {
5586
- state.showNoticeBar = !props.closeMode;
5619
+ if (props.closeMode) {
5620
+ state.showNoticeBar = !props.closeMode;
5621
+ }
5587
5622
  emit("close", event);
5588
5623
  };
5589
5624
  const onAnimationEnd = () => {
@@ -5656,6 +5691,7 @@ const _sfc_main$X = create$X({
5656
5691
  clearInterval(state.timer);
5657
5692
  });
5658
5693
  return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(state)), {
5694
+ isEllipsis,
5659
5695
  classes,
5660
5696
  iconShow,
5661
5697
  barStyle,
@@ -5677,7 +5713,7 @@ const _hoisted_1$K = {
5677
5713
  ref: "wrap",
5678
5714
  class: "wrap"
5679
5715
  };
5680
- const _hoisted_2$C = ["onClick"];
5716
+ const _hoisted_2$D = ["onClick"];
5681
5717
  function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
5682
5718
  const _component_nut_icon = resolveComponent("nut-icon");
5683
5719
  const _component_ScrollItem = resolveComponent("ScrollItem");
@@ -5695,17 +5731,19 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
5695
5731
  class: "left-icon",
5696
5732
  style: normalizeStyle({ "background-image": `url(${_ctx.iconBg})` })
5697
5733
  }, [
5698
- !_ctx.iconBg ? (openBlock(), createBlock(_component_nut_icon, {
5699
- key: 0,
5700
- name: "notice",
5701
- size: "16",
5702
- color: _ctx.color
5703
- }, null, 8, ["color"])) : createCommentVNode("", true)
5734
+ renderSlot(_ctx.$slots, "left-icon", {}, () => [
5735
+ !_ctx.iconBg ? (openBlock(), createBlock(_component_nut_icon, {
5736
+ key: 0,
5737
+ name: "notice",
5738
+ size: "16",
5739
+ color: _ctx.color
5740
+ }, null, 8, ["color"])) : createCommentVNode("", true)
5741
+ ])
5704
5742
  ], 4)) : createCommentVNode("", true),
5705
5743
  createElementVNode("view", _hoisted_1$K, [
5706
5744
  createElementVNode("view", {
5707
5745
  ref: "content",
5708
- class: normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": !_ctx.scrollable && !_ctx.wrapable }]]),
5746
+ class: normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": _ctx.isEllipsis }]]),
5709
5747
  style: normalizeStyle(_ctx.contentStyle),
5710
5748
  onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
5711
5749
  onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
@@ -5715,15 +5753,17 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
5715
5753
  ])
5716
5754
  ], 38)
5717
5755
  ], 512),
5718
- _ctx.closeMode ? (openBlock(), createElementBlock("view", {
5756
+ _ctx.closeMode || _ctx.rightIcon ? (openBlock(), createElementBlock("view", {
5719
5757
  key: 1,
5720
5758
  class: "right-icon",
5721
5759
  onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
5722
5760
  }, [
5723
- createVNode(_component_nut_icon, {
5724
- name: "close",
5725
- color: _ctx.color
5726
- }, null, 8, ["color"])
5761
+ renderSlot(_ctx.$slots, "right-icon", {}, () => [
5762
+ createVNode(_component_nut_icon, {
5763
+ name: _ctx.rightIcon ? _ctx.rightIcon : "close",
5764
+ color: _ctx.color
5765
+ }, null, 8, ["name", "color"])
5766
+ ])
5727
5767
  ])) : createCommentVNode("", true)
5728
5768
  ], 6)), [
5729
5769
  [vShow, _ctx.showNoticeBar]
@@ -5756,7 +5796,7 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
5756
5796
  key: index,
5757
5797
  style: normalizeStyle({ height: _ctx.height }),
5758
5798
  onClick: ($event) => _ctx.go(item)
5759
- }, toDisplayString(item), 13, _hoisted_2$C);
5799
+ }, toDisplayString(item), 13, _hoisted_2$D);
5760
5800
  }), 128))
5761
5801
  ], 4)),
5762
5802
  createElementVNode("view", {
@@ -5870,11 +5910,11 @@ const _hoisted_1$J = {
5870
5910
  key: 0,
5871
5911
  class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
5872
5912
  };
5873
- const _hoisted_2$B = {
5913
+ const _hoisted_2$C = {
5874
5914
  key: 0,
5875
5915
  class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
5876
5916
  };
5877
- const _hoisted_3$t = { class: "nut-searchbar__input-inner" };
5917
+ const _hoisted_3$u = { class: "nut-searchbar__input-inner" };
5878
5918
  const _hoisted_4$m = ["type", "maxlength", "placeholder", "value"];
5879
5919
  const _hoisted_5$e = {
5880
5920
  key: 1,
@@ -5897,10 +5937,10 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
5897
5937
  class: "nut-searchbar__search-input",
5898
5938
  style: normalizeStyle(_ctx.inputSearchbarStyle)
5899
5939
  }, [
5900
- _ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2$B, [
5940
+ _ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2$C, [
5901
5941
  renderSlot(_ctx.$slots, "leftin")
5902
5942
  ])) : createCommentVNode("", true),
5903
- createElementVNode("view", _hoisted_3$t, [
5943
+ createElementVNode("view", _hoisted_3$u, [
5904
5944
  createElementVNode("form", {
5905
5945
  action: "#",
5906
5946
  onSubmit: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
@@ -5981,8 +6021,8 @@ const _sfc_main$V = create$V({
5981
6021
  }
5982
6022
  });
5983
6023
  const _hoisted_1$I = { class: "nut-empty" };
5984
- const _hoisted_2$A = ["src"];
5985
- const _hoisted_3$s = {
6024
+ const _hoisted_2$B = ["src"];
6025
+ const _hoisted_3$t = {
5986
6026
  key: 1,
5987
6027
  class: "nut-empty-description"
5988
6028
  };
@@ -5997,10 +6037,10 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
5997
6037
  key: 0,
5998
6038
  class: "img",
5999
6039
  src: _ctx.imageUrl
6000
- }, null, 8, _hoisted_2$A)) : createCommentVNode("", true)
6040
+ }, null, 8, _hoisted_2$B)) : createCommentVNode("", true)
6001
6041
  ], 64))
6002
6042
  ], 4),
6003
- _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$s, toDisplayString(_ctx.description), 1)),
6043
+ _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$t, toDisplayString(_ctx.description), 1)),
6004
6044
  _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("", true)
6005
6045
  ]);
6006
6046
  }
@@ -6192,11 +6232,11 @@ const _sfc_main$U = create$U({
6192
6232
  }
6193
6233
  });
6194
6234
  const _hoisted_1$H = { class: "nut-audio" };
6195
- const _hoisted_2$z = {
6235
+ const _hoisted_2$A = {
6196
6236
  key: 0,
6197
6237
  class: "progress-wrapper"
6198
6238
  };
6199
- const _hoisted_3$r = { class: "time" };
6239
+ const _hoisted_3$s = { class: "time" };
6200
6240
  const _hoisted_4$l = { class: "progress-bar-wrapper" };
6201
6241
  const _hoisted_5$d = /* @__PURE__ */ createElementVNode("div", { class: "custom-button" }, null, -1);
6202
6242
  const _hoisted_6$a = { class: "time" };
@@ -6209,8 +6249,8 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
6209
6249
  const _component_nut_range = resolveComponent("nut-range");
6210
6250
  const _component_nut_icon = resolveComponent("nut-icon");
6211
6251
  return openBlock(), createElementBlock("div", _hoisted_1$H, [
6212
- _ctx.type == "progress" ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
6213
- createElementVNode("div", _hoisted_3$r, toDisplayString(_ctx.currentDuration), 1),
6252
+ _ctx.type == "progress" ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
6253
+ createElementVNode("div", _hoisted_3$s, toDisplayString(_ctx.currentDuration), 1),
6214
6254
  createElementVNode("div", _hoisted_4$l, [
6215
6255
  createVNode(_component_nut_range, {
6216
6256
  modelValue: _ctx.percent,
@@ -6286,8 +6326,8 @@ const _sfc_main$T = create$T({
6286
6326
  }
6287
6327
  });
6288
6328
  const _hoisted_1$G = { class: "nut-audio-operate" };
6289
- const _hoisted_2$y = /* @__PURE__ */ createTextVNode("\u5012\u9000");
6290
- const _hoisted_3$q = /* @__PURE__ */ createTextVNode("\u5FEB\u8FDB");
6329
+ const _hoisted_2$z = /* @__PURE__ */ createTextVNode("\u5012\u9000");
6330
+ const _hoisted_3$r = /* @__PURE__ */ createTextVNode("\u5FEB\u8FDB");
6291
6331
  const _hoisted_4$k = /* @__PURE__ */ createTextVNode("\u9759\u97F3");
6292
6332
  function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
6293
6333
  const _component_nut_button = resolveComponent("nut-button");
@@ -6303,7 +6343,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
6303
6343
  size: "small"
6304
6344
  }, {
6305
6345
  default: withCtx(() => [
6306
- _hoisted_2$y
6346
+ _hoisted_2$z
6307
6347
  ]),
6308
6348
  _: 1
6309
6349
  })) : createCommentVNode("", true),
@@ -6337,7 +6377,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
6337
6377
  size: "small"
6338
6378
  }, {
6339
6379
  default: withCtx(() => [
6340
- _hoisted_3$q
6380
+ _hoisted_3$r
6341
6381
  ]),
6342
6382
  _: 1
6343
6383
  })) : createCommentVNode("", true),
@@ -6369,27 +6409,13 @@ const _sfc_main$S = create$S({
6369
6409
  leftShow: { type: Boolean, default: true },
6370
6410
  title: { type: String, default: "" },
6371
6411
  titIcon: { type: String, default: "" },
6372
- icon: { type: String, default: "" },
6373
6412
  desc: { type: String, default: "" },
6374
6413
  defaultIndex: {
6375
6414
  type: Number,
6376
6415
  default: 0
6377
6416
  }
6378
6417
  },
6379
- emits: [
6380
- "click",
6381
- "on-click-back",
6382
- "on-click-title",
6383
- "on-click-right",
6384
- "on-click-desc",
6385
- "on-click-icon",
6386
- "on-click-more",
6387
- "on-click-clear",
6388
- "on-click-send",
6389
- "on-click-slot",
6390
- "on-click-slot-send",
6391
- "switch-tab"
6392
- ],
6418
+ emits: ["click", "on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
6393
6419
  setup(props, { emit }) {
6394
6420
  const activeIndex = ref(props.defaultIndex);
6395
6421
  const classes = computed(() => {
@@ -6407,32 +6433,22 @@ const _sfc_main$S = create$S({
6407
6433
  function handleCenterIcon() {
6408
6434
  emit("on-click-icon");
6409
6435
  }
6410
- function handleClear() {
6411
- emit("on-click-clear");
6412
- }
6413
- function handleSend() {
6414
- emit("on-click-send");
6415
- }
6416
- function handleSlot() {
6417
- emit("on-click-slot");
6418
- }
6419
- function handleSends() {
6420
- emit("on-click-slot-send");
6436
+ function handleRight() {
6437
+ emit("on-click-right");
6421
6438
  }
6422
6439
  return {
6423
6440
  classes,
6424
6441
  handleLeft,
6425
6442
  handleCenter,
6426
6443
  handleCenterIcon,
6427
- handleClear,
6428
- handleSend,
6429
- handleSlot,
6430
- handleSends,
6444
+ handleRight,
6431
6445
  activeIndex
6432
6446
  };
6433
6447
  }
6434
6448
  });
6435
6449
  const _hoisted_1$F = { class: "nut-navbar__left" };
6450
+ const _hoisted_2$y = { class: "nut-navbar__title" };
6451
+ const _hoisted_3$q = { class: "nut-navbar__right" };
6436
6452
  function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
6437
6453
  const _component_nut_icon = resolveComponent("nut-icon");
6438
6454
  return openBlock(), createElementBlock("view", {
@@ -6444,11 +6460,10 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
6444
6460
  color: "#979797",
6445
6461
  name: "left",
6446
6462
  onClick: _ctx.handleLeft
6447
- }, null, 8, ["onClick"])) : createCommentVNode("", true)
6463
+ }, null, 8, ["onClick"])) : createCommentVNode("", true),
6464
+ renderSlot(_ctx.$slots, "left")
6448
6465
  ]),
6449
- createElementVNode("view", {
6450
- class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
6451
- }, [
6466
+ createElementVNode("view", _hoisted_2$y, [
6452
6467
  _ctx.title ? (openBlock(), createElementBlock("view", {
6453
6468
  key: 0,
6454
6469
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
@@ -6460,31 +6475,15 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
6460
6475
  onClick: _ctx.handleCenterIcon
6461
6476
  }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
6462
6477
  renderSlot(_ctx.$slots, "content")
6463
- ], 2),
6464
- _ctx.desc || _ctx.icon ? (openBlock(), createElementBlock("view", {
6465
- key: 0,
6466
- class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
6467
- }, [
6478
+ ]),
6479
+ createElementVNode("view", _hoisted_3$q, [
6468
6480
  _ctx.desc ? (openBlock(), createElementBlock("view", {
6469
6481
  key: 0,
6470
- style: normalizeStyle({ "text-align": _ctx.descTextAlign }),
6471
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClear && _ctx.handleClear(...args))
6472
- }, toDisplayString(_ctx.desc), 5)) : createCommentVNode("", true),
6473
- _ctx.icon ? (openBlock(), createElementBlock("view", {
6474
- key: 1,
6475
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleSends && _ctx.handleSends(...args))
6476
- }, [
6477
- renderSlot(_ctx.$slots, "icons")
6478
- ])) : createCommentVNode("", true),
6479
- createElementVNode("view", null, [
6480
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
6481
- key: 0,
6482
- class: "rightIcon",
6483
- name: _ctx.icon,
6484
- onClick: _ctx.handleSend
6485
- }, null, 8, ["name", "onClick"])) : createCommentVNode("", true)
6486
- ])
6487
- ], 2)) : createCommentVNode("", true)
6482
+ class: "right_text",
6483
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
6484
+ }, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
6485
+ renderSlot(_ctx.$slots, "right")
6486
+ ])
6488
6487
  ], 2);
6489
6488
  }
6490
6489
  var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$N]]);
@@ -7009,7 +7008,11 @@ const _sfc_main$N = create$N({
7009
7008
  }
7010
7009
  if (parent.children[value].to) {
7011
7010
  let to = parent.children[value].to;
7012
- router.push(to);
7011
+ if (to && router) {
7012
+ router.push(to);
7013
+ } else {
7014
+ location.replace(to);
7015
+ }
7013
7016
  }
7014
7017
  });
7015
7018
  });
@@ -9454,6 +9457,7 @@ const _sfc_main$x = create$x({
9454
9457
  return "text";
9455
9458
  });
9456
9459
  const columnList = computed(() => {
9460
+ console.log("\u521D\u59CB\u5316", dataType.value);
9457
9461
  if (dataType.value === "text") {
9458
9462
  return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
9459
9463
  } else if (dataType.value === "multipleColumns") {
@@ -10477,6 +10481,10 @@ const _sfc_main$q = create$q({
10477
10481
  length: {
10478
10482
  type: [String, Number],
10479
10483
  default: 6
10484
+ },
10485
+ isWrapTeleport: {
10486
+ type: Boolean,
10487
+ default: true
10480
10488
  }
10481
10489
  },
10482
10490
  emits: ["update:modelValue", "update:visible", "complete", "change", "ok", "tips", "close", "cancel"],
@@ -10593,7 +10601,8 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
10593
10601
  closeable: true,
10594
10602
  onClickCloseIcon: _ctx.closeIcon,
10595
10603
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
10596
- onClickOverlay: _ctx.close
10604
+ onClickOverlay: _ctx.close,
10605
+ isWrapTeleport: _ctx.isWrapTeleport
10597
10606
  }, {
10598
10607
  default: withCtx(() => [
10599
10608
  createElementVNode("view", _hoisted_1$n, toDisplayString(_ctx.title), 1),
@@ -10650,7 +10659,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
10650
10659
  ])) : createCommentVNode("", true)
10651
10660
  ]),
10652
10661
  _: 1
10653
- }, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay"])
10662
+ }, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "isWrapTeleport"])
10654
10663
  ]);
10655
10664
  }
10656
10665
  var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]);
@@ -12493,6 +12502,9 @@ const _sfc_main$i = create$i({
12493
12502
  emit("update:visible", false);
12494
12503
  };
12495
12504
  const chooseItem = (item, index) => {
12505
+ if (item.disabled) {
12506
+ return;
12507
+ }
12496
12508
  emit("choose", item, index);
12497
12509
  };
12498
12510
  return {
@@ -14298,6 +14310,10 @@ const _sfc_main$9 = create$9({
14298
14310
  default: () => {
14299
14311
  return [];
14300
14312
  }
14313
+ },
14314
+ isWrapTeleport: {
14315
+ type: Boolean,
14316
+ default: false
14301
14317
  }
14302
14318
  },
14303
14319
  emits: ["update:visible", "select"],
@@ -14340,6 +14356,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
14340
14356
  position: "bottom",
14341
14357
  closeable: "",
14342
14358
  round: "",
14359
+ isWrapTeleport: _ctx.isWrapTeleport,
14343
14360
  visible: _ctx.visible,
14344
14361
  style: normalizeStyle(_ctx.popStyle),
14345
14362
  onClickOverlay: _ctx.close,
@@ -14363,7 +14380,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
14363
14380
  ], 2)
14364
14381
  ]),
14365
14382
  _: 3
14366
- }, 8, ["visible", "style", "onClickOverlay", "onClickCloseIcon"]);
14383
+ }, 8, ["isWrapTeleport", "visible", "style", "onClickOverlay", "onClickCloseIcon"]);
14367
14384
  }
14368
14385
  var TimeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9]]);
14369
14386
  const { componentName: componentName$7, create: create$8 } = createComponent("timepannel");
@@ -15243,6 +15260,6 @@ function install(app) {
15243
15260
  }
15244
15261
  });
15245
15262
  }
15246
- const version = "3.1.16";
15263
+ const version = "3.1.18-beta.0";
15247
15264
  var nutui_vue_build = { install, version };
15248
15265
  export { ActionSheet, Address, Audio, AudioOperate, Avatar, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Cell, CellGroup, _sfc_main$A as Checkbox, _sfc_main$z as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Elevator, Empty, FixedNav, Form, FormItem, _sfc_main$H as Grid, GridItem, _sfc_main$1s as Icon, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1l as Layout, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$t as Radio, _sfc_main$s as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$11 as Steps, _sfc_main$1d as Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, nutui_vue_build as default, install, version };