@nutui/nutui 3.1.15 → 3.1.16-beta.1

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 (103) hide show
  1. package/dist/nutui.es.js +302 -340
  2. package/dist/nutui.umd.js +302 -340
  3. package/dist/packages/_es/ActionSheet.js +1 -1
  4. package/dist/packages/_es/Address.js +1 -1
  5. package/dist/packages/_es/Avatar.js +1 -1
  6. package/dist/packages/_es/BackTop.js +1 -1
  7. package/dist/packages/_es/Badge.js +1 -1
  8. package/dist/packages/_es/Barrage.js +1 -1
  9. package/dist/packages/_es/Button.js +1 -1
  10. package/dist/packages/_es/Calendar.js +1 -1
  11. package/dist/packages/_es/Card.js +1 -1
  12. package/dist/packages/_es/Cascader.js +1 -1
  13. package/dist/packages/_es/Cell.js +1 -1
  14. package/dist/packages/_es/CellGroup.js +1 -1
  15. package/dist/packages/_es/Checkbox.js +1 -1
  16. package/dist/packages/_es/CheckboxGroup.js +1 -1
  17. package/dist/packages/_es/CircleProgress.js +1 -1
  18. package/dist/packages/_es/Col.js +1 -1
  19. package/dist/packages/_es/Collapse.js +1 -1
  20. package/dist/packages/_es/CollapseItem.js +1 -1
  21. package/dist/packages/_es/CountDown.js +1 -1
  22. package/dist/packages/_es/CountUp.js +1 -1
  23. package/dist/packages/_es/DatePicker.js +1 -2
  24. package/dist/packages/_es/Dialog.js +1 -1
  25. package/dist/packages/_es/Divider.js +1 -1
  26. package/dist/packages/_es/Drag.js +1 -1
  27. package/dist/packages/_es/Elevator.js +1 -1
  28. package/dist/packages/_es/Empty.js +1 -1
  29. package/dist/packages/_es/FixedNav.js +1 -1
  30. package/dist/packages/_es/Form.js +1 -1
  31. package/dist/packages/_es/FormItem.js +1 -1
  32. package/dist/packages/_es/Grid.js +1 -1
  33. package/dist/packages/_es/GridItem.js +1 -1
  34. package/dist/packages/_es/Icon.js +1 -1
  35. package/dist/packages/_es/ImagePreview.js +1 -1
  36. package/dist/packages/_es/Indicator.js +1 -1
  37. package/dist/packages/_es/InfiniteLoading.js +1 -1
  38. package/dist/packages/_es/Input.js +15 -10
  39. package/dist/packages/_es/InputNumber.js +1 -1
  40. package/dist/packages/_es/Layout.js +1 -1
  41. package/dist/packages/_es/Menu.js +1 -1
  42. package/dist/packages/_es/MenuItem.js +1 -1
  43. package/dist/packages/_es/Navbar.js +6 -32
  44. package/dist/packages/_es/NoticeBar.js +1 -1
  45. package/dist/packages/_es/Notify.js +1 -1
  46. package/dist/packages/_es/NumberKeyboard.js +1 -1
  47. package/dist/packages/_es/OverLay.js +1 -1
  48. package/dist/packages/_es/Pagination.js +1 -1
  49. package/dist/packages/_es/Picker.js +170 -189
  50. package/dist/packages/_es/Popover.js +1 -1
  51. package/dist/packages/_es/Popup.js +1 -1
  52. package/dist/packages/_es/Price.js +1 -1
  53. package/dist/packages/_es/Progress.js +1 -1
  54. package/dist/packages/_es/Radio.js +1 -1
  55. package/dist/packages/_es/RadioGroup.js +1 -1
  56. package/dist/packages/_es/Range.js +1 -1
  57. package/dist/packages/_es/Rate.js +1 -1
  58. package/dist/packages/_es/Row.js +1 -1
  59. package/dist/packages/_es/SearchBar.js +1 -1
  60. package/dist/packages/_es/ShortPassword.js +1 -1
  61. package/dist/packages/_es/SideNavBar.js +1 -1
  62. package/dist/packages/_es/SideNavBarItem.js +1 -1
  63. package/dist/packages/_es/Signature.js +1 -1
  64. package/dist/packages/_es/Skeleton.js +1 -1
  65. package/dist/packages/_es/Sku.js +1 -2
  66. package/dist/packages/_es/Step.js +1 -1
  67. package/dist/packages/_es/Steps.js +1 -1
  68. package/dist/packages/_es/SubSideNavBar.js +1 -1
  69. package/dist/packages/_es/Swipe.js +1 -1
  70. package/dist/packages/_es/Swiper.js +1 -1
  71. package/dist/packages/_es/SwiperItem.js +1 -1
  72. package/dist/packages/_es/Switch.js +1 -1
  73. package/dist/packages/_es/TabPane.js +1 -1
  74. package/dist/packages/_es/Tabbar.js +1 -1
  75. package/dist/packages/_es/TabbarItem.js +1 -1
  76. package/dist/packages/_es/Table.js +1 -1
  77. package/dist/packages/_es/Tabs.js +1 -1
  78. package/dist/packages/_es/Tag.js +1 -1
  79. package/dist/packages/_es/TextArea.js +1 -1
  80. package/dist/packages/_es/TimeDetail.js +1 -1
  81. package/dist/packages/_es/TimePannel.js +1 -1
  82. package/dist/packages/_es/TimeSelect.js +1 -1
  83. package/dist/packages/_es/Toast.js +1 -1
  84. package/dist/packages/_es/Uploader.js +6 -4
  85. package/dist/packages/_es/Video.js +1 -1
  86. package/dist/packages/_es/common.js +1 -1
  87. package/dist/packages/_es/component.js +1 -1
  88. package/dist/packages/_es/index.js +1 -1
  89. package/dist/packages/_es/index2.js +1 -1
  90. package/dist/packages/_es/index3.js +1 -1
  91. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  92. package/dist/packages/_es/pxCheck.js +1 -1
  93. package/dist/packages/_es/raf.js +1 -1
  94. package/dist/packages/_es/util.js +1 -1
  95. package/dist/packages/button/index.scss +3 -0
  96. package/dist/packages/icon/index.scss +2 -2
  97. package/dist/packages/input/index.scss +4 -1
  98. package/dist/packages/menuitem/index.scss +1 -1
  99. package/dist/packages/navbar/index.scss +8 -34
  100. package/dist/packages/picker/index.scss +73 -17
  101. package/dist/style.css +1 -1
  102. package/dist/styles/themes/default.scss +44 -44
  103. package/package.json +1 -1
package/dist/nutui.es.js CHANGED
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
35
35
  return value;
36
36
  };
37
37
  /*!
38
- * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:49 GMT+0800 (GMT+08:00)
38
+ * @nutui/nutui v3.1.16-beta.1 Thu Jan 27 2022 18:18:28 GMT+0800 (中国标准时间)
39
39
  * (c) 2021 @jdf2e.
40
40
  * Released under the MIT License.
41
41
  */
@@ -124,7 +124,7 @@ const _sfc_main$1p = create$1p({
124
124
  };
125
125
  }
126
126
  });
127
- const _hoisted_1$_ = {
127
+ const _hoisted_1$$ = {
128
128
  key: 0,
129
129
  class: "text"
130
130
  };
@@ -139,7 +139,7 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
139
139
  class: "icon",
140
140
  name: _ctx.iconStyles
141
141
  }, null, 8, ["name"]),
142
- _ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_1$_, [
142
+ _ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_1$$, [
143
143
  renderSlot(_ctx.$slots, "default")
144
144
  ])) : createCommentVNode("", true)
145
145
  ], 6);
@@ -268,7 +268,7 @@ const _sfc_main$1n = create$1n({
268
268
  };
269
269
  }
270
270
  });
271
- const _hoisted_1$Z = { class: "nut-button__warp" };
271
+ const _hoisted_1$_ = { class: "nut-button__warp" };
272
272
  function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
273
273
  const _component_nut_icon = resolveComponent("nut-icon");
274
274
  return openBlock(), createElementBlock("view", {
@@ -276,7 +276,7 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
276
276
  style: normalizeStyle(_ctx.getStyle),
277
277
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
278
278
  }, [
279
- createElementVNode("view", _hoisted_1$Z, [
279
+ createElementVNode("view", _hoisted_1$_, [
280
280
  _ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
281
281
  key: 0,
282
282
  class: "nut-icon-loading"
@@ -340,7 +340,7 @@ const _sfc_main$1m = create$1m({
340
340
  };
341
341
  }
342
342
  });
343
- const _hoisted_1$Y = { class: "title" };
343
+ const _hoisted_1$Z = { class: "title" };
344
344
  const _hoisted_2$O = { class: "nut-cell__title-desc" };
345
345
  function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
346
346
  const _component_nut_icon = resolveComponent("nut-icon");
@@ -360,7 +360,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
360
360
  name: _ctx.icon
361
361
  }, null, 8, ["name"])) : createCommentVNode("", true),
362
362
  _ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
363
- createElementVNode("view", _hoisted_1$Y, toDisplayString(_ctx.title), 1),
363
+ createElementVNode("view", _hoisted_1$Z, toDisplayString(_ctx.title), 1),
364
364
  createElementVNode("view", _hoisted_2$O, toDisplayString(_ctx.subTitle), 1)
365
365
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
366
366
  createTextVNode(toDisplayString(_ctx.title), 1)
@@ -398,7 +398,7 @@ const _sfc_main$1l = create$1l({
398
398
  };
399
399
  }
400
400
  });
401
- const _hoisted_1$X = {
401
+ const _hoisted_1$Y = {
402
402
  key: 1,
403
403
  class: "nut-cell-group__title"
404
404
  };
@@ -411,7 +411,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
411
411
  return openBlock(), createElementBlock("view", {
412
412
  class: normalizeClass(_ctx.classes)
413
413
  }, [
414
- _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$X, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
414
+ _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$Y, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
415
415
  _ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$N, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
416
416
  createElementVNode("view", _hoisted_3$B, [
417
417
  renderSlot(_ctx.$slots, "default")
@@ -503,7 +503,7 @@ const _sfc_main$1k = create$1k({
503
503
  };
504
504
  }
505
505
  });
506
- const _hoisted_1$W = ["innerHTML"];
506
+ const _hoisted_1$X = ["innerHTML"];
507
507
  const _hoisted_2$M = ["innerHTML"];
508
508
  function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
509
509
  return openBlock(), createElementBlock("view", {
@@ -513,7 +513,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
513
513
  key: 0,
514
514
  class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
515
515
  innerHTML: _ctx.showSymbol
516
- }, null, 10, _hoisted_1$W)) : createCommentVNode("", true),
516
+ }, null, 10, _hoisted_1$X)) : createCommentVNode("", true),
517
517
  createElementVNode("view", {
518
518
  class: normalizeClass(`nut-price--${_ctx.size}`)
519
519
  }, toDisplayString(_ctx.formatThousands(_ctx.price)), 3),
@@ -953,7 +953,7 @@ const _sfc_main$1e = create$1e({
953
953
  });
954
954
  }
955
955
  });
956
- const _hoisted_1$V = { key: 1 };
956
+ const _hoisted_1$W = { key: 1 };
957
957
  function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
958
958
  const _component_nut_overlay = resolveComponent("nut-overlay");
959
959
  const _component_nut_icon = resolveComponent("nut-icon");
@@ -1000,7 +1000,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
1000
1000
  ]),
1001
1001
  _: 3
1002
1002
  }, 8, ["name", "onAfterEnter", "onAfterLeave"])
1003
- ], 8, ["to"])) : (openBlock(), createElementBlock("view", _hoisted_1$V, [
1003
+ ], 8, ["to"])) : (openBlock(), createElementBlock("view", _hoisted_1$W, [
1004
1004
  _ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
1005
1005
  key: 0,
1006
1006
  visible: _ctx.visible,
@@ -1315,7 +1315,7 @@ const _sfc_main$1d = create$1d({
1315
1315
  });
1316
1316
  }
1317
1317
  });
1318
- const _hoisted_1$U = {
1318
+ const _hoisted_1$V = {
1319
1319
  class: "nut-video",
1320
1320
  ref: "videocon"
1321
1321
  };
@@ -1339,7 +1339,7 @@ const _hoisted_10$4 = { class: "duration-time" };
1339
1339
  const _hoisted_11$4 = { class: "nut-video-error" };
1340
1340
  const _hoisted_12$4 = /* @__PURE__ */ createElementVNode("p", { class: "lose" }, "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25", -1);
1341
1341
  function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
1342
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
1342
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
1343
1343
  createElementVNode("video", {
1344
1344
  ref: "root",
1345
1345
  class: "nut-video-player",
@@ -1580,7 +1580,7 @@ const _sfc_main$1c = create$1c({
1580
1580
  state.children.push(child.proxy);
1581
1581
  }
1582
1582
  };
1583
- const range2 = (num, min, max) => {
1583
+ const range = (num, min, max) => {
1584
1584
  return Math.min(Math.max(num, min), max);
1585
1585
  };
1586
1586
  const requestFrame = (fn) => {
@@ -1593,7 +1593,7 @@ const _sfc_main$1c = create$1c({
1593
1593
  }
1594
1594
  let targetOffset = offset - currentPosition;
1595
1595
  if (!props.loop) {
1596
- targetOffset = range2(targetOffset, minOffset.value, 0);
1596
+ targetOffset = range(targetOffset, minOffset.value, 0);
1597
1597
  }
1598
1598
  return targetOffset;
1599
1599
  };
@@ -1601,9 +1601,9 @@ const _sfc_main$1c = create$1c({
1601
1601
  const { active } = state;
1602
1602
  if (pace) {
1603
1603
  if (props.loop) {
1604
- return range2(active + pace, -1, childCount.value);
1604
+ return range(active + pace, -1, childCount.value);
1605
1605
  }
1606
- return range2(active + pace, 0, childCount.value - 1);
1606
+ return range(active + pace, 0, childCount.value - 1);
1607
1607
  }
1608
1608
  return active;
1609
1609
  };
@@ -2070,7 +2070,7 @@ const _sfc_main$1a = create$1a({
2070
2070
  });
2071
2071
  }
2072
2072
  });
2073
- const _hoisted_1$T = ["src"];
2073
+ const _hoisted_1$U = ["src"];
2074
2074
  const _hoisted_2$K = { class: "nut-imagepreview-index" };
2075
2075
  function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
2076
2076
  const _component_nut_video = resolveComponent("nut-video");
@@ -2120,7 +2120,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
2120
2120
  createElementVNode("img", {
2121
2121
  src: item.src,
2122
2122
  class: "nut-imagepreview-img"
2123
- }, null, 8, _hoisted_1$T)
2123
+ }, null, 8, _hoisted_1$U)
2124
2124
  ]),
2125
2125
  _: 2
2126
2126
  }, 1024);
@@ -2386,7 +2386,7 @@ const _sfc_main$19 = create$19({
2386
2386
  });
2387
2387
  }
2388
2388
  });
2389
- const _hoisted_1$S = {
2389
+ const _hoisted_1$T = {
2390
2390
  class: "nut-swipe__left",
2391
2391
  ref: "leftRef"
2392
2392
  };
@@ -2404,7 +2404,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
2404
2404
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
2405
2405
  onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
2406
2406
  }, [
2407
- createElementVNode("view", _hoisted_1$S, [
2407
+ createElementVNode("view", _hoisted_1$T, [
2408
2408
  renderSlot(_ctx.$slots, "left")
2409
2409
  ], 512),
2410
2410
  createElementVNode("view", _hoisted_2$J, [
@@ -2486,7 +2486,7 @@ const _sfc_main$18 = create$18({
2486
2486
  };
2487
2487
  }
2488
2488
  });
2489
- const _hoisted_1$R = { class: "nut-actionsheet-panel" };
2489
+ const _hoisted_1$S = { class: "nut-actionsheet-panel" };
2490
2490
  const _hoisted_2$I = {
2491
2491
  key: 0,
2492
2492
  class: "nut-actionsheet-title"
@@ -2514,7 +2514,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
2514
2514
  onClickOverlay: _ctx.close
2515
2515
  }, {
2516
2516
  default: withCtx(() => [
2517
- createElementVNode("view", _hoisted_1$R, [
2517
+ createElementVNode("view", _hoisted_1$S, [
2518
2518
  _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$I, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
2519
2519
  _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3$y, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
2520
2520
  _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4$q, [
@@ -2933,7 +2933,7 @@ const _sfc_main$15 = create$15({
2933
2933
  });
2934
2934
  }
2935
2935
  });
2936
- const _hoisted_1$Q = { class: "collapse-title" };
2936
+ const _hoisted_1$R = { class: "collapse-title" };
2937
2937
  const _hoisted_2$H = { class: "collapse-title-value" };
2938
2938
  const _hoisted_3$x = ["innerHTML"];
2939
2939
  const _hoisted_4$p = {
@@ -2958,7 +2958,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
2958
2958
  class: normalizeClass(["collapse-item", { "item-expanded": _ctx.openExpanded }, { "nut-collapse-item-disabled": _ctx.disabled }]),
2959
2959
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleOpen && _ctx.toggleOpen(...args))
2960
2960
  }, [
2961
- createElementVNode("view", _hoisted_1$Q, [
2961
+ createElementVNode("view", _hoisted_1$R, [
2962
2962
  createElementVNode("view", null, [
2963
2963
  createElementVNode("view", _hoisted_2$H, [
2964
2964
  _ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, {
@@ -3312,7 +3312,7 @@ const _sfc_main$13 = create$13({
3312
3312
  };
3313
3313
  }
3314
3314
  });
3315
- const _hoisted_1$P = {
3315
+ const _hoisted_1$Q = {
3316
3316
  key: 0,
3317
3317
  class: "nut-dialog__header"
3318
3318
  };
@@ -3334,7 +3334,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
3334
3334
  createElementVNode("view", {
3335
3335
  class: normalizeClass(_ctx.classes)
3336
3336
  }, [
3337
- _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$P, [
3337
+ _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$Q, [
3338
3338
  _ctx.$slots.header ? renderSlot(_ctx.$slots, "header", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
3339
3339
  createTextVNode(toDisplayString(_ctx.title), 1)
3340
3340
  ], 64))
@@ -3647,7 +3647,7 @@ const _sfc_main$12 = create$12({
3647
3647
  });
3648
3648
  }
3649
3649
  });
3650
- const _hoisted_1$O = { class: "top-box" };
3650
+ const _hoisted_1$P = { class: "top-box" };
3651
3651
  const _hoisted_2$F = { class: "top-text" };
3652
3652
  const _hoisted_3$w = { class: "nut-infinite-container" };
3653
3653
  const _hoisted_4$o = { class: "nut-infinite-bottom" };
@@ -3674,7 +3674,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
3674
3674
  ref: "refreshTop",
3675
3675
  style: normalizeStyle(_ctx.getStyle)
3676
3676
  }, [
3677
- createElementVNode("view", _hoisted_1$O, [
3677
+ createElementVNode("view", _hoisted_1$P, [
3678
3678
  createVNode(_component_nut_icon, {
3679
3679
  class: "top-img",
3680
3680
  name: _ctx.pullIcon
@@ -4124,7 +4124,7 @@ const _sfc_main$10 = create$10({
4124
4124
  });
4125
4125
  }
4126
4126
  });
4127
- const _hoisted_1$N = { class: "nut-range-container" };
4127
+ const _hoisted_1$O = { class: "nut-range-container" };
4128
4128
  const _hoisted_2$E = {
4129
4129
  key: 0,
4130
4130
  class: "min"
@@ -4144,7 +4144,7 @@ const _hoisted_7$8 = {
4144
4144
  class: "max"
4145
4145
  };
4146
4146
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
4147
- return openBlock(), createElementBlock("view", _hoisted_1$N, [
4147
+ return openBlock(), createElementBlock("view", _hoisted_1$O, [
4148
4148
  !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_2$E, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
4149
4149
  createElementVNode("view", {
4150
4150
  ref: "root",
@@ -4317,7 +4317,7 @@ const _sfc_main$_ = create$_({
4317
4317
  });
4318
4318
  }
4319
4319
  });
4320
- const _hoisted_1$M = { class: "nut-step-head" };
4320
+ const _hoisted_1$N = { class: "nut-step-head" };
4321
4321
  const _hoisted_2$D = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
4322
4322
  const _hoisted_3$u = {
4323
4323
  key: 2,
@@ -4331,7 +4331,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
4331
4331
  return openBlock(), createElementBlock("view", {
4332
4332
  class: normalizeClass(_ctx.classes)
4333
4333
  }, [
4334
- createElementVNode("view", _hoisted_1$M, [
4334
+ createElementVNode("view", _hoisted_1$N, [
4335
4335
  _hoisted_2$D,
4336
4336
  createElementVNode("view", {
4337
4337
  class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
@@ -4440,7 +4440,7 @@ const _sfc_main$Z = create$Z({
4440
4440
  };
4441
4441
  }
4442
4442
  });
4443
- const _hoisted_1$L = { class: "switch-button" };
4443
+ const _hoisted_1$M = { class: "switch-button" };
4444
4444
  function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
4445
4445
  const _component_nut_icon = resolveComponent("nut-icon");
4446
4446
  return openBlock(), createElementBlock("view", {
@@ -4448,7 +4448,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
4448
4448
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
4449
4449
  style: normalizeStyle(_ctx.style)
4450
4450
  }, [
4451
- createElementVNode("view", _hoisted_1$L, [
4451
+ createElementVNode("view", _hoisted_1$M, [
4452
4452
  _ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
4453
4453
  key: 0,
4454
4454
  name: _ctx.name,
@@ -4596,7 +4596,7 @@ const _sfc_main$Y = create$Y({
4596
4596
  };
4597
4597
  }
4598
4598
  });
4599
- const _hoisted_1$K = {
4599
+ const _hoisted_1$L = {
4600
4600
  key: 0,
4601
4601
  class: "nut-toast-icon-wrapper"
4602
4602
  };
@@ -4627,7 +4627,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
4627
4627
  "background-color": _ctx.bgColor
4628
4628
  })
4629
4629
  }, [
4630
- _ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1$K, [
4630
+ _ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1$L, [
4631
4631
  createVNode(_component_nut_icon, {
4632
4632
  size: "20",
4633
4633
  color: "#ffffff",
@@ -4841,10 +4841,10 @@ const _sfc_main$X = create$X({
4841
4841
  };
4842
4842
  }
4843
4843
  });
4844
- const _hoisted_1$J = { class: "nut-progress" };
4844
+ const _hoisted_1$K = { class: "nut-progress" };
4845
4845
  function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
4846
4846
  const _component_nut_icon = resolveComponent("nut-icon");
4847
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
4847
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
4848
4848
  createElementVNode("div", {
4849
4849
  class: normalizeClass(["nut-progress-outer", [
4850
4850
  _ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "",
@@ -4943,7 +4943,7 @@ const _sfc_main$W = create$W({
4943
4943
  };
4944
4944
  }
4945
4945
  });
4946
- const _hoisted_1$I = ["height", "width"];
4946
+ const _hoisted_1$J = ["height", "width"];
4947
4947
  const _hoisted_2$B = ["r", "cx", "cy", "stroke", "stroke-width"];
4948
4948
  const _hoisted_3$s = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
4949
4949
  const _hoisted_4$l = { class: "nut-circleprogress-content" };
@@ -4977,7 +4977,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
4977
4977
  "stroke-linecap": "round",
4978
4978
  style: { "transition": "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s" }
4979
4979
  }, null, 8, _hoisted_3$s)
4980
- ], 8, _hoisted_1$I)),
4980
+ ], 8, _hoisted_1$J)),
4981
4981
  createElementVNode("div", _hoisted_4$l, [
4982
4982
  !_ctx.isAuto ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
4983
4983
  createTextVNode(toDisplayString(_ctx.progress) + "%", 1)
@@ -5244,7 +5244,7 @@ const _sfc_main$V = create$V({
5244
5244
  });
5245
5245
  }
5246
5246
  });
5247
- const _hoisted_1$H = {
5247
+ const _hoisted_1$I = {
5248
5248
  ref: "wrap",
5249
5249
  class: "wrap"
5250
5250
  };
@@ -5273,7 +5273,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
5273
5273
  color: _ctx.color
5274
5274
  }, null, 8, ["color"])) : createCommentVNode("", true)
5275
5275
  ], 4)) : createCommentVNode("", true),
5276
- createElementVNode("view", _hoisted_1$H, [
5276
+ createElementVNode("view", _hoisted_1$I, [
5277
5277
  createElementVNode("view", {
5278
5278
  ref: "content",
5279
5279
  class: normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": !_ctx.scrollable && !_ctx.wrapable }]]),
@@ -5437,7 +5437,7 @@ const _sfc_main$U = create$U({
5437
5437
  });
5438
5438
  }
5439
5439
  });
5440
- const _hoisted_1$G = {
5440
+ const _hoisted_1$H = {
5441
5441
  key: 0,
5442
5442
  class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
5443
5443
  };
@@ -5461,7 +5461,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
5461
5461
  class: "nut-searchbar",
5462
5462
  style: normalizeStyle(_ctx.searchbarStyle)
5463
5463
  }, [
5464
- _ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1$G, [
5464
+ _ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1$H, [
5465
5465
  renderSlot(_ctx.$slots, "leftout")
5466
5466
  ])) : createCommentVNode("", true),
5467
5467
  createElementVNode("view", {
@@ -5551,14 +5551,14 @@ const _sfc_main$T = create$T({
5551
5551
  };
5552
5552
  }
5553
5553
  });
5554
- const _hoisted_1$F = { class: "nut-empty" };
5554
+ const _hoisted_1$G = { class: "nut-empty" };
5555
5555
  const _hoisted_2$y = ["src"];
5556
5556
  const _hoisted_3$q = {
5557
5557
  key: 1,
5558
5558
  class: "nut-empty-description"
5559
5559
  };
5560
5560
  function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
5561
- return openBlock(), createElementBlock("view", _hoisted_1$F, [
5561
+ return openBlock(), createElementBlock("view", _hoisted_1$G, [
5562
5562
  createElementVNode("view", {
5563
5563
  class: "nut-empty-image",
5564
5564
  style: normalizeStyle(_ctx.imgStyle)
@@ -5582,12 +5582,6 @@ const _sfc_main$S = create$S({
5582
5582
  leftShow: { type: Boolean, default: true },
5583
5583
  title: { type: String, default: "" },
5584
5584
  titIcon: { type: String, default: "" },
5585
- tabs: {
5586
- type: Array,
5587
- defaul: () => {
5588
- return [];
5589
- }
5590
- },
5591
5585
  icon: { type: String, default: "" },
5592
5586
  desc: { type: String, default: "" },
5593
5587
  defaultIndex: {
@@ -5617,11 +5611,6 @@ const _sfc_main$S = create$S({
5617
5611
  [prefixCls]: true
5618
5612
  };
5619
5613
  });
5620
- function switchTitle(id, name) {
5621
- activeIndex.value = id;
5622
- console.log(id);
5623
- emit("switch-tab", activeIndex.value, name);
5624
- }
5625
5614
  function handleLeft() {
5626
5615
  emit("on-click-back");
5627
5616
  }
@@ -5652,20 +5641,17 @@ const _sfc_main$S = create$S({
5652
5641
  handleSend,
5653
5642
  handleSlot,
5654
5643
  handleSends,
5655
- switchTitle,
5656
5644
  activeIndex
5657
5645
  };
5658
5646
  }
5659
5647
  });
5660
- const _hoisted_1$E = { class: "nut-navbar__left" };
5661
- const _hoisted_2$x = { class: "tab-title" };
5662
- const _hoisted_3$p = ["onClick"];
5648
+ const _hoisted_1$F = { class: "nut-navbar__left" };
5663
5649
  function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
5664
5650
  const _component_nut_icon = resolveComponent("nut-icon");
5665
5651
  return openBlock(), createElementBlock("view", {
5666
5652
  class: normalizeClass(_ctx.classes)
5667
5653
  }, [
5668
- createElementVNode("view", _hoisted_1$E, [
5654
+ createElementVNode("view", _hoisted_1$F, [
5669
5655
  _ctx.leftShow ? (openBlock(), createBlock(_component_nut_icon, {
5670
5656
  key: 0,
5671
5657
  color: "#979797",
@@ -5673,8 +5659,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
5673
5659
  onClick: _ctx.handleLeft
5674
5660
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
5675
5661
  ]),
5676
- _ctx.title || _ctx.titIcon || _ctx.tabs ? (openBlock(), createElementBlock("view", {
5677
- key: 0,
5662
+ createElementVNode("view", {
5678
5663
  class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
5679
5664
  }, [
5680
5665
  _ctx.title ? (openBlock(), createElementBlock("view", {
@@ -5687,21 +5672,10 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
5687
5672
  name: _ctx.titIcon,
5688
5673
  onClick: _ctx.handleCenterIcon
5689
5674
  }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
5690
- createElementVNode("view", _hoisted_2$x, [
5691
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (item, index) => {
5692
- return openBlock(), createElementBlock("view", {
5693
- class: normalizeClass([
5694
- "tab-title-box",
5695
- { "nut-tab-active": _ctx.activeIndex == item.id || _ctx.activeIndex == index }
5696
- ]),
5697
- onClick: ($event) => _ctx.switchTitle(item.id, item.name),
5698
- key: item.id
5699
- }, toDisplayString(item.name), 11, _hoisted_3$p);
5700
- }), 128))
5701
- ])
5702
- ], 2)) : createCommentVNode("", true),
5675
+ renderSlot(_ctx.$slots, "content")
5676
+ ], 2),
5703
5677
  _ctx.desc || _ctx.icon ? (openBlock(), createElementBlock("view", {
5704
- key: 1,
5678
+ key: 0,
5705
5679
  class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
5706
5680
  }, [
5707
5681
  _ctx.desc ? (openBlock(), createElementBlock("view", {
@@ -5790,9 +5764,9 @@ const _sfc_main$R = create$R({
5790
5764
  return { classes, updateValue, selected };
5791
5765
  }
5792
5766
  });
5793
- const _hoisted_1$D = { class: "nut-fixednav__list" };
5794
- const _hoisted_2$w = ["onClick"];
5795
- const _hoisted_3$o = ["src"];
5767
+ const _hoisted_1$E = { class: "nut-fixednav__list" };
5768
+ const _hoisted_2$x = ["onClick"];
5769
+ const _hoisted_3$p = ["src"];
5796
5770
  const _hoisted_4$j = { class: "span" };
5797
5771
  const _hoisted_5$c = {
5798
5772
  key: 0,
@@ -5813,7 +5787,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
5813
5787
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
5814
5788
  }, null, 8, ["visible"])) : createCommentVNode("", true),
5815
5789
  renderSlot(_ctx.$slots, "list", {}, () => [
5816
- createElementVNode("view", _hoisted_1$D, [
5790
+ createElementVNode("view", _hoisted_1$E, [
5817
5791
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index) => {
5818
5792
  return openBlock(), createElementBlock("view", {
5819
5793
  class: "nut-fixednav__list-item",
@@ -5822,10 +5796,10 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
5822
5796
  }, [
5823
5797
  createElementVNode("img", {
5824
5798
  src: item.icon
5825
- }, null, 8, _hoisted_3$o),
5799
+ }, null, 8, _hoisted_3$p),
5826
5800
  createElementVNode("view", _hoisted_4$j, toDisplayString(item.text), 1),
5827
5801
  item.num ? (openBlock(), createElementBlock("view", _hoisted_5$c, toDisplayString(item.num), 1)) : createCommentVNode("", true)
5828
- ], 8, _hoisted_2$w);
5802
+ ], 8, _hoisted_2$x);
5829
5803
  }), 128))
5830
5804
  ])
5831
5805
  ]),
@@ -5918,8 +5892,8 @@ const _sfc_main$Q = create$Q({
5918
5892
  };
5919
5893
  }
5920
5894
  });
5921
- const _hoisted_1$C = ["onClick"];
5922
- const _hoisted_2$v = { class: "nut-menu__title-text" };
5895
+ const _hoisted_1$D = ["onClick"];
5896
+ const _hoisted_2$w = { class: "nut-menu__title-text" };
5923
5897
  function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
5924
5898
  const _component_nut_icon = resolveComponent("nut-icon");
5925
5899
  return openBlock(), createElementBlock("view", {
@@ -5939,14 +5913,14 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
5939
5913
  createElementVNode("view", {
5940
5914
  class: normalizeClass(["nut-menu__title", { active: item.state.showPopup }])
5941
5915
  }, [
5942
- createElementVNode("view", _hoisted_2$v, toDisplayString(item.renderTitle()), 1),
5916
+ createElementVNode("view", _hoisted_2$w, toDisplayString(item.renderTitle()), 1),
5943
5917
  createVNode(_component_nut_icon, {
5944
5918
  name: item.titleIcon,
5945
5919
  size: "10",
5946
5920
  class: "nut-menu__title-icon"
5947
5921
  }, null, 8, ["name"])
5948
5922
  ], 2)
5949
- ], 14, _hoisted_1$C);
5923
+ ], 14, _hoisted_1$D);
5950
5924
  }), 128))
5951
5925
  ], 2),
5952
5926
  renderSlot(_ctx.$slots, "default")
@@ -6050,8 +6024,8 @@ const _sfc_main$P = create$P({
6050
6024
  };
6051
6025
  }
6052
6026
  });
6053
- const _hoisted_1$B = { class: "nut-menu-item__content" };
6054
- const _hoisted_2$u = ["onClick"];
6027
+ const _hoisted_1$C = { class: "nut-menu-item__content" };
6028
+ const _hoisted_2$v = ["onClick"];
6055
6029
  function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
6056
6030
  const _component_nut_icon = resolveComponent("nut-icon");
6057
6031
  const _component_nut_popup = resolveComponent("nut-popup");
@@ -6080,7 +6054,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
6080
6054
  isWrapTeleport: false
6081
6055
  }), {
6082
6056
  default: withCtx(() => [
6083
- createElementVNode("view", _hoisted_1$B, [
6057
+ createElementVNode("view", _hoisted_1$C, [
6084
6058
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
6085
6059
  return openBlock(), createElementBlock("view", {
6086
6060
  key: index,
@@ -6096,7 +6070,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
6096
6070
  createElementVNode("view", {
6097
6071
  style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
6098
6072
  }, toDisplayString(option.text), 5)
6099
- ], 14, _hoisted_2$u);
6073
+ ], 14, _hoisted_2$v);
6100
6074
  }), 128)),
6101
6075
  renderSlot(_ctx.$slots, "default")
6102
6076
  ])
@@ -6258,12 +6232,12 @@ const _sfc_main$N = create$N({
6258
6232
  };
6259
6233
  }
6260
6234
  });
6261
- const _hoisted_1$A = { class: "nut-tabbar-item_icon-box" };
6262
- const _hoisted_2$t = {
6235
+ const _hoisted_1$B = { class: "nut-tabbar-item_icon-box" };
6236
+ const _hoisted_2$u = {
6263
6237
  key: 0,
6264
6238
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
6265
6239
  };
6266
- const _hoisted_3$n = {
6240
+ const _hoisted_3$o = {
6267
6241
  key: 1,
6268
6242
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
6269
6243
  };
@@ -6277,8 +6251,8 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
6277
6251
  }),
6278
6252
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(_ctx.state.index))
6279
6253
  }, [
6280
- createElementVNode("view", _hoisted_1$A, [
6281
- _ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$t, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$n, toDisplayString("99+"))) : createCommentVNode("", true),
6254
+ createElementVNode("view", _hoisted_1$B, [
6255
+ _ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$u, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$o, toDisplayString("99+"))) : createCommentVNode("", true),
6282
6256
  _ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_4$i, [
6283
6257
  createVNode(_component_nut_icon, {
6284
6258
  class: "nut-tabbar-item_icon-box_icon",
@@ -6427,9 +6401,9 @@ const _sfc_main$M = create$M({
6427
6401
  });
6428
6402
  }
6429
6403
  });
6430
- const _hoisted_1$z = { class: "nut-elevator__list__item__code" };
6431
- const _hoisted_2$s = ["onClick", "innerHTML"];
6432
- const _hoisted_3$m = { class: "nut-elevator__bars__inner" };
6404
+ const _hoisted_1$A = { class: "nut-elevator__list__item__code" };
6405
+ const _hoisted_2$t = ["onClick", "innerHTML"];
6406
+ const _hoisted_3$n = { class: "nut-elevator__bars__inner" };
6433
6407
  const _hoisted_4$h = ["data-index", "onClick"];
6434
6408
  function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
6435
6409
  return openBlock(), createElementBlock("view", {
@@ -6447,14 +6421,14 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
6447
6421
  ref_for: true,
6448
6422
  ref: _ctx.setListGroup
6449
6423
  }, [
6450
- createElementVNode("view", _hoisted_1$z, toDisplayString(item[_ctx.acceptKey]), 1),
6424
+ createElementVNode("view", _hoisted_1$A, toDisplayString(item[_ctx.acceptKey]), 1),
6451
6425
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (subitem) => {
6452
6426
  return openBlock(), createElementBlock("view", {
6453
6427
  class: "nut-elevator__list__item__name",
6454
6428
  key: subitem["id"],
6455
6429
  onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
6456
6430
  innerHTML: subitem.name
6457
- }, null, 8, _hoisted_2$s);
6431
+ }, null, 8, _hoisted_2$t);
6458
6432
  }), 128))
6459
6433
  ]);
6460
6434
  }), 128))
@@ -6471,7 +6445,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
6471
6445
  onTouchmove: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
6472
6446
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
6473
6447
  }, [
6474
- createElementVNode("view", _hoisted_3$m, [
6448
+ createElementVNode("view", _hoisted_3$n, [
6475
6449
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index) => {
6476
6450
  return openBlock(), createElementBlock("view", {
6477
6451
  class: "nut-elevator__bars__inner__item",
@@ -6591,19 +6565,19 @@ const _sfc_main$L = create$L({
6591
6565
  };
6592
6566
  }
6593
6567
  });
6594
- const _hoisted_1$y = { class: "nut-pagination" };
6595
- const _hoisted_2$r = {
6568
+ const _hoisted_1$z = { class: "nut-pagination" };
6569
+ const _hoisted_2$s = {
6596
6570
  key: 0,
6597
6571
  class: "nut-pagination-contain"
6598
6572
  };
6599
- const _hoisted_3$l = ["onClick"];
6573
+ const _hoisted_3$m = ["onClick"];
6600
6574
  const _hoisted_4$g = {
6601
6575
  key: 1,
6602
6576
  class: "nut-pagination-contain"
6603
6577
  };
6604
6578
  const _hoisted_5$b = { class: "nut-pagination-simple" };
6605
6579
  function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
6606
- return openBlock(), createElementBlock("view", _hoisted_1$y, [
6580
+ return openBlock(), createElementBlock("view", _hoisted_1$z, [
6607
6581
  createElementVNode("view", {
6608
6582
  class: normalizeClass(["nut-pagination-prev", _ctx.mode == "multi" ? "" : "simple-border", _ctx.modelValue == 1 ? "disabled" : ""]),
6609
6583
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.select(_ctx.modelValue - 1, true))
@@ -6612,7 +6586,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
6612
6586
  createTextVNode(toDisplayString(_ctx.prevText), 1)
6613
6587
  ])
6614
6588
  ], 2),
6615
- _ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$r, [
6589
+ _ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$s, [
6616
6590
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pages, (item, index) => {
6617
6591
  return openBlock(), createElementBlock("view", {
6618
6592
  key: index + "pagination",
@@ -6622,7 +6596,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
6622
6596
  renderSlot(_ctx.$slots, "page", { item }, () => [
6623
6597
  createTextVNode(toDisplayString(item.text), 1)
6624
6598
  ])
6625
- ], 10, _hoisted_3$l);
6599
+ ], 10, _hoisted_3$m);
6626
6600
  }), 128))
6627
6601
  ])) : createCommentVNode("", true),
6628
6602
  _ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4$g, [
@@ -6777,7 +6751,7 @@ const _sfc_main$K = create$K({
6777
6751
  }, methods);
6778
6752
  }
6779
6753
  });
6780
- const _hoisted_1$x = ["onClick"];
6754
+ const _hoisted_1$y = ["onClick"];
6781
6755
  function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
6782
6756
  const _component_nut_icon = resolveComponent("nut-icon");
6783
6757
  return openBlock(), createElementBlock("view", {
@@ -6812,7 +6786,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
6812
6786
  createElementVNode("view", {
6813
6787
  class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis && !_ctx.titleScroll && _ctx.direction == "horizontal" }])
6814
6788
  }, toDisplayString(item.title), 3)
6815
- ], 14, _hoisted_1$x);
6789
+ ], 14, _hoisted_1$y);
6816
6790
  }), 128))
6817
6791
  ], 6),
6818
6792
  createElementVNode("view", {
@@ -7150,7 +7124,7 @@ const _sfc_main$G = create$G({
7150
7124
  };
7151
7125
  }
7152
7126
  });
7153
- const _hoisted_1$w = {
7127
+ const _hoisted_1$x = {
7154
7128
  key: 3,
7155
7129
  class: "nut-grid-item__text"
7156
7130
  };
@@ -7171,7 +7145,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
7171
7145
  size: _ctx.iconProps.size,
7172
7146
  color: _ctx.iconProps.color
7173
7147
  }, null, 8, ["name", "size", "color"])),
7174
- _ctx.$slots.text ? renderSlot(_ctx.$slots, "text", { key: 2 }) : (openBlock(), createElementBlock("view", _hoisted_1$w, toDisplayString(_ctx.text), 1))
7148
+ _ctx.$slots.text ? renderSlot(_ctx.$slots, "text", { key: 2 }) : (openBlock(), createElementBlock("view", _hoisted_1$x, toDisplayString(_ctx.text), 1))
7175
7149
  ], 64))
7176
7150
  ], 2)
7177
7151
  ], 6);
@@ -7236,8 +7210,8 @@ const _sfc_main$F = create$F({
7236
7210
  });
7237
7211
  }
7238
7212
  });
7239
- const _hoisted_1$v = { class: "nut-sidenavbar__content" };
7240
- const _hoisted_2$q = {
7213
+ const _hoisted_1$w = { class: "nut-sidenavbar__content" };
7214
+ const _hoisted_2$r = {
7241
7215
  class: "nut-sidenavbar__content__list",
7242
7216
  ref: "list"
7243
7217
  };
@@ -7245,8 +7219,8 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
7245
7219
  return openBlock(), createElementBlock("view", {
7246
7220
  class: normalizeClass(_ctx.classes)
7247
7221
  }, [
7248
- createElementVNode("view", _hoisted_1$v, [
7249
- createElementVNode("view", _hoisted_2$q, [
7222
+ createElementVNode("view", _hoisted_1$w, [
7223
+ createElementVNode("view", _hoisted_2$r, [
7250
7224
  renderSlot(_ctx.$slots, "default")
7251
7225
  ], 512)
7252
7226
  ])
@@ -7282,16 +7256,16 @@ const _sfc_main$E = create$E({
7282
7256
  };
7283
7257
  }
7284
7258
  });
7285
- const _hoisted_1$u = ["ikey"];
7286
- const _hoisted_2$p = { class: "nut-sidenavbaritem__title" };
7259
+ const _hoisted_1$v = ["ikey"];
7260
+ const _hoisted_2$q = { class: "nut-sidenavbaritem__title" };
7287
7261
  function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
7288
7262
  return openBlock(), createElementBlock("view", {
7289
7263
  class: "nut-sidenavbaritem",
7290
7264
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
7291
7265
  ikey: _ctx.ikey
7292
7266
  }, [
7293
- createElementVNode("span", _hoisted_2$p, toDisplayString(_ctx.title), 1)
7294
- ], 8, _hoisted_1$u);
7267
+ createElementVNode("span", _hoisted_2$q, toDisplayString(_ctx.title), 1)
7268
+ ], 8, _hoisted_1$v);
7295
7269
  }
7296
7270
  var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$A]]);
7297
7271
  const { componentName: componentName$s, create: create$D } = createComponent("subsidenavbar");
@@ -7340,9 +7314,9 @@ const _sfc_main$D = create$D({
7340
7314
  });
7341
7315
  }
7342
7316
  });
7343
- const _hoisted_1$t = ["ikey"];
7344
- const _hoisted_2$o = { class: "nut-subsidenavbar__title__text" };
7345
- const _hoisted_3$k = { class: "nut-subsidenavbar__title__icon" };
7317
+ const _hoisted_1$u = ["ikey"];
7318
+ const _hoisted_2$p = { class: "nut-subsidenavbar__title__text" };
7319
+ const _hoisted_3$l = { class: "nut-subsidenavbar__title__icon" };
7346
7320
  function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
7347
7321
  const _component_nut_icon = resolveComponent("nut-icon");
7348
7322
  return openBlock(), createElementBlock("view", {
@@ -7353,8 +7327,8 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
7353
7327
  class: "nut-subsidenavbar__title",
7354
7328
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
7355
7329
  }, [
7356
- createElementVNode("span", _hoisted_2$o, toDisplayString(_ctx.title), 1),
7357
- createElementVNode("span", _hoisted_3$k, [
7330
+ createElementVNode("span", _hoisted_2$p, toDisplayString(_ctx.title), 1),
7331
+ createElementVNode("span", _hoisted_3$l, [
7358
7332
  createVNode(_component_nut_icon, {
7359
7333
  name: "down-arrow",
7360
7334
  class: normalizeClass(_ctx.direction)
@@ -7367,7 +7341,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
7367
7341
  }, [
7368
7342
  renderSlot(_ctx.$slots, "default")
7369
7343
  ], 6)
7370
- ], 10, _hoisted_1$t);
7344
+ ], 10, _hoisted_1$u);
7371
7345
  }
7372
7346
  var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$z]]);
7373
7347
  const Utils = {
@@ -7838,9 +7812,9 @@ const _sfc_main$C = create$C({
7838
7812
  }, toRefs(state)), toRefs(props));
7839
7813
  }
7840
7814
  });
7841
- const _hoisted_1$s = { class: "calendar-title" };
7842
- const _hoisted_2$n = { class: "calendar-curr-month" };
7843
- const _hoisted_3$j = {
7815
+ const _hoisted_1$t = { class: "calendar-title" };
7816
+ const _hoisted_2$o = { class: "calendar-curr-month" };
7817
+ const _hoisted_3$k = {
7844
7818
  class: "calendar-weeks",
7845
7819
  ref: "weeksPanel"
7846
7820
  };
@@ -7880,10 +7854,10 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
7880
7854
  class: normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
7881
7855
  }, [
7882
7856
  _ctx.poppable ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
7883
- createElementVNode("view", _hoisted_1$s, toDisplayString(_ctx.title), 1),
7884
- createElementVNode("view", _hoisted_2$n, toDisplayString(_ctx.yearMonthTitle), 1)
7857
+ createElementVNode("view", _hoisted_1$t, toDisplayString(_ctx.title), 1),
7858
+ createElementVNode("view", _hoisted_2$o, toDisplayString(_ctx.yearMonthTitle), 1)
7885
7859
  ], 64)) : createCommentVNode("", true),
7886
- createElementVNode("view", _hoisted_3$j, [
7860
+ createElementVNode("view", _hoisted_3$k, [
7887
7861
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
7888
7862
  return openBlock(), createElementBlock("view", {
7889
7863
  class: "calendar-week-item",
@@ -8207,10 +8181,6 @@ const commonProps = {
8207
8181
  type: Boolean,
8208
8182
  default: false
8209
8183
  },
8210
- visibleItemCount: {
8211
- type: [Number, String],
8212
- default: 7
8213
- },
8214
8184
  defaultIndex: {
8215
8185
  type: [Number, String],
8216
8186
  default: 0
@@ -8220,206 +8190,208 @@ const commonProps = {
8220
8190
  default: 35
8221
8191
  }
8222
8192
  };
8223
- const MOMENTUM_LIMIT_DISTANCE = 15;
8224
- const MOMENTUM_LIMIT_TIME = 300;
8225
- const DEFAULT_DURATION = 200;
8226
8193
  const { create: create$y } = createComponent("picker-column");
8227
- function range(num, min, max) {
8228
- return Math.min(Math.max(num, min), max);
8229
- }
8230
- function stopPropagation(event) {
8231
- event.stopPropagation();
8232
- }
8233
- function preventDefault(event, isStopPropagation) {
8234
- if (typeof event.cancelable !== "boolean" || event.cancelable) {
8235
- event.preventDefault();
8236
- }
8237
- if (isStopPropagation) {
8238
- stopPropagation(event);
8239
- }
8240
- }
8241
- function getElementTranslateY(element) {
8242
- const style = window.getComputedStyle(element);
8243
- const transform = style.transform || style.webkitTransform;
8244
- const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
8245
- return Number(translateY);
8246
- }
8247
- function isObject$1(val) {
8248
- return val !== null && typeof val === "object";
8249
- }
8250
- function isOptionDisabled(option) {
8251
- return isObject$1(option) && option.disabled;
8252
- }
8253
8194
  const _sfc_main$y = create$y({
8254
8195
  props: __spreadValues({
8255
- dataType: String
8196
+ dataType: String,
8197
+ itemShow: {
8198
+ type: Boolean,
8199
+ default: false
8200
+ }
8256
8201
  }, commonProps),
8257
8202
  emits: ["click", "change"],
8258
8203
  setup(props, { emit }) {
8259
8204
  const wrapper = ref();
8260
8205
  const state = reactive({
8261
- index: props.defaultIndex,
8262
- offset: 0,
8263
- duration: 0,
8264
- options: props.listData,
8265
- moving: false,
8266
- startOffset: 0,
8267
- touchStartTime: 0,
8268
- momentumOffset: 0,
8269
- transitionEndTrigger: null
8206
+ touchParams: {
8207
+ startY: 0,
8208
+ endY: 0,
8209
+ startTime: 0,
8210
+ endTime: 0,
8211
+ lastY: 0
8212
+ },
8213
+ currIndex: 1,
8214
+ transformY: 0,
8215
+ scrollDistance: 0,
8216
+ lineSpacing: 36,
8217
+ rotation: 20,
8218
+ timer: null
8270
8219
  });
8271
- const touch = useTouch();
8272
- const wrapperStyle = computed(() => ({
8273
- transform: `translate3d(0, ${state.offset + baseOffset()}px, 0)`,
8274
- transitionDuration: `${state.duration}ms`,
8275
- transitionProperty: state.duration ? "all" : "none"
8276
- }));
8277
- const getIndexByOffset = (offset) => {
8278
- return range(Math.round(-offset / +props.itemHeight), 0, state.options.length - 1);
8220
+ const roller = ref(null);
8221
+ const list = ref(null);
8222
+ const listItem = ref(null);
8223
+ const touchDeg = ref(0);
8224
+ const touchTime = ref(0);
8225
+ const touchTranslateY = ref(0);
8226
+ const touchListStyle = computed(() => {
8227
+ return {
8228
+ transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
8229
+ transform: `translate3d(0, ${state.scrollDistance}px, 0)`
8230
+ };
8231
+ });
8232
+ const touchRollerStyle = computed(() => {
8233
+ return {
8234
+ transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
8235
+ transform: `rotate3d(1, 0, 0, ${touchDeg.value})`
8236
+ };
8237
+ });
8238
+ const onTouchStart = (event) => {
8239
+ event.preventDefault();
8240
+ let changedTouches = event.changedTouches[0];
8241
+ state.touchParams.startY = changedTouches.pageY;
8242
+ state.touchParams.startTime = event.timeStamp || Date.now();
8243
+ state.transformY = state.scrollDistance;
8279
8244
  };
8280
- const baseOffset = () => {
8281
- return +props.itemHeight * (+props.visibleItemCount - 1) / 2;
8245
+ const onTouchMove = (event) => {
8246
+ event.preventDefault();
8247
+ let changedTouches = event.changedTouches[0];
8248
+ state.touchParams.lastY = changedTouches.pageY;
8249
+ state.touchParams.lastTime = event.timeStamp || Date.now();
8250
+ let move = state.touchParams.lastY - state.touchParams.startY;
8251
+ setMove(move);
8282
8252
  };
8283
- const stopMomentum = () => {
8284
- state.moving = false;
8285
- state.duration = 0;
8286
- if (state.transitionEndTrigger) {
8287
- state.transitionEndTrigger();
8288
- state.transitionEndTrigger = null;
8289
- }
8290
- };
8291
- const adjustIndex = (index) => {
8292
- index = range(index, 0, state.options.length);
8293
- for (let i = index; i < state.options.length; i++) {
8294
- if (!isOptionDisabled(state.options[i]))
8295
- return i;
8296
- }
8297
- for (let i = index - 1; i >= 0; i--) {
8298
- if (!isOptionDisabled(state.options[i]))
8299
- return i;
8300
- }
8301
- };
8302
- const setIndex = (index, emitChange = false) => {
8303
- index = adjustIndex(index) || 0;
8304
- const offset = -index * +props.itemHeight;
8305
- const trigger = () => {
8306
- if (index !== state.index) {
8307
- state.index = index;
8308
- if (emitChange) {
8309
- emit("change", index);
8310
- }
8311
- }
8312
- };
8313
- if (state.moving && offset !== state.offset) {
8314
- state.transitionEndTrigger = trigger;
8253
+ const onTouchEnd = (event) => {
8254
+ event.preventDefault();
8255
+ let changedTouches = event.changedTouches[0];
8256
+ state.touchParams.lastY = changedTouches.pageY;
8257
+ state.touchParams.lastTime = event.timestamp || Date.now();
8258
+ let move = state.touchParams.lastY - state.touchParams.startY;
8259
+ let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
8260
+ if (moveTime <= 300) {
8261
+ move = move * 2;
8262
+ moveTime = moveTime + 1e3;
8263
+ setMove(move, "end", moveTime);
8315
8264
  } else {
8316
- trigger();
8265
+ setMove(move, "end");
8317
8266
  }
8318
- state.offset = offset;
8319
8267
  };
8320
- const momentum = (distance, duration) => {
8321
- const speed = Math.abs(distance / duration);
8322
- distance = state.offset + speed / 0.03 * (distance < 0 ? -1 : 1);
8323
- const index = getIndexByOffset(distance);
8324
- setIndex(index, true);
8268
+ const setRollerStyle = (index) => {
8269
+ return `transform: rotate3d(1, 0, 0, ${-state.rotation * index}deg) translate3d(0px, 0px, 104px)`;
8325
8270
  };
8326
- const onTouchStart = (event) => {
8327
- if (props.readonly) {
8328
- return;
8329
- }
8330
- touch.start(event);
8331
- if (state.moving) {
8332
- const translateY = getElementTranslateY(wrapper.value);
8333
- state.offset = Math.min(0, translateY - baseOffset());
8334
- state.startOffset = state.offset;
8271
+ const isHidden = (index) => {
8272
+ if (index >= state.currIndex + 8 || index <= state.currIndex - 8) {
8273
+ return true;
8335
8274
  } else {
8336
- state.startOffset = state.offset;
8275
+ return false;
8337
8276
  }
8338
- state.duration = 0;
8339
- state.touchStartTime = Date.now();
8340
- state.momentumOffset = state.startOffset;
8341
- state.transitionEndTrigger = null;
8342
8277
  };
8343
- const onTouchMove = (event) => {
8344
- if (props.readonly) {
8345
- return;
8346
- }
8347
- state.moving = true;
8348
- touch.move(event);
8349
- if (touch.isVertical()) {
8350
- state.moving = true;
8351
- preventDefault(event, true);
8352
- }
8353
- const moveOffset = state.startOffset + touch.deltaY.value;
8354
- if (moveOffset > props.itemHeight) {
8355
- state.offset = props.itemHeight;
8278
+ const setTransform = (translateY = 0, type, time = 1e3, deg) => {
8279
+ if (type === "end") {
8280
+ touchTime.value = time;
8356
8281
  } else {
8357
- state.offset = state.startOffset + touch.deltaY.value;
8358
- }
8359
- const now = Date.now();
8360
- if (now - state.touchStartTime > MOMENTUM_LIMIT_TIME) {
8361
- state.touchStartTime = now;
8362
- state.momentumOffset = state.offset;
8282
+ touchTime.value = 0;
8363
8283
  }
8284
+ touchDeg.value = deg;
8285
+ touchTranslateY.value = translateY;
8286
+ state.scrollDistance = translateY;
8364
8287
  };
8365
- const onTouchEnd = () => {
8366
- const index = getIndexByOffset(state.offset);
8367
- state.duration = DEFAULT_DURATION;
8368
- setIndex(index, true);
8369
- const distance = state.offset - state.momentumOffset;
8370
- const duration = Date.now() - state.touchStartTime;
8371
- const allowMomentum = duration < MOMENTUM_LIMIT_TIME && Math.abs(distance) > MOMENTUM_LIMIT_DISTANCE;
8372
- if (allowMomentum) {
8373
- momentum(distance, duration);
8374
- return;
8288
+ const setMove = (move, type, time) => {
8289
+ let updateMove = move + state.transformY;
8290
+ if (type === "end") {
8291
+ if (updateMove > 0) {
8292
+ updateMove = 0;
8293
+ }
8294
+ if (updateMove < -(props.listData.values.length - 1) * state.lineSpacing) {
8295
+ updateMove = -(props.listData.values.length - 1) * state.lineSpacing;
8296
+ }
8297
+ let endMove = Math.round(updateMove / state.lineSpacing) * state.lineSpacing;
8298
+ let deg = `${(Math.abs(Math.round(endMove / state.lineSpacing)) + 1) * state.rotation}deg`;
8299
+ setTransform(endMove, type, time, deg);
8300
+ let t = time ? time / 2 : 0;
8301
+ state.timer = setTimeout(() => {
8302
+ setChooseValue();
8303
+ }, t);
8304
+ state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
8305
+ } else {
8306
+ let deg = "0deg";
8307
+ if (updateMove < 0) {
8308
+ deg = `${(Math.abs(updateMove / state.lineSpacing) + 1) * state.rotation}deg`;
8309
+ } else {
8310
+ deg = `${(-updateMove / state.lineSpacing + 1) * state.rotation}deg`;
8311
+ }
8312
+ setTransform(updateMove, null, void 0, deg);
8313
+ state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
8375
8314
  }
8376
8315
  };
8377
- onMounted(() => {
8378
- setIndex(+props.defaultIndex);
8379
- });
8316
+ const setChooseValue = () => {
8317
+ emit("change", state.currIndex - 1);
8318
+ };
8319
+ const modifyStatus = (type) => {
8320
+ let index = props.defaultIndex;
8321
+ state.currIndex = index === -1 ? 1 : index + 1;
8322
+ let move = index === -1 ? 0 : index * state.lineSpacing;
8323
+ type && setChooseValue();
8324
+ setMove(-move);
8325
+ };
8380
8326
  watch(() => props.listData, (val) => {
8381
- if (val) {
8382
- state.options = val;
8383
- }
8327
+ state.transformY = 0;
8328
+ modifyStatus(false);
8329
+ }, {
8330
+ deep: true
8384
8331
  });
8385
8332
  watch(() => props.defaultIndex, (val) => {
8386
- setIndex(+val);
8333
+ state.transformY = 0;
8334
+ modifyStatus(false);
8387
8335
  });
8388
- return __spreadProps(__spreadValues({}, toRefs(state)), {
8336
+ onMounted(() => {
8337
+ modifyStatus(true);
8338
+ });
8339
+ return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
8389
8340
  wrapper,
8341
+ setRollerStyle,
8342
+ isHidden,
8343
+ roller,
8344
+ list,
8345
+ listItem,
8390
8346
  onTouchStart,
8391
8347
  onTouchMove,
8392
8348
  onTouchEnd,
8393
- wrapperStyle,
8394
- stopMomentum,
8395
- columns: state.options,
8396
- height: Number(props.visibleItemCount) * +props.itemHeight
8349
+ touchRollerStyle,
8350
+ touchListStyle
8397
8351
  });
8398
8352
  }
8399
8353
  });
8354
+ const _hoisted_1$s = { class: "nut-picker-content" };
8355
+ const _hoisted_2$n = {
8356
+ key: 0,
8357
+ class: "nut-picker-placeholder"
8358
+ };
8400
8359
  function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
8401
8360
  return openBlock(), createElementBlock("view", {
8402
- class: "nut-picker__content",
8403
- style: normalizeStyle({ height: _ctx.height + "px" }),
8361
+ class: "nut-picker__list",
8404
8362
  onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
8405
8363
  onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
8406
- onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
8407
- onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
8408
- onTransitionend: _cache[4] || (_cache[4] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
8364
+ onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
8409
8365
  }, [
8410
8366
  createElementVNode("view", {
8411
- class: "nut-picker__wrapper",
8412
- ref: "wrapper",
8413
- style: normalizeStyle(_ctx.wrapperStyle)
8367
+ class: "nut-picker-roller",
8368
+ ref: "roller",
8369
+ style: normalizeStyle(_ctx.touchRollerStyle)
8414
8370
  }, [
8415
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index) => {
8371
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listData.values, (item, index) => {
8416
8372
  return openBlock(), createElementBlock("view", {
8417
- class: "nut-picker__item",
8418
- key: index
8419
- }, toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
8373
+ class: normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
8374
+ style: normalizeStyle(_ctx.setRollerStyle(index + 1)),
8375
+ key: item.label ? item.label : index
8376
+ }, toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 7);
8420
8377
  }), 128))
8421
- ], 4)
8422
- ], 36);
8378
+ ], 4),
8379
+ createElementVNode("view", _hoisted_1$s, [
8380
+ createElementVNode("view", {
8381
+ class: "nut-picker-list-panel",
8382
+ ref: "list",
8383
+ style: normalizeStyle(_ctx.touchListStyle)
8384
+ }, [
8385
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listData.values, (item, index) => {
8386
+ return openBlock(), createElementBlock("view", {
8387
+ class: "nut-picker-item nut-picker-item-ref",
8388
+ key: item.label ? item.label : index
8389
+ }, toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
8390
+ }), 128)),
8391
+ _ctx.listData && _ctx.listData.length === 1 ? (openBlock(), createElementBlock("view", _hoisted_2$n)) : createCommentVNode("", true)
8392
+ ], 4)
8393
+ ])
8394
+ ], 32);
8423
8395
  }
8424
8396
  var column = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$w]]);
8425
8397
  const { create: create$x, componentName: componentName$p } = createComponent("picker");
@@ -8459,12 +8431,6 @@ const _sfc_main$x = create$x({
8459
8431
  [prefixCls]: true
8460
8432
  };
8461
8433
  });
8462
- const top = computed(() => {
8463
- return Number(+props.visibleItemCount - 1) / 2 * +props.itemHeight;
8464
- });
8465
- const height = computed(() => {
8466
- return Number(props.visibleItemCount) * +props.itemHeight;
8467
- });
8468
8434
  const dataType = computed(() => {
8469
8435
  const firstColumn = state.formattedColumns[0];
8470
8436
  if (typeof firstColumn === "object") {
@@ -8479,9 +8445,7 @@ const _sfc_main$x = create$x({
8479
8445
  });
8480
8446
  const columnList = computed(() => {
8481
8447
  if (dataType.value === "text") {
8482
- return [
8483
- { values: state.formattedColumns, defaultIndex: state.defaultIndex }
8484
- ];
8448
+ return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
8485
8449
  } else if (dataType.value === "multipleColumns") {
8486
8450
  return state.formattedColumns;
8487
8451
  } else if (dataType.value === "cascade") {
@@ -8546,7 +8510,7 @@ const _sfc_main$x = create$x({
8546
8510
  } else if (dataType.value === "multipleColumns") {
8547
8511
  defaultIndexList[columnIndex] = dataIndex;
8548
8512
  const val = defaultIndexList.map((res, i) => toRaw(state.formattedColumns)[i].values[res]);
8549
- emit("change", val);
8513
+ emit("change", val, columnIndex, dataIndex);
8550
8514
  }
8551
8515
  };
8552
8516
  const confirm = () => {
@@ -8576,8 +8540,6 @@ const _sfc_main$x = create$x({
8576
8540
  column,
8577
8541
  dataType,
8578
8542
  columnList,
8579
- top,
8580
- height,
8581
8543
  close,
8582
8544
  changeHandler,
8583
8545
  confirm
@@ -8586,6 +8548,7 @@ const _sfc_main$x = create$x({
8586
8548
  });
8587
8549
  const _hoisted_1$r = { class: "nut-picker__bar" };
8588
8550
  const _hoisted_2$m = { class: "nut-picker__column" };
8551
+ const _hoisted_3$j = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
8589
8552
  function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
8590
8553
  const _component_nut_picker_column = resolveComponent("nut-picker-column");
8591
8554
  const _component_nut_popup = resolveComponent("nut-popup");
@@ -8594,13 +8557,13 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
8594
8557
  }, [
8595
8558
  createVNode(_component_nut_popup, {
8596
8559
  position: "bottom",
8597
- style: normalizeStyle({ height: _ctx.height + 56 + "px" }),
8598
8560
  visible: _ctx.show,
8599
8561
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
8600
8562
  teleport: _ctx.teleport,
8601
8563
  "lock-scroll": _ctx.lockScroll,
8602
8564
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
8603
- onClose: _ctx.close
8565
+ onClose: _ctx.close,
8566
+ round: true
8604
8567
  }, {
8605
8568
  default: withCtx(() => [
8606
8569
  createElementVNode("view", _hoisted_1$r, [
@@ -8615,36 +8578,29 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
8615
8578
  }, toDisplayString(_ctx.okText), 1)
8616
8579
  ]),
8617
8580
  createElementVNode("view", _hoisted_2$m, [
8618
- createElementVNode("view", {
8619
- class: "nut-picker__mask",
8620
- style: normalizeStyle({ backgroundSize: `100% ${_ctx.top}px` })
8621
- }, null, 4),
8622
- createElementVNode("view", {
8623
- class: "nut-picker__hairline",
8624
- style: normalizeStyle({ top: ` ${_ctx.top}px` })
8625
- }, null, 4),
8581
+ _hoisted_3$j,
8626
8582
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnList, (item, columnIndex) => {
8627
8583
  return openBlock(), createElementBlock("view", {
8628
8584
  class: "nut-picker__columnitem",
8629
8585
  key: columnIndex
8630
8586
  }, [
8631
8587
  createVNode(_component_nut_picker_column, {
8632
- "list-data": item.values,
8588
+ itemShow: _ctx.show,
8589
+ "list-data": item,
8633
8590
  readonly: _ctx.readonly,
8634
8591
  "default-index": item.defaultIndex,
8635
8592
  "visible-item-count": _ctx.visibleItemCount,
8636
- "item-height": _ctx.itemHeight,
8637
8593
  "data-type": _ctx.dataType,
8638
8594
  onChange: (dataIndex) => {
8639
8595
  _ctx.changeHandler(columnIndex, dataIndex);
8640
8596
  }
8641
- }, null, 8, ["list-data", "readonly", "default-index", "visible-item-count", "item-height", "data-type", "onChange"])
8597
+ }, null, 8, ["itemShow", "list-data", "readonly", "default-index", "visible-item-count", "data-type", "onChange"])
8642
8598
  ]);
8643
8599
  }), 128))
8644
8600
  ])
8645
8601
  ]),
8646
8602
  _: 1
8647
- }, 8, ["style", "visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose"])
8603
+ }, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose"])
8648
8604
  ], 2);
8649
8605
  }
8650
8606
  var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$v]]);
@@ -9115,6 +9071,10 @@ const _sfc_main$u = create$u({
9115
9071
  clearable: {
9116
9072
  type: Boolean,
9117
9073
  default: true
9074
+ },
9075
+ hasBorder: {
9076
+ type: Boolean,
9077
+ default: true
9118
9078
  }
9119
9079
  },
9120
9080
  emits: ["change", "update:modelValue", "blur", "focus", "clear"],
@@ -9125,7 +9085,8 @@ const _sfc_main$u = create$u({
9125
9085
  return {
9126
9086
  [prefixCls]: true,
9127
9087
  [`${prefixCls}-disabled`]: props.disabled,
9128
- [`${prefixCls}-require`]: props.requireShow
9088
+ [`${prefixCls}-require`]: props.requireShow,
9089
+ [`${prefixCls}-border`]: props.hasBorder
9129
9090
  };
9130
9091
  });
9131
9092
  const styles = computed(() => {
@@ -9157,7 +9118,7 @@ const _sfc_main$u = create$u({
9157
9118
  const valueBlur = (event) => {
9158
9119
  setTimeout(() => {
9159
9120
  active.value = false;
9160
- }, 0);
9121
+ }, 200);
9161
9122
  const input = event.target;
9162
9123
  let value = input.value;
9163
9124
  if (props.maxLength && value.length > Number(props.maxLength)) {
@@ -9181,20 +9142,20 @@ const _sfc_main$u = create$u({
9181
9142
  };
9182
9143
  }
9183
9144
  });
9184
- const _hoisted_1$p = { class: "nut-input-label" };
9185
- const _hoisted_2$l = {
9145
+ const _hoisted_1$p = {
9186
9146
  key: 0,
9187
- class: "label-string"
9147
+ class: "nut-input-label"
9188
9148
  };
9149
+ const _hoisted_2$l = { class: "label-string" };
9189
9150
  const _hoisted_3$i = ["type", "maxlength", "placeholder", "disabled", "readonly", "value"];
9190
9151
  function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
9191
9152
  const _component_nut_icon = resolveComponent("nut-icon");
9192
9153
  return openBlock(), createElementBlock("view", {
9193
9154
  class: normalizeClass(_ctx.classes)
9194
9155
  }, [
9195
- createElementVNode("view", _hoisted_1$p, [
9196
- _ctx.label ? (openBlock(), createElementBlock("view", _hoisted_2$l, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
9197
- ]),
9156
+ _ctx.label ? (openBlock(), createElementBlock("view", _hoisted_1$p, [
9157
+ createElementVNode("view", _hoisted_2$l, toDisplayString(_ctx.label), 1)
9158
+ ])) : createCommentVNode("", true),
9198
9159
  createElementVNode("input", {
9199
9160
  class: "input-text",
9200
9161
  style: normalizeStyle(_ctx.styles),
@@ -9209,7 +9170,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
9209
9170
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
9210
9171
  }, null, 44, _hoisted_3$i),
9211
9172
  _ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createElementBlock("view", {
9212
- key: 0,
9173
+ key: 1,
9213
9174
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
9214
9175
  class: "nut-textinput-clear"
9215
9176
  }, [
@@ -9508,7 +9469,7 @@ const _sfc_main$q = create$q({
9508
9469
  setup(props, { emit }) {
9509
9470
  const realInput = ref(props.modelValue);
9510
9471
  const realpwd = ref();
9511
- const comLen = computed(() => range2(Number(props.length)));
9472
+ const comLen = computed(() => range(Number(props.length)));
9512
9473
  const show = ref(props.visible);
9513
9474
  function sureClick() {
9514
9475
  emit("ok", realInput.value);
@@ -9544,7 +9505,7 @@ const _sfc_main$q = create$q({
9544
9505
  emit("update:visible", false);
9545
9506
  emit("close");
9546
9507
  }
9547
- function range2(val) {
9508
+ function range(val) {
9548
9509
  return Math.min(Math.max(4, val), 6);
9549
9510
  }
9550
9511
  function onTips() {
@@ -9572,7 +9533,7 @@ const _sfc_main$q = create$q({
9572
9533
  realInput,
9573
9534
  realpwd,
9574
9535
  focus,
9575
- range: range2,
9536
+ range,
9576
9537
  changeValue,
9577
9538
  close,
9578
9539
  onTips,
@@ -10060,8 +10021,9 @@ const _sfc_main$o = create$o({
10060
10021
  if (oversizes.length) {
10061
10022
  emit("oversize", oversizes);
10062
10023
  }
10063
- if (files.length > maximum) {
10064
- files.splice(maximum - 1, files.length - maximum);
10024
+ let currentFileLength = files.length + fileList.length;
10025
+ if (currentFileLength > maximum) {
10026
+ files.splice(files.length - (currentFileLength - maximum));
10065
10027
  }
10066
10028
  return files;
10067
10029
  };
@@ -10071,7 +10033,8 @@ const _sfc_main$o = create$o({
10071
10033
  fileList.splice(index, 1);
10072
10034
  emit("delete", {
10073
10035
  file,
10074
- fileList
10036
+ fileList,
10037
+ index
10075
10038
  });
10076
10039
  } else {
10077
10040
  console.log("\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01");
@@ -13800,7 +13763,6 @@ const _sfc_main$2 = create$2({
13800
13763
  }
13801
13764
  });
13802
13765
  onMounted(() => {
13803
- console.log("\u66F4\u65B0\u53C2\u6570");
13804
13766
  });
13805
13767
  const getSlots = (name) => slots[name];
13806
13768
  const selectSku = (skus) => {
@@ -14211,6 +14173,6 @@ function install(app) {
14211
14173
  }
14212
14174
  });
14213
14175
  }
14214
- const version = "3.1.15";
14176
+ const version = "3.1.16-beta.1";
14215
14177
  var nutui_vue_build = { install, version };
14216
14178
  export { ActionSheet, Address, Avatar, BackTop, Badge, Barrage, Button, Calendar, 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$1o as Icon, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1h as Layout, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, _sfc_main$t as Radio, _sfc_main$s as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$$ as Steps, 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 };