@arco-design/mobile-react 2.20.0 → 2.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/avatar/index.d.ts +1 -1
  5. package/cjs/avatar/index.js +1 -1
  6. package/cjs/badge/index.d.ts +1 -1
  7. package/cjs/badge/index.js +1 -1
  8. package/cjs/button/style/css/index.css +64 -64
  9. package/cjs/button/style/index.less +7 -5
  10. package/cjs/carousel/index.d.ts +1 -1
  11. package/cjs/carousel/index.js +1 -1
  12. package/cjs/cell/index.d.ts +1 -1
  13. package/cjs/cell/index.js +1 -1
  14. package/cjs/checkbox/index.d.ts +1 -1
  15. package/cjs/checkbox/index.js +1 -1
  16. package/cjs/collapse/index.d.ts +1 -1
  17. package/cjs/collapse/index.js +1 -1
  18. package/cjs/count-down/index.d.ts +1 -1
  19. package/cjs/count-down/index.js +1 -1
  20. package/cjs/date-picker/index.d.ts +1 -1
  21. package/cjs/date-picker/index.js +1 -1
  22. package/cjs/dropdown/dropdown.js +36 -20
  23. package/cjs/dropdown/style/css/index.css +3 -0
  24. package/cjs/dropdown/style/index.less +2 -0
  25. package/cjs/ellipsis/components/js-ellipsis.js +2 -3
  26. package/cjs/ellipsis/index.d.ts +1 -1
  27. package/cjs/ellipsis/index.js +3 -4
  28. package/cjs/image/index.d.ts +1 -1
  29. package/cjs/image/index.js +1 -1
  30. package/cjs/image-picker/index.d.ts +4 -175
  31. package/cjs/image-picker/index.js +41 -18
  32. package/cjs/image-picker/type.d.ts +174 -0
  33. package/cjs/image-picker/type.js +3 -0
  34. package/cjs/image-preview/index.d.ts +1 -1
  35. package/cjs/image-preview/index.js +1 -1
  36. package/cjs/index.d.ts +2 -0
  37. package/cjs/index.js +9 -1
  38. package/cjs/input/hooks.js +49 -8
  39. package/cjs/input/index.d.ts +1 -1
  40. package/cjs/input/index.js +1 -1
  41. package/cjs/input/props.d.ts +8 -2
  42. package/cjs/notice-bar/index.d.ts +1 -1
  43. package/cjs/notice-bar/index.js +1 -1
  44. package/cjs/picker/index.d.ts +1 -1
  45. package/cjs/picker/index.js +1 -1
  46. package/cjs/picker-view/index.d.ts +1 -1
  47. package/cjs/picker-view/index.js +1 -1
  48. package/cjs/popover/index.d.ts +1 -1
  49. package/cjs/popover/index.js +1 -1
  50. package/cjs/popup-swiper/index.js +3 -2
  51. package/cjs/radio/index.d.ts +1 -1
  52. package/cjs/radio/index.js +1 -1
  53. package/cjs/rate/index.d.ts +1 -1
  54. package/cjs/rate/index.js +1 -1
  55. package/cjs/search-bar/association.d.ts +3 -0
  56. package/cjs/search-bar/association.js +92 -0
  57. package/cjs/search-bar/cancel-button.d.ts +10 -0
  58. package/cjs/search-bar/cancel-button.js +41 -0
  59. package/cjs/search-bar/demo/style/css/mobile.css +5 -0
  60. package/cjs/search-bar/demo/style/mobile.less +9 -0
  61. package/cjs/search-bar/highlight.d.ts +12 -0
  62. package/cjs/search-bar/highlight.js +77 -0
  63. package/cjs/search-bar/index.d.ts +13 -0
  64. package/cjs/search-bar/index.js +231 -0
  65. package/cjs/search-bar/style/css/index.css +148 -0
  66. package/cjs/search-bar/style/css/index.d.ts +2 -0
  67. package/cjs/search-bar/style/css/index.js +5 -0
  68. package/cjs/search-bar/style/index.d.ts +2 -0
  69. package/cjs/search-bar/style/index.js +5 -0
  70. package/cjs/search-bar/style/index.less +111 -0
  71. package/cjs/search-bar/type.d.ts +163 -0
  72. package/cjs/search-bar/type.js +3 -0
  73. package/cjs/slider/index.d.ts +1 -1
  74. package/cjs/slider/index.js +1 -1
  75. package/cjs/steps/index.d.ts +1 -1
  76. package/cjs/steps/index.js +1 -1
  77. package/cjs/sticky/index.d.ts +1 -1
  78. package/cjs/style.d.ts +2 -0
  79. package/cjs/style.js +4 -0
  80. package/cjs/swipe-action/demo/style/css/mobile.css +5 -0
  81. package/cjs/swipe-action/demo/style/mobile.less +9 -0
  82. package/cjs/swipe-action/index.d.ts +12 -0
  83. package/cjs/swipe-action/index.js +337 -0
  84. package/cjs/swipe-action/item.d.ts +11 -0
  85. package/cjs/swipe-action/item.js +52 -0
  86. package/cjs/swipe-action/style/css/index.css +88 -0
  87. package/cjs/swipe-action/style/css/index.d.ts +2 -0
  88. package/cjs/swipe-action/style/css/index.js +5 -0
  89. package/cjs/swipe-action/style/index.d.ts +2 -0
  90. package/cjs/swipe-action/style/index.js +5 -0
  91. package/cjs/swipe-action/style/index.less +89 -0
  92. package/cjs/swipe-action/type.d.ts +123 -0
  93. package/cjs/swipe-action/type.js +3 -0
  94. package/cjs/switch/index.d.ts +1 -1
  95. package/cjs/switch/index.js +1 -1
  96. package/cjs/tabs/tab-pane.js +5 -1
  97. package/cjs/tag/index.d.ts +1 -1
  98. package/cjs/tag/index.js +1 -1
  99. package/cjs/textarea/index.d.ts +1 -1
  100. package/cjs/textarea/index.js +1 -1
  101. package/dist/index.js +7394 -6570
  102. package/dist/index.min.js +6 -6
  103. package/dist/style.css +267 -64
  104. package/dist/style.min.css +1 -1
  105. package/esm/avatar/index.d.ts +1 -1
  106. package/esm/avatar/index.js +1 -1
  107. package/esm/badge/index.d.ts +1 -1
  108. package/esm/badge/index.js +1 -1
  109. package/esm/button/style/css/index.css +64 -64
  110. package/esm/button/style/index.less +7 -5
  111. package/esm/carousel/index.d.ts +1 -1
  112. package/esm/carousel/index.js +1 -1
  113. package/esm/cell/index.d.ts +1 -1
  114. package/esm/cell/index.js +1 -1
  115. package/esm/checkbox/index.d.ts +1 -1
  116. package/esm/checkbox/index.js +1 -1
  117. package/esm/collapse/index.d.ts +1 -1
  118. package/esm/collapse/index.js +1 -1
  119. package/esm/count-down/index.d.ts +1 -1
  120. package/esm/count-down/index.js +1 -1
  121. package/esm/date-picker/index.d.ts +1 -1
  122. package/esm/date-picker/index.js +1 -1
  123. package/esm/dropdown/dropdown.js +36 -20
  124. package/esm/dropdown/style/css/index.css +3 -0
  125. package/esm/dropdown/style/index.less +2 -0
  126. package/esm/ellipsis/components/js-ellipsis.js +2 -3
  127. package/esm/ellipsis/index.d.ts +1 -1
  128. package/esm/ellipsis/index.js +3 -4
  129. package/esm/image/index.d.ts +1 -1
  130. package/esm/image/index.js +1 -1
  131. package/esm/image-picker/index.d.ts +4 -175
  132. package/esm/image-picker/index.js +30 -17
  133. package/esm/image-picker/type.d.ts +174 -0
  134. package/esm/image-picker/type.js +1 -0
  135. package/esm/image-preview/index.d.ts +1 -1
  136. package/esm/image-preview/index.js +1 -1
  137. package/esm/index.d.ts +2 -0
  138. package/esm/index.js +2 -0
  139. package/esm/input/hooks.js +49 -8
  140. package/esm/input/index.d.ts +1 -1
  141. package/esm/input/index.js +1 -1
  142. package/esm/input/props.d.ts +8 -2
  143. package/esm/notice-bar/index.d.ts +1 -1
  144. package/esm/notice-bar/index.js +1 -1
  145. package/esm/picker/index.d.ts +1 -1
  146. package/esm/picker/index.js +1 -1
  147. package/esm/picker-view/index.d.ts +1 -1
  148. package/esm/picker-view/index.js +1 -1
  149. package/esm/popover/index.d.ts +1 -1
  150. package/esm/popover/index.js +1 -1
  151. package/esm/popup-swiper/index.js +3 -2
  152. package/esm/radio/index.d.ts +1 -1
  153. package/esm/radio/index.js +1 -1
  154. package/esm/rate/index.d.ts +1 -1
  155. package/esm/rate/index.js +1 -1
  156. package/esm/search-bar/association.d.ts +3 -0
  157. package/esm/search-bar/association.js +82 -0
  158. package/esm/search-bar/cancel-button.d.ts +10 -0
  159. package/esm/search-bar/cancel-button.js +30 -0
  160. package/esm/search-bar/demo/style/css/mobile.css +5 -0
  161. package/esm/search-bar/demo/style/mobile.less +9 -0
  162. package/esm/search-bar/highlight.d.ts +12 -0
  163. package/esm/search-bar/highlight.js +66 -0
  164. package/esm/search-bar/index.d.ts +13 -0
  165. package/esm/search-bar/index.js +212 -0
  166. package/esm/search-bar/style/css/index.css +148 -0
  167. package/esm/search-bar/style/css/index.d.ts +2 -0
  168. package/esm/search-bar/style/css/index.js +2 -0
  169. package/esm/search-bar/style/index.d.ts +2 -0
  170. package/esm/search-bar/style/index.js +2 -0
  171. package/esm/search-bar/style/index.less +111 -0
  172. package/esm/search-bar/type.d.ts +163 -0
  173. package/esm/search-bar/type.js +1 -0
  174. package/esm/slider/index.d.ts +1 -1
  175. package/esm/slider/index.js +1 -1
  176. package/esm/steps/index.d.ts +1 -1
  177. package/esm/steps/index.js +1 -1
  178. package/esm/sticky/index.d.ts +1 -1
  179. package/esm/style.d.ts +2 -0
  180. package/esm/style.js +2 -0
  181. package/esm/swipe-action/demo/style/css/mobile.css +5 -0
  182. package/esm/swipe-action/demo/style/mobile.less +9 -0
  183. package/esm/swipe-action/index.d.ts +12 -0
  184. package/esm/swipe-action/index.js +320 -0
  185. package/esm/swipe-action/item.d.ts +11 -0
  186. package/esm/swipe-action/item.js +42 -0
  187. package/esm/swipe-action/style/css/index.css +88 -0
  188. package/esm/swipe-action/style/css/index.d.ts +2 -0
  189. package/esm/swipe-action/style/css/index.js +2 -0
  190. package/esm/swipe-action/style/index.d.ts +2 -0
  191. package/esm/swipe-action/style/index.js +2 -0
  192. package/esm/swipe-action/style/index.less +89 -0
  193. package/esm/swipe-action/type.d.ts +123 -0
  194. package/esm/swipe-action/type.js +1 -0
  195. package/esm/switch/index.d.ts +1 -1
  196. package/esm/switch/index.js +1 -1
  197. package/esm/tabs/tab-pane.js +5 -1
  198. package/esm/tag/index.d.ts +1 -1
  199. package/esm/tag/index.js +1 -1
  200. package/esm/textarea/index.d.ts +1 -1
  201. package/esm/textarea/index.js +1 -1
  202. package/package.json +3 -3
  203. package/tokens/app/arcodesign/default/css-variables.less +34 -0
  204. package/tokens/app/arcodesign/default/index.d.ts +34 -0
  205. package/tokens/app/arcodesign/default/index.js +34 -0
  206. package/tokens/app/arcodesign/default/index.json +398 -0
  207. package/tokens/app/arcodesign/default/index.less +34 -0
  208. package/umd/avatar/index.d.ts +1 -1
  209. package/umd/avatar/index.js +1 -1
  210. package/umd/badge/index.d.ts +1 -1
  211. package/umd/badge/index.js +1 -1
  212. package/umd/button/style/css/index.css +64 -64
  213. package/umd/button/style/index.less +7 -5
  214. package/umd/carousel/index.d.ts +1 -1
  215. package/umd/carousel/index.js +1 -1
  216. package/umd/cell/index.d.ts +1 -1
  217. package/umd/cell/index.js +1 -1
  218. package/umd/checkbox/index.d.ts +1 -1
  219. package/umd/checkbox/index.js +1 -1
  220. package/umd/collapse/index.d.ts +1 -1
  221. package/umd/collapse/index.js +1 -1
  222. package/umd/count-down/index.d.ts +1 -1
  223. package/umd/count-down/index.js +1 -1
  224. package/umd/date-picker/index.d.ts +1 -1
  225. package/umd/date-picker/index.js +1 -1
  226. package/umd/dropdown/dropdown.js +36 -20
  227. package/umd/dropdown/style/css/index.css +3 -0
  228. package/umd/dropdown/style/index.less +2 -0
  229. package/umd/ellipsis/components/js-ellipsis.js +2 -3
  230. package/umd/ellipsis/index.d.ts +1 -1
  231. package/umd/ellipsis/index.js +3 -4
  232. package/umd/image/index.d.ts +1 -1
  233. package/umd/image/index.js +1 -1
  234. package/umd/image-picker/index.d.ts +4 -175
  235. package/umd/image-picker/index.js +40 -22
  236. package/umd/image-picker/type.d.ts +174 -0
  237. package/umd/image-picker/type.js +17 -0
  238. package/umd/image-preview/index.d.ts +1 -1
  239. package/umd/image-preview/index.js +1 -1
  240. package/umd/index.d.ts +2 -0
  241. package/umd/index.js +9 -5
  242. package/umd/input/hooks.js +48 -7
  243. package/umd/input/index.d.ts +1 -1
  244. package/umd/input/index.js +1 -1
  245. package/umd/input/props.d.ts +8 -2
  246. package/umd/notice-bar/index.d.ts +1 -1
  247. package/umd/notice-bar/index.js +1 -1
  248. package/umd/picker/index.d.ts +1 -1
  249. package/umd/picker/index.js +1 -1
  250. package/umd/picker-view/index.d.ts +1 -1
  251. package/umd/picker-view/index.js +1 -1
  252. package/umd/popover/index.d.ts +1 -1
  253. package/umd/popover/index.js +1 -1
  254. package/umd/popup-swiper/index.js +3 -2
  255. package/umd/radio/index.d.ts +1 -1
  256. package/umd/radio/index.js +1 -1
  257. package/umd/rate/index.d.ts +1 -1
  258. package/umd/rate/index.js +1 -1
  259. package/umd/search-bar/association.d.ts +3 -0
  260. package/umd/search-bar/association.js +101 -0
  261. package/umd/search-bar/cancel-button.d.ts +10 -0
  262. package/umd/search-bar/cancel-button.js +52 -0
  263. package/umd/search-bar/demo/style/css/mobile.css +5 -0
  264. package/umd/search-bar/demo/style/mobile.less +9 -0
  265. package/umd/search-bar/highlight.d.ts +12 -0
  266. package/umd/search-bar/highlight.js +87 -0
  267. package/umd/search-bar/index.d.ts +13 -0
  268. package/umd/search-bar/index.js +229 -0
  269. package/umd/search-bar/style/css/index.css +148 -0
  270. package/umd/search-bar/style/css/index.d.ts +2 -0
  271. package/umd/search-bar/style/css/index.js +15 -0
  272. package/umd/search-bar/style/index.d.ts +2 -0
  273. package/umd/search-bar/style/index.js +15 -0
  274. package/umd/search-bar/style/index.less +111 -0
  275. package/umd/search-bar/type.d.ts +163 -0
  276. package/umd/search-bar/type.js +17 -0
  277. package/umd/slider/index.d.ts +1 -1
  278. package/umd/slider/index.js +1 -1
  279. package/umd/steps/index.d.ts +1 -1
  280. package/umd/steps/index.js +1 -1
  281. package/umd/sticky/index.d.ts +1 -1
  282. package/umd/style.d.ts +2 -0
  283. package/umd/style.js +4 -4
  284. package/umd/swipe-action/demo/style/css/mobile.css +5 -0
  285. package/umd/swipe-action/demo/style/mobile.less +9 -0
  286. package/umd/swipe-action/index.d.ts +12 -0
  287. package/umd/swipe-action/index.js +342 -0
  288. package/umd/swipe-action/item.d.ts +11 -0
  289. package/umd/swipe-action/item.js +62 -0
  290. package/umd/swipe-action/style/css/index.css +88 -0
  291. package/umd/swipe-action/style/css/index.d.ts +2 -0
  292. package/umd/swipe-action/style/css/index.js +15 -0
  293. package/umd/swipe-action/style/index.d.ts +2 -0
  294. package/umd/swipe-action/style/index.js +15 -0
  295. package/umd/swipe-action/style/index.less +89 -0
  296. package/umd/swipe-action/type.d.ts +123 -0
  297. package/umd/swipe-action/type.js +17 -0
  298. package/umd/switch/index.d.ts +1 -1
  299. package/umd/switch/index.js +1 -1
  300. package/umd/tabs/tab-pane.js +5 -1
  301. package/umd/tag/index.d.ts +1 -1
  302. package/umd/tag/index.js +1 -1
  303. package/umd/textarea/index.d.ts +1 -1
  304. package/umd/textarea/index.js +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,60 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.21.2](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.21.1...@arco-design/mobile-react@2.21.2) (2022-09-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * `Button` fix style when use reset.less ([bb05f2c](https://github.com/arco-design/arco-design-mobile/commit/bb05f2c279089115f73fc39c523c9767ed37a8c4))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.21.1](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.21.0...@arco-design/mobile-react@2.21.1) (2022-09-01)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * `Ellipsis` duplicate reflow ([41fc0a2](https://github.com/arco-design/arco-design-mobile/commit/41fc0a237c3737e0ad2db09623db3577ca243348))
23
+ * `SearchBar` export type ([5ee5ebf](https://github.com/arco-design/arco-design-mobile/commit/5ee5ebf9923b0d1582a52a646f6daea168b89946))
24
+ * `SwipeAction` import optimize ([5060d25](https://github.com/arco-design/arco-design-mobile/commit/5060d2570e0eb85c6f6b344e9ac9f0b50212f486))
25
+
26
+
27
+
28
+
29
+
30
+ # [2.21.0](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.19.1...@arco-design/mobile-react@2.21.0) (2022-08-29)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * `Button` support coverIconWhenLoading ([#33](https://github.com/arco-design/arco-design-mobile/issues/33)) ([4213959](https://github.com/arco-design/arco-design-mobile/commit/421395918c8dc8ec8e6cb742aeed46503eaef925))
36
+ * `Dropdown` optimize animation when direction changed ([2022692](https://github.com/arco-design/arco-design-mobile/commit/20226924759486d66ecae7a8e466bc1c676cd923))
37
+ * `Dropdown` support customize select icon & value of string type ([9eb6f5d](https://github.com/arco-design/arco-design-mobile/commit/9eb6f5db76d2a1975e61a478d897522cf8bcbf8e))
38
+ * `DropdownMenu` optimize renderSelectLabel params ([1c685fd](https://github.com/arco-design/arco-design-mobile/commit/1c685fd85851f6735d1d91dc49c6f28ade0a858c))
39
+ * `ImagePicker` convert event.target.files to array ([dec36f1](https://github.com/arco-design/arco-design-mobile/commit/dec36f1edf313e34bb1fd290ce314206639a5717))
40
+ * `ImagePicker` fix uploaded images change ([#44](https://github.com/arco-design/arco-design-mobile/issues/44)) ([7511837](https://github.com/arco-design/arco-design-mobile/commit/75118376f7b08f39a2c438737075a0af0d39004d))
41
+ * `ImagePicker` optimize display when uploading ([a99f2f3](https://github.com/arco-design/arco-design-mobile/commit/a99f2f3e2927ce2f263a496da09e391395a8b545))
42
+ * `NavBar` trigger caculation when showOffset changes ([06119ce](https://github.com/arco-design/arco-design-mobile/commit/06119ceeefb286ac963dae0f8b49a1112063d1b9))
43
+ * `PopupSwiper` optimize moving direction ([fe1d100](https://github.com/arco-design/arco-design-mobile/commit/fe1d100fb3aba069ad66255c93654823beebf249))
44
+ * `ShowMonitor` support flush visible status ([#31](https://github.com/arco-design/arco-design-mobile/issues/31)) ([bdad151](https://github.com/arco-design/arco-design-mobile/commit/bdad151e8a466f20e3e033ccec9a5d458ff4fbf4))
45
+ * `Steps` converge style to token ([6cf4f26](https://github.com/arco-design/arco-design-mobile/commit/6cf4f267a271dc0d03f559c4aca8199f9fcae2ec))
46
+ * `Tabs` limit max scroll distance close ([#37](https://github.com/arco-design/arco-design-mobile/issues/37)) ([e716d01](https://github.com/arco-design/arco-design-mobile/commit/e716d014dfa34c4159d4011d2a1ccd5b7d133b4c)), closes [#36](https://github.com/arco-design/arco-design-mobile/issues/36)
47
+ * components classname optimize: `Avatar` & `Button` & `Badge` ([e6b70dd](https://github.com/arco-design/arco-design-mobile/commit/e6b70dd5eebb23646f2e7639b8a8a73bd51e57c3))
48
+
49
+
50
+ ### Features
51
+
52
+ * add new component `ImagePicker` ([#24](https://github.com/arco-design/arco-design-mobile/issues/24)) ([73f6156](https://github.com/arco-design/arco-design-mobile/commit/73f615651f46dc670f29733f6b99ec56795fc48b))
53
+ * add new component `SearchBar` ([#22](https://github.com/arco-design/arco-design-mobile/issues/22)) ([36cf4d4](https://github.com/arco-design/arco-design-mobile/commit/36cf4d4d61506358cd84b41738d817db8399c04f))
54
+ * add new component `SwipeAction` ([221dc57](https://github.com/arco-design/arco-design-mobile/commit/221dc5776a508fcccd27de992e1ae58d137b7fb6))
55
+
56
+
57
+
58
+
59
+
6
60
  # [2.20.0](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.19.1...@arco-design/mobile-react@2.20.0) (2022-08-12)
7
61
 
8
62
 
package/README.en-US.md CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="_b
59
59
  React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">Click here</a>**
60
60
 
61
61
  ```
62
- <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.19.1/dist/style.min.css">
63
- <script src="https://unpkg.com/@arco-design/mobile-react@2.19.1/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.21.1/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.21.1/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## Full import
package/README.md CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="
59
59
  React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">戳这里获取</a>**
60
60
 
61
61
  ```
62
- <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.19.1/dist/style.min.css">
63
- <script src="https://unpkg.com/@arco-design/mobile-react@2.19.1/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.21.1/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.21.1/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## 引入全部
@@ -9,7 +9,7 @@ declare const _default: React.ForwardRefExoticComponent<AvatarProps<ImageProps &
9
9
  /**
10
10
  * 头像展示组件,支持圆形和方形两种形状,支持图片文字头像,支持五种尺寸。
11
11
  * @en Avatar component supports two shapes of circle and square, supports pictures or text avatars, with five sizes.
12
- * @type 数据展示
12
+ * @type 信息展示
13
13
  * @type_en Data Display
14
14
  * @name 头像
15
15
  * @name_en Avatar
@@ -171,7 +171,7 @@ var Avatar = componentGenerator(_image.BaseImage);
171
171
  /**
172
172
  * 头像展示组件,支持圆形和方形两种形状,支持图片文字头像,支持五种尺寸。
173
173
  * @en Avatar component supports two shapes of circle and square, supports pictures or text avatars, with five sizes.
174
- * @type 数据展示
174
+ * @type 信息展示
175
175
  * @type_en Data Display
176
176
  * @name 头像
177
177
  * @name_en Avatar
@@ -71,7 +71,7 @@ export interface BadgeRef {
71
71
  /**
72
72
  * 在右上角展示徽标数字或小红点
73
73
  * @en Display the badge number or small red dot in the upper right corner
74
- * @type 数据展示
74
+ * @type 信息展示
75
75
  * @type_en Data Display
76
76
  * @name 徽标
77
77
  * @name_en Badge
@@ -20,7 +20,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
20
20
  /**
21
21
  * 在右上角展示徽标数字或小红点
22
22
  * @en Display the badge number or small red dot in the upper right corner
23
- * @type 数据展示
23
+ * @type 信息展示
24
24
  * @type_en Data Display
25
25
  * @name 徽标
26
26
  * @name_en Badge
@@ -18,14 +18,21 @@
18
18
  user-select: none;
19
19
  /* Non-prefixed version, currently*/
20
20
  }
21
- .arco-button-inline {
21
+ .arco-button.arco-button-inline {
22
22
  width: auto;
23
23
  display: inline-block;
24
24
  }
25
- .arco-button-type-ghost {
25
+ .arco-button.arco-button-type-ghost {
26
26
  background: transparent ;
27
27
  color: #165dff ;
28
28
  }
29
+ .arco-button.arco-button-type-ghost-disabled {
30
+ background: transparent ;
31
+ color: #94bfff ;
32
+ }
33
+ .arco-button.arco-button-type-ghost-active {
34
+ background: #e8f3ff ;
35
+ }
29
36
  .arco-button-type-ghost .bg-color-with-config {
30
37
  background: #165dff;
31
38
  }
@@ -38,17 +45,17 @@
38
45
  .arco-button-type-ghost .stroke-color-with-config {
39
46
  stroke: #165dff;
40
47
  }
41
- .arco-button-type-ghost-disabled {
42
- background: transparent ;
43
- color: #94bfff ;
44
- }
45
- .arco-button-type-ghost-active {
46
- background: #e8f3ff ;
47
- }
48
- .arco-button-type-default {
48
+ .arco-button.arco-button-type-default {
49
49
  background: #E8F3FF ;
50
50
  color: #165dff ;
51
51
  }
52
+ .arco-button.arco-button-type-default-disabled {
53
+ background: #E8F3FF ;
54
+ color: #94bfff ;
55
+ }
56
+ .arco-button.arco-button-type-default-active {
57
+ background: #94bfff ;
58
+ }
52
59
  .arco-button-type-default .bg-color-with-config {
53
60
  background: #165dff;
54
61
  }
@@ -61,16 +68,16 @@
61
68
  .arco-button-type-default .stroke-color-with-config {
62
69
  stroke: #165dff;
63
70
  }
64
- .arco-button-type-default-disabled {
65
- background: #E8F3FF ;
66
- color: #94bfff ;
71
+ .arco-button.arco-button-type-primary {
72
+ background: #165dff ;
73
+ color: #fff ;
67
74
  }
68
- .arco-button-type-default-active {
75
+ .arco-button.arco-button-type-primary-disabled {
69
76
  background: #94bfff ;
77
+ color: #E8F3FF ;
70
78
  }
71
- .arco-button-type-primary {
72
- background: #165dff ;
73
- color: #fff ;
79
+ .arco-button.arco-button-type-primary-active {
80
+ background: #0E42D2 ;
74
81
  }
75
82
  .arco-button-type-primary .bg-color-with-config {
76
83
  background: #fff;
@@ -84,108 +91,101 @@
84
91
  .arco-button-type-primary .stroke-color-with-config {
85
92
  stroke: #fff;
86
93
  }
87
- .arco-button-type-primary-disabled {
88
- background: #94bfff ;
89
- color: #E8F3FF ;
90
- }
91
- .arco-button-type-primary-active {
92
- background: #0E42D2 ;
93
- }
94
- .arco-button-type-ghost {
94
+ .arco-button.arco-button-type-ghost {
95
95
  border: 1PX solid currentColor;
96
96
  }
97
- .arco-button-type-ghost.half-border {
97
+ .arco-button.arco-button-type-ghost.half-border {
98
98
  border-width: 0;
99
99
  box-shadow: 0 0 0 1PX currentColor inset;
100
100
  }
101
101
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
102
- .arco-button-type-ghost.half-border {
102
+ .arco-button.arco-button-type-ghost.half-border {
103
103
  box-shadow: 0 0 0 0.5PX currentColor inset;
104
104
  }
105
105
  }
106
- .ios .arco-button-type-ghost.half-border,
107
- .arco-button-type-ghost.half-border.ios {
106
+ .ios .arco-button.arco-button-type-ghost.half-border,
107
+ .arco-button.arco-button-type-ghost.half-border.ios {
108
108
  box-shadow: none;
109
109
  border: 0.5PX solid currentColor;
110
110
  }
111
- .arco-button-size-mini {
111
+ .arco-button.arco-button-size-mini {
112
112
  padding: 0 0.16rem ;
113
113
  height: 0.48rem ;
114
114
  }
115
- .arco-button-size-mini-is-round {
115
+ .arco-button.arco-button-size-mini-is-round {
116
116
  border-radius: 0.48rem ;
117
117
  }
118
- .arco-button-size-mini-is-square {
118
+ .arco-button.arco-button-size-mini-is-square {
119
119
  border-radius: 0;
120
120
  }
121
- .arco-button-size-mini .arco-button-icon,
122
- .arco-button-size-mini i,
123
- .arco-button-size-mini .arco-button-text,
124
- .arco-button-size-mini svg {
121
+ .arco-button.arco-button-size-mini .arco-button-icon,
122
+ .arco-button.arco-button-size-mini i,
123
+ .arco-button.arco-button-size-mini .arco-button-text,
124
+ .arco-button.arco-button-size-mini svg {
125
125
  font-size: 0.24rem ;
126
126
  }
127
- .arco-button-size-small {
127
+ .arco-button.arco-button-size-small {
128
128
  padding: 0 0.16rem ;
129
129
  height: 0.56rem ;
130
130
  }
131
- .arco-button-size-small-is-round {
131
+ .arco-button.arco-button-size-small-is-round {
132
132
  border-radius: 0.56rem ;
133
133
  }
134
- .arco-button-size-small-is-square {
134
+ .arco-button.arco-button-size-small-is-square {
135
135
  border-radius: 0;
136
136
  }
137
- .arco-button-size-small .arco-button-icon,
138
- .arco-button-size-small i,
139
- .arco-button-size-small .arco-button-text,
140
- .arco-button-size-small svg {
137
+ .arco-button.arco-button-size-small .arco-button-icon,
138
+ .arco-button.arco-button-size-small i,
139
+ .arco-button.arco-button-size-small .arco-button-text,
140
+ .arco-button.arco-button-size-small svg {
141
141
  font-size: 0.28rem ;
142
142
  }
143
- .arco-button-size-medium {
143
+ .arco-button.arco-button-size-medium {
144
144
  padding: 0 0.32rem ;
145
145
  height: 0.64rem ;
146
146
  }
147
- .arco-button-size-medium-is-round {
147
+ .arco-button.arco-button-size-medium-is-round {
148
148
  border-radius: 0.64rem ;
149
149
  }
150
- .arco-button-size-medium-is-square {
150
+ .arco-button.arco-button-size-medium-is-square {
151
151
  border-radius: 0;
152
152
  }
153
- .arco-button-size-medium .arco-button-icon,
154
- .arco-button-size-medium i,
155
- .arco-button-size-medium .arco-button-text,
156
- .arco-button-size-medium svg {
153
+ .arco-button.arco-button-size-medium .arco-button-icon,
154
+ .arco-button.arco-button-size-medium i,
155
+ .arco-button.arco-button-size-medium .arco-button-text,
156
+ .arco-button.arco-button-size-medium svg {
157
157
  font-size: 0.28rem ;
158
158
  }
159
- .arco-button-size-large {
159
+ .arco-button.arco-button-size-large {
160
160
  padding: 0 0.32rem ;
161
161
  height: 0.72rem ;
162
162
  }
163
- .arco-button-size-large-is-round {
163
+ .arco-button.arco-button-size-large-is-round {
164
164
  border-radius: 0.72rem ;
165
165
  }
166
- .arco-button-size-large-is-square {
166
+ .arco-button.arco-button-size-large-is-square {
167
167
  border-radius: 0;
168
168
  }
169
- .arco-button-size-large .arco-button-icon,
170
- .arco-button-size-large i,
171
- .arco-button-size-large .arco-button-text,
172
- .arco-button-size-large svg {
169
+ .arco-button.arco-button-size-large .arco-button-icon,
170
+ .arco-button.arco-button-size-large i,
171
+ .arco-button.arco-button-size-large .arco-button-text,
172
+ .arco-button.arco-button-size-large svg {
173
173
  font-size: 0.3rem ;
174
174
  }
175
- .arco-button-size-huge {
175
+ .arco-button.arco-button-size-huge {
176
176
  padding: 0 0.32rem ;
177
177
  height: 0.88rem ;
178
178
  }
179
- .arco-button-size-huge-is-round {
179
+ .arco-button.arco-button-size-huge-is-round {
180
180
  border-radius: 0.88rem ;
181
181
  }
182
- .arco-button-size-huge-is-square {
182
+ .arco-button.arco-button-size-huge-is-square {
183
183
  border-radius: 0;
184
184
  }
185
- .arco-button-size-huge .arco-button-icon,
186
- .arco-button-size-huge i,
187
- .arco-button-size-huge .arco-button-text,
188
- .arco-button-size-huge svg {
185
+ .arco-button.arco-button-size-huge .arco-button-icon,
186
+ .arco-button.arco-button-size-huge i,
187
+ .arco-button.arco-button-size-huge .arco-button-text,
188
+ .arco-button.arco-button-size-huge svg {
189
189
  font-size: 0.32rem ;
190
190
  }
191
191
  .arco-button-text-android {
@@ -56,14 +56,14 @@
56
56
  .use-var(border-radius, button-radius);
57
57
  .noselect();
58
58
 
59
- &-inline {
59
+ &&-inline {
60
60
  width: auto;
61
61
  display: inline-block;
62
62
  }
63
63
 
64
64
  .set-button-type(length(@type-map));
65
65
 
66
- &-type-ghost {
66
+ &&-type-ghost {
67
67
  .button-has-border-value(currentColor);
68
68
  }
69
69
 
@@ -101,10 +101,9 @@
101
101
  .set-button-type(@index) when (@index > 0) {
102
102
  @type: extract(@type-map, @index);
103
103
 
104
- &-type-@{type} {
104
+ &&-type-@{type} {
105
105
  .use-var(background, 'button-@{type}-background');
106
106
  .use-var(color, 'button-@{type}-text-color');
107
- .set-loading-color-var('button-@{type}-text-color');
108
107
  &-disabled {
109
108
  .use-var(background, 'button-@{type}-disabled-background');
110
109
  .use-var(color, 'button-@{type}-disabled-text-color')
@@ -113,6 +112,9 @@
113
112
  .use-var(background, 'button-@{type}-clicked-background');
114
113
  }
115
114
  }
115
+ &-type-@{type} {
116
+ .set-loading-color-var('button-@{type}-text-color');
117
+ }
116
118
 
117
119
  .set-button-type(@index - 1);
118
120
  }
@@ -120,7 +122,7 @@
120
122
  .set-button-size(@index) when (@index > 0) {
121
123
  @size: extract(@size-map, @index);
122
124
 
123
- &-size-@{size} {
125
+ &&-size-@{size} {
124
126
  .use-var(padding, "button-@{size}-padding");
125
127
  .button-size-height("button-@{size}-height");
126
128
  .button-text-size("button-@{size}-text-size");
@@ -357,7 +357,7 @@ export interface CarouselRef {
357
357
  /**
358
358
  * 轮播组件,支持自定义轮播索引样式及滑块宽度。**需要注意的是,如果正使用`fastclick`,需要为 touchstart 的 target 添加`needsclick`类**(<a href="https://github.com/ftlabs/fastclick#ignore-certain-elements-with-needsclick" target="_blank">详情戳这里</a>),以规避`fastclick`逻辑与组件内部的手势冲突。(如果使用了`list`属性则无需额外添加)
359
359
  * @en Carousel component, supports custom carousel index style and slider width. **Note that if you are using `fastclick`, you need to add a `needsclick` class to the touchstart target ** (<a href="https://github.com/ftlabs/fastclick#ignore-certain-elements- with-needsclick" target="_blank">click here for details</a>) to avoid `fastclick` logic conflicts with gestures inside the component. (no need to add if `list` is set)
360
- * @type 数据展示
360
+ * @type 信息展示
361
361
  * @type_en Data Display
362
362
  * @name 轮播图
363
363
  * @name_en Carousel
@@ -22,7 +22,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
22
22
  /**
23
23
  * 轮播组件,支持自定义轮播索引样式及滑块宽度。**需要注意的是,如果正使用`fastclick`,需要为 touchstart 的 target 添加`needsclick`类**(<a href="https://github.com/ftlabs/fastclick#ignore-certain-elements-with-needsclick" target="_blank">详情戳这里</a>),以规避`fastclick`逻辑与组件内部的手势冲突。(如果使用了`list`属性则无需额外添加)
24
24
  * @en Carousel component, supports custom carousel index style and slider width. **Note that if you are using `fastclick`, you need to add a `needsclick` class to the touchstart target ** (<a href="https://github.com/ftlabs/fastclick#ignore-certain-elements- with-needsclick" target="_blank">click here for details</a>) to avoid `fastclick` logic conflicts with gestures inside the component. (no need to add if `list` is set)
25
- * @type 数据展示
25
+ * @type 信息展示
26
26
  * @type_en Data Display
27
27
  * @name 轮播图
28
28
  * @name_en Carousel
@@ -6,7 +6,7 @@ declare const _default: import("react").ForwardRefExoticComponent<import("./type
6
6
  /**
7
7
  * 单元格组件,含单元格及单元格组合,常用于设置项、表单等。
8
8
  * @en Cell, including cells and cell group, are often used to set items, forms, etc.
9
- * @type 数据展示
9
+ * @type 信息展示
10
10
  * @type_en Data Display
11
11
  * @name 单元格
12
12
  * @name_en Cell
package/cjs/cell/index.js CHANGED
@@ -22,7 +22,7 @@ var Group = (0, _group.componentGenerator)(_cell.Cell);
22
22
  /**
23
23
  * 单元格组件,含单元格及单元格组合,常用于设置项、表单等。
24
24
  * @en Cell, including cells and cell group, are often used to set items, forms, etc.
25
- * @type 数据展示
25
+ * @type 信息展示
26
26
  * @type_en Data Display
27
27
  * @name 单元格
28
28
  * @name_en Cell
@@ -8,7 +8,7 @@ declare const _default: import("react").ForwardRefExoticComponent<import("./type
8
8
  * @en Checkbox, click to switch selection when available, support disabled status, support checkbox group.
9
9
  * @name 复选框
10
10
  * @name_en Checkbox
11
- * @type 数据输入
11
+ * @type 数据录入
12
12
  * @type_en Data Entry
13
13
  */
14
14
  export default _default;
@@ -29,7 +29,7 @@ var Group = (0, _group.componentGenerator)(_checkbox.Checkbox);
29
29
  * @en Checkbox, click to switch selection when available, support disabled status, support checkbox group.
30
30
  * @name 复选框
31
31
  * @name_en Checkbox
32
- * @type 数据输入
32
+ * @type 数据录入
33
33
  * @type_en Data Entry
34
34
  */
35
35
 
@@ -15,7 +15,7 @@ declare const _default: import("react").ForwardRefExoticComponent<import("./type
15
15
  /**
16
16
  * 折叠面板组件,支持手风琴模式。
17
17
  * @en Collapse supports accordion mode.
18
- * @type 数据展示
18
+ * @type 信息展示
19
19
  * @type_en Data Display
20
20
  * @name 折叠面板
21
21
  * @name_en Collapse
@@ -31,7 +31,7 @@ Object.keys(_type).forEach(function (key) {
31
31
  /**
32
32
  * 折叠面板组件,支持手风琴模式。
33
33
  * @en Collapse supports accordion mode.
34
- * @type 数据展示
34
+ * @type 信息展示
35
35
  * @type_en Data Display
36
36
  * @name 折叠面板
37
37
  * @name_en Collapse
@@ -6,7 +6,7 @@ export * from './type';
6
6
  * @en Countdown Component
7
7
  * @name 倒计时
8
8
  * @name_en CountDown
9
- * @type 数据展示
9
+ * @type 信息展示
10
10
  * @type_en Data Display
11
11
  */
12
12
  declare const CountDown: React.ForwardRefExoticComponent<CountDownProps & React.RefAttributes<CountDownRef>>;
@@ -30,7 +30,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
30
30
  * @en Countdown Component
31
31
  * @name 倒计时
32
32
  * @name_en CountDown
33
- * @type 数据展示
33
+ * @type 信息展示
34
34
  * @type_en Data Display
35
35
  */
36
36
  var CountDown = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
@@ -12,7 +12,7 @@ export interface DatePickerRef {
12
12
  /**
13
13
  * 日期时间选择器,基于`Picker`组件扩展,支持指定范围,单位可精确到秒。
14
14
  * @en Date picker, based on the `Picker` component, supports the specified range, the unit can be accurate to seconds.
15
- * @type 数据输入
15
+ * @type 数据录入
16
16
  * @type_en Data Entry
17
17
  * @name 日期时间选择器
18
18
  * @name_en DatePicker
@@ -51,7 +51,7 @@ var initDate = Date.now();
51
51
  /**
52
52
  * 日期时间选择器,基于`Picker`组件扩展,支持指定范围,单位可精确到秒。
53
53
  * @en Date picker, based on the `Picker` component, supports the specified range, the unit can be accurate to seconds.
54
- * @type 数据输入
54
+ * @type 数据录入
55
55
  * @type_en Data Entry
56
56
  * @name 日期时间选择器
57
57
  * @name_en DatePicker
@@ -96,7 +96,7 @@ function componentGenerator(Comp) {
96
96
  // @en down=0 is to expand upwards, 1 is to expand downwards
97
97
 
98
98
 
99
- var _useState3 = (0, _react.useState)(direction === 'down'),
99
+ var _useState3 = (0, _react.useState)(null),
100
100
  down = _useState3[0],
101
101
  setDown = _useState3[1];
102
102
 
@@ -135,12 +135,15 @@ function componentGenerator(Comp) {
135
135
 
136
136
  (0, _helpers.usePopupScroll)(showDropdown, domRef.current, getScrollContainer);
137
137
  (0, _helpers.usePreventBodyScroll)(showDropdown, preventBodyScroll, initialBodyOverflow);
138
- (0, _react.useEffect)(function () {
138
+ var updateDown = (0, _react.useCallback)(function (wrapperHeight) {
139
139
  var _dropdownContainer$cu2;
140
140
 
141
141
  // 为0的时候不改变
142
142
  // @en Does not change when it is 0
143
- if (optionsWrapperHeight === 0) return;
143
+ if (wrapperHeight === 0) {
144
+ return;
145
+ }
146
+
144
147
  var tempEl = getAnchorElement ? getAnchorElement() : (_dropdownContainer$cu2 = dropdownContainer.current) == null ? void 0 : _dropdownContainer$cu2.parentElement;
145
148
 
146
149
  var _ref = (tempEl == null ? void 0 : tempEl.getBoundingClientRect()) || {
@@ -155,7 +158,7 @@ function componentGenerator(Comp) {
155
158
  var tempMaskHeight = windowHeight - tempTop; // 没有指定方向,且空间足够时,或向上展开的空间不够,向下展开
156
159
  // @en If there is no specified direction and there is enough space, or there is not enough space to expand upward, expand downward
157
160
 
158
- var tempDown = direction !== 'up' && optionsWrapperHeight < tempMaskHeight || optionsWrapperHeight > tempTop;
161
+ var tempDown = direction !== 'up' && wrapperHeight < tempMaskHeight || wrapperHeight > tempTop;
159
162
 
160
163
  if (tempDown) {
161
164
  maskHeight.current = tempMaskHeight;
@@ -172,7 +175,7 @@ function componentGenerator(Comp) {
172
175
  }
173
176
 
174
177
  setDown(tempDown);
175
- }, [dropdownContainer, optionsWrapperHeight, props.top, props.bottom, Boolean(getAnchorElement), direction, windowHeight]);
178
+ }, [props.top, props.bottom, Boolean(getAnchorElement), direction, windowHeight]);
176
179
  /**
177
180
  * 取消选择
178
181
  * @en Cancel selection
@@ -213,19 +216,27 @@ function componentGenerator(Comp) {
213
216
  };
214
217
  }, [showDropdown, clickOtherToClose, handleCancel]);
215
218
  (0, _react.useEffect)(function () {
216
- (0, _mobileUtils.nextTick)(function () {
217
- if (height !== void 0) {
218
- // 受控模式下,完全交由外层控制
219
- // @en In controlled mode, it is completely controlled by the outer layer
220
- setOptionsWrapperHeight(height);
219
+ var wrapperHeight = 0;
220
+
221
+ if (height !== void 0) {
222
+ // 受控模式下,完全交由外层控制
223
+ // @en In controlled mode, it is completely controlled by the outer layer
224
+ wrapperHeight = height;
225
+ } else {
226
+ if (!optionsContainer.current) return;
227
+
228
+ if (!showDropdown) {
229
+ wrapperHeight = 0;
221
230
  } else {
222
- if (!optionsContainer.current) return;
223
- if (!showDropdown) setOptionsWrapperHeight(0);else {
224
- setOptionsWrapperHeight(optionsContainer.current.getBoundingClientRect().height);
225
- }
231
+ wrapperHeight = optionsContainer.current.getBoundingClientRect().height;
226
232
  }
233
+ }
234
+
235
+ updateDown(wrapperHeight);
236
+ (0, _mobileUtils.nextTick)(function () {
237
+ setOptionsWrapperHeight(wrapperHeight);
227
238
  });
228
- }, [showDropdown, options.length, height]);
239
+ }, [showDropdown, options.length, height, updateDown]);
229
240
  (0, _react.useImperativeHandle)(ref, function () {
230
241
  return {
231
242
  dom: domRef.current
@@ -234,13 +245,17 @@ function componentGenerator(Comp) {
234
245
 
235
246
  function getOptionsStyle() {
236
247
  var trans = down ? 'translateY(-100%)' : 'translateY(100%)';
237
- return (0, _helpers.getStyleWithVendor)({
238
- // height: `${optionsWrapperHeight}px`,
239
- transform: optionsWrapperHeight ? '' : trans,
240
- transition: "transform " + dropdownAnimationTimeout + "ms " + dropdownAnimationFunction,
248
+ var transStyle = down === null ? {
249
+ opacity: 0
250
+ } : {
251
+ opacity: 1,
252
+ transform: optionsWrapperHeight ? 'translateY(0)' : trans,
253
+ transition: "all " + dropdownAnimationTimeout + "ms " + dropdownAnimationFunction
254
+ };
255
+ return (0, _helpers.getStyleWithVendor)((0, _extends2.default)({}, transStyle, {
241
256
  overflow: optionsWrapperHeight > maxHeight || height ? 'auto' : 'hidden',
242
257
  maxHeight: maxHeight + "px"
243
- });
258
+ }));
244
259
  }
245
260
 
246
261
  function renderInnerOptions() {
@@ -274,6 +289,7 @@ function componentGenerator(Comp) {
274
289
  },
275
290
  onExited: function onExited(el) {
276
291
  el.style.visibility = 'hidden';
292
+ setDown(null);
277
293
  },
278
294
  mountOnEnter: mountOnEnter,
279
295
  unmountOnExit: unmountOnExit
@@ -47,6 +47,9 @@
47
47
  }
48
48
  .arco-dropdown-options-item-icon {
49
49
  position: absolute;
50
+ top: 50%;
51
+ -webkit-transform: translateY(-50%);
52
+ transform: translateY(-50%);
50
53
  right: 0.32rem ;
51
54
  color: transparent;
52
55
  }
@@ -55,6 +55,8 @@
55
55
 
56
56
  &-icon {
57
57
  position: absolute;
58
+ top: 50%;
59
+ transform: translateY(-50%);
58
60
  .use-var(right, dropdown-options-item-icon-right);
59
61
  color: transparent;
60
62
  }