@nutui/nutui-react-taro 2.6.4 → 2.6.6

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 (157) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/esm/ActionSheet.js +1 -1
  3. package/dist/esm/Address.js +1 -1
  4. package/dist/esm/Animate.js +1 -1
  5. package/dist/esm/Audio.js +1 -1
  6. package/dist/esm/Avatar.js +1 -1
  7. package/dist/esm/AvatarCropper.js +1 -1
  8. package/dist/esm/AvatarGroup.js +1 -1
  9. package/dist/esm/Badge.js +1 -1
  10. package/dist/esm/Barrage.js +1 -1
  11. package/dist/esm/Calendar.js +1 -1
  12. package/dist/esm/CalendarCard.js +1 -1
  13. package/dist/esm/CalendarItem.js +1 -1
  14. package/dist/esm/Card/style/style.css +1 -1
  15. package/dist/esm/Card.js +1 -1
  16. package/dist/esm/Cascader.js +1 -1
  17. package/dist/esm/Checkbox.js +1 -1
  18. package/dist/esm/CheckboxGroup.js +1 -1
  19. package/dist/esm/CircleProgress.js +1 -1
  20. package/dist/esm/Collapse.js +1 -1
  21. package/dist/esm/CollapseItem.js +1 -1
  22. package/dist/esm/CountDown.js +1 -1
  23. package/dist/esm/DatePicker.js +1 -1
  24. package/dist/esm/Drag.js +1 -1
  25. package/dist/esm/Ellipsis.js +1 -1
  26. package/dist/esm/Empty.js +1 -1
  27. package/dist/esm/Form.js +1 -2
  28. package/dist/esm/FormItem.js +1 -1
  29. package/dist/esm/ImagePreview.js +1 -1
  30. package/dist/esm/Indicator.js +1 -1
  31. package/dist/esm/InfiniteLoading.js +1 -1
  32. package/dist/esm/Input.js +1 -1
  33. package/dist/esm/InputNumber.js +1 -1
  34. package/dist/esm/Layout.js +1 -1
  35. package/dist/esm/Loading.js +1 -1
  36. package/dist/esm/Menu/style/style.css +1 -1
  37. package/dist/esm/Menu.js +1 -1
  38. package/dist/esm/MenuItem/style/style.css +1 -1
  39. package/dist/esm/MenuItem.js +1 -1
  40. package/dist/esm/NoticeBar.js +1 -1
  41. package/dist/esm/NumberKeyboard.js +1 -1
  42. package/dist/esm/Pagination.js +1 -1
  43. package/dist/esm/Picker.js +1 -1
  44. package/dist/esm/Popover.js +1 -1
  45. package/dist/esm/Popup.js +1 -1
  46. package/dist/esm/Price.js +1 -1
  47. package/dist/esm/Progress.js +1 -1
  48. package/dist/esm/Range.js +1 -1
  49. package/dist/esm/Rate.js +1 -1
  50. package/dist/esm/SearchBar.js +1 -1
  51. package/dist/esm/ShortPassword.js +1 -1
  52. package/dist/esm/SideNavBar.js +1 -1
  53. package/dist/esm/Signature.js +1 -1
  54. package/dist/esm/Skeleton.js +1 -1
  55. package/dist/esm/Step.js +1 -1
  56. package/dist/esm/Steps.js +1 -1
  57. package/dist/esm/Swiper.js +1 -1
  58. package/dist/esm/Switch.js +1 -1
  59. package/dist/esm/Tabbar.js +1 -1
  60. package/dist/esm/TabbarItem.js +1 -1
  61. package/dist/esm/Table/style/style.css +1 -1
  62. package/dist/esm/Table.js +1 -1
  63. package/dist/esm/Tag/style/style.css +1 -1
  64. package/dist/esm/Tag.js +1 -1
  65. package/dist/esm/TextArea.js +1 -1
  66. package/dist/esm/TimeDetail.js +1 -1
  67. package/dist/esm/TimeSelect.js +1 -1
  68. package/dist/esm/Tour.js +1 -1
  69. package/dist/esm/TrendArrow.js +1 -1
  70. package/dist/esm/Uploader.js +1 -1
  71. package/dist/esm/Video.js +1 -1
  72. package/dist/esm/VirtualList.js +1 -1
  73. package/dist/esm/WaterMark.js +1 -1
  74. package/dist/esm/{actionsheet.taro-DxJu0OXY.js → actionsheet.taro-CI2b9f_3.js} +1 -2
  75. package/dist/esm/{address.taro-Cc1TOQge.js → address.taro-6VS1YZ0V.js} +2 -3
  76. package/dist/esm/{animate.taro-Dg9jxZEu.js → animate.taro-D-A6ORRZ.js} +0 -1
  77. package/dist/esm/{audio.taro-2hRKQ2Lk.js → audio.taro-4ixA5lb2.js} +1 -1
  78. package/dist/esm/{avatar.taro-D_uJo0PP.js → avatar.taro-Dx8hhvFI.js} +3 -4
  79. package/dist/esm/{avatarcropper.taro-Dd4pAR3N.js → avatarcropper.taro-C9BoO5Lp.js} +0 -1
  80. package/dist/esm/{avatargroup.taro-bpT5kPbf.js → avatargroup.taro-ScakjsY1.js} +0 -1
  81. package/dist/esm/{badge.taro-B0spW6jr.js → badge.taro-DK_UFQ5Y.js} +0 -1
  82. package/dist/esm/{barrage.taro-BNOcZsJ1.js → barrage.taro-DEJGSmY5.js} +0 -1
  83. package/dist/esm/{calendar.taro-D17OsS2D.js → calendar.taro-CDZqFYlk.js} +2 -3
  84. package/dist/esm/{calendarcard.taro-C7P3oqAL.js → calendarcard.taro-CHDg3k5D.js} +0 -1
  85. package/dist/esm/{calendaritem.taro-B8tN2DYa.js → calendaritem.taro-DuEKmnsT.js} +3 -4
  86. package/dist/esm/{card.taro-FRirz5pW.js → card.taro-Co0BZGJI.js} +2 -3
  87. package/dist/esm/{cascader.taro-28xJB9fJ.js → cascader.taro-CZkUgupN.js} +5 -6
  88. package/dist/esm/{checkbox.taro-CUpF7Afr.js → checkbox.taro-DOSOI351.js} +2 -3
  89. package/dist/esm/{circleprogress.taro-CKSrzt8Q.js → circleprogress.taro-BuVTD1iY.js} +7 -9
  90. package/dist/esm/{collapse.taro-BM0BsN30.js → collapse.taro-CxDgckv5.js} +1 -2
  91. package/dist/esm/{collapseitem.taro-D_m4VEdG.js → collapseitem.taro-BY06WWvK.js} +0 -1
  92. package/dist/esm/{countdown.taro-wopKr1Il.js → countdown.taro-CdEiAwr5.js} +0 -1
  93. package/dist/esm/{datepicker.taro-zmHQR_LR.js → datepicker.taro-B7H4b8TO.js} +1 -1
  94. package/dist/esm/{drag.taro-CcHIO07Y.js → drag.taro-D6xGnWqk.js} +3 -4
  95. package/dist/esm/{ellipsis.taro-3gDXpBmX.js → ellipsis.taro-dxOx8h7S.js} +0 -1
  96. package/dist/esm/{empty.taro-C61QNHep.js → empty.taro-DgmUYpBc.js} +0 -1
  97. package/dist/esm/{formitem.taro-Y-hHJ2oh.js → formitem.taro-CAib1i9_.js} +4 -0
  98. package/dist/esm/{imagepreview.taro-BqFhQUnY.js → imagepreview.taro-CBT7aS3-.js} +6 -8
  99. package/dist/esm/{indicator.taro-CpHZtD9p.js → indicator.taro-Bmae9MdC.js} +0 -1
  100. package/dist/esm/{infiniteloading.taro-WiMpG-fU.js → infiniteloading.taro-Bnm-LVHC.js} +0 -1
  101. package/dist/esm/{input.taro-CAZ-rRMH.js → input.taro-CLMPZ7Wg.js} +10 -15
  102. package/dist/esm/{inputnumber.taro-HU_Ndna2.js → inputnumber.taro-ByJ9DlU2.js} +0 -1
  103. package/dist/esm/{layout.taro-BE2868d6.js → layout.taro-C-aUcOOE.js} +0 -1
  104. package/dist/esm/{loading.taro-CRF1z5wQ.js → loading.taro-BfHqvYhy.js} +0 -1
  105. package/dist/esm/{menu.taro-Q5-SZ5t1.js → menu.taro-DkKY62ym.js} +1 -2
  106. package/dist/esm/{menuitem.taro-DSBI0DQb.js → menuitem.taro-CKjl8_Cl.js} +1 -2
  107. package/dist/esm/{noticebar.taro-BtudzdMD.js → noticebar.taro-cjVGemZE.js} +0 -1
  108. package/dist/esm/{numberkeyboard.taro-BOK1wpU5.js → numberkeyboard.taro-CFJtMOew.js} +2 -3
  109. package/dist/esm/nutui-react.es.js +64 -64
  110. package/dist/esm/{pagination.taro-DAK6ddag.js → pagination.taro-B8hmHNgf.js} +0 -1
  111. package/dist/esm/{picker.taro-CHjN0l-b.js → picker.taro-CHsDIw4C.js} +1 -1
  112. package/dist/esm/{popover.taro-G8UcSxKq.js → popover.taro-Dve2UnRF.js} +4 -6
  113. package/dist/esm/{popup.taro-C8cIGEKf.js → popup.taro-cT6cbAxw.js} +0 -1
  114. package/dist/esm/{price.taro-UVRHPHRD.js → price.taro-DdR5NSIA.js} +0 -1
  115. package/dist/esm/{progress.taro-rjiPI6mD.js → progress.taro-BFWQ2MvM.js} +0 -1
  116. package/dist/esm/{range.taro-CsC41L60.js → range.taro-BeVCaZ4r.js} +0 -1
  117. package/dist/esm/{rate.taro-BABLqt4h.js → rate.taro-lOoACxLq.js} +0 -1
  118. package/dist/esm/{searchbar.taro-PfVx6o-6.js → searchbar.taro-B31m8apz.js} +6 -7
  119. package/dist/esm/{shortpassword.taro-CQkvedaX.js → shortpassword.taro-BVp4BrTs.js} +3 -3
  120. package/dist/esm/{sidenavbar.taro-BATNbF5l.js → sidenavbar.taro-DGnJgxEe.js} +1 -1
  121. package/dist/esm/{signature.taro-Bn9VNn62.js → signature.taro-DTZCZMDZ.js} +1 -2
  122. package/dist/esm/{skeleton.taro-BunkJQwv.js → skeleton.taro-C3vp7bWb.js} +1 -2
  123. package/dist/esm/{step.taro-DLr2GzYk.js → step.taro-CaRHnSOF.js} +0 -1
  124. package/dist/esm/{steps.taro-C8Yg1Sns.js → steps.taro-BoVGFMxx.js} +1 -2
  125. package/dist/esm/{switch.taro-D1HgJoJz.js → switch.taro-Mq1wBEGz.js} +0 -1
  126. package/dist/esm/{tabbar.taro-B7C39PTH.js → tabbar.taro-DD5HcQgp.js} +1 -1
  127. package/dist/esm/{tabbaritem.taro-C_90fvMh.js → tabbaritem.taro-ptdJI0xv.js} +1 -1
  128. package/dist/esm/{table.taro-ClLmfqz3.js → table.taro-EwAQJ6jp.js} +1 -2
  129. package/dist/esm/{tag.taro-rKMK0jan.js → tag.taro-CFt28RLm.js} +0 -1
  130. package/dist/esm/{textarea.taro-BJIFCpKb.js → textarea.taro-DLS0EQeJ.js} +0 -1
  131. package/dist/esm/{timedetail.taro-x6Zey1xi.js → timedetail.taro-ya5JNy2L.js} +0 -1
  132. package/dist/esm/{timeselect.taro-DvY7iQiu.js → timeselect.taro-C64SUiXS.js} +2 -3
  133. package/dist/esm/{tour.taro-vfvdEJ-7.js → tour.taro-DegQCG1T.js} +1 -2
  134. package/dist/esm/{trendarrow.taro-BHUetKSS.js → trendarrow.taro-B2QGvXG0.js} +0 -1
  135. package/dist/esm/{uploader.taro-DMmTl0Cp.js → uploader.taro-BE4c5x9T.js} +4 -5
  136. package/dist/esm/{video.taro-DJQeroOH.js → video.taro-Bm5bDmIG.js} +0 -1
  137. package/dist/esm/{virtuallist.taro-D8qIVGPx.js → virtuallist.taro-GLen2Ay5.js} +0 -1
  138. package/dist/esm/{watermark.taro-BxM8VfXb.js → watermark.taro-BL5bLewc.js} +0 -1
  139. package/dist/locales/base.js +1 -1
  140. package/dist/locales/en-US.js +1 -1
  141. package/dist/locales/id-ID.js +1 -1
  142. package/dist/locales/tr-TR.js +1 -1
  143. package/dist/locales/zh-CN.js +1 -1
  144. package/dist/locales/zh-TW.js +1 -1
  145. package/dist/locales/zh-UG.js +1 -1
  146. package/dist/nutui.react.es.js +152 -212
  147. package/dist/nutui.react.umd.js +152 -212
  148. package/dist/packages/menu/menu.scss +1 -0
  149. package/dist/packages/menuitem/menuitem.scss +1 -0
  150. package/dist/packages/table/table.scss +2 -1
  151. package/dist/style.css +1 -1
  152. package/dist/style.mjs +1 -1
  153. package/dist/styles/variables.scss +1 -1
  154. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +5 -1
  155. package/dist/types/packages/input/input.d.ts +1 -1
  156. package/dist/types/packages/input/input.taro.d.ts +1 -1
  157. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { U as Uploader } from "./uploader.taro-DMmTl0Cp.js";
1
+ import { U as Uploader } from "./uploader.taro-BE4c5x9T.js";
2
2
  export {
3
3
  Uploader as default
4
4
  };
package/dist/esm/Video.js CHANGED
@@ -1,4 +1,4 @@
1
- import { V as Video } from "./video.taro-DJQeroOH.js";
1
+ import { V as Video } from "./video.taro-Bm5bDmIG.js";
2
2
  export {
3
3
  Video as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { V as VirtualList } from "./virtuallist.taro-D8qIVGPx.js";
1
+ import { V as VirtualList } from "./virtuallist.taro-GLen2Ay5.js";
2
2
  export {
3
3
  VirtualList as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { W as WaterMark } from "./watermark.taro-BxM8VfXb.js";
1
+ import { W as WaterMark } from "./watermark.taro-BL5bLewc.js";
2
2
  export {
3
3
  WaterMark as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default from "react";
3
- import { P as Popup } from "./popup.taro-C8cIGEKf.js";
3
+ import { P as Popup } from "./popup.taro-cT6cbAxw.js";
4
4
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
5
5
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, description: "", options: [], optionKey: { name: "name", description: "description" }, cancelText: "", onCancel: () => {
6
6
  }, onSelect: () => {
@@ -36,7 +36,6 @@ const ActionSheet = (props) => {
36
36
  )
37
37
  );
38
38
  };
39
- ActionSheet.defaultProps = defaultProps;
40
39
  ActionSheet.displayName = "NutActionSheet";
41
40
  export {
42
41
  ActionSheet as A
@@ -1,10 +1,10 @@
1
1
  import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default, { forwardRef, useState, useImperativeHandle } from "react";
3
3
  import { Check, Location, ArrowLeft } from "@nutui/icons-react-taro";
4
- import { P as Popup } from "./popup.taro-C8cIGEKf.js";
4
+ import { P as Popup } from "./popup.taro-cT6cbAxw.js";
5
5
  import { ScrollView } from "@tarojs/components";
6
6
  import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
7
- import { C as Cascader } from "./cascader.taro-28xJB9fJ.js";
7
+ import { C as Cascader } from "./cascader.taro-CZkUgupN.js";
8
8
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
9
9
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
10
10
  const defaultProps$2 = {
@@ -129,7 +129,6 @@ const InternalAddress = (props, ref) => {
129
129
  ));
130
130
  };
131
131
  const Address = forwardRef(InternalAddress);
132
- Address.defaultProps = defaultProps;
133
132
  Address.displayName = "NutAddress";
134
133
  export {
135
134
  Address as A
@@ -29,7 +29,6 @@ const Animate = (props) => {
29
29
  React__default.createElement("div", Object.assign({ className: cls, onClick: handleClick }, rest), children)
30
30
  );
31
31
  };
32
- Animate.defaultProps = defaultProps;
33
32
  Animate.displayName = "NutAnimate";
34
33
  export {
35
34
  Animate as A
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default, { useState, useRef } from "react";
3
3
  import { createInnerAudioContext } from "@tarojs/taro";
4
4
  import { Service } from "@nutui/icons-react-taro";
5
- import { R as Range } from "./range.taro-CsC41L60.js";
5
+ import { R as Range } from "./range.taro-BeVCaZ4r.js";
6
6
  import { B as Button } from "./button.taro-CjH840d8.js";
7
7
  import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
8
8
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
@@ -4,7 +4,7 @@ import Taro, { getEnv } from "@tarojs/taro";
4
4
  import classNames from "classnames";
5
5
  import { User } from "@nutui/icons-react-taro";
6
6
  import { I as Image } from "./image.taro-ESa7sdbM.js";
7
- import { a as AvatarContext, A as AvatarGroup } from "./avatargroup.taro-bpT5kPbf.js";
7
+ import { a as AvatarContext, A as AvatarGroup } from "./avatargroup.taro-ScakjsY1.js";
8
8
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
9
9
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { size: "", shape: "round", icon: "", fit: "cover", background: "#eee", color: "#666", src: "", alt: "" });
10
10
  const classPrefix = `nut-avatar`;
@@ -57,8 +57,8 @@ const Avatar = (props) => {
57
57
  }
58
58
  };
59
59
  const errorEvent = () => {
60
- if (props.onError) {
61
- props.onError();
60
+ if (onError) {
61
+ onError();
62
62
  }
63
63
  };
64
64
  const clickAvatar = (e) => {
@@ -78,7 +78,6 @@ const Avatar = (props) => {
78
78
  showMax && React__default.createElement("div", { className: "text" }, ((_m = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _m === void 0 ? void 0 : _m.maxContent) ? (_o = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _o === void 0 ? void 0 : _o.maxContent : `+ ${avatarIndex - Number(((_p = parent === null || parent === void 0 ? void 0 : parent.propAvatarGroup) === null || _p === void 0 ? void 0 : _p.max) || 0)}`)
79
79
  ));
80
80
  };
81
- Avatar.defaultProps = defaultProps;
82
81
  Avatar.displayName = "NutAvatar";
83
82
  Avatar.Group = AvatarGroup;
84
83
  export {
@@ -418,7 +418,6 @@ const AvatarCropper = (props) => {
418
418
  CropperPopup()
419
419
  );
420
420
  };
421
- AvatarCropper.defaultProps = defaultProps;
422
421
  AvatarCropper.displayName = "NutAvatarCropper";
423
422
  export {
424
423
  AvatarCropper as A
@@ -19,7 +19,6 @@ const AvatarGroup = (props) => {
19
19
  React__default.createElement("div", { className: cls, style, ref: avatarGroupRef }, children)
20
20
  );
21
21
  };
22
- AvatarGroup.defaultProps = defaultProps;
23
22
  AvatarGroup.displayName = "NutAvatarGroup";
24
23
  export {
25
24
  AvatarGroup as A,
@@ -61,7 +61,6 @@ const Badge = (props) => {
61
61
  !isIcon() && React__default.createElement("div", { className: contentClasses, style: getStyle() }, content())
62
62
  );
63
63
  };
64
- Badge.defaultProps = defaultProps;
65
64
  Badge.displayName = "NutBadge";
66
65
  export {
67
66
  Badge as B
@@ -101,7 +101,6 @@ const InternalBarrage = (props, ref) => {
101
101
  );
102
102
  };
103
103
  const Barrage = React__default.forwardRef(InternalBarrage);
104
- Barrage.defaultProps = defaultProps;
105
104
  Barrage.displayName = "NutBarrage";
106
105
  export {
107
106
  Barrage as B
@@ -1,6 +1,6 @@
1
1
  import React__default, { useRef } from "react";
2
- import { P as Popup } from "./popup.taro-C8cIGEKf.js";
3
- import { C as CalendarItem } from "./calendaritem.taro-B8tN2DYa.js";
2
+ import { P as Popup } from "./popup.taro-cT6cbAxw.js";
3
+ import { C as CalendarItem } from "./calendaritem.taro-DuEKmnsT.js";
4
4
  import { U as Utils } from "./date-D0pth0qC.js";
5
5
  import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
6
6
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
@@ -41,7 +41,6 @@ const Calendar = React__default.forwardRef((props, ref) => {
41
41
  };
42
42
  return React__default.createElement(React__default.Fragment, null, popup ? React__default.createElement(Popup, { className: "nut-calendar-popup", visible, position: "bottom", round: true, closeable: true, destroyOnClose: true, onOverlayClick: closePopup, onCloseIconClick: closePopup, style: { height: "83%" } }, renderItem()) : renderItem());
43
43
  });
44
- Calendar.defaultProps = defaultProps;
45
44
  Calendar.displayName = "NutCalendar";
46
45
  export {
47
46
  Calendar as C
@@ -401,7 +401,6 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
401
401
  renderContent()
402
402
  ) : null;
403
403
  });
404
- CalendarCard.defaultProps = defaultProps;
405
404
  CalendarCard.displayName = "NutCalendarCard";
406
405
  export {
407
406
  CalendarCard as C
@@ -42,7 +42,7 @@ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type:
42
42
  } });
43
43
  const CalendarItem = React__default.forwardRef((props, ref) => {
44
44
  const { locale } = useConfig();
45
- const { style, className, children, popup, type, autoBackfill, title, defaultValue, startDate, endDate, showToday, startText, endText, confirmText, showTitle, showSubTitle, scrollAnimation, firstDayOfWeek, disableDate, renderHeaderButtons, renderDay, renderDayTop, renderDayBottom, onConfirm, onUpdate, onDayClick, onPageChange } = Object.assign(Object.assign({}, defaultProps), props);
45
+ const { style, className, children, popup, type, autoBackfill, title, defaultValue, startDate, endDate, showToday, startText, endText, confirmText, showTitle, showSubTitle, scrollAnimation, firstDayOfWeek, disableDate, renderHeaderButtons, renderDay, renderDayTop, renderDayBottom, value, onConfirm, onUpdate, onDayClick, onPageChange } = Object.assign(Object.assign({}, defaultProps), props);
46
46
  const weekdays = locale.calendaritem.weekdays;
47
47
  const weeks = [
48
48
  ...weekdays.slice(firstDayOfWeek, 7),
@@ -76,7 +76,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
76
76
  return void 0;
77
77
  };
78
78
  const [currentDate, setCurrentDate] = usePropsValue({
79
- value: props.value,
79
+ value,
80
80
  defaultValue: resetDefaultValue(),
81
81
  finalValue: [],
82
82
  onChange: (val) => {
@@ -265,7 +265,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
265
265
  if (type === "range") {
266
266
  chooseDay({ day: defaultData[2], type: "active" }, monthsData[current.current], true);
267
267
  chooseDay({ day: defaultData[5], type: "active" }, monthsData[current.lastCurrent], true);
268
- } else if (props.type === "week") {
268
+ } else if (type === "week") {
269
269
  chooseDay({ day: defaultData[2], type: "curr" }, monthsData[current.current], true);
270
270
  } else if (type === "multiple") {
271
271
  [...currentDate].forEach((item) => {
@@ -567,7 +567,6 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
567
567
  )
568
568
  );
569
569
  });
570
- CalendarItem.defaultProps = defaultProps;
571
570
  CalendarItem.displayName = "NutCalendarItem";
572
571
  export {
573
572
  CalendarItem as C
@@ -1,8 +1,8 @@
1
1
  import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default from "react";
3
3
  import classNames from "classnames";
4
- import { P as Price } from "./price.taro-UVRHPHRD.js";
5
- import { T as Tag } from "./tag.taro-rKMK0jan.js";
4
+ import { P as Price } from "./price.taro-DdR5NSIA.js";
5
+ import { T as Tag } from "./tag.taro-CFt28RLm.js";
6
6
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
7
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { src: "", title: "", price: "", vipPrice: "", shopDescription: "", delivery: "", shopName: "", description: "", tag: "", priceTag: "", extra: "" });
8
8
  const Card = (props) => {
@@ -42,7 +42,6 @@ const Card = (props) => {
42
42
  )
43
43
  );
44
44
  };
45
- Card.defaultProps = defaultProps;
46
45
  Card.displayName = "NutCard";
47
46
  export {
48
47
  Card as C
@@ -3,7 +3,7 @@ import React__default, { useState, useImperativeHandle, useEffect, isValidElemen
3
3
  import classNames from "classnames";
4
4
  import { Loading, Checklist } from "@nutui/icons-react-taro";
5
5
  import { ScrollView } from "@tarojs/components";
6
- import { P as Popup } from "./popup.taro-C8cIGEKf.js";
6
+ import { P as Popup } from "./popup.taro-cT6cbAxw.js";
7
7
  import { T as Tabs } from "./tabs.taro-gcyv8qGG.js";
8
8
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
9
9
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
@@ -125,7 +125,7 @@ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { activ
125
125
  }, onPathChange: () => {
126
126
  } });
127
127
  const InternalCascader = (props, ref) => {
128
- const { className, style, activeColor, activeIcon, popup, popupProps = {}, visible, options, value, defaultValue, optionKey, format, closeable, closeIconPosition, closeIcon, lazy, onLoad, onClose, onChange, onPathChange } = Object.assign(Object.assign({}, defaultProps), props);
128
+ const { className, style, activeColor, activeIcon, popup, popupProps = {}, visible, options, value, defaultValue, optionKey, format, closeable, closeIconPosition, closeIcon, lazy, title, left, onLoad, onClose, onChange, onPathChange } = Object.assign(Object.assign({}, defaultProps), props);
129
129
  const [tabvalue, setTabvalue] = useState("c1");
130
130
  const [optionsData, setOptionsData] = useState([]);
131
131
  const isLazy = () => state.configs.lazy && Boolean(state.configs.onLoad);
@@ -135,7 +135,7 @@ const InternalCascader = (props, ref) => {
135
135
  finalValue: defaultValue
136
136
  });
137
137
  const [innerVisible, setInnerVisible] = usePropsValue({
138
- value: props.visible,
138
+ value: visible,
139
139
  defaultValue: void 0,
140
140
  finalValue: false
141
141
  });
@@ -405,15 +405,14 @@ const InternalCascader = (props, ref) => {
405
405
  closeIcon,
406
406
  closeable,
407
407
  closeIconPosition,
408
- title: popup && props.title,
409
- left: props.left,
408
+ title: popup && title,
409
+ left,
410
410
  // todo 只关闭,不处理逻辑。和popup的逻辑不一致。关闭时需要增加是否要处理回调
411
411
  onOverlayClick: closePopup,
412
412
  onCloseIconClick: closePopup
413
413
  }), renderTabs()) : renderTabs());
414
414
  };
415
415
  const Cascader = React__default.forwardRef(InternalCascader);
416
- Cascader.defaultProps = defaultProps;
417
416
  Cascader.displayName = "NutCascader";
418
417
  export {
419
418
  Cascader as C
@@ -100,8 +100,8 @@ const Checkbox = (props) => {
100
100
  let { labelPosition } = others, rest = __rest(others, ["labelPosition"]);
101
101
  const ctx = useContext(Context);
102
102
  let [innerChecked, setChecked] = usePropsValue({
103
- value: props.checked,
104
- defaultValue: props.defaultChecked,
103
+ value: checked,
104
+ defaultValue: defaultChecked,
105
105
  finalValue: defaultChecked,
106
106
  onChange
107
107
  });
@@ -213,7 +213,6 @@ const Checkbox = (props) => {
213
213
  [`${classPrefix}-reverse`]: labelPosition === "left"
214
214
  }, className) }, rest, { onClick: handleClick }), renderCheckboxItem());
215
215
  };
216
- Checkbox.defaultProps = defaultProps;
217
216
  Checkbox.displayName = "NutCheckBox";
218
217
  Checkbox.Group = CheckboxGroup;
219
218
  export {
@@ -35,11 +35,10 @@ const CircleProgress = (props) => {
35
35
  return () => window.cancelAnimationFrame(animateIdRef.current);
36
36
  }, [percent]);
37
37
  const stop = () => {
38
- if (!isObject(props.color)) {
38
+ if (!isObject(color)) {
39
39
  return [];
40
40
  }
41
- const color2 = props.color;
42
- const colorArr = Object.keys(color2).sort((a, b) => parseFloat(a) - parseFloat(b));
41
+ const colorArr = Object.keys(color).sort((a, b) => parseFloat(a) - parseFloat(b));
43
42
  const stopArr = [];
44
43
  colorArr.forEach((item) => {
45
44
  const obj = {
@@ -47,7 +46,7 @@ const CircleProgress = (props) => {
47
46
  value: ""
48
47
  };
49
48
  obj.key = item;
50
- obj.value = color2[item];
49
+ obj.value = color[item];
51
50
  stopArr.push(obj);
52
51
  });
53
52
  return stopArr;
@@ -69,12 +68,12 @@ const CircleProgress = (props) => {
69
68
  const perimeter = 283;
70
69
  const progress = +oldValue.current;
71
70
  const offset = perimeter * Number(format(parseFloat(progress.toFixed(1)))) / 100;
72
- const isWise = props.clockwise ? 1 : 0;
73
- const color2 = isObject(props.color) ? `url(%23${refRandomId})` : transColor(props.color);
71
+ const isWise = clockwise ? 1 : 0;
72
+ const realColor = isObject(color) ? `url(%23${refRandomId})` : transColor(color);
74
73
  const d = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
75
74
  const pa = `%3Cdefs%3E%3ClinearGradient id='${refRandomId}' x1='100%25' y1='0%25' x2='0%25' y2='0%25'%3E${stopDom}%3C/linearGradient%3E%3C/defs%3E`;
76
- const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(props.background)}' fill='none'/%3E`;
77
- const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(color2)}' fill='none'/%3E`;
75
+ const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(background)}' fill='none'/%3E`;
76
+ const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(realColor)}' fill='none'/%3E`;
78
77
  return {
79
78
  background: `url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E${pa}${path}${path1}%3C/svg%3E")`,
80
79
  width: "100%",
@@ -88,7 +87,6 @@ const CircleProgress = (props) => {
88
87
  React__default.createElement("div", { className: "nut-circleprogress-text" }, children)
89
88
  );
90
89
  };
91
- CircleProgress.defaultProps = defaultProps;
92
90
  CircleProgress.displayName = "NutCircleProgress";
93
91
  export {
94
92
  CircleProgress as C
@@ -1,7 +1,7 @@
1
1
  import React__default, { useCallback } from "react";
2
2
  import classNames from "classnames";
3
3
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
4
- import { a as CollapseContext, C as CollapseItem } from "./collapseitem.taro-D_m4VEdG.js";
4
+ import { a as CollapseContext, C as CollapseItem } from "./collapseitem.taro-BY06WWvK.js";
5
5
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
6
6
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultActiveName: [], accordion: false, expandIcon: null, rotate: 180 });
7
7
  const Collapse = (props) => {
@@ -55,7 +55,6 @@ const Collapse = (props) => {
55
55
  React__default.createElement("div", { className: classNames(classPrefix, className), style }, children)
56
56
  );
57
57
  };
58
- Collapse.defaultProps = defaultProps;
59
58
  Collapse.displayName = "NutCollapse";
60
59
  Collapse.Item = CollapseItem;
61
60
  export {
@@ -117,7 +117,6 @@ const CollapseItem = (props) => {
117
117
  )
118
118
  );
119
119
  };
120
- CollapseItem.defaultProps = defaultProps;
121
120
  CollapseItem.displayName = "NutCollapseItem";
122
121
  export {
123
122
  CollapseItem as C,
@@ -197,7 +197,6 @@ const InternalCountDown = (props, ref) => {
197
197
  }));
198
198
  };
199
199
  const CountDown = React__default.forwardRef(InternalCountDown);
200
- CountDown.defaultProps = defaultProps;
201
200
  CountDown.displayName = "NutCountDown";
202
201
  export {
203
202
  CountDown as C
@@ -1,7 +1,7 @@
1
1
  import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default, { useState, useEffect } from "react";
3
3
  import { View } from "@tarojs/components";
4
- import { P as Picker } from "./picker.taro-CHjN0l-b.js";
4
+ import { P as Picker } from "./picker.taro-CHsDIw4C.js";
5
5
  import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
6
6
  import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
7
7
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
@@ -60,18 +60,18 @@ const Drag = (props) => {
60
60
  } else if (translateY.current > boundaryState.bottom) {
61
61
  translateY.current = boundaryState.bottom;
62
62
  }
63
- const transform = `translate3d(${props.direction !== "y" ? translateX.current : 0}px, ${props.direction !== "x" ? translateY.current : 0}px, 0px)`;
63
+ const transform = `translate3d(${direction !== "y" ? translateX.current : 0}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
64
64
  setCurrStyle({ transform });
65
65
  }
66
66
  };
67
67
  const touchEnd = (e) => {
68
- if (props.direction !== "y" && props.attract && dragRef.current) {
68
+ if (direction !== "y" && attract && dragRef.current) {
69
69
  if (translateX.current < middleLine.current) {
70
70
  translateX.current = boundaryState.left;
71
71
  } else {
72
72
  translateX.current = boundaryState.right;
73
73
  }
74
- const transform = `translate3d(${translateX.current}px, ${props.direction !== "x" ? translateY.current : 0}px, 0px)`;
74
+ const transform = `translate3d(${translateX.current}px, ${direction !== "x" ? translateY.current : 0}px, 0px)`;
75
75
  setCurrStyle({ transform });
76
76
  }
77
77
  };
@@ -96,7 +96,6 @@ const Drag = (props) => {
96
96
  }, children)
97
97
  );
98
98
  };
99
- Drag.defaultProps = defaultProps;
100
99
  Drag.displayName = "NutDrag";
101
100
  export {
102
101
  Drag as D
@@ -245,7 +245,6 @@ const Ellipsis = (props) => {
245
245
  React__default.createElement(View, { className: "nut-ellipsis-copy", ref: symbolContain, id: `symbolContain${refRandomId.current}`, style: { display: "inline" } }, symbolText())
246
246
  );
247
247
  };
248
- Ellipsis.defaultProps = defaultProps;
249
248
  Ellipsis.displayName = "NutEllipsis";
250
249
  export {
251
250
  Ellipsis as E
@@ -53,7 +53,6 @@ const Empty = (props) => {
53
53
  children
54
54
  );
55
55
  };
56
- Empty.defaultProps = defaultProps;
57
56
  Empty.displayName = "NutEmpty";
58
57
  export {
59
58
  Empty as E
@@ -296,6 +296,10 @@ class FormItem extends React__default.Component {
296
296
  };
297
297
  }
298
298
  componentDidMount() {
299
+ const { store = {}, setInitialValues } = this.context.getInternal(SECRET);
300
+ if (this.props.initialValue && this.props.name && !Object.keys(store).includes(this.props.name)) {
301
+ setInitialValues(Object.assign(Object.assign({}, store), { [this.props.name]: this.props.initialValue }), true);
302
+ }
299
303
  const { registerField, registerUpdate } = this.context.getInternal(SECRET);
300
304
  this.cancelRegister = registerField(this);
301
305
  this.eventOff = registerUpdate(this, this.props.shouldUpdate);
@@ -3,7 +3,7 @@ import Taro from "@tarojs/taro";
3
3
  import { Video } from "@tarojs/components";
4
4
  import classNames from "classnames";
5
5
  import { Close } from "@nutui/icons-react-taro";
6
- import { P as Popup } from "./popup.taro-C8cIGEKf.js";
6
+ import { P as Popup } from "./popup.taro-cT6cbAxw.js";
7
7
  import { I as Image } from "./image.taro-ESa7sdbM.js";
8
8
  import InnerSwiper from "./Swiper.js";
9
9
  import { S as SwiperItem } from "./swiperitem.taro-8JXI24f0.js";
@@ -13,16 +13,15 @@ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { image
13
13
  }, onClose: () => {
14
14
  } });
15
15
  const ImagePreview = (props) => {
16
- const { className, style, images, videos, visible, defaultValue, indicatorColor, indicator, autoPlay, closeOnContentClick, closeIcon, closeIconPosition, showMenuByLongpress, onClose } = props;
16
+ const { value, className, style, images, videos, visible, defaultValue, indicatorColor, indicator, autoPlay, closeOnContentClick, closeIcon, closeIconPosition, showMenuByLongpress, onClose, onChange } = Object.assign(Object.assign({}, defaultProps), props);
17
17
  const classPrefix = "nut-imagepreview";
18
18
  const ref = useRef(null);
19
19
  const [innerNo, setInnerNo] = usePropsValue({
20
- value: props.value,
20
+ value,
21
21
  defaultValue,
22
22
  finalValue: defaultValue,
23
23
  onChange: (val) => {
24
- var _a;
25
- (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val);
24
+ onChange === null || onChange === void 0 ? void 0 : onChange(val);
26
25
  }
27
26
  });
28
27
  const [showPop, setShowPop] = useState(visible);
@@ -122,9 +121,8 @@ const ImagePreview = (props) => {
122
121
  return Math.hypot(Math.abs(second.x - first.x), Math.abs(second.y - first.y));
123
122
  };
124
123
  const slideChangeEnd = (page) => {
125
- var _a;
126
124
  setActive(page + 1);
127
- (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, page + 1);
125
+ onChange === null || onChange === void 0 ? void 0 : onChange(page + 1);
128
126
  };
129
127
  const onCloseInner = (e) => {
130
128
  e.stopPropagation();
@@ -135,6 +133,7 @@ const ImagePreview = (props) => {
135
133
  setStore(Object.assign(Object.assign({}, store), { scale: 1 }));
136
134
  };
137
135
  const closeOnImg = (e) => {
136
+ e.stopPropagation();
138
137
  if (closeOnContentClick) {
139
138
  onCloseInner(e);
140
139
  }
@@ -170,7 +169,6 @@ const ImagePreview = (props) => {
170
169
  closeIcon !== false ? React__default.createElement("div", { className: `${classPrefix}-close ${closeIconPosition}`, onClick: onCloseInner }, closeIcon === true ? React__default.createElement(Close, null) : closeIcon) : null
171
170
  );
172
171
  };
173
- ImagePreview.defaultProps = defaultProps;
174
172
  ImagePreview.displayName = "NutImagePreview";
175
173
  export {
176
174
  ImagePreview as I
@@ -21,7 +21,6 @@ const Indicator = (props) => {
21
21
  };
22
22
  return React__default.createElement("div", Object.assign({ className: classNames(classPrefix, classes, className) }, rest), renderElement());
23
23
  };
24
- Indicator.defaultProps = defaultProps;
25
24
  Indicator.displayName = "NutIndicator";
26
25
  export {
27
26
  Indicator as I
@@ -109,7 +109,6 @@ const InfiniteLoading = (props) => {
109
109
  React__default.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? React__default.createElement("div", { className: "nut-infinite-bottom-tips" }, loadingText || locale.infiniteloading.loadText) : !hasMore && React__default.createElement("div", { className: "nut-infinite-bottom-tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
110
110
  );
111
111
  };
112
- InfiniteLoading.defaultProps = defaultProps;
113
112
  InfiniteLoading.displayName = "NutInfiniteLoading";
114
113
  export {
115
114
  InfiniteLoading as I
@@ -30,14 +30,14 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
30
30
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
31
31
  return value.replace(regExp, "");
32
32
  }
33
- const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "text", name: "", placeholder: "", confirmType: "done", align: "left", required: false, disabled: false, readOnly: false, maxLength: 9999, clearable: false, clearIcon: null, formatTrigger: "onChange", autoFocus: false });
33
+ const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "text", name: "", placeholder: void 0, confirmType: "done", align: "left", required: false, disabled: false, readOnly: false, maxLength: 9999, clearable: false, clearIcon: null, formatTrigger: "onChange", autoFocus: false });
34
34
  const Input = forwardRef((props, ref) => {
35
35
  const rtl = useRtl();
36
36
  const { locale } = useConfig();
37
37
  const _a = Object.assign(Object.assign({}, defaultProps), props), { type, name, placeholder, align, disabled, readOnly, maxLength, clearable, clearIcon, formatTrigger, autoFocus, style, className, onChange, onFocus, onBlur, onClear, formatter, onClick, confirmType, defaultValue, value: _value } = _a, rest = __rest(_a, ["type", "name", "placeholder", "align", "disabled", "readOnly", "maxLength", "clearable", "clearIcon", "formatTrigger", "autoFocus", "style", "className", "onChange", "onFocus", "onBlur", "onClear", "formatter", "onClick", "confirmType", "defaultValue", "value"]);
38
38
  const [value, setValue] = usePropsValue({
39
- value: props.value,
40
- defaultValue: props.defaultValue,
39
+ value: _value,
40
+ defaultValue,
41
41
  finalValue: "",
42
42
  onChange
43
43
  });
@@ -101,16 +101,11 @@ const Input = forwardRef((props, ref) => {
101
101
  updateValue(value2, "onChange");
102
102
  };
103
103
  const handleBlur = (event) => {
104
- if (Taro.getEnv() === "WEB") {
105
- const val = event.target.value;
106
- updateValue(val, "onBlur");
107
- setTimeout(() => {
108
- setActive(false);
109
- }, 50);
110
- } else {
111
- updateValue(value, "onBlur");
104
+ const val = Taro.getEnv() === "WEB" ? event.target.value : value;
105
+ updateValue(val, "onBlur");
106
+ setTimeout(() => {
112
107
  setActive(false);
113
- }
108
+ }, 200);
114
109
  };
115
110
  const inputType = (type2) => {
116
111
  if (getEnv() === ENV_TYPE.WEB) {
@@ -139,12 +134,13 @@ const Input = forwardRef((props, ref) => {
139
134
  "left"
140
135
  ) : align === "left" ? "right" : "center"
141
136
  ) : align
142
- }, type: inputType(type), password: type === "password", maxlength: maxLength, placeholder: placeholder || locale.placeholder, disabled: disabled || readOnly, value, focus: autoFocus, confirmType, onBlur: handleBlur, onFocus: handleFocus, onInput: (e) => {
137
+ }, type: inputType(type), password: type === "password", maxlength: maxLength, placeholder: placeholder === void 0 ? locale.placeholder : placeholder, disabled: disabled || readOnly, value, focus: autoFocus, confirmType, onBlur: handleBlur, onFocus: handleFocus, onInput: (e) => {
143
138
  handleInput(e.currentTarget.value);
144
139
  } })),
145
140
  React__default.createElement(View, { style: {
146
141
  display: clearable && !readOnly && active && value.length > 0 ? "flex" : "none",
147
- alignItems: "center"
142
+ alignItems: "center",
143
+ cursor: "pointer"
148
144
  }, onClick: (e) => {
149
145
  e.stopPropagation();
150
146
  if (!disabled) {
@@ -154,7 +150,6 @@ const Input = forwardRef((props, ref) => {
154
150
  } }, clearIcon || React__default.createElement(MaskClose, { className: "nut-input-clear" }))
155
151
  );
156
152
  });
157
- Input.defaultProps = defaultProps;
158
153
  Input.displayName = "NutInput";
159
154
  export {
160
155
  Input as I
@@ -151,7 +151,6 @@ const InputNumber = (props) => {
151
151
  )
152
152
  );
153
153
  };
154
- InputNumber.defaultProps = defaultProps;
155
154
  InputNumber.displayName = "NutInputNumber";
156
155
  export {
157
156
  InputNumber as I
@@ -4,7 +4,6 @@ const Layout = (props) => {
4
4
  Object.assign(Object.assign({}, defaultProps), props);
5
5
  return React__default.createElement("div", { className: "nut-layout" }, "Layout");
6
6
  };
7
- Layout.defaultProps = defaultProps;
8
7
  Layout.displayName = "NutLayout";
9
8
  export {
10
9
  Layout as L
@@ -23,7 +23,6 @@ const Loading = (props) => {
23
23
  children ? React__default.createElement("div", { className: `${classPrefix}-text` }, children) : ""
24
24
  );
25
25
  };
26
- Loading.defaultProps = defaultProps;
27
26
  Loading.displayName = "NutLoading";
28
27
  export {
29
28
  Loading as L
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
2
2
  import React__default, { useRef, useState, useEffect } from "react";
3
3
  import classNames from "classnames";
4
4
  import { ArrowUp, ArrowDown } from "@nutui/icons-react-taro";
5
- import { M as MenuItem } from "./menuitem.taro-DSBI0DQb.js";
5
+ import { M as MenuItem } from "./menuitem.taro-CKjl8_Cl.js";
6
6
  import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
7
7
  const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { activeColor: "", closeOnOverlayClick: true, scrollFixed: false, lockScroll: true, overlay: true, icon: null, onOpen: (index, from) => {
8
8
  }, onClose: (index, from) => {
@@ -107,7 +107,6 @@ const Menu = (props) => {
107
107
  cloneChildren()
108
108
  );
109
109
  };
110
- Menu.defaultProps = defaultProps;
111
110
  Menu.displayName = "NutMenu";
112
111
  Menu.Item = MenuItem;
113
112
  export {