@nutui/nutui-react-taro 1.4.10 → 1.4.11-beta.0

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 (218) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/esm/ActionSheet.js +7 -10
  3. package/dist/esm/Address.js +12 -15
  4. package/dist/esm/Animate.js +3 -6
  5. package/dist/esm/AnimatingNumbers.js +3 -6
  6. package/dist/esm/Audio.js +13 -16
  7. package/dist/esm/Avatar.js +6 -9
  8. package/dist/esm/AvatarGroup.js +6 -9
  9. package/dist/esm/BackTop.js +5 -8
  10. package/dist/esm/Badge.js +5 -8
  11. package/dist/esm/Barrage.js +3 -6
  12. package/dist/esm/Button.js +5 -8
  13. package/dist/esm/Calendar.js +11 -13
  14. package/dist/esm/CalendarItem.js +6 -8
  15. package/dist/esm/Card.js +7 -10
  16. package/dist/esm/Cascader.js +9 -12
  17. package/dist/esm/Cell.js +5 -8
  18. package/dist/esm/CellGroup.js +3 -6
  19. package/dist/esm/Checkbox.js +5 -8
  20. package/dist/esm/CheckboxGroup.js +5 -8
  21. package/dist/esm/CircleProgress.js +4 -7
  22. package/dist/esm/Col.js +3 -6
  23. package/dist/esm/Collapse.js +3 -6
  24. package/dist/esm/CollapseItem.js +5 -8
  25. package/dist/esm/ConfigProvider.js +3 -6
  26. package/dist/esm/CountDown.js +5 -8
  27. package/dist/esm/DatePicker.js +13 -16
  28. package/dist/esm/Dialog.js +8 -11
  29. package/dist/esm/Divider.js +3 -6
  30. package/dist/esm/Drag.js +3 -6
  31. package/dist/esm/Elevator.js +3 -6
  32. package/dist/esm/Ellipsis.js +5 -8
  33. package/dist/esm/Empty.js +5 -8
  34. package/dist/esm/FixedNav.js +8 -11
  35. package/dist/esm/Form.js +8 -11
  36. package/dist/esm/FormItem.js +6 -9
  37. package/dist/esm/Grid.js +6 -9
  38. package/dist/esm/GridItem.js +8 -11
  39. package/dist/esm/Icon.js +3 -6
  40. package/dist/esm/Image.js +6 -9
  41. package/dist/esm/ImagePreview.js +10 -13
  42. package/dist/esm/Indicator.js +3 -6
  43. package/dist/esm/Infiniteloading.js +7 -10
  44. package/dist/esm/Input.js +7 -10
  45. package/dist/esm/InputNumber.js +5 -8
  46. package/dist/esm/Layout.js +2 -5
  47. package/dist/esm/Menu.js +5 -8
  48. package/dist/esm/MenuItem.js +8 -11
  49. package/dist/esm/NavBar.js +5 -8
  50. package/dist/esm/NoticeBar.js +6 -9
  51. package/dist/esm/Notify.js +3 -6
  52. package/dist/esm/NumberKeyboard.js +9 -12
  53. package/dist/esm/Overlay.js +3 -6
  54. package/dist/esm/Pagination.js +5 -8
  55. package/dist/esm/Picker.js +11 -14
  56. package/dist/esm/Popover.js +7 -10
  57. package/dist/esm/Popup.js +6 -9
  58. package/dist/esm/Price.js +3 -6
  59. package/dist/esm/Progress.js +5 -8
  60. package/dist/esm/PullToRefresh.js +5 -8
  61. package/dist/esm/Radio.js +4 -8
  62. package/dist/esm/RadioGroup.js +5 -8
  63. package/dist/esm/Range.js +9 -12
  64. package/dist/esm/Rate.js +5 -8
  65. package/dist/esm/Row.js +3 -6
  66. package/dist/esm/SearchBar.js +7 -10
  67. package/dist/esm/ShortPassword.js +9 -12
  68. package/dist/esm/SideNavBar.js +10 -13
  69. package/dist/esm/SideNavBarItem.js +2 -5
  70. package/dist/esm/Signature.js +8 -11
  71. package/dist/esm/Skeleton.js +7 -10
  72. package/dist/esm/Step.js +6 -9
  73. package/dist/esm/Steps.js +4 -7
  74. package/dist/esm/Sticky.js +5 -8
  75. package/dist/esm/SubSideNavBar.js +3 -6
  76. package/dist/esm/Swipe.js +5 -8
  77. package/dist/esm/Swiper.js +4 -7
  78. package/dist/esm/SwiperItem.js +4 -7
  79. package/dist/esm/Switch.js +3 -6
  80. package/dist/esm/TabPane.js +3 -6
  81. package/dist/esm/Tabbar.js +3 -6
  82. package/dist/esm/TabbarItem.js +5 -8
  83. package/dist/esm/Table.js +7 -10
  84. package/dist/esm/Tabs.js +6 -9
  85. package/dist/esm/Tag.js +5 -8
  86. package/dist/esm/TextArea.js +5 -8
  87. package/dist/esm/TimeDetail.js +5 -8
  88. package/dist/esm/TimePannel.js +5 -8
  89. package/dist/esm/TimeSelect.js +11 -14
  90. package/dist/esm/Toast.js +4 -7
  91. package/dist/esm/TrendArrow.js +4 -7
  92. package/dist/esm/Uploader.js +10 -13
  93. package/dist/esm/Video.js +3 -6
  94. package/dist/esm/VirtualList.js +4 -7
  95. package/dist/esm/WaterMark.js +5 -8
  96. package/dist/esm/{actionsheet.taro-e6a51446.js → actionsheet.taro-c5ccaf4e.js} +2 -2
  97. package/dist/esm/{address.taro-e11e3105.js → address.taro-f977bad0.js} +8 -8
  98. package/dist/esm/{animate.taro-fb7986d6.js → animate.taro-b0e83dd5.js} +1 -1
  99. package/dist/esm/{animatingnumbers.taro-03e5d61d.js → animatingnumbers.taro-6307a3a5.js} +1 -1
  100. package/dist/esm/{audio.taro-9fb6a435.js → audio.taro-c2cdbe18.js} +6 -6
  101. package/dist/esm/{avatar.taro-3676f38f.js → avatar.taro-c17c3d15.js} +4 -4
  102. package/dist/esm/{avatargroup-1324186b.js → avatargroup-1d900174.js} +3 -3
  103. package/dist/esm/{backtop.taro-66394a36.js → backtop.taro-e53236c7.js} +2 -2
  104. package/dist/esm/{badge.taro-a4e59c11.js → badge.taro-a2e7dd5a.js} +3 -3
  105. package/dist/esm/{barrage.taro-80df08d3.js → barrage.taro-5dbab093.js} +1 -1
  106. package/dist/esm/{button.taro-43fa4248.js → button.taro-dc4795a3.js} +2 -2
  107. package/dist/esm/{calendar.taro-a8b7c1aa.js → calendar.taro-f5d03548.js} +9 -5
  108. package/dist/esm/{calendaritem.taro-a850666e.js → calendaritem.taro-971a7af8.js} +19 -8
  109. package/dist/esm/{card.taro-e2a20807.js → card.taro-4fb6bc4e.js} +3 -3
  110. package/dist/esm/{cascader.taro-a824b371.js → cascader.taro-a2ee549c.js} +5 -5
  111. package/dist/esm/{cell.taro-a10a74d3.js → cell.taro-e877cf12.js} +3 -3
  112. package/dist/esm/{cellgroup.taro-abe501bc.js → cellgroup.taro-e094471c.js} +1 -1
  113. package/dist/esm/{checkbox.taro-6120e3e3.js → checkbox.taro-6aab93c3.js} +3 -3
  114. package/dist/esm/{circleprogress.taro-79854448.js → circleprogress.taro-897ea24b.js} +2 -2
  115. package/dist/esm/{col.taro-53eed3cc.js → col.taro-9e4c5cc0.js} +1 -1
  116. package/dist/esm/{collapse.taro-1a9e4ba2.js → collapse.taro-c903a060.js} +1 -1
  117. package/dist/esm/{collapseitem-4d0bc55d.js → collapseitem-2e864527.js} +3 -3
  118. package/dist/esm/{configprovider-3a2a28d1.js → configprovider-5eea4f5d.js} +1 -1
  119. package/dist/esm/{configprovider.taro-d6678d2e.js → configprovider.taro-26882dd2.js} +1 -1
  120. package/dist/esm/{countdown.taro-b6efdd7c.js → countdown.taro-9e40de9c.js} +2 -2
  121. package/dist/esm/{datepicker.taro-e9d167bf.js → datepicker.taro-d9252862.js} +5 -2
  122. package/dist/esm/{dialog.taro-6daca6de.js → dialog.taro-7608bd26.js} +2 -2
  123. package/dist/esm/{divider.taro-26d1d8b4.js → divider.taro-5236fe6a.js} +1 -1
  124. package/dist/esm/{drag.taro-79bb8744.js → drag.taro-703560c4.js} +1 -1
  125. package/dist/esm/{elevator.taro-c4ed99e4.js → elevator.taro-1d749ab0.js} +1 -1
  126. package/dist/esm/{ellipsis.taro-93cef884.js → ellipsis.taro-660e2ee9.js} +8 -8
  127. package/dist/esm/{empty.taro-b28fbcea.js → empty.taro-7bd813f9.js} +2 -2
  128. package/dist/esm/{fixednav.taro-c46dd370.js → fixednav.taro-84930e08.js} +5 -5
  129. package/dist/esm/{form.taro-0c8e7a39.js → form.taro-ce791a58.js} +3 -3
  130. package/dist/esm/{formitem.taro-190a3326.js → formitem.taro-f2ed02d4.js} +2 -2
  131. package/dist/esm/{grid.taro-2dcf3c67.js → grid.taro-9410ff69.js} +3 -3
  132. package/dist/esm/{griditem.taro-380ad42c.js → griditem.taro-26863577.js} +5 -5
  133. package/dist/esm/{icon-296a1bec.js → icon-2242973e.js} +1 -1
  134. package/dist/esm/{icon.taro-296a1bec.js → icon.taro-c9254a81.js} +1 -1
  135. package/dist/esm/{image.taro-0b9e8567.js → image.taro-1d867416.js} +2 -2
  136. package/dist/esm/{imagepreview.taro-c50bb0a3.js → imagepreview.taro-3a5722e8.js} +3 -3
  137. package/dist/esm/{radio.taro-a6eff96c.js → index.taro-84346556.js} +9 -7
  138. package/dist/esm/{indicator.taro-cba8b010.js → indicator.taro-25682172.js} +1 -1
  139. package/dist/esm/{infiniteloading.taro-1dcc35b4.js → infiniteloading.taro-8ead43b0.js} +4 -4
  140. package/dist/esm/{input.taro-249e6570.js → input.taro-fe0248b1.js} +3 -3
  141. package/dist/esm/{inputnumber.taro-7c2d7e85.js → inputnumber.taro-94c75663.js} +3 -3
  142. package/dist/esm/{menu.taro-7e4038a1.js → menu.taro-e5b84501.js} +2 -2
  143. package/dist/esm/{menuitem.taro-259a1236.js → menuitem.taro-f2129be6.js} +4 -4
  144. package/dist/esm/{navbar.taro-777c4705.js → navbar.taro-70514adf.js} +3 -3
  145. package/dist/esm/{noticebar.taro-4a23cdee.js → noticebar.taro-22486646.js} +4 -4
  146. package/dist/esm/{notify.taro-c6cbc0f3.js → notify.taro-3a424269.js} +3 -3
  147. package/dist/esm/{numberkeyboard.taro-b0dba5a8.js → numberkeyboard.taro-78224b3a.js} +3 -3
  148. package/dist/esm/nutui-react.es.js +107 -107
  149. package/dist/esm/{overlay.taro-21e87fb1.js → overlay.taro-1e74a71d.js} +1 -1
  150. package/dist/esm/{pagination.taro-2a8806b2.js → pagination.taro-bb490de9.js} +2 -2
  151. package/dist/esm/{picker.taro-f2f5950d.js → picker.taro-4298ce4e.js} +5 -5
  152. package/dist/esm/{popover.taro-ad5e76ea.js → popover.taro-f144cd02.js} +4 -4
  153. package/dist/esm/{popup.taro-01676bff.js → popup.taro-6e81162a.js} +4 -4
  154. package/dist/esm/{price.taro-776ed16e.js → price.taro-8801462e.js} +1 -1
  155. package/dist/esm/{progress.taro-f0ce38e9.js → progress.taro-773482ed.js} +3 -3
  156. package/dist/esm/{pulltorefresh.taro-b1f56062.js → pulltorefresh.taro-2b50fdf3.js} +2 -2
  157. package/dist/esm/{range.taro-3a2b74b5.js → range.taro-b628f1ed.js} +4 -4
  158. package/dist/esm/{rate.taro-6cdf03bd.js → rate.taro-f18381f3.js} +3 -3
  159. package/dist/esm/{row.taro-f64d4a13.js → row.taro-4e697aa2.js} +1 -1
  160. package/dist/esm/{searchbar.taro-c7bbc67a.js → searchbar.taro-bc3e87bc.js} +11 -8
  161. package/dist/esm/{shortpassword.taro-7ee92cba.js → shortpassword.taro-7dfb72fb.js} +5 -6
  162. package/dist/esm/{sidenavbar.taro-44ee1611.js → sidenavbar.taro-e03a5287.js} +3 -3
  163. package/dist/esm/{signature.taro-ae04be18.js → signature.taro-45d1dde3.js} +3 -3
  164. package/dist/esm/{skeleton.taro-76faf63f.js → skeleton.taro-38e2fca2.js} +2 -2
  165. package/dist/esm/{step.taro-b7903e8c.js → step.taro-891c020b.js} +4 -4
  166. package/dist/esm/{steps.taro-c82d2252.js → steps.taro-acf205a0.js} +2 -2
  167. package/dist/esm/{sticky.taro-d5b6eabe.js → sticky.taro-b15d1173.js} +3 -3
  168. package/dist/esm/{subsidenavbar.taro-69cb9752.js → subsidenavbar.taro-f46b4c73.js} +1 -1
  169. package/dist/esm/{swipe.taro-ea35f07f.js → swipe.taro-9375a9a1.js} +3 -3
  170. package/dist/esm/{swiper.taro-7a94e211.js → swiper.taro-8164df5b.js} +2 -2
  171. package/dist/esm/{swiperitem-c9e3d0d5.js → swiperitem-86a3578a.js} +2 -2
  172. package/dist/esm/{switch.taro-34ca8228.js → switch.taro-bae2dca0.js} +1 -1
  173. package/dist/esm/{tabbar.taro-9acfc2fa.js → tabbar.taro-17d898d9.js} +1 -1
  174. package/dist/esm/{tabbaritem.taro-bf517487.js → tabbaritem.taro-3643f585.js} +3 -3
  175. package/dist/esm/{table.taro-bc980d82.js → table.taro-6119a948.js} +8 -7
  176. package/dist/esm/{tabpane.taro-4ca340ef.js → tabpane.taro-9512e308.js} +1 -1
  177. package/dist/esm/{tabs.taro-07e4adce.js → tabs.taro-95edd45d.js} +4 -4
  178. package/dist/esm/{tag.taro-ad9f6d6a.js → tag.taro-64f37bd9.js} +2 -2
  179. package/dist/esm/{textarea.taro-321e089e.js → textarea.taro-2a12788b.js} +24 -6
  180. package/dist/esm/{timedetail.taro-204e2975.js → timedetail.taro-c5f564fd.js} +2 -2
  181. package/dist/esm/{timepannel.taro-032285fe.js → timepannel.taro-29f9dd86.js} +2 -2
  182. package/dist/esm/{timeselect.taro-654791eb.js → timeselect.taro-f276b0a9.js} +5 -5
  183. package/dist/esm/{toast.taro-d6c14811.js → toast.taro-0f972a92.js} +2 -2
  184. package/dist/esm/{trendarrow.taro-b8c5ccd9.js → trendarrow.taro-d79fc8e2.js} +2 -2
  185. package/dist/esm/{uploader.taro-64f45a90.js → uploader.taro-77396b5d.js} +7 -7
  186. package/dist/esm/{video-f1be8a91.js → video-8a3518c5.js} +1 -1
  187. package/dist/esm/{virtuallist.taro-a4ab5995.js → virtuallist.taro-1688484f.js} +1 -1
  188. package/dist/esm/{watermark.taro-8e8cfdd6.js → watermark.taro-a948c735.js} +2 -2
  189. package/dist/locales/base.js +1 -1
  190. package/dist/locales/en-US.js +1 -1
  191. package/dist/locales/id-ID.js +1 -1
  192. package/dist/locales/zh-CN.js +1 -1
  193. package/dist/locales/zh-TW.js +1 -1
  194. package/dist/locales/zh-UG.js +1 -1
  195. package/dist/nutui.react.mjs +65 -24
  196. package/dist/nutui.react.umd.js +65 -24
  197. package/dist/packages/radiogroup/radiogroup.scss +1 -0
  198. package/dist/packages/step/step.scss +2 -1
  199. package/dist/style.css +1 -1
  200. package/dist/style.mjs +1 -1
  201. package/dist/styles/variables.scss +1 -1
  202. package/dist/types/index.d.ts +4 -1
  203. package/package.json +1 -1
  204. /package/dist/esm/{AvatarContext-c96afdcc.js → AvatarContext-7153ad2b.js} +0 -0
  205. /package/dist/esm/{UserContext-0aac9a82.js → UserContext-68f62e66.js} +0 -0
  206. /package/dist/esm/{UserContext-e402e1a6.js → UserContext-b4181162.js} +0 -0
  207. /package/dist/esm/{UserContext-e8176108.js → UserContext-be8097d2.js} +0 -0
  208. /package/dist/esm/{bem-350c1702.js → bem-893ad28d.js} +0 -0
  209. /package/dist/esm/{get-scroll-parent-5d508382.js → get-scroll-parent-3dcd3f53.js} +0 -0
  210. /package/dist/esm/{grid.taro.context-c2bbfb4f.js → grid.taro.context-39636af9.js} +0 -0
  211. /package/dist/esm/{index-5bcb0ff8.js → index-a90733f9.js} +0 -0
  212. /package/dist/esm/{layout.taro-9046d093.js → layout.taro-358f014f.js} +0 -0
  213. /package/dist/esm/{offsetContext-c2a746fa.js → offsetContext-bfb02c25.js} +0 -0
  214. /package/dist/esm/{sidenavbaritem.taro-5a7965d0.js → sidenavbaritem.taro-fee11d26.js} +0 -0
  215. /package/dist/esm/{typings-b9828dba.js → typings-1c5f2628.js} +0 -0
  216. /package/dist/esm/{useClientRect-1f8ed1fe.js → useClientRect-4506e52f.js} +0 -0
  217. /package/dist/esm/{useTouch-db24bb5c.js → useTouch-a2ea68c6.js} +0 -0
  218. /package/dist/esm/{zh-CN-aff7a0be.js → zh-CN-dfc384d0.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState } from 'react';
2
- import { u as useConfig } from './configprovider.taro-d6678d2e.js';
3
- import { P as Popup } from './popup.taro-01676bff.js';
4
- import { O as OffsetContext } from './offsetContext-c2a746fa.js';
2
+ import { u as useConfig } from './configprovider.taro-26882dd2.js';
3
+ import { P as Popup } from './popup.taro-6e81162a.js';
4
+ import { O as OffsetContext } from './offsetContext-bfb02c25.js';
5
5
 
6
6
  const defaultProps = {
7
7
  showhead: false,
@@ -1,8 +1,8 @@
1
1
  import React__default, { useRef, useState, useEffect } from 'react';
2
2
  import { getEnv, nextTick, createSelectorQuery, canvasToTempFilePath } from '@tarojs/taro';
3
- import { B as Button } from './button.taro-43fa4248.js';
4
- import { c as cn } from './bem-350c1702.js';
5
- import { u as useConfig } from './configprovider.taro-d6678d2e.js';
3
+ import { B as Button } from './button.taro-dc4795a3.js';
4
+ import { c as cn } from './bem-893ad28d.js';
5
+ import { u as useConfig } from './configprovider.taro-26882dd2.js';
6
6
 
7
7
  /* eslint-disable react/no-unknown-property */
8
8
  const defaultProps = {
@@ -1,7 +1,7 @@
1
1
  import React__default from 'react';
2
2
  import classNames from 'classnames';
3
- import { A as Avatar } from './avatar.taro-3676f38f.js';
4
- import { c as cn } from './bem-350c1702.js';
3
+ import { A as Avatar } from './avatar.taro-c17c3d15.js';
4
+ import { c as cn } from './bem-893ad28d.js';
5
5
 
6
6
  const defaultProps = {
7
7
  width: '100px',
@@ -1,9 +1,9 @@
1
1
  import React__default, { useContext } from 'react';
2
2
  import classNames from 'classnames';
3
- import { D as DataContext } from './UserContext-e402e1a6.js';
4
- import { c as cn } from './bem-350c1702.js';
5
- import { I as Icon } from './icon.taro-296a1bec.js';
6
- import { C as ComponentDefaults } from './typings-b9828dba.js';
3
+ import { D as DataContext } from './UserContext-68f62e66.js';
4
+ import { c as cn } from './bem-893ad28d.js';
5
+ import { I as Icon } from './icon.taro-c9254a81.js';
6
+ import { C as ComponentDefaults } from './typings-1c5f2628.js';
7
7
 
8
8
  const defaultProps = {
9
9
  ...ComponentDefaults,
@@ -1,7 +1,7 @@
1
1
  import React__default from 'react';
2
2
  import classNames from 'classnames';
3
- import { D as DataContext } from './UserContext-e402e1a6.js';
4
- import { c as cn } from './bem-350c1702.js';
3
+ import { D as DataContext } from './UserContext-68f62e66.js';
4
+ import { c as cn } from './bem-893ad28d.js';
5
5
 
6
6
  const defaultProps = {
7
7
  current: 0,
@@ -1,9 +1,9 @@
1
1
  import React__default, { useRef, useEffect, useState, useMemo, useCallback } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import { getEnv, usePageScroll, getSystemInfoSync } from '@tarojs/taro';
4
- import { g as getRectByTaro } from './useClientRect-1f8ed1fe.js';
5
- import { g as getScrollParent } from './get-scroll-parent-5d508382.js';
6
- import { c as cn } from './bem-350c1702.js';
4
+ import { g as getRectByTaro } from './useClientRect-4506e52f.js';
5
+ import { g as getScrollParent } from './get-scroll-parent-3dcd3f53.js';
6
+ import { c as cn } from './bem-893ad28d.js';
7
7
 
8
8
  function useWatch(dep, callback, config = { immediate: false }) {
9
9
  const { immediate } = config;
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useContext, useRef, useCallback, useEffect } from 'react';
2
- import { O as OffsetContext } from './offsetContext-c2a746fa.js';
2
+ import { O as OffsetContext } from './offsetContext-bfb02c25.js';
3
3
 
4
4
  const defaultProps = {
5
5
  open: true,
@@ -1,9 +1,9 @@
1
1
  import React__default, { forwardRef, useRef, useState, useMemo, useImperativeHandle, useEffect } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import { useReady, nextTick } from '@tarojs/taro';
4
- import { c as cn } from './bem-350c1702.js';
5
- import { u as useTouch } from './useTouch-db24bb5c.js';
6
- import { g as getRectByTaro } from './useClientRect-1f8ed1fe.js';
4
+ import { c as cn } from './bem-893ad28d.js';
5
+ import { u as useTouch } from './useTouch-a2ea68c6.js';
6
+ import { g as getRectByTaro } from './useClientRect-4506e52f.js';
7
7
 
8
8
  function preventDefault(event, isStopPropagation) {
9
9
  if (typeof event.cancelable !== 'boolean' || event.cancelable) {
@@ -1,8 +1,8 @@
1
1
  import React__default, { useRef, useState, useMemo, useEffect } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import { nextTick, useReady, createSelectorQuery } from '@tarojs/taro';
4
- import { D as DataContext } from './UserContext-e8176108.js';
5
- import { c as cn } from './bem-350c1702.js';
4
+ import { D as DataContext } from './UserContext-b4181162.js';
5
+ import { c as cn } from './bem-893ad28d.js';
6
6
 
7
7
  const defaultProps = {
8
8
  width: typeof window === 'object' ? window.innerWidth : 375,
@@ -1,7 +1,7 @@
1
1
  import React__default, { useContext } from 'react';
2
2
  import classNames from 'classnames';
3
- import { D as DataContext } from './UserContext-e8176108.js';
4
- import { c as cn } from './bem-350c1702.js';
3
+ import { D as DataContext } from './UserContext-b4181162.js';
4
+ import { c as cn } from './bem-893ad28d.js';
5
5
 
6
6
  const defaultProps = {
7
7
  direction: 'horizontal',
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
- import { c as cn } from './bem-350c1702.js';
2
+ import { c as cn } from './bem-893ad28d.js';
3
3
 
4
4
  const defaultProps = {
5
5
  isAsync: false,
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
- import { c as cn } from './bem-350c1702.js';
2
+ import { c as cn } from './bem-893ad28d.js';
3
3
 
4
4
  const defaultProps = {
5
5
  visible: 0,
@@ -1,8 +1,8 @@
1
1
  import React__default, { useEffect } from 'react';
2
2
  import Taro from '@tarojs/taro';
3
- import { c as cn } from './bem-350c1702.js';
4
- import { I as Icon } from './icon.taro-296a1bec.js';
5
- import { C as ComponentDefaults } from './typings-b9828dba.js';
3
+ import { c as cn } from './bem-893ad28d.js';
4
+ import { I as Icon } from './icon.taro-c9254a81.js';
5
+ import { C as ComponentDefaults } from './typings-1c5f2628.js';
6
6
 
7
7
  const defaultProps = {
8
8
  ...ComponentDefaults,
@@ -1,9 +1,9 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
2
  import classNames from 'classnames';
3
- import { c as cn } from './bem-350c1702.js';
4
- import { I as Icon } from './icon.taro-296a1bec.js';
5
- import { u as useConfig } from './configprovider.taro-d6678d2e.js';
6
- import { C as ComponentDefaults } from './typings-b9828dba.js';
3
+ import { c as cn } from './bem-893ad28d.js';
4
+ import { I as Icon } from './icon.taro-c9254a81.js';
5
+ import { u as useConfig } from './configprovider.taro-26882dd2.js';
6
+ import { C as ComponentDefaults } from './typings-1c5f2628.js';
7
7
 
8
8
  const defaultProps = {
9
9
  ...ComponentDefaults,
@@ -14,11 +14,12 @@ const defaultProps = {
14
14
  bordered: true,
15
15
  striped: false,
16
16
  noData: '无数据',
17
+ showHeader: true,
17
18
  };
18
19
  const Table = (props) => {
19
20
  const { locale } = useConfig();
20
21
  defaultProps.noData = locale.noData;
21
- const { children, className, style, columns, data, bordered, summary, striped, noData, onSorter, iconClassPrefix, iconFontClassName, ...rest } = {
22
+ const { children, className, style, columns, data, bordered, summary, striped, noData, onSorter, iconClassPrefix, iconFontClassName, showHeader, ...rest } = {
22
23
  ...defaultProps,
23
24
  ...props,
24
25
  };
@@ -77,8 +78,8 @@ const Table = (props) => {
77
78
  React__default.createElement("div", { className: classNames('nut-table__main', {
78
79
  'nut-table__main--striped': striped,
79
80
  }) },
80
- React__default.createElement("div", { className: "nut-table__main__head" },
81
- React__default.createElement("div", { className: "nut-table__main__head__tr" }, renderHeadCells())),
81
+ showHeader && (React__default.createElement("div", { className: "nut-table__main__head" },
82
+ React__default.createElement("div", { className: "nut-table__main__head__tr" }, renderHeadCells()))),
82
83
  React__default.createElement("div", { className: "nut-table__main__body" }, renderBoyTrs())),
83
84
  summary && (React__default.createElement("div", { className: "nut-table__summary" },
84
85
  React__default.createElement("span", { className: "nut-table__summary__text" }, summary))),
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import classNames from 'classnames';
3
- import { c as cn } from './bem-350c1702.js';
3
+ import { c as cn } from './bem-893ad28d.js';
4
4
 
5
5
  const defaultProps = {
6
6
  title: '',
@@ -1,9 +1,9 @@
1
1
  import React__default, { useState, useRef, useEffect } from 'react';
2
2
  import classNames from 'classnames';
3
- import { c as cn } from './bem-350c1702.js';
4
- import { I as Icon } from './icon.taro-296a1bec.js';
5
- import { C as ComponentDefaults } from './typings-b9828dba.js';
6
- import { T as TabPane } from './tabpane.taro-4ca340ef.js';
3
+ import { c as cn } from './bem-893ad28d.js';
4
+ import { I as Icon } from './icon.taro-c9254a81.js';
5
+ import { C as ComponentDefaults } from './typings-1c5f2628.js';
6
+ import { T as TabPane } from './tabpane.taro-9512e308.js';
7
7
 
8
8
  class Title {
9
9
  title = '';
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
2
  import classNames from 'classnames';
3
- import { I as Icon } from './icon.taro-296a1bec.js';
4
- import { C as ComponentDefaults } from './typings-b9828dba.js';
3
+ import { I as Icon } from './icon.taro-c9254a81.js';
4
+ import { C as ComponentDefaults } from './typings-1c5f2628.js';
5
5
 
6
6
  const defaultProps = {
7
7
  ...ComponentDefaults,
@@ -1,6 +1,6 @@
1
- import React__default, { useState, useEffect } from 'react';
2
- import { u as useConfig } from './configprovider.taro-d6678d2e.js';
3
- import { c as cn } from './bem-350c1702.js';
1
+ import React__default, { useState, useRef, useEffect } from 'react';
2
+ import { u as useConfig } from './configprovider.taro-26882dd2.js';
3
+ import { c as cn } from './bem-893ad28d.js';
4
4
 
5
5
  const defaultProps = {
6
6
  defaultValue: '',
@@ -18,6 +18,9 @@ const TextArea = (props) => {
18
18
  const { className, defaultValue, textAlign, limitshow, maxlength, rows, placeholder, readonly, disabled, autosize, style, onChange, onBlur, onFocus, } = { ...defaultProps, ...props };
19
19
  const textareaBem = cn('textarea');
20
20
  const [inputValue, SetInputValue] = useState('');
21
+ const compositingRef = useRef(false);
22
+ const [, updateState] = React__default.useState({});
23
+ const forceUpdate = React__default.useCallback(() => updateState({}), []);
21
24
  useEffect(() => {
22
25
  let initValue = defaultValue;
23
26
  if (initValue && maxlength && [...initValue].length > Number(maxlength)) {
@@ -31,10 +34,17 @@ const TextArea = (props) => {
31
34
  if (readonly)
32
35
  return;
33
36
  const text = event.detail ? event.detail : event.target;
34
- if (maxlength && [...text.value].length > Number(maxlength)) {
37
+ if (maxlength &&
38
+ [...text.value].length > Number(maxlength) &&
39
+ !compositingRef.current) {
35
40
  text.value = text.value.substring(0, Number(maxlength));
36
41
  }
37
- SetInputValue(text.value);
42
+ if (text.value === inputValue) {
43
+ forceUpdate();
44
+ }
45
+ else {
46
+ SetInputValue(text.value);
47
+ }
38
48
  onChange && onChange(text.value, event);
39
49
  };
40
50
  const textFocus = (event) => {
@@ -53,6 +63,12 @@ const TextArea = (props) => {
53
63
  onChange && onChange(text.value, event);
54
64
  onBlur && onBlur(event);
55
65
  };
66
+ const startComposing = () => {
67
+ compositingRef.current = true;
68
+ };
69
+ const endComposing = () => {
70
+ compositingRef.current = false;
71
+ };
56
72
  return (React__default.createElement("div", { className: `${textareaBem()} ${disabled ? textareaBem('disabled') : ''} ${className || ''}` },
57
73
  React__default.createElement("textarea", { className: textareaBem('textarea'), style: {
58
74
  textAlign,
@@ -66,7 +82,9 @@ const TextArea = (props) => {
66
82
  textBlur(e);
67
83
  }, onFocus: (e) => {
68
84
  textFocus(e);
69
- }, rows: rows, maxLength: maxlength < 0 ? 0 : maxlength, placeholder: placeholder || locale.placeholder }),
85
+ }, onCompositionEnd: (e) => endComposing(), onCompositionStart: (e) => startComposing(), rows: rows,
86
+ // maxLength={maxlength < 0 ? 0 : maxlength}
87
+ placeholder: placeholder || locale.placeholder }),
70
88
  limitshow ? (React__default.createElement("div", { className: textareaBem('limit') },
71
89
  [...inputValue].length,
72
90
  "/",
@@ -1,6 +1,6 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
- import { c as cn } from './bem-350c1702.js';
3
- import { u as useConfig } from './configprovider.taro-d6678d2e.js';
2
+ import { c as cn } from './bem-893ad28d.js';
3
+ import { u as useConfig } from './configprovider.taro-26882dd2.js';
4
4
 
5
5
  const defaultProps = {
6
6
  className: '',
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
- import { c as cn } from './bem-350c1702.js';
3
- import { u as useConfig } from './configprovider.taro-d6678d2e.js';
2
+ import { c as cn } from './bem-893ad28d.js';
3
+ import { u as useConfig } from './configprovider.taro-26882dd2.js';
4
4
 
5
5
  const defaultProps = {
6
6
  className: '',
@@ -1,9 +1,9 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
- import { P as Popup } from './popup.taro-01676bff.js';
3
- import { T as TimePannel } from './timepannel.taro-032285fe.js';
4
- import { T as TimeDetail } from './timedetail.taro-204e2975.js';
5
- import { c as cn } from './bem-350c1702.js';
6
- import { u as useConfig } from './configprovider.taro-d6678d2e.js';
2
+ import { P as Popup } from './popup.taro-6e81162a.js';
3
+ import { T as TimePannel } from './timepannel.taro-29f9dd86.js';
4
+ import { T as TimeDetail } from './timedetail.taro-c5f564fd.js';
5
+ import { c as cn } from './bem-893ad28d.js';
6
+ import { u as useConfig } from './configprovider.taro-26882dd2.js';
7
7
 
8
8
  const defaultProps = {
9
9
  className: '',
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
2
  import classNames from 'classnames';
3
- import { c as cn } from './bem-350c1702.js';
4
- import { I as Icon } from './icon-296a1bec.js';
3
+ import { c as cn } from './bem-893ad28d.js';
4
+ import { I as Icon } from './icon-2242973e.js';
5
5
 
6
6
  const defaultProps = {
7
7
  id: '',
@@ -1,6 +1,6 @@
1
1
  import React__default, { useRef } from 'react';
2
- import { c as cn } from './bem-350c1702.js';
3
- import { I as Icon } from './icon.taro-296a1bec.js';
2
+ import { c as cn } from './bem-893ad28d.js';
3
+ import { I as Icon } from './icon.taro-c9254a81.js';
4
4
 
5
5
  const defaultProps = {
6
6
  rate: 0,
@@ -1,14 +1,14 @@
1
1
  import React__default, { useState, useEffect, useImperativeHandle } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import Taro, { uploadFile, getEnv, chooseMedia, chooseImage } from '@tarojs/taro';
4
- import { I as Icon } from './icon.taro-296a1bec.js';
5
- import { B as Button } from './button.taro-43fa4248.js';
6
- import { P as Progress } from './progress.taro-f0ce38e9.js';
4
+ import { I as Icon } from './icon.taro-c9254a81.js';
5
+ import { B as Button } from './button.taro-dc4795a3.js';
6
+ import { P as Progress } from './progress.taro-773482ed.js';
7
7
  import { Image } from '@tarojs/components';
8
- import { c as cn } from './bem-350c1702.js';
9
- import { u as useConfig } from './configprovider.taro-d6678d2e.js';
10
- import { i as isPromise } from './index-5bcb0ff8.js';
11
- import { C as ComponentDefaults } from './typings-b9828dba.js';
8
+ import { c as cn } from './bem-893ad28d.js';
9
+ import { u as useConfig } from './configprovider.taro-26882dd2.js';
10
+ import { i as isPromise } from './index-a90733f9.js';
11
+ import { C as ComponentDefaults } from './typings-1c5f2628.js';
12
12
 
13
13
  class UploadOptions {
14
14
  url = '';
@@ -1,6 +1,6 @@
1
1
  import React__default, { useRef, useEffect } from 'react';
2
2
  import classNames from 'classnames';
3
- import { c as cn } from './bem-350c1702.js';
3
+ import { c as cn } from './bem-893ad28d.js';
4
4
 
5
5
  const defaultProps = {
6
6
  source: {
@@ -1,7 +1,7 @@
1
1
  import React__default, { useState, useRef, useEffect, useCallback } from 'react';
2
2
  import { ScrollView } from '@tarojs/components';
3
3
  import { getSystemInfoSync } from '@tarojs/taro';
4
- import { u as useConfig } from './configprovider.taro-d6678d2e.js';
4
+ import { u as useConfig } from './configprovider.taro-26882dd2.js';
5
5
 
6
6
  // 缓存列表初始化信息
7
7
  const initPositinoCache = (reaItemSize, length = 0) => {
@@ -1,8 +1,8 @@
1
1
  import React__default, { useState, useEffect } from 'react';
2
2
  import { getSystemInfo, createOffscreenCanvas } from '@tarojs/taro';
3
3
  import classNames from 'classnames';
4
- import { u as useConfig } from './configprovider-3a2a28d1.js';
5
- import { c as cn } from './bem-350c1702.js';
4
+ import { u as useConfig } from './configprovider-5eea4f5d.js';
5
+ import { c as cn } from './bem-893ad28d.js';
6
6
 
7
7
  const defaultProps = {
8
8
  content: '',
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.10 Wed Mar 08 2023 15:33:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.11-beta.0 Wed Mar 15 2023 15:42:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.10 Wed Mar 08 2023 15:33:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.11-beta.0 Wed Mar 15 2023 15:42:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.10 Wed Mar 08 2023 15:33:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.11-beta.0 Wed Mar 15 2023 15:42:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.10 Wed Mar 08 2023 15:33:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.11-beta.0 Wed Mar 15 2023 15:42:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.10 Wed Mar 08 2023 15:33:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.11-beta.0 Wed Mar 15 2023 15:42:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.4.10 Wed Mar 08 2023 15:33:26 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.4.11-beta.0 Wed Mar 15 2023 15:42:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */