@arco-design/mobile-react 2.19.1 → 2.21.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 (424) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.en-US.md +6 -6
  3. package/README.md +6 -6
  4. package/cjs/_helpers/type.d.ts +1 -1
  5. package/cjs/avatar/group.js +1 -1
  6. package/cjs/avatar/index.d.ts +1 -1
  7. package/cjs/avatar/index.js +11 -14
  8. package/cjs/avatar/style/css/index.css +96 -126
  9. package/cjs/avatar/style/index.less +54 -72
  10. package/cjs/badge/index.d.ts +1 -1
  11. package/cjs/badge/index.js +7 -9
  12. package/cjs/badge/style/css/index.css +5 -5
  13. package/cjs/badge/style/index.less +5 -5
  14. package/cjs/button/hooks.d.ts +1 -2
  15. package/cjs/button/hooks.js +5 -3
  16. package/cjs/button/index.d.ts +6 -0
  17. package/cjs/button/index.js +38 -33
  18. package/cjs/button/style/css/index.css +75 -310
  19. package/cjs/button/style/index.less +32 -38
  20. package/cjs/carousel/index.d.ts +1 -1
  21. package/cjs/carousel/index.js +1 -1
  22. package/cjs/cell/index.d.ts +1 -1
  23. package/cjs/cell/index.js +1 -1
  24. package/cjs/checkbox/index.d.ts +1 -1
  25. package/cjs/checkbox/index.js +1 -1
  26. package/cjs/collapse/index.d.ts +1 -1
  27. package/cjs/collapse/index.js +1 -1
  28. package/cjs/count-down/demo/style/mobile.less +1 -1
  29. package/cjs/count-down/index.d.ts +1 -1
  30. package/cjs/count-down/index.js +1 -1
  31. package/cjs/date-picker/index.d.ts +1 -1
  32. package/cjs/date-picker/index.js +1 -1
  33. package/cjs/dropdown/dropdown.d.ts +3 -0
  34. package/cjs/dropdown/dropdown.js +322 -0
  35. package/cjs/dropdown/index.d.ts +3 -4
  36. package/cjs/dropdown/index.js +3 -303
  37. package/cjs/dropdown/options.js +2 -1
  38. package/cjs/dropdown/style/css/index.css +3 -0
  39. package/cjs/dropdown/style/index.less +2 -0
  40. package/cjs/dropdown/type.d.ts +20 -9
  41. package/cjs/dropdown-menu/dropdown-menu.d.ts +4 -0
  42. package/cjs/dropdown-menu/dropdown-menu.js +273 -0
  43. package/cjs/dropdown-menu/helper.d.ts +1 -1
  44. package/cjs/dropdown-menu/index.d.ts +2 -3
  45. package/cjs/dropdown-menu/index.js +2 -245
  46. package/cjs/dropdown-menu/type.d.ts +21 -20
  47. package/cjs/ellipsis/index.d.ts +1 -1
  48. package/cjs/ellipsis/index.js +1 -1
  49. package/cjs/grid/index.js +13 -12
  50. package/cjs/image/index.d.ts +1 -2
  51. package/cjs/image/index.js +14 -9
  52. package/cjs/image/style/css/index.css +2 -1
  53. package/cjs/image/style/index.less +2 -1
  54. package/cjs/image-picker/add-icon.d.ts +2 -0
  55. package/cjs/image-picker/add-icon.js +22 -0
  56. package/cjs/image-picker/demo/style/css/mobile.css +40 -0
  57. package/cjs/image-picker/demo/style/mobile.less +42 -0
  58. package/cjs/image-picker/index.d.ts +13 -0
  59. package/cjs/image-picker/index.js +331 -0
  60. package/cjs/image-picker/style/css/index.css +147 -0
  61. package/cjs/image-picker/style/css/index.d.ts +2 -0
  62. package/cjs/image-picker/style/css/index.js +5 -0
  63. package/cjs/image-picker/style/index.d.ts +2 -0
  64. package/cjs/image-picker/style/index.js +5 -0
  65. package/cjs/image-picker/style/index.less +116 -0
  66. package/cjs/image-picker/type.d.ts +174 -0
  67. package/cjs/image-picker/type.js +3 -0
  68. package/cjs/image-preview/index.d.ts +3 -3
  69. package/cjs/image-preview/index.js +1 -1
  70. package/cjs/index.d.ts +3 -0
  71. package/cjs/index.js +13 -1
  72. package/cjs/input/hooks.js +49 -8
  73. package/cjs/input/index.d.ts +1 -1
  74. package/cjs/input/index.js +1 -1
  75. package/cjs/input/props.d.ts +8 -2
  76. package/cjs/nav-bar/index.js +7 -2
  77. package/cjs/notice-bar/index.d.ts +1 -1
  78. package/cjs/notice-bar/index.js +1 -1
  79. package/cjs/picker/index.d.ts +1 -1
  80. package/cjs/picker/index.js +1 -1
  81. package/cjs/picker-view/index.d.ts +1 -1
  82. package/cjs/picker-view/index.js +1 -1
  83. package/cjs/popover/index.d.ts +1 -1
  84. package/cjs/popover/index.js +1 -1
  85. package/cjs/popup-swiper/index.js +3 -2
  86. package/cjs/radio/index.d.ts +1 -1
  87. package/cjs/radio/index.js +1 -1
  88. package/cjs/rate/index.d.ts +1 -1
  89. package/cjs/rate/index.js +1 -1
  90. package/cjs/search-bar/association.d.ts +3 -0
  91. package/cjs/search-bar/association.js +92 -0
  92. package/cjs/search-bar/cancel-button.d.ts +10 -0
  93. package/cjs/search-bar/cancel-button.js +41 -0
  94. package/cjs/search-bar/demo/style/css/mobile.css +5 -0
  95. package/cjs/search-bar/demo/style/mobile.less +9 -0
  96. package/cjs/search-bar/highlight.d.ts +12 -0
  97. package/cjs/search-bar/highlight.js +77 -0
  98. package/cjs/search-bar/index.d.ts +13 -0
  99. package/cjs/search-bar/index.js +239 -0
  100. package/cjs/search-bar/style/css/index.css +148 -0
  101. package/cjs/search-bar/style/css/index.d.ts +2 -0
  102. package/cjs/search-bar/style/css/index.js +5 -0
  103. package/cjs/search-bar/style/index.d.ts +2 -0
  104. package/cjs/search-bar/style/index.js +5 -0
  105. package/cjs/search-bar/style/index.less +111 -0
  106. package/cjs/search-bar/type.d.ts +163 -0
  107. package/cjs/search-bar/type.js +3 -0
  108. package/cjs/show-monitor/index.js +31 -3
  109. package/cjs/slider/index.d.ts +1 -1
  110. package/cjs/slider/index.js +1 -1
  111. package/cjs/steps/demo/style/css/mobile.css +1 -1
  112. package/cjs/steps/demo/style/mobile.less +1 -1
  113. package/cjs/steps/index.d.ts +1 -1
  114. package/cjs/steps/index.js +1 -1
  115. package/cjs/steps/style/css/index.css +5 -15
  116. package/cjs/steps/style/index.less +6 -10
  117. package/cjs/sticky/index.d.ts +1 -1
  118. package/cjs/style.d.ts +3 -0
  119. package/cjs/style.js +6 -0
  120. package/cjs/swipe-action/demo/style/css/mobile.css +5 -0
  121. package/cjs/swipe-action/demo/style/mobile.less +9 -0
  122. package/cjs/swipe-action/index.d.ts +12 -0
  123. package/cjs/swipe-action/index.js +339 -0
  124. package/cjs/swipe-action/item.d.ts +11 -0
  125. package/cjs/swipe-action/item.js +52 -0
  126. package/cjs/swipe-action/style/css/index.css +88 -0
  127. package/cjs/swipe-action/style/css/index.d.ts +2 -0
  128. package/cjs/swipe-action/style/css/index.js +5 -0
  129. package/cjs/swipe-action/style/index.d.ts +2 -0
  130. package/cjs/swipe-action/style/index.js +5 -0
  131. package/cjs/swipe-action/style/index.less +89 -0
  132. package/cjs/swipe-action/type.d.ts +123 -0
  133. package/cjs/swipe-action/type.js +3 -0
  134. package/cjs/switch/index.d.ts +1 -1
  135. package/cjs/switch/index.js +1 -1
  136. package/cjs/tabs/tab-pane.js +5 -1
  137. package/cjs/tag/index.d.ts +1 -1
  138. package/cjs/tag/index.js +1 -1
  139. package/cjs/textarea/index.d.ts +1 -1
  140. package/cjs/textarea/index.js +1 -1
  141. package/dist/index.js +8040 -6845
  142. package/dist/index.min.js +6 -7
  143. package/dist/style.css +497 -447
  144. package/dist/style.min.css +1 -1
  145. package/esm/_helpers/type.d.ts +1 -1
  146. package/esm/avatar/group.js +1 -1
  147. package/esm/avatar/index.d.ts +1 -1
  148. package/esm/avatar/index.js +11 -14
  149. package/esm/avatar/style/css/index.css +96 -126
  150. package/esm/avatar/style/index.less +54 -72
  151. package/esm/badge/index.d.ts +1 -1
  152. package/esm/badge/index.js +7 -9
  153. package/esm/badge/style/css/index.css +5 -5
  154. package/esm/badge/style/index.less +5 -5
  155. package/esm/button/hooks.d.ts +1 -2
  156. package/esm/button/hooks.js +5 -3
  157. package/esm/button/index.d.ts +6 -0
  158. package/esm/button/index.js +40 -35
  159. package/esm/button/style/css/index.css +75 -310
  160. package/esm/button/style/index.less +32 -38
  161. package/esm/carousel/index.d.ts +1 -1
  162. package/esm/carousel/index.js +1 -1
  163. package/esm/cell/index.d.ts +1 -1
  164. package/esm/cell/index.js +1 -1
  165. package/esm/checkbox/index.d.ts +1 -1
  166. package/esm/checkbox/index.js +1 -1
  167. package/esm/collapse/index.d.ts +1 -1
  168. package/esm/collapse/index.js +1 -1
  169. package/esm/count-down/demo/style/mobile.less +1 -1
  170. package/esm/count-down/index.d.ts +1 -1
  171. package/esm/count-down/index.js +1 -1
  172. package/esm/date-picker/index.d.ts +1 -1
  173. package/esm/date-picker/index.js +1 -1
  174. package/esm/dropdown/dropdown.d.ts +3 -0
  175. package/esm/dropdown/dropdown.js +304 -0
  176. package/esm/dropdown/index.d.ts +3 -4
  177. package/esm/dropdown/index.js +3 -293
  178. package/esm/dropdown/options.js +2 -1
  179. package/esm/dropdown/style/css/index.css +3 -0
  180. package/esm/dropdown/style/index.less +2 -0
  181. package/esm/dropdown/type.d.ts +20 -9
  182. package/esm/dropdown-menu/dropdown-menu.d.ts +4 -0
  183. package/esm/dropdown-menu/dropdown-menu.js +256 -0
  184. package/esm/dropdown-menu/helper.d.ts +1 -1
  185. package/esm/dropdown-menu/index.d.ts +2 -3
  186. package/esm/dropdown-menu/index.js +2 -237
  187. package/esm/dropdown-menu/type.d.ts +21 -20
  188. package/esm/ellipsis/index.d.ts +1 -1
  189. package/esm/ellipsis/index.js +1 -1
  190. package/esm/grid/index.js +13 -12
  191. package/esm/image/index.d.ts +1 -2
  192. package/esm/image/index.js +15 -10
  193. package/esm/image/style/css/index.css +2 -1
  194. package/esm/image/style/index.less +2 -1
  195. package/esm/image-picker/add-icon.d.ts +2 -0
  196. package/esm/image-picker/add-icon.js +14 -0
  197. package/esm/image-picker/demo/style/css/mobile.css +40 -0
  198. package/esm/image-picker/demo/style/mobile.less +42 -0
  199. package/esm/image-picker/index.d.ts +13 -0
  200. package/esm/image-picker/index.js +302 -0
  201. package/esm/image-picker/style/css/index.css +147 -0
  202. package/esm/image-picker/style/css/index.d.ts +2 -0
  203. package/esm/image-picker/style/css/index.js +2 -0
  204. package/esm/image-picker/style/index.d.ts +2 -0
  205. package/esm/image-picker/style/index.js +2 -0
  206. package/esm/image-picker/style/index.less +116 -0
  207. package/esm/image-picker/type.d.ts +174 -0
  208. package/esm/image-picker/type.js +1 -0
  209. package/esm/image-preview/index.d.ts +3 -3
  210. package/esm/image-preview/index.js +1 -1
  211. package/esm/index.d.ts +3 -0
  212. package/esm/index.js +3 -0
  213. package/esm/input/hooks.js +49 -8
  214. package/esm/input/index.d.ts +1 -1
  215. package/esm/input/index.js +1 -1
  216. package/esm/input/props.d.ts +8 -2
  217. package/esm/nav-bar/index.js +6 -2
  218. package/esm/notice-bar/index.d.ts +1 -1
  219. package/esm/notice-bar/index.js +1 -1
  220. package/esm/picker/index.d.ts +1 -1
  221. package/esm/picker/index.js +1 -1
  222. package/esm/picker-view/index.d.ts +1 -1
  223. package/esm/picker-view/index.js +1 -1
  224. package/esm/popover/index.d.ts +1 -1
  225. package/esm/popover/index.js +1 -1
  226. package/esm/popup-swiper/index.js +3 -2
  227. package/esm/radio/index.d.ts +1 -1
  228. package/esm/radio/index.js +1 -1
  229. package/esm/rate/index.d.ts +1 -1
  230. package/esm/rate/index.js +1 -1
  231. package/esm/search-bar/association.d.ts +3 -0
  232. package/esm/search-bar/association.js +82 -0
  233. package/esm/search-bar/cancel-button.d.ts +10 -0
  234. package/esm/search-bar/cancel-button.js +30 -0
  235. package/esm/search-bar/demo/style/css/mobile.css +5 -0
  236. package/esm/search-bar/demo/style/mobile.less +9 -0
  237. package/esm/search-bar/highlight.d.ts +12 -0
  238. package/esm/search-bar/highlight.js +66 -0
  239. package/esm/search-bar/index.d.ts +13 -0
  240. package/esm/search-bar/index.js +213 -0
  241. package/esm/search-bar/style/css/index.css +148 -0
  242. package/esm/search-bar/style/css/index.d.ts +2 -0
  243. package/esm/search-bar/style/css/index.js +2 -0
  244. package/esm/search-bar/style/index.d.ts +2 -0
  245. package/esm/search-bar/style/index.js +2 -0
  246. package/esm/search-bar/style/index.less +111 -0
  247. package/esm/search-bar/type.d.ts +163 -0
  248. package/esm/search-bar/type.js +1 -0
  249. package/esm/show-monitor/index.js +31 -3
  250. package/esm/slider/index.d.ts +1 -1
  251. package/esm/slider/index.js +1 -1
  252. package/esm/steps/demo/style/css/mobile.css +1 -1
  253. package/esm/steps/demo/style/mobile.less +1 -1
  254. package/esm/steps/index.d.ts +1 -1
  255. package/esm/steps/index.js +1 -1
  256. package/esm/steps/style/css/index.css +5 -15
  257. package/esm/steps/style/index.less +6 -10
  258. package/esm/sticky/index.d.ts +1 -1
  259. package/esm/style.d.ts +3 -0
  260. package/esm/style.js +3 -0
  261. package/esm/swipe-action/demo/style/css/mobile.css +5 -0
  262. package/esm/swipe-action/demo/style/mobile.less +9 -0
  263. package/esm/swipe-action/index.d.ts +12 -0
  264. package/esm/swipe-action/index.js +321 -0
  265. package/esm/swipe-action/item.d.ts +11 -0
  266. package/esm/swipe-action/item.js +42 -0
  267. package/esm/swipe-action/style/css/index.css +88 -0
  268. package/esm/swipe-action/style/css/index.d.ts +2 -0
  269. package/esm/swipe-action/style/css/index.js +2 -0
  270. package/esm/swipe-action/style/index.d.ts +2 -0
  271. package/esm/swipe-action/style/index.js +2 -0
  272. package/esm/swipe-action/style/index.less +89 -0
  273. package/esm/swipe-action/type.d.ts +123 -0
  274. package/esm/swipe-action/type.js +1 -0
  275. package/esm/switch/index.d.ts +1 -1
  276. package/esm/switch/index.js +1 -1
  277. package/esm/tabs/tab-pane.js +5 -1
  278. package/esm/tag/index.d.ts +1 -1
  279. package/esm/tag/index.js +1 -1
  280. package/esm/textarea/index.d.ts +1 -1
  281. package/esm/textarea/index.js +1 -1
  282. package/package.json +3 -3
  283. package/tokens/app/arcodesign/default/css-variables.less +53 -3
  284. package/tokens/app/arcodesign/default/index.d.ts +53 -3
  285. package/tokens/app/arcodesign/default/index.js +54 -4
  286. package/tokens/app/arcodesign/default/index.json +629 -39
  287. package/tokens/app/arcodesign/default/index.less +53 -3
  288. package/umd/_helpers/type.d.ts +1 -1
  289. package/umd/avatar/group.js +1 -1
  290. package/umd/avatar/index.d.ts +1 -1
  291. package/umd/avatar/index.js +11 -14
  292. package/umd/avatar/style/css/index.css +96 -126
  293. package/umd/avatar/style/index.less +54 -72
  294. package/umd/badge/index.d.ts +1 -1
  295. package/umd/badge/index.js +7 -9
  296. package/umd/badge/style/css/index.css +5 -5
  297. package/umd/badge/style/index.less +5 -5
  298. package/umd/button/hooks.d.ts +1 -2
  299. package/umd/button/hooks.js +5 -3
  300. package/umd/button/index.d.ts +6 -0
  301. package/umd/button/index.js +38 -33
  302. package/umd/button/style/css/index.css +75 -310
  303. package/umd/button/style/index.less +32 -38
  304. package/umd/carousel/index.d.ts +1 -1
  305. package/umd/carousel/index.js +1 -1
  306. package/umd/cell/index.d.ts +1 -1
  307. package/umd/cell/index.js +1 -1
  308. package/umd/checkbox/index.d.ts +1 -1
  309. package/umd/checkbox/index.js +1 -1
  310. package/umd/collapse/index.d.ts +1 -1
  311. package/umd/collapse/index.js +1 -1
  312. package/umd/count-down/demo/style/mobile.less +1 -1
  313. package/umd/count-down/index.d.ts +1 -1
  314. package/umd/count-down/index.js +1 -1
  315. package/umd/date-picker/index.d.ts +1 -1
  316. package/umd/date-picker/index.js +1 -1
  317. package/umd/dropdown/dropdown.d.ts +3 -0
  318. package/umd/dropdown/dropdown.js +325 -0
  319. package/umd/dropdown/index.d.ts +3 -4
  320. package/umd/dropdown/index.js +5 -298
  321. package/umd/dropdown/options.js +2 -1
  322. package/umd/dropdown/style/css/index.css +3 -0
  323. package/umd/dropdown/style/index.less +2 -0
  324. package/umd/dropdown/type.d.ts +20 -9
  325. package/umd/dropdown-menu/dropdown-menu.d.ts +4 -0
  326. package/umd/dropdown-menu/dropdown-menu.js +278 -0
  327. package/umd/dropdown-menu/helper.d.ts +1 -1
  328. package/umd/dropdown-menu/index.d.ts +2 -3
  329. package/umd/dropdown-menu/index.js +5 -241
  330. package/umd/dropdown-menu/type.d.ts +21 -20
  331. package/umd/ellipsis/index.d.ts +1 -1
  332. package/umd/ellipsis/index.js +1 -1
  333. package/umd/grid/index.js +13 -12
  334. package/umd/image/index.d.ts +1 -2
  335. package/umd/image/index.js +14 -9
  336. package/umd/image/style/css/index.css +2 -1
  337. package/umd/image/style/index.less +2 -1
  338. package/umd/image-picker/add-icon.d.ts +2 -0
  339. package/umd/image-picker/add-icon.js +35 -0
  340. package/umd/image-picker/demo/style/css/mobile.css +40 -0
  341. package/umd/image-picker/demo/style/mobile.less +42 -0
  342. package/umd/image-picker/index.d.ts +13 -0
  343. package/umd/image-picker/index.js +329 -0
  344. package/umd/image-picker/style/css/index.css +147 -0
  345. package/umd/image-picker/style/css/index.d.ts +2 -0
  346. package/umd/image-picker/style/css/index.js +15 -0
  347. package/umd/image-picker/style/index.d.ts +2 -0
  348. package/umd/image-picker/style/index.js +15 -0
  349. package/umd/image-picker/style/index.less +116 -0
  350. package/umd/image-picker/type.d.ts +174 -0
  351. package/umd/image-picker/type.js +17 -0
  352. package/umd/image-preview/index.d.ts +3 -3
  353. package/umd/image-preview/index.js +1 -1
  354. package/umd/index.d.ts +3 -0
  355. package/umd/index.js +11 -5
  356. package/umd/input/hooks.js +48 -7
  357. package/umd/input/index.d.ts +1 -1
  358. package/umd/input/index.js +1 -1
  359. package/umd/input/props.d.ts +8 -2
  360. package/umd/nav-bar/index.js +9 -6
  361. package/umd/notice-bar/index.d.ts +1 -1
  362. package/umd/notice-bar/index.js +1 -1
  363. package/umd/picker/index.d.ts +1 -1
  364. package/umd/picker/index.js +1 -1
  365. package/umd/picker-view/index.d.ts +1 -1
  366. package/umd/picker-view/index.js +1 -1
  367. package/umd/popover/index.d.ts +1 -1
  368. package/umd/popover/index.js +1 -1
  369. package/umd/popup-swiper/index.js +3 -2
  370. package/umd/radio/index.d.ts +1 -1
  371. package/umd/radio/index.js +1 -1
  372. package/umd/rate/index.d.ts +1 -1
  373. package/umd/rate/index.js +1 -1
  374. package/umd/search-bar/association.d.ts +3 -0
  375. package/umd/search-bar/association.js +101 -0
  376. package/umd/search-bar/cancel-button.d.ts +10 -0
  377. package/umd/search-bar/cancel-button.js +52 -0
  378. package/umd/search-bar/demo/style/css/mobile.css +5 -0
  379. package/umd/search-bar/demo/style/mobile.less +9 -0
  380. package/umd/search-bar/highlight.d.ts +12 -0
  381. package/umd/search-bar/highlight.js +87 -0
  382. package/umd/search-bar/index.d.ts +13 -0
  383. package/umd/search-bar/index.js +235 -0
  384. package/umd/search-bar/style/css/index.css +148 -0
  385. package/umd/search-bar/style/css/index.d.ts +2 -0
  386. package/umd/search-bar/style/css/index.js +15 -0
  387. package/umd/search-bar/style/index.d.ts +2 -0
  388. package/umd/search-bar/style/index.js +15 -0
  389. package/umd/search-bar/style/index.less +111 -0
  390. package/umd/search-bar/type.d.ts +163 -0
  391. package/umd/search-bar/type.js +17 -0
  392. package/umd/show-monitor/index.js +31 -3
  393. package/umd/slider/index.d.ts +1 -1
  394. package/umd/slider/index.js +1 -1
  395. package/umd/steps/demo/style/css/mobile.css +1 -1
  396. package/umd/steps/demo/style/mobile.less +1 -1
  397. package/umd/steps/index.d.ts +1 -1
  398. package/umd/steps/index.js +1 -1
  399. package/umd/steps/style/css/index.css +5 -15
  400. package/umd/steps/style/index.less +6 -10
  401. package/umd/sticky/index.d.ts +1 -1
  402. package/umd/style.d.ts +3 -0
  403. package/umd/style.js +4 -4
  404. package/umd/swipe-action/demo/style/css/mobile.css +5 -0
  405. package/umd/swipe-action/demo/style/mobile.less +9 -0
  406. package/umd/swipe-action/index.d.ts +12 -0
  407. package/umd/swipe-action/index.js +342 -0
  408. package/umd/swipe-action/item.d.ts +11 -0
  409. package/umd/swipe-action/item.js +62 -0
  410. package/umd/swipe-action/style/css/index.css +88 -0
  411. package/umd/swipe-action/style/css/index.d.ts +2 -0
  412. package/umd/swipe-action/style/css/index.js +15 -0
  413. package/umd/swipe-action/style/index.d.ts +2 -0
  414. package/umd/swipe-action/style/index.js +15 -0
  415. package/umd/swipe-action/style/index.less +89 -0
  416. package/umd/swipe-action/type.d.ts +123 -0
  417. package/umd/swipe-action/type.js +17 -0
  418. package/umd/switch/index.d.ts +1 -1
  419. package/umd/switch/index.js +1 -1
  420. package/umd/tabs/tab-pane.js +5 -1
  421. package/umd/tag/index.d.ts +1 -1
  422. package/umd/tag/index.js +1 -1
  423. package/umd/textarea/index.d.ts +1 -1
  424. package/umd/textarea/index.js +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,59 @@
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.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)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * `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))
12
+ * `Dropdown` optimize animation when direction changed ([2022692](https://github.com/arco-design/arco-design-mobile/commit/20226924759486d66ecae7a8e466bc1c676cd923))
13
+ * `Dropdown` support customize select icon & value of string type ([9eb6f5d](https://github.com/arco-design/arco-design-mobile/commit/9eb6f5db76d2a1975e61a478d897522cf8bcbf8e))
14
+ * `DropdownMenu` optimize renderSelectLabel params ([1c685fd](https://github.com/arco-design/arco-design-mobile/commit/1c685fd85851f6735d1d91dc49c6f28ade0a858c))
15
+ * `ImagePicker` convert event.target.files to array ([dec36f1](https://github.com/arco-design/arco-design-mobile/commit/dec36f1edf313e34bb1fd290ce314206639a5717))
16
+ * `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))
17
+ * `ImagePicker` optimize display when uploading ([a99f2f3](https://github.com/arco-design/arco-design-mobile/commit/a99f2f3e2927ce2f263a496da09e391395a8b545))
18
+ * `NavBar` trigger caculation when showOffset changes ([06119ce](https://github.com/arco-design/arco-design-mobile/commit/06119ceeefb286ac963dae0f8b49a1112063d1b9))
19
+ * `PopupSwiper` optimize moving direction ([fe1d100](https://github.com/arco-design/arco-design-mobile/commit/fe1d100fb3aba069ad66255c93654823beebf249))
20
+ * `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))
21
+ * `Steps` converge style to token ([6cf4f26](https://github.com/arco-design/arco-design-mobile/commit/6cf4f267a271dc0d03f559c4aca8199f9fcae2ec))
22
+ * `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)
23
+ * components classname optimize: `Avatar` & `Button` & `Badge` ([e6b70dd](https://github.com/arco-design/arco-design-mobile/commit/e6b70dd5eebb23646f2e7639b8a8a73bd51e57c3))
24
+
25
+
26
+ ### Features
27
+
28
+ * 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))
29
+ * 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))
30
+ * add new component `SwipeAction` ([221dc57](https://github.com/arco-design/arco-design-mobile/commit/221dc5776a508fcccd27de992e1ae58d137b7fb6))
31
+
32
+
33
+
34
+
35
+
36
+ # [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)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * `Button` support coverIconWhenLoading ([#33](https://github.com/arco-design/arco-design-mobile/issues/33)) ([2ef79f5](https://github.com/arco-design/arco-design-mobile/commit/2ef79f5f77081682075d00beb8639c87515aa4b3))
42
+ * `Dropdown` support customize select icon & value of string type ([9eb6f5d](https://github.com/arco-design/arco-design-mobile/commit/9eb6f5db76d2a1975e61a478d897522cf8bcbf8e))
43
+ * `DropdownMenu` optimize renderSelectLabel params ([1c685fd](https://github.com/arco-design/arco-design-mobile/commit/1c685fd85851f6735d1d91dc49c6f28ade0a858c))
44
+ * `ImagePicker` optimize display when uploading ([eba85a4](https://github.com/arco-design/arco-design-mobile/commit/eba85a46bfadddc5924f8cd89f614416bdb0e3c1))
45
+ * `NavBar` trigger caculation when showOffset changes ([06119ce](https://github.com/arco-design/arco-design-mobile/commit/06119ceeefb286ac963dae0f8b49a1112063d1b9))
46
+ * `ShowMonitor` support flush visible status ([#31](https://github.com/arco-design/arco-design-mobile/issues/31)) ([b5e12b2](https://github.com/arco-design/arco-design-mobile/commit/b5e12b27cd464cc137be810bea828850934072b0))
47
+ * `Steps` converge style to token ([6cf4f26](https://github.com/arco-design/arco-design-mobile/commit/6cf4f267a271dc0d03f559c4aca8199f9fcae2ec))
48
+ * components classname optimize: `Avatar` & `Button` & `Badge` ([cba4ac4](https://github.com/arco-design/arco-design-mobile/commit/cba4ac4bfafbe4edd53019b2c2ee314e092e409b))
49
+
50
+
51
+ ### Features
52
+
53
+ * 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))
54
+
55
+
56
+
57
+
58
+
6
59
  ## [2.19.1](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.19.0...@arco-design/mobile-react@2.19.1) (2022-07-22)
7
60
 
8
61
 
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/browse/@arco-design/mobile-react@2.19.0/dist/style.min.css">
63
- <script src="https://unpkg.com/browse/@arco-design/mobile-react@2.19.0/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.20.0/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.20.0/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## Full import
@@ -89,7 +89,7 @@ npm install babel-plugin-import -D
89
89
  plugins: [
90
90
  ["import", {
91
91
  "libraryName": "@arco-design/mobile-react",
92
- "libraryDirectory": "esm",
92
+ "libraryDirectory": "esm", // In SSR environment, you need to use `cjs` here
93
93
  "style": (path) => `${path}/style`,
94
94
  }]
95
95
  ]
@@ -102,7 +102,7 @@ plugins: [
102
102
  ```js
103
103
  plugins: [
104
104
  ["import", {
105
- "libraryName": "@arco-design/mobile-react/esm/icon",
105
+ "libraryName": "@arco-design/mobile-react/esm/icon", // In SSR environment, you need to replace `esm` with `cjs`
106
106
  "libraryDirectory": "",
107
107
  "camel2DashComponentName": false,
108
108
  }]
@@ -115,11 +115,11 @@ If both **component** and **Icon** need to be imported on demand, you need to ad
115
115
  plugins: [
116
116
  ["import", {
117
117
  "libraryName": "@arco-design/mobile-react",
118
- "libraryDirectory": "esm",
118
+ "libraryDirectory": "esm", // In SSR environment, you need to use `cjs` here
119
119
  "style": (path) => `${path}/style`
120
120
  }, "@arco-design/mobile-react"],
121
121
  ["import", {
122
- "libraryName": "@arco-design/mobile-react/esm/icon",
122
+ "libraryName": "@arco-design/mobile-react/esm/icon", // In SSR environment, you need to replace `esm` with `cjs`
123
123
  "libraryDirectory": "",
124
124
  "camel2DashComponentName": false
125
125
  }, "@arco-design/mobile-react/esm/icon"]
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/browse/@arco-design/mobile-react@2.19.0/dist/style.min.css">
63
- <script src="https://unpkg.com/browse/@arco-design/mobile-react@2.19.0/dist/index.min.js"></script>
62
+ <link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.20.0/dist/style.min.css">
63
+ <script src="https://unpkg.com/@arco-design/mobile-react@2.20.0/dist/index.min.js"></script>
64
64
  ```
65
65
 
66
66
  ## 引入全部
@@ -89,7 +89,7 @@ npm install babel-plugin-import -D
89
89
  plugins: [
90
90
  ["import", {
91
91
  "libraryName": "@arco-design/mobile-react",
92
- "libraryDirectory": "esm",
92
+ "libraryDirectory": "esm", // 注意如果是 SSR 环境,这里需使用 `cjs`
93
93
  "style": (path) => `${path}/style`,
94
94
  }]
95
95
  ]
@@ -102,7 +102,7 @@ plugins: [
102
102
  ```js
103
103
  plugins: [
104
104
  ["import", {
105
- "libraryName": "@arco-design/mobile-react/esm/icon",
105
+ "libraryName": "@arco-design/mobile-react/esm/icon", // 注意如果是 SSR 环境,这里需将 `esm` 替换为 `cjs`
106
106
  "libraryDirectory": "",
107
107
  "camel2DashComponentName": false,
108
108
  }]
@@ -115,11 +115,11 @@ plugins: [
115
115
  plugins: [
116
116
  ["import", {
117
117
  "libraryName": "@arco-design/mobile-react",
118
- "libraryDirectory": "esm",
118
+ "libraryDirectory": "esm", // 注意如果是 SSR 环境,这里需使用 `cjs`
119
119
  "style": (path) => `${path}/style`
120
120
  }, "@arco-design/mobile-react"],
121
121
  ["import", {
122
- "libraryName": "@arco-design/mobile-react/esm/icon",
122
+ "libraryName": "@arco-design/mobile-react/esm/icon", // 注意如果是 SSR 环境,这里需将 `esm` 替换为 `cjs`
123
123
  "libraryDirectory": "",
124
124
  "camel2DashComponentName": false
125
125
  }, "@arco-design/mobile-react/esm/icon"]
@@ -25,6 +25,6 @@ export interface BaseRef {
25
25
  /**
26
26
  * 组件外层dom元素
27
27
  * @en The outer DOM element of the component
28
- * */
28
+ */
29
29
  dom: HTMLDivElement | null;
30
30
  }
@@ -57,7 +57,7 @@ var Group = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
57
57
  return /*#__PURE__*/_react.default.createElement("div", {
58
58
  ref: domRef,
59
59
  style: style,
60
- className: (0, _mobileUtils.cls)(className, prefixCls + "-avatar-group", "group-" + size)
60
+ className: (0, _mobileUtils.cls)(className, prefixCls + "-avatar-group", prefixCls + "-avatar-group-size-" + size, "group-" + size)
61
61
  }, /*#__PURE__*/_react.default.createElement(AvatarGroupContext.Provider, {
62
62
  value: {
63
63
  isGroup: true,
@@ -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
@@ -38,7 +38,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
38
38
 
39
39
  function componentGenerator(Comp) {
40
40
  return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
41
- var _cls;
41
+ var _cls, _cls2;
42
42
 
43
43
  var _useContext = (0, _react.useContext)(_contextProvider.GlobalContext),
44
44
  prefixCls = _useContext.prefixCls;
@@ -77,10 +77,7 @@ function componentGenerator(Comp) {
77
77
  style = _props$style === void 0 ? {} : _props$style,
78
78
  _props$imageProps = props.imageProps,
79
79
  imageProps = _props$imageProps === void 0 ? {} : _props$imageProps,
80
- _props$defaultOverLap = props.defaultOverLap,
81
- defaultOverLap = _props$defaultOverLap === void 0 ? /*#__PURE__*/_react.default.createElement(_IconUserFill.default, {
82
- className: prefixCls + "-avatar-default"
83
- }) : _props$defaultOverLap,
80
+ defaultOverLap = props.defaultOverLap,
84
81
  onClickDecoration = props.onClickDecoration,
85
82
  onClick = props.onClick;
86
83
  var domRef = (0, _react.useRef)(null);
@@ -140,19 +137,19 @@ function componentGenerator(Comp) {
140
137
  return /*#__PURE__*/_react.default.createElement("div", {
141
138
  ref: domRef,
142
139
  style: style,
143
- className: (0, _mobileUtils.cls)(prefixCls + "-avatar-wrapper", className, size, shape, {
144
- 'with-info': Boolean(avatarName)
145
- }),
140
+ className: (0, _mobileUtils.cls)(prefixCls + "-avatar-wrapper", className, size, shape, prefixCls + "-avatar-wrapper-shape-" + shape, (_cls = {}, _cls[prefixCls + "-avatar-wrapper-with-info " + prefixCls + "-avatar-wrapper-with-info-size-" + size + " with-info"] = Boolean(avatarName), _cls)),
146
141
  onClick: onClick
147
142
  }, /*#__PURE__*/_react.default.createElement("div", {
148
- className: (0, _mobileUtils.cls)(prefixCls + "-avatar", size, shape, (_cls = {}, _cls[prefixCls + "-text-avatar"] = isTextAvatar, _cls[prefixCls + "-image-avatar"] = isImageAvatar, _cls['default-overlap'] = useDefaultAvatar, _cls)),
143
+ className: (0, _mobileUtils.cls)(prefixCls + "-avatar", prefixCls + "-avatar-size-" + size, size, prefixCls + "-avatar-shape-" + shape, shape, (_cls2 = {}, _cls2[prefixCls + "-text-avatar " + prefixCls + "-avatar-mode-text"] = isTextAvatar, _cls2[prefixCls + "-image-avatar " + prefixCls + "-avatar-mode-image"] = isImageAvatar, _cls2[prefixCls + "-avatar-default-overlap default-overlap"] = useDefaultAvatar, _cls2)),
149
144
  style: avatarStyle,
150
145
  ref: avatarRef
151
- }, children, useDefaultAvatar && defaultOverLap, isImageAvatar && src && /*#__PURE__*/_react.default.createElement(Comp, (0, _extends2.default)({
146
+ }, children, useDefaultAvatar && (defaultOverLap === void 0 ? /*#__PURE__*/_react.default.createElement(_IconUserFill.default, {
147
+ className: prefixCls + "-avatar-default " + prefixCls + "-avatar-default-icon-size-" + size
148
+ }) : defaultOverLap), isImageAvatar && src && /*#__PURE__*/_react.default.createElement(Comp, (0, _extends2.default)({
152
149
  className: prefixCls + "-avatar-img",
153
150
  src: src
154
151
  }, imageProps)), isTextAvatar && /*#__PURE__*/_react.default.createElement("span", {
155
- className: prefixCls + "-avatar-text",
152
+ className: prefixCls + "-avatar-text " + prefixCls + "-avatar-text-size-" + size,
156
153
  ref: avatarTextRef,
157
154
  style: {
158
155
  transform: "scale(" + textScale + ")"
@@ -163,9 +160,9 @@ function componentGenerator(Comp) {
163
160
  }, decoration)), renderInfo, !renderInfo && avatarName && /*#__PURE__*/_react.default.createElement("div", {
164
161
  className: (0, _mobileUtils.cls)(prefixCls + "-avatar-info")
165
162
  }, /*#__PURE__*/_react.default.createElement("div", {
166
- className: (0, _mobileUtils.cls)(prefixCls + "-avatar-name")
163
+ className: prefixCls + "-avatar-name " + prefixCls + "-avatar-name-size-" + size
167
164
  }, avatarName), avatarDesc && /*#__PURE__*/_react.default.createElement("div", {
168
- className: (0, _mobileUtils.cls)(prefixCls + "-avatar-desc")
165
+ className: prefixCls + "-avatar-desc " + prefixCls + "-avatar-desc-size-" + size
169
166
  }, avatarDesc)));
170
167
  });
171
168
  }
@@ -174,7 +171,7 @@ var Avatar = componentGenerator(_image.BaseImage);
174
171
  /**
175
172
  * 头像展示组件,支持圆形和方形两种形状,支持图片文字头像,支持五种尺寸。
176
173
  * @en Avatar component supports two shapes of circle and square, supports pictures or text avatars, with five sizes.
177
- * @type 数据展示
174
+ * @type 信息展示
178
175
  * @type_en Data Display
179
176
  * @name 头像
180
177
  * @name_en Avatar
@@ -1,74 +1,3 @@
1
- .arco-avatar-wrapper {
2
- display: inline-block;
3
- }
4
- .arco-avatar-wrapper.with-info.ultra-small {
5
- height: 1.12rem ;
6
- }
7
- .arco-avatar-wrapper.ultra-small .arco-avatar-name {
8
- font-size: 0.26rem ;
9
- line-height: 0.36rem ;
10
- }
11
- .arco-avatar-wrapper.ultra-small .arco-avatar-desc {
12
- margin-top: 0.04rem ;
13
- font-size: 0.2rem ;
14
- line-height: 0.28rem ;
15
- }
16
- .arco-avatar-wrapper.with-info.smaller {
17
- height: 1.28rem ;
18
- }
19
- .arco-avatar-wrapper.smaller .arco-avatar-name {
20
- font-size: 0.28rem ;
21
- line-height: 0.4rem ;
22
- }
23
- .arco-avatar-wrapper.smaller .arco-avatar-desc {
24
- margin-top: 0 ;
25
- font-size: 0.24rem ;
26
- line-height: 0.32rem ;
27
- }
28
- .arco-avatar-wrapper.with-info.small {
29
- height: 1.6rem ;
30
- }
31
- .arco-avatar-wrapper.small .arco-avatar-name {
32
- font-size: 0.32rem ;
33
- line-height: 0.48rem ;
34
- }
35
- .arco-avatar-wrapper.small .arco-avatar-desc {
36
- margin-top: 0 ;
37
- font-size: 0.24rem ;
38
- line-height: 0.32rem ;
39
- }
40
- .arco-avatar-wrapper.with-info.medium {
41
- height: 1.6rem ;
42
- }
43
- .arco-avatar-wrapper.medium .arco-avatar-name {
44
- font-size: 0.36rem ;
45
- line-height: 0.52rem ;
46
- }
47
- .arco-avatar-wrapper.medium .arco-avatar-desc {
48
- margin-top: 0.04rem ;
49
- font-size: 0.28rem ;
50
- line-height: 0.4rem ;
51
- }
52
- .arco-avatar-wrapper.with-info.large {
53
- height: 1.76rem ;
54
- }
55
- .arco-avatar-wrapper.large .arco-avatar-name {
56
- font-size: 0.36rem ;
57
- line-height: 0.52rem ;
58
- }
59
- .arco-avatar-wrapper.large .arco-avatar-desc {
60
- margin-top: 0.04rem ;
61
- font-size: 0.28rem ;
62
- line-height: 0.4rem ;
63
- }
64
- .arco-avatar-wrapper.with-info {
65
- display: -webkit-box;
66
- display: -webkit-flex;
67
- display: flex;
68
- -webkit-box-align: center;
69
- -webkit-align-items: center;
70
- align-items: center;
71
- }
72
1
  .arco-avatar {
73
2
  position: relative;
74
3
  font-size: 0;
@@ -84,104 +13,134 @@
84
13
  color: #fff ;
85
14
  background-color: #4080FF ;
86
15
  }
87
- .arco-avatar.arco-image-avatar {
16
+ .arco-avatar-mode-image {
88
17
  background-color: transparent;
89
18
  }
90
- .arco-avatar.default-overlap {
19
+ .arco-avatar-default-overlap {
91
20
  background-color: #c9cdd4 ;
92
21
  }
93
- .arco-avatar.circle {
22
+ .arco-avatar-shape-circle {
94
23
  border-radius: 50%;
95
24
  }
96
- .arco-avatar.circle .arco-avatar-img .image-content {
25
+ .arco-avatar-shape-circle .arco-avatar-img .image-content {
97
26
  border-radius: 50%;
98
27
  }
99
- .arco-avatar.square {
28
+ .arco-avatar-shape-square {
100
29
  border-radius: 0.08rem;
101
30
  }
102
- .arco-avatar.square .arco-avatar-img .image-content {
31
+ .arco-avatar-shape-square .arco-avatar-img .image-content {
103
32
  border-radius: 0.08rem;
104
33
  }
105
- .arco-avatar.group-ultra-small .arco-avatar-wrapper {
106
- margin-left: -0.16rem ;
107
- }
108
- .arco-avatar.group-ultra-small .arco-avatar {
109
- border-width: 0.02rem ;
110
- }
111
- .arco-avatar.ultra-small {
34
+ .arco-avatar-size-ultra-small {
112
35
  width: 0.48rem ;
113
36
  height: 0.48rem ;
114
37
  }
115
- .arco-avatar.ultra-small .arco-avatar-default {
38
+ .arco-avatar-default-icon-size-ultra-small {
116
39
  font-size: 0.24rem ;
117
40
  }
118
- .arco-avatar.ultra-small .arco-avatar-text {
41
+ .arco-avatar-text-size-ultra-small {
119
42
  font-size: 0.2rem ;
120
43
  }
121
- .arco-avatar.group-smaller .arco-avatar-wrapper {
122
- margin-left: -0.16rem ;
44
+ .arco-avatar-wrapper-with-info-size-ultra-small {
45
+ height: 1.12rem ;
123
46
  }
124
- .arco-avatar.group-smaller .arco-avatar {
125
- border-width: 0.02rem ;
47
+ .arco-avatar-name-size-ultra-small {
48
+ font-size: 0.26rem ;
49
+ line-height: 0.36rem ;
126
50
  }
127
- .arco-avatar.smaller {
51
+ .arco-avatar-desc-size-ultra-small {
52
+ margin-top: 0.04rem ;
53
+ font-size: 0.2rem ;
54
+ line-height: 0.28rem ;
55
+ }
56
+ .arco-avatar-size-smaller {
128
57
  width: 0.64rem ;
129
58
  height: 0.64rem ;
130
59
  }
131
- .arco-avatar.smaller .arco-avatar-default {
60
+ .arco-avatar-default-icon-size-smaller {
132
61
  font-size: 0.32rem ;
133
62
  }
134
- .arco-avatar.smaller .arco-avatar-text {
63
+ .arco-avatar-text-size-smaller {
135
64
  font-size: 0.24rem ;
136
65
  }
137
- .arco-avatar.group-small .arco-avatar-wrapper {
138
- margin-left: -0.24rem ;
66
+ .arco-avatar-wrapper-with-info-size-smaller {
67
+ height: 1.28rem ;
139
68
  }
140
- .arco-avatar.group-small .arco-avatar {
141
- border-width: 0.03rem ;
69
+ .arco-avatar-name-size-smaller {
70
+ font-size: 0.28rem ;
71
+ line-height: 0.4rem ;
142
72
  }
143
- .arco-avatar.small {
73
+ .arco-avatar-desc-size-smaller {
74
+ margin-top: 0 ;
75
+ font-size: 0.24rem ;
76
+ line-height: 0.32rem ;
77
+ }
78
+ .arco-avatar-size-small {
144
79
  width: 0.8rem ;
145
80
  height: 0.8rem ;
146
81
  }
147
- .arco-avatar.small .arco-avatar-default {
82
+ .arco-avatar-default-icon-size-small {
148
83
  font-size: 0.4rem ;
149
84
  }
150
- .arco-avatar.small .arco-avatar-text {
85
+ .arco-avatar-text-size-small {
151
86
  font-size: 0.28rem ;
152
87
  }
153
- .arco-avatar.group-medium .arco-avatar-wrapper {
154
- margin-left: -0.24rem ;
88
+ .arco-avatar-wrapper-with-info-size-small {
89
+ height: 1.6rem ;
155
90
  }
156
- .arco-avatar.group-medium .arco-avatar {
157
- border-width: 0.03rem ;
91
+ .arco-avatar-name-size-small {
92
+ font-size: 0.32rem ;
93
+ line-height: 0.48rem ;
94
+ }
95
+ .arco-avatar-desc-size-small {
96
+ margin-top: 0 ;
97
+ font-size: 0.24rem ;
98
+ line-height: 0.32rem ;
158
99
  }
159
- .arco-avatar.medium {
100
+ .arco-avatar-size-medium {
160
101
  width: 0.96rem ;
161
102
  height: 0.96rem ;
162
103
  }
163
- .arco-avatar.medium .arco-avatar-default {
104
+ .arco-avatar-default-icon-size-medium {
164
105
  font-size: 0.48rem ;
165
106
  }
166
- .arco-avatar.medium .arco-avatar-text {
107
+ .arco-avatar-text-size-medium {
167
108
  font-size: 0.32rem ;
168
109
  }
169
- .arco-avatar.group-large .arco-avatar-wrapper {
170
- margin-left: -0.24rem ;
110
+ .arco-avatar-wrapper-with-info-size-medium {
111
+ height: 1.6rem ;
171
112
  }
172
- .arco-avatar.group-large .arco-avatar {
173
- border-width: 0.03rem ;
113
+ .arco-avatar-name-size-medium {
114
+ font-size: 0.36rem ;
115
+ line-height: 0.52rem ;
116
+ }
117
+ .arco-avatar-desc-size-medium {
118
+ margin-top: 0.04rem ;
119
+ font-size: 0.28rem ;
120
+ line-height: 0.4rem ;
174
121
  }
175
- .arco-avatar.large {
122
+ .arco-avatar-size-large {
176
123
  width: 1.12rem ;
177
124
  height: 1.12rem ;
178
125
  }
179
- .arco-avatar.large .arco-avatar-default {
126
+ .arco-avatar-default-icon-size-large {
180
127
  font-size: 0.56rem ;
181
128
  }
182
- .arco-avatar.large .arco-avatar-text {
129
+ .arco-avatar-text-size-large {
183
130
  font-size: 0.32rem ;
184
131
  }
132
+ .arco-avatar-wrapper-with-info-size-large {
133
+ height: 1.76rem ;
134
+ }
135
+ .arco-avatar-name-size-large {
136
+ font-size: 0.36rem ;
137
+ line-height: 0.52rem ;
138
+ }
139
+ .arco-avatar-desc-size-large {
140
+ margin-top: 0.04rem ;
141
+ font-size: 0.28rem ;
142
+ line-height: 0.4rem ;
143
+ }
185
144
  .arco-avatar-img {
186
145
  width: 100%;
187
146
  height: 100%;
@@ -195,6 +154,17 @@
195
154
  flex: 0 0 auto;
196
155
  font-weight: bold;
197
156
  }
157
+ .arco-avatar-wrapper {
158
+ display: inline-block;
159
+ }
160
+ .arco-avatar-wrapper-with-info {
161
+ display: -webkit-box;
162
+ display: -webkit-flex;
163
+ display: flex;
164
+ -webkit-box-align: center;
165
+ -webkit-align-items: center;
166
+ align-items: center;
167
+ }
198
168
  .arco-avatar-info {
199
169
  display: -webkit-box;
200
170
  display: -webkit-flex;
@@ -214,43 +184,43 @@
214
184
  .arco-avatar-desc {
215
185
  color: #86909c ;
216
186
  }
217
- .arco-avatar-group .arco-avatar-wrapper.circle {
187
+ .arco-avatar-group .arco-avatar-wrapper-shape-circle {
218
188
  position: relative;
219
189
  }
220
- .arco-avatar-group .arco-avatar-wrapper.circle:first-child {
190
+ .arco-avatar-group .arco-avatar-wrapper-shape-circle:first-child {
221
191
  margin-left: 0;
222
192
  }
223
193
  .arco-avatar-group .arco-avatar {
224
194
  border-style: solid;
225
195
  border-color: #ffffff ;
226
196
  }
227
- .arco-avatar-group.group-ultra-small .arco-avatar-wrapper {
197
+ .arco-avatar-group-size-ultra-small .arco-avatar-wrapper {
228
198
  margin-left: -0.16rem ;
229
199
  }
230
- .arco-avatar-group.group-ultra-small .arco-avatar {
200
+ .arco-avatar-group-size-ultra-small .arco-avatar {
231
201
  border-width: 0.02rem ;
232
202
  }
233
- .arco-avatar-group.group-smaller .arco-avatar-wrapper {
203
+ .arco-avatar-group-size-smaller .arco-avatar-wrapper {
234
204
  margin-left: -0.16rem ;
235
205
  }
236
- .arco-avatar-group.group-smaller .arco-avatar {
206
+ .arco-avatar-group-size-smaller .arco-avatar {
237
207
  border-width: 0.02rem ;
238
208
  }
239
- .arco-avatar-group.group-small .arco-avatar-wrapper {
209
+ .arco-avatar-group-size-small .arco-avatar-wrapper {
240
210
  margin-left: -0.24rem ;
241
211
  }
242
- .arco-avatar-group.group-small .arco-avatar {
212
+ .arco-avatar-group-size-small .arco-avatar {
243
213
  border-width: 0.03rem ;
244
214
  }
245
- .arco-avatar-group.group-medium .arco-avatar-wrapper {
215
+ .arco-avatar-group-size-medium .arco-avatar-wrapper {
246
216
  margin-left: -0.24rem ;
247
217
  }
248
- .arco-avatar-group.group-medium .arco-avatar {
218
+ .arco-avatar-group-size-medium .arco-avatar {
249
219
  border-width: 0.03rem ;
250
220
  }
251
- .arco-avatar-group.group-large .arco-avatar-wrapper {
221
+ .arco-avatar-group-size-large .arco-avatar-wrapper {
252
222
  margin-left: -0.24rem ;
253
223
  }
254
- .arco-avatar-group.group-large .arco-avatar {
224
+ .arco-avatar-group-size-large .arco-avatar {
255
225
  border-width: 0.03rem ;
256
226
  }