antd-mobile 5.10.1 → 5.10.4

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 (314) hide show
  1. package/2x/cjs/components/auto-center/auto-center.d.ts +4 -2
  2. package/2x/cjs/components/badge/badge.d.ts +1 -0
  3. package/2x/cjs/components/calendar/calendar.js +1 -1
  4. package/2x/cjs/components/capsule-tabs/capsule-tabs.d.ts +3 -1
  5. package/2x/cjs/components/card/card.d.ts +1 -0
  6. package/2x/cjs/components/check-list/check-list.d.ts +2 -1
  7. package/2x/cjs/components/checkbox/checkbox.d.ts +1 -0
  8. package/2x/cjs/components/checkbox/group.d.ts +2 -1
  9. package/2x/cjs/components/collapse/collapse.d.ts +4 -1
  10. package/2x/cjs/components/config-provider/config-provider.d.ts +2 -1
  11. package/2x/cjs/components/date-picker/date-picker.d.ts +1 -1
  12. package/2x/cjs/components/date-picker/date-picker.js +2 -1
  13. package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +1 -1
  14. package/2x/cjs/components/date-picker-view/date-picker-view.js +1 -0
  15. package/2x/cjs/components/divider/divider.d.ts +2 -1
  16. package/2x/cjs/components/dropdown/item.d.ts +2 -1
  17. package/2x/cjs/components/error-block/error-block.d.ts +2 -1
  18. package/2x/cjs/components/floating-bubble/floating-bubble.d.ts +1 -0
  19. package/2x/cjs/components/form/form-item.css +1 -1
  20. package/2x/cjs/components/form/form-item.js +2 -1
  21. package/2x/cjs/components/form/header.d.ts +4 -2
  22. package/2x/cjs/components/form/index.css +1 -1
  23. package/2x/cjs/components/form/index.d.ts +3 -1
  24. package/2x/cjs/components/grid/grid.d.ts +2 -0
  25. package/2x/cjs/components/image-uploader/image-uploader.d.ts +2 -1
  26. package/2x/cjs/components/image-uploader/image-uploader.js +2 -1
  27. package/2x/cjs/components/infinite-scroll/infinite-scroll.d.ts +2 -1
  28. package/2x/cjs/components/infinite-scroll/infinite-scroll.js +6 -1
  29. package/2x/cjs/components/input/input.d.ts +2 -2
  30. package/2x/cjs/components/input/input.js +2 -1
  31. package/2x/cjs/components/jumbo-tabs/jumbo-tabs.d.ts +3 -1
  32. package/2x/cjs/components/list/list.css +1 -0
  33. package/2x/cjs/components/list/list.d.ts +1 -0
  34. package/2x/cjs/components/mask/mask.css +1 -0
  35. package/2x/cjs/components/mask/mask.d.ts +1 -0
  36. package/2x/cjs/components/mask/mask.js +8 -1
  37. package/2x/cjs/components/nav-bar/nav-bar.d.ts +2 -1
  38. package/2x/cjs/components/picker/picker.d.ts +1 -0
  39. package/2x/cjs/components/picker/picker.js +1 -0
  40. package/2x/cjs/components/picker-view/picker-view.d.ts +1 -0
  41. package/2x/cjs/components/picker-view/picker-view.js +4 -2
  42. package/2x/cjs/components/picker-view/wheel.d.ts +1 -0
  43. package/2x/cjs/components/picker-view/wheel.js +24 -4
  44. package/2x/cjs/components/popover/wrapper.d.ts +3 -1
  45. package/2x/cjs/components/popup/popup.d.ts +1 -0
  46. package/2x/cjs/components/pull-to-refresh/pull-to-refresh.d.ts +2 -1
  47. package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +2 -2
  48. package/2x/cjs/components/radio/group.d.ts +2 -1
  49. package/2x/cjs/components/radio/radio.d.ts +1 -0
  50. package/2x/cjs/components/safe-area/safe-area.css +2 -2
  51. package/2x/cjs/components/side-bar/side-bar.d.ts +2 -0
  52. package/2x/cjs/components/space/space.d.ts +1 -0
  53. package/2x/cjs/components/steps/steps.d.ts +2 -1
  54. package/2x/cjs/components/swiper/index.d.ts +1 -0
  55. package/2x/cjs/components/swiper/swiper-item.d.ts +1 -0
  56. package/2x/cjs/components/tab-bar/tab-bar.d.ts +2 -0
  57. package/2x/cjs/components/tabs/tabs.d.ts +3 -1
  58. package/2x/cjs/components/tag/tag.d.ts +1 -0
  59. package/2x/cjs/components/text-area/text-area.d.ts +2 -2
  60. package/2x/cjs/components/text-area/text-area.js +2 -1
  61. package/2x/cjs/global/global.css +1 -0
  62. package/2x/cjs/global/theme.css +1 -0
  63. package/2x/cjs/locales/base.d.ts +3 -0
  64. package/2x/cjs/locales/base.js +4 -1
  65. package/2x/cjs/locales/en-US.d.ts +3 -0
  66. package/2x/cjs/locales/es-ES.d.ts +3 -0
  67. package/2x/cjs/locales/es-ES.js +1 -1
  68. package/2x/cjs/locales/fa-IR.d.ts +3 -0
  69. package/2x/cjs/locales/ko-KR.d.ts +105 -0
  70. package/2x/cjs/locales/ko-KR.js +115 -0
  71. package/2x/cjs/locales/zh-CN.d.ts +3 -0
  72. package/2x/cjs/locales/zh-CN.js +4 -1
  73. package/2x/cjs/locales/zh-HK.d.ts +3 -0
  74. package/2x/cjs/locales/zh-HK.js +60 -1
  75. package/2x/cjs/locales/zh-TW.d.ts +3 -0
  76. package/2x/cjs/locales/zh-TW.js +60 -1
  77. package/2x/cjs/utils/get-scroll-parent.js +7 -4
  78. package/2x/es/components/auto-center/auto-center.d.ts +4 -2
  79. package/2x/es/components/badge/badge.d.ts +1 -0
  80. package/2x/es/components/calendar/calendar.js +1 -1
  81. package/2x/es/components/capsule-tabs/capsule-tabs.d.ts +3 -1
  82. package/2x/es/components/card/card.d.ts +1 -0
  83. package/2x/es/components/check-list/check-list.d.ts +2 -1
  84. package/2x/es/components/checkbox/checkbox.d.ts +1 -0
  85. package/2x/es/components/checkbox/group.d.ts +2 -1
  86. package/2x/es/components/collapse/collapse.d.ts +4 -1
  87. package/2x/es/components/config-provider/config-provider.d.ts +2 -1
  88. package/2x/es/components/date-picker/date-picker.d.ts +1 -1
  89. package/2x/es/components/date-picker/date-picker.js +2 -1
  90. package/2x/es/components/date-picker-view/date-picker-view.d.ts +1 -1
  91. package/2x/es/components/date-picker-view/date-picker-view.js +1 -0
  92. package/2x/es/components/divider/divider.d.ts +2 -1
  93. package/2x/es/components/dropdown/item.d.ts +2 -1
  94. package/2x/es/components/error-block/error-block.d.ts +2 -1
  95. package/2x/es/components/floating-bubble/floating-bubble.d.ts +1 -0
  96. package/2x/es/components/form/form-item.css +1 -1
  97. package/2x/es/components/form/form-item.js +2 -1
  98. package/2x/es/components/form/header.d.ts +4 -2
  99. package/2x/es/components/form/index.css +1 -1
  100. package/2x/es/components/form/index.d.ts +3 -1
  101. package/2x/es/components/grid/grid.d.ts +2 -0
  102. package/2x/es/components/image-uploader/image-uploader.d.ts +2 -1
  103. package/2x/es/components/image-uploader/image-uploader.js +2 -1
  104. package/2x/es/components/infinite-scroll/infinite-scroll.d.ts +2 -1
  105. package/2x/es/components/infinite-scroll/infinite-scroll.js +5 -1
  106. package/2x/es/components/input/input.d.ts +2 -2
  107. package/2x/es/components/input/input.js +2 -1
  108. package/2x/es/components/jumbo-tabs/jumbo-tabs.d.ts +3 -1
  109. package/2x/es/components/list/list.css +1 -0
  110. package/2x/es/components/list/list.d.ts +1 -0
  111. package/2x/es/components/mask/mask.css +1 -0
  112. package/2x/es/components/mask/mask.d.ts +1 -0
  113. package/2x/es/components/mask/mask.js +8 -1
  114. package/2x/es/components/nav-bar/nav-bar.d.ts +2 -1
  115. package/2x/es/components/picker/picker.d.ts +1 -0
  116. package/2x/es/components/picker/picker.js +1 -0
  117. package/2x/es/components/picker-view/picker-view.d.ts +1 -0
  118. package/2x/es/components/picker-view/picker-view.js +4 -2
  119. package/2x/es/components/picker-view/wheel.d.ts +1 -0
  120. package/2x/es/components/picker-view/wheel.js +24 -5
  121. package/2x/es/components/popover/wrapper.d.ts +3 -1
  122. package/2x/es/components/popup/popup.d.ts +1 -0
  123. package/2x/es/components/pull-to-refresh/pull-to-refresh.d.ts +2 -1
  124. package/2x/es/components/pull-to-refresh/pull-to-refresh.js +2 -2
  125. package/2x/es/components/radio/group.d.ts +2 -1
  126. package/2x/es/components/radio/radio.d.ts +1 -0
  127. package/2x/es/components/safe-area/safe-area.css +2 -2
  128. package/2x/es/components/side-bar/side-bar.d.ts +2 -0
  129. package/2x/es/components/space/space.d.ts +1 -0
  130. package/2x/es/components/steps/steps.d.ts +2 -1
  131. package/2x/es/components/swiper/index.d.ts +1 -0
  132. package/2x/es/components/swiper/swiper-item.d.ts +1 -0
  133. package/2x/es/components/tab-bar/tab-bar.d.ts +2 -0
  134. package/2x/es/components/tabs/tabs.d.ts +3 -1
  135. package/2x/es/components/tag/tag.d.ts +1 -0
  136. package/2x/es/components/text-area/text-area.d.ts +2 -2
  137. package/2x/es/components/text-area/text-area.js +2 -1
  138. package/2x/es/global/global.css +1 -0
  139. package/2x/es/global/theme.css +1 -0
  140. package/2x/es/locales/base.d.ts +3 -0
  141. package/2x/es/locales/base.js +4 -1
  142. package/2x/es/locales/en-US.d.ts +3 -0
  143. package/2x/es/locales/es-ES.d.ts +3 -0
  144. package/2x/es/locales/es-ES.js +1 -1
  145. package/2x/es/locales/fa-IR.d.ts +3 -0
  146. package/2x/es/locales/ko-KR.d.ts +105 -0
  147. package/2x/es/locales/ko-KR.js +105 -0
  148. package/2x/es/locales/zh-CN.d.ts +3 -0
  149. package/2x/es/locales/zh-CN.js +4 -1
  150. package/2x/es/locales/zh-HK.d.ts +3 -0
  151. package/2x/es/locales/zh-HK.js +60 -1
  152. package/2x/es/locales/zh-TW.d.ts +3 -0
  153. package/2x/es/locales/zh-TW.js +60 -1
  154. package/2x/es/utils/get-scroll-parent.js +7 -4
  155. package/2x/package.json +2 -1
  156. package/bundle/antd-mobile.cjs.js +63 -20
  157. package/bundle/antd-mobile.es.js +64 -21
  158. package/bundle/style.css +6 -3
  159. package/cjs/components/auto-center/auto-center.d.ts +4 -2
  160. package/cjs/components/badge/badge.d.ts +1 -0
  161. package/cjs/components/calendar/calendar.js +1 -1
  162. package/cjs/components/capsule-tabs/capsule-tabs.d.ts +3 -1
  163. package/cjs/components/card/card.d.ts +1 -0
  164. package/cjs/components/check-list/check-list.d.ts +2 -1
  165. package/cjs/components/checkbox/checkbox.d.ts +1 -0
  166. package/cjs/components/checkbox/group.d.ts +2 -1
  167. package/cjs/components/collapse/collapse.d.ts +4 -1
  168. package/cjs/components/config-provider/config-provider.d.ts +2 -1
  169. package/cjs/components/date-picker/date-picker.d.ts +1 -1
  170. package/cjs/components/date-picker/date-picker.js +2 -1
  171. package/cjs/components/date-picker-view/date-picker-view.d.ts +1 -1
  172. package/cjs/components/date-picker-view/date-picker-view.js +1 -0
  173. package/cjs/components/divider/divider.d.ts +2 -1
  174. package/cjs/components/dropdown/item.d.ts +2 -1
  175. package/cjs/components/error-block/error-block.d.ts +2 -1
  176. package/cjs/components/floating-bubble/floating-bubble.d.ts +1 -0
  177. package/cjs/components/form/form-item.css +1 -1
  178. package/cjs/components/form/form-item.js +2 -1
  179. package/cjs/components/form/header.d.ts +4 -2
  180. package/cjs/components/form/index.css +1 -1
  181. package/cjs/components/form/index.d.ts +3 -1
  182. package/cjs/components/grid/grid.d.ts +2 -0
  183. package/cjs/components/image-uploader/image-uploader.d.ts +2 -1
  184. package/cjs/components/image-uploader/image-uploader.js +2 -1
  185. package/cjs/components/infinite-scroll/infinite-scroll.d.ts +2 -1
  186. package/cjs/components/infinite-scroll/infinite-scroll.js +6 -1
  187. package/cjs/components/input/input.d.ts +2 -2
  188. package/cjs/components/input/input.js +2 -1
  189. package/cjs/components/jumbo-tabs/jumbo-tabs.d.ts +3 -1
  190. package/cjs/components/list/list.css +1 -0
  191. package/cjs/components/list/list.d.ts +1 -0
  192. package/cjs/components/mask/mask.css +1 -0
  193. package/cjs/components/mask/mask.d.ts +1 -0
  194. package/cjs/components/mask/mask.js +8 -1
  195. package/cjs/components/nav-bar/nav-bar.d.ts +2 -1
  196. package/cjs/components/picker/picker.d.ts +1 -0
  197. package/cjs/components/picker/picker.js +1 -0
  198. package/cjs/components/picker-view/picker-view.d.ts +1 -0
  199. package/cjs/components/picker-view/picker-view.js +4 -2
  200. package/cjs/components/picker-view/wheel.d.ts +1 -0
  201. package/cjs/components/picker-view/wheel.js +24 -4
  202. package/cjs/components/popover/wrapper.d.ts +3 -1
  203. package/cjs/components/popup/popup.d.ts +1 -0
  204. package/cjs/components/pull-to-refresh/pull-to-refresh.d.ts +2 -1
  205. package/cjs/components/pull-to-refresh/pull-to-refresh.js +2 -2
  206. package/cjs/components/radio/group.d.ts +2 -1
  207. package/cjs/components/radio/radio.d.ts +1 -0
  208. package/cjs/components/safe-area/safe-area.css +2 -2
  209. package/cjs/components/side-bar/side-bar.d.ts +2 -0
  210. package/cjs/components/space/space.d.ts +1 -0
  211. package/cjs/components/steps/steps.d.ts +2 -1
  212. package/cjs/components/swiper/index.d.ts +1 -0
  213. package/cjs/components/swiper/swiper-item.d.ts +1 -0
  214. package/cjs/components/tab-bar/tab-bar.d.ts +2 -0
  215. package/cjs/components/tabs/tabs.d.ts +3 -1
  216. package/cjs/components/tag/tag.d.ts +1 -0
  217. package/cjs/components/text-area/text-area.d.ts +2 -2
  218. package/cjs/components/text-area/text-area.js +2 -1
  219. package/cjs/global/global.css +1 -0
  220. package/cjs/global/theme.css +1 -0
  221. package/cjs/locales/base.d.ts +3 -0
  222. package/cjs/locales/base.js +4 -1
  223. package/cjs/locales/en-US.d.ts +3 -0
  224. package/cjs/locales/es-ES.d.ts +3 -0
  225. package/cjs/locales/es-ES.js +1 -1
  226. package/cjs/locales/fa-IR.d.ts +3 -0
  227. package/cjs/locales/ko-KR.d.ts +105 -0
  228. package/cjs/locales/ko-KR.js +115 -0
  229. package/cjs/locales/zh-CN.d.ts +3 -0
  230. package/cjs/locales/zh-CN.js +4 -1
  231. package/cjs/locales/zh-HK.d.ts +3 -0
  232. package/cjs/locales/zh-HK.js +60 -1
  233. package/cjs/locales/zh-TW.d.ts +3 -0
  234. package/cjs/locales/zh-TW.js +60 -1
  235. package/cjs/utils/get-scroll-parent.js +7 -4
  236. package/es/components/auto-center/auto-center.d.ts +4 -2
  237. package/es/components/badge/badge.d.ts +1 -0
  238. package/es/components/calendar/calendar.js +1 -1
  239. package/es/components/capsule-tabs/capsule-tabs.d.ts +3 -1
  240. package/es/components/card/card.d.ts +1 -0
  241. package/es/components/check-list/check-list.d.ts +2 -1
  242. package/es/components/checkbox/checkbox.d.ts +1 -0
  243. package/es/components/checkbox/group.d.ts +2 -1
  244. package/es/components/collapse/collapse.d.ts +4 -1
  245. package/es/components/config-provider/config-provider.d.ts +2 -1
  246. package/es/components/date-picker/date-picker.d.ts +1 -1
  247. package/es/components/date-picker/date-picker.js +2 -1
  248. package/es/components/date-picker-view/date-picker-view.d.ts +1 -1
  249. package/es/components/date-picker-view/date-picker-view.js +1 -0
  250. package/es/components/divider/divider.d.ts +2 -1
  251. package/es/components/dropdown/item.d.ts +2 -1
  252. package/es/components/error-block/error-block.d.ts +2 -1
  253. package/es/components/floating-bubble/floating-bubble.d.ts +1 -0
  254. package/es/components/form/form-item.css +1 -1
  255. package/es/components/form/form-item.js +2 -1
  256. package/es/components/form/header.d.ts +4 -2
  257. package/es/components/form/index.css +1 -1
  258. package/es/components/form/index.d.ts +3 -1
  259. package/es/components/grid/grid.d.ts +2 -0
  260. package/es/components/image-uploader/image-uploader.d.ts +2 -1
  261. package/es/components/image-uploader/image-uploader.js +2 -1
  262. package/es/components/infinite-scroll/infinite-scroll.d.ts +2 -1
  263. package/es/components/infinite-scroll/infinite-scroll.js +5 -1
  264. package/es/components/input/input.d.ts +2 -2
  265. package/es/components/input/input.js +2 -1
  266. package/es/components/jumbo-tabs/jumbo-tabs.d.ts +3 -1
  267. package/es/components/list/list.css +1 -0
  268. package/es/components/list/list.d.ts +1 -0
  269. package/es/components/mask/mask.css +1 -0
  270. package/es/components/mask/mask.d.ts +1 -0
  271. package/es/components/mask/mask.js +8 -1
  272. package/es/components/nav-bar/nav-bar.d.ts +2 -1
  273. package/es/components/picker/picker.d.ts +1 -0
  274. package/es/components/picker/picker.js +1 -0
  275. package/es/components/picker-view/picker-view.d.ts +1 -0
  276. package/es/components/picker-view/picker-view.js +4 -2
  277. package/es/components/picker-view/wheel.d.ts +1 -0
  278. package/es/components/picker-view/wheel.js +24 -5
  279. package/es/components/popover/wrapper.d.ts +3 -1
  280. package/es/components/popup/popup.d.ts +1 -0
  281. package/es/components/pull-to-refresh/pull-to-refresh.d.ts +2 -1
  282. package/es/components/pull-to-refresh/pull-to-refresh.js +2 -2
  283. package/es/components/radio/group.d.ts +2 -1
  284. package/es/components/radio/radio.d.ts +1 -0
  285. package/es/components/safe-area/safe-area.css +2 -2
  286. package/es/components/side-bar/side-bar.d.ts +2 -0
  287. package/es/components/space/space.d.ts +1 -0
  288. package/es/components/steps/steps.d.ts +2 -1
  289. package/es/components/swiper/index.d.ts +1 -0
  290. package/es/components/swiper/swiper-item.d.ts +1 -0
  291. package/es/components/tab-bar/tab-bar.d.ts +2 -0
  292. package/es/components/tabs/tabs.d.ts +3 -1
  293. package/es/components/tag/tag.d.ts +1 -0
  294. package/es/components/text-area/text-area.d.ts +2 -2
  295. package/es/components/text-area/text-area.js +2 -1
  296. package/es/global/global.css +1 -0
  297. package/es/global/theme.css +1 -0
  298. package/es/locales/base.d.ts +3 -0
  299. package/es/locales/base.js +4 -1
  300. package/es/locales/en-US.d.ts +3 -0
  301. package/es/locales/es-ES.d.ts +3 -0
  302. package/es/locales/es-ES.js +1 -1
  303. package/es/locales/fa-IR.d.ts +3 -0
  304. package/es/locales/ko-KR.d.ts +105 -0
  305. package/es/locales/ko-KR.js +105 -0
  306. package/es/locales/zh-CN.d.ts +3 -0
  307. package/es/locales/zh-CN.js +4 -1
  308. package/es/locales/zh-HK.d.ts +3 -0
  309. package/es/locales/zh-HK.js +60 -1
  310. package/es/locales/zh-TW.d.ts +3 -0
  311. package/es/locales/zh-TW.js +60 -1
  312. package/es/utils/get-scroll-parent.js +7 -4
  313. package/package.json +2 -1
  314. package/umd/antd-mobile.js +1 -1
@@ -9,12 +9,17 @@ var _mergeLocale = require("../utils/merge-locale");
9
9
 
10
10
  var _base = require("./base");
11
11
 
12
+ const typeTemplate = '${label}不是一個有效的${type}';
12
13
  const zhTW = (0, _mergeLocale.mergeLocale)(_base.base, {
13
14
  locale: 'zh-TW',
14
15
  common: {
15
16
  confirm: '確定',
16
17
  cancel: '取消',
17
- loading: '加載中……'
18
+ loading: '加載中'
19
+ },
20
+ Calendar: {
21
+ markItems: ['一', '二', '三', '四', '五', '六', '日'],
22
+ renderYearAndMonth: (year, month) => `${year}年${month}月`
18
23
  },
19
24
  Cascader: {
20
25
  placeholder: '請選擇'
@@ -40,9 +45,63 @@ const zhTW = (0, _mergeLocale.mergeLocale)(_base.base, {
40
45
  description: '找找其他的吧'
41
46
  }
42
47
  },
48
+ Form: {
49
+ required: '必填',
50
+ optional: '選填',
51
+ defaultValidateMessages: {
52
+ default: '字段驗證錯誤${label}',
53
+ required: '請輸入${label}',
54
+ enum: '${label}必須是其中一個[${enum}]',
55
+ whitespace: '${label}不能為空字符',
56
+ date: {
57
+ format: '${label}日期格式無效',
58
+ parse: '${label}不能轉換為日期',
59
+ invalid: '${label}是一個無效日期'
60
+ },
61
+ types: {
62
+ string: typeTemplate,
63
+ method: typeTemplate,
64
+ array: typeTemplate,
65
+ object: typeTemplate,
66
+ number: typeTemplate,
67
+ date: typeTemplate,
68
+ boolean: typeTemplate,
69
+ integer: typeTemplate,
70
+ float: typeTemplate,
71
+ regexp: typeTemplate,
72
+ email: typeTemplate,
73
+ url: typeTemplate,
74
+ hex: typeTemplate
75
+ },
76
+ string: {
77
+ len: '${label}須為${len}個字符',
78
+ min: '${label}最少${min}個字符',
79
+ max: '${label}最多${max}個字符',
80
+ range: '${label}須在${min}-${max}字符之間'
81
+ },
82
+ number: {
83
+ len: '${label}必須等於${len}',
84
+ min: '${label}最小值為${min}',
85
+ max: '${label}最大值為${max}',
86
+ range: '${label}須在${min}-${max}之間'
87
+ },
88
+ array: {
89
+ len: '須為${len}個${label}',
90
+ min: '最少${min}個${label}',
91
+ max: '最多${max}個${label}',
92
+ range: '${label}数量須在${min}-${max}之間'
93
+ },
94
+ pattern: {
95
+ mismatch: '${label}與模式不匹配${pattern}'
96
+ }
97
+ }
98
+ },
43
99
  ImageUploader: {
44
100
  uploading: '上傳中...'
45
101
  },
102
+ InfiniteScroll: {
103
+ noMore: '沒有更多了'
104
+ },
46
105
  Mask: {
47
106
  name: '遮罩層'
48
107
  },
@@ -7,24 +7,27 @@ exports.getScrollParent = getScrollParent;
7
7
 
8
8
  var _canUseDom = require("./can-use-dom");
9
9
 
10
- const overflowScrollReg = /scroll|auto|overlay/i;
11
10
  const defaultRoot = _canUseDom.canUseDom ? window : undefined;
11
+ const overflowStylePatterns = ['scroll', 'auto', 'overlay'];
12
12
 
13
13
  function isElement(node) {
14
14
  const ELEMENT_NODE_TYPE = 1;
15
15
  return node.nodeType === ELEMENT_NODE_TYPE;
16
- } // https://github.com/youzan/vant/issues/3823
17
-
16
+ }
18
17
 
19
18
  function getScrollParent(el, root = defaultRoot) {
20
19
  let node = el;
21
20
 
22
21
  while (node && node !== root && isElement(node)) {
22
+ if (node === document.body) {
23
+ return root;
24
+ }
25
+
23
26
  const {
24
27
  overflowY
25
28
  } = window.getComputedStyle(node);
26
29
 
27
- if (overflowScrollReg.test(overflowY)) {
30
+ if (overflowStylePatterns.includes(overflowY)) {
28
31
  return node;
29
32
  }
30
33
 
@@ -1,4 +1,6 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
- export declare type AutoCenterProps = NativeProps;
3
+ export declare type AutoCenterProps = {
4
+ children?: React.ReactNode;
5
+ } & NativeProps;
4
6
  export declare const AutoCenter: FC<AutoCenterProps>;
@@ -5,5 +5,6 @@ export declare type BadgeProps = {
5
5
  content?: React.ReactNode | typeof dot;
6
6
  color?: string;
7
7
  bordered?: boolean;
8
+ children?: React.ReactNode;
8
9
  } & NativeProps<'--right' | '--top' | '--color'>;
9
10
  export declare const Badge: FC<BadgeProps>;
@@ -63,7 +63,7 @@ export const Calendar = forwardRef((p, ref) => {
63
63
  page = pageOrPageGenerator;
64
64
  }
65
65
 
66
- setCurrent(dayjs().year(page.year).month(page.month - 1));
66
+ setCurrent(dayjs().year(page.year).month(page.month - 1).date(1));
67
67
  },
68
68
  jumpToToday: () => {
69
69
  setCurrent(dayjs().date(1));
@@ -1,15 +1,17 @@
1
- import { FC, ReactNode } from 'react';
1
+ import React, { FC, ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  export declare type CapsuleTabProps = {
4
4
  title: ReactNode;
5
5
  disabled?: boolean;
6
6
  forceRender?: boolean;
7
7
  destroyOnClose?: boolean;
8
+ children?: ReactNode;
8
9
  } & NativeProps;
9
10
  export declare const CapsuleTab: FC<CapsuleTabProps>;
10
11
  export declare type CapsuleTabsProps = {
11
12
  activeKey?: string | null;
12
13
  defaultActiveKey?: string | null;
13
14
  onChange?: (key: string) => void;
15
+ children?: React.ReactNode;
14
16
  } & NativeProps;
15
17
  export declare const CapsuleTabs: FC<CapsuleTabsProps>;
@@ -10,5 +10,6 @@ export declare type CardProps = {
10
10
  onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
11
11
  onBodyClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
12
12
  onHeaderClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
13
+ children?: React.ReactNode;
13
14
  } & NativeProps;
14
15
  export declare const Card: FC<CardProps>;
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from 'react';
1
+ import React, { FC, ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  import { ListProps } from '../list';
4
4
  export declare type CheckListProps = Pick<ListProps, 'mode' | 'style'> & {
@@ -9,5 +9,6 @@ export declare type CheckListProps = Pick<ListProps, 'mode' | 'style'> & {
9
9
  activeIcon?: ReactNode;
10
10
  disabled?: boolean;
11
11
  readOnly?: boolean;
12
+ children?: React.ReactNode;
12
13
  } & NativeProps;
13
14
  export declare const CheckList: FC<CheckListProps>;
@@ -11,5 +11,6 @@ export declare type CheckboxProps = {
11
11
  block?: boolean;
12
12
  id?: string;
13
13
  icon?: (checked: boolean, indeterminate: boolean) => React.ReactNode;
14
+ children?: React.ReactNode;
14
15
  } & NativeProps<'--icon-size' | '--font-size' | '--gap'>;
15
16
  export declare const Checkbox: FC<CheckboxProps>;
@@ -1,9 +1,10 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
  import { CheckboxValue } from '.';
3
3
  export interface CheckboxGroupProps {
4
4
  value?: CheckboxValue[];
5
5
  onChange?: (val: CheckboxValue[]) => void;
6
6
  defaultValue?: CheckboxValue[];
7
7
  disabled?: boolean;
8
+ children?: React.ReactNode;
8
9
  }
9
10
  export declare const Group: FC<CheckboxGroupProps>;
@@ -8,6 +8,7 @@ export declare type CollapsePanelProps = {
8
8
  destroyOnClose?: boolean;
9
9
  onClick?: (event: React.MouseEvent<Element, MouseEvent>) => void;
10
10
  arrow?: React.ReactNode | ((active: boolean) => React.ReactNode);
11
+ children?: React.ReactNode;
11
12
  } & NativeProps;
12
13
  export declare const CollapsePanel: FC<CollapsePanelProps>;
13
14
  declare type ValueProps<T> = {
@@ -20,6 +21,8 @@ export declare type CollapseProps = (({
20
21
  accordion?: false;
21
22
  } & ValueProps<string[]>) | ({
22
23
  accordion: true;
23
- } & ValueProps<string | null>)) & NativeProps;
24
+ } & ValueProps<string | null>)) & {
25
+ children?: React.ReactNode;
26
+ } & NativeProps;
24
27
  export declare const Collapse: FC<CollapseProps>;
25
28
  export {};
@@ -1,7 +1,8 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
  import { Locale } from '../../locales/base';
3
3
  declare type Config = {
4
4
  locale: Locale;
5
+ children?: React.ReactNode;
5
6
  };
6
7
  export declare const defaultConfigRef: {
7
8
  current: Config;
@@ -2,7 +2,7 @@ import { FC, ReactNode } from 'react';
2
2
  import type { PickerProps } from '../picker';
3
3
  import { NativeProps } from '../../utils/native-props';
4
4
  import type { Precision, DatePickerFilter } from './date-picker-utils';
5
- export declare type DatePickerProps = Pick<PickerProps, 'onCancel' | 'onClose' | 'closeOnMaskClick' | 'visible' | 'confirmText' | 'cancelText' | 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'title' | 'stopPropagation' | 'style'> & {
5
+ export declare type DatePickerProps = Pick<PickerProps, 'onCancel' | 'onClose' | 'closeOnMaskClick' | 'visible' | 'confirmText' | 'cancelText' | 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'title' | 'stopPropagation' | 'style' | 'mouseWheel'> & {
6
6
  value?: Date | null;
7
7
  defaultValue?: Date | null;
8
8
  onSelect?: (value: Date) => void;
@@ -57,7 +57,8 @@ export const DatePicker = p => {
57
57
  afterClose: props.afterClose,
58
58
  onClick: props.onClick,
59
59
  title: props.title,
60
- stopPropagation: props.stopPropagation
60
+ stopPropagation: props.stopPropagation,
61
+ mouseWheel: props.mouseWheel
61
62
  }, () => {
62
63
  var _a;
63
64
 
@@ -2,7 +2,7 @@ import { FC, ReactNode } from 'react';
2
2
  import type { PickerViewProps } from '../picker-view';
3
3
  import { NativeProps } from '../../utils/native-props';
4
4
  import type { Precision, DatePickerFilter } from '../date-picker/date-picker-utils';
5
- export declare type DatePickerViewProps = Pick<PickerViewProps, 'style'> & {
5
+ export declare type DatePickerViewProps = Pick<PickerViewProps, 'style' | 'mouseWheel'> & {
6
6
  value?: Date;
7
7
  defaultValue?: Date;
8
8
  onChange?: (value: Date) => void;
@@ -33,6 +33,7 @@ export const DatePickerView = p => {
33
33
  return withNativeProps(props, React.createElement(PickerView, {
34
34
  columns: selected => generateDatePickerColumns(selected, props.min, props.max, props.precision, props.renderLabel, props.filter),
35
35
  value: pickerValue,
36
+ mouseWheel: props.mouseWheel,
36
37
  onChange: onChange
37
38
  }));
38
39
  };
@@ -1,7 +1,8 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  export declare type DividerProps = {
4
4
  contentPosition?: 'left' | 'right' | 'center';
5
5
  direction?: 'horizontal' | 'vertical';
6
+ children?: React.ReactNode;
6
7
  } & NativeProps;
7
8
  export declare const Divider: FC<DividerProps>;
@@ -9,10 +9,11 @@ export declare type DropdownItemProps = {
9
9
  destroyOnClose?: boolean;
10
10
  onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
11
11
  arrow?: React.ReactNode;
12
+ children?: React.ReactNode;
12
13
  } & NativeProps;
13
14
  declare const Item: FC<DropdownItemProps>;
14
15
  export default Item;
15
16
  declare type DropdownItemChildrenWrapProps = {
16
17
  onClick?: () => void;
17
- } & Pick<DropdownItemProps, 'active' | 'forceRender' | 'destroyOnClose'>;
18
+ } & Pick<DropdownItemProps, 'active' | 'forceRender' | 'destroyOnClose' | 'children'>;
18
19
  export declare const ItemChildrenWrap: FC<DropdownItemChildrenWrapProps>;
@@ -1,4 +1,4 @@
1
- import { FC, ReactElement, ReactNode } from 'react';
1
+ import React, { FC, ReactElement, ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  export declare type ErrorBlockProps = {
4
4
  status?: 'default' | 'disconnected' | 'empty' | 'busy';
@@ -6,5 +6,6 @@ export declare type ErrorBlockProps = {
6
6
  image?: string | ReactElement;
7
7
  description?: ReactNode;
8
8
  fullPage?: boolean;
9
+ children?: React.ReactNode;
9
10
  } & NativeProps<'--image-height' | '--image-height-full-page' | '--image-width' | '--image-width-full-page'>;
10
11
  export declare const ErrorBlock: FC<ErrorBlockProps>;
@@ -4,5 +4,6 @@ export declare type FloatingBubbleProps = {
4
4
  onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
5
5
  axis?: 'x' | 'y' | 'xy' | 'lock';
6
6
  magnetic?: 'x' | 'y';
7
+ children?: React.ReactNode;
7
8
  } & NativeProps<'--initial-position-left' | '--initial-position-right' | '--initial-position-top' | '--initial-position-bottom' | '--z-index' | '--edge-distance' | '--size' | '--border-radius' | '--background'>;
8
9
  export declare const FloatingBubble: FC<FloatingBubbleProps>;
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  .adm-form-item-child-position-right {
46
- justify-content: right;
46
+ justify-content: flex-end;
47
47
  }
48
48
 
49
49
  .adm-form-item-child-position-right > * {
@@ -92,7 +92,8 @@ const FormItemLayout = props => {
92
92
  extra: extra,
93
93
  description: description,
94
94
  className: classNames(classPrefix, className, `${classPrefix}-${layout}`, {
95
- [`${classPrefix}-hidden`]: hidden
95
+ [`${classPrefix}-hidden`]: hidden,
96
+ [`${classPrefix}-has-error`]: props.errors.length
96
97
  }),
97
98
  disabled: disabled,
98
99
  onClick: props.onClick,
@@ -1,2 +1,4 @@
1
- import { FC } from 'react';
2
- export declare const Header: FC;
1
+ import { FC, ReactNode } from 'react';
2
+ export declare const Header: FC<{
3
+ children?: ReactNode;
4
+ }>;
@@ -69,7 +69,7 @@
69
69
  }
70
70
 
71
71
  .adm-form-item-child-position-right {
72
- justify-content: right;
72
+ justify-content: flex-end;
73
73
  }
74
74
 
75
75
  .adm-form-item-child-position-right > * {
@@ -14,7 +14,9 @@ declare const _default: import("react").ForwardRefExoticComponent<Pick<import("r
14
14
  } & import("react").RefAttributes<import("./form").FormInstance>> & {
15
15
  Item: import("react").FC<import("./form-item").FormItemProps>;
16
16
  Subscribe: import("react").VFC<import("./form-subscribe").FormSubscribeProps>;
17
- Header: import("react").FC<{}>;
17
+ Header: import("react").FC<{
18
+ children?: import("react").ReactNode;
19
+ }>;
18
20
  Array: import("react").FC<import("./form-array").FormArrayProps>;
19
21
  useForm: typeof useForm;
20
22
  };
@@ -3,10 +3,12 @@ import { NativeProps } from '../../utils/native-props';
3
3
  export declare type GridProps = {
4
4
  columns: number;
5
5
  gap?: number | string | [number | string, number | string];
6
+ children?: React.ReactNode;
6
7
  } & NativeProps<'--gap' | '--gap-vertical' | '--gap-horizontal'>;
7
8
  export declare const Grid: FC<GridProps>;
8
9
  export declare type GridItemProps = {
9
10
  span?: number;
10
11
  onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
12
+ children?: React.ReactNode;
11
13
  } & NativeProps;
12
14
  export declare const GridItem: FC<GridItemProps>;
@@ -1,4 +1,4 @@
1
- import { FC, InputHTMLAttributes } from 'react';
1
+ import React, { FC, InputHTMLAttributes } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  import type { ImageProps } from '../image';
4
4
  export declare type TaskStatus = 'pending' | 'fail';
@@ -27,5 +27,6 @@ export declare type ImageUploaderProps = {
27
27
  preview?: boolean;
28
28
  showFailed?: boolean;
29
29
  imageFit?: ImageProps['fit'];
30
+ children?: React.ReactNode;
30
31
  } & NativeProps<'--cell-size'>;
31
32
  export declare const ImageUploader: FC<ImageUploaderProps>;
@@ -90,6 +90,8 @@ export const ImageUploader = p => {
90
90
  file
91
91
  }));
92
92
  setTasks(prev => [...prev, ...newTasks]);
93
+ e.target.value = ''; // HACK: fix the same file doesn't trigger onChange
94
+
93
95
  yield Promise.all(newTasks.map(currentTask => __awaiter(this, void 0, void 0, function* () {
94
96
  try {
95
97
  const result = yield props.upload(currentTask.file);
@@ -123,7 +125,6 @@ export const ImageUploader = p => {
123
125
  throw e;
124
126
  }
125
127
  }))).catch(error => console.error(error));
126
- e.target.value = ''; // HACK: fix the same file doesn't trigger onChange
127
128
  });
128
129
  }
129
130
 
@@ -1,8 +1,9 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  export declare type InfiniteScrollProps = {
4
4
  loadMore: () => Promise<void>;
5
5
  hasMore: boolean;
6
6
  threshold?: number;
7
+ children?: React.ReactNode;
7
8
  } & NativeProps;
8
9
  export declare const InfiniteScroll: FC<InfiniteScrollProps>;
@@ -4,6 +4,7 @@ import React, { useEffect, useRef, useState } from 'react';
4
4
  import { useLockFn, useMemoizedFn } from 'ahooks';
5
5
  import { withNativeProps } from '../../utils/native-props';
6
6
  import { getScrollParent } from '../../utils/get-scroll-parent';
7
+ import { useConfig } from '../config-provider';
7
8
  import DotLoading from '../dot-loading';
8
9
 
9
10
  function isWindow(element) {
@@ -15,7 +16,10 @@ const classPrefix = `adm-infinite-scroll`;
15
16
  const InfiniteScrollContent = ({
16
17
  hasMore
17
18
  }) => {
18
- return React.createElement(React.Fragment, null, hasMore ? React.createElement(React.Fragment, null, React.createElement("span", null, "\u52A0\u8F7D\u4E2D"), React.createElement(DotLoading, null)) : React.createElement("span", null, "\u6CA1\u6709\u66F4\u591A\u4E86"));
19
+ const {
20
+ locale
21
+ } = useConfig();
22
+ return React.createElement(React.Fragment, null, hasMore ? React.createElement(React.Fragment, null, React.createElement("span", null, locale.common.loading), React.createElement(DotLoading, null)) : React.createElement("span", null, locale.InfiniteScroll.noMore));
19
23
  };
20
24
 
21
25
  export const InfiniteScroll = p => {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  declare type NativeInputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
4
- export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'autoComplete' | 'autoFocus' | 'pattern' | 'inputMode' | 'type' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp' | 'onCompositionStart' | 'onCompositionEnd'> & {
4
+ export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'autoComplete' | 'autoFocus' | 'pattern' | 'inputMode' | 'type' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp' | 'onCompositionStart' | 'onCompositionEnd' | 'onClick'> & {
5
5
  value?: string;
6
6
  defaultValue?: string;
7
7
  onChange?: (val: string) => void;
@@ -22,7 +22,7 @@ export declare type InputRef = {
22
22
  blur: () => void;
23
23
  nativeElement: HTMLInputElement | null;
24
24
  };
25
- export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProps, "pattern" | "type" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "autoCapitalize" | "autoCorrect" | "inputMode" | "autoComplete" | "autoFocus" | "maxLength" | "minLength"> & {
25
+ export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProps, "pattern" | "onClick" | "type" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "autoCapitalize" | "autoCorrect" | "inputMode" | "autoComplete" | "autoFocus" | "maxLength" | "minLength"> & {
26
26
  value?: string | undefined;
27
27
  defaultValue?: string | undefined;
28
28
  onChange?: ((val: string) => void) | undefined;
@@ -110,7 +110,8 @@ export const Input = forwardRef((p, ref) => {
110
110
  onKeyDown: handleKeydown,
111
111
  onKeyUp: props.onKeyUp,
112
112
  onCompositionStart: props.onCompositionStart,
113
- onCompositionEnd: props.onCompositionEnd
113
+ onCompositionEnd: props.onCompositionEnd,
114
+ onClick: props.onClick
114
115
  }), props.clearable && !!value && !props.readOnly && hasFocus && React.createElement("div", {
115
116
  className: `${classPrefix}-clear`,
116
117
  onMouseDown: e => {
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from 'react';
1
+ import React, { FC, ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  export declare type JumboTabProps = {
4
4
  title: ReactNode;
@@ -6,11 +6,13 @@ export declare type JumboTabProps = {
6
6
  disabled?: boolean;
7
7
  forceRender?: boolean;
8
8
  destroyOnClose?: boolean;
9
+ children?: React.ReactNode;
9
10
  } & NativeProps;
10
11
  export declare const JumboTab: FC<JumboTabProps>;
11
12
  export declare type JumboTabsProps = {
12
13
  activeKey?: string | null;
13
14
  defaultActiveKey?: string | null;
14
15
  onChange?: (key: string) => void;
16
+ children?: React.ReactNode;
15
17
  } & NativeProps;
16
18
  export declare const JumboTabs: FC<JumboTabsProps>;
@@ -49,6 +49,7 @@
49
49
  display: block;
50
50
  padding-left: var(--padding-left);
51
51
  position: relative;
52
+ background-color: #ffffff;
52
53
  }
53
54
 
54
55
  .adm-list-item-title,
@@ -3,5 +3,6 @@ import { NativeProps } from '../../utils/native-props';
3
3
  export declare type ListProps = {
4
4
  header?: ReactNode;
5
5
  mode?: 'default' | 'card';
6
+ children?: ReactNode;
6
7
  } & NativeProps<'--header-font-size' | '--prefix-width' | '--prefix-padding-right' | '--align-items' | '--active-background-color' | '--border-inner' | '--border-top' | '--border-bottom' | '--padding-left' | '--padding-right' | '--font-size'>;
7
8
  export declare const List: FC<ListProps>;
@@ -16,6 +16,7 @@
16
16
  z-index: 0;
17
17
  width: 100%;
18
18
  height: 100%;
19
+ pointer-events: none;
19
20
  }
20
21
 
21
22
  .adm-mask-content {
@@ -14,5 +14,6 @@ export declare type MaskProps = {
14
14
  afterShow?: () => void;
15
15
  afterClose?: () => void;
16
16
  stopPropagation?: PropagationEvent[];
17
+ children?: React.ReactNode;
17
18
  } & NativeProps<'--z-index'>;
18
19
  export declare const Mask: React.FC<MaskProps>;
@@ -76,7 +76,14 @@ export const Mask = p => {
76
76
  opacity
77
77
  }, props.style), {
78
78
  display: active ? 'unset' : 'none'
79
- })
79
+ }),
80
+ onClick: e => {
81
+ var _a;
82
+
83
+ if (e.target === e.currentTarget) {
84
+ (_a = props.onMaskClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
85
+ }
86
+ }
80
87
  }, props.onMaskClick && React.createElement("div", {
81
88
  className: `${classPrefix}-aria-button`,
82
89
  role: 'button',
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from 'react';
1
+ import React, { FC, ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  export declare type NavBarProps = {
4
4
  back?: string | null;
@@ -6,5 +6,6 @@ export declare type NavBarProps = {
6
6
  left?: ReactNode;
7
7
  right?: ReactNode;
8
8
  onBack?: () => void;
9
+ children?: React.ReactNode;
9
10
  } & NativeProps<'--height' | '--border-bottom'>;
10
11
  export declare const NavBar: FC<NavBarProps>;
@@ -17,5 +17,6 @@ export declare type PickerProps = {
17
17
  cancelText?: ReactNode;
18
18
  children?: (items: (PickerColumnItem | null)[]) => ReactNode;
19
19
  renderLabel?: (item: PickerColumnItem) => ReactNode;
20
+ mouseWheel?: boolean;
20
21
  } & Pick<PopupProps, 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'stopPropagation'> & NativeProps<'--header-button-font-size' | '--title-font-size' | '--item-font-size' | '--item-height'>;
21
22
  export declare const Picker: React.NamedExoticComponent<PickerProps>;
@@ -82,6 +82,7 @@ export const Picker = memo(p => {
82
82
  columns: props.columns,
83
83
  renderLabel: props.renderLabel,
84
84
  value: innerValue,
85
+ mouseWheel: props.mouseWheel,
85
86
  onChange: onChange
86
87
  }))));
87
88
  const popupElement = React.createElement(Popup, {
@@ -16,6 +16,7 @@ export declare type PickerViewProps = {
16
16
  columns: PickerColumn[] | ((value: PickerValue[]) => PickerColumn[]);
17
17
  value?: PickerValue[];
18
18
  defaultValue?: PickerValue[];
19
+ mouseWheel?: boolean;
19
20
  onChange?: (value: PickerValue[], extend: PickerValueExtend) => void;
20
21
  } & Pick<PickerProps, 'renderLabel'> & NativeProps<'--height' | '--item-height' | '--item-font-size'>;
21
22
  export declare const PickerView: React.NamedExoticComponent<PickerViewProps>;
@@ -8,7 +8,8 @@ import { defaultRenderLabel } from '../picker/picker-utils';
8
8
  const classPrefix = `adm-picker-view`;
9
9
  const defaultProps = {
10
10
  defaultValue: [],
11
- renderLabel: defaultRenderLabel
11
+ renderLabel: defaultRenderLabel,
12
+ mouseWheel: false
12
13
  };
13
14
  export const PickerView = memo(p => {
14
15
  const props = mergeProps(defaultProps, p);
@@ -58,7 +59,8 @@ export const PickerView = memo(p => {
58
59
  column: column,
59
60
  value: innerValue[index],
60
61
  onSelect: handleSelect,
61
- renderLabel: props.renderLabel
62
+ renderLabel: props.renderLabel,
63
+ mouseWheel: props.mouseWheel
62
64
  })), React.createElement("div", {
63
65
  className: `${classPrefix}-mask`
64
66
  }, React.createElement("div", {
@@ -6,6 +6,7 @@ declare type Props = {
6
6
  value: PickerValue;
7
7
  onSelect: (value: PickerValue, index: number) => void;
8
8
  renderLabel: (item: PickerColumnItem) => ReactNode;
9
+ mouseWheel: boolean;
9
10
  };
10
11
  export declare const Wheel: React.NamedExoticComponent<Props>;
11
12
  export {};