@arco-design/mobile-react 2.30.2 → 2.30.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/action-sheet/index.d.ts +2 -2
  5. package/cjs/action-sheet/style/css/index.css +30 -30
  6. package/cjs/action-sheet/style/index.less +1 -1
  7. package/cjs/avatar/style/css/index.css +54 -30
  8. package/cjs/avatar/style/index.less +3 -3
  9. package/cjs/badge/style/css/index.css +30 -30
  10. package/cjs/badge/style/index.less +1 -1
  11. package/cjs/button/style/css/index.css +30 -30
  12. package/cjs/button/style/index.less +1 -1
  13. package/cjs/carousel/index.d.ts +5 -0
  14. package/cjs/carousel/index.js +2 -1
  15. package/cjs/carousel/style/css/index.css +30 -30
  16. package/cjs/carousel/style/index.less +1 -1
  17. package/cjs/cell/style/css/index.css +30 -30
  18. package/cjs/cell/style/index.less +1 -1
  19. package/cjs/checkbox/style/css/index.css +30 -30
  20. package/cjs/checkbox/style/index.less +1 -1
  21. package/cjs/circle-progress/style/css/index.css +30 -30
  22. package/cjs/circle-progress/style/index.less +1 -1
  23. package/cjs/collapse/style/css/index.css +30 -30
  24. package/cjs/collapse/style/index.less +1 -1
  25. package/cjs/count-down/style/css/index.css +30 -30
  26. package/cjs/count-down/style/index.less +1 -1
  27. package/cjs/date-picker/style/css/index.css +30 -30
  28. package/cjs/date-picker/style/index.less +1 -1
  29. package/cjs/dialog/index.d.ts +2 -2
  30. package/cjs/dialog/style/css/index.css +30 -30
  31. package/cjs/dialog/style/index.less +1 -1
  32. package/cjs/divider/style/css/index.css +38 -30
  33. package/cjs/divider/style/index.less +3 -3
  34. package/cjs/dropdown/style/css/index.css +37 -30
  35. package/cjs/dropdown/style/index.less +3 -4
  36. package/cjs/dropdown-menu/style/css/index.css +38 -30
  37. package/cjs/dropdown-menu/style/index.less +3 -3
  38. package/cjs/ellipsis/style/css/index.css +30 -30
  39. package/cjs/ellipsis/style/index.less +1 -1
  40. package/cjs/form/style/css/index.css +30 -30
  41. package/cjs/form/style/index.less +1 -1
  42. package/cjs/form/type.d.ts +2 -2
  43. package/cjs/grid/index.js +10 -4
  44. package/cjs/grid/style/css/index.css +37 -30
  45. package/cjs/grid/style/index.less +3 -3
  46. package/cjs/image/index.js +10 -5
  47. package/cjs/image/style/css/index.css +30 -30
  48. package/cjs/image/style/index.less +1 -1
  49. package/cjs/image-picker/style/css/index.css +30 -30
  50. package/cjs/image-picker/style/index.less +1 -1
  51. package/cjs/image-preview/index.d.ts +9 -3
  52. package/cjs/image-preview/index.js +54 -16
  53. package/cjs/image-preview/style/css/index.css +32 -31
  54. package/cjs/image-preview/style/index.less +3 -2
  55. package/cjs/index-bar/style/css/index.css +30 -30
  56. package/cjs/index-bar/style/index.less +1 -1
  57. package/cjs/index.d.ts +2 -2
  58. package/cjs/index.js +6 -6
  59. package/cjs/input/style/css/index.css +30 -30
  60. package/cjs/input/style/index.less +1 -1
  61. package/cjs/keyboard/style/css/index.css +30 -30
  62. package/cjs/keyboard/style/index.less +1 -1
  63. package/cjs/load-more/style/css/index.css +30 -30
  64. package/cjs/load-more/style/index.less +1 -1
  65. package/cjs/loading/style/css/index.css +30 -30
  66. package/cjs/loading/style/index.less +1 -1
  67. package/cjs/masking/index.d.ts +2 -2
  68. package/cjs/masking/style/css/index.css +30 -30
  69. package/cjs/masking/style/index.less +1 -1
  70. package/cjs/nav-bar/style/css/index.css +30 -30
  71. package/cjs/nav-bar/style/index.less +1 -1
  72. package/cjs/notice-bar/style/css/index.css +30 -30
  73. package/cjs/notice-bar/style/index.less +1 -1
  74. package/cjs/notify/style/css/index.css +30 -30
  75. package/cjs/notify/style/index.less +1 -1
  76. package/cjs/pagination/style/css/index.css +30 -30
  77. package/cjs/pagination/style/index.less +1 -1
  78. package/cjs/picker/style/css/index.css +30 -30
  79. package/cjs/picker/style/index.less +1 -1
  80. package/cjs/picker-view/style/css/index.css +30 -30
  81. package/cjs/picker-view/style/index.less +1 -1
  82. package/cjs/popover/style/css/index.css +39 -32
  83. package/cjs/popover/style/css/menu.css +34 -30
  84. package/cjs/popover/style/index.less +2 -3
  85. package/cjs/popover/style/menu.less +2 -2
  86. package/cjs/popup/index.d.ts +2 -2
  87. package/cjs/popup/style/css/index.css +30 -30
  88. package/cjs/popup/style/index.less +1 -1
  89. package/cjs/popup-swiper/index.d.ts +2 -2
  90. package/cjs/popup-swiper/style/css/index.css +30 -30
  91. package/cjs/popup-swiper/style/index.less +1 -1
  92. package/cjs/progress/style/css/index.css +30 -30
  93. package/cjs/progress/style/index.less +1 -1
  94. package/cjs/pull-refresh/style/css/index.css +34 -30
  95. package/cjs/pull-refresh/style/index.less +2 -2
  96. package/cjs/radio/style/css/index.css +30 -30
  97. package/cjs/radio/style/index.less +1 -1
  98. package/cjs/rate/style/css/index.css +30 -30
  99. package/cjs/rate/style/index.less +1 -1
  100. package/cjs/search-bar/style/css/index.css +30 -30
  101. package/cjs/search-bar/style/index.less +1 -1
  102. package/cjs/skeleton/index.d.ts +1 -0
  103. package/cjs/skeleton/index.js +10 -0
  104. package/cjs/skeleton/style/css/index.css +30 -30
  105. package/cjs/skeleton/style/index.less +1 -1
  106. package/cjs/slider/hooks/useSliderEvents.js +14 -8
  107. package/cjs/slider/hooks/useSliderStyle.js +13 -7
  108. package/cjs/slider/index.js +4 -2
  109. package/cjs/slider/marks.js +4 -2
  110. package/cjs/slider/style/css/index.css +58 -30
  111. package/cjs/slider/style/index.less +14 -5
  112. package/cjs/stepper/style/css/index.css +30 -30
  113. package/cjs/stepper/style/index.less +1 -1
  114. package/cjs/steps/index.d.ts +1 -1
  115. package/cjs/steps/style/css/index.css +66 -30
  116. package/cjs/steps/style/index.less +10 -10
  117. package/cjs/sticky/style/css/index.css +30 -30
  118. package/cjs/sticky/style/index.less +1 -1
  119. package/cjs/style.d.ts +2 -2
  120. package/cjs/style.js +3 -3
  121. package/cjs/swipe-action/style/css/index.css +30 -30
  122. package/cjs/swipe-action/style/index.less +1 -1
  123. package/cjs/swipe-load/style/css/index.css +30 -30
  124. package/cjs/swipe-load/style/index.less +1 -1
  125. package/cjs/switch/style/css/index.css +30 -30
  126. package/cjs/switch/style/index.less +1 -1
  127. package/cjs/tab-bar/style/css/index.css +30 -30
  128. package/cjs/tab-bar/style/index.less +1 -1
  129. package/cjs/tabs/style/css/index.css +30 -30
  130. package/cjs/tabs/style/index.less +1 -1
  131. package/cjs/tag/style/css/index.css +42 -30
  132. package/cjs/tag/style/index.less +4 -4
  133. package/cjs/textarea/style/css/index.css +30 -30
  134. package/cjs/textarea/style/index.less +1 -1
  135. package/cjs/toast/index.d.ts +12 -12
  136. package/cjs/toast/style/css/index.css +30 -30
  137. package/cjs/toast/style/index.less +1 -1
  138. package/cjs/transition/style/css/index.css +30 -30
  139. package/cjs/transition/style/index.less +1 -1
  140. package/dist/index.js +2337 -2279
  141. package/dist/index.min.js +4 -4
  142. package/dist/style.css +3110 -2971
  143. package/dist/style.min.css +1 -1
  144. package/esm/action-sheet/index.d.ts +2 -2
  145. package/esm/action-sheet/style/css/index.css +30 -30
  146. package/esm/action-sheet/style/index.less +1 -1
  147. package/esm/avatar/style/css/index.css +54 -30
  148. package/esm/avatar/style/index.less +3 -3
  149. package/esm/badge/style/css/index.css +30 -30
  150. package/esm/badge/style/index.less +1 -1
  151. package/esm/button/style/css/index.css +30 -30
  152. package/esm/button/style/index.less +1 -1
  153. package/esm/carousel/index.d.ts +5 -0
  154. package/esm/carousel/index.js +2 -1
  155. package/esm/carousel/style/css/index.css +30 -30
  156. package/esm/carousel/style/index.less +1 -1
  157. package/esm/cell/style/css/index.css +30 -30
  158. package/esm/cell/style/index.less +1 -1
  159. package/esm/checkbox/style/css/index.css +30 -30
  160. package/esm/checkbox/style/index.less +1 -1
  161. package/esm/circle-progress/style/css/index.css +30 -30
  162. package/esm/circle-progress/style/index.less +1 -1
  163. package/esm/collapse/style/css/index.css +30 -30
  164. package/esm/collapse/style/index.less +1 -1
  165. package/esm/count-down/style/css/index.css +30 -30
  166. package/esm/count-down/style/index.less +1 -1
  167. package/esm/date-picker/style/css/index.css +30 -30
  168. package/esm/date-picker/style/index.less +1 -1
  169. package/esm/dialog/index.d.ts +2 -2
  170. package/esm/dialog/style/css/index.css +30 -30
  171. package/esm/dialog/style/index.less +1 -1
  172. package/esm/divider/style/css/index.css +38 -30
  173. package/esm/divider/style/index.less +3 -3
  174. package/esm/dropdown/style/css/index.css +37 -30
  175. package/esm/dropdown/style/index.less +3 -4
  176. package/esm/dropdown-menu/style/css/index.css +38 -30
  177. package/esm/dropdown-menu/style/index.less +3 -3
  178. package/esm/ellipsis/style/css/index.css +30 -30
  179. package/esm/ellipsis/style/index.less +1 -1
  180. package/esm/form/style/css/index.css +30 -30
  181. package/esm/form/style/index.less +1 -1
  182. package/esm/form/type.d.ts +2 -2
  183. package/esm/grid/index.js +12 -6
  184. package/esm/grid/style/css/index.css +37 -30
  185. package/esm/grid/style/index.less +3 -3
  186. package/esm/image/index.js +10 -5
  187. package/esm/image/style/css/index.css +30 -30
  188. package/esm/image/style/index.less +1 -1
  189. package/esm/image-picker/style/css/index.css +30 -30
  190. package/esm/image-picker/style/index.less +1 -1
  191. package/esm/image-preview/index.d.ts +9 -3
  192. package/esm/image-preview/index.js +54 -16
  193. package/esm/image-preview/style/css/index.css +32 -31
  194. package/esm/image-preview/style/index.less +3 -2
  195. package/esm/index-bar/style/css/index.css +30 -30
  196. package/esm/index-bar/style/index.less +1 -1
  197. package/esm/index.d.ts +2 -2
  198. package/esm/index.js +2 -2
  199. package/esm/input/style/css/index.css +30 -30
  200. package/esm/input/style/index.less +1 -1
  201. package/esm/keyboard/style/css/index.css +30 -30
  202. package/esm/keyboard/style/index.less +1 -1
  203. package/esm/load-more/style/css/index.css +30 -30
  204. package/esm/load-more/style/index.less +1 -1
  205. package/esm/loading/style/css/index.css +30 -30
  206. package/esm/loading/style/index.less +1 -1
  207. package/esm/masking/index.d.ts +2 -2
  208. package/esm/masking/style/css/index.css +30 -30
  209. package/esm/masking/style/index.less +1 -1
  210. package/esm/nav-bar/style/css/index.css +30 -30
  211. package/esm/nav-bar/style/index.less +1 -1
  212. package/esm/notice-bar/style/css/index.css +30 -30
  213. package/esm/notice-bar/style/index.less +1 -1
  214. package/esm/notify/style/css/index.css +30 -30
  215. package/esm/notify/style/index.less +1 -1
  216. package/esm/pagination/style/css/index.css +30 -30
  217. package/esm/pagination/style/index.less +1 -1
  218. package/esm/picker/style/css/index.css +30 -30
  219. package/esm/picker/style/index.less +1 -1
  220. package/esm/picker-view/style/css/index.css +30 -30
  221. package/esm/picker-view/style/index.less +1 -1
  222. package/esm/popover/style/css/index.css +39 -32
  223. package/esm/popover/style/css/menu.css +34 -30
  224. package/esm/popover/style/index.less +2 -3
  225. package/esm/popover/style/menu.less +2 -2
  226. package/esm/popup/index.d.ts +2 -2
  227. package/esm/popup/style/css/index.css +30 -30
  228. package/esm/popup/style/index.less +1 -1
  229. package/esm/popup-swiper/index.d.ts +2 -2
  230. package/esm/popup-swiper/style/css/index.css +30 -30
  231. package/esm/popup-swiper/style/index.less +1 -1
  232. package/esm/progress/style/css/index.css +30 -30
  233. package/esm/progress/style/index.less +1 -1
  234. package/esm/pull-refresh/style/css/index.css +34 -30
  235. package/esm/pull-refresh/style/index.less +2 -2
  236. package/esm/radio/style/css/index.css +30 -30
  237. package/esm/radio/style/index.less +1 -1
  238. package/esm/rate/style/css/index.css +30 -30
  239. package/esm/rate/style/index.less +1 -1
  240. package/esm/search-bar/style/css/index.css +30 -30
  241. package/esm/search-bar/style/index.less +1 -1
  242. package/esm/skeleton/index.d.ts +1 -0
  243. package/esm/skeleton/index.js +1 -0
  244. package/esm/skeleton/style/css/index.css +30 -30
  245. package/esm/skeleton/style/index.less +1 -1
  246. package/esm/slider/hooks/useSliderEvents.js +13 -8
  247. package/esm/slider/hooks/useSliderStyle.js +12 -7
  248. package/esm/slider/index.js +4 -2
  249. package/esm/slider/marks.js +4 -2
  250. package/esm/slider/style/css/index.css +58 -30
  251. package/esm/slider/style/index.less +14 -5
  252. package/esm/stepper/style/css/index.css +30 -30
  253. package/esm/stepper/style/index.less +1 -1
  254. package/esm/steps/index.d.ts +1 -1
  255. package/esm/steps/style/css/index.css +66 -30
  256. package/esm/steps/style/index.less +10 -10
  257. package/esm/sticky/style/css/index.css +30 -30
  258. package/esm/sticky/style/index.less +1 -1
  259. package/esm/style.d.ts +2 -2
  260. package/esm/style.js +2 -2
  261. package/esm/swipe-action/style/css/index.css +30 -30
  262. package/esm/swipe-action/style/index.less +1 -1
  263. package/esm/swipe-load/style/css/index.css +30 -30
  264. package/esm/swipe-load/style/index.less +1 -1
  265. package/esm/switch/style/css/index.css +30 -30
  266. package/esm/switch/style/index.less +1 -1
  267. package/esm/tab-bar/style/css/index.css +30 -30
  268. package/esm/tab-bar/style/index.less +1 -1
  269. package/esm/tabs/style/css/index.css +30 -30
  270. package/esm/tabs/style/index.less +1 -1
  271. package/esm/tag/style/css/index.css +42 -30
  272. package/esm/tag/style/index.less +4 -4
  273. package/esm/textarea/style/css/index.css +30 -30
  274. package/esm/textarea/style/index.less +1 -1
  275. package/esm/toast/index.d.ts +12 -12
  276. package/esm/toast/style/css/index.css +30 -30
  277. package/esm/toast/style/index.less +1 -1
  278. package/esm/transition/style/css/index.css +30 -30
  279. package/esm/transition/style/index.less +1 -1
  280. package/package.json +3 -3
  281. package/style/css/public.css +30 -30
  282. package/tokens/app/arcodesign/default/css-variables.less +1 -1
  283. package/tokens/app/arcodesign/default/index.d.ts +1 -1
  284. package/tokens/app/arcodesign/default/index.js +1 -1
  285. package/tokens/app/arcodesign/default/index.json +7 -7
  286. package/tokens/app/arcodesign/default/index.less +1 -1
  287. package/tokens/mixin/index.less +31 -31
  288. package/umd/action-sheet/index.d.ts +2 -2
  289. package/umd/action-sheet/style/css/index.css +30 -30
  290. package/umd/action-sheet/style/index.less +1 -1
  291. package/umd/avatar/style/css/index.css +54 -30
  292. package/umd/avatar/style/index.less +3 -3
  293. package/umd/badge/style/css/index.css +30 -30
  294. package/umd/badge/style/index.less +1 -1
  295. package/umd/button/style/css/index.css +30 -30
  296. package/umd/button/style/index.less +1 -1
  297. package/umd/carousel/index.d.ts +5 -0
  298. package/umd/carousel/index.js +2 -1
  299. package/umd/carousel/style/css/index.css +30 -30
  300. package/umd/carousel/style/index.less +1 -1
  301. package/umd/cell/style/css/index.css +30 -30
  302. package/umd/cell/style/index.less +1 -1
  303. package/umd/checkbox/style/css/index.css +30 -30
  304. package/umd/checkbox/style/index.less +1 -1
  305. package/umd/circle-progress/style/css/index.css +30 -30
  306. package/umd/circle-progress/style/index.less +1 -1
  307. package/umd/collapse/style/css/index.css +30 -30
  308. package/umd/collapse/style/index.less +1 -1
  309. package/umd/count-down/style/css/index.css +30 -30
  310. package/umd/count-down/style/index.less +1 -1
  311. package/umd/date-picker/style/css/index.css +30 -30
  312. package/umd/date-picker/style/index.less +1 -1
  313. package/umd/dialog/index.d.ts +2 -2
  314. package/umd/dialog/style/css/index.css +30 -30
  315. package/umd/dialog/style/index.less +1 -1
  316. package/umd/divider/style/css/index.css +38 -30
  317. package/umd/divider/style/index.less +3 -3
  318. package/umd/dropdown/style/css/index.css +37 -30
  319. package/umd/dropdown/style/index.less +3 -4
  320. package/umd/dropdown-menu/style/css/index.css +38 -30
  321. package/umd/dropdown-menu/style/index.less +3 -3
  322. package/umd/ellipsis/style/css/index.css +30 -30
  323. package/umd/ellipsis/style/index.less +1 -1
  324. package/umd/form/style/css/index.css +30 -30
  325. package/umd/form/style/index.less +1 -1
  326. package/umd/form/type.d.ts +2 -2
  327. package/umd/grid/index.js +10 -4
  328. package/umd/grid/style/css/index.css +37 -30
  329. package/umd/grid/style/index.less +3 -3
  330. package/umd/image/index.js +10 -5
  331. package/umd/image/style/css/index.css +30 -30
  332. package/umd/image/style/index.less +1 -1
  333. package/umd/image-picker/style/css/index.css +30 -30
  334. package/umd/image-picker/style/index.less +1 -1
  335. package/umd/image-preview/index.d.ts +9 -3
  336. package/umd/image-preview/index.js +54 -16
  337. package/umd/image-preview/style/css/index.css +32 -31
  338. package/umd/image-preview/style/index.less +3 -2
  339. package/umd/index-bar/style/css/index.css +30 -30
  340. package/umd/index-bar/style/index.less +1 -1
  341. package/umd/index.d.ts +2 -2
  342. package/umd/index.js +8 -8
  343. package/umd/input/style/css/index.css +30 -30
  344. package/umd/input/style/index.less +1 -1
  345. package/umd/keyboard/style/css/index.css +30 -30
  346. package/umd/keyboard/style/index.less +1 -1
  347. package/umd/load-more/style/css/index.css +30 -30
  348. package/umd/load-more/style/index.less +1 -1
  349. package/umd/loading/style/css/index.css +30 -30
  350. package/umd/loading/style/index.less +1 -1
  351. package/umd/masking/index.d.ts +2 -2
  352. package/umd/masking/style/css/index.css +30 -30
  353. package/umd/masking/style/index.less +1 -1
  354. package/umd/nav-bar/style/css/index.css +30 -30
  355. package/umd/nav-bar/style/index.less +1 -1
  356. package/umd/notice-bar/style/css/index.css +30 -30
  357. package/umd/notice-bar/style/index.less +1 -1
  358. package/umd/notify/style/css/index.css +30 -30
  359. package/umd/notify/style/index.less +1 -1
  360. package/umd/pagination/style/css/index.css +30 -30
  361. package/umd/pagination/style/index.less +1 -1
  362. package/umd/picker/style/css/index.css +30 -30
  363. package/umd/picker/style/index.less +1 -1
  364. package/umd/picker-view/style/css/index.css +30 -30
  365. package/umd/picker-view/style/index.less +1 -1
  366. package/umd/popover/style/css/index.css +39 -32
  367. package/umd/popover/style/css/menu.css +34 -30
  368. package/umd/popover/style/index.less +2 -3
  369. package/umd/popover/style/menu.less +2 -2
  370. package/umd/popup/index.d.ts +2 -2
  371. package/umd/popup/style/css/index.css +30 -30
  372. package/umd/popup/style/index.less +1 -1
  373. package/umd/popup-swiper/index.d.ts +2 -2
  374. package/umd/popup-swiper/style/css/index.css +30 -30
  375. package/umd/popup-swiper/style/index.less +1 -1
  376. package/umd/progress/style/css/index.css +30 -30
  377. package/umd/progress/style/index.less +1 -1
  378. package/umd/pull-refresh/style/css/index.css +34 -30
  379. package/umd/pull-refresh/style/index.less +2 -2
  380. package/umd/radio/style/css/index.css +30 -30
  381. package/umd/radio/style/index.less +1 -1
  382. package/umd/rate/style/css/index.css +30 -30
  383. package/umd/rate/style/index.less +1 -1
  384. package/umd/search-bar/style/css/index.css +30 -30
  385. package/umd/search-bar/style/index.less +1 -1
  386. package/umd/skeleton/index.d.ts +1 -0
  387. package/umd/skeleton/index.js +11 -4
  388. package/umd/skeleton/style/css/index.css +30 -30
  389. package/umd/skeleton/style/index.less +1 -1
  390. package/umd/slider/hooks/useSliderEvents.js +16 -12
  391. package/umd/slider/hooks/useSliderStyle.js +15 -11
  392. package/umd/slider/index.js +4 -2
  393. package/umd/slider/marks.js +4 -2
  394. package/umd/slider/style/css/index.css +58 -30
  395. package/umd/slider/style/index.less +14 -5
  396. package/umd/stepper/style/css/index.css +30 -30
  397. package/umd/stepper/style/index.less +1 -1
  398. package/umd/steps/index.d.ts +1 -1
  399. package/umd/steps/style/css/index.css +66 -30
  400. package/umd/steps/style/index.less +10 -10
  401. package/umd/sticky/style/css/index.css +30 -30
  402. package/umd/sticky/style/index.less +1 -1
  403. package/umd/style.d.ts +2 -2
  404. package/umd/style.js +2 -2
  405. package/umd/swipe-action/style/css/index.css +30 -30
  406. package/umd/swipe-action/style/index.less +1 -1
  407. package/umd/swipe-load/style/css/index.css +30 -30
  408. package/umd/swipe-load/style/index.less +1 -1
  409. package/umd/switch/style/css/index.css +30 -30
  410. package/umd/switch/style/index.less +1 -1
  411. package/umd/tab-bar/style/css/index.css +30 -30
  412. package/umd/tab-bar/style/index.less +1 -1
  413. package/umd/tabs/style/css/index.css +30 -30
  414. package/umd/tabs/style/index.less +1 -1
  415. package/umd/tag/style/css/index.css +42 -30
  416. package/umd/tag/style/index.less +4 -4
  417. package/umd/textarea/style/css/index.css +30 -30
  418. package/umd/textarea/style/index.less +1 -1
  419. package/umd/toast/index.d.ts +12 -12
  420. package/umd/toast/style/css/index.css +30 -30
  421. package/umd/toast/style/index.less +1 -1
  422. package/umd/transition/style/css/index.css +30 -30
  423. package/umd/transition/style/index.less +1 -1
@@ -179,7 +179,7 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
179
179
  transformersRef.current = []; // 移除过渡图片
180
180
  // @en Remove transition image
181
181
 
182
- removeChild(document.querySelector('.image-preview-fake-trans-image'));
182
+ removeChild(transImageRef.current);
183
183
  setTransImageInfo(null);
184
184
  setPlaceholders({});
185
185
  var mounted = isInitialMount.current;
@@ -222,7 +222,9 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
222
222
 
223
223
  function removeChild(child) {
224
224
  try {
225
- child && document.body.removeChild(child);
225
+ var _domRef$current, _domRef$current$query, _domRef$current$query2;
226
+
227
+ child && ((_domRef$current = domRef.current) == null ? void 0 : (_domRef$current$query = _domRef$current.querySelectorAll('.carousel-item')) == null ? void 0 : (_domRef$current$query2 = _domRef$current$query[innerIndexRef.current]) == null ? void 0 : _domRef$current$query2.removeChild(child));
226
228
  } catch (e) {}
227
229
  } // 监听滑动到上下边缘后还在往外滑动的操作,则关闭弹窗
228
230
  // @en Monitor the operation of sliding out after sliding to the upper and lower edges, then close the popup
@@ -641,7 +643,45 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
641
643
  }
642
644
  }
643
645
 
644
- var handleClick = (0, _helpers.useSingleAndDoubleClick)(handleImageClick, handleImageDoubleClick);
646
+ var handleClick = (0, _helpers.useSingleAndDoubleClick)(handleImageClick, handleImageDoubleClick); // 当使用 getThumbBounds 时,关闭图片预览有缩小效果
647
+ // @en When using getThumbBounds, closing the image preview has a shrinking effect
648
+
649
+ function animateBeforeClose() {
650
+ var _imagesRef$current$in2;
651
+
652
+ if (isTransformed()) {
653
+ return;
654
+ }
655
+
656
+ var index = innerIndexRef.current;
657
+ var imageDom = (_imagesRef$current$in2 = imagesRef.current[index]) == null ? void 0 : _imagesRef$current$in2.image;
658
+ var thumbBounds = getThumbBounds == null ? void 0 : getThumbBounds(index);
659
+
660
+ if (!imageDom || !thumbBounds || !thumbBounds.width || !thumbBounds.height) {
661
+ return;
662
+ } // 小图超过一半在视野外时,不展示缩小效果
663
+ // @en When more than half of the thumbnail is outside the field of view, the zoom effect will not be displayed
664
+
665
+
666
+ if (thumbBounds.top < -1 * thumbBounds.height / 2 || thumbBounds.top > windowHeight - thumbBounds.height / 2 || thumbBounds.left < -1 * thumbBounds.width / 2 || thumbBounds.left > windowWidth - thumbBounds.width / 2) {
667
+ return;
668
+ }
669
+
670
+ var imageDomRect = imageDom.getBoundingClientRect();
671
+
672
+ if (!imageDomRect.width || !imageDomRect.height) {
673
+ return;
674
+ }
675
+
676
+ imageDom.classList.add('closing-animation');
677
+ setImageBounds(imageDom, imageDomRect, imageDomRect);
678
+ imageDom.style.objectPosition = images[index].thumbPosition || 'top center';
679
+ (0, _mobileUtils.nextTick)(function () {
680
+ imageDom.style.transitionDuration = displayDuration + "ms";
681
+ imageDom.style.webkitTransitionDuration = displayDuration + "ms";
682
+ setImageBounds(imageDom, thumbBounds, imageDomRect);
683
+ });
684
+ }
645
685
 
646
686
  function goClose(e) {
647
687
  if (closingRef.current) {
@@ -649,6 +689,7 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
649
689
  }
650
690
 
651
691
  closingRef.current = true;
692
+ animateBeforeClose();
652
693
  close(e);
653
694
  }
654
695
  /**
@@ -671,7 +712,7 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
671
712
 
672
713
 
673
714
  function setDisplayAnimation(index) {
674
- var _imagesStatusRef$curr4;
715
+ var _imagesStatusRef$curr4, _domRef$current2, _domRef$current2$quer, _domRef$current2$quer2;
675
716
 
676
717
  var firstLoaded = (_imagesStatusRef$curr4 = imagesStatusRef.current[index]) == null ? void 0 : _imagesStatusRef$curr4.firstLoaded;
677
718
  var fallbackSrc = replaceFallbackWhenLoaded && firstLoaded ? images[index].src : images[index].fallbackSrc; // 用户设置了getThumbBounds和images的fallbackSrc属性才有放大过渡效果
@@ -702,7 +743,7 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
702
743
  transImage.style.opacity = '0';
703
744
  transImage.style.transitionDuration = displayDuration + "ms";
704
745
  transImage.style.webkitTransitionDuration = displayDuration + "ms";
705
- document.body.appendChild(transImage); // 拿到放大之后的位置rect,没拿到就取消小图放大效果
746
+ (_domRef$current2 = domRef.current) == null ? void 0 : (_domRef$current2$quer = _domRef$current2.querySelectorAll('.carousel-item')) == null ? void 0 : (_domRef$current2$quer2 = _domRef$current2$quer[index]) == null ? void 0 : _domRef$current2$quer2.prepend(transImage); // 拿到放大之后的位置rect,没拿到就取消小图放大效果
706
747
  // @en Get the zoomed-in position rect, and cancel the zoom-in effect if not getting it
707
748
 
708
749
  getNewImageBounds(index, fallbackSrc, transImage, function (rect) {
@@ -724,9 +765,10 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
724
765
  return (0, _extends5.default)({}, holders, (_extends3 = {}, _extends3[index] = true, _extends3));
725
766
  });
726
767
  }, Math.max(0, displayDuration - 80));
768
+ var transitionEndDelay = images[index].transitionEndDelay || 30;
727
769
  setTimeout(function () {
728
770
  resetAnimation(index);
729
- }, displayDuration + 30);
771
+ }, displayDuration + transitionEndDelay);
730
772
  });
731
773
  });
732
774
  }
@@ -811,10 +853,10 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
811
853
  bottomOverlap: null
812
854
  }, getImageProps(image, index))));
813
855
 
814
- return image.extraNode ? /*#__PURE__*/_react.default.createElement("div", {
856
+ return /*#__PURE__*/_react.default.createElement("div", {
815
857
  className: "preview-image-wrap-container",
816
858
  key: "outer-" + index
817
- }, innerNode, image.extraNode) : innerNode;
859
+ }, innerNode, image.extraNode);
818
860
  }));
819
861
  }
820
862
 
@@ -886,18 +928,14 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
886
928
  }) : null;
887
929
  }
888
930
 
889
- function renderLoadingArea(index) {
890
- // loadingArea提出来,放到过渡图上层
891
- // @en The loadingArea is extracted and placed on the upper layer of the transition image
892
- return index === openIndex ? /*#__PURE__*/_react.default.createElement(_portal.default, {
893
- getContainer: getContainer
894
- }, /*#__PURE__*/_react.default.createElement("div", {
931
+ function renderLoadingArea() {
932
+ return /*#__PURE__*/_react.default.createElement("div", {
895
933
  className: "image-preview-loading-area"
896
934
  }, loadingArea || /*#__PURE__*/_react.default.createElement(_loading.default, {
897
935
  type: "circle",
898
936
  className: "loading-icon",
899
937
  radius: 7
900
- }))) : loadingArea;
938
+ }));
901
939
  }
902
940
 
903
941
  return /*#__PURE__*/_react.default.createElement(_contextProvider.ContextLayout, null, function (_ref3) {
@@ -945,7 +983,7 @@ var ImagePreview = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
945
983
  imagesRef.current[index] = r;
946
984
  },
947
985
  showLoading: showLoading,
948
- loadingArea: renderLoadingArea(index),
986
+ loadingArea: renderLoadingArea(),
949
987
  errorArea: errorArea,
950
988
  showError: showError,
951
989
  retryTime: retryTime,
@@ -4,7 +4,7 @@
4
4
  * @name_en General Mixin
5
5
  */
6
6
  /**
7
- * 根据base-font-size,设置单位尺寸为rem
7
+ * 根据 base-font-size,设置单位尺寸为 rem
8
8
  * @desc {en} set the unit size to rem based on base-font-size
9
9
  * @param @property css属性名
10
10
  * @param @property {en} css property
@@ -21,7 +21,7 @@
21
21
  * ```
22
22
  */
23
23
  /**
24
- * 根据base-font-size,设置常规模式和rtl模式下单位尺寸为rem
24
+ * 根据 base-font-size,设置常规模式和 rtl 模式下单位尺寸为 rem
25
25
  * @desc {en} set the unit size to rem for regular and RTL modes based on the base-font-size
26
26
  * @param @property css属性名
27
27
  * @param @property {en} css property
@@ -38,8 +38,8 @@
38
38
  * ```
39
39
  */
40
40
  /**
41
- * 当less变量use-dark-mode=1时,为原生暗黑模式媒体查询事件prefers-color-scheme:dark绑定对应css规则
42
- * @desc {en} bind corresponding CSS rules to the native dark mode media query event prefers-color-scheme: dark when the less variable use-dark-mode=1.
41
+ * 当 less 变量 use-dark-mode=1 时,自定义暗黑模式样式规则
42
+ * @desc {en} Customize dark mode style rules when the less variable use-dark-mode=1.
43
43
  * @param @rules 对应的暗黑模式规则
44
44
  * @param @rules {en} Corresponding dark mode rules
45
45
  * @example
@@ -54,7 +54,7 @@
54
54
  * ```
55
55
  */
56
56
  /**
57
- * 为属性设置arco提供的token变量
57
+ * 为属性设置 arco 提供的 token 变量
58
58
  * @desc {en} set the token variable provided by Arco for the attribute
59
59
  * @param @property css属性名
60
60
  * @param @property {en} css property
@@ -76,11 +76,11 @@
76
76
  * ```
77
77
  */
78
78
  /**
79
- * 在常规模式和rtl模式下为属性设置arco提供的token变量
79
+ * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
80
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
81
- * @param @property css属性名
81
+ * @param @property css 属性名
82
82
  * @param @property {en} css property
83
- * @param @variables token变量名
83
+ * @param @variables token 变量名
84
84
  * @param @variables {en} token variable name
85
85
  * @param @preValues
86
86
  * @param @preValues {en}
@@ -96,9 +96,9 @@
96
96
  * ```
97
97
  */
98
98
  /**
99
- * 0.5px的边框线
99
+ * 0.5px 的边框线
100
100
  * @desc {en} a border line of 0.5 pixels
101
- * @param @color 使用css变量为线设置颜色
101
+ * @param @color 使用 css 变量为线设置颜色
102
102
  * @param @color {en} set border-color by CSS variable
103
103
  * @param @direction 边框方向,默认为全部方向
104
104
  * @param @direction {en} border direction,default to all directions.
@@ -115,9 +115,9 @@
115
115
  /**
116
116
  * 字体加粗
117
117
  * @desc {en} font bold
118
- * @param @color 使用css变量设置加粗的字体颜色,默认继承文字当前颜色
118
+ * @param @color 使用 css 变量设置加粗的字体颜色,默认继承文字当前颜色
119
119
  * @param @color {en} set color by CSS variable
120
- * @param @stroke 字体粗细,默认0.3px
120
+ * @param @stroke 字体粗细,默认 0.3px
121
121
  * @param @stroke {en} font weight, default 0.3 pixel
122
122
  * @example
123
123
  * ```
@@ -130,17 +130,17 @@
130
130
  * ```
131
131
  */
132
132
  /**
133
- * 1px边框
133
+ * 1px 边框
134
134
  * @desc {en} 1 pixel border
135
135
  * @param @direction 边框方向
136
136
  * @param @direction {en} border direction
137
- * @param @borderColor 使用css变量设置边框颜色
137
+ * @param @borderColor 使用 css 变量设置边框颜色
138
138
  * @param @borderColor {en} set border-color by CSS variable
139
- * @param @borderRadius border-radius,默认为0
139
+ * @param @borderRadius border-radius,默认为 0
140
140
  * @param @borderRadius {en} border-radius, default value is 0
141
- * @param @borderWidth border-width,默认为1px
141
+ * @param @borderWidth border-width,默认为 1px
142
142
  * @param @borderWidth {en} border-width, default value is 1 pixel
143
- * @param @borderStyle border-style,默认为solid
143
+ * @param @borderStyle border-style,默认为 solid
144
144
  * @param @borderStyle {en} border-style, default value is solid
145
145
  * @example
146
146
  * ```
@@ -153,9 +153,9 @@
153
153
  * ```
154
154
  */
155
155
  /**
156
- * 元素右下0.5px边框
156
+ * 元素右下 0.5px 边框
157
157
  * @desc {en} 0.5px border on bottom right
158
- * @param @color 使用css变量设置边框颜色
158
+ * @param @color 使用 css 变量设置边框颜色
159
159
  * @param @color {en} set border-color by CSS variable
160
160
  * @example
161
161
  * ```
@@ -167,9 +167,9 @@
167
167
  * ```
168
168
  */
169
169
  /**
170
- * 元素左上0.5px边框
170
+ * 元素左上 0.5px 边框
171
171
  * @desc {en} 0.5px border on top left
172
- * @param @color 使用css变量设置边框颜色
172
+ * @param @color 使用 css 变量设置边框颜色
173
173
  * @param @color {en} set border-color by CSS variable
174
174
  * @example
175
175
  * ```
@@ -181,9 +181,9 @@
181
181
  * ```
182
182
  */
183
183
  /**
184
- * 设置Loading组件颜色
184
+ * 设置 Loading 组件颜色
185
185
  * @desc {en} set Loading component color
186
- * @param @color 使用css变量设置颜色
186
+ * @param @color 使用 css 变量设置颜色
187
187
  * @param @color {en} set color by CSS variable
188
188
  * @example
189
189
  * ```
@@ -197,9 +197,9 @@
197
197
  /**
198
198
  * 设置最小字号
199
199
  * @desc {en} set minimum font-size
200
- * @param @size 使用css变量设置最小字号
200
+ * @param @size 使用 css 变量设置最小字号
201
201
  * @param @size {en} set minimum font-size by CSS variable
202
- * @param @scale 设置最小字号下文字缩放比例,默认为0.9
202
+ * @param @scale 设置最小字号下文字缩放比例,默认为 0.9
203
203
  * @param @scale {en} set minimum font-size down text scale,default value is 0.9
204
204
  * @example
205
205
  * ```
@@ -212,9 +212,9 @@
212
212
  * ```
213
213
  */
214
214
  /**
215
- * 设置content-box盒模型下元素宽度
215
+ * 设置 content-box 盒模型下元素宽度
216
216
  * @desc {en} set box width in content-box
217
- * @param @property css属性名
217
+ * @param @property css 属性名
218
218
  * @param @property {en} css property
219
219
  * @param @width 元素总宽度,包含内边距
220
220
  * @param @width element width, include padding
@@ -232,11 +232,11 @@
232
232
  * ```
233
233
  */
234
234
  /**
235
- * 设置Steps组件颜色
235
+ * 设置 Steps 组件颜色
236
236
  * @desc {en} set Steps component color
237
- * @param @color 使用css变量设置主颜色
237
+ * @param @color 使用 css 变量设置主颜色
238
238
  * @param @color {en} set main step color by CSS variable
239
- * @param @finish-color 使用css变量设置已完成步骤的颜色
239
+ * @param @finish-color 使用 css 变量设置已完成步骤的颜色
240
240
  * @param @finish-color {en} set finished step color by CSS variable
241
241
  * @example
242
242
  * ```
@@ -575,6 +575,7 @@
575
575
  height: 100%;
576
576
  opacity: 0;
577
577
  }
578
+ .arco-image-preview .image-container img.closing-animation,
578
579
  .image-preview-fake-trans-image {
579
580
  position: fixed;
580
581
  left: 0;
@@ -584,7 +585,7 @@
584
585
  transition: all cubic-bezier(0.34, 0.69, 0.1, 1) ;
585
586
  will-change: transform;
586
587
  pointer-events: none;
587
- z-index: 1001;
588
+ height: auto !important;
588
589
  }
589
590
  .image-preview-loading-area {
590
591
  position: fixed;
@@ -77,6 +77,7 @@
77
77
  opacity: 0;
78
78
  }
79
79
 
80
+ .@{prefix}-image-preview .image-container img.closing-animation,
80
81
  .image-preview-fake-trans-image {
81
82
  position: fixed;
82
83
  left: 0;
@@ -85,7 +86,7 @@
85
86
  .use-var(transition, image-preview-thumb-transition);
86
87
  will-change: transform;
87
88
  pointer-events: none;
88
- z-index: @full-screen-z-index + 1;
89
+ height: auto !important;
89
90
  }
90
91
 
91
92
  .image-preview-loading-area {
@@ -106,7 +107,7 @@
106
107
  * Arco Theme Style *
107
108
  * *
108
109
  ***************************************************/
109
- & when (@use-dark-mode = 1) {
110
+ & when (@use-dark-mode = 1) {
110
111
 
111
112
  .process-bg-color-with-config,
112
113
  .process-custom-icon-bg-color-with-config {
@@ -4,7 +4,7 @@
4
4
  * @name_en General Mixin
5
5
  */
6
6
  /**
7
- * 根据base-font-size,设置单位尺寸为rem
7
+ * 根据 base-font-size,设置单位尺寸为 rem
8
8
  * @desc {en} set the unit size to rem based on base-font-size
9
9
  * @param @property css属性名
10
10
  * @param @property {en} css property
@@ -21,7 +21,7 @@
21
21
  * ```
22
22
  */
23
23
  /**
24
- * 根据base-font-size,设置常规模式和rtl模式下单位尺寸为rem
24
+ * 根据 base-font-size,设置常规模式和 rtl 模式下单位尺寸为 rem
25
25
  * @desc {en} set the unit size to rem for regular and RTL modes based on the base-font-size
26
26
  * @param @property css属性名
27
27
  * @param @property {en} css property
@@ -38,8 +38,8 @@
38
38
  * ```
39
39
  */
40
40
  /**
41
- * 当less变量use-dark-mode=1时,为原生暗黑模式媒体查询事件prefers-color-scheme:dark绑定对应css规则
42
- * @desc {en} bind corresponding CSS rules to the native dark mode media query event prefers-color-scheme: dark when the less variable use-dark-mode=1.
41
+ * 当 less 变量 use-dark-mode=1 时,自定义暗黑模式样式规则
42
+ * @desc {en} Customize dark mode style rules when the less variable use-dark-mode=1.
43
43
  * @param @rules 对应的暗黑模式规则
44
44
  * @param @rules {en} Corresponding dark mode rules
45
45
  * @example
@@ -54,7 +54,7 @@
54
54
  * ```
55
55
  */
56
56
  /**
57
- * 为属性设置arco提供的token变量
57
+ * 为属性设置 arco 提供的 token 变量
58
58
  * @desc {en} set the token variable provided by Arco for the attribute
59
59
  * @param @property css属性名
60
60
  * @param @property {en} css property
@@ -76,11 +76,11 @@
76
76
  * ```
77
77
  */
78
78
  /**
79
- * 在常规模式和rtl模式下为属性设置arco提供的token变量
79
+ * 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
80
80
  * @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
81
- * @param @property css属性名
81
+ * @param @property css 属性名
82
82
  * @param @property {en} css property
83
- * @param @variables token变量名
83
+ * @param @variables token 变量名
84
84
  * @param @variables {en} token variable name
85
85
  * @param @preValues
86
86
  * @param @preValues {en}
@@ -96,9 +96,9 @@
96
96
  * ```
97
97
  */
98
98
  /**
99
- * 0.5px的边框线
99
+ * 0.5px 的边框线
100
100
  * @desc {en} a border line of 0.5 pixels
101
- * @param @color 使用css变量为线设置颜色
101
+ * @param @color 使用 css 变量为线设置颜色
102
102
  * @param @color {en} set border-color by CSS variable
103
103
  * @param @direction 边框方向,默认为全部方向
104
104
  * @param @direction {en} border direction,default to all directions.
@@ -115,9 +115,9 @@
115
115
  /**
116
116
  * 字体加粗
117
117
  * @desc {en} font bold
118
- * @param @color 使用css变量设置加粗的字体颜色,默认继承文字当前颜色
118
+ * @param @color 使用 css 变量设置加粗的字体颜色,默认继承文字当前颜色
119
119
  * @param @color {en} set color by CSS variable
120
- * @param @stroke 字体粗细,默认0.3px
120
+ * @param @stroke 字体粗细,默认 0.3px
121
121
  * @param @stroke {en} font weight, default 0.3 pixel
122
122
  * @example
123
123
  * ```
@@ -130,17 +130,17 @@
130
130
  * ```
131
131
  */
132
132
  /**
133
- * 1px边框
133
+ * 1px 边框
134
134
  * @desc {en} 1 pixel border
135
135
  * @param @direction 边框方向
136
136
  * @param @direction {en} border direction
137
- * @param @borderColor 使用css变量设置边框颜色
137
+ * @param @borderColor 使用 css 变量设置边框颜色
138
138
  * @param @borderColor {en} set border-color by CSS variable
139
- * @param @borderRadius border-radius,默认为0
139
+ * @param @borderRadius border-radius,默认为 0
140
140
  * @param @borderRadius {en} border-radius, default value is 0
141
- * @param @borderWidth border-width,默认为1px
141
+ * @param @borderWidth border-width,默认为 1px
142
142
  * @param @borderWidth {en} border-width, default value is 1 pixel
143
- * @param @borderStyle border-style,默认为solid
143
+ * @param @borderStyle border-style,默认为 solid
144
144
  * @param @borderStyle {en} border-style, default value is solid
145
145
  * @example
146
146
  * ```
@@ -153,9 +153,9 @@
153
153
  * ```
154
154
  */
155
155
  /**
156
- * 元素右下0.5px边框
156
+ * 元素右下 0.5px 边框
157
157
  * @desc {en} 0.5px border on bottom right
158
- * @param @color 使用css变量设置边框颜色
158
+ * @param @color 使用 css 变量设置边框颜色
159
159
  * @param @color {en} set border-color by CSS variable
160
160
  * @example
161
161
  * ```
@@ -167,9 +167,9 @@
167
167
  * ```
168
168
  */
169
169
  /**
170
- * 元素左上0.5px边框
170
+ * 元素左上 0.5px 边框
171
171
  * @desc {en} 0.5px border on top left
172
- * @param @color 使用css变量设置边框颜色
172
+ * @param @color 使用 css 变量设置边框颜色
173
173
  * @param @color {en} set border-color by CSS variable
174
174
  * @example
175
175
  * ```
@@ -181,9 +181,9 @@
181
181
  * ```
182
182
  */
183
183
  /**
184
- * 设置Loading组件颜色
184
+ * 设置 Loading 组件颜色
185
185
  * @desc {en} set Loading component color
186
- * @param @color 使用css变量设置颜色
186
+ * @param @color 使用 css 变量设置颜色
187
187
  * @param @color {en} set color by CSS variable
188
188
  * @example
189
189
  * ```
@@ -197,9 +197,9 @@
197
197
  /**
198
198
  * 设置最小字号
199
199
  * @desc {en} set minimum font-size
200
- * @param @size 使用css变量设置最小字号
200
+ * @param @size 使用 css 变量设置最小字号
201
201
  * @param @size {en} set minimum font-size by CSS variable
202
- * @param @scale 设置最小字号下文字缩放比例,默认为0.9
202
+ * @param @scale 设置最小字号下文字缩放比例,默认为 0.9
203
203
  * @param @scale {en} set minimum font-size down text scale,default value is 0.9
204
204
  * @example
205
205
  * ```
@@ -212,9 +212,9 @@
212
212
  * ```
213
213
  */
214
214
  /**
215
- * 设置content-box盒模型下元素宽度
215
+ * 设置 content-box 盒模型下元素宽度
216
216
  * @desc {en} set box width in content-box
217
- * @param @property css属性名
217
+ * @param @property css 属性名
218
218
  * @param @property {en} css property
219
219
  * @param @width 元素总宽度,包含内边距
220
220
  * @param @width element width, include padding
@@ -232,11 +232,11 @@
232
232
  * ```
233
233
  */
234
234
  /**
235
- * 设置Steps组件颜色
235
+ * 设置 Steps 组件颜色
236
236
  * @desc {en} set Steps component color
237
- * @param @color 使用css变量设置主颜色
237
+ * @param @color 使用 css 变量设置主颜色
238
238
  * @param @color {en} set main step color by CSS variable
239
- * @param @finish-color 使用css变量设置已完成步骤的颜色
239
+ * @param @finish-color 使用 css 变量设置已完成步骤的颜色
240
240
  * @param @finish-color {en} set finished step color by CSS variable
241
241
  * @example
242
242
  * ```
@@ -126,7 +126,7 @@
126
126
  * Arco Theme Style *
127
127
  * *
128
128
  ***************************************************/
129
- & when (@use-dark-mode = 1) {
129
+ & when (@use-dark-mode = 1) {
130
130
 
131
131
  .process-bg-color-with-config,
132
132
  .process-custom-icon-bg-color-with-config {
package/cjs/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { default as Tabs } from './tabs';
2
2
  export { default as Sticky } from './sticky';
3
3
  export { default as Portal } from './portal';
4
- export { default as Toast } from './toast';
4
+ export { default as Steps } from './steps';
5
5
  export { default as ActionSheet } from './action-sheet';
6
6
  export { default as Avatar } from './avatar';
7
7
  export { default as Badge } from './badge';
@@ -48,11 +48,11 @@ export { default as ShowMonitor } from './show-monitor';
48
48
  export { default as Skeleton } from './skeleton';
49
49
  export { default as Slider } from './slider';
50
50
  export { default as Stepper } from './stepper';
51
- export { default as Steps } from './steps';
52
51
  export { default as SwipeAction } from './swipe-action';
53
52
  export { default as SwipeLoad } from './swipe-load';
54
53
  export { default as Switch } from './switch';
55
54
  export { default as TabBar } from './tab-bar';
56
55
  export { default as Tag } from './tag';
57
56
  export { default as Textarea } from './textarea';
57
+ export { default as Toast } from './toast';
58
58
  export { default as Transition } from './transition';
package/cjs/index.js CHANGED
@@ -17,9 +17,9 @@ var _portal = _interopRequireDefault(require("./portal"));
17
17
 
18
18
  exports.Portal = _portal.default;
19
19
 
20
- var _toast = _interopRequireDefault(require("./toast"));
20
+ var _steps = _interopRequireDefault(require("./steps"));
21
21
 
22
- exports.Toast = _toast.default;
22
+ exports.Steps = _steps.default;
23
23
 
24
24
  var _actionSheet = _interopRequireDefault(require("./action-sheet"));
25
25
 
@@ -205,10 +205,6 @@ var _stepper = _interopRequireDefault(require("./stepper"));
205
205
 
206
206
  exports.Stepper = _stepper.default;
207
207
 
208
- var _steps = _interopRequireDefault(require("./steps"));
209
-
210
- exports.Steps = _steps.default;
211
-
212
208
  var _swipeAction = _interopRequireDefault(require("./swipe-action"));
213
209
 
214
210
  exports.SwipeAction = _swipeAction.default;
@@ -233,6 +229,10 @@ var _textarea = _interopRequireDefault(require("./textarea"));
233
229
 
234
230
  exports.Textarea = _textarea.default;
235
231
 
232
+ var _toast = _interopRequireDefault(require("./toast"));
233
+
234
+ exports.Toast = _toast.default;
235
+
236
236
  var _transition = _interopRequireDefault(require("./transition"));
237
237
 
238
238
  exports.Transition = _transition.default;