@nutui/nutui-react-taro 3.0.18 → 3.0.19-beta.2

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 (269) hide show
  1. package/CHANGELOG.md +9 -10
  2. package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
  3. package/dist/cjs/hooks/use-ref-state.js +3 -3
  4. package/dist/cjs/hooks/use-touch.js +1 -2
  5. package/dist/cjs/locales/ja-JP.d.ts +3 -0
  6. package/dist/cjs/locales/ja-JP.js +168 -0
  7. package/dist/cjs/packages/actionsheet/style/style.harmony.css +0 -3
  8. package/dist/cjs/packages/address/style/style.harmony.css +0 -3
  9. package/dist/cjs/packages/address/utils.js +3 -3
  10. package/dist/cjs/packages/animatingnumbers/countup.js +2 -0
  11. package/dist/cjs/packages/avatar/avatar.js +3 -1
  12. package/dist/cjs/packages/avatarcropper/avatarcropper.js +22 -30
  13. package/dist/cjs/packages/badge/badge.js +4 -7
  14. package/dist/cjs/packages/badge/style/badge.scss +1 -1
  15. package/dist/cjs/packages/badge/style/style.css +1 -1
  16. package/dist/cjs/packages/badge/style/style.harmony.css +1 -1
  17. package/dist/cjs/packages/badge/style-jmapp/badge.scss +1 -1
  18. package/dist/cjs/packages/badge/style-jmapp/style.css +1 -1
  19. package/dist/cjs/packages/badge/style-jrkf/badge.scss +1 -1
  20. package/dist/cjs/packages/badge/style-jrkf/style.css +1 -1
  21. package/dist/cjs/packages/barrage/barrage.js +14 -24
  22. package/dist/cjs/packages/calendar/style/style.harmony.css +0 -3
  23. package/dist/cjs/packages/calendar/utils.js +8 -8
  24. package/dist/cjs/packages/calendarcard/icon.js +5 -5
  25. package/dist/cjs/packages/calendarcard/utils.js +6 -6
  26. package/dist/cjs/packages/card/style/style.harmony.css +3 -3
  27. package/dist/cjs/packages/cascader/cascader.js +12 -21
  28. package/dist/cjs/packages/cascader/style/style.harmony.css +0 -3
  29. package/dist/cjs/packages/cascader/utils.js +3 -3
  30. package/dist/cjs/packages/col/col.js +16 -11
  31. package/dist/cjs/packages/collapseitem/collapseitem.js +4 -7
  32. package/dist/cjs/packages/configprovider/configprovider.js +7 -7
  33. package/dist/cjs/packages/configprovider/index.js +6 -6
  34. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  35. package/dist/cjs/packages/countdown/countdown.js +1 -2
  36. package/dist/cjs/packages/countdown/style/countdown.scss +1 -1
  37. package/dist/cjs/packages/countdown/style/style.css +1 -1
  38. package/dist/cjs/packages/countdown/style/style.harmony.css +1 -1
  39. package/dist/cjs/packages/countdown/style-jmapp/countdown.scss +1 -1
  40. package/dist/cjs/packages/countdown/style-jmapp/style.css +1 -1
  41. package/dist/cjs/packages/countdown/style-jrkf/countdown.scss +1 -1
  42. package/dist/cjs/packages/countdown/style-jrkf/style.css +1 -1
  43. package/dist/cjs/packages/datepicker/style/style.harmony.css +0 -3
  44. package/dist/cjs/packages/datepicker/utils.js +9 -9
  45. package/dist/cjs/packages/dialog/content.js +3 -3
  46. package/dist/cjs/packages/dialog/dialog.d.ts +2 -37
  47. package/dist/cjs/packages/dialog/dialog.js +8 -11
  48. package/dist/cjs/packages/dialog/style/dialog.scss +9 -1
  49. package/dist/cjs/packages/dialog/style/style.css +8 -1
  50. package/dist/cjs/packages/dialog/style/style.harmony.css +8 -1
  51. package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +9 -1
  52. package/dist/cjs/packages/dialog/style-jmapp/style.css +8 -1
  53. package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +9 -1
  54. package/dist/cjs/packages/dialog/style-jrkf/style.css +8 -1
  55. package/dist/cjs/packages/drag/drag.js +4 -7
  56. package/dist/cjs/packages/elevator/elevator.js +7 -10
  57. package/dist/cjs/packages/ellipsis/ellipsis.js +17 -30
  58. package/dist/cjs/packages/fixednav/style/style.harmony.css +1 -1
  59. package/dist/cjs/packages/form/index.js +0 -2
  60. package/dist/cjs/packages/form/useform.js +50 -57
  61. package/dist/cjs/packages/imagepreview/style/style.harmony.css +0 -3
  62. package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
  63. package/dist/cjs/packages/input/input.js +13 -4
  64. package/dist/cjs/packages/inputnumber/inputnumber.js +16 -28
  65. package/dist/cjs/packages/lottie/lottiemp.js +18 -10
  66. package/dist/cjs/packages/lottie/types.js +0 -2
  67. package/dist/cjs/packages/menuitem/menuitem.js +24 -22
  68. package/dist/cjs/packages/noticebar/noticebar.js +71 -67
  69. package/dist/cjs/packages/notify/notify.js +4 -4
  70. package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +0 -3
  71. package/dist/cjs/packages/nutui.react.build.js +105 -105
  72. package/dist/cjs/packages/nutui.react.js +105 -105
  73. package/dist/cjs/packages/overlay/overlay.js +3 -3
  74. package/dist/cjs/packages/picker/style/style.harmony.css +0 -3
  75. package/dist/cjs/packages/pickerview/pickerroller.js +4 -7
  76. package/dist/cjs/packages/pickerview/pickerview.js +1 -2
  77. package/dist/cjs/packages/pickerview/utils.js +3 -3
  78. package/dist/cjs/packages/popover/popover.js +75 -77
  79. package/dist/cjs/packages/popover/style/style.harmony.css +0 -3
  80. package/dist/cjs/packages/popup/popup.d.ts +1 -1
  81. package/dist/cjs/packages/popup/popup.js +103 -10
  82. package/dist/cjs/packages/popup/style/popup.scss +0 -5
  83. package/dist/cjs/packages/popup/style/style.css +0 -3
  84. package/dist/cjs/packages/popup/style/style.harmony.css +0 -3
  85. package/dist/cjs/packages/popup/style-jmapp/popup.scss +0 -5
  86. package/dist/cjs/packages/popup/style-jmapp/style.css +0 -3
  87. package/dist/cjs/packages/popup/style-jrkf/popup.scss +0 -5
  88. package/dist/cjs/packages/popup/style-jrkf/style.css +0 -3
  89. package/dist/cjs/packages/price/style/price.scss +3 -3
  90. package/dist/cjs/packages/price/style/style.css +3 -3
  91. package/dist/cjs/packages/price/style/style.harmony.css +3 -3
  92. package/dist/cjs/packages/price/style-jmapp/price.scss +3 -3
  93. package/dist/cjs/packages/price/style-jmapp/style.css +3 -3
  94. package/dist/cjs/packages/price/style-jrkf/price.scss +3 -3
  95. package/dist/cjs/packages/price/style-jrkf/style.css +3 -3
  96. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
  97. package/dist/cjs/packages/radio/index.js +0 -2
  98. package/dist/cjs/packages/range/range.js +18 -55
  99. package/dist/cjs/packages/rate/rate.js +8 -5
  100. package/dist/cjs/packages/rate/style/rate.scss +1 -1
  101. package/dist/cjs/packages/rate/style/style.css +1 -1
  102. package/dist/cjs/packages/rate/style/style.harmony.css +1 -1
  103. package/dist/cjs/packages/rate/style-jmapp/rate.scss +1 -1
  104. package/dist/cjs/packages/rate/style-jmapp/style.css +1 -1
  105. package/dist/cjs/packages/rate/style-jrkf/rate.scss +1 -1
  106. package/dist/cjs/packages/rate/style-jrkf/style.css +1 -1
  107. package/dist/cjs/packages/searchbar/searchbar.js +4 -4
  108. package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
  109. package/dist/cjs/packages/shortpassword/style/style.harmony.css +0 -3
  110. package/dist/cjs/packages/signature/signature.js +10 -2
  111. package/dist/cjs/packages/sticky/sticky.js +4 -7
  112. package/dist/cjs/packages/swipe/swipe.js +44 -46
  113. package/dist/cjs/packages/swiper/index.js +0 -1
  114. package/dist/cjs/packages/swiper/swiper.js +1 -2
  115. package/dist/cjs/packages/switch/switch.js +4 -7
  116. package/dist/cjs/packages/tabbar/style/style.harmony.css +1 -1
  117. package/dist/cjs/packages/tabbaritem/style/style.harmony.css +1 -1
  118. package/dist/cjs/packages/textarea/textarea.js +2 -1
  119. package/dist/cjs/packages/timeselect/style/style.harmony.css +0 -3
  120. package/dist/cjs/packages/toast/toast.js +4 -4
  121. package/dist/cjs/packages/tour/style/style.harmony.css +0 -3
  122. package/dist/cjs/packages/uploader/uploader.js +40 -52
  123. package/dist/cjs/packages/virtuallist/utils.js +6 -6
  124. package/dist/cjs/packages/watermark/watermark.js +4 -8
  125. package/dist/cjs/types/spec/address/base.js +0 -2
  126. package/dist/cjs/types/spec/avatar/taro.d.ts +7 -1
  127. package/dist/cjs/types/spec/popup/base.d.ts +5 -0
  128. package/dist/cjs/types/spec/searchbar/h5.d.ts +2 -1
  129. package/dist/cjs/types/spec/searchbar/taro.d.ts +1 -0
  130. package/dist/cjs/utils/date.js +5 -5
  131. package/dist/cjs/utils/event-mocker.js +10 -18
  132. package/dist/cjs/utils/get-rect.js +4 -4
  133. package/dist/cjs/utils/get-scroll-parent.js +3 -3
  134. package/dist/cjs/utils/merge-props.js +3 -3
  135. package/dist/cjs/utils/merge.js +6 -6
  136. package/dist/cjs/utils/raf.js +3 -3
  137. package/dist/cjs/utils/render.js +5 -9
  138. package/dist/cjs/utils/rubberband.js +3 -3
  139. package/dist/cjs/utils/taro/get-rect.js +14 -24
  140. package/dist/cjs/utils/taro/get-system-info.js +4 -4
  141. package/dist/cjs/utils/taro/platform.js +5 -5
  142. package/dist/es/hooks/use-touch.js +1 -1
  143. package/dist/es/locales/ja-JP.d.ts +3 -0
  144. package/dist/es/locales/ja-JP.js +158 -0
  145. package/dist/es/packages/actionsheet/style/style.harmony.css +0 -3
  146. package/dist/es/packages/address/style/style.harmony.css +0 -3
  147. package/dist/es/packages/animatingnumbers/countup.js +2 -0
  148. package/dist/es/packages/avatar/avatar.js +3 -1
  149. package/dist/es/packages/avatarcropper/avatarcropper.js +24 -32
  150. package/dist/es/packages/badge/badge.js +4 -7
  151. package/dist/es/packages/badge/style/badge.scss +1 -1
  152. package/dist/es/packages/badge/style/style.css +1 -1
  153. package/dist/es/packages/badge/style/style.harmony.css +1 -1
  154. package/dist/es/packages/badge/style-jmapp/badge.scss +1 -1
  155. package/dist/es/packages/badge/style-jmapp/style.css +1 -1
  156. package/dist/es/packages/badge/style-jrkf/badge.scss +1 -1
  157. package/dist/es/packages/badge/style-jrkf/style.css +1 -1
  158. package/dist/es/packages/barrage/barrage.js +14 -24
  159. package/dist/es/packages/calendar/style/style.harmony.css +0 -3
  160. package/dist/es/packages/card/style/style.harmony.css +3 -3
  161. package/dist/es/packages/cascader/cascader.js +12 -21
  162. package/dist/es/packages/cascader/style/style.harmony.css +0 -3
  163. package/dist/es/packages/col/col.js +17 -12
  164. package/dist/es/packages/collapseitem/collapseitem.js +4 -7
  165. package/dist/es/packages/configprovider/types.d.ts +1 -1
  166. package/dist/es/packages/countdown/countdown.js +1 -2
  167. package/dist/es/packages/countdown/style/countdown.scss +1 -1
  168. package/dist/es/packages/countdown/style/style.css +1 -1
  169. package/dist/es/packages/countdown/style/style.harmony.css +1 -1
  170. package/dist/es/packages/countdown/style-jmapp/countdown.scss +1 -1
  171. package/dist/es/packages/countdown/style-jmapp/style.css +1 -1
  172. package/dist/es/packages/countdown/style-jrkf/countdown.scss +1 -1
  173. package/dist/es/packages/countdown/style-jrkf/style.css +1 -1
  174. package/dist/es/packages/datepicker/style/style.harmony.css +0 -3
  175. package/dist/es/packages/dialog/dialog.d.ts +2 -37
  176. package/dist/es/packages/dialog/dialog.js +4 -7
  177. package/dist/es/packages/dialog/style/dialog.scss +9 -1
  178. package/dist/es/packages/dialog/style/style.css +8 -1
  179. package/dist/es/packages/dialog/style/style.harmony.css +8 -1
  180. package/dist/es/packages/dialog/style-jmapp/dialog.scss +9 -1
  181. package/dist/es/packages/dialog/style-jmapp/style.css +8 -1
  182. package/dist/es/packages/dialog/style-jrkf/dialog.scss +9 -1
  183. package/dist/es/packages/dialog/style-jrkf/style.css +8 -1
  184. package/dist/es/packages/drag/drag.js +4 -7
  185. package/dist/es/packages/elevator/elevator.js +4 -7
  186. package/dist/es/packages/ellipsis/ellipsis.js +17 -30
  187. package/dist/es/packages/fixednav/style/style.harmony.css +1 -1
  188. package/dist/es/packages/form/index.js +0 -1
  189. package/dist/es/packages/form/useform.js +46 -53
  190. package/dist/es/packages/imagepreview/style/style.harmony.css +0 -3
  191. package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
  192. package/dist/es/packages/input/input.js +13 -4
  193. package/dist/es/packages/inputnumber/inputnumber.js +16 -28
  194. package/dist/es/packages/lottie/lottiemp.js +20 -12
  195. package/dist/es/packages/lottie/types.js +1 -1
  196. package/dist/es/packages/menuitem/menuitem.js +24 -22
  197. package/dist/es/packages/noticebar/noticebar.js +71 -67
  198. package/dist/es/packages/numberkeyboard/style/style.harmony.css +0 -3
  199. package/dist/es/packages/picker/style/style.harmony.css +0 -3
  200. package/dist/es/packages/pickerview/pickerroller.js +4 -7
  201. package/dist/es/packages/pickerview/pickerview.js +1 -2
  202. package/dist/es/packages/popover/popover.js +75 -77
  203. package/dist/es/packages/popover/style/style.harmony.css +0 -3
  204. package/dist/es/packages/popup/popup.d.ts +1 -1
  205. package/dist/es/packages/popup/popup.js +104 -11
  206. package/dist/es/packages/popup/style/popup.scss +0 -5
  207. package/dist/es/packages/popup/style/style.css +0 -3
  208. package/dist/es/packages/popup/style/style.harmony.css +0 -3
  209. package/dist/es/packages/popup/style-jmapp/popup.scss +0 -5
  210. package/dist/es/packages/popup/style-jmapp/style.css +0 -3
  211. package/dist/es/packages/popup/style-jrkf/popup.scss +0 -5
  212. package/dist/es/packages/popup/style-jrkf/style.css +0 -3
  213. package/dist/es/packages/price/style/price.scss +3 -3
  214. package/dist/es/packages/price/style/style.css +3 -3
  215. package/dist/es/packages/price/style/style.harmony.css +3 -3
  216. package/dist/es/packages/price/style-jmapp/price.scss +3 -3
  217. package/dist/es/packages/price/style-jmapp/style.css +3 -3
  218. package/dist/es/packages/price/style-jrkf/price.scss +3 -3
  219. package/dist/es/packages/price/style-jrkf/style.css +3 -3
  220. package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
  221. package/dist/es/packages/radio/index.js +0 -1
  222. package/dist/es/packages/range/range.js +19 -56
  223. package/dist/es/packages/rate/rate.js +9 -6
  224. package/dist/es/packages/rate/style/rate.scss +1 -1
  225. package/dist/es/packages/rate/style/style.css +1 -1
  226. package/dist/es/packages/rate/style/style.harmony.css +1 -1
  227. package/dist/es/packages/rate/style-jmapp/rate.scss +1 -1
  228. package/dist/es/packages/rate/style-jmapp/style.css +1 -1
  229. package/dist/es/packages/rate/style-jrkf/rate.scss +1 -1
  230. package/dist/es/packages/rate/style-jrkf/style.css +1 -1
  231. package/dist/es/packages/searchbar/searchbar.js +4 -4
  232. package/dist/es/packages/shortpassword/style/style.harmony.css +0 -3
  233. package/dist/es/packages/signature/signature.js +10 -2
  234. package/dist/es/packages/sticky/sticky.js +4 -7
  235. package/dist/es/packages/swipe/swipe.js +45 -47
  236. package/dist/es/packages/swiper/index.js +0 -1
  237. package/dist/es/packages/swiper/swiper.js +1 -2
  238. package/dist/es/packages/switch/switch.js +4 -7
  239. package/dist/es/packages/tabbar/style/style.harmony.css +1 -1
  240. package/dist/es/packages/tabbaritem/style/style.harmony.css +1 -1
  241. package/dist/es/packages/textarea/textarea.js +2 -1
  242. package/dist/es/packages/timeselect/style/style.harmony.css +0 -3
  243. package/dist/es/packages/tour/style/style.harmony.css +0 -3
  244. package/dist/es/packages/uploader/uploader.js +40 -52
  245. package/dist/es/packages/watermark/watermark.js +4 -8
  246. package/dist/es/types/spec/address/base.js +1 -1
  247. package/dist/es/types/spec/avatar/taro.d.ts +7 -1
  248. package/dist/es/types/spec/popup/base.d.ts +20 -0
  249. package/dist/es/types/spec/searchbar/h5.d.ts +2 -1
  250. package/dist/es/types/spec/searchbar/taro.d.ts +1 -0
  251. package/dist/es/utils/event-mocker.js +4 -12
  252. package/dist/es/utils/render.js +2 -6
  253. package/dist/es/utils/taro/get-rect.js +10 -20
  254. package/dist/nutui.react.umd.js +850 -927
  255. package/dist/style-jmapp.css +1 -1
  256. package/dist/style-jmapp.scss +34 -34
  257. package/dist/style-jrkf.css +1 -1
  258. package/dist/style-jrkf.scss +30 -30
  259. package/dist/style.css +1 -1
  260. package/dist/style.scss +44 -44
  261. package/dist/styles/jd-font.scss +4 -4
  262. package/dist/styles/theme-dark.scss +90 -56
  263. package/dist/styles/theme-default.scss +94 -60
  264. package/dist/styles/themes/dark.css +1 -1
  265. package/dist/styles/themes/default.css +1 -1
  266. package/dist/styles/variables-jmapp.scss +4 -0
  267. package/dist/styles/variables-jrkf.scss +4 -0
  268. package/dist/styles/variables.scss +4 -0
  269. package/package.json +1 -1
@@ -56,7 +56,7 @@
56
56
  background: var(--nutui-badge-background-disabled-color, var(--nutui-color-text-disabled, #c2c4cc));
57
57
  }
58
58
  .nut-badge-number {
59
- font-family: "JD";
59
+ font-family: "JDZH-Regular";
60
60
  }
61
61
  .nut-badge-one {
62
62
  height: var(--nutui-badge-height, 14px);
@@ -56,7 +56,7 @@
56
56
  background: var(--nutui-badge-background-disabled-color, var(--nutui-color-text-disabled, #c2c4cc));
57
57
  }
58
58
  .nut-badge-number {
59
- font-family: "JD";
59
+ font-family: "JDZH-Regular";
60
60
  }
61
61
  .nut-badge-one {
62
62
  height: var(--nutui-badge-height, 14px);
@@ -133,7 +133,8 @@ var TextArea = /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
133
133
  onFocus: handleFocus,
134
134
  autoHeight: autoSize,
135
135
  maxlength: maxLength,
136
- placeholder: placeholder !== undefined ? placeholder : locale.placeholder
136
+ placeholder: placeholder !== undefined ? placeholder : locale.placeholder,
137
+ showCount: showCount
137
138
  })), showCount && /*#__PURE__*/ _react.default.createElement(_components.View, {
138
139
  className: (0, _classnames.default)("".concat(classPrefix, "-limit"), (0, _define_property._)({}, "".concat(classPrefix, "-limit-disabled"), disabled))
139
140
  }, innerValue.length, "/", maxLength < 0 ? 0 : maxLength)));
@@ -134,9 +134,6 @@
134
134
  .nut-popup-center.nut-popup-round {
135
135
  border-radius: var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px));
136
136
  }
137
- .nut-popup-bottom, .nut-popup-top {
138
- max-height: 87%;
139
- }
140
137
  .nut-popup-bottom {
141
138
  bottom: 0;
142
139
  left: 0;
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Toast: function() {
12
+ get Toast () {
13
13
  return Toast;
14
14
  },
15
- hide: function() {
15
+ get hide () {
16
16
  return hide;
17
17
  },
18
- show: function() {
18
+ get show () {
19
19
  return show;
20
20
  }
21
21
  });
@@ -134,9 +134,6 @@
134
134
  .nut-popup-center.nut-popup-round {
135
135
  border-radius: var(--nutui-popup-border-radius, var(--nutui-radius-xl, 12px));
136
136
  }
137
- .nut-popup-bottom, .nut-popup-top {
138
- max-height: 87%;
139
- }
140
137
  .nut-popup-bottom {
141
138
  bottom: 0;
142
139
  left: 0;
@@ -118,22 +118,24 @@ var InternalUploader = function InternalUploader(props, ref) {
118
118
  var classes = (0, _classnames.default)(className, 'nut-uploader');
119
119
  (0, _react.useImperativeHandle)(ref, function() {
120
120
  return {
121
- submit: /*#__PURE__*/ (0, _async_to_generator._)(function() {
122
- return (0, _ts_generator._)(this, function(_state) {
123
- switch(_state.label){
124
- case 0:
125
- return [
126
- 4,
127
- uploadAction(uploadQueue)
128
- ];
129
- case 1:
130
- _state.sent();
131
- return [
132
- 2
133
- ];
134
- }
135
- });
136
- }),
121
+ submit: function submit() {
122
+ return (0, _async_to_generator._)(function() {
123
+ return (0, _ts_generator._)(this, function(_state) {
124
+ switch(_state.label){
125
+ case 0:
126
+ return [
127
+ 4,
128
+ uploadAction(uploadQueue)
129
+ ];
130
+ case 1:
131
+ _state.sent();
132
+ return [
133
+ 2
134
+ ];
135
+ }
136
+ });
137
+ })();
138
+ },
137
139
  clear: function clear() {
138
140
  clearUploadQueue();
139
141
  }
@@ -180,7 +182,8 @@ var InternalUploader = function InternalUploader(props, ref) {
180
182
  if ([
181
183
  'WEAPP',
182
184
  'JD',
183
- 'WEB'
185
+ 'WEB',
186
+ 'ASCF'
184
187
  ].includes(env) && _taro.chooseMedia) {
185
188
  (0, _taro.chooseMedia)({
186
189
  count: multiple ? maxCount * 1 - fileList.length : 1,
@@ -201,8 +204,8 @@ var InternalUploader = function InternalUploader(props, ref) {
201
204
  });
202
205
  }
203
206
  };
204
- var uploadAction = /*#__PURE__*/ function() {
205
- var _ref = (0, _async_to_generator._)(function(tasks) {
207
+ var uploadAction = function uploadAction(tasks) {
208
+ return (0, _async_to_generator._)(function() {
206
209
  var taskIds, list;
207
210
  return (0, _ts_generator._)(this, function(_state) {
208
211
  switch(_state.label){
@@ -222,8 +225,8 @@ var InternalUploader = function InternalUploader(props, ref) {
222
225
  setFileList(list);
223
226
  return [
224
227
  4,
225
- Promise.all(tasks.map(/*#__PURE__*/ function() {
226
- var _ref = (0, _async_to_generator._)(function(currentTask, index) {
228
+ Promise.all(tasks.map(function(currentTask, index) {
229
+ return (0, _async_to_generator._)(function() {
227
230
  var result, list, e, list1;
228
231
  return (0, _ts_generator._)(this, function(_state) {
229
232
  switch(_state.label){
@@ -270,11 +273,8 @@ var InternalUploader = function InternalUploader(props, ref) {
270
273
  ];
271
274
  }
272
275
  });
273
- });
274
- return function(currentTask, index) {
275
- return _ref.apply(this, arguments);
276
- };
277
- }())).catch(function(errs) {
276
+ })();
277
+ })).catch(function(errs) {
278
278
  return console.error(errs);
279
279
  })
280
280
  ];
@@ -285,14 +285,11 @@ var InternalUploader = function InternalUploader(props, ref) {
285
285
  ];
286
286
  }
287
287
  });
288
- });
289
- return function uploadAction(tasks) {
290
- return _ref.apply(this, arguments);
291
- };
292
- }();
288
+ })();
289
+ };
293
290
  var idCountRef = (0, _react.useRef)(0);
294
- var readFile = /*#__PURE__*/ function() {
295
- var _ref = (0, _async_to_generator._)(function(files) {
291
+ var readFile = function readFile(files) {
292
+ return (0, _async_to_generator._)(function() {
296
293
  var tasks;
297
294
  return (0, _ts_generator._)(this, function(_state) {
298
295
  switch(_state.label){
@@ -350,11 +347,8 @@ var InternalUploader = function InternalUploader(props, ref) {
350
347
  ];
351
348
  }
352
349
  });
353
- });
354
- return function readFile(files) {
355
- return _ref.apply(this, arguments);
356
- };
357
- }();
350
+ })();
351
+ };
358
352
  var filterFiles = function filterFiles(files) {
359
353
  var maximum = maxCount * 1;
360
354
  var maximize = maxFileSize * 1;
@@ -393,8 +387,8 @@ var InternalUploader = function InternalUploader(props, ref) {
393
387
  }
394
388
  });
395
389
  };
396
- var onChangeMedia = /*#__PURE__*/ function() {
397
- var _ref = (0, _async_to_generator._)(function(res) {
390
+ var onChangeMedia = function onChangeMedia(res) {
391
+ return (0, _async_to_generator._)(function() {
398
392
  var tempFiles, _files;
399
393
  return (0, _ts_generator._)(this, function(_state) {
400
394
  // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
@@ -413,13 +407,10 @@ var InternalUploader = function InternalUploader(props, ref) {
413
407
  2
414
408
  ];
415
409
  });
416
- });
417
- return function onChangeMedia(res) {
418
- return _ref.apply(this, arguments);
419
- };
420
- }();
421
- var onChangeImage = /*#__PURE__*/ function() {
422
- var _ref = (0, _async_to_generator._)(function(res) {
410
+ })();
411
+ };
412
+ var onChangeImage = function onChangeImage(res) {
413
+ return (0, _async_to_generator._)(function() {
423
414
  var tempFiles, _files;
424
415
  return (0, _ts_generator._)(this, function(_state) {
425
416
  tempFiles = res.tempFiles;
@@ -437,11 +428,8 @@ var InternalUploader = function InternalUploader(props, ref) {
437
428
  2
438
429
  ];
439
430
  });
440
- });
441
- return function onChangeImage(res) {
442
- return _ref.apply(this, arguments);
443
- };
444
- }();
431
+ })();
432
+ };
445
433
  var handleItemClick = function handleItemClick(file, index) {
446
434
  onFileItemClick === null || onFileItemClick === void 0 ? void 0 : onFileItemClick(file, index);
447
435
  };
@@ -6,23 +6,23 @@ Object.defineProperty(exports, "__esModule", {
6
6
  function _export(target, all) {
7
7
  for(var name in all)Object.defineProperty(target, name, {
8
8
  enumerable: true,
9
- get: all[name]
9
+ get: Object.getOwnPropertyDescriptor(all, name).get
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- binarySearch: function() {
13
+ get binarySearch () {
14
14
  return binarySearch;
15
15
  },
16
- getEndIndex: function() {
16
+ get getEndIndex () {
17
17
  return getEndIndex;
18
18
  },
19
- getListTotalSize: function() {
19
+ get getListTotalSize () {
20
20
  return getListTotalSize;
21
21
  },
22
- initPositinoCache: function() {
22
+ get initPositinoCache () {
23
23
  return initPositinoCache;
24
24
  },
25
- updateItemSize: function() {
25
+ get updateItemSize () {
26
26
  return updateItemSize;
27
27
  }
28
28
  });
@@ -91,20 +91,16 @@ var WaterMark = function WaterMark(props) {
91
91
  setBase64Url(canvas.toDataURL());
92
92
  };
93
93
  } else if (content) {
94
- ctx.textBaseline = 'middle' // 设置或返回在绘制文本时使用的当前文本基线。(正中)
95
- ;
96
- ctx.textAlign = 'center' // 设置或返回文本内容的当前对齐方式。
97
- ;
94
+ ctx.textBaseline = 'middle'; // 设置或返回在绘制文本时使用的当前文本基线。(正中)
95
+ ctx.textAlign = 'center'; // 设置或返回文本内容的当前对齐方式。
98
96
  // 文字绕中间旋转
99
97
  ctx.translate(markWidth / 2, markHeight / 2);
100
98
  ctx.rotate(Math.PI / 180 * Number(rotate));
101
99
  var markSize = Number(fontSize) * ratio;
102
100
  ctx.font = "".concat(fontStyle, " normal ").concat(fontWeight, " ").concat(markSize, "px/").concat(markHeight, "px ").concat(fontFamily);
103
101
  ctx.fillStyle = color;
104
- ctx.fillText(content, startX, startY) // 在画布上绘制"被填充的"文本。
105
- ;
106
- ctx.restore() // 返回之前保存过的路径状态和属性。
107
- ;
102
+ ctx.fillText(content, startX, startY); // 在画布上绘制"被填充的"文本。
103
+ ctx.restore(); // 返回之前保存过的路径状态和属性。
108
104
  setBase64Url(canvas.toDataURL());
109
105
  }
110
106
  } else {
@@ -2,5 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- var _interop_require_default = require("@swc/helpers/_/_interop_require_default");
6
- var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
@@ -1,7 +1,13 @@
1
- import { ITouchEvent } from '@tarojs/components';
1
+ import { ITouchEvent, ImageProps } from '@tarojs/components';
2
2
  import { BaseAvatar, BaseAvatarGroup } from './base';
3
3
  export interface TaroAvatarProps extends Omit<BaseAvatar, 'onClick'> {
4
4
  avatarIndex: number;
5
+ /** 图片裁剪、缩放的模式,同 Taro Image 的 mode 属性 */
6
+ mode: keyof ImageProps.Mode;
7
+ /**
8
+ * @deprecated 请使用 mode 属性代替
9
+ */
10
+ fit: BaseAvatar['fit'];
5
11
  onClick: (e: ITouchEvent) => void;
6
12
  }
7
13
  export interface TaroAvatarGroupProps extends BaseAvatarGroup {
@@ -16,8 +16,13 @@ export interface BasePopup extends BaseProps, BaseOverlay {
16
16
  destroyOnClose: boolean;
17
17
  overlay: boolean;
18
18
  round: boolean;
19
+ resizable: boolean;
20
+ minHeight: string;
19
21
  onOpen: () => void;
20
22
  onClose: () => void;
21
23
  onOverlayClick: (e: any) => boolean | void;
22
24
  onCloseIconClick: (e: any) => boolean | void;
25
+ onTouchMove: (height: number, e: any, direction: 'up' | 'down') => void;
26
+ onTouchStart: (height: number, e: any) => void;
27
+ onTouchEnd: (height: number, e: any) => void;
23
28
  }
@@ -1,4 +1,4 @@
1
- import type { ChangeEvent, FocusEvent, MouseEvent } from 'react';
1
+ import type { ChangeEvent, FocusEvent, MouseEvent, InputHTMLAttributes } from 'react';
2
2
  import { BaseSearchBar } from './base';
3
3
  export interface WebSearchBarProps extends Omit<BaseSearchBar, 'onChange' | 'onFocus' | 'onBlur' | 'onClear' | 'onInputClick'> {
4
4
  onChange?: (value: string, event?: ChangeEvent<HTMLInputElement>) => void;
@@ -6,4 +6,5 @@ export interface WebSearchBarProps extends Omit<BaseSearchBar, 'onChange' | 'onF
6
6
  onBlur?: (value: string, event: FocusEvent<HTMLInputElement>) => void;
7
7
  onClear?: (event: MouseEvent<HTMLDivElement>) => void;
8
8
  onInputClick?: (event: MouseEvent<HTMLInputElement>) => void;
9
+ inputProps?: Partial<InputHTMLAttributes<HTMLInputElement>>;
9
10
  }
@@ -9,5 +9,6 @@ export interface TaroSearchBarProps extends Omit<BaseSearchBar, 'onChange' | 'on
9
9
  onBlur?: (value: string, event: BaseEventOrig<inputValueEventDetail>) => void;
10
10
  onClear?: (event: ITouchEvent) => void;
11
11
  onInputClick?: (event: ITouchEvent) => void;
12
+ inputProps?: Partial<InputProps>;
12
13
  }
13
14
  export {};
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- Utils: function() {
12
+ get Utils () {
13
13
  return Utils;
14
14
  },
15
- getCurrMonthData: function() {
15
+ get getCurrMonthData () {
16
16
  return getCurrMonthData;
17
17
  },
18
- getDaysStatus: function() {
18
+ get getDaysStatus () {
19
19
  return getDaysStatus;
20
20
  },
21
- getPreMonthDates: function() {
21
+ get getPreMonthDates () {
22
22
  return getPreMonthDates;
23
23
  }
24
24
  });
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- simulateTouchMove: function() {
12
+ get simulateTouchMove () {
13
13
  return simulateTouchMove;
14
14
  },
15
- simulateTouchZoom: function() {
15
+ get simulateTouchZoom () {
16
16
  return simulateTouchZoom;
17
17
  },
18
- sleep: function() {
18
+ get sleep () {
19
19
  return sleep;
20
20
  },
21
- trigger: function() {
21
+ get trigger () {
22
22
  return trigger;
23
23
  },
24
- triggerDrag: function() {
24
+ get triggerDrag () {
25
25
  return triggerDrag;
26
26
  }
27
27
  });
@@ -89,10 +89,7 @@ function triggerDrag(el) {
89
89
  trigger(el, 'touchend', x, y);
90
90
  }
91
91
  function simulateTouchMove(element, startX, startY, endX, endY, duration) {
92
- return _simulateTouchMove.apply(this, arguments);
93
- }
94
- function _simulateTouchMove() {
95
- _simulateTouchMove = (0, _async_to_generator._)(function(element, startX, startY, endX, endY, duration) {
92
+ return (0, _async_to_generator._)(function() {
96
93
  var touch, touchList, distanceX, distanceY, startTime, elapsed, progress, currentX, currentY, currentTouch, currentTouchList;
97
94
  return (0, _ts_generator._)(this, function(_state) {
98
95
  switch(_state.label){
@@ -145,14 +142,10 @@ function _simulateTouchMove() {
145
142
  ];
146
143
  }
147
144
  });
148
- });
149
- return _simulateTouchMove.apply(this, arguments);
145
+ })();
150
146
  }
151
147
  function simulateTouchZoom(element, startDistance, endDistance, duration) {
152
- return _simulateTouchZoom.apply(this, arguments);
153
- }
154
- function _simulateTouchZoom() {
155
- _simulateTouchZoom = (0, _async_to_generator._)(function(element, startDistance, endDistance, duration) {
148
+ return (0, _async_to_generator._)(function() {
156
149
  var centerX, centerY, startScale, endScale, startTouches, endTouches, progress, currentScale, currentDistance, currentTouches;
157
150
  return (0, _ts_generator._)(this, function(_state) {
158
151
  switch(_state.label){
@@ -212,6 +205,5 @@ function _simulateTouchZoom() {
212
205
  ];
213
206
  }
214
207
  });
215
- });
216
- return _simulateTouchZoom.apply(this, arguments);
208
+ })();
217
209
  }
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- getRect: function() {
12
+ get getRect () {
13
13
  return getRect;
14
14
  },
15
- inBrowser: function() {
15
+ get inBrowser () {
16
16
  return inBrowser;
17
17
  },
18
- isWindow: function() {
18
+ get isWindow () {
19
19
  return isWindow;
20
20
  }
21
21
  });
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- getAllScrollableParents: function() {
12
+ get getAllScrollableParents () {
13
13
  return getAllScrollableParents;
14
14
  },
15
- getScrollParent: function() {
15
+ get getScrollParent () {
16
16
  return getScrollParent;
17
17
  }
18
18
  });
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- mergeProp: function() {
12
+ get mergeProp () {
13
13
  return mergeProp;
14
14
  },
15
- mergeProps: function() {
15
+ get mergeProps () {
16
16
  return mergeProps;
17
17
  }
18
18
  });
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- clone: function() {
12
+ get clone () {
13
13
  return clone;
14
14
  },
15
- isPlainObject: function() {
15
+ get isPlainObject () {
16
16
  return isPlainObject;
17
17
  },
18
- main: function() {
18
+ get main () {
19
19
  return main;
20
20
  },
21
- merge: function() {
21
+ get merge () {
22
22
  return merge;
23
23
  },
24
- recursive: function() {
24
+ get recursive () {
25
25
  return recursive;
26
26
  }
27
27
  });
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- cancelRaf: function() {
12
+ get cancelRaf () {
13
13
  return cancelRaf;
14
14
  },
15
- default: function() {
15
+ get default () {
16
16
  return _default;
17
17
  }
18
18
  });
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- render: function() {
12
+ get render () {
13
13
  return render;
14
14
  },
15
- unmount: function() {
15
+ get unmount () {
16
16
  return unmount;
17
17
  }
18
18
  });
@@ -64,10 +64,7 @@ function legacyUnmount(container) {
64
64
  return unmountComponentAtNode(container);
65
65
  }
66
66
  function concurrentUnmount(container) {
67
- return _concurrentUnmount.apply(this, arguments);
68
- }
69
- function _concurrentUnmount() {
70
- _concurrentUnmount = (0, _async_to_generator._)(function(container) {
67
+ return (0, _async_to_generator._)(function() {
71
68
  return (0, _ts_generator._)(this, function(_state) {
72
69
  // Delay to unmount to avoid React 18 sync warning
73
70
  return [
@@ -79,8 +76,7 @@ function _concurrentUnmount() {
79
76
  })
80
77
  ];
81
78
  });
82
- });
83
- return _concurrentUnmount.apply(this, arguments);
79
+ })();
84
80
  }
85
81
  function unmount(container) {
86
82
  if (createRoot) {
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- rubberband: function() {
12
+ get rubberband () {
13
13
  return rubberband;
14
14
  },
15
- rubberbandIfOutOfBounds: function() {
15
+ get rubberbandIfOutOfBounds () {
16
16
  return rubberbandIfOutOfBounds;
17
17
  }
18
18
  });