@nutui/nutui-react 1.3.5 → 1.3.7

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 (110) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/esm/ActionSheet.js +15 -25
  3. package/dist/esm/Address.js +151 -221
  4. package/dist/esm/AnimatingNumbers.js +7 -31
  5. package/dist/esm/Audio.js +31 -66
  6. package/dist/esm/Avatar.js +25 -51
  7. package/dist/esm/AvatarGroup.js +2 -9
  8. package/dist/esm/BackTop.js +29 -55
  9. package/dist/esm/Badge.js +9 -20
  10. package/dist/esm/Barrage.js +8 -20
  11. package/dist/esm/Button.js +22 -37
  12. package/dist/esm/Calendar.js +23 -37
  13. package/dist/esm/CalendarItem.js +86 -186
  14. package/dist/esm/Card.js +14 -20
  15. package/dist/esm/Cascader.js +77 -197
  16. package/dist/esm/Cell.js +20 -30
  17. package/dist/esm/CellGroup.js +6 -12
  18. package/dist/esm/Checkbox.js +27 -48
  19. package/dist/esm/CheckboxGroup.js +12 -30
  20. package/dist/esm/CircleProgress.js +11 -28
  21. package/dist/esm/Col.js +11 -22
  22. package/dist/esm/Collapse.js +11 -27
  23. package/dist/esm/CollapseItem.js +33 -47
  24. package/dist/esm/ConfigProvider.js +4 -15
  25. package/dist/esm/CountDown.js +37 -74
  26. package/dist/esm/DatePicker.js +44 -106
  27. package/dist/esm/Dialog.js +31 -89
  28. package/dist/esm/Divider.js +8 -15
  29. package/dist/esm/Drag.js +30 -45
  30. package/dist/esm/Elevator.js +37 -74
  31. package/dist/esm/Empty.js +11 -24
  32. package/dist/esm/FixedNav.js +18 -29
  33. package/dist/esm/Grid.js +13 -28
  34. package/dist/esm/GridItem.js +18 -34
  35. package/dist/esm/ImagePreview.js +36 -71
  36. package/dist/esm/Indicator.js +9 -20
  37. package/dist/esm/Infiniteloading.js +26 -55
  38. package/dist/esm/Input.js +62 -106
  39. package/dist/esm/InputNumber.js +25 -52
  40. package/dist/esm/Layout.js +0 -6
  41. package/dist/esm/Menu.js +27 -49
  42. package/dist/esm/MenuItem.js +32 -56
  43. package/dist/esm/NavBar.js +18 -34
  44. package/dist/esm/NoticeBar.js +54 -102
  45. package/dist/esm/Notify.js +9 -38
  46. package/dist/esm/NumberKeyboard.js +21 -52
  47. package/dist/esm/Pagination.js +38 -71
  48. package/dist/esm/Picker.js +91 -178
  49. package/dist/esm/Popover.js +32 -72
  50. package/dist/esm/Popup.js +40 -72
  51. package/dist/esm/Price.js +7 -24
  52. package/dist/esm/Progress.js +35 -50
  53. package/dist/esm/PullToRefresh.js +28 -83
  54. package/dist/esm/Radio.js +24 -47
  55. package/dist/esm/RadioGroup.js +14 -24
  56. package/dist/esm/Range.js +44 -116
  57. package/dist/esm/Rate.js +21 -39
  58. package/dist/esm/Row.js +7 -16
  59. package/dist/esm/SearchBar.js +47 -68
  60. package/dist/esm/ShortPassword.js +29 -56
  61. package/dist/esm/SideNavBar.js +9 -16
  62. package/dist/esm/SideNavBarItem.js +4 -11
  63. package/dist/esm/Signature.js +13 -43
  64. package/dist/esm/Skeleton.js +13 -23
  65. package/dist/esm/Step.js +12 -28
  66. package/dist/esm/Steps.js +6 -14
  67. package/dist/esm/Sticky.js +24 -52
  68. package/dist/esm/SubSideNavBar.js +7 -22
  69. package/dist/esm/Swipe.js +15 -54
  70. package/dist/esm/Swiper.js +102 -186
  71. package/dist/esm/SwiperItem.js +2 -12
  72. package/dist/esm/Switch.js +13 -27
  73. package/dist/esm/Tabbar.js +13 -25
  74. package/dist/esm/TabbarItem.js +15 -23
  75. package/dist/esm/Table.js +19 -39
  76. package/dist/esm/Tag.js +19 -36
  77. package/dist/esm/TextArea.js +19 -43
  78. package/dist/esm/TimeDetail.js +15 -28
  79. package/dist/esm/TimePannel.js +5 -12
  80. package/dist/esm/TimeSelect.js +35 -59
  81. package/dist/esm/Toast.js +16 -49
  82. package/dist/esm/Uploader.js +57 -152
  83. package/dist/esm/Video.js +8 -19
  84. package/dist/esm/VirtualList.js +84 -118
  85. package/dist/esm/date-710f8c7c.js +9 -33
  86. package/dist/esm/get-scroll-parent-3dcd3f53.js +1 -9
  87. package/dist/esm/icon-8dc4de10.js +11 -21
  88. package/dist/esm/offsetContext-0e3d04b3.js +0 -3
  89. package/dist/esm/overlay-ed3eb37d.js +12 -23
  90. package/dist/esm/render-18227751.js +0 -11
  91. package/dist/esm/tabpane-c957ab14.js +4 -10
  92. package/dist/esm/tabs-0896a61b.js +28 -56
  93. package/dist/esm/types/src/packages/elevator/demo.d.ts +1 -0
  94. package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +2 -0
  95. package/dist/esm/useClientRect-839d18c5.js +0 -5
  96. package/dist/esm/useTouch-a2ea68c6.js +27 -47
  97. package/dist/locales/base.js +1 -1
  98. package/dist/locales/en-US.js +1 -1
  99. package/dist/locales/id-ID.js +1 -1
  100. package/dist/locales/zh-CN.js +1 -1
  101. package/dist/locales/zh-TW.js +1 -1
  102. package/dist/nutui.react.es.js +429 -413
  103. package/dist/nutui.react.umd.js +421 -405
  104. package/dist/packages/menu/menu.scss +4 -0
  105. package/dist/packages/menuitem/menuitem.scss +27 -2
  106. package/dist/packages/searchbar/searchbar.scss +20 -3
  107. package/dist/style.css +1 -1
  108. package/dist/style.es.js +1 -1
  109. package/dist/types/index.d.ts +2 -0
  110. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.3.5 Wed Sep 28 2022 14:35:07 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.3.7 Wed Oct 19 2022 16:54:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import * as React from "react";
7
- import React__default, { useCallback, useState, useEffect, Component, useRef, createContext, useContext as useContext$1, useLayoutEffect, forwardRef, useMemo, useImperativeHandle, memo } from "react";
7
+ import React__default, { useCallback, useState, useEffect, useRef, createContext as createContext$1, useContext as useContext$1, useLayoutEffect, forwardRef, useMemo, useImperativeHandle, memo, Component } from "react";
8
8
  import * as ReactDOM from "react-dom";
9
9
  import ReactDOM__default, { createPortal, unstable_batchedUpdates } from "react-dom";
10
10
  var classname = { exports: {} };
@@ -311,8 +311,8 @@ function _extends$3() {
311
311
  function isAbsolute(pathname) {
312
312
  return pathname.charAt(0) === "/";
313
313
  }
314
- function spliceOne(list, index2) {
315
- for (var i = index2, k2 = i + 1, n2 = list.length; k2 < n2; i += 1, k2 += 1) {
314
+ function spliceOne(list, index) {
315
+ for (var i = index, k2 = i + 1, n2 = list.length; k2 < n2; i += 1, k2 += 1) {
316
316
  list[i] = list[k2];
317
317
  }
318
318
  list.pop();
@@ -373,7 +373,7 @@ function invariant(condition, message) {
373
373
  throw new Error(prefix$1);
374
374
  }
375
375
  var provided = typeof message === "function" ? message() : message;
376
- var value = provided ? prefix$1 + ": " + provided : prefix$1;
376
+ var value = provided ? "".concat(prefix$1, ": ").concat(provided) : prefix$1;
377
377
  throw new Error(value);
378
378
  }
379
379
  function parsePath(path) {
@@ -525,7 +525,7 @@ function createMemoryHistory(props) {
525
525
  function createKey() {
526
526
  return Math.random().toString(36).substr(2, keyLength);
527
527
  }
528
- var index2 = clamp$1(initialIndex, 0, initialEntries.length - 1);
528
+ var index = clamp$1(initialIndex, 0, initialEntries.length - 1);
529
529
  var entries = initialEntries.map(function(entry) {
530
530
  return typeof entry === "string" ? createLocation(entry, void 0, createKey()) : createLocation(entry, void 0, entry.key || createKey());
531
531
  });
@@ -603,8 +603,8 @@ function createMemoryHistory(props) {
603
603
  var history = {
604
604
  length: entries.length,
605
605
  action: "POP",
606
- location: entries[index2],
607
- index: index2,
606
+ location: entries[index],
607
+ index,
608
608
  entries,
609
609
  createHref,
610
610
  push,
@@ -618,136 +618,6 @@ function createMemoryHistory(props) {
618
618
  };
619
619
  return history;
620
620
  }
621
- var MAX_SIGNED_31_BIT_INT = 1073741823;
622
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
623
- function getUniqueId() {
624
- var key = "__global_unique_id__";
625
- return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
626
- }
627
- function objectIs(x2, y2) {
628
- if (x2 === y2) {
629
- return x2 !== 0 || 1 / x2 === 1 / y2;
630
- } else {
631
- return x2 !== x2 && y2 !== y2;
632
- }
633
- }
634
- function createEventEmitter(value) {
635
- var handlers = [];
636
- return {
637
- on: function on(handler) {
638
- handlers.push(handler);
639
- },
640
- off: function off(handler) {
641
- handlers = handlers.filter(function(h2) {
642
- return h2 !== handler;
643
- });
644
- },
645
- get: function get() {
646
- return value;
647
- },
648
- set: function set(newValue, changedBits) {
649
- value = newValue;
650
- handlers.forEach(function(handler) {
651
- return handler(value, changedBits);
652
- });
653
- }
654
- };
655
- }
656
- function onlyChild(children) {
657
- return Array.isArray(children) ? children[0] : children;
658
- }
659
- function createReactContext(defaultValue, calculateChangedBits) {
660
- var _Provider$childContex, _Consumer$contextType;
661
- var contextProp = "__create-react-context-" + getUniqueId() + "__";
662
- var Provider = /* @__PURE__ */ function(_Component) {
663
- _inheritsLoose(Provider2, _Component);
664
- function Provider2() {
665
- var _this;
666
- _this = _Component.apply(this, arguments) || this;
667
- _this.emitter = createEventEmitter(_this.props.value);
668
- return _this;
669
- }
670
- var _proto = Provider2.prototype;
671
- _proto.getChildContext = function getChildContext() {
672
- var _ref;
673
- return _ref = {}, _ref[contextProp] = this.emitter, _ref;
674
- };
675
- _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
676
- if (this.props.value !== nextProps.value) {
677
- var oldValue = this.props.value;
678
- var newValue = nextProps.value;
679
- var changedBits;
680
- if (objectIs(oldValue, newValue)) {
681
- changedBits = 0;
682
- } else {
683
- changedBits = typeof calculateChangedBits === "function" ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
684
- changedBits |= 0;
685
- if (changedBits !== 0) {
686
- this.emitter.set(nextProps.value, changedBits);
687
- }
688
- }
689
- }
690
- };
691
- _proto.render = function render2() {
692
- return this.props.children;
693
- };
694
- return Provider2;
695
- }(Component);
696
- Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = PropTypes.object.isRequired, _Provider$childContex);
697
- var Consumer = /* @__PURE__ */ function(_Component2) {
698
- _inheritsLoose(Consumer2, _Component2);
699
- function Consumer2() {
700
- var _this2;
701
- _this2 = _Component2.apply(this, arguments) || this;
702
- _this2.state = {
703
- value: _this2.getValue()
704
- };
705
- _this2.onUpdate = function(newValue, changedBits) {
706
- var observedBits = _this2.observedBits | 0;
707
- if ((observedBits & changedBits) !== 0) {
708
- _this2.setState({
709
- value: _this2.getValue()
710
- });
711
- }
712
- };
713
- return _this2;
714
- }
715
- var _proto2 = Consumer2.prototype;
716
- _proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
717
- var observedBits = nextProps.observedBits;
718
- this.observedBits = observedBits === void 0 || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
719
- };
720
- _proto2.componentDidMount = function componentDidMount() {
721
- if (this.context[contextProp]) {
722
- this.context[contextProp].on(this.onUpdate);
723
- }
724
- var observedBits = this.props.observedBits;
725
- this.observedBits = observedBits === void 0 || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
726
- };
727
- _proto2.componentWillUnmount = function componentWillUnmount() {
728
- if (this.context[contextProp]) {
729
- this.context[contextProp].off(this.onUpdate);
730
- }
731
- };
732
- _proto2.getValue = function getValue() {
733
- if (this.context[contextProp]) {
734
- return this.context[contextProp].get();
735
- } else {
736
- return defaultValue;
737
- }
738
- };
739
- _proto2.render = function render2() {
740
- return onlyChild(this.props.children)(this.state.value);
741
- };
742
- return Consumer2;
743
- }(Component);
744
- Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = PropTypes.object, _Consumer$contextType);
745
- return {
746
- Provider,
747
- Consumer
748
- };
749
- }
750
- var index = React__default.createContext || createReactContext;
751
621
  var pathToRegexp$2 = { exports: {} };
752
622
  var isarray$1 = Array.isArray || function(arr) {
753
623
  return Object.prototype.toString.call(arr) == "[object Array]";
@@ -765,7 +635,7 @@ var PATH_REGEXP = new RegExp([
765
635
  function parse$1(str, options2) {
766
636
  var tokens = [];
767
637
  var key = 0;
768
- var index2 = 0;
638
+ var index = 0;
769
639
  var path = "";
770
640
  var defaultDelimiter = options2 && options2.delimiter || "/";
771
641
  var res;
@@ -773,13 +643,13 @@ function parse$1(str, options2) {
773
643
  var m2 = res[0];
774
644
  var escaped = res[1];
775
645
  var offset = res.index;
776
- path += str.slice(index2, offset);
777
- index2 = offset + m2.length;
646
+ path += str.slice(index, offset);
647
+ index = offset + m2.length;
778
648
  if (escaped) {
779
649
  path += escaped[1];
780
650
  continue;
781
651
  }
782
- var next = str[index2];
652
+ var next = str[index];
783
653
  var prefix2 = res[2];
784
654
  var name = res[3];
785
655
  var capture = res[4];
@@ -806,8 +676,8 @@ function parse$1(str, options2) {
806
676
  pattern: pattern ? escapeGroup(pattern) : asterisk ? ".*" : "[^" + escapeString(delimiter) + "]+?"
807
677
  });
808
678
  }
809
- if (index2 < str.length) {
810
- path += str.substr(index2);
679
+ if (index < str.length) {
680
+ path += str.substr(index);
811
681
  }
812
682
  if (path) {
813
683
  tokens.push(path);
@@ -1121,8 +991,145 @@ var MEMO_STATICS = {
1121
991
  var TYPE_STATICS = {};
1122
992
  TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1123
993
  TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
994
+ var MAX_SIGNED_31_BIT_INT = 1073741823;
995
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
996
+ function getUniqueId() {
997
+ var key = "__global_unique_id__";
998
+ return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
999
+ }
1000
+ function objectIs(x2, y2) {
1001
+ if (x2 === y2) {
1002
+ return x2 !== 0 || 1 / x2 === 1 / y2;
1003
+ } else {
1004
+ return x2 !== x2 && y2 !== y2;
1005
+ }
1006
+ }
1007
+ function createEventEmitter(value) {
1008
+ var handlers = [];
1009
+ return {
1010
+ on: function on(handler) {
1011
+ handlers.push(handler);
1012
+ },
1013
+ off: function off(handler) {
1014
+ handlers = handlers.filter(function(h2) {
1015
+ return h2 !== handler;
1016
+ });
1017
+ },
1018
+ get: function get() {
1019
+ return value;
1020
+ },
1021
+ set: function set(newValue, changedBits) {
1022
+ value = newValue;
1023
+ handlers.forEach(function(handler) {
1024
+ return handler(value, changedBits);
1025
+ });
1026
+ }
1027
+ };
1028
+ }
1029
+ function onlyChild(children) {
1030
+ return Array.isArray(children) ? children[0] : children;
1031
+ }
1032
+ function createReactContext(defaultValue, calculateChangedBits) {
1033
+ var _Provider$childContex, _Consumer$contextType;
1034
+ var contextProp = "__create-react-context-" + getUniqueId() + "__";
1035
+ var Provider = /* @__PURE__ */ function(_React$Component) {
1036
+ _inheritsLoose(Provider2, _React$Component);
1037
+ function Provider2() {
1038
+ var _this;
1039
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1040
+ args[_key] = arguments[_key];
1041
+ }
1042
+ _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1043
+ _this.emitter = createEventEmitter(_this.props.value);
1044
+ return _this;
1045
+ }
1046
+ var _proto = Provider2.prototype;
1047
+ _proto.getChildContext = function getChildContext() {
1048
+ var _ref;
1049
+ return _ref = {}, _ref[contextProp] = this.emitter, _ref;
1050
+ };
1051
+ _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
1052
+ if (this.props.value !== nextProps.value) {
1053
+ var oldValue = this.props.value;
1054
+ var newValue = nextProps.value;
1055
+ var changedBits;
1056
+ if (objectIs(oldValue, newValue)) {
1057
+ changedBits = 0;
1058
+ } else {
1059
+ changedBits = typeof calculateChangedBits === "function" ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
1060
+ changedBits |= 0;
1061
+ if (changedBits !== 0) {
1062
+ this.emitter.set(nextProps.value, changedBits);
1063
+ }
1064
+ }
1065
+ }
1066
+ };
1067
+ _proto.render = function render2() {
1068
+ return this.props.children;
1069
+ };
1070
+ return Provider2;
1071
+ }(React__default.Component);
1072
+ Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = PropTypes.object.isRequired, _Provider$childContex);
1073
+ var Consumer = /* @__PURE__ */ function(_React$Component2) {
1074
+ _inheritsLoose(Consumer2, _React$Component2);
1075
+ function Consumer2() {
1076
+ var _this2;
1077
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1078
+ args[_key2] = arguments[_key2];
1079
+ }
1080
+ _this2 = _React$Component2.call.apply(_React$Component2, [this].concat(args)) || this;
1081
+ _this2.observedBits = void 0;
1082
+ _this2.state = {
1083
+ value: _this2.getValue()
1084
+ };
1085
+ _this2.onUpdate = function(newValue, changedBits) {
1086
+ var observedBits = _this2.observedBits | 0;
1087
+ if ((observedBits & changedBits) !== 0) {
1088
+ _this2.setState({
1089
+ value: _this2.getValue()
1090
+ });
1091
+ }
1092
+ };
1093
+ return _this2;
1094
+ }
1095
+ var _proto2 = Consumer2.prototype;
1096
+ _proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
1097
+ var observedBits = nextProps.observedBits;
1098
+ this.observedBits = observedBits === void 0 || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
1099
+ };
1100
+ _proto2.componentDidMount = function componentDidMount() {
1101
+ if (this.context[contextProp]) {
1102
+ this.context[contextProp].on(this.onUpdate);
1103
+ }
1104
+ var observedBits = this.props.observedBits;
1105
+ this.observedBits = observedBits === void 0 || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
1106
+ };
1107
+ _proto2.componentWillUnmount = function componentWillUnmount() {
1108
+ if (this.context[contextProp]) {
1109
+ this.context[contextProp].off(this.onUpdate);
1110
+ }
1111
+ };
1112
+ _proto2.getValue = function getValue() {
1113
+ if (this.context[contextProp]) {
1114
+ return this.context[contextProp].get();
1115
+ } else {
1116
+ return defaultValue;
1117
+ }
1118
+ };
1119
+ _proto2.render = function render2() {
1120
+ return onlyChild(this.props.children)(this.state.value);
1121
+ };
1122
+ return Consumer2;
1123
+ }(React__default.Component);
1124
+ Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = PropTypes.object, _Consumer$contextType);
1125
+ return {
1126
+ Provider,
1127
+ Consumer
1128
+ };
1129
+ }
1130
+ var createContext = React__default.createContext || createReactContext;
1124
1131
  var createNamedContext = function createNamedContext2(name) {
1125
- var context2 = index();
1132
+ var context2 = createContext();
1126
1133
  context2.displayName = name;
1127
1134
  return context2;
1128
1135
  };
@@ -1292,8 +1299,8 @@ function matchPath(pathname, options2) {
1292
1299
  path: path2,
1293
1300
  url: path2 === "/" && url === "" ? "/" : url,
1294
1301
  isExact,
1295
- params: keys.reduce(function(memo2, key, index2) {
1296
- memo2[key.name] = values[index2];
1302
+ params: keys.reduce(function(memo2, key, index) {
1303
+ memo2[key.name] = values[index];
1297
1304
  return memo2;
1298
1305
  }, {})
1299
1306
  };
@@ -2180,13 +2187,13 @@ const Popup = (props) => {
2180
2187
  iconClassPrefix,
2181
2188
  iconFontClassName
2182
2189
  } = props;
2183
- const [index2, setIndex] = useState(zIndex || _zIndex);
2190
+ const [index, setIndex] = useState(zIndex || _zIndex);
2184
2191
  const [innerVisible, setInnerVisible] = useState(visible);
2185
2192
  const [showChildren, setShowChildren] = useState(true);
2186
2193
  const [transitionName, setTransitionName] = useState("");
2187
2194
  const b2 = cn("popup");
2188
2195
  const baseStyle = {
2189
- zIndex: index2,
2196
+ zIndex: index,
2190
2197
  animationDuration: `${duration}s`
2191
2198
  };
2192
2199
  const overlayStyles = {
@@ -2446,7 +2453,7 @@ const useConfig = () => {
2446
2453
  var _a;
2447
2454
  return (_a = useContext$1(ConfigContext)) != null ? _a : getDefaultConfig();
2448
2455
  };
2449
- const ConfigContext = createContext(null);
2456
+ const ConfigContext = createContext$1(null);
2450
2457
  const ConfigProvider = (props) => {
2451
2458
  const { children, ...config2 } = { ...defaultProps$1g, ...props };
2452
2459
  const parentConfig = useConfig();
@@ -2468,7 +2475,7 @@ const Layout = (props) => {
2468
2475
  };
2469
2476
  Layout.defaultProps = defaultProps$1f;
2470
2477
  Layout.displayName = "NutLayout";
2471
- const DataContext$2 = createContext({});
2478
+ const DataContext$2 = createContext$1({});
2472
2479
  const defaultProps$1e = {
2473
2480
  span: "24",
2474
2481
  offset: "0",
@@ -2677,7 +2684,7 @@ const GridItem = (props) => {
2677
2684
  const {
2678
2685
  children,
2679
2686
  columnNum,
2680
- index: index2,
2687
+ index,
2681
2688
  gutter,
2682
2689
  square,
2683
2690
  text,
@@ -2709,7 +2716,7 @@ const GridItem = (props) => {
2709
2716
  style.paddingTop = `${100 / +columnNum}%`;
2710
2717
  } else if (gutter) {
2711
2718
  style.paddingRight = pxCheck2(gutter);
2712
- if (index2 >= columnNum) {
2719
+ if (index >= columnNum) {
2713
2720
  style.marginTop = pxCheck2(gutter);
2714
2721
  }
2715
2722
  }
@@ -3119,11 +3126,11 @@ const FixedNav = (props) => {
3119
3126
  className: "list"
3120
3127
  }, slotList || /* @__PURE__ */ React__default.createElement("div", {
3121
3128
  className: "nut-fixednav__list"
3122
- }, navList.map((item, index2) => {
3129
+ }, navList.map((item, index) => {
3123
3130
  return /* @__PURE__ */ React__default.createElement("div", {
3124
3131
  className: "nut-fixednav__list-item",
3125
3132
  onClick: (event) => onSelectCb(event, item),
3126
- key: item.id || index2
3133
+ key: item.id || index
3127
3134
  }, /* @__PURE__ */ React__default.createElement("img", {
3128
3135
  src: item.icon,
3129
3136
  alt: ""
@@ -3238,7 +3245,7 @@ const TabbarItem = (props) => {
3238
3245
  active,
3239
3246
  activeColor,
3240
3247
  unactiveColor,
3241
- index: index2,
3248
+ index,
3242
3249
  handleClick: handleClick2,
3243
3250
  iconClassPrefix,
3244
3251
  iconFontClassName
@@ -3264,7 +3271,7 @@ const TabbarItem = (props) => {
3264
3271
  color: active ? activeColor : unactiveColor
3265
3272
  },
3266
3273
  onClick: () => {
3267
- handleClick2(index2);
3274
+ handleClick2(index);
3268
3275
  }
3269
3276
  }, /* @__PURE__ */ React__default.createElement("div", {
3270
3277
  className: `${bIcon()}`
@@ -5425,8 +5432,8 @@ function advance(dt) {
5425
5432
  return currentFrame.length > 0;
5426
5433
  }
5427
5434
  function findIndex(arr, test) {
5428
- const index2 = arr.findIndex(test);
5429
- return index2 < 0 ? arr.length : index2;
5435
+ const index = arr.findIndex(test);
5436
+ return index < 0 ? arr.length : index;
5430
5437
  }
5431
5438
  const colors = {
5432
5439
  transparent: 0,
@@ -7878,8 +7885,8 @@ const SpringRef = () => {
7878
7885
  each(current, (ctrl, i) => ctrl.update(this._getProps(props, ctrl, i)));
7879
7886
  return this;
7880
7887
  };
7881
- const _getProps = function _getProps2(arg, ctrl, index2) {
7882
- return is.fun(arg) ? arg(index2, ctrl) : arg;
7888
+ const _getProps = function _getProps2(arg, ctrl, index) {
7889
+ return is.fun(arg) ? arg(index, ctrl) : arg;
7883
7890
  };
7884
7891
  SpringRef2._getProps = _getProps;
7885
7892
  return SpringRef2;
@@ -8282,7 +8289,7 @@ const host = createHost(primitives, {
8282
8289
  }
8283
8290
  });
8284
8291
  const animated = host.animated;
8285
- const elevatorContext = createContext({});
8292
+ const elevatorContext = createContext$1({});
8286
8293
  const defaultProps$15 = {
8287
8294
  height: "200px",
8288
8295
  acceptKey: "title",
@@ -8351,18 +8358,18 @@ const Elevator = (props) => {
8351
8358
  state.current.listHeight.push(height2);
8352
8359
  }
8353
8360
  };
8354
- const scrollTo = (index2) => {
8355
- if (!index2 && index2 !== 0) {
8361
+ const scrollTo = (index) => {
8362
+ if (!index && index !== 0) {
8356
8363
  return;
8357
8364
  }
8358
8365
  if (!state.current.listHeight.length) {
8359
8366
  calculateHeight();
8360
8367
  }
8361
- let cacheIndex = index2;
8362
- if (index2 < 0) {
8368
+ let cacheIndex = index;
8369
+ if (index < 0) {
8363
8370
  cacheIndex = 0;
8364
8371
  }
8365
- if (index2 > state.current.listHeight.length - 2) {
8372
+ if (index > state.current.listHeight.length - 2) {
8366
8373
  cacheIndex = state.current.listHeight.length - 2;
8367
8374
  }
8368
8375
  setCodeIndex(cacheIndex);
@@ -8373,11 +8380,11 @@ const Elevator = (props) => {
8373
8380
  const bind = useGesture({
8374
8381
  onDragStart: ({ target, offset }) => {
8375
8382
  setScrollStart(true);
8376
- const index2 = Number(getData(target, "index"));
8383
+ const index = Number(getData(target, "index"));
8377
8384
  touchState.current.y1 = offset[1];
8378
- state.current.anchorIndex = +index2;
8379
- setCodeIndex((codeIndex2) => codeIndex2 + index2);
8380
- scrollTo(index2);
8385
+ state.current.anchorIndex = +index;
8386
+ setCodeIndex((codeIndex2) => codeIndex2 + index);
8387
+ scrollTo(index);
8381
8388
  },
8382
8389
  onDragEnd: ({ offset }) => {
8383
8390
  touchState.current.y2 = offset[1];
@@ -8482,13 +8489,13 @@ const Elevator = (props) => {
8482
8489
  className: b2("bars__inner"),
8483
8490
  ...bind(),
8484
8491
  style: { touchAction: "pan-y" }
8485
- }, indexList.map((item, index2) => {
8492
+ }, indexList.map((item, index) => {
8486
8493
  return /* @__PURE__ */ React__default.createElement("div", {
8487
8494
  className: b2("bars__inner__item", {
8488
8495
  active: item[acceptKey] === indexList[currentIndex][acceptKey]
8489
8496
  }),
8490
- "data-index": index2,
8491
- key: index2,
8497
+ "data-index": index,
8498
+ key: index,
8492
8499
  onClick: () => handleClickIndex(item[acceptKey])
8493
8500
  }, item[acceptKey]);
8494
8501
  }))));
@@ -8614,9 +8621,9 @@ const Pagination = (props) => {
8614
8621
  onClick: (e2) => selectPage(Number(currentPage) - 1, true)
8615
8622
  }, prevText || locale.pagination.prev), mode === "multi" ? /* @__PURE__ */ React__default.createElement("div", {
8616
8623
  className: `${paginationBem("contain")}`
8617
- }, pages.map((item, index2) => {
8624
+ }, pages.map((item, index) => {
8618
8625
  return /* @__PURE__ */ React__default.createElement("div", {
8619
- key: `${index2}pagination`,
8626
+ key: `${index}pagination`,
8620
8627
  className: `${paginationBem("item")} ${item.active ? "active" : ""}`,
8621
8628
  onClick: (e2) => !item.active ? selectPage(item.number, true) : ""
8622
8629
  }, pageNodeRender ? pageNodeRender(item) : item.text);
@@ -8723,12 +8730,12 @@ const Tabs = (props) => {
8723
8730
  color: type === "smile" ? color : "",
8724
8731
  background: type === "line" ? color : ""
8725
8732
  };
8726
- const index2 = titles.current.findIndex((t2) => t2.paneKey === value);
8733
+ const index = titles.current.findIndex((t2) => t2.paneKey === value);
8727
8734
  const contentStyle = {
8728
- transform: direction === "horizontal" ? `translate3d(-${index2 * 100}%, 0, 0)` : `translate3d( 0,-${index2 * 100}%, 0)`,
8735
+ transform: direction === "horizontal" ? `translate3d(-${index * 100}%, 0, 0)` : `translate3d( 0,-${index * 100}%, 0)`,
8729
8736
  transitionDuration: `${animatedTime}ms`
8730
8737
  };
8731
- const tabChange = (item, index22) => {
8738
+ const tabChange = (item, index2) => {
8732
8739
  onClick && onClick(item);
8733
8740
  if (item.disabled) {
8734
8741
  return;
@@ -8742,7 +8749,7 @@ const Tabs = (props) => {
8742
8749
  }, /* @__PURE__ */ React__default.createElement("div", {
8743
8750
  className: classesTitle,
8744
8751
  style: { background }
8745
- }, !!titleNode && typeof titleNode === "function" ? titleNode() : titles.current.map((item, index22) => {
8752
+ }, !!titleNode && typeof titleNode === "function" ? titleNode() : titles.current.map((item, index2) => {
8746
8753
  return /* @__PURE__ */ React__default.createElement("div", {
8747
8754
  style: titleStyle,
8748
8755
  onClick: (e2) => tabChange(item),
@@ -8888,7 +8895,7 @@ const handleClick = (e2) => {
8888
8895
  arrowIcon.className = isShow ? iconClass.replace("arrow-down", "arrow-up") : iconClass.replace("arrow-up", "arrow-down");
8889
8896
  }
8890
8897
  };
8891
- const OffsetContext = createContext(20);
8898
+ const OffsetContext = createContext$1(20);
8892
8899
  const defaultProps$10 = {
8893
8900
  showhead: false,
8894
8901
  position: "left",
@@ -9047,7 +9054,6 @@ const Menu = (props) => {
9047
9054
  const onScroll = () => {
9048
9055
  const { scrollFixed: scrollFixed2 } = props;
9049
9056
  const scrollTop = getScrollTop(window);
9050
- console.log(scrollTop);
9051
9057
  const isFixed = scrollTop > (typeof scrollFixed2 === "boolean" ? 30 : Number(scrollFixed2));
9052
9058
  setIsScrollFixed(isFixed);
9053
9059
  };
@@ -9059,27 +9065,27 @@ const Menu = (props) => {
9059
9065
  }, []);
9060
9066
  const [itemShow, setItemShow] = useState([]);
9061
9067
  const [itemTitle, setItemTitle] = useState([]);
9062
- const toggleItemShow = (index2) => {
9063
- itemShow[index2] = !itemShow[index2];
9064
- const temp = itemShow.map((i, idx) => idx === index2 ? i : false);
9068
+ const toggleItemShow = (index) => {
9069
+ itemShow[index] = !itemShow[index];
9070
+ const temp = itemShow.map((i, idx) => idx === index ? i : false);
9065
9071
  setItemShow([...temp]);
9066
9072
  };
9067
- const hideItemShow = (index2) => {
9068
- itemShow[index2] = false;
9073
+ const hideItemShow = (index) => {
9074
+ itemShow[index] = false;
9069
9075
  setItemShow([...itemShow]);
9070
9076
  };
9071
- const updateTitle = (text, index2) => {
9072
- itemTitle[index2] = text;
9077
+ const updateTitle = (text, index) => {
9078
+ itemTitle[index] = text;
9073
9079
  setItemTitle([...itemTitle]);
9074
9080
  };
9075
9081
  const parent = () => {
9076
9082
  return parentRef;
9077
9083
  };
9078
9084
  const cloneChildren = () => {
9079
- return React__default.Children.map(children, (child, index2) => {
9085
+ return React__default.Children.map(children, (child, index) => {
9080
9086
  return React__default.cloneElement(child, {
9081
- showPopup: itemShow[index2],
9082
- orderKey: index2,
9087
+ showPopup: itemShow[index],
9088
+ orderKey: index,
9083
9089
  activeColor,
9084
9090
  parent: {
9085
9091
  closeOnClickOverlay,
@@ -9092,14 +9098,15 @@ const Menu = (props) => {
9092
9098
  });
9093
9099
  });
9094
9100
  };
9095
- console.log("isScrollFixed", isScrollFixed);
9096
9101
  return /* @__PURE__ */ React__default.createElement("div", {
9097
9102
  className: `nut-menu ${className} ${isScrollFixed ? "scroll-fixed" : ""}`,
9098
9103
  ...rest,
9099
9104
  ref: parentRef
9105
+ }, /* @__PURE__ */ React__default.createElement("div", {
9106
+ className: "nut-menu-relative"
9100
9107
  }, /* @__PURE__ */ React__default.createElement("div", {
9101
9108
  className: `nut-menu__bar ${itemShow.includes(true) ? "opened" : ""} ${className}`
9102
- }, React__default.Children.toArray(children).map((child, index2) => {
9109
+ }, React__default.Children.toArray(children).map((child, index) => {
9103
9110
  if (!child)
9104
9111
  return null;
9105
9112
  const { disabled, title, value, direction, options: options2 } = child.props;
@@ -9109,25 +9116,25 @@ const Menu = (props) => {
9109
9116
  function finallyTitle() {
9110
9117
  if (title)
9111
9118
  return title;
9112
- if (itemTitle && itemTitle[index2])
9113
- return itemTitle[index2];
9119
+ if (itemTitle && itemTitle[index])
9120
+ return itemTitle[index];
9114
9121
  if (currentTitle && currentTitle[0] && currentTitle[0].text)
9115
9122
  return currentTitle[0].text;
9116
9123
  return "";
9117
9124
  }
9118
9125
  return /* @__PURE__ */ React__default.createElement("div", {
9119
9126
  className: `nut-menu__item ${classNames({
9120
- active: itemShow[index2],
9127
+ active: itemShow[index],
9121
9128
  disabled
9122
9129
  })}`,
9123
- style: { color: itemShow[index2] ? activeColor : "" },
9124
- key: index2,
9130
+ style: { color: itemShow[index] ? activeColor : "" },
9131
+ key: index,
9125
9132
  onClick: () => {
9126
- !disabled && toggleItemShow(index2);
9133
+ !disabled && toggleItemShow(index);
9127
9134
  }
9128
9135
  }, /* @__PURE__ */ React__default.createElement("div", {
9129
9136
  className: `nut-menu__title ${classNames({
9130
- active: itemShow[index2],
9137
+ active: itemShow[index],
9131
9138
  disabled
9132
9139
  })}`
9133
9140
  }, /* @__PURE__ */ React__default.createElement("div", {
@@ -9139,7 +9146,7 @@ const Menu = (props) => {
9139
9146
  size: "10",
9140
9147
  name: titleIcon || (direction === "up" ? "arrow-up" : "down-arrow")
9141
9148
  })));
9142
- })), cloneChildren());
9149
+ })), cloneChildren()));
9143
9150
  };
9144
9151
  Menu.defaultProps = defaultProps$_;
9145
9152
  Menu.displayName = "NutMenu";
@@ -9212,7 +9219,6 @@ const MenuItem = (props) => {
9212
9219
  setTimeout(() => {
9213
9220
  const p2 = parent.parent().current;
9214
9221
  const rect = p2.getBoundingClientRect();
9215
- console.log(rect, p2.offsetTop, window.screenTop);
9216
9222
  setPosition({
9217
9223
  height: rect.height,
9218
9224
  top: rect.top
@@ -9258,18 +9264,17 @@ const MenuItem = (props) => {
9258
9264
  parent.closeOnClickOverlay && parent.toggleItemShow(orderKey);
9259
9265
  }
9260
9266
  }), /* @__PURE__ */ React__default.createElement("div", {
9261
- className: "nut-menu-item__wrap",
9267
+ className: direction === "down" ? "nut-menu-item__wrap" : "nut-menu-item__wrap-up",
9262
9268
  style: {
9263
- ...getPosition(),
9264
9269
  ...isShow()
9265
9270
  }
9266
9271
  }, /* @__PURE__ */ React__default.createElement(CSSTransition$1, {
9267
9272
  in: _showPopup,
9268
9273
  timeout: 100,
9269
- classNames: "menu-item"
9274
+ classNames: direction === "down" ? "menu-item" : "menu-item-up"
9270
9275
  }, /* @__PURE__ */ React__default.createElement("div", {
9271
9276
  className: "nut-menu-item__content"
9272
- }, options2 == null ? void 0 : options2.map((item, index2) => {
9277
+ }, options2 == null ? void 0 : options2.map((item, index) => {
9273
9278
  return /* @__PURE__ */ React__default.createElement("div", {
9274
9279
  className: `nut-menu-item__option ${classNames({
9275
9280
  active: item.value === _value
@@ -9893,20 +9898,20 @@ const Range = (props) => {
9893
9898
  })) : null, /* @__PURE__ */ React__default.createElement("div", {
9894
9899
  className: "nut-range-bar",
9895
9900
  style: barStyle()
9896
- }, range ? [0, 1].map((item, index2) => {
9901
+ }, range ? [0, 1].map((item, index) => {
9897
9902
  return /* @__PURE__ */ React__default.createElement("div", {
9898
9903
  role: "slider",
9899
- key: index2,
9900
- className: `${index2 === 0 ? "nut-range-button-wrapper-left" : ""}
9901
- ${index2 === 1 ? "nut-range-button-wrapper-right" : ""}`,
9904
+ key: index,
9905
+ className: `${index === 0 ? "nut-range-button-wrapper-left" : ""}
9906
+ ${index === 1 ? "nut-range-button-wrapper-right" : ""}`,
9902
9907
  tabIndex: disabled ? -1 : 0,
9903
9908
  "aria-valuemin": +min,
9904
- "aria-valuenow": curValue(index2),
9909
+ "aria-valuenow": curValue(index),
9905
9910
  "aria-valuemax": +max,
9906
9911
  "aria-orientation": "horizontal",
9907
9912
  onTouchStart: (e2) => {
9908
- if (typeof index2 === "number") {
9909
- SetButtonIndex(index2);
9913
+ if (typeof index === "number") {
9914
+ SetButtonIndex(index);
9910
9915
  }
9911
9916
  onTouchStart(e2);
9912
9917
  },
@@ -9927,7 +9932,7 @@ const Range = (props) => {
9927
9932
  style: buttonStyle()
9928
9933
  }, !hiddenTag ? /* @__PURE__ */ React__default.createElement("div", {
9929
9934
  className: "number"
9930
- }, curValue(index2)) : null));
9935
+ }, curValue(index)) : null));
9931
9936
  }) : /* @__PURE__ */ React__default.createElement("div", {
9932
9937
  role: "slider",
9933
9938
  className: "nut-range-button-wrapper",
@@ -9968,7 +9973,7 @@ const Utils = {
9968
9973
  },
9969
9974
  getWhatDay(year, month, day) {
9970
9975
  const date = new Date(`${year}/${month}/${day}`);
9971
- const index2 = date.getDay();
9976
+ const index = date.getDay();
9972
9977
  const dayNames = [
9973
9978
  "\u661F\u671F\u65E5",
9974
9979
  "\u661F\u671F\u4E00",
@@ -9978,7 +9983,7 @@ const Utils = {
9978
9983
  "\u661F\u671F\u4E94",
9979
9984
  "\u661F\u671F\u516D"
9980
9985
  ];
9981
- return dayNames[index2];
9986
+ return dayNames[index];
9982
9987
  },
9983
9988
  getMonthPreDay(year, month) {
9984
9989
  const date = new Date(`${year}/${month}/01`);
@@ -10222,9 +10227,9 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10222
10227
  if (type2 === "multiple") {
10223
10228
  if (state.currDate.length > 0) {
10224
10229
  let hasIndex = "";
10225
- state.currDate.forEach((item, index2) => {
10230
+ state.currDate.forEach((item, index) => {
10226
10231
  if (item === days[3]) {
10227
- hasIndex = index2;
10232
+ hasIndex = index;
10228
10233
  }
10229
10234
  });
10230
10235
  if (isFirst) {
@@ -10511,19 +10516,19 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10511
10516
  let current = 0;
10512
10517
  let lastCurrent = 0;
10513
10518
  if (state.defaultData.length > 0) {
10514
- state.monthsData.forEach((item, index2) => {
10519
+ state.monthsData.forEach((item, index) => {
10515
10520
  if (item.title === locale.calendaritem.monthTitle(
10516
10521
  state.defaultData[0],
10517
10522
  state.defaultData[1]
10518
10523
  )) {
10519
- current = index2;
10524
+ current = index;
10520
10525
  }
10521
10526
  if (props.type === "range") {
10522
10527
  if (item.title === locale.calendaritem.monthTitle(
10523
10528
  state.defaultData[3],
10524
10529
  state.defaultData[4]
10525
10530
  )) {
10526
- lastCurrent = index2;
10531
+ lastCurrent = index;
10527
10532
  }
10528
10533
  }
10529
10534
  });
@@ -10547,9 +10552,9 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10547
10552
  [...state.currDate].forEach((item) => {
10548
10553
  const dateArr = splitDate(item);
10549
10554
  let current2 = state.currentIndex;
10550
- state.monthsData.forEach((item2, index2) => {
10555
+ state.monthsData.forEach((item2, index) => {
10551
10556
  if (item2.title === locale.calendaritem.monthTitle(dateArr[0], dateArr[1])) {
10552
- current2 = index2;
10557
+ current2 = index;
10553
10558
  }
10554
10559
  });
10555
10560
  chooseDay(
@@ -10589,10 +10594,10 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10589
10594
  date = state.propEndDate;
10590
10595
  }
10591
10596
  const dateArr = splitDate(date);
10592
- state.monthsData.forEach((item, index2) => {
10597
+ state.monthsData.forEach((item, index) => {
10593
10598
  if (item.title === locale.calendaritem.monthTitle(dateArr[0], dateArr[1])) {
10594
10599
  if (months.current) {
10595
- const distance = state.monthsData[index2].cssScrollHeight - months.current.scrollTop;
10600
+ const distance = state.monthsData[index].cssScrollHeight - months.current.scrollTop;
10596
10601
  if (toDateAnimation) {
10597
10602
  let flag = 0;
10598
10603
  const interval = setInterval(() => {
@@ -10604,12 +10609,12 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10604
10609
  if (flag >= 10) {
10605
10610
  clearInterval(interval);
10606
10611
  if (months.current) {
10607
- months.current.scrollTop = state.monthsData[index2].cssScrollHeight;
10612
+ months.current.scrollTop = state.monthsData[index].cssScrollHeight;
10608
10613
  }
10609
10614
  }
10610
10615
  }, 40);
10611
10616
  } else {
10612
- months.current.scrollTop = state.monthsData[index2].cssScrollHeight;
10617
+ months.current.scrollTop = state.monthsData[index].cssScrollHeight;
10613
10618
  }
10614
10619
  }
10615
10620
  }
@@ -11022,8 +11027,8 @@ const InternalPickerSlot = (props, ref) => {
11022
11027
  const [startY, setStartY] = useState(0);
11023
11028
  const transformY = useRef(0);
11024
11029
  const [scrollDistance, setScrollDistance] = useState(0);
11025
- const isHidden = (index2) => {
11026
- if (index2 >= currIndex + 8 || index2 <= currIndex - 8) {
11030
+ const isHidden = (index) => {
11031
+ if (index >= currIndex + 8 || index <= currIndex - 8) {
11027
11032
  return true;
11028
11033
  }
11029
11034
  return false;
@@ -11103,11 +11108,11 @@ const InternalPickerSlot = (props, ref) => {
11103
11108
  };
11104
11109
  const modifyStatus = (type, val) => {
11105
11110
  const value = val || defaultValue;
11106
- let index2 = -1;
11111
+ let index = -1;
11107
11112
  if (value) {
11108
11113
  listData.some((item, idx) => {
11109
11114
  if (item.value === value) {
11110
- index2 = idx;
11115
+ index = idx;
11111
11116
  return true;
11112
11117
  }
11113
11118
  return false;
@@ -11115,12 +11120,12 @@ const InternalPickerSlot = (props, ref) => {
11115
11120
  } else {
11116
11121
  listData.forEach((item, i) => {
11117
11122
  if (item.value === defaultValue) {
11118
- index2 = i;
11123
+ index = i;
11119
11124
  }
11120
11125
  });
11121
11126
  }
11122
- setCurrIndex(index2 === -1 ? 1 : index2 + 1);
11123
- const move = index2 === -1 ? 0 : index2 * lineSpacing;
11127
+ setCurrIndex(index === -1 ? 1 : index + 1);
11128
+ const move = index === -1 ? 0 : index * lineSpacing;
11124
11129
  type && setChooseValue(-move);
11125
11130
  setMove(-move);
11126
11131
  };
@@ -11172,18 +11177,18 @@ const InternalPickerSlot = (props, ref) => {
11172
11177
  ref: rollerRef,
11173
11178
  style: threeDimensional ? touchRollerStyle() : touchTileStyle(),
11174
11179
  onTransitionEnd: stopMomentum
11175
- }, threeDimensional && listData.map((item, index2) => {
11180
+ }, threeDimensional && listData.map((item, index) => {
11176
11181
  return /* @__PURE__ */ React__default.createElement("div", {
11177
- className: `nut-picker-roller-item ${isHidden(index2 + 1) && "nut-picker-roller-item-hidden"}`,
11182
+ className: `nut-picker-roller-item ${isHidden(index + 1) && "nut-picker-roller-item-hidden"}`,
11178
11183
  style: {
11179
- transform: `rotate3d(1, 0, 0, ${-rotation * (index2 + 1)}deg) translate3d(0px, 0px, 104px)`
11184
+ transform: `rotate3d(1, 0, 0, ${-rotation * (index + 1)}deg) translate3d(0px, 0px, 104px)`
11180
11185
  },
11181
- key: item.value ? item.value : index2
11186
+ key: item.value ? item.value : index
11182
11187
  }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, item.text ? item.text : item));
11183
- }), !threeDimensional && listData.map((item, index2) => {
11188
+ }), !threeDimensional && listData.map((item, index) => {
11184
11189
  return /* @__PURE__ */ React__default.createElement("div", {
11185
11190
  className: "nut-picker-roller-item-tile",
11186
- key: item.value ? item.value : index2
11191
+ key: item.value ? item.value : index
11187
11192
  }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, item.text ? item.text : item));
11188
11193
  })), /* @__PURE__ */ React__default.createElement("div", {
11189
11194
  className: "nut-picker-mask"
@@ -11195,9 +11200,9 @@ const PickerSlot = React__default.forwardRef(InternalPickerSlot);
11195
11200
  function useRefs() {
11196
11201
  const refs = React__default.useRef([]);
11197
11202
  const setRefs = React__default.useCallback(
11198
- (index2) => (el) => {
11203
+ (index) => (el) => {
11199
11204
  if (el)
11200
- refs.current[index2] = el;
11205
+ refs.current[index] = el;
11201
11206
  },
11202
11207
  []
11203
11208
  );
@@ -11271,10 +11276,10 @@ const InternalPicker = (props, ref) => {
11271
11276
  };
11272
11277
  const selectedOptions = () => {
11273
11278
  const optins = [];
11274
- columnsList.map((column, index2) => {
11279
+ columnsList.map((column, index) => {
11275
11280
  let currOptions = [];
11276
11281
  currOptions = column.filter(
11277
- (item) => item.value === chooseValueData[index2]
11282
+ (item) => item.value === chooseValueData[index]
11278
11283
  );
11279
11284
  if (currOptions[0]) {
11280
11285
  optins.push(currOptions[0]);
@@ -11291,17 +11296,17 @@ const InternalPicker = (props, ref) => {
11291
11296
  if (columnsType() === "cascade") {
11292
11297
  chooseValueData[columnIndex2] = option.value ? option.value : "";
11293
11298
  setchooseValueData([...chooseValueData]);
11294
- let index2 = columnIndex2;
11299
+ let index = columnIndex2;
11295
11300
  let cursor = option;
11296
11301
  while (cursor && cursor.children && cursor.children[0]) {
11297
- chooseValueData[index2 + 1] = cursor.children[0].value;
11302
+ chooseValueData[index + 1] = cursor.children[0].value;
11298
11303
  setchooseValueData([...chooseValueData]);
11299
- index2++;
11304
+ index++;
11300
11305
  const cc = cursor.children[0];
11301
11306
  cursor = cc;
11302
11307
  }
11303
11308
  if (cursor && cursor.children) {
11304
- chooseValueData[index2 + 1] = "";
11309
+ chooseValueData[index + 1] = "";
11305
11310
  setchooseValueData([...chooseValueData]);
11306
11311
  }
11307
11312
  setColumnsList(normalListData());
@@ -11353,12 +11358,12 @@ const InternalPicker = (props, ref) => {
11353
11358
  while (cursor && cursor.children) {
11354
11359
  const options2 = cursor.children;
11355
11360
  const value = defaultValues[columnIndex2];
11356
- let index2 = options2.findIndex(
11361
+ let index = options2.findIndex(
11357
11362
  (columnItem) => columnItem.value === value
11358
11363
  );
11359
- if (index2 === -1)
11360
- index2 = 0;
11361
- cursor = cursor.children[index2];
11364
+ if (index === -1)
11365
+ index = 0;
11366
+ cursor = cursor.children[index];
11362
11367
  columnIndex2++;
11363
11368
  formatted.push(options2);
11364
11369
  }
@@ -11402,16 +11407,16 @@ const InternalPicker = (props, ref) => {
11402
11407
  }, renderToolbar(), /* @__PURE__ */ React__default.createElement("div", {
11403
11408
  className: b2("panel"),
11404
11409
  ref: pickerRef
11405
- }, columnsList == null ? void 0 : columnsList.map((item, index2) => {
11410
+ }, columnsList == null ? void 0 : columnsList.map((item, index) => {
11406
11411
  return /* @__PURE__ */ React__default.createElement(PickerSlot, {
11407
- ref: setRefs(index2),
11408
- defaultValue: chooseValueData == null ? void 0 : chooseValueData[index2],
11412
+ ref: setRefs(index),
11413
+ defaultValue: chooseValueData == null ? void 0 : chooseValueData[index],
11409
11414
  listData: item,
11410
11415
  threeDimensional,
11411
- chooseItem: (value, index22) => chooseItem(value, index22),
11416
+ chooseItem: (value, index2) => chooseItem(value, index2),
11412
11417
  swipeDuration,
11413
- key: index2,
11414
- keyIndex: index2
11418
+ key: index,
11419
+ keyIndex: index
11415
11420
  });
11416
11421
  }))));
11417
11422
  };
@@ -11570,7 +11575,7 @@ const DatePicker = (props) => {
11570
11575
  }
11571
11576
  return result;
11572
11577
  };
11573
- const updateChooseValueCustmer = (index2, selectedValue, cacheValueData) => {
11578
+ const updateChooseValueCustmer = (index, selectedValue, cacheValueData) => {
11574
11579
  if (["date", "datetime", "datehour", "month-day", "year-month"].includes(
11575
11580
  type.toLocaleLowerCase()
11576
11581
  )) {
@@ -11609,7 +11614,7 @@ const DatePicker = (props) => {
11609
11614
  const isEqual2 = (currentDate == null ? void 0 : currentDate.getTime()) === (date == null ? void 0 : date.getTime());
11610
11615
  date && isDate(date) && !isEqual2 && setCurrentDate(formatValue(date));
11611
11616
  }
11612
- props.onChangeDatePicker && props.onChangeDatePicker(index2, selectedValue, cacheValueData);
11617
+ props.onChangeDatePicker && props.onChangeDatePicker(index, selectedValue, cacheValueData);
11613
11618
  };
11614
11619
  const padZero = (num, targetLength = 2) => {
11615
11620
  let str = `${num}`;
@@ -11635,7 +11640,7 @@ const DatePicker = (props) => {
11635
11640
  const generateValue = (min, max, val, type2, columnIndex) => {
11636
11641
  let cmin = min;
11637
11642
  const arr = [];
11638
- let index2 = 0;
11643
+ let index = 0;
11639
11644
  while (cmin <= max) {
11640
11645
  arr.push(formatterOption(type2, cmin));
11641
11646
  if (type2 === "minute") {
@@ -11644,10 +11649,10 @@ const DatePicker = (props) => {
11644
11649
  cmin++;
11645
11650
  }
11646
11651
  if (cmin <= val) {
11647
- index2++;
11652
+ index++;
11648
11653
  }
11649
11654
  }
11650
- defaultValue[columnIndex] = arr[index2].value;
11655
+ defaultValue[columnIndex] = arr[index].value;
11651
11656
  setDefaultValue([...defaultValue]);
11652
11657
  if (props.filter && props.filter(type2, arr)) {
11653
11658
  return props.filter(type2, arr);
@@ -11709,7 +11714,7 @@ const DatePicker = (props) => {
11709
11714
  onClose: onCloseDatePicker,
11710
11715
  defaultValueData: defaultValue,
11711
11716
  onConfirm: (values, options2) => onConfirmDatePicker && onConfirmDatePicker(values, options2),
11712
- onChange: (index2, value, list) => updateChooseValueCustmer(index2, value, list),
11717
+ onChange: (index, value, list) => updateChooseValueCustmer(index, value, list),
11713
11718
  threeDimensional,
11714
11719
  ref: pickerRef
11715
11720
  }));
@@ -11889,14 +11894,14 @@ const InputNumber = (props) => {
11889
11894
  InputNumber.defaultProps = defaultProps$S;
11890
11895
  InputNumber.displayName = "NutInputNumber";
11891
11896
  function trimExtraChar(value, char, regExp) {
11892
- const index2 = value.indexOf(char);
11893
- if (index2 === -1) {
11897
+ const index = value.indexOf(char);
11898
+ if (index === -1) {
11894
11899
  return value;
11895
11900
  }
11896
- if (char === "-" && index2 !== 0) {
11897
- return value.slice(0, index2);
11901
+ if (char === "-" && index !== 0) {
11902
+ return value.slice(0, index);
11898
11903
  }
11899
- return value.slice(0, index2 + 1) + value.slice(index2).replace(regExp, "");
11904
+ return value.slice(0, index + 1) + value.slice(index).replace(regExp, "");
11900
11905
  }
11901
11906
  function formatNumber(value, allowDot = true, allowMinus = true) {
11902
11907
  if (allowDot) {
@@ -12248,7 +12253,7 @@ const RadioGroup = React__default.forwardRef(
12248
12253
  return val2State === child.props.value;
12249
12254
  }
12250
12255
  function cloneChildren() {
12251
- return React__default.Children.map(children, (child, index2) => {
12256
+ return React__default.Children.map(children, (child, index) => {
12252
12257
  const childChecked = validateChildChecked(child);
12253
12258
  if (child.type.displayName !== "NutRadio") {
12254
12259
  return React__default.cloneElement(child);
@@ -12427,14 +12432,14 @@ const Rate = (props) => {
12427
12432
  const pxCheck2 = (value) => {
12428
12433
  return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
12429
12434
  };
12430
- const onClick = (e2, index2) => {
12435
+ const onClick = (e2, index) => {
12431
12436
  e2.preventDefault();
12432
12437
  e2.stopPropagation();
12433
12438
  if (disabled || readonly)
12434
12439
  return;
12435
12440
  let value = 0;
12436
- if (!(index2 === 1 && score === index2)) {
12437
- value = index2;
12441
+ if (!(index === 1 && score === index)) {
12442
+ value = index;
12438
12443
  if (allowHalf) {
12439
12444
  if ((e2 == null ? void 0 : e2.target).className.includes("__icon--half")) {
12440
12445
  value -= 0.5;
@@ -12618,11 +12623,11 @@ const ShortPassword = (props) => {
12618
12623
  }), /* @__PURE__ */ React__default.createElement("div", {
12619
12624
  className: b2("input-fake"),
12620
12625
  onClick: () => focus()
12621
- }, [...new Array(comLen).keys()].map((item, index2) => {
12626
+ }, [...new Array(comLen).keys()].map((item, index) => {
12622
12627
  return /* @__PURE__ */ React__default.createElement("div", {
12623
12628
  className: b2("input-fake__li"),
12624
- key: index2
12625
- }, String(inputValue).length > index2 ? /* @__PURE__ */ React__default.createElement("div", {
12629
+ key: index
12630
+ }, String(inputValue).length > index ? /* @__PURE__ */ React__default.createElement("div", {
12626
12631
  className: b2("input-fake__li__icon")
12627
12632
  }) : null);
12628
12633
  }))), /* @__PURE__ */ React__default.createElement("div", {
@@ -13165,9 +13170,9 @@ const InternalUploader = (props, ref) => {
13165
13170
  });
13166
13171
  }
13167
13172
  }));
13168
- const clearUploadQueue = (index2 = -1) => {
13169
- if (index2 > -1) {
13170
- uploadQueue.splice(index2, 1);
13173
+ const clearUploadQueue = (index = -1) => {
13174
+ if (index > -1) {
13175
+ uploadQueue.splice(index, 1);
13171
13176
  setUploadQueue(uploadQueue);
13172
13177
  } else {
13173
13178
  setUploadQueue([]);
@@ -13176,7 +13181,7 @@ const InternalUploader = (props, ref) => {
13176
13181
  const clearInputValue = (el) => {
13177
13182
  el.value = "";
13178
13183
  };
13179
- const executeUpload = (fileItem, index2) => {
13184
+ const executeUpload = (fileItem, index) => {
13180
13185
  const uploadOption = new UploadOptions();
13181
13186
  uploadOption.url = url;
13182
13187
  for (const [key, value] of Object.entries(data)) {
@@ -13194,7 +13199,7 @@ const InternalUploader = (props, ref) => {
13194
13199
  } catch (error) {
13195
13200
  }
13196
13201
  uploadOption.onStart = (option) => {
13197
- clearUploadQueue(index2);
13202
+ clearUploadQueue(index);
13198
13203
  setFileList((fileList2) => {
13199
13204
  fileList2.map((item) => {
13200
13205
  if (item.uid === fileItem.uid) {
@@ -13267,7 +13272,7 @@ const InternalUploader = (props, ref) => {
13267
13272
  }
13268
13273
  };
13269
13274
  const readFile = (files) => {
13270
- files.forEach((file, index2) => {
13275
+ files.forEach((file, index) => {
13271
13276
  const formData = new FormData();
13272
13277
  formData.append(name, file);
13273
13278
  const fileItem = new FileItem();
@@ -13277,7 +13282,7 @@ const InternalUploader = (props, ref) => {
13277
13282
  fileItem.formData = formData;
13278
13283
  fileItem.uid = file.lastModified + fileItem.uid;
13279
13284
  fileItem.message = locale.uploader.readyUpload;
13280
- executeUpload(fileItem, index2);
13285
+ executeUpload(fileItem, index);
13281
13286
  if (isPreview && file.type.includes("image")) {
13282
13287
  const reader = new FileReader();
13283
13288
  reader.onload = (event) => {
@@ -13309,15 +13314,15 @@ const InternalUploader = (props, ref) => {
13309
13314
  filterFile.splice(maximum2, filterFile.length - maximum2);
13310
13315
  }
13311
13316
  if (fileList.length !== 0) {
13312
- const index2 = maximum2 - fileList.length;
13313
- filterFile.splice(index2, filterFile.length - index2);
13317
+ const index = maximum2 - fileList.length;
13318
+ filterFile.splice(index, filterFile.length - index);
13314
13319
  }
13315
13320
  return filterFile;
13316
13321
  };
13317
- const onDelete = (file, index2) => {
13318
- clearUploadQueue(index2);
13322
+ const onDelete = (file, index) => {
13323
+ clearUploadQueue(index);
13319
13324
  if (onBeforeDelete && onBeforeDelete(file, fileList)) {
13320
- fileList.splice(index2, 1);
13325
+ fileList.splice(index, 1);
13321
13326
  onRemove && onRemove(file, fileList);
13322
13327
  setFileList([...fileList]);
13323
13328
  } else {
@@ -13371,7 +13376,7 @@ const InternalUploader = (props, ref) => {
13371
13376
  disabled,
13372
13377
  multiple,
13373
13378
  onChange: fileChange
13374
- })))), fileList.length !== 0 && fileList.map((item, index2) => {
13379
+ })))), fileList.length !== 0 && fileList.map((item, index) => {
13375
13380
  return /* @__PURE__ */ React__default.createElement("div", {
13376
13381
  className: `nut-uploader__preview ${listType}`,
13377
13382
  key: item.uid
@@ -13396,7 +13401,7 @@ const InternalUploader = (props, ref) => {
13396
13401
  color: "rgba(0,0,0,0.6)",
13397
13402
  className: "close",
13398
13403
  name: "failure",
13399
- onClick: () => onDelete(item, index2)
13404
+ onClick: () => onDelete(item, index)
13400
13405
  }), item.type.includes("image") ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, item.url && /* @__PURE__ */ React__default.createElement("img", {
13401
13406
  className: "nut-uploader__preview-img__c",
13402
13407
  src: item.url,
@@ -13434,7 +13439,7 @@ const InternalUploader = (props, ref) => {
13434
13439
  color: "#808080",
13435
13440
  className: "nut-uploader__preview-img__file__del",
13436
13441
  name: "del",
13437
- onClick: () => onDelete(item, index2)
13442
+ onClick: () => onDelete(item, index)
13438
13443
  }), item.status === "uploading" && /* @__PURE__ */ React__default.createElement(Progress, {
13439
13444
  size: "small",
13440
13445
  percentage: item.percentage,
@@ -13816,8 +13821,8 @@ const InternalCascader = (props) => {
13816
13821
  }
13817
13822
  if (needToSync.length && currentValue2 === value) {
13818
13823
  const pathNodes = state.tree.getPathNodesByValue(needToSync);
13819
- pathNodes.forEach((node, index2) => {
13820
- state.tabsCursor = index2;
13824
+ pathNodes.forEach((node, index) => {
13825
+ state.tabsCursor = index;
13821
13826
  chooseItem(node, true);
13822
13827
  });
13823
13828
  }
@@ -13915,12 +13920,12 @@ const InternalCascader = (props) => {
13915
13920
  }, title), /* @__PURE__ */ React__default.createElement(Tabs, {
13916
13921
  value: tabvalue,
13917
13922
  titleNode: () => {
13918
- return optiosData.map((pane, index2) => {
13923
+ return optiosData.map((pane, index) => {
13919
13924
  var _a, _b;
13920
13925
  return /* @__PURE__ */ React__default.createElement("div", {
13921
13926
  onClick: () => {
13922
13927
  setTabvalue(pane.paneKey);
13923
- state.tabsCursor = index2;
13928
+ state.tabsCursor = index;
13924
13929
  },
13925
13930
  className: `nut-tabs__titles-item ${tabvalue === pane.paneKey ? "active" : ""}`,
13926
13931
  key: pane.paneKey
@@ -13936,10 +13941,10 @@ const InternalCascader = (props) => {
13936
13941
  paneKey: pane.paneKey
13937
13942
  }, /* @__PURE__ */ React__default.createElement("div", {
13938
13943
  className: classesPane
13939
- }, pane.nodes && pane.nodes.map((node, index2) => {
13944
+ }, pane.nodes && pane.nodes.map((node, index) => {
13940
13945
  var _a;
13941
13946
  return /* @__PURE__ */ React__default.createElement(CascaderItem, {
13942
- key: index2,
13947
+ key: index,
13943
13948
  ...props,
13944
13949
  data: node,
13945
13950
  checked: ((_a = pane.selectedNode) == null ? void 0 : _a.value) === node.value,
@@ -14005,6 +14010,7 @@ const SearchBar = (props) => {
14005
14010
  onFocus,
14006
14011
  onBlur,
14007
14012
  onClear,
14013
+ onCancel,
14008
14014
  onSearch,
14009
14015
  onClickInput,
14010
14016
  onClickLeftinIcon,
@@ -14052,6 +14058,7 @@ const SearchBar = (props) => {
14052
14058
  disabled,
14053
14059
  readOnly,
14054
14060
  maxLength,
14061
+ onKeyPress: onKeypress,
14055
14062
  onChange: (e2) => change(e2),
14056
14063
  onFocus: (e2) => focus(e2),
14057
14064
  onBlur: (e2) => blur(e2),
@@ -14130,13 +14137,22 @@ const SearchBar = (props) => {
14130
14137
  if (actionText) {
14131
14138
  return /* @__PURE__ */ React__default.createElement("div", {
14132
14139
  className: searchbarBem("action-text"),
14133
- onClick: search
14140
+ onClick: cancel
14134
14141
  }, actionText);
14135
14142
  }
14136
14143
  return null;
14137
14144
  };
14138
- const search = () => {
14139
- onSearch && onSearch(value);
14145
+ const onKeypress = (e2) => {
14146
+ if (e2.key === "Enter") {
14147
+ const event = e2.nativeEvent;
14148
+ if (typeof event.cancelable !== "boolean" || event.cancelable) {
14149
+ event.preventDefault();
14150
+ }
14151
+ onSearch && onSearch(value);
14152
+ }
14153
+ };
14154
+ const cancel = () => {
14155
+ onCancel && onCancel();
14140
14156
  };
14141
14157
  const renderLabel = () => {
14142
14158
  if (label) {
@@ -14303,9 +14319,9 @@ const NumberKeyboard = (props) => {
14303
14319
  className: b2("body")
14304
14320
  }, /* @__PURE__ */ React__default.createElement("div", {
14305
14321
  className: b2("body__keys")
14306
- }, keysList == null ? void 0 : keysList.map((item, index2) => {
14322
+ }, keysList == null ? void 0 : keysList.map((item, index) => {
14307
14323
  return /* @__PURE__ */ React__default.createElement("div", {
14308
- key: index2,
14324
+ key: index,
14309
14325
  className: classNames({
14310
14326
  "key-board-wrapper": true,
14311
14327
  "key-board-wrapper-large": item.id === 0 && type === "rightColumn" && Array.isArray(customKey) && customKey.length === 1
@@ -14397,9 +14413,9 @@ const ActionSheet = (props) => {
14397
14413
  const cancelActionSheet = () => {
14398
14414
  onCancel && onCancel();
14399
14415
  };
14400
- const chooseItem = (item, index2) => {
14416
+ const chooseItem = (item, index) => {
14401
14417
  if (!item.disable) {
14402
- onChoose && onChoose(item, index2);
14418
+ onChoose && onChoose(item, index);
14403
14419
  }
14404
14420
  };
14405
14421
  return /* @__PURE__ */ React__default.createElement(Popup, {
@@ -14419,12 +14435,12 @@ const ActionSheet = (props) => {
14419
14435
  className: `${b2("item")} desc`
14420
14436
  }, description), menuItems.length ? /* @__PURE__ */ React__default.createElement("div", {
14421
14437
  className: b2("menu")
14422
- }, menuItems.map((item, index2) => {
14438
+ }, menuItems.map((item, index) => {
14423
14439
  return /* @__PURE__ */ React__default.createElement("div", {
14424
14440
  className: `${b2("item")} ${item.disable ? b2("item-disabled") : ""}`,
14425
14441
  style: { color: isHighlight(item) },
14426
- key: index2,
14427
- onClick: () => chooseItem(item, index2)
14442
+ key: index,
14443
+ onClick: () => chooseItem(item, index)
14428
14444
  }, item[optionTag], /* @__PURE__ */ React__default.createElement("div", {
14429
14445
  className: "subdesc"
14430
14446
  }, item[optionSubTag]));
@@ -15821,9 +15837,9 @@ const CircleProgress = (props) => {
15821
15837
  y1: "0%",
15822
15838
  x2: "0%",
15823
15839
  y2: "0%"
15824
- }, (_a = stop2()) == null ? void 0 : _a.map((item, index2) => {
15840
+ }, (_a = stop2()) == null ? void 0 : _a.map((item, index) => {
15825
15841
  return /* @__PURE__ */ React__default.createElement("stop", {
15826
- key: index2,
15842
+ key: index,
15827
15843
  offset: item.key,
15828
15844
  stopColor: item.value
15829
15845
  });
@@ -15930,8 +15946,8 @@ const NoticeBar = (props) => {
15930
15946
  };
15931
15947
  }, []);
15932
15948
  const cloneChild = (listItem, listIndex) => {
15933
- return React__default.Children.map(children, function(child, index2) {
15934
- if (child && index2 === listIndex) {
15949
+ return React__default.Children.map(children, function(child, index) {
15950
+ if (child && index === listIndex) {
15935
15951
  return React__default.cloneElement(child, {
15936
15952
  key: listIndex,
15937
15953
  children: listItem
@@ -16110,16 +16126,16 @@ const NoticeBar = (props) => {
16110
16126
  }, children ? /* @__PURE__ */ React__default.createElement("div", {
16111
16127
  className: "horseLamp_list",
16112
16128
  style: horseLampStyle
16113
- }, scrollList.current.map((item, index2) => {
16114
- return cloneChild(item, index2);
16129
+ }, scrollList.current.map((item, index) => {
16130
+ return cloneChild(item, index);
16115
16131
  })) : /* @__PURE__ */ React__default.createElement("ul", {
16116
16132
  className: "horseLamp_list",
16117
16133
  style: horseLampStyle
16118
- }, scrollList.current.map((item, index2) => {
16134
+ }, scrollList.current.map((item, index) => {
16119
16135
  return /* @__PURE__ */ React__default.createElement("li", {
16120
16136
  className: "horseLamp_list_item",
16121
16137
  style: { height },
16122
- key: index2,
16138
+ key: index,
16123
16139
  onClick: () => {
16124
16140
  go(item);
16125
16141
  }
@@ -16139,7 +16155,7 @@ const NoticeBar = (props) => {
16139
16155
  };
16140
16156
  NoticeBar.defaultProps = defaultProps$v;
16141
16157
  NoticeBar.displayName = "NutNoticeBar";
16142
- const DataContext$1 = createContext({});
16158
+ const DataContext$1 = createContext$1({});
16143
16159
  const defaultProps$u = {
16144
16160
  current: 0,
16145
16161
  direction: "horizontal",
@@ -16211,10 +16227,10 @@ const Step = (props) => {
16211
16227
  const parent = useContext$1(DataContext$1);
16212
16228
  const dot = parent.propSteps.progressDot;
16213
16229
  const getCurrentStatus = () => {
16214
- const index2 = activeIndex;
16215
- if (index2 < +parent.propSteps.current)
16230
+ const index = activeIndex;
16231
+ if (index < +parent.propSteps.current)
16216
16232
  return "finish";
16217
- return index2 === +parent.propSteps.current ? "process" : "wait";
16233
+ return index === +parent.propSteps.current ? "process" : "wait";
16218
16234
  };
16219
16235
  const handleClickStep = () => {
16220
16236
  var _a, _b;
@@ -16270,7 +16286,7 @@ const Step = (props) => {
16270
16286
  };
16271
16287
  Step.defaultProps = defaultProps$t;
16272
16288
  Step.displayName = "NutStep";
16273
- const DataContext = createContext({});
16289
+ const DataContext = createContext$1({});
16274
16290
  const defaultProps$s = {
16275
16291
  width: typeof window === "object" ? window.innerWidth : 375,
16276
16292
  height: 0,
@@ -16409,17 +16425,17 @@ const Swiper = React__default.forwardRef((props, ref) => {
16409
16425
  });
16410
16426
  });
16411
16427
  };
16412
- const to2 = (index2) => {
16428
+ const to2 = (index) => {
16413
16429
  resettPosition();
16414
16430
  touchReset();
16415
16431
  requestFrame(() => {
16416
16432
  requestFrame(() => {
16417
16433
  _swiper.current.moving = false;
16418
16434
  let targetIndex;
16419
- if (props.loop && childCount === index2) {
16420
- targetIndex = active === 0 ? 0 : index2;
16435
+ if (props.loop && childCount === index) {
16436
+ targetIndex = active === 0 ? 0 : index;
16421
16437
  } else {
16422
- targetIndex = index2 % childCount;
16438
+ targetIndex = index % childCount;
16423
16439
  }
16424
16440
  move({
16425
16441
  pace: targetIndex - active,
@@ -16648,14 +16664,14 @@ const Swiper = React__default.forwardRef((props, ref) => {
16648
16664
  stopAutoPlay();
16649
16665
  };
16650
16666
  }, []);
16651
- const itemStyle = (index2) => {
16667
+ const itemStyle = (index) => {
16652
16668
  const style = {};
16653
16669
  const _direction = propSwiper.direction || direction;
16654
16670
  const _size = size;
16655
16671
  if (_size) {
16656
16672
  style[_direction === "horizontal" ? "width" : "height"] = `${_size}px`;
16657
16673
  }
16658
- const offset2 = childOffset[index2];
16674
+ const offset2 = childOffset[index];
16659
16675
  if (offset2) {
16660
16676
  style.transform = `translate3D${_direction === "horizontal" ? `(${offset2}px,0,0)` : `(0,${offset2}px,0)`}`;
16661
16677
  }
@@ -16675,27 +16691,27 @@ const Swiper = React__default.forwardRef((props, ref) => {
16675
16691
  }, /* @__PURE__ */ React__default.createElement("div", {
16676
16692
  className: contentClass,
16677
16693
  ref: innerRef
16678
- }, React__default.Children.map(childs, (child, index2) => {
16694
+ }, React__default.Children.map(childs, (child, index) => {
16679
16695
  return /* @__PURE__ */ React__default.createElement("div", {
16680
16696
  className: b2("item-wrapper"),
16681
- style: itemStyle(index2),
16682
- key: index2
16697
+ style: itemStyle(index),
16698
+ key: index
16683
16699
  }, child);
16684
16700
  })), propSwiper.paginationVisible && !("pageContent" in propSwiper) ? /* @__PURE__ */ React__default.createElement("div", {
16685
16701
  className: classNames({
16686
16702
  [`${b2("pagination")}`]: true,
16687
16703
  [`${b2("pagination-vertical")}`]: isVertical
16688
16704
  })
16689
- }, React__default.Children.map(childs, (item, index2) => {
16705
+ }, React__default.Children.map(childs, (item, index) => {
16690
16706
  return /* @__PURE__ */ React__default.createElement("i", {
16691
- style: (active + childCount) % childCount === index2 ? {
16707
+ style: (active + childCount) % childCount === index ? {
16692
16708
  backgroundColor: propSwiper.paginationColor
16693
16709
  } : void 0,
16694
16710
  className: classNames({
16695
16711
  [`${b2("pagination-item")}`]: true,
16696
- active: (active + childCount) % childCount === index2
16712
+ active: (active + childCount) % childCount === index
16697
16713
  }),
16698
- key: index2
16714
+ key: index
16699
16715
  });
16700
16716
  })) : /* @__PURE__ */ React__default.createElement("div", null, pageContent)));
16701
16717
  });
@@ -16726,7 +16742,7 @@ const SwiperItem = React__default.forwardRef((props, ref) => {
16726
16742
  });
16727
16743
  SwiperItem.defaultProps = defaultProps$r;
16728
16744
  SwiperItem.displayName = "NutSwiperItem";
16729
- const AvatarContext = createContext({});
16745
+ const AvatarContext = createContext$1({});
16730
16746
  const defaultProps$q = {
16731
16747
  ...ComponentDefaults,
16732
16748
  size: "",
@@ -16801,11 +16817,11 @@ const Avatar = (props) => {
16801
16817
  children2[i].setAttribute("data-index", i + 1);
16802
16818
  }
16803
16819
  }
16804
- const index2 = Number((_b2 = (_a2 = avatarRef == null ? void 0 : avatarRef.current) == null ? void 0 : _a2.dataset) == null ? void 0 : _b2.index);
16820
+ const index = Number((_b2 = (_a2 = avatarRef == null ? void 0 : avatarRef.current) == null ? void 0 : _a2.dataset) == null ? void 0 : _b2.index);
16805
16821
  const maxCount = (_c2 = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _c2.maxCount;
16806
16822
  setMaxSum(children2.length);
16807
- setAvatarIndex(index2);
16808
- if (index2 === children2.length && index2 !== maxCount && children2.length > maxCount) {
16823
+ setAvatarIndex(index);
16824
+ if (index === children2.length && index !== maxCount && children2.length > maxCount) {
16809
16825
  setShowMax(true);
16810
16826
  }
16811
16827
  };
@@ -17177,7 +17193,7 @@ const defaultProps$l = {
17177
17193
  className: "",
17178
17194
  onClick: (e2) => {
17179
17195
  },
17180
- onChoose: (item, index2) => {
17196
+ onChoose: (item, index) => {
17181
17197
  }
17182
17198
  };
17183
17199
  const Popover = (props) => {
@@ -17251,9 +17267,9 @@ const Popover = (props) => {
17251
17267
  props.onClick(e2);
17252
17268
  }
17253
17269
  };
17254
- const handleChoose = (item, index2) => {
17270
+ const handleChoose = (item, index) => {
17255
17271
  if (!item.disabled) {
17256
- onChoose(item, index2);
17272
+ onChoose(item, index);
17257
17273
  }
17258
17274
  };
17259
17275
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
@@ -17367,10 +17383,10 @@ const Skeleton = (props) => {
17367
17383
  className: "skeleton-content-line"
17368
17384
  }, title && /* @__PURE__ */ React__default.createElement("div", {
17369
17385
  className: "skeleton-title"
17370
- }), repeatLines(row).map((item, index2) => {
17386
+ }), repeatLines(row).map((item, index) => {
17371
17387
  return /* @__PURE__ */ React__default.createElement("div", {
17372
17388
  className: blockClass,
17373
- key: index2,
17389
+ key: index,
17374
17390
  style: { width, height }
17375
17391
  });
17376
17392
  })))));
@@ -17972,29 +17988,29 @@ const Empty = (props) => {
17972
17988
  Empty.defaultProps = defaultProps$e;
17973
17989
  Empty.displayName = "NutEmpty";
17974
17990
  const initPositinoCache = (reaItemSize, length = 0) => {
17975
- let index2 = 0;
17991
+ let index = 0;
17976
17992
  const positions = Array(length);
17977
- while (index2 < length) {
17978
- positions[index2] = {
17979
- index: index2,
17993
+ while (index < length) {
17994
+ positions[index] = {
17995
+ index,
17980
17996
  height: reaItemSize,
17981
17997
  width: reaItemSize,
17982
- top: index2 * reaItemSize,
17983
- bottom: (index2 + 1) * reaItemSize,
17984
- left: index2 * reaItemSize,
17985
- right: (index2 + 1) * reaItemSize
17998
+ top: index * reaItemSize,
17999
+ bottom: (index + 1) * reaItemSize,
18000
+ left: index * reaItemSize,
18001
+ right: (index + 1) * reaItemSize
17986
18002
  };
17987
- index2++;
18003
+ index++;
17988
18004
  }
17989
18005
  return positions;
17990
18006
  };
17991
18007
  const getListTotalSize = (positions, horizontal) => {
17992
- const index2 = positions.length - 1;
18008
+ const index = positions.length - 1;
17993
18009
  let size = 0;
17994
- if (index2 < 0) {
18010
+ if (index < 0) {
17995
18011
  size = 0;
17996
18012
  } else {
17997
- size = horizontal ? positions[index2].right : positions[index2].bottom;
18013
+ size = horizontal ? positions[index].right : positions[index].bottom;
17998
18014
  }
17999
18015
  return size;
18000
18016
  };
@@ -18056,25 +18072,25 @@ const getEndIndex = ({
18056
18072
  const updateItemSize = (positions, items, sizeKey) => {
18057
18073
  const newPos = positions.concat();
18058
18074
  Array.from(items).forEach((item) => {
18059
- const index2 = Number(item.getAttribute("data-index"));
18075
+ const index = Number(item.getAttribute("data-index"));
18060
18076
  const styleVal = item.getAttribute("style");
18061
18077
  if (styleVal && styleVal.includes("none"))
18062
18078
  return;
18063
18079
  const nowSize = item.getBoundingClientRect()[sizeKey];
18064
- const oldSize = positions[index2][sizeKey];
18080
+ const oldSize = positions[index][sizeKey];
18065
18081
  const dValue = oldSize - nowSize;
18066
18082
  if (dValue) {
18067
18083
  if (sizeKey === "width") {
18068
- newPos[index2].right -= dValue;
18069
- newPos[index2][sizeKey] = nowSize;
18070
- for (let k2 = index2 + 1; k2 < positions.length; k2++) {
18084
+ newPos[index].right -= dValue;
18085
+ newPos[index][sizeKey] = nowSize;
18086
+ for (let k2 = index + 1; k2 < positions.length; k2++) {
18071
18087
  newPos[k2].left = positions[k2 - 1].right;
18072
18088
  newPos[k2].right -= dValue;
18073
18089
  }
18074
18090
  } else if (sizeKey === "height") {
18075
- newPos[index2].bottom -= dValue;
18076
- newPos[index2][sizeKey] = nowSize;
18077
- for (let k2 = index2 + 1; k2 < positions.length; k2++) {
18091
+ newPos[index].bottom -= dValue;
18092
+ newPos[index][sizeKey] = nowSize;
18093
+ for (let k2 = index + 1; k2 < positions.length; k2++) {
18078
18094
  newPos[k2].top = positions[k2 - 1].bottom;
18079
18095
  newPos[k2].bottom -= dValue;
18080
18096
  }
@@ -18224,9 +18240,9 @@ const VirtualList = (props) => {
18224
18240
  style: {
18225
18241
  transform: horizontal ? `translate3d(${options2.startOffset}px,0,0)` : `translate3d(0,${options2.startOffset}px,0)`
18226
18242
  }
18227
- }, sourceData.slice(options2.overStart, options2.endIndex).map((data, index2) => {
18243
+ }, sourceData.slice(options2.overStart, options2.endIndex).map((data, index) => {
18228
18244
  const { startIndex, overStart } = options2;
18229
- const dataIndex = overStart + index2;
18245
+ const dataIndex = overStart + index;
18230
18246
  const styleVal = dataIndex < startIndex ? "none" : "block";
18231
18247
  const keyVal = key && data[key] ? data[key] : dataIndex;
18232
18248
  return /* @__PURE__ */ React__default.createElement("li", {
@@ -18303,7 +18319,7 @@ const Table = (props) => {
18303
18319
  return columns.filter((item) => item.key === value)[0];
18304
18320
  };
18305
18321
  const renderHeadCells = () => {
18306
- return columns.map((item, index2) => {
18322
+ return columns.map((item, index) => {
18307
18323
  return /* @__PURE__ */ React__default.createElement("span", {
18308
18324
  className: classNames(
18309
18325
  "nut-table__main__head__tr__th",
@@ -18325,7 +18341,7 @@ const Table = (props) => {
18325
18341
  });
18326
18342
  };
18327
18343
  const renderBodyTds = (item) => {
18328
- return sortDataItem().map(([value, render2], index2) => {
18344
+ return sortDataItem().map(([value, render2], index) => {
18329
18345
  return /* @__PURE__ */ React__default.createElement("span", {
18330
18346
  className: classNames(
18331
18347
  "nut-table__main__body__tr__td",
@@ -18336,10 +18352,10 @@ const Table = (props) => {
18336
18352
  });
18337
18353
  };
18338
18354
  const renderBoyTrs = () => {
18339
- return curData.map((item, index2) => {
18355
+ return curData.map((item, index) => {
18340
18356
  return /* @__PURE__ */ React__default.createElement("div", {
18341
18357
  className: "nut-table__main__body__tr",
18342
- key: index2
18358
+ key: index
18343
18359
  }, renderBodyTds(item));
18344
18360
  });
18345
18361
  };
@@ -18866,17 +18882,17 @@ const ImagePreview = (props) => {
18866
18882
  initPage: initNo && (initNo > maxNo ? maxNo - 1 : initNo - 1),
18867
18883
  paginationColor,
18868
18884
  paginationVisible
18869
- }, (videos && videos.length > 0 ? videos.map((item, index2) => {
18885
+ }, (videos && videos.length > 0 ? videos.map((item, index) => {
18870
18886
  return /* @__PURE__ */ React__default.createElement(SwiperItem, {
18871
- key: index2
18887
+ key: index
18872
18888
  }, /* @__PURE__ */ React__default.createElement(Video, {
18873
18889
  source: item.source,
18874
18890
  options: item.options
18875
18891
  }));
18876
18892
  }) : []).concat(
18877
- images && images.length > 0 ? images.map((item, index2) => {
18893
+ images && images.length > 0 ? images.map((item, index) => {
18878
18894
  return /* @__PURE__ */ React__default.createElement(SwiperItem, {
18879
- key: index2
18895
+ key: index
18880
18896
  }, /* @__PURE__ */ React__default.createElement("img", {
18881
18897
  src: item.src,
18882
18898
  alt: "",
@@ -18923,7 +18939,7 @@ const ExistRender = (props) => {
18923
18939
  addressDetail: "",
18924
18940
  selectedAddress: false
18925
18941
  };
18926
- copyExistAdd.forEach((list, index2) => {
18942
+ copyExistAdd.forEach((list, index) => {
18927
18943
  if (list && list.selectedAddress) {
18928
18944
  prevExistAdd = list;
18929
18945
  }
@@ -18943,10 +18959,10 @@ const ExistRender = (props) => {
18943
18959
  className: b2("exist-group")
18944
18960
  }, /* @__PURE__ */ React__default.createElement("ul", {
18945
18961
  className: b2("exist-ul")
18946
- }, existAddress.map((item, index2) => {
18962
+ }, existAddress.map((item, index) => {
18947
18963
  return /* @__PURE__ */ React__default.createElement("li", {
18948
18964
  className: b2("exist-item"),
18949
- key: index2
18965
+ key: index
18950
18966
  }, /* @__PURE__ */ React__default.createElement("div", {
18951
18967
  onClick: () => selectedExist(item)
18952
18968
  }, /* @__PURE__ */ React__default.createElement(Icon$1, {
@@ -19029,18 +19045,18 @@ const CustomRender = (props) => {
19029
19045
  return a.title.localeCompare(b22.title);
19030
19046
  });
19031
19047
  data.forEach((item) => {
19032
- const index2 = newData.findIndex(
19048
+ const index = newData.findIndex(
19033
19049
  (value) => value.title === item.title
19034
19050
  );
19035
- if (index2 <= -1) {
19051
+ if (index <= -1) {
19036
19052
  newData.push({
19037
19053
  title: item.title,
19038
19054
  list: [].concat(item)
19039
19055
  });
19040
19056
  } else {
19041
- newData[index2] = {
19057
+ newData[index] = {
19042
19058
  title: item.title,
19043
- list: newData[index2].list.concat(item)
19059
+ list: newData[index].list.concat(item)
19044
19060
  };
19045
19061
  }
19046
19062
  });
@@ -19059,8 +19075,8 @@ const CustomRender = (props) => {
19059
19075
  town: { name: "" }
19060
19076
  });
19061
19077
  const [lineDistance, setLineDistance] = useState(20);
19062
- const getTabName = (item, index2) => {
19063
- if (tabIndex > index2) {
19078
+ const getTabName = (item, index) => {
19079
+ if (tabIndex > index) {
19064
19080
  return item.name;
19065
19081
  }
19066
19082
  return locale.select;
@@ -19071,9 +19087,9 @@ const CustomRender = (props) => {
19071
19087
  country: countryRef,
19072
19088
  town: townRef
19073
19089
  };
19074
- const lineAnimation = (index2) => {
19090
+ const lineAnimation = (index) => {
19075
19091
  setTimeout(() => {
19076
- const name = tabName[index2];
19092
+ const name = tabName[index];
19077
19093
  const refD = mapRef;
19078
19094
  if (name && refD[name] && refD[name].current) {
19079
19095
  const distance = refD[name].current.offsetLeft;
@@ -19122,10 +19138,10 @@ const CustomRender = (props) => {
19122
19138
  onClose && onClose();
19123
19139
  }
19124
19140
  };
19125
- const changeRegionTab = (item, index2, key) => {
19126
- if (getTabName(item, index2)) {
19127
- setTabIndex(index2);
19128
- lineAnimation(index2);
19141
+ const changeRegionTab = (item, index, key) => {
19142
+ if (getTabName(item, index)) {
19143
+ setTabIndex(index);
19144
+ lineAnimation(index);
19129
19145
  }
19130
19146
  onTabClick && onTabClick(key);
19131
19147
  };
@@ -19133,16 +19149,16 @@ const CustomRender = (props) => {
19133
19149
  if (modelValue.length > 0) {
19134
19150
  let tagIndex = 0;
19135
19151
  const selectedRegionC = selectedRegion && Object.assign(selectedRegion);
19136
- for (let index2 = 0; index2 < modelValue.length; index2++) {
19137
- if (regionList[tabName[index2]].length === 0) {
19138
- tagIndex = index2 - 1;
19139
- setTabIndex(index2 - 1);
19152
+ for (let index = 0; index < modelValue.length; index++) {
19153
+ if (regionList[tabName[index]].length === 0) {
19154
+ tagIndex = index - 1;
19155
+ setTabIndex(index - 1);
19140
19156
  break;
19141
19157
  } else {
19142
- const val = modelValue[index2];
19143
- const arr = regionList[tabName[index2]];
19158
+ const val = modelValue[index];
19159
+ const arr = regionList[tabName[index]];
19144
19160
  if (privateType === "custom") {
19145
- selectedRegionC[[tabName[index2]]] = arr.filter(
19161
+ selectedRegionC[[tabName[index]]] = arr.filter(
19146
19162
  (item) => item.id === val
19147
19163
  )[0];
19148
19164
  } else if (privateType === "custom2") {
@@ -19150,11 +19166,11 @@ const CustomRender = (props) => {
19150
19166
  arr.forEach((item) => {
19151
19167
  sumArr.push(...item.list);
19152
19168
  });
19153
- selectedRegionC[[tabName[index2]]] = sumArr.filter(
19169
+ selectedRegionC[[tabName[index]]] = sumArr.filter(
19154
19170
  (item) => item.id === val
19155
19171
  )[0];
19156
19172
  }
19157
- tagIndex = index2;
19173
+ tagIndex = index;
19158
19174
  setSelectedRegion(selectedRegionC);
19159
19175
  }
19160
19176
  }
@@ -19201,19 +19217,19 @@ const CustomRender = (props) => {
19201
19217
  }, /* @__PURE__ */ React__default.createElement("div", {
19202
19218
  className: b2("region-tab")
19203
19219
  }, selectedRegion && Object.keys(selectedRegion).map(
19204
- (key, index2) => {
19220
+ (key, index) => {
19205
19221
  return /* @__PURE__ */ React__default.createElement("div", {
19206
- className: `${b2("tab-item")} ${index2 === tabIndex ? "active" : ""}`,
19207
- key: index2,
19222
+ className: `${b2("tab-item")} ${index === tabIndex ? "active" : ""}`,
19223
+ key: index,
19208
19224
  ref: mapRef[key],
19209
19225
  onClick: () => changeRegionTab(
19210
19226
  selectedRegion[key],
19211
- index2,
19227
+ index,
19212
19228
  key
19213
19229
  )
19214
- }, index2 <= tabIndex && /* @__PURE__ */ React__default.createElement("div", null, getTabName(
19230
+ }, index <= tabIndex && /* @__PURE__ */ React__default.createElement("div", null, getTabName(
19215
19231
  selectedRegion[key],
19216
- index2
19232
+ index
19217
19233
  )));
19218
19234
  }
19219
19235
  ), /* @__PURE__ */ React__default.createElement("div", {
@@ -19225,9 +19241,9 @@ const CustomRender = (props) => {
19225
19241
  }, /* @__PURE__ */ React__default.createElement("ul", {
19226
19242
  className: b2("region-group")
19227
19243
  }, regionList[tabName[tabIndex]].map(
19228
- (item, index2) => {
19244
+ (item, index) => {
19229
19245
  return /* @__PURE__ */ React__default.createElement("li", {
19230
- key: index2,
19246
+ key: index,
19231
19247
  className: b2("region-item")
19232
19248
  }, /* @__PURE__ */ React__default.createElement("div", {
19233
19249
  onClick: () => {
@@ -19485,12 +19501,12 @@ const InternalBarrage = (props, ref) => {
19485
19501
  const barrageContainer = useRef(null);
19486
19502
  const barrageCWidth = useRef(0);
19487
19503
  const timer = useRef(0);
19488
- const index2 = useRef(0);
19504
+ const index = useRef(0);
19489
19505
  const b2 = cn("barrage");
19490
19506
  const classes = classNames(className, b2(""));
19491
19507
  useImperativeHandle(ref, () => ({
19492
19508
  add: (word) => {
19493
- const _index = index2.current % barrageList.length;
19509
+ const _index = index.current % barrageList.length;
19494
19510
  barrageList.splice(_index, 0, word);
19495
19511
  }
19496
19512
  }));
@@ -19511,7 +19527,7 @@ const InternalBarrage = (props, ref) => {
19511
19527
  }, frequency);
19512
19528
  };
19513
19529
  const play = () => {
19514
- const _index = loop2 ? index2.current % barrageList.length : index2.current;
19530
+ const _index = loop2 ? index.current % barrageList.length : index.current;
19515
19531
  const el = document.createElement(`div`);
19516
19532
  el.innerHTML = barrageList[_index];
19517
19533
  el.classList.add("barrage-item");
@@ -19527,7 +19543,7 @@ const InternalBarrage = (props, ref) => {
19527
19543
  el.addEventListener("animationend", () => {
19528
19544
  barrageContainer.current.removeChild(el);
19529
19545
  });
19530
- index2.current++;
19546
+ index.current++;
19531
19547
  };
19532
19548
  return /* @__PURE__ */ React__default.createElement("div", {
19533
19549
  className: classes,
@@ -19777,7 +19793,7 @@ const TimeDetail = (props) => {
19777
19793
  };
19778
19794
  return /* @__PURE__ */ React__default.createElement("div", {
19779
19795
  className: `${b2()} ${className || ""}`
19780
- }, renderData.map((item, index2) => /* @__PURE__ */ React__default.createElement("span", {
19796
+ }, renderData.map((item, index) => /* @__PURE__ */ React__default.createElement("span", {
19781
19797
  className: getDetailClass(item),
19782
19798
  key: item,
19783
19799
  onClick: () => handleTime(item)
@@ -19909,11 +19925,11 @@ const TimeSelect = (props) => {
19909
19925
  className: "nut-timeselect__content"
19910
19926
  }, /* @__PURE__ */ React__default.createElement("div", {
19911
19927
  className: "nut-timeselect__content-left"
19912
- }, dates.map((dataItem, index2) => /* @__PURE__ */ React__default.createElement(TimePannel, {
19928
+ }, dates.map((dataItem, index) => /* @__PURE__ */ React__default.createElement(TimePannel, {
19913
19929
  date: dataItem.date,
19914
19930
  className: getTimePannelClass(dataItem),
19915
- key: String(dataItem["pannel-key"] || index2),
19916
- curKey: String(dataItem["pannel-key"] || index2),
19931
+ key: String(dataItem["pannel-key"] || index),
19932
+ curKey: String(dataItem["pannel-key"] || index),
19917
19933
  change: handleChange
19918
19934
  }))), /* @__PURE__ */ React__default.createElement(TimeDetail, {
19919
19935
  times,