antd-mobile 5.26.0 → 5.28.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 (348) hide show
  1. package/2x/README.md +6 -22
  2. package/2x/bundle/antd-mobile.cjs.development.js +1577 -1748
  3. package/2x/bundle/antd-mobile.cjs.js +9 -8
  4. package/2x/bundle/antd-mobile.es.development.js +1440 -1611
  5. package/2x/bundle/antd-mobile.es.js +6246 -6385
  6. package/2x/bundle/antd-mobile.umd.development.js +1573 -1744
  7. package/2x/bundle/antd-mobile.umd.js +9 -8
  8. package/2x/bundle/css-vars-patch.css +4 -0
  9. package/2x/cjs/components/action-sheet/index.d.ts +0 -1
  10. package/2x/cjs/components/badge/index.d.ts +0 -1
  11. package/2x/cjs/components/calendar/calendar.d.ts +1 -0
  12. package/2x/cjs/components/calendar/calendar.js +1 -1
  13. package/2x/cjs/components/capsule-tabs/index.d.ts +0 -1
  14. package/2x/cjs/components/cascade-picker/index.d.ts +0 -1
  15. package/2x/cjs/components/cascader/cascader.patch.css +3 -0
  16. package/2x/cjs/components/cascader/index.d.ts +0 -1
  17. package/2x/cjs/components/cascader-view/index.d.ts +0 -1
  18. package/2x/cjs/components/check-list/index.d.ts +0 -1
  19. package/2x/cjs/components/checkbox/group-context.d.ts +0 -1
  20. package/2x/cjs/components/checkbox/index.d.ts +0 -1
  21. package/2x/cjs/components/collapse/index.d.ts +0 -1
  22. package/2x/cjs/components/date-picker/date-picker-date-utils.d.ts +2 -3
  23. package/2x/cjs/components/date-picker/date-picker-date-utils.js +14 -12
  24. package/2x/cjs/components/date-picker/date-picker-utils.d.ts +2 -3
  25. package/2x/cjs/components/date-picker/date-picker-utils.js +11 -12
  26. package/2x/cjs/components/date-picker/date-picker-week-utils.d.ts +0 -1
  27. package/2x/cjs/components/date-picker/date-picker-week-utils.js +0 -4
  28. package/2x/cjs/components/date-picker/date-picker.d.ts +20 -16
  29. package/2x/cjs/components/date-picker/date-picker.js +12 -3
  30. package/2x/cjs/components/date-picker/index.d.ts +10 -9
  31. package/2x/cjs/components/date-picker/index.js +3 -1
  32. package/2x/cjs/components/date-picker/prompt.d.ts +2 -1
  33. package/2x/cjs/components/date-picker/util.d.ts +4 -0
  34. package/2x/cjs/components/date-picker/util.js +8 -0
  35. package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +2 -1
  36. package/2x/cjs/components/date-picker-view/date-picker-view.js +7 -3
  37. package/2x/cjs/components/date-picker-view/useRenderLabel.d.ts +2 -0
  38. package/2x/cjs/components/date-picker-view/useRenderLabel.js +29 -0
  39. package/2x/cjs/components/dialog/index.d.ts +0 -1
  40. package/2x/cjs/components/dropdown/index.d.ts +0 -1
  41. package/2x/cjs/components/error-block/error-block.d.ts +0 -1
  42. package/2x/cjs/components/error-block/images/busy.d.ts +0 -1
  43. package/2x/cjs/components/error-block/images/default.d.ts +0 -1
  44. package/2x/cjs/components/error-block/images/disconnected.d.ts +0 -1
  45. package/2x/cjs/components/error-block/images/empty.d.ts +0 -1
  46. package/2x/cjs/components/footer/footer.js +3 -3
  47. package/2x/cjs/components/form/index.d.ts +0 -1
  48. package/2x/cjs/components/grid/index.d.ts +0 -1
  49. package/2x/cjs/components/image-uploader/image-uploader.js +6 -3
  50. package/2x/cjs/components/image-viewer/index.d.ts +0 -1
  51. package/2x/cjs/components/index-bar/index.d.ts +0 -1
  52. package/2x/cjs/components/input/input.js +1 -0
  53. package/2x/cjs/components/jumbo-tabs/index.d.ts +0 -1
  54. package/2x/cjs/components/list/index.d.ts +0 -1
  55. package/2x/cjs/components/modal/index.d.ts +0 -1
  56. package/2x/cjs/components/popover/index.d.ts +0 -1
  57. package/2x/cjs/components/radio/group-context.d.ts +0 -1
  58. package/2x/cjs/components/radio/index.d.ts +0 -1
  59. package/2x/cjs/components/result-page/index.d.ts +0 -1
  60. package/2x/cjs/components/side-bar/index.d.ts +0 -1
  61. package/2x/cjs/components/skeleton/index.d.ts +0 -1
  62. package/2x/cjs/components/slider/slider.js +8 -3
  63. package/2x/cjs/components/stepper/stepper.d.ts +23 -16
  64. package/2x/cjs/components/stepper/stepper.js +69 -35
  65. package/2x/cjs/components/steps/index.d.ts +0 -1
  66. package/2x/cjs/components/swiper/index.d.ts +1 -1
  67. package/2x/cjs/components/swiper/swiper.d.ts +9 -0
  68. package/2x/cjs/components/swiper/swiper.js +18 -2
  69. package/2x/cjs/components/tab-bar/index.d.ts +0 -1
  70. package/2x/cjs/components/tabs/index.d.ts +0 -1
  71. package/2x/cjs/components/tree-select/index.d.ts +0 -1
  72. package/2x/cjs/global/css-vars-patch.css +4 -0
  73. package/2x/cjs/locales/base.d.ts +3 -0
  74. package/2x/cjs/locales/base.js +3 -0
  75. package/2x/cjs/locales/en-US.d.ts +3 -0
  76. package/2x/cjs/locales/es-ES.d.ts +3 -0
  77. package/2x/cjs/locales/fa-IR.d.ts +3 -0
  78. package/2x/cjs/locales/fr-FR.d.ts +3 -0
  79. package/2x/cjs/locales/id-ID.d.ts +3 -0
  80. package/2x/cjs/locales/ja-JP.d.ts +3 -0
  81. package/2x/cjs/locales/kk-KZ.d.ts +3 -0
  82. package/2x/cjs/locales/ko-KR.d.ts +3 -0
  83. package/2x/cjs/locales/zh-CN.d.ts +3 -0
  84. package/2x/cjs/locales/zh-CN.js +3 -0
  85. package/2x/cjs/locales/zh-HK.d.ts +3 -0
  86. package/2x/cjs/locales/zh-TW.d.ts +3 -0
  87. package/2x/cjs/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  88. package/2x/cjs/utils/use-ref-state.d.ts +0 -1
  89. package/2x/cjs/utils/with-func-props.d.ts +5 -0
  90. package/2x/cjs/utils/with-func-props.js +25 -0
  91. package/2x/es/components/action-sheet/index.d.ts +0 -1
  92. package/2x/es/components/badge/index.d.ts +0 -1
  93. package/2x/es/components/calendar/calendar.d.ts +1 -0
  94. package/2x/es/components/calendar/calendar.js +1 -1
  95. package/2x/es/components/capsule-tabs/index.d.ts +0 -1
  96. package/2x/es/components/cascade-picker/index.d.ts +0 -1
  97. package/2x/es/components/cascader/cascader.patch.css +3 -0
  98. package/2x/es/components/cascader/index.d.ts +0 -1
  99. package/2x/es/components/cascader-view/index.d.ts +0 -1
  100. package/2x/es/components/check-list/index.d.ts +0 -1
  101. package/2x/es/components/checkbox/group-context.d.ts +0 -1
  102. package/2x/es/components/checkbox/index.d.ts +0 -1
  103. package/2x/es/components/collapse/index.d.ts +0 -1
  104. package/2x/es/components/date-picker/date-picker-date-utils.d.ts +2 -3
  105. package/2x/es/components/date-picker/date-picker-date-utils.js +14 -11
  106. package/2x/es/components/date-picker/date-picker-utils.d.ts +2 -3
  107. package/2x/es/components/date-picker/date-picker-utils.js +9 -9
  108. package/2x/es/components/date-picker/date-picker-week-utils.d.ts +0 -1
  109. package/2x/es/components/date-picker/date-picker-week-utils.js +0 -3
  110. package/2x/es/components/date-picker/date-picker.d.ts +20 -16
  111. package/2x/es/components/date-picker/date-picker.js +13 -4
  112. package/2x/es/components/date-picker/index.d.ts +10 -9
  113. package/2x/es/components/date-picker/index.js +3 -1
  114. package/2x/es/components/date-picker/prompt.d.ts +2 -1
  115. package/2x/es/components/date-picker/util.d.ts +4 -0
  116. package/2x/es/components/date-picker/util.js +1 -0
  117. package/2x/es/components/date-picker-view/date-picker-view.d.ts +2 -1
  118. package/2x/es/components/date-picker-view/date-picker-view.js +8 -4
  119. package/2x/es/components/date-picker-view/useRenderLabel.d.ts +2 -0
  120. package/2x/es/components/date-picker-view/useRenderLabel.js +23 -0
  121. package/2x/es/components/dialog/index.d.ts +0 -1
  122. package/2x/es/components/dropdown/index.d.ts +0 -1
  123. package/2x/es/components/error-block/error-block.d.ts +0 -1
  124. package/2x/es/components/error-block/images/busy.d.ts +0 -1
  125. package/2x/es/components/error-block/images/default.d.ts +0 -1
  126. package/2x/es/components/error-block/images/disconnected.d.ts +0 -1
  127. package/2x/es/components/error-block/images/empty.d.ts +0 -1
  128. package/2x/es/components/footer/footer.js +1 -1
  129. package/2x/es/components/form/index.d.ts +0 -1
  130. package/2x/es/components/grid/index.d.ts +0 -1
  131. package/2x/es/components/image-uploader/image-uploader.js +6 -3
  132. package/2x/es/components/image-viewer/index.d.ts +0 -1
  133. package/2x/es/components/index-bar/index.d.ts +0 -1
  134. package/2x/es/components/input/input.js +1 -0
  135. package/2x/es/components/jumbo-tabs/index.d.ts +0 -1
  136. package/2x/es/components/list/index.d.ts +0 -1
  137. package/2x/es/components/modal/index.d.ts +0 -1
  138. package/2x/es/components/popover/index.d.ts +0 -1
  139. package/2x/es/components/radio/group-context.d.ts +0 -1
  140. package/2x/es/components/radio/index.d.ts +0 -1
  141. package/2x/es/components/result-page/index.d.ts +0 -1
  142. package/2x/es/components/side-bar/index.d.ts +0 -1
  143. package/2x/es/components/skeleton/index.d.ts +0 -1
  144. package/2x/es/components/slider/slider.js +8 -3
  145. package/2x/es/components/stepper/stepper.d.ts +23 -16
  146. package/2x/es/components/stepper/stepper.js +68 -33
  147. package/2x/es/components/steps/index.d.ts +0 -1
  148. package/2x/es/components/swiper/index.d.ts +1 -1
  149. package/2x/es/components/swiper/swiper.d.ts +9 -0
  150. package/2x/es/components/swiper/swiper.js +18 -2
  151. package/2x/es/components/tab-bar/index.d.ts +0 -1
  152. package/2x/es/components/tabs/index.d.ts +0 -1
  153. package/2x/es/components/tree-select/index.d.ts +0 -1
  154. package/2x/es/global/css-vars-patch.css +4 -0
  155. package/2x/es/locales/base.d.ts +3 -0
  156. package/2x/es/locales/base.js +3 -0
  157. package/2x/es/locales/en-US.d.ts +3 -0
  158. package/2x/es/locales/es-ES.d.ts +3 -0
  159. package/2x/es/locales/fa-IR.d.ts +3 -0
  160. package/2x/es/locales/fr-FR.d.ts +3 -0
  161. package/2x/es/locales/id-ID.d.ts +3 -0
  162. package/2x/es/locales/ja-JP.d.ts +3 -0
  163. package/2x/es/locales/kk-KZ.d.ts +3 -0
  164. package/2x/es/locales/ko-KR.d.ts +3 -0
  165. package/2x/es/locales/zh-CN.d.ts +3 -0
  166. package/2x/es/locales/zh-CN.js +3 -0
  167. package/2x/es/locales/zh-HK.d.ts +3 -0
  168. package/2x/es/locales/zh-TW.d.ts +3 -0
  169. package/2x/es/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  170. package/2x/es/utils/use-ref-state.d.ts +0 -1
  171. package/2x/es/utils/with-func-props.d.ts +5 -0
  172. package/2x/es/utils/with-func-props.js +19 -0
  173. package/2x/package.json +3 -2
  174. package/README.md +6 -22
  175. package/bundle/antd-mobile.cjs.development.js +1577 -1748
  176. package/bundle/antd-mobile.cjs.js +9 -8
  177. package/bundle/antd-mobile.compatible.umd.js +1 -1
  178. package/bundle/antd-mobile.es.development.js +1440 -1611
  179. package/bundle/antd-mobile.es.js +6246 -6385
  180. package/bundle/antd-mobile.umd.development.js +1573 -1744
  181. package/bundle/antd-mobile.umd.js +9 -8
  182. package/bundle/css-vars-patch.css +3 -0
  183. package/cjs/components/action-sheet/index.d.ts +0 -1
  184. package/cjs/components/badge/index.d.ts +0 -1
  185. package/cjs/components/calendar/calendar.d.ts +1 -0
  186. package/cjs/components/calendar/calendar.js +1 -1
  187. package/cjs/components/capsule-tabs/index.d.ts +0 -1
  188. package/cjs/components/cascade-picker/index.d.ts +0 -1
  189. package/cjs/components/cascader/cascader.patch.css +3 -0
  190. package/cjs/components/cascader/index.d.ts +0 -1
  191. package/cjs/components/cascader-view/index.d.ts +0 -1
  192. package/cjs/components/check-list/index.d.ts +0 -1
  193. package/cjs/components/checkbox/group-context.d.ts +0 -1
  194. package/cjs/components/checkbox/index.d.ts +0 -1
  195. package/cjs/components/collapse/index.d.ts +0 -1
  196. package/cjs/components/date-picker/date-picker-date-utils.d.ts +2 -3
  197. package/cjs/components/date-picker/date-picker-date-utils.js +14 -12
  198. package/cjs/components/date-picker/date-picker-utils.d.ts +2 -3
  199. package/cjs/components/date-picker/date-picker-utils.js +11 -12
  200. package/cjs/components/date-picker/date-picker-week-utils.d.ts +0 -1
  201. package/cjs/components/date-picker/date-picker-week-utils.js +0 -4
  202. package/cjs/components/date-picker/date-picker.d.ts +20 -16
  203. package/cjs/components/date-picker/date-picker.js +12 -3
  204. package/cjs/components/date-picker/index.d.ts +10 -9
  205. package/cjs/components/date-picker/index.js +3 -1
  206. package/cjs/components/date-picker/prompt.d.ts +2 -1
  207. package/cjs/components/date-picker/util.d.ts +4 -0
  208. package/cjs/components/date-picker/util.js +8 -0
  209. package/cjs/components/date-picker-view/date-picker-view.d.ts +2 -1
  210. package/cjs/components/date-picker-view/date-picker-view.js +7 -3
  211. package/cjs/components/date-picker-view/useRenderLabel.d.ts +2 -0
  212. package/cjs/components/date-picker-view/useRenderLabel.js +29 -0
  213. package/cjs/components/dialog/index.d.ts +0 -1
  214. package/cjs/components/dropdown/index.d.ts +0 -1
  215. package/cjs/components/error-block/error-block.d.ts +0 -1
  216. package/cjs/components/error-block/images/busy.d.ts +0 -1
  217. package/cjs/components/error-block/images/default.d.ts +0 -1
  218. package/cjs/components/error-block/images/disconnected.d.ts +0 -1
  219. package/cjs/components/error-block/images/empty.d.ts +0 -1
  220. package/cjs/components/footer/footer.js +3 -3
  221. package/cjs/components/form/index.d.ts +0 -1
  222. package/cjs/components/grid/index.d.ts +0 -1
  223. package/cjs/components/image-uploader/image-uploader.js +6 -3
  224. package/cjs/components/image-viewer/index.d.ts +0 -1
  225. package/cjs/components/index-bar/index.d.ts +0 -1
  226. package/cjs/components/input/input.js +1 -0
  227. package/cjs/components/jumbo-tabs/index.d.ts +0 -1
  228. package/cjs/components/list/index.d.ts +0 -1
  229. package/cjs/components/modal/index.d.ts +0 -1
  230. package/cjs/components/popover/index.d.ts +0 -1
  231. package/cjs/components/radio/group-context.d.ts +0 -1
  232. package/cjs/components/radio/index.d.ts +0 -1
  233. package/cjs/components/result-page/index.d.ts +0 -1
  234. package/cjs/components/side-bar/index.d.ts +0 -1
  235. package/cjs/components/skeleton/index.d.ts +0 -1
  236. package/cjs/components/slider/slider.js +8 -3
  237. package/cjs/components/stepper/stepper.d.ts +23 -16
  238. package/cjs/components/stepper/stepper.js +69 -35
  239. package/cjs/components/steps/index.d.ts +0 -1
  240. package/cjs/components/swiper/index.d.ts +1 -1
  241. package/cjs/components/swiper/swiper.d.ts +9 -0
  242. package/cjs/components/swiper/swiper.js +18 -2
  243. package/cjs/components/tab-bar/index.d.ts +0 -1
  244. package/cjs/components/tabs/index.d.ts +0 -1
  245. package/cjs/components/tree-select/index.d.ts +0 -1
  246. package/cjs/global/css-vars-patch.css +3 -0
  247. package/cjs/locales/base.d.ts +3 -0
  248. package/cjs/locales/base.js +3 -0
  249. package/cjs/locales/en-US.d.ts +3 -0
  250. package/cjs/locales/es-ES.d.ts +3 -0
  251. package/cjs/locales/fa-IR.d.ts +3 -0
  252. package/cjs/locales/fr-FR.d.ts +3 -0
  253. package/cjs/locales/id-ID.d.ts +3 -0
  254. package/cjs/locales/ja-JP.d.ts +3 -0
  255. package/cjs/locales/kk-KZ.d.ts +3 -0
  256. package/cjs/locales/ko-KR.d.ts +3 -0
  257. package/cjs/locales/zh-CN.d.ts +3 -0
  258. package/cjs/locales/zh-CN.js +3 -0
  259. package/cjs/locales/zh-HK.d.ts +3 -0
  260. package/cjs/locales/zh-TW.d.ts +3 -0
  261. package/cjs/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  262. package/cjs/utils/use-ref-state.d.ts +0 -1
  263. package/cjs/utils/with-func-props.d.ts +5 -0
  264. package/cjs/utils/with-func-props.js +25 -0
  265. package/es/components/action-sheet/index.d.ts +0 -1
  266. package/es/components/badge/index.d.ts +0 -1
  267. package/es/components/calendar/calendar.d.ts +1 -0
  268. package/es/components/calendar/calendar.js +1 -1
  269. package/es/components/capsule-tabs/index.d.ts +0 -1
  270. package/es/components/cascade-picker/index.d.ts +0 -1
  271. package/es/components/cascader/cascader.patch.css +3 -0
  272. package/es/components/cascader/index.d.ts +0 -1
  273. package/es/components/cascader-view/index.d.ts +0 -1
  274. package/es/components/check-list/index.d.ts +0 -1
  275. package/es/components/checkbox/group-context.d.ts +0 -1
  276. package/es/components/checkbox/index.d.ts +0 -1
  277. package/es/components/collapse/index.d.ts +0 -1
  278. package/es/components/date-picker/date-picker-date-utils.d.ts +2 -3
  279. package/es/components/date-picker/date-picker-date-utils.js +14 -11
  280. package/es/components/date-picker/date-picker-utils.d.ts +2 -3
  281. package/es/components/date-picker/date-picker-utils.js +9 -9
  282. package/es/components/date-picker/date-picker-week-utils.d.ts +0 -1
  283. package/es/components/date-picker/date-picker-week-utils.js +0 -3
  284. package/es/components/date-picker/date-picker.d.ts +20 -16
  285. package/es/components/date-picker/date-picker.js +13 -4
  286. package/es/components/date-picker/index.d.ts +10 -9
  287. package/es/components/date-picker/index.js +3 -1
  288. package/es/components/date-picker/prompt.d.ts +2 -1
  289. package/es/components/date-picker/util.d.ts +4 -0
  290. package/es/components/date-picker/util.js +1 -0
  291. package/es/components/date-picker-view/date-picker-view.d.ts +2 -1
  292. package/es/components/date-picker-view/date-picker-view.js +8 -4
  293. package/es/components/date-picker-view/useRenderLabel.d.ts +2 -0
  294. package/es/components/date-picker-view/useRenderLabel.js +23 -0
  295. package/es/components/dialog/index.d.ts +0 -1
  296. package/es/components/dropdown/index.d.ts +0 -1
  297. package/es/components/error-block/error-block.d.ts +0 -1
  298. package/es/components/error-block/images/busy.d.ts +0 -1
  299. package/es/components/error-block/images/default.d.ts +0 -1
  300. package/es/components/error-block/images/disconnected.d.ts +0 -1
  301. package/es/components/error-block/images/empty.d.ts +0 -1
  302. package/es/components/footer/footer.js +1 -1
  303. package/es/components/form/index.d.ts +0 -1
  304. package/es/components/grid/index.d.ts +0 -1
  305. package/es/components/image-uploader/image-uploader.js +6 -3
  306. package/es/components/image-viewer/index.d.ts +0 -1
  307. package/es/components/index-bar/index.d.ts +0 -1
  308. package/es/components/input/input.js +1 -0
  309. package/es/components/jumbo-tabs/index.d.ts +0 -1
  310. package/es/components/list/index.d.ts +0 -1
  311. package/es/components/modal/index.d.ts +0 -1
  312. package/es/components/popover/index.d.ts +0 -1
  313. package/es/components/radio/group-context.d.ts +0 -1
  314. package/es/components/radio/index.d.ts +0 -1
  315. package/es/components/result-page/index.d.ts +0 -1
  316. package/es/components/side-bar/index.d.ts +0 -1
  317. package/es/components/skeleton/index.d.ts +0 -1
  318. package/es/components/slider/slider.js +8 -3
  319. package/es/components/stepper/stepper.d.ts +23 -16
  320. package/es/components/stepper/stepper.js +68 -33
  321. package/es/components/steps/index.d.ts +0 -1
  322. package/es/components/swiper/index.d.ts +1 -1
  323. package/es/components/swiper/swiper.d.ts +9 -0
  324. package/es/components/swiper/swiper.js +18 -2
  325. package/es/components/tab-bar/index.d.ts +0 -1
  326. package/es/components/tabs/index.d.ts +0 -1
  327. package/es/components/tree-select/index.d.ts +0 -1
  328. package/es/global/css-vars-patch.css +3 -0
  329. package/es/locales/base.d.ts +3 -0
  330. package/es/locales/base.js +3 -0
  331. package/es/locales/en-US.d.ts +3 -0
  332. package/es/locales/es-ES.d.ts +3 -0
  333. package/es/locales/fa-IR.d.ts +3 -0
  334. package/es/locales/fr-FR.d.ts +3 -0
  335. package/es/locales/id-ID.d.ts +3 -0
  336. package/es/locales/ja-JP.d.ts +3 -0
  337. package/es/locales/kk-KZ.d.ts +3 -0
  338. package/es/locales/ko-KR.d.ts +3 -0
  339. package/es/locales/zh-CN.d.ts +3 -0
  340. package/es/locales/zh-CN.js +3 -0
  341. package/es/locales/zh-HK.d.ts +3 -0
  342. package/es/locales/zh-TW.d.ts +3 -0
  343. package/es/utils/use-isomorphic-update-layout-effect.d.ts +0 -1
  344. package/es/utils/use-ref-state.d.ts +0 -1
  345. package/es/utils/with-func-props.d.ts +5 -0
  346. package/es/utils/with-func-props.js +19 -0
  347. package/package.json +3 -2
  348. package/umd/antd-mobile.js +1 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './image-viewer.less';
3
2
  import { showMultiImageViewer, showImageViewer, clearImageViewer } from './methods';
4
3
  export type { ImageViewerProps, MultiImageViewerProps, MultiImageViewerRef, } from './image-viewer';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index-bar.less';
3
2
  export type { IndexBarProps, IndexBarRef } from './index-bar';
4
3
  export type { IndexBarPanelProps } from './panel';
@@ -129,6 +129,7 @@ const Input = (0, _react.forwardRef)((p, ref) => {
129
129
  (_a = props.onCompositionEnd) === null || _a === void 0 ? void 0 : _a.call(props, e);
130
130
  },
131
131
  onClick: props.onClick,
132
+ step: props.step,
132
133
  role: props.role,
133
134
  "aria-valuenow": props['aria-valuenow'],
134
135
  "aria-valuemax": props['aria-valuemax'],
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './jumbo-tabs.less';
3
2
  export type { JumboTabsProps, JumboTabProps } from './jumbo-tabs';
4
3
  declare const _default: import("react").FC<import("./jumbo-tabs").JumboTabsProps> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './list.less';
3
2
  export type { ListProps, ListRef } from './list';
4
3
  export type { ListItemProps } from './list-item';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './modal.less';
3
2
  import { show } from './show';
4
3
  import { alert } from './alert';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './popover.less';
3
2
  import './popover-menu.less';
4
3
  export type { PopoverProps, PopoverRef } from './popover';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioValue } from '.';
3
2
  export declare const RadioGroupContext: import("react").Context<{
4
3
  value: RadioValue[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './radio.less';
3
2
  export type { RadioProps, RadioValue } from './radio';
4
3
  export type { RadioGroupProps } from './group';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './result-page.less';
3
2
  export type { ResultPageProps } from './result-page';
4
3
  declare const _default: import("react").FC<import("./result-page").ResultPageProps> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './side-bar.less';
3
2
  export type { SideBarProps, SideBarItemProps } from './side-bar';
4
3
  declare const _default: import("react").FC<import("./side-bar").SideBarProps> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './skeleton.less';
3
2
  export type { SkeletonProps, SkeletonTitleProps } from './skeleton';
4
3
  declare const _default: import("react").FC<import("./skeleton").SkeletonProps> & {
@@ -9,12 +9,12 @@ var _nativeProps = require("../../utils/native-props");
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _ticks = _interopRequireDefault(require("./ticks"));
11
11
  var _marks = _interopRequireDefault(require("./marks"));
12
+ var _miniDecimal = _interopRequireWildcard(require("@rc-component/mini-decimal"));
12
13
  var _thumb = _interopRequireDefault(require("./thumb"));
13
14
  var _withDefaultProps = require("../../utils/with-default-props");
14
15
  var _nearest = require("../../utils/nearest");
15
16
  var _usePropsValue = require("../../utils/use-props-value");
16
17
  var _devLog = require("../../utils/dev-log");
17
- var _big = _interopRequireDefault(require("big.js"));
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -47,9 +47,14 @@ const Slider = p => {
47
47
  function convertValue(value) {
48
48
  return props.range ? value : [props.min, value];
49
49
  }
50
+ function alignValue(value, decimalLen) {
51
+ const decimal = (0, _miniDecimal.default)(value);
52
+ const fixedStr = (0, _miniDecimal.toFixed)(decimal.toString(), '.', decimalLen);
53
+ return (0, _miniDecimal.default)(fixedStr).toNumber();
54
+ }
50
55
  function reverseValue(value) {
51
56
  const mergedDecimalLen = Math.max(getDecimalLen(step), getDecimalLen(value[0]), getDecimalLen(value[1]));
52
- return props.range ? value.map(v => (0, _big.default)((0, _big.default)(v).toFixed(mergedDecimalLen)).toNumber()) : (0, _big.default)((0, _big.default)(value[1]).toFixed(mergedDecimalLen)).toNumber();
57
+ return props.range ? value.map(v => alignValue(v, mergedDecimalLen)) : alignValue(value[1], mergedDecimalLen);
53
58
  }
54
59
  function getDecimalLen(n) {
55
60
  return (`${n}`.split('.')[1] || '').length;
@@ -84,7 +89,7 @@ const Slider = p => {
84
89
  return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
85
90
  } else {
86
91
  const points = [];
87
- for (let i = (0, _big.default)(min); i.lte(max); i = i.plus(step)) {
92
+ for (let i = (0, _miniDecimal.default)(min); i.lessEquals((0, _miniDecimal.default)(max)); i = i.add(step)) {
88
93
  points.push(i.toNumber());
89
94
  }
90
95
  return points;
@@ -1,27 +1,34 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  import { InputProps } from '../input';
4
- declare type ValueProps = {
4
+ declare type ValueProps<ValueType> = {
5
5
  allowEmpty: true;
6
- value?: number | null;
7
- defaultValue?: number | null;
8
- onChange?: (value: number | null) => void;
6
+ value?: ValueType | null;
7
+ defaultValue?: ValueType | null;
8
+ onChange?: (value: ValueType | null) => void;
9
9
  };
10
- declare type ValuePropsWithNull = {
10
+ declare type ValuePropsWithNull<ValueType> = {
11
11
  allowEmpty?: false;
12
- value?: number;
13
- defaultValue?: number;
14
- onChange?: (value: number) => void;
12
+ value?: ValueType;
13
+ defaultValue?: ValueType;
14
+ onChange?: (value: ValueType) => void;
15
15
  };
16
- export declare type StepperProps = Pick<InputProps, 'onFocus' | 'onBlur'> & (ValuePropsWithNull | ValueProps) & {
17
- min?: number;
18
- max?: number;
19
- step?: number;
16
+ export declare type BaseStepperProps<ValueType> = Pick<InputProps, 'onFocus' | 'onBlur'> & (ValuePropsWithNull<ValueType> | ValueProps<ValueType>) & {
17
+ min?: ValueType;
18
+ max?: ValueType;
19
+ step?: ValueType;
20
20
  digits?: number;
21
21
  disabled?: boolean;
22
22
  inputReadOnly?: boolean;
23
- parser?: (text: string) => number;
24
- formatter?: (value?: number) => string;
23
+ parser?: (text: string) => ValueType;
24
+ formatter?: (value?: ValueType) => string;
25
25
  } & NativeProps<'--height' | '--input-width' | '--input-font-size' | '--input-background-color' | '--border-radius' | '--border' | '--border-inner' | '--active-border' | '--button-font-size' | '--button-background-color' | '--button-width' | '--input-font-color' | '--button-text-color'>;
26
- export declare const Stepper: FC<StepperProps>;
26
+ export declare type NumberStepperProps = BaseStepperProps<number> & {
27
+ stringMode?: false;
28
+ };
29
+ export declare type StringStepperProps = BaseStepperProps<string> & {
30
+ stringMode: true;
31
+ };
32
+ export declare type StepperProps = NumberStepperProps | StringStepperProps;
33
+ export declare function Stepper<ValueType extends number | string>(p: StepperProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
27
34
  export {};
@@ -3,37 +3,39 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Stepper = void 0;
6
+ exports.Stepper = Stepper;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _antdMobileIcons = require("antd-mobile-icons");
10
+ var _useMergedState = _interopRequireDefault(require("rc-util/lib/hooks/useMergedState"));
11
+ var _miniDecimal = _interopRequireWildcard(require("@rc-component/mini-decimal"));
10
12
  var _nativeProps = require("../../utils/native-props");
11
- var _usePropsValue = require("../../utils/use-props-value");
12
13
  var _withDefaultProps = require("../../utils/with-default-props");
13
- var _bound = require("../../utils/bound");
14
14
  var _input = _interopRequireDefault(require("../input"));
15
15
  var _button = _interopRequireDefault(require("../button"));
16
- var _big = _interopRequireDefault(require("big.js"));
17
16
  var _configProvider = require("../config-provider");
18
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
20
  const classPrefix = `adm-stepper`;
22
21
  const defaultProps = {
23
- defaultValue: 0,
24
22
  step: 1,
25
23
  disabled: false,
26
24
  allowEmpty: false
27
25
  };
28
- const Stepper = p => {
26
+ function Stepper(p) {
29
27
  const props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
30
28
  const {
29
+ defaultValue = 0,
30
+ value,
31
+ onChange,
31
32
  disabled,
32
33
  step,
33
34
  max,
34
35
  min,
35
36
  inputReadOnly,
36
37
  digits,
38
+ stringMode,
37
39
  formatter,
38
40
  parser
39
41
  } = props;
@@ -41,44 +43,70 @@ const Stepper = p => {
41
43
  locale
42
44
  } = (0, _configProvider.useConfig)();
43
45
  // ========================== Parse / Format ==========================
46
+ const fixedValue = value => {
47
+ const fixedValue = digits !== undefined ? (0, _miniDecimal.toFixed)(value.toString(), '.', digits) : value;
48
+ return fixedValue.toString();
49
+ };
50
+ const getValueAsType = value => stringMode ? value.toString() : value.toNumber();
44
51
  const parseValue = text => {
45
52
  if (text === '') return null;
46
- return parser ? parser(text) : parseFloat(text);
53
+ if (parser) {
54
+ return String(parser(text));
55
+ }
56
+ const decimal = (0, _miniDecimal.default)(text);
57
+ return decimal.isInvalidate() ? null : decimal.toString();
47
58
  };
48
59
  const formatValue = value => {
49
60
  if (value === null) return '';
50
61
  if (formatter) {
51
62
  return formatter(value);
52
- } else if (digits !== undefined) {
53
- return value.toFixed(digits);
54
63
  } else {
55
- return value.toString();
64
+ return fixedValue(value);
56
65
  }
57
66
  };
58
67
  // ======================== Value & InputValue ========================
59
- const [value, setValue] = (0, _usePropsValue.usePropsValue)(props);
60
- const [inputValue, setInputValue] = (0, _react.useState)(() => formatValue(value));
68
+ const [mergedValue, setMergedValue] = (0, _useMergedState.default)(defaultValue, {
69
+ value,
70
+ onChange: nextValue => {
71
+ onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
72
+ }
73
+ });
74
+ const [inputValue, setInputValue] = (0, _react.useState)(() => formatValue(mergedValue));
61
75
  // >>>>> Value
62
- function setValueWithCheck(v) {
63
- if (isNaN(v)) return;
64
- let target = (0, _bound.bound)(v, props.min, props.max);
76
+ function setValueWithCheck(nextValue) {
77
+ if (nextValue.isNaN()) return;
78
+ let target = nextValue;
79
+ // Put into range
80
+ if (min !== undefined) {
81
+ const minDecimal = (0, _miniDecimal.default)(min);
82
+ if (target.lessEquals(minDecimal)) {
83
+ target = minDecimal;
84
+ }
85
+ }
86
+ if (max !== undefined) {
87
+ const maxDecimal = (0, _miniDecimal.default)(max);
88
+ if (maxDecimal.lessEquals(target)) {
89
+ target = maxDecimal;
90
+ }
91
+ }
92
+ // Fix digits
65
93
  if (digits !== undefined) {
66
- target = parseFloat(target.toFixed(digits));
94
+ target = (0, _miniDecimal.default)(fixedValue(getValueAsType(target)));
67
95
  }
68
- setValue(target);
96
+ setMergedValue(getValueAsType(target));
69
97
  }
70
98
  // >>>>> Input
71
99
  const handleInputChange = v => {
72
100
  setInputValue(v);
73
- const value = parseValue(v);
74
- if (value === null) {
101
+ const valueStr = parseValue(v);
102
+ if (valueStr === null) {
75
103
  if (props.allowEmpty) {
76
- setValue(null);
104
+ setMergedValue(null);
77
105
  } else {
78
- setValue(props.defaultValue);
106
+ setMergedValue(defaultValue);
79
107
  }
80
108
  } else {
81
- setValueWithCheck(value);
109
+ setValueWithCheck((0, _miniDecimal.default)(valueStr));
82
110
  }
83
111
  };
84
112
  // ============================== Focus ===============================
@@ -88,7 +116,7 @@ const Stepper = p => {
88
116
  setFocused(nextFocus);
89
117
  // We will convert value to original text when focus
90
118
  if (nextFocus) {
91
- setInputValue(typeof value === 'number' ? String(value) : '');
119
+ setInputValue(mergedValue !== null && mergedValue !== undefined ? String(mergedValue) : '');
92
120
  }
93
121
  }
94
122
  (0, _react.useEffect)(() => {
@@ -100,29 +128,36 @@ const Stepper = p => {
100
128
  // Focus change to format value
101
129
  (0, _react.useEffect)(() => {
102
130
  if (!focused) {
103
- setInputValue(formatValue(value));
131
+ setInputValue(formatValue(mergedValue));
104
132
  }
105
- }, [focused, value, digits]);
133
+ }, [focused, mergedValue, digits]);
106
134
  // ============================ Operations ============================
135
+ const handleOffset = positive => {
136
+ let stepValue = (0, _miniDecimal.default)(step);
137
+ if (!positive) {
138
+ stepValue = stepValue.negate();
139
+ }
140
+ setValueWithCheck((0, _miniDecimal.default)(mergedValue !== null && mergedValue !== void 0 ? mergedValue : 0).add(stepValue.toString()));
141
+ };
107
142
  const handleMinus = () => {
108
- setValueWithCheck((0, _big.default)(value !== null && value !== void 0 ? value : 0).minus(step).toNumber());
143
+ handleOffset(false);
109
144
  };
110
145
  const handlePlus = () => {
111
- setValueWithCheck((0, _big.default)(value !== null && value !== void 0 ? value : 0).add(step).toNumber());
146
+ handleOffset(true);
112
147
  };
113
148
  const minusDisabled = () => {
114
149
  if (disabled) return true;
115
- if (value === null) return false;
150
+ if (mergedValue === null) return false;
116
151
  if (min !== undefined) {
117
- return value <= min;
152
+ return mergedValue <= min;
118
153
  }
119
154
  return false;
120
155
  };
121
156
  const plusDisabled = () => {
122
157
  if (disabled) return true;
123
- if (value === null) return false;
158
+ if (mergedValue === null) return false;
124
159
  if (max !== undefined) {
125
- return value >= max;
160
+ return mergedValue >= max;
126
161
  }
127
162
  return false;
128
163
  };
@@ -162,8 +197,8 @@ const Stepper = p => {
162
197
  readOnly: inputReadOnly,
163
198
  role: 'spinbutton',
164
199
  "aria-valuenow": Number(inputValue),
165
- "aria-valuemax": max,
166
- "aria-valuemin": min,
200
+ "aria-valuemax": Number(max),
201
+ "aria-valuemin": Number(min),
167
202
  inputMode: 'decimal'
168
203
  })), _react.default.createElement(_button.default, {
169
204
  className: `${classPrefix}-plus`,
@@ -174,5 +209,4 @@ const Stepper = p => {
174
209
  color: 'primary',
175
210
  "aria-label": locale.Stepper.increase
176
211
  }, _react.default.createElement(_antdMobileIcons.AddOutline, null))));
177
- };
178
- exports.Stepper = Stepper;
212
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './steps.less';
3
2
  export type { StepsProps } from './steps';
4
3
  export type { StepProps } from './step';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './swiper.less';
3
2
  export type { SwiperProps, SwiperRef } from './swiper';
4
3
  declare const _default: import("react").ForwardRefExoticComponent<{
@@ -15,6 +14,7 @@ declare const _default: import("react").ForwardRefExoticComponent<{
15
14
  trackOffset?: number | undefined;
16
15
  stuckAtBoundary?: boolean | undefined;
17
16
  rubberband?: boolean | undefined;
17
+ stopPropagation?: ("mousedown" | "mousemove" | "mouseup")[] | undefined;
18
18
  children?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | undefined;
19
19
  } & {
20
20
  className?: string | undefined;
@@ -1,6 +1,12 @@
1
1
  import React, { ReactElement, ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  import { PageIndicatorProps } from '../page-indicator';
4
+ declare const eventToPropRecord: {
5
+ readonly mousedown: "onMouseDown";
6
+ readonly mousemove: "onMouseMove";
7
+ readonly mouseup: "onMouseUp";
8
+ };
9
+ declare type PropagationEvent = keyof typeof eventToPropRecord;
4
10
  export declare type SwiperRef = {
5
11
  swipeTo: (index: number) => void;
6
12
  swipeNext: () => void;
@@ -20,6 +26,7 @@ export declare type SwiperProps = {
20
26
  trackOffset?: number;
21
27
  stuckAtBoundary?: boolean;
22
28
  rubberband?: boolean;
29
+ stopPropagation?: PropagationEvent[];
23
30
  children?: ReactElement | ReactElement[];
24
31
  } & NativeProps<'--height' | '--width' | '--border-radius' | '--track-padding'>;
25
32
  export declare const Swiper: React.ForwardRefExoticComponent<{
@@ -36,9 +43,11 @@ export declare const Swiper: React.ForwardRefExoticComponent<{
36
43
  trackOffset?: number | undefined;
37
44
  stuckAtBoundary?: boolean | undefined;
38
45
  rubberband?: boolean | undefined;
46
+ stopPropagation?: ("mousedown" | "mousemove" | "mouseup")[] | undefined;
39
47
  children?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[] | undefined;
40
48
  } & {
41
49
  className?: string | undefined;
42
50
  style?: (React.CSSProperties & Partial<Record<"--width" | "--height" | "--border-radius" | "--track-padding", string>>) | undefined;
43
51
  tabIndex?: number | undefined;
44
52
  } & React.AriaAttributes & React.RefAttributes<SwiperRef>>;
53
+ export {};
@@ -17,10 +17,16 @@ var _stagedComponents = require("staged-components");
17
17
  var _useRefState = require("../../utils/use-ref-state");
18
18
  var _bound = require("../../utils/bound");
19
19
  var _ahooks = require("ahooks");
20
+ var _withFuncProps = require("../../utils/with-func-props");
20
21
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
22
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
22
23
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
24
  const classPrefix = `adm-swiper`;
25
+ const eventToPropRecord = {
26
+ 'mousedown': 'onMouseDown',
27
+ 'mousemove': 'onMouseMove',
28
+ 'mouseup': 'onMouseUp'
29
+ };
24
30
  const defaultProps = {
25
31
  defaultIndex: 0,
26
32
  allowTouchMove: true,
@@ -31,7 +37,8 @@ const defaultProps = {
31
37
  slideSize: 100,
32
38
  trackOffset: 0,
33
39
  stuckAtBoundary: true,
34
- rubberband: true
40
+ rubberband: true,
41
+ stopPropagation: []
35
42
  };
36
43
  let currentUid;
37
44
  const Swiper = (0, _react.forwardRef)((0, _stagedComponents.staged)((p, ref) => {
@@ -248,6 +255,15 @@ const Swiper = (0, _react.forwardRef)((0, _stagedComponents.staged)((p, ref) =>
248
255
  '--slide-size': `${props.slideSize}%`,
249
256
  '--track-offset': `${props.trackOffset}%`
250
257
  };
258
+ const dragProps = Object.assign({}, props.allowTouchMove ? bind() : {});
259
+ const stopPropagationProps = {};
260
+ for (const key of props.stopPropagation) {
261
+ const prop = eventToPropRecord[key];
262
+ stopPropagationProps[prop] = function (e) {
263
+ e.stopPropagation();
264
+ };
265
+ }
266
+ const mergedProps = (0, _withFuncProps.mergeFuncProps)(dragProps, stopPropagationProps);
251
267
  return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
252
268
  className: (0, _classnames.default)(classPrefix, `${classPrefix}-${props.direction}`),
253
269
  style: style
@@ -262,7 +278,7 @@ const Swiper = (0, _react.forwardRef)((0, _stagedComponents.staged)((p, ref) =>
262
278
  }
263
279
  forceCancelDrag();
264
280
  }
265
- }, props.allowTouchMove ? bind() : {}), renderTrackInner()), props.indicator === undefined ? _react.default.createElement("div", {
281
+ }, mergedProps), renderTrackInner()), props.indicator === undefined ? _react.default.createElement("div", {
266
282
  className: `${classPrefix}-indicator`
267
283
  }, _react.default.createElement(_pageIndicator.default, Object.assign({}, props.indicatorProps, {
268
284
  total: count,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tab-bar.less';
3
2
  export type { TabBarProps, TabBarItemProps } from './tab-bar';
4
3
  declare const _default: import("react").FC<import("./tab-bar").TabBarProps> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tabs.less';
3
2
  export type { TabsProps, TabProps } from './tabs';
4
3
  declare const _default: import("react").FC<import("./tabs").TabsProps> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tree-select.less';
3
2
  export type { TreeSelectProps, TreeSelectOption } from './tree-select';
4
3
  export type { MultipleProps } from './multiple';
@@ -106,6 +106,10 @@
106
106
  border-radius: 0;
107
107
  }
108
108
 
109
+ .adm-cascader .adm-cascader-view-content {
110
+ height: 620px;
111
+ }
112
+
109
113
  .adm-center-popup {
110
114
  z-index: 1000;
111
115
  }
@@ -15,6 +15,9 @@ export declare const base: {
15
15
  Dialog: {
16
16
  ok: string;
17
17
  };
18
+ DatePicker: {
19
+ tillNow: string;
20
+ };
18
21
  ErrorBlock: {
19
22
  default: {
20
23
  title: string;
@@ -22,6 +22,9 @@ const base = {
22
22
  Dialog: {
23
23
  ok: 'OK'
24
24
  },
25
+ DatePicker: {
26
+ tillNow: 'Till Now'
27
+ },
25
28
  ErrorBlock: {
26
29
  default: {
27
30
  title: 'Oops, something went wrong',
@@ -15,6 +15,9 @@ declare const enUS: {
15
15
  Dialog: {
16
16
  ok: string;
17
17
  };
18
+ DatePicker: {
19
+ tillNow: string;
20
+ };
18
21
  ErrorBlock: {
19
22
  default: {
20
23
  title: string;
@@ -15,6 +15,9 @@ declare const esES: {
15
15
  Dialog: {
16
16
  ok: string;
17
17
  };
18
+ DatePicker: {
19
+ tillNow: string;
20
+ };
18
21
  ErrorBlock: {
19
22
  default: {
20
23
  title: string;
@@ -15,6 +15,9 @@ declare const faIR: {
15
15
  Dialog: {
16
16
  ok: string;
17
17
  };
18
+ DatePicker: {
19
+ tillNow: string;
20
+ };
18
21
  ErrorBlock: {
19
22
  default: {
20
23
  title: string;
@@ -15,6 +15,9 @@ declare const frFR: {
15
15
  Dialog: {
16
16
  ok: string;
17
17
  };
18
+ DatePicker: {
19
+ tillNow: string;
20
+ };
18
21
  ErrorBlock: {
19
22
  default: {
20
23
  title: string;
@@ -15,6 +15,9 @@ declare const idID: {
15
15
  Dialog: {
16
16
  ok: string;
17
17
  };
18
+ DatePicker: {
19
+ tillNow: string;
20
+ };
18
21
  ErrorBlock: {
19
22
  default: {
20
23
  title: string;
@@ -15,6 +15,9 @@ declare const jaJP: {
15
15
  Dialog: {
16
16
  ok: string;
17
17
  };
18
+ DatePicker: {
19
+ tillNow: string;
20
+ };
18
21
  ErrorBlock: {
19
22
  default: {
20
23
  title: string;
@@ -15,6 +15,9 @@ declare const kkKZ: {
15
15
  Dialog: {
16
16
  ok: string;
17
17
  };
18
+ DatePicker: {
19
+ tillNow: string;
20
+ };
18
21
  ErrorBlock: {
19
22
  default: {
20
23
  title: string;
@@ -15,6 +15,9 @@ declare const koKR: {
15
15
  Dialog: {
16
16
  ok: string;
17
17
  };
18
+ DatePicker: {
19
+ tillNow: string;
20
+ };
18
21
  ErrorBlock: {
19
22
  default: {
20
23
  title: string;
@@ -15,6 +15,9 @@ declare const zhCN: {
15
15
  Dialog: {
16
16
  ok: string;
17
17
  };
18
+ DatePicker: {
19
+ tillNow: string;
20
+ };
18
21
  ErrorBlock: {
19
22
  default: {
20
23
  title: string;
@@ -24,6 +24,9 @@ const zhCN = (0, _mergeLocale.mergeLocale)(_base.base, {
24
24
  Dialog: {
25
25
  ok: '我知道了'
26
26
  },
27
+ DatePicker: {
28
+ tillNow: '至今'
29
+ },
27
30
  ErrorBlock: {
28
31
  default: {
29
32
  title: '页面遇到一些小问题',