@nutui/nutui-react-taro 3.0.21-cpp → 3.0.22-cpp

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 (233) hide show
  1. package/CHANGELOG.md +9 -2
  2. package/dist/cjs/hooks/use-props-value.js +1 -1
  3. package/dist/cjs/hooks/use-touch.js +4 -4
  4. package/dist/cjs/packages/address/cascaderRender.js +1 -1
  5. package/dist/cjs/packages/address/existRender.js +1 -1
  6. package/dist/cjs/packages/audio/audio.js +1 -1
  7. package/dist/cjs/packages/avatar/avatar.js +1 -1
  8. package/dist/cjs/packages/avatarcropper/avatarcropper.js +1 -1
  9. package/dist/cjs/packages/badge/badge.js +1 -1
  10. package/dist/cjs/packages/barrage/barrage.js +2 -1
  11. package/dist/cjs/packages/button/button.js +1 -1
  12. package/dist/cjs/packages/card/card.js +1 -1
  13. package/dist/cjs/packages/cascader/utils.js +4 -4
  14. package/dist/cjs/packages/cellgroup/cellgroup.js +1 -1
  15. package/dist/cjs/packages/checkboxgroup/checkboxgroup.js +3 -3
  16. package/dist/cjs/packages/circleprogress/circleprogress.js +1 -1
  17. package/dist/cjs/packages/collapseitem/collapseitem.js +1 -1
  18. package/dist/cjs/packages/countdown/countdown.js +1 -1
  19. package/dist/cjs/packages/datepicker/datepicker.js +1 -1
  20. package/dist/cjs/packages/dialog/dialog.js +2 -2
  21. package/dist/cjs/packages/divider/divider.js +1 -1
  22. package/dist/cjs/packages/elevator/elevator.js +1 -1
  23. package/dist/cjs/packages/ellipsis/ellipsis.js +1 -1
  24. package/dist/cjs/packages/form/form.js +1 -1
  25. package/dist/cjs/packages/grid/grid.js +1 -1
  26. package/dist/cjs/packages/griditem/griditem.js +1 -1
  27. package/dist/cjs/packages/image/image.js +1 -1
  28. package/dist/cjs/packages/imagepreview/imagepreview.js +3 -2
  29. package/dist/cjs/packages/indicator/indicator.js +1 -1
  30. package/dist/cjs/packages/infiniteloading/infiniteloading.js +3 -3
  31. package/dist/cjs/packages/input/input.js +1 -1
  32. package/dist/cjs/packages/inputnumber/inputnumber.js +1 -1
  33. package/dist/cjs/packages/loading/loading.js +1 -1
  34. package/dist/cjs/packages/menu/menu.js +1 -1
  35. package/dist/cjs/packages/overlay/overlay.js +1 -1
  36. package/dist/cjs/packages/pagination/pagination.js +1 -1
  37. package/dist/cjs/packages/picker/picker.js +1 -1
  38. package/dist/cjs/packages/pickerview/pickerroller.js +1 -1
  39. package/dist/cjs/packages/popover/popover.js +2 -2
  40. package/dist/cjs/packages/progress/progress.js +6 -9
  41. package/dist/cjs/packages/quickenter/quickenter.js +2 -2
  42. package/dist/cjs/packages/radio/radio.js +1 -1
  43. package/dist/cjs/packages/radiogroup/radiogroup.js +3 -3
  44. package/dist/cjs/packages/range/range.js +3 -3
  45. package/dist/cjs/packages/shortpassword/shortpassword.js +1 -1
  46. package/dist/cjs/packages/sidebar/sidebar.js +1 -1
  47. package/dist/cjs/packages/signature/signature.js +2 -2
  48. package/dist/cjs/packages/skeleton/skeleton.js +1 -1
  49. package/dist/cjs/packages/sticky/sticky.js +3 -3
  50. package/dist/cjs/packages/swipe/swipe.js +1 -0
  51. package/dist/cjs/packages/swiper/swiper.js +1 -1
  52. package/dist/cjs/packages/switch/switch.js +1 -1
  53. package/dist/cjs/packages/tabbaritem/tabbaritem.js +1 -1
  54. package/dist/cjs/packages/table/table.js +1 -1
  55. package/dist/cjs/packages/tabs/tabs.js +1 -1
  56. package/dist/cjs/packages/textarea/textarea.js +1 -1
  57. package/dist/cjs/packages/timeselect/timeselect.js +1 -1
  58. package/dist/cjs/packages/toast/toast.js +2 -2
  59. package/dist/cjs/packages/trendarrow/trendarrow.js +1 -1
  60. package/dist/cjs/packages/uploader/uploader.js +1 -1
  61. package/dist/cjs/packages/video/video.js +2 -2
  62. package/dist/cjs/packages/virtuallist/utils.js +1 -1
  63. package/dist/cjs/packages/virtuallist/virtuallist.js +1 -1
  64. package/dist/es/hooks/taro/use-custom-event.js +3 -3
  65. package/dist/es/hooks/taro/use-lock-scoll.js +1 -1
  66. package/dist/es/hooks/use-click-away.js +2 -2
  67. package/dist/es/hooks/use-lock-scroll.js +3 -3
  68. package/dist/es/hooks/use-pagination.js +1 -1
  69. package/dist/es/hooks/use-ref-state.js +3 -3
  70. package/dist/es/hooks/use-touch.js +13 -13
  71. package/dist/es/hooks/use-watch.js +1 -1
  72. package/dist/es/locales/en-US.js +4 -4
  73. package/dist/es/locales/id-ID.js +4 -4
  74. package/dist/es/locales/ja-JP.js +4 -4
  75. package/dist/es/locales/tr-TR.js +4 -4
  76. package/dist/es/locales/zh-CN.js +4 -4
  77. package/dist/es/locales/zh-TW.js +4 -4
  78. package/dist/es/locales/zh-UG.js +4 -4
  79. package/dist/es/packages/actionsheet/actionsheet.js +8 -8
  80. package/dist/es/packages/address/address.js +10 -10
  81. package/dist/es/packages/address/cascaderRender.js +4 -4
  82. package/dist/es/packages/address/elevatorRender.js +17 -17
  83. package/dist/es/packages/address/existRender.js +5 -5
  84. package/dist/es/packages/address/utils.js +5 -5
  85. package/dist/es/packages/animate/animate.js +3 -3
  86. package/dist/es/packages/animatingnumbers/countup.js +1 -1
  87. package/dist/es/packages/audio/audio.js +16 -16
  88. package/dist/es/packages/avatar/avatar.js +4 -4
  89. package/dist/es/packages/avatarcropper/avatarcropper.js +25 -25
  90. package/dist/es/packages/avatargroup/avatargroup.js +1 -1
  91. package/dist/es/packages/backtop/backtop.js +3 -3
  92. package/dist/es/packages/badge/badge.js +3 -3
  93. package/dist/es/packages/barrage/barrage.js +10 -9
  94. package/dist/es/packages/button/button.js +4 -4
  95. package/dist/es/packages/calendar/calendar.js +12 -12
  96. package/dist/es/packages/calendar/utils.js +7 -7
  97. package/dist/es/packages/calendarcard/calendarcard.js +24 -24
  98. package/dist/es/packages/calendarcard/icon.js +5 -5
  99. package/dist/es/packages/calendarcard/utils.js +5 -5
  100. package/dist/es/packages/calendaritem/calendaritem.js +32 -32
  101. package/dist/es/packages/card/card.js +2 -2
  102. package/dist/es/packages/cascader/cascader.js +15 -15
  103. package/dist/es/packages/cascader/utils.js +6 -6
  104. package/dist/es/packages/cell/cell.js +4 -4
  105. package/dist/es/packages/cellgroup/cellgroup.js +2 -2
  106. package/dist/es/packages/checkbox/checkbox.js +10 -10
  107. package/dist/es/packages/checkboxgroup/checkboxgroup.js +7 -7
  108. package/dist/es/packages/circleprogress/circleprogress.js +7 -7
  109. package/dist/es/packages/col/col.js +2 -2
  110. package/dist/es/packages/collapse/collapse.js +3 -3
  111. package/dist/es/packages/collapse/context.js +2 -2
  112. package/dist/es/packages/collapseitem/collapseitem.js +5 -5
  113. package/dist/es/packages/configprovider/configprovider.js +5 -5
  114. package/dist/es/packages/countdown/countdown.js +15 -15
  115. package/dist/es/packages/datepicker/datepicker.js +12 -12
  116. package/dist/es/packages/datepicker/utils.js +7 -7
  117. package/dist/es/packages/datepickerview/datepickerview.js +5 -5
  118. package/dist/es/packages/dialog/content.js +6 -6
  119. package/dist/es/packages/dialog/dialog.js +24 -24
  120. package/dist/es/packages/divider/divider.js +3 -3
  121. package/dist/es/packages/drag/drag.js +5 -5
  122. package/dist/es/packages/elevator/elevator.js +17 -17
  123. package/dist/es/packages/ellipsis/ellipsis.js +14 -14
  124. package/dist/es/packages/empty/empty.js +1 -1
  125. package/dist/es/packages/fixednav/fixednav.js +7 -7
  126. package/dist/es/packages/form/form.js +7 -7
  127. package/dist/es/packages/form/useform.js +4 -4
  128. package/dist/es/packages/formitem/formitem.js +1 -1
  129. package/dist/es/packages/grid/context.js +1 -1
  130. package/dist/es/packages/grid/grid.js +4 -4
  131. package/dist/es/packages/griditem/griditem.js +6 -6
  132. package/dist/es/packages/hoverbutton/hoverbutton.js +1 -1
  133. package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +6 -6
  134. package/dist/es/packages/hoverbuttonitem/utils.js +1 -1
  135. package/dist/es/packages/image/image.js +7 -7
  136. package/dist/es/packages/imagepreview/imagepreview.js +16 -15
  137. package/dist/es/packages/indicator/indicator.js +5 -5
  138. package/dist/es/packages/infiniteloading/infiniteloading.js +14 -14
  139. package/dist/es/packages/input/input.js +13 -13
  140. package/dist/es/packages/inputnumber/inputnumber.js +12 -12
  141. package/dist/es/packages/layout/layout.js +1 -1
  142. package/dist/es/packages/loading/loading.js +3 -3
  143. package/dist/es/packages/lottie/index.js +1 -1
  144. package/dist/es/packages/lottie/lottiemp.js +1 -1
  145. package/dist/es/packages/menu/menu.js +13 -13
  146. package/dist/es/packages/menuitem/menuitem.js +12 -12
  147. package/dist/es/packages/navbar/navbar.js +7 -7
  148. package/dist/es/packages/noticebar/noticebar.js +22 -22
  149. package/dist/es/packages/notify/notify.js +8 -8
  150. package/dist/es/packages/numberkeyboard/numberkeyboard.js +12 -12
  151. package/dist/es/packages/overlay/overlay.js +7 -7
  152. package/dist/es/packages/pagination/pagination.js +8 -8
  153. package/dist/es/packages/picker/picker.js +15 -15
  154. package/dist/es/packages/pickerview/pickerroller.js +12 -12
  155. package/dist/es/packages/pickerview/pickerview.js +3 -3
  156. package/dist/es/packages/pickerview/utils.js +6 -6
  157. package/dist/es/packages/popover/popover.js +16 -16
  158. package/dist/es/packages/popup/popup.js +13 -13
  159. package/dist/es/packages/price/price.js +8 -8
  160. package/dist/es/packages/progress/progress.js +16 -19
  161. package/dist/es/packages/pulltorefresh/pulltorefresh.js +8 -8
  162. package/dist/es/packages/quickenter/quickenter.js +14 -14
  163. package/dist/es/packages/radio/radio.js +11 -11
  164. package/dist/es/packages/radiogroup/radiogroup.js +6 -6
  165. package/dist/es/packages/range/range.js +12 -12
  166. package/dist/es/packages/rate/rate.js +11 -11
  167. package/dist/es/packages/resultpage/resultpage.js +1 -1
  168. package/dist/es/packages/row/row.js +4 -4
  169. package/dist/es/packages/safearea/safearea.js +1 -1
  170. package/dist/es/packages/searchbar/searchbar.js +4 -4
  171. package/dist/es/packages/segmented/segmented.js +4 -4
  172. package/dist/es/packages/shortpassword/shortpassword.js +7 -7
  173. package/dist/es/packages/sidebar/sidebar.js +11 -11
  174. package/dist/es/packages/sidebar/utils.js +1 -1
  175. package/dist/es/packages/sidebaritem/sidebaritem.js +1 -1
  176. package/dist/es/packages/signature/signature.js +15 -15
  177. package/dist/es/packages/skeleton/skeleton.js +4 -4
  178. package/dist/es/packages/space/space.js +1 -1
  179. package/dist/es/packages/step/step.js +1 -1
  180. package/dist/es/packages/steps/steps.js +1 -1
  181. package/dist/es/packages/sticky/sticky.js +5 -5
  182. package/dist/es/packages/swipe/swipe.js +17 -16
  183. package/dist/es/packages/swiper/swiper.js +7 -7
  184. package/dist/es/packages/swiperitem/swiperitem.js +1 -1
  185. package/dist/es/packages/switch/switch.js +6 -6
  186. package/dist/es/packages/tabbar/tabbar.js +2 -2
  187. package/dist/es/packages/tabbaritem/tabbaritem.js +10 -10
  188. package/dist/es/packages/table/table.js +10 -10
  189. package/dist/es/packages/tabpane/tabpane.js +1 -1
  190. package/dist/es/packages/tabs/tabs.js +11 -11
  191. package/dist/es/packages/tag/tag.js +10 -10
  192. package/dist/es/packages/textarea/textarea.js +11 -11
  193. package/dist/es/packages/timedetail/timedetail.js +3 -3
  194. package/dist/es/packages/timeselect/timeselect.js +6 -6
  195. package/dist/es/packages/toast/toast.js +10 -10
  196. package/dist/es/packages/tour/tour.js +10 -10
  197. package/dist/es/packages/trendarrow/trendarrow.js +4 -4
  198. package/dist/es/packages/uploader/preview.js +8 -8
  199. package/dist/es/packages/uploader/uploader.js +19 -19
  200. package/dist/es/packages/video/video.js +3 -3
  201. package/dist/es/packages/virtuallist/utils.js +5 -5
  202. package/dist/es/packages/virtuallist/virtuallist.js +8 -8
  203. package/dist/es/packages/watermark/watermark.js +2 -2
  204. package/dist/es/utils/clamp.js +1 -1
  205. package/dist/es/utils/date.js +3 -3
  206. package/dist/es/utils/get-rect.js +1 -1
  207. package/dist/es/utils/interceptor.js +1 -1
  208. package/dist/es/utils/is-date.js +1 -1
  209. package/dist/es/utils/is-empty.js +1 -1
  210. package/dist/es/utils/is-function.js +1 -1
  211. package/dist/es/utils/is-object.js +1 -1
  212. package/dist/es/utils/is-promise.js +1 -1
  213. package/dist/es/utils/pad-zero.js +1 -1
  214. package/dist/es/utils/px-check.js +1 -1
  215. package/dist/es/utils/sleep.js +1 -1
  216. package/dist/es/utils/taro/ConfigurableCSSTransition.js +1 -1
  217. package/dist/es/utils/taro/get-rect-by-id.js +1 -1
  218. package/dist/es/utils/taro/get-rect.js +2 -2
  219. package/dist/es/utils/taro/get-system-info.js +2 -2
  220. package/dist/es/utils/taro/platform.js +4 -4
  221. package/dist/es/utils/upper-case-first.js +1 -1
  222. package/dist/nutui.react.umd.js +1147 -1142
  223. package/dist/style-jmapp.css +1 -1
  224. package/dist/style-jmapp.scss +31 -31
  225. package/dist/style-jrkf.css +1 -1
  226. package/dist/style-jrkf.scss +24 -24
  227. package/dist/style.css +1 -1
  228. package/dist/style.scss +40 -40
  229. package/package.json +1 -1
  230. package/dist/cjs/utils/taro/ConfigurableCSSTransition copy.d.ts +0 -15
  231. package/dist/cjs/utils/taro/ConfigurableCSSTransition copy.js +0 -130
  232. package/dist/es/utils/taro/ConfigurableCSSTransition copy.d.ts +0 -15
  233. package/dist/es/utils/taro/ConfigurableCSSTransition copy.js +0 -119
@@ -38,7 +38,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
38
38
  }), 2), month = _useState[0], setMonth = _useState[1];
39
39
  // 当前月份对应的日期(6 * 7 视图)
40
40
  var _useState1 = _sliced_to_array(useState([]), 2), days = _useState1[0], setDays = _useState1[1];
41
- var valueToRange = function(val) {
41
+ var valueToRange = function valueToRange(val) {
42
42
  if (Array.isArray(val)) {
43
43
  return val.map(function(date) {
44
44
  return convertDateToDay(date);
@@ -48,7 +48,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
48
48
  convertDateToDay(val)
49
49
  ] : [];
50
50
  };
51
- var rangeTovalue = function(range) {
51
+ var rangeTovalue = function rangeTovalue(range) {
52
52
  if (Array.isArray(range)) {
53
53
  return range.map(function(day) {
54
54
  return convertDayToDate(day);
@@ -63,7 +63,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
63
63
  defaultValue: defaultValue ? valueToRange(defaultValue) : undefined,
64
64
  finalValue: []
65
65
  }), 2), innerValue = _usePropsValue[0], setInnerValue = _usePropsValue[1];
66
- var change = function(v) {
66
+ var change = function change(v) {
67
67
  setInnerValue(v);
68
68
  if (type === 'single') {
69
69
  var date = convertDayToDate(v[0]);
@@ -108,10 +108,10 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
108
108
  getDays,
109
109
  firstDayOfWeek
110
110
  ]);
111
- var isSameDay = function(day1, day2) {
111
+ var isSameDay = function isSameDay(day1, day2) {
112
112
  return (day1 === null || day1 === void 0 ? void 0 : day1.year) === (day2 === null || day2 === void 0 ? void 0 : day2.year) && (day1 === null || day1 === void 0 ? void 0 : day1.month) === (day2 === null || day2 === void 0 ? void 0 : day2.month) && (day1 === null || day1 === void 0 ? void 0 : day1.date) === (day2 === null || day2 === void 0 ? void 0 : day2.date);
113
113
  };
114
- var compareDay = function(day1, day2) {
114
+ var compareDay = function compareDay(day1, day2) {
115
115
  if (day1 && day2) {
116
116
  if (day1.year === day2.year) {
117
117
  if (day1.month === day2.month) {
@@ -122,7 +122,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
122
122
  return day1.year - day2.year;
123
123
  }
124
124
  };
125
- var isDisable = function(day) {
125
+ var isDisable = function isDisable(day) {
126
126
  if (disableDay && disableDay(day)) {
127
127
  return true;
128
128
  }
@@ -134,7 +134,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
134
134
  }
135
135
  return false;
136
136
  };
137
- var isActive = function(day) {
137
+ var isActive = function isActive(day) {
138
138
  if (type === 'single' || type === 'multiple') {
139
139
  for(var val in innerValue){
140
140
  if (isSameDay(day, innerValue[val])) {
@@ -146,13 +146,13 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
146
146
  }
147
147
  return false;
148
148
  };
149
- var isStart = function(day) {
149
+ var isStart = function isStart(day) {
150
150
  return (type === 'range' || type === 'week') && innerValue.length === 2 && isSameDay(day, innerValue[0]);
151
151
  };
152
- var isEnd = function(day) {
152
+ var isEnd = function isEnd(day) {
153
153
  return (type === 'range' || type === 'week') && innerValue.length === 2 && isSameDay(day, innerValue[1]);
154
154
  };
155
- var isMid = function(day) {
155
+ var isMid = function isMid(day) {
156
156
  if (type === 'range' || type === 'week') {
157
157
  if (innerValue.length === 2) {
158
158
  var c1 = compareDay(innerValue[0], day);
@@ -164,16 +164,16 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
164
164
  }
165
165
  return false;
166
166
  };
167
- var isWeekend = function(day) {
167
+ var isWeekend = function isWeekend(day) {
168
168
  var d = new Date(day.year, day.month - 1, day.date).getDay();
169
169
  return d === 0 || d === 6;
170
170
  };
171
- var isToday = function(day) {
171
+ var isToday = function isToday(day) {
172
172
  var today = new Date();
173
173
  return day.year === today.getFullYear() && day.month === today.getMonth() + 1 && day.date === today.getDate();
174
174
  };
175
175
  // 日期无障碍朗读
176
- var getAriaLabel = function(day) {
176
+ var getAriaLabel = function getAriaLabel(day) {
177
177
  var _locale_calendaritem_dayAriaLabel, _locale_calendaritem;
178
178
  if (renderDayAriaLabel) {
179
179
  return renderDayAriaLabel(day);
@@ -181,7 +181,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
181
181
  var today = isToday(day);
182
182
  return (_locale_calendaritem_dayAriaLabel = (_locale_calendaritem = locale.calendaritem).dayAriaLabel) === null || _locale_calendaritem_dayAriaLabel === void 0 ? void 0 : _locale_calendaritem_dayAriaLabel.call(_locale_calendaritem, day.year, day.month, day.date, today, isActive(day), isDisable(day));
183
183
  };
184
- var getClasses = function(day) {
184
+ var getClasses = function getClasses(day) {
185
185
  /**
186
186
  * active: single、multiple 激活日期
187
187
  * start: 范围开始日期
@@ -212,7 +212,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
212
212
  }
213
213
  return res;
214
214
  };
215
- var jumpTo = function(year, month) {
215
+ var jumpTo = function jumpTo(year, month) {
216
216
  if (startDate) {
217
217
  var c = compareDay({
218
218
  year: year,
@@ -238,7 +238,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
238
238
  month: month
239
239
  });
240
240
  };
241
- var jump = function() {
241
+ var jump = function jump() {
242
242
  var step = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
243
243
  var current = month.year * 12 + month.month;
244
244
  var newMonth = (current + step) % 12;
@@ -254,7 +254,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
254
254
  jumpTo: jumpTo
255
255
  };
256
256
  });
257
- var handleDayClick = function(day) {
257
+ var handleDayClick = function handleDayClick(day) {
258
258
  onDayClick === null || onDayClick === void 0 ? void 0 : onDayClick(day);
259
259
  if (day.type === 'prev' || day.type === 'next' || isDisable(day)) {
260
260
  return;
@@ -334,19 +334,19 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
334
334
  }
335
335
  };
336
336
  var monthTitle = locale.calendaritem.monthTitle;
337
- var renderHeader = function() {
337
+ var renderHeader = function renderHeader() {
338
338
  return /*#__PURE__*/ React.createElement(View, {
339
339
  className: "".concat(prefixCls, "-header")
340
340
  }, /*#__PURE__*/ React.createElement(View, {
341
341
  className: "".concat(prefixCls, "-header-left")
342
342
  }, /*#__PURE__*/ React.createElement(View, {
343
343
  className: "double-left",
344
- onClick: function() {
344
+ onClick: function onClick() {
345
345
  return jump(-12);
346
346
  }
347
347
  }, /*#__PURE__*/ React.createElement(DoubleLeft, null)), /*#__PURE__*/ React.createElement(View, {
348
348
  className: "left",
349
- onClick: function() {
349
+ onClick: function onClick() {
350
350
  return jump(-1);
351
351
  }
352
352
  }, /*#__PURE__*/ React.createElement(ArrowLeft, null))), /*#__PURE__*/ React.createElement(View, {
@@ -355,12 +355,12 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
355
355
  className: "".concat(prefixCls, "-header-right")
356
356
  }, /*#__PURE__*/ React.createElement(View, {
357
357
  className: "right",
358
- onClick: function() {
358
+ onClick: function onClick() {
359
359
  return jump(1);
360
360
  }
361
361
  }, /*#__PURE__*/ React.createElement(ArrowRight, null)), /*#__PURE__*/ React.createElement(View, {
362
362
  className: "double-right",
363
- onClick: function() {
363
+ onClick: function onClick() {
364
364
  return jump(12);
365
365
  }
366
366
  }, /*#__PURE__*/ React.createElement(DoubleRight, null))));
@@ -379,7 +379,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
379
379
  firstDayOfWeek,
380
380
  locale.calendaritem.weekdays
381
381
  ]);
382
- var renderContent = function() {
382
+ var renderContent = function renderContent() {
383
383
  return /*#__PURE__*/ React.createElement(View, {
384
384
  className: "".concat(prefixCls, "-content")
385
385
  }, /*#__PURE__*/ React.createElement(View, {
@@ -397,7 +397,7 @@ export var CalendarCard = /*#__PURE__*/ React.forwardRef(function(props, ref) {
397
397
  return /*#__PURE__*/ React.createElement(View, {
398
398
  className: classNames("".concat(prefixCls, "-day"), day.type, getClasses(day)),
399
399
  key: "".concat(day.year, "-").concat(day.month, "-").concat(day.date),
400
- onClick: function() {
400
+ onClick: function onClick() {
401
401
  return handleDayClick(day);
402
402
  },
403
403
  ariaLabel: getAriaLabel(day),
@@ -4,7 +4,7 @@ var left = 'https://storage.360buyimg.com/imgtools/6437a2b149-bb511b40-4942-11f1
4
4
  var right = 'https://storage.360buyimg.com/imgtools/8aa060341d-baf78990-4942-11f1-9368-cd56fc5fadc6.svg';
5
5
  var doubleLeft = 'https://storage.360buyimg.com/imgtools/b5e798f4ed-bbe8c760-4942-11f1-b1e1-7158b9aae0a9.svg';
6
6
  var doubleRight = 'https://storage.360buyimg.com/imgtools/d6979fa16d-bbb4bf10-4942-11f1-9368-cd56fc5fadc6.svg';
7
- var Icon = function(param) {
7
+ var Icon = function Icon(param) {
8
8
  var url = param.url;
9
9
  var iconStyle = {
10
10
  color: 'var(--nutui-color-text)'
@@ -17,22 +17,22 @@ var Icon = function(param) {
17
17
  style: iconStyle
18
18
  });
19
19
  };
20
- export var ArrowLeft = function() {
20
+ export var ArrowLeft = function ArrowLeft() {
21
21
  return /*#__PURE__*/ React.createElement(Icon, {
22
22
  url: left
23
23
  });
24
24
  };
25
- export var ArrowRight = function() {
25
+ export var ArrowRight = function ArrowRight() {
26
26
  return /*#__PURE__*/ React.createElement(Icon, {
27
27
  url: right
28
28
  });
29
29
  };
30
- export var DoubleLeft = function() {
30
+ export var DoubleLeft = function DoubleLeft() {
31
31
  return /*#__PURE__*/ React.createElement(Icon, {
32
32
  url: doubleLeft
33
33
  });
34
34
  };
35
- export var DoubleRight = function() {
35
+ export var DoubleRight = function DoubleRight() {
36
36
  return /*#__PURE__*/ React.createElement(Icon, {
37
37
  url: doubleRight
38
38
  });
@@ -1,17 +1,17 @@
1
1
  import { Utils } from "../../utils/date";
2
- export var convertDateToDay = function(date) {
2
+ export var convertDateToDay = function convertDateToDay(date) {
3
3
  return date ? {
4
4
  year: date.getFullYear(),
5
5
  month: date.getMonth() + 1,
6
6
  date: date.getDate()
7
7
  } : null;
8
8
  };
9
- export var convertDayToDate = function(day) {
9
+ export var convertDayToDate = function convertDayToDate(day) {
10
10
  return day ? new Date(day.year, day.month - 1, day.date) : null;
11
11
  };
12
12
  /**
13
13
  * 获取当月面板中前一个月的日期数据
14
- */ export var getPrevMonthDays = function(year, month, firstDayOfWeek) {
14
+ */ export var getPrevMonthDays = function getPrevMonthDays(year, month, firstDayOfWeek) {
15
15
  var prevMonth = month - 1;
16
16
  var prevYear = year;
17
17
  if (prevMonth <= 0) {
@@ -36,7 +36,7 @@ export var convertDayToDate = function(day) {
36
36
  };
37
37
  /**
38
38
  * 获取当前月的日期数据
39
- */ export var getCurrentMonthDays = function(year, month) {
39
+ */ export var getCurrentMonthDays = function getCurrentMonthDays(year, month) {
40
40
  var days = Utils.getMonthDays("".concat(year), "".concat(month));
41
41
  return Array.from(Array(days), function(_, k) {
42
42
  return {
@@ -49,7 +49,7 @@ export var convertDayToDate = function(day) {
49
49
  };
50
50
  /**
51
51
  * 根据日期获取当前周的起始日期
52
- */ export var getCurrentWeekDays = function(day, firstDayOfWeek) {
52
+ */ export var getCurrentWeekDays = function getCurrentWeekDays(day, firstDayOfWeek) {
53
53
  var current = new Date(day.year, day.month - 1, day.date);
54
54
  var count = (current.getDay() + 7 - firstDayOfWeek) % 7;
55
55
  return [
@@ -28,17 +28,17 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
28
28
  showSubTitle: true,
29
29
  scrollAnimation: true,
30
30
  firstDayOfWeek: 0,
31
- disableDate: function(date) {
31
+ disableDate: function disableDate(date) {
32
32
  return false;
33
33
  },
34
34
  renderHeaderButtons: undefined,
35
35
  renderDay: undefined,
36
36
  renderDayTop: undefined,
37
37
  renderDayBottom: undefined,
38
- onConfirm: function() {},
39
- onUpdate: function() {},
40
- onDayClick: function() {},
41
- onPageChange: function() {}
38
+ onConfirm: function onConfirm() {},
39
+ onUpdate: function onUpdate() {},
40
+ onDayClick: function onDayClick() {},
41
+ onPageChange: function onPageChange() {}
42
42
  });
43
43
  export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
44
44
  var locale = useConfig().locale;
@@ -61,13 +61,13 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
61
61
  var _useState7 = _sliced_to_array(useState({
62
62
  currDateArray: []
63
63
  }), 1), state = _useState7[0];
64
- var getMonthsPanel = function() {
64
+ var getMonthsPanel = function getMonthsPanel() {
65
65
  return monthsPanel.current;
66
66
  };
67
- var getMonthsRef = function() {
67
+ var getMonthsRef = function getMonthsRef() {
68
68
  return monthsRef.current;
69
69
  };
70
- var resetDefaultValue = function() {
70
+ var resetDefaultValue = function resetDefaultValue() {
71
71
  if (defaultValue || Array.isArray(defaultValue) && defaultValue.length > 0) {
72
72
  return type !== 'single' ? _to_consumable_array(defaultValue) : defaultValue;
73
73
  }
@@ -77,7 +77,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
77
77
  value: value,
78
78
  defaultValue: resetDefaultValue(),
79
79
  finalValue: [],
80
- onChange: function(val) {}
80
+ onChange: function onChange(val) {}
81
81
  }), 2), currentDate = _usePropsValue[0], setCurrentDate = _usePropsValue[1];
82
82
  var weeksPanel = useRef(null);
83
83
  var monthsRef = useRef(null);
@@ -88,7 +88,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
88
88
  var classPrefix = 'nut-calendar';
89
89
  var dayPrefix = 'nut-calendar-day';
90
90
  // 获取月数据
91
- var getMonthData = function(curData, monthNum, type) {
91
+ var getMonthData = function getMonthData(curData, monthNum, type) {
92
92
  var i = 0;
93
93
  var date = curData;
94
94
  var monthData = monthsData;
@@ -120,7 +120,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
120
120
  }while (i++ < monthNum);
121
121
  setMonthsData(monthData);
122
122
  };
123
- var setReachedYearMonthInfo = function(current) {
123
+ var setReachedYearMonthInfo = function setReachedYearMonthInfo(current) {
124
124
  var currentMonthsData = monthsData[current];
125
125
  var _currentMonthsData_curData = _sliced_to_array(currentMonthsData.curData, 2), year = _currentMonthsData_curData[0], month = _currentMonthsData_curData[1];
126
126
  if (currentMonthsData.title === yearMonthTitle) return;
@@ -132,7 +132,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
132
132
  setYearMonthTitle(currentMonthsData.title);
133
133
  };
134
134
  // 设置默认的范围
135
- var setDefaultRange = function(monthNum, current) {
135
+ var setDefaultRange = function setDefaultRange(monthNum, current) {
136
136
  var start = 0;
137
137
  var end = 0;
138
138
  if (monthNum >= 3) {
@@ -157,7 +157,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
157
157
  setTranslateY(monthsData[start].scrollTop);
158
158
  setReachedYearMonthInfo(current);
159
159
  };
160
- var getMonthNum = function() {
160
+ var getMonthNum = function getMonthNum() {
161
161
  var monthNum = Number(endDates[1]) - Number(startDates[1]);
162
162
  var yearNum = Number(endDates[0]) - Number(startDates[0]);
163
163
  if (yearNum > 0) {
@@ -169,7 +169,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
169
169
  setMonthsNum(monthNum);
170
170
  return monthNum;
171
171
  };
172
- var setDefaultDate = function() {
172
+ var setDefaultDate = function setDefaultDate() {
173
173
  var defaultData = [];
174
174
  // 日期转化为数组,限制初始日期。判断时间范围
175
175
  if (type === 'range' && Array.isArray(currentDate)) {
@@ -227,7 +227,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
227
227
  }
228
228
  return defaultData;
229
229
  };
230
- var getCurrentIndex = function(defaultData) {
230
+ var getCurrentIndex = function getCurrentIndex(defaultData) {
231
231
  // 设置默认可见区域
232
232
  var current = 0;
233
233
  var lastCurrent = 0;
@@ -259,7 +259,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
259
259
  lastCurrent: lastCurrent
260
260
  };
261
261
  };
262
- var renderCurrentDate = function() {
262
+ var renderCurrentDate = function renderCurrentDate() {
263
263
  var defaultData = setDefaultDate();
264
264
  var current = getCurrentIndex(defaultData);
265
265
  if (defaultData.length > 0) {
@@ -302,7 +302,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
302
302
  }
303
303
  return current.current;
304
304
  };
305
- var requestAniFrameFunc = function(current, monthNum) {
305
+ var requestAniFrameFunc = function requestAniFrameFunc(current, monthNum) {
306
306
  var lastItem = monthsData[monthsData.length - 1];
307
307
  var containerHeight = lastItem.cssHeight + lastItem.scrollTop;
308
308
  requestAniFrame(function() {
@@ -319,7 +319,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
319
319
  });
320
320
  setAvgHeight(Math.floor(containerHeight / (monthNum + 1)));
321
321
  };
322
- var initData = function() {
322
+ var initData = function initData() {
323
323
  // 判断时间范围内存在多少个月
324
324
  var monthNum = getMonthNum();
325
325
  // 设置月份数据,获取包含月份的所有数据,只需要 set 一次即可。
@@ -331,7 +331,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
331
331
  useEffect(function() {
332
332
  initData();
333
333
  }, []);
334
- var resetRender = function() {
334
+ var resetRender = function resetRender() {
335
335
  state.currDateArray.splice(0);
336
336
  monthsData.splice(0);
337
337
  initData();
@@ -347,7 +347,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
347
347
  currentDate
348
348
  ]);
349
349
  // 暴露出的API
350
- var scrollToDate = function(date) {
350
+ var scrollToDate = function scrollToDate(date) {
351
351
  if (Utils.compareDate(date, propStartDate)) {
352
352
  date = propStartDate;
353
353
  } else if (!Utils.compareDate(date, propEndDate)) {
@@ -383,7 +383,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
383
383
  }
384
384
  });
385
385
  };
386
- var monthsViewScroll = function(e) {
386
+ var monthsViewScroll = function monthsViewScroll(e) {
387
387
  if (monthsData.length <= 1) {
388
388
  return;
389
389
  }
@@ -421,7 +421,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
421
421
  scrollToDate: scrollToDate
422
422
  };
423
423
  });
424
- var getClasses = function(day, month) {
424
+ var getClasses = function getClasses(day, month) {
425
425
  var dateStr = getCurrDate(day, month);
426
426
  if (day.type === 'active') {
427
427
  if (propStartDate && Utils.compareDate(dateStr, propStartDate) || propEndDate && Utils.compareDate(propEndDate, dateStr)) {
@@ -447,7 +447,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
447
447
  }
448
448
  return "".concat(dayPrefix, "-disabled");
449
449
  };
450
- var chooseDay = function(day, month, isFirst) {
450
+ var chooseDay = function chooseDay(day, month, isFirst) {
451
451
  if (getClasses(day, month) === "".concat(dayPrefix, "-disabled")) {
452
452
  return;
453
453
  }
@@ -526,8 +526,8 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
526
526
  }
527
527
  setMonthsData(monthsData.slice());
528
528
  };
529
- var resetSelectedValue = function() {
530
- var itemData = function(dateArr) {
529
+ var resetSelectedValue = function resetSelectedValue() {
530
+ var itemData = function itemData(dateArr) {
531
531
  days = dateArr.split('/');
532
532
  days[3] = "".concat(days[0], "/").concat(days[1], "/").concat(days[2]);
533
533
  days[4] = Utils.getWhatDay(+days[0], +days[1], +days[2]);
@@ -543,7 +543,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
543
543
  }
544
544
  return days;
545
545
  };
546
- var confirm = function() {
546
+ var confirm = function confirm() {
547
547
  if (type === 'range' && state.currDateArray.length === 2 || type !== 'range') {
548
548
  var chooseData = state.currDateArray.slice(0);
549
549
  onConfirm && onConfirm(chooseData);
@@ -557,14 +557,14 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
557
557
  var _obj1;
558
558
  var headerClasses = classNames((_obj1 = {}, _define_property(_obj1, "".concat(classPrefix, "-header"), true), _define_property(_obj1, "".concat(classPrefix, "-header-title"), !popup), _obj1));
559
559
  // 是否有开始提示
560
- var isStartTip = function(day, month) {
560
+ var isStartTip = function isStartTip(day, month) {
561
561
  return (type === 'range' || type === 'week') && day.type === 'active' && isStart(getCurrDate(day, month), currentDate);
562
562
  };
563
563
  // 是否有结束提示
564
- var isEndTip = function(day, month) {
564
+ var isEndTip = function isEndTip(day, month) {
565
565
  return currentDate.length >= 2 && (type === 'range' || type === 'week') && day.type === 'active' && isEnd(getCurrDate(day, month), currentDate);
566
566
  };
567
- var renderHeader = function() {
567
+ var renderHeader = function renderHeader() {
568
568
  return /*#__PURE__*/ React.createElement(View, {
569
569
  className: headerClasses
570
570
  }, showTitle && /*#__PURE__*/ React.createElement(View, {
@@ -583,7 +583,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
583
583
  }, item);
584
584
  })));
585
585
  };
586
- var renderContent = function() {
586
+ var renderContent = function renderContent() {
587
587
  return /*#__PURE__*/ React.createElement(ScrollView, {
588
588
  scrollTop: scrollTop,
589
589
  scrollY: true,
@@ -615,7 +615,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
615
615
  "".concat(classPrefix, "-day"),
616
616
  getClasses(day, month)
617
617
  ].join(' '),
618
- onClick: function() {
618
+ onClick: function onClick() {
619
619
  chooseDay(day, month);
620
620
  },
621
621
  key: i
@@ -635,7 +635,7 @@ export var CalendarItem = /*#__PURE__*/ React.forwardRef(function(props, ref) {
635
635
  })));
636
636
  }))));
637
637
  };
638
- var renderFooter = function() {
638
+ var renderFooter = function renderFooter() {
639
639
  return /*#__PURE__*/ React.createElement(View, {
640
640
  className: "nut-calendar-footer"
641
641
  }, children, /*#__PURE__*/ React.createElement(View, {
@@ -21,8 +21,8 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
21
21
  priceTag: '',
22
22
  extra: ''
23
23
  });
24
- export var Card = function(props) {
25
- var _ref = _object_spread({}, defaultProps, props), className = _ref.className, style = _ref.style, src = _ref.src, title = _ref.title, price = _ref.price, vipPrice = _ref.vipPrice, shopDescription = _ref.shopDescription, delivery = _ref.delivery, shopName = _ref.shopName, tag = _ref.tag, priceTag = _ref.priceTag, description = _ref.description, extra = _ref.extra, rest = _object_without_properties(_ref, [
24
+ export var Card = function Card(props) {
25
+ var _$_object_spread = _object_spread({}, defaultProps, props), className = _$_object_spread.className, style = _$_object_spread.style, src = _$_object_spread.src, title = _$_object_spread.title, price = _$_object_spread.price, vipPrice = _$_object_spread.vipPrice, shopDescription = _$_object_spread.shopDescription, delivery = _$_object_spread.delivery, shopName = _$_object_spread.shopName, tag = _$_object_spread.tag, priceTag = _$_object_spread.priceTag, description = _$_object_spread.description, extra = _$_object_spread.extra, rest = _object_without_properties(_$_object_spread, [
26
26
  "className",
27
27
  "style",
28
28
  "src",
@@ -28,9 +28,9 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
28
28
  closeIconPosition: 'top-right',
29
29
  closeIcon: 'close',
30
30
  lazy: false,
31
- onClose: function() {},
32
- onChange: function() {},
33
- onPathChange: function() {}
31
+ onClose: function onClose() {},
32
+ onChange: function onChange() {},
33
+ onPathChange: function onPathChange() {}
34
34
  });
35
35
  export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
36
36
  var classPrefix = 'nut-cascader';
@@ -45,7 +45,7 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
45
45
  value: outerValue,
46
46
  defaultValue: outerDefaultValue,
47
47
  finalValue: [],
48
- onChange: function(value) {
48
+ onChange: function onChange(value) {
49
49
  var _props_onChange, _props_onPathChange;
50
50
  (_props_onChange = props.onChange) === null || _props_onChange === void 0 ? void 0 : _props_onChange.call(props, value, pathNodes.current);
51
51
  (_props_onPathChange = props.onPathChange) === null || _props_onPathChange === void 0 ? void 0 : _props_onPathChange.call(props, value, pathNodes.current);
@@ -124,7 +124,7 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
124
124
  var _usePropsValue1 = _sliced_to_array(usePropsValue({
125
125
  value: outerVisible,
126
126
  defaultValue: undefined,
127
- onChange: function(value) {
127
+ onChange: function onChange(value) {
128
128
  if (value === false) {
129
129
  var _props_onClose;
130
130
  (_props_onClose = props.onClose) === null || _props_onClose === void 0 ? void 0 : _props_onClose.call(props);
@@ -132,10 +132,10 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
132
132
  }
133
133
  }), 2), visible = _usePropsValue1[0], setVisible = _usePropsValue1[1];
134
134
  var actions = {
135
- open: function() {
135
+ open: function open() {
136
136
  setVisible(true);
137
137
  },
138
- close: function() {
138
+ close: function close() {
139
139
  setVisible(false);
140
140
  }
141
141
  };
@@ -174,7 +174,7 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
174
174
  outerOptions
175
175
  ]);
176
176
  useEffect(function() {
177
- var load = function() {
177
+ var load = function load() {
178
178
  return _async_to_generator(function() {
179
179
  var parent, error;
180
180
  return _ts_generator(this, function(_state) {
@@ -264,7 +264,7 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
264
264
  }, [
265
265
  lazy
266
266
  ]);
267
- var chooseItem = function(pane, levelIndex) {
267
+ var chooseItem = function chooseItem(pane, levelIndex) {
268
268
  return _async_to_generator(function() {
269
269
  var nextValue, nextPathNodes, _props_onPathChange, asyncOptions;
270
270
  return _ts_generator(this, function(_state) {
@@ -321,7 +321,7 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
321
321
  });
322
322
  })();
323
323
  };
324
- var renderCascaderItem = function(item, levelIndex) {
324
+ var renderCascaderItem = function renderCascaderItem(item, levelIndex) {
325
325
  var _item_pane;
326
326
  return (_item_pane = item.pane) === null || _item_pane === void 0 ? void 0 : _item_pane.map(function(pane, index) {
327
327
  var active = item.selected === pane.value;
@@ -336,7 +336,7 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
336
336
  color: active ? activeColor : ''
337
337
  },
338
338
  key: pane.value,
339
- onClick: function() {
339
+ onClick: function onClick() {
340
340
  chooseItem(pane, levelIndex);
341
341
  }
342
342
  }, /*#__PURE__*/ React.createElement(View, {
@@ -350,14 +350,14 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
350
350
  })));
351
351
  });
352
352
  };
353
- var renderTab = function() {
353
+ var renderTab = function renderTab() {
354
354
  return /*#__PURE__*/ React.createElement(View, {
355
355
  className: classNames(classPrefix, props.className),
356
356
  style: props.style
357
357
  }, /*#__PURE__*/ React.createElement(Tabs, {
358
358
  align: "left",
359
359
  value: tabActiveIndex,
360
- onChange: function(index) {
360
+ onChange: function onChange(index) {
361
361
  var _props_onTabsChange;
362
362
  (_props_onTabsChange = props.onTabsChange) === null || _props_onTabsChange === void 0 ? void 0 : _props_onTabsChange.call(props, Number(index));
363
363
  setTabActiveIndex(Number(index));
@@ -380,10 +380,10 @@ export var Cascader = /*#__PURE__*/ forwardRef(function(props, ref) {
380
380
  closeIconPosition: closeIconPosition,
381
381
  title: props.title,
382
382
  left: props.left,
383
- onOverlayClick: function() {
383
+ onOverlayClick: function onOverlayClick() {
384
384
  return setVisible(false);
385
385
  },
386
- onCloseIconClick: function() {
386
+ onCloseIconClick: function onCloseIconClick() {
387
387
  return setVisible(false);
388
388
  }
389
389
  }), renderTab()) : renderTab();
@@ -1,13 +1,13 @@
1
1
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
2
  import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
3
3
  import { _ as _to_property_key } from "@swc/helpers/_/_to_property_key";
4
- export var normalizeOptions = function(options, keyMap) {
4
+ export var normalizeOptions = function normalizeOptions1(options, keyMap) {
5
5
  if (!options) return undefined;
6
6
  return options.map(function(opt) {
7
- var _keyMap_textKey = keyMap.textKey, _keyMap_valueKey = keyMap.valueKey, _keyMap_childrenKey = keyMap.childrenKey, text = opt[_keyMap_textKey], value = opt[_keyMap_valueKey], children = opt[_keyMap_childrenKey], others = _object_without_properties(opt, [
8
- _keyMap_textKey,
9
- _keyMap_valueKey,
10
- _keyMap_childrenKey
7
+ var _key = keyMap.textKey, _key1 = keyMap.valueKey, _key2 = keyMap.childrenKey, text = opt[_key], value = opt[_key1], children = opt[_key2], others = _object_without_properties(opt, [
8
+ _key,
9
+ _key1,
10
+ _key2
11
11
  ].map(_to_property_key));
12
12
  return _object_spread({
13
13
  text: text,
@@ -16,7 +16,7 @@ export var normalizeOptions = function(options, keyMap) {
16
16
  }, others);
17
17
  });
18
18
  };
19
- export var normalizeListOptions = function(options, format) {
19
+ export var normalizeListOptions = function normalizeListOptions(options, format) {
20
20
  var defaultConvertConfig = {
21
21
  topId: null,
22
22
  idKey: 'id',