vant 4.0.0-alpha.1 → 4.0.0-alpha.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 (988) hide show
  1. package/README.md +141 -0
  2. package/es/action-bar/{ActionBar.js → ActionBar.mjs} +1 -1
  3. package/es/action-bar/{index.js → index.mjs} +2 -2
  4. package/es/action-bar/style/{index.js → index.mjs} +0 -0
  5. package/es/action-bar/style/{less.js → less.mjs} +0 -0
  6. package/es/action-bar-button/{ActionBarButton.js → ActionBarButton.mjs} +5 -5
  7. package/es/action-bar-button/{index.js → index.mjs} +2 -2
  8. package/es/action-bar-button/style/{index.js → index.mjs} +0 -0
  9. package/es/action-bar-button/style/{less.js → less.mjs} +0 -0
  10. package/es/action-bar-icon/{ActionBarIcon.js → ActionBarIcon.mjs} +5 -5
  11. package/es/action-bar-icon/{index.js → index.mjs} +2 -2
  12. package/es/action-bar-icon/style/{index.js → index.mjs} +0 -0
  13. package/es/action-bar-icon/style/{less.js → less.mjs} +0 -0
  14. package/es/action-sheet/{ActionSheet.js → ActionSheet.mjs} +5 -5
  15. package/es/action-sheet/{index.js → index.mjs} +2 -2
  16. package/es/action-sheet/style/{index.js → index.mjs} +0 -0
  17. package/es/action-sheet/style/{less.js → less.mjs} +0 -0
  18. package/es/address-edit/AddressEdit.d.ts +0 -17
  19. package/es/address-edit/{AddressEdit.js → AddressEdit.mjs} +15 -36
  20. package/es/address-edit/{AddressEditDetail.js → AddressEditDetail.mjs} +3 -3
  21. package/es/address-edit/index.d.ts +0 -12
  22. package/es/address-edit/{index.js → index.mjs} +2 -2
  23. package/es/address-edit/style/{index.js → index.mjs} +0 -0
  24. package/es/address-edit/style/{less.js → less.mjs} +0 -0
  25. package/es/address-edit/types.d.ts +0 -1
  26. package/es/address-edit/{types.js → types.mjs} +0 -0
  27. package/es/address-list/{AddressList.js → AddressList.mjs} +4 -4
  28. package/es/address-list/AddressListItem.d.ts +3 -2
  29. package/es/address-list/{AddressListItem.js → AddressListItem.mjs} +5 -5
  30. package/es/address-list/{index.js → index.mjs} +2 -2
  31. package/es/address-list/style/{index.js → index.mjs} +0 -0
  32. package/es/address-list/style/{less.js → less.mjs} +0 -0
  33. package/es/area/{Area.js → Area.mjs} +5 -5
  34. package/es/area/{index.js → index.mjs} +2 -2
  35. package/es/area/style/{index.js → index.mjs} +0 -0
  36. package/es/area/style/{less.js → less.mjs} +0 -0
  37. package/es/area/{types.js → types.mjs} +0 -0
  38. package/es/area/{utils.js → utils.mjs} +0 -0
  39. package/es/badge/Badge.d.ts +4 -3
  40. package/es/badge/{Badge.js → Badge.mjs} +1 -1
  41. package/es/badge/index.d.ts +2 -2
  42. package/es/badge/{index.js → index.mjs} +2 -2
  43. package/es/badge/style/{index.js → index.mjs} +0 -0
  44. package/es/badge/style/{less.js → less.mjs} +0 -0
  45. package/es/button/{Button.js → Button.mjs} +4 -4
  46. package/es/button/{index.js → index.mjs} +2 -2
  47. package/es/button/style/{index.js → index.mjs} +0 -0
  48. package/es/button/style/{less.js → less.mjs} +0 -0
  49. package/es/button/{types.js → types.mjs} +0 -0
  50. package/es/calendar/{Calendar.js → Calendar.mjs} +10 -10
  51. package/es/calendar/{CalendarDay.js → CalendarDay.mjs} +6 -2
  52. package/es/calendar/{CalendarHeader.js → CalendarHeader.mjs} +2 -2
  53. package/es/calendar/{CalendarMonth.js → CalendarMonth.mjs} +6 -6
  54. package/es/calendar/index.css +1 -1
  55. package/es/calendar/index.less +2 -0
  56. package/es/calendar/{index.js → index.mjs} +2 -2
  57. package/es/calendar/style/{index.js → index.mjs} +0 -0
  58. package/es/calendar/style/{less.js → less.mjs} +0 -0
  59. package/es/calendar/types.d.ts +2 -1
  60. package/es/calendar/{types.js → types.mjs} +0 -0
  61. package/es/calendar/{utils.js → utils.mjs} +1 -1
  62. package/es/card/{Card.js → Card.mjs} +3 -3
  63. package/es/card/{index.js → index.mjs} +2 -2
  64. package/es/card/style/{index.js → index.mjs} +0 -0
  65. package/es/card/style/{less.js → less.mjs} +0 -0
  66. package/es/cascader/{Cascader.js → Cascader.mjs} +4 -4
  67. package/es/cascader/{index.js → index.mjs} +2 -2
  68. package/es/cascader/style/{index.js → index.mjs} +0 -0
  69. package/es/cascader/style/{less.js → less.mjs} +0 -0
  70. package/es/cascader/types.d.ts +2 -1
  71. package/es/cascader/{types.js → types.mjs} +0 -0
  72. package/es/cell/{Cell.js → Cell.mjs} +3 -3
  73. package/es/cell/{index.js → index.mjs} +2 -2
  74. package/es/cell/style/{index.js → index.mjs} +0 -0
  75. package/es/cell/style/{less.js → less.mjs} +0 -0
  76. package/es/cell-group/{CellGroup.js → CellGroup.mjs} +1 -1
  77. package/es/cell-group/{index.js → index.mjs} +2 -2
  78. package/es/cell-group/style/{index.js → index.mjs} +0 -0
  79. package/es/cell-group/style/{less.js → less.mjs} +0 -0
  80. package/es/checkbox/{Checkbox.js → Checkbox.mjs} +4 -4
  81. package/es/checkbox/Checker.d.ts +2 -1
  82. package/es/checkbox/{Checker.js → Checker.mjs} +2 -2
  83. package/es/checkbox/{index.js → index.mjs} +2 -2
  84. package/es/checkbox/style/{index.js → index.mjs} +0 -0
  85. package/es/checkbox/style/{less.js → less.mjs} +0 -0
  86. package/es/checkbox/{types.js → types.mjs} +0 -0
  87. package/es/checkbox-group/{CheckboxGroup.js → CheckboxGroup.mjs} +2 -2
  88. package/es/checkbox-group/{index.js → index.mjs} +2 -2
  89. package/es/checkbox-group/style/{index.js → index.mjs} +0 -0
  90. package/es/checkbox-group/style/{less.js → less.mjs} +0 -0
  91. package/es/checkbox-group/{types.js → types.mjs} +0 -0
  92. package/es/circle/{Circle.js → Circle.mjs} +1 -1
  93. package/es/circle/{index.js → index.mjs} +2 -2
  94. package/es/circle/style/{index.js → index.mjs} +0 -0
  95. package/es/circle/style/{less.js → less.mjs} +0 -0
  96. package/es/col/{Col.js → Col.mjs} +2 -2
  97. package/es/col/{index.js → index.mjs} +2 -2
  98. package/es/col/style/{index.js → index.mjs} +0 -0
  99. package/es/col/style/{less.js → less.mjs} +0 -0
  100. package/es/collapse/Collapse.d.ts +7 -6
  101. package/es/collapse/{Collapse.js → Collapse.mjs} +1 -1
  102. package/es/collapse/index.d.ts +3 -3
  103. package/es/collapse/{index.js → index.mjs} +2 -2
  104. package/es/collapse/style/{index.js → index.mjs} +0 -0
  105. package/es/collapse/style/{less.js → less.mjs} +0 -0
  106. package/es/collapse-item/{CollapseItem.js → CollapseItem.mjs} +6 -6
  107. package/es/collapse-item/{index.js → index.mjs} +2 -2
  108. package/es/collapse-item/style/{index.js → index.mjs} +0 -0
  109. package/es/collapse-item/style/{less.js → less.mjs} +0 -0
  110. package/es/collapse-item/{types.js → types.mjs} +0 -0
  111. package/es/composables/{on-popup-reopen.js → on-popup-reopen.mjs} +0 -0
  112. package/es/composables/{use-expose.js → use-expose.mjs} +1 -1
  113. package/es/composables/{use-height.js → use-height.mjs} +0 -0
  114. package/es/composables/{use-id.js → use-id.mjs} +0 -0
  115. package/es/composables/{use-lazy-render.js → use-lazy-render.mjs} +0 -0
  116. package/es/composables/{use-lock-scroll.js → use-lock-scroll.mjs} +2 -2
  117. package/es/composables/{use-placeholder.js → use-placeholder.mjs} +1 -1
  118. package/es/composables/{use-refs.js → use-refs.mjs} +0 -0
  119. package/es/composables/{use-route.js → use-route.mjs} +0 -0
  120. package/es/composables/{use-tab-status.js → use-tab-status.mjs} +0 -0
  121. package/es/composables/{use-touch.js → use-touch.mjs} +1 -1
  122. package/es/composables/{use-visibility-change.js → use-visibility-change.mjs} +1 -1
  123. package/es/config-provider/ConfigProvider.d.ts +4 -3
  124. package/es/config-provider/{ConfigProvider.js → ConfigProvider.mjs} +1 -1
  125. package/es/config-provider/index.d.ts +2 -2
  126. package/es/config-provider/{index.js → index.mjs} +2 -2
  127. package/es/config-provider/style/{index.js → index.mjs} +0 -0
  128. package/es/config-provider/style/{less.js → less.mjs} +0 -0
  129. package/es/contact-card/{ContactCard.js → ContactCard.mjs} +2 -2
  130. package/es/contact-card/{index.js → index.mjs} +2 -2
  131. package/es/contact-card/style/{index.js → index.mjs} +0 -0
  132. package/es/contact-card/style/{less.js → less.mjs} +0 -0
  133. package/es/contact-edit/{ContactEdit.js → ContactEdit.mjs} +6 -6
  134. package/es/contact-edit/{index.js → index.mjs} +2 -2
  135. package/es/contact-edit/style/{index.js → index.mjs} +0 -0
  136. package/es/contact-edit/style/{less.js → less.mjs} +0 -0
  137. package/es/contact-list/ContactList.d.ts +3 -2
  138. package/es/contact-list/{ContactList.js → ContactList.mjs} +7 -7
  139. package/es/contact-list/{index.js → index.mjs} +2 -2
  140. package/es/contact-list/style/{index.js → index.mjs} +0 -0
  141. package/es/contact-list/style/{less.js → less.mjs} +0 -0
  142. package/es/count-down/{CountDown.js → CountDown.mjs} +3 -3
  143. package/es/count-down/{index.js → index.mjs} +2 -2
  144. package/es/count-down/style/{index.js → index.mjs} +0 -0
  145. package/es/count-down/style/{less.js → less.mjs} +0 -0
  146. package/es/count-down/{types.js → types.mjs} +0 -0
  147. package/es/count-down/{utils.js → utils.mjs} +1 -1
  148. package/es/coupon/Coupon.d.ts +2 -1
  149. package/es/coupon/{Coupon.js → Coupon.mjs} +3 -3
  150. package/es/coupon/{index.js → index.mjs} +2 -2
  151. package/es/coupon/style/{index.js → index.mjs} +0 -0
  152. package/es/coupon/style/{less.js → less.mjs} +0 -0
  153. package/es/coupon/{utils.js → utils.mjs} +1 -1
  154. package/es/coupon-cell/{CouponCell.js → CouponCell.mjs} +2 -2
  155. package/es/coupon-cell/{index.js → index.mjs} +2 -2
  156. package/es/coupon-cell/style/{index.js → index.mjs} +0 -0
  157. package/es/coupon-cell/style/{less.js → less.mjs} +0 -0
  158. package/es/coupon-list/CouponList.d.ts +3 -13
  159. package/es/coupon-list/{CouponList.js → CouponList.mjs} +16 -14
  160. package/es/coupon-list/index.css +1 -1
  161. package/es/coupon-list/index.d.ts +2 -9
  162. package/es/coupon-list/index.less +4 -16
  163. package/es/coupon-list/{index.js → index.mjs} +2 -2
  164. package/es/coupon-list/style/{index.js → index.mjs} +1 -0
  165. package/es/coupon-list/style/{less.js → less.mjs} +1 -0
  166. package/es/date-picker/{DatePicker.js → DatePicker.mjs} +3 -3
  167. package/es/date-picker/{index.js → index.mjs} +2 -2
  168. package/es/date-picker/style/{index.js → index.mjs} +0 -0
  169. package/es/date-picker/style/{less.js → less.mjs} +0 -0
  170. package/es/date-picker/{utils.js → utils.mjs} +2 -2
  171. package/es/dialog/{Dialog.js → Dialog.mjs} +6 -6
  172. package/es/dialog/{function-call.js → function-call.mjs} +3 -3
  173. package/es/dialog/index.css +1 -1
  174. package/es/dialog/{index.js → index.mjs} +1 -1
  175. package/es/dialog/style/{index.js → index.mjs} +0 -0
  176. package/es/dialog/style/{less.js → less.mjs} +0 -0
  177. package/es/dialog/types.d.ts +2 -2
  178. package/es/dialog/{types.js → types.mjs} +0 -0
  179. package/es/divider/{Divider.js → Divider.mjs} +1 -1
  180. package/es/divider/{index.js → index.mjs} +2 -2
  181. package/es/divider/style/{index.js → index.mjs} +0 -0
  182. package/es/divider/style/{less.js → less.mjs} +0 -0
  183. package/es/dropdown-item/{DropdownItem.js → DropdownItem.mjs} +6 -6
  184. package/es/dropdown-item/{index.js → index.mjs} +2 -2
  185. package/es/dropdown-item/style/{index.js → index.mjs} +0 -0
  186. package/es/dropdown-item/style/{less.js → less.mjs} +0 -0
  187. package/es/dropdown-item/types.d.ts +2 -1
  188. package/es/dropdown-item/{types.js → types.mjs} +0 -0
  189. package/es/dropdown-menu/{DropdownMenu.js → DropdownMenu.mjs} +2 -2
  190. package/es/dropdown-menu/{index.js → index.mjs} +2 -2
  191. package/es/dropdown-menu/style/{index.js → index.mjs} +0 -0
  192. package/es/dropdown-menu/style/{less.js → less.mjs} +0 -0
  193. package/es/dropdown-menu/{types.js → types.mjs} +0 -0
  194. package/es/empty/Empty.d.ts +8 -7
  195. package/es/empty/{Empty.js → Empty.mjs} +12 -15
  196. package/es/empty/Images.d.ts +4 -0
  197. package/es/empty/Images.mjs +271 -0
  198. package/es/empty/index.d.ts +2 -2
  199. package/es/empty/{index.js → index.mjs} +2 -2
  200. package/es/empty/style/{index.js → index.mjs} +0 -0
  201. package/es/empty/style/{less.js → less.mjs} +0 -0
  202. package/es/field/Field.d.ts +4 -0
  203. package/es/field/{Field.js → Field.mjs} +27 -22
  204. package/es/field/index.d.ts +3 -1
  205. package/es/field/{index.js → index.mjs} +2 -2
  206. package/es/field/style/{index.js → index.mjs} +0 -0
  207. package/es/field/style/{less.js → less.mjs} +0 -0
  208. package/es/field/types.d.ts +3 -1
  209. package/es/field/{types.js → types.mjs} +0 -0
  210. package/es/field/{utils.js → utils.mjs} +1 -1
  211. package/es/form/Form.d.ts +13 -13
  212. package/es/form/{Form.js → Form.mjs} +14 -5
  213. package/es/form/index.d.ts +9 -9
  214. package/es/form/{index.js → index.mjs} +2 -2
  215. package/es/form/style/{index.js → index.mjs} +0 -0
  216. package/es/form/style/{less.js → less.mjs} +0 -0
  217. package/es/form/types.d.ts +3 -0
  218. package/es/form/{types.js → types.mjs} +0 -0
  219. package/es/grid/{Grid.js → Grid.mjs} +2 -2
  220. package/es/grid/{index.js → index.mjs} +2 -2
  221. package/es/grid/style/{index.js → index.mjs} +0 -0
  222. package/es/grid/style/{less.js → less.mjs} +0 -0
  223. package/es/grid-item/{GridItem.js → GridItem.mjs} +5 -5
  224. package/es/grid-item/{index.js → index.mjs} +2 -2
  225. package/es/grid-item/style/{index.js → index.mjs} +0 -0
  226. package/es/grid-item/style/{less.js → less.mjs} +0 -0
  227. package/es/icon/{Icon.js → Icon.mjs} +3 -3
  228. package/es/icon/index.css +1 -1
  229. package/es/icon/{index.js → index.mjs} +2 -2
  230. package/es/icon/style/{index.js → index.mjs} +0 -0
  231. package/es/icon/style/{less.js → less.mjs} +0 -0
  232. package/es/image/{Image.js → Image.mjs} +2 -2
  233. package/es/image/{index.js → index.mjs} +2 -2
  234. package/es/image/style/{index.js → index.mjs} +0 -0
  235. package/es/image/style/{less.js → less.mjs} +0 -0
  236. package/es/image-preview/{ImagePreview.js → ImagePreview.mjs} +6 -6
  237. package/es/image-preview/{ImagePreviewItem.js → ImagePreviewItem.mjs} +5 -5
  238. package/es/image-preview/{function-call.js → function-call.mjs} +3 -3
  239. package/es/image-preview/{index.js → index.mjs} +1 -1
  240. package/es/image-preview/style/{index.js → index.mjs} +0 -0
  241. package/es/image-preview/style/{less.js → less.mjs} +0 -0
  242. package/es/image-preview/{types.js → types.mjs} +0 -0
  243. package/es/index-anchor/{IndexAnchor.js → IndexAnchor.mjs} +4 -4
  244. package/es/index-anchor/{index.js → index.mjs} +2 -2
  245. package/es/index-anchor/style/{index.js → index.mjs} +0 -0
  246. package/es/index-anchor/style/{less.js → less.mjs} +0 -0
  247. package/es/index-bar/IndexBar.d.ts +5 -4
  248. package/es/index-bar/{IndexBar.js → IndexBar.mjs} +3 -3
  249. package/es/index-bar/index.d.ts +3 -3
  250. package/es/index-bar/{index.js → index.mjs} +2 -2
  251. package/es/index-bar/style/{index.js → index.mjs} +0 -0
  252. package/es/index-bar/style/{less.js → less.mjs} +0 -0
  253. package/es/index-bar/types.d.ts +2 -1
  254. package/es/index-bar/{types.js → types.mjs} +0 -0
  255. package/es/index.d.ts +1 -1
  256. package/es/index.mjs +280 -0
  257. package/es/lazyload/{index.js → index.mjs} +1 -1
  258. package/es/lazyload/style/{index.js → index.mjs} +0 -0
  259. package/es/lazyload/style/{less.js → less.mjs} +0 -0
  260. package/es/lazyload/vue-lazyload/{index.js → index.mjs} +4 -4
  261. package/es/lazyload/vue-lazyload/{lazy-component.js → lazy-component.mjs} +0 -0
  262. package/es/lazyload/vue-lazyload/{lazy-container.js → lazy-container.mjs} +1 -1
  263. package/es/lazyload/vue-lazyload/{lazy-image.js → lazy-image.mjs} +2 -2
  264. package/es/lazyload/vue-lazyload/{lazy.js → lazy.mjs} +3 -3
  265. package/es/lazyload/vue-lazyload/{listener.js → listener.mjs} +2 -2
  266. package/es/lazyload/vue-lazyload/{util.js → util.mjs} +0 -0
  267. package/es/list/{List.js → List.mjs} +4 -4
  268. package/es/list/{index.js → index.mjs} +2 -2
  269. package/es/list/style/{index.js → index.mjs} +0 -0
  270. package/es/list/style/{less.js → less.mjs} +0 -0
  271. package/es/list/{types.js → types.mjs} +0 -0
  272. package/es/loading/{Loading.js → Loading.mjs} +4 -2
  273. package/es/loading/{index.js → index.mjs} +2 -2
  274. package/es/loading/style/{index.js → index.mjs} +0 -0
  275. package/es/loading/style/{less.js → less.mjs} +0 -0
  276. package/es/locale/{index.js → index.mjs} +2 -2
  277. package/es/locale/lang/bg-BG.d.ts +64 -0
  278. package/es/locale/lang/bg-BG.mjs +74 -0
  279. package/es/locale/lang/bn-BD.d.ts +0 -2
  280. package/es/locale/lang/{bn-BD.js → bn-BD.mjs} +0 -2
  281. package/es/locale/lang/da-DK.d.ts +64 -0
  282. package/es/locale/lang/da-DK.mjs +66 -0
  283. package/es/locale/lang/de-DE-formal.d.ts +0 -2
  284. package/es/locale/lang/{de-DE-formal.js → de-DE-formal.mjs} +0 -2
  285. package/es/locale/lang/de-DE.d.ts +0 -2
  286. package/es/locale/lang/{de-DE.js → de-DE.mjs} +0 -2
  287. package/es/locale/lang/el-GR.d.ts +64 -0
  288. package/es/locale/lang/el-GR.mjs +74 -0
  289. package/es/locale/lang/en-US.d.ts +0 -2
  290. package/es/locale/lang/{en-US.js → en-US.mjs} +0 -2
  291. package/es/locale/lang/es-ES.d.ts +0 -2
  292. package/es/locale/lang/{es-ES.js → es-ES.mjs} +0 -2
  293. package/es/locale/lang/fa-IR.d.ts +64 -0
  294. package/es/locale/lang/fa-IR.mjs +74 -0
  295. package/es/locale/lang/fr-FR.d.ts +0 -2
  296. package/es/locale/lang/{fr-FR.js → fr-FR.mjs} +0 -2
  297. package/es/locale/lang/he-IL.d.ts +64 -0
  298. package/es/locale/lang/he-IL.mjs +66 -0
  299. package/es/locale/lang/hi-IN.d.ts +0 -2
  300. package/es/locale/lang/{hi-IN.js → hi-IN.mjs} +0 -2
  301. package/es/locale/lang/id-ID.d.ts +0 -2
  302. package/es/locale/lang/{id-ID.js → id-ID.mjs} +0 -2
  303. package/es/locale/lang/is-IS.d.ts +62 -0
  304. package/es/locale/lang/is-IS.mjs +72 -0
  305. package/es/locale/lang/it-IT.d.ts +0 -2
  306. package/es/locale/lang/{it-IT.js → it-IT.mjs} +0 -2
  307. package/es/locale/lang/ja-JP.d.ts +0 -2
  308. package/es/locale/lang/{ja-JP.js → ja-JP.mjs} +0 -2
  309. package/es/locale/lang/ko-KR.d.ts +0 -2
  310. package/es/locale/lang/{ko-KR.js → ko-KR.mjs} +0 -2
  311. package/es/locale/lang/la-LA.d.ts +0 -2
  312. package/es/locale/lang/{la-LA.js → la-LA.mjs} +0 -2
  313. package/es/locale/lang/nb-NO.d.ts +0 -2
  314. package/es/locale/lang/{nb-NO.js → nb-NO.mjs} +0 -2
  315. package/es/locale/lang/pt-BR.d.ts +0 -2
  316. package/es/locale/lang/{pt-BR.js → pt-BR.mjs} +0 -2
  317. package/es/locale/lang/ro-RO.d.ts +0 -2
  318. package/es/locale/lang/{ro-RO.js → ro-RO.mjs} +0 -2
  319. package/es/locale/lang/ru-RU.d.ts +0 -2
  320. package/es/locale/lang/{ru-RU.js → ru-RU.mjs} +0 -2
  321. package/es/locale/lang/sv-SE.d.ts +62 -0
  322. package/es/locale/lang/sv-SE.mjs +64 -0
  323. package/es/locale/lang/th-TH.d.ts +0 -2
  324. package/es/locale/lang/{th-TH.js → th-TH.mjs} +0 -2
  325. package/es/locale/lang/tr-TR.d.ts +0 -2
  326. package/es/locale/lang/{tr-TR.js → tr-TR.mjs} +0 -2
  327. package/es/locale/lang/uk-UA.d.ts +0 -2
  328. package/es/locale/lang/{uk-UA.js → uk-UA.mjs} +0 -2
  329. package/es/locale/lang/vi-VN.d.ts +0 -2
  330. package/es/locale/lang/{vi-VN.js → vi-VN.mjs} +0 -2
  331. package/es/locale/lang/zh-CN.d.ts +0 -2
  332. package/es/locale/lang/{zh-CN.js → zh-CN.mjs} +0 -2
  333. package/es/locale/lang/zh-HK.d.ts +0 -2
  334. package/es/locale/lang/{zh-HK.js → zh-HK.mjs} +0 -2
  335. package/es/locale/lang/zh-TW.d.ts +0 -2
  336. package/es/locale/lang/{zh-TW.js → zh-TW.mjs} +0 -2
  337. package/es/locale/style/{index.js → index.mjs} +0 -0
  338. package/es/locale/style/{less.js → less.mjs} +0 -0
  339. package/es/nav-bar/{NavBar.js → NavBar.mjs} +3 -3
  340. package/es/nav-bar/{index.js → index.mjs} +2 -2
  341. package/es/nav-bar/style/{index.js → index.mjs} +0 -0
  342. package/es/nav-bar/style/{less.js → less.mjs} +0 -0
  343. package/es/notice-bar/{NoticeBar.js → NoticeBar.mjs} +4 -4
  344. package/es/notice-bar/{index.js → index.mjs} +2 -2
  345. package/es/notice-bar/style/{index.js → index.mjs} +0 -0
  346. package/es/notice-bar/style/{less.js → less.mjs} +0 -0
  347. package/es/notice-bar/{types.js → types.mjs} +0 -0
  348. package/es/notify/{Notify.js → Notify.mjs} +3 -3
  349. package/es/notify/{function-call.js → function-call.mjs} +3 -3
  350. package/es/notify/{index.js → index.mjs} +1 -1
  351. package/es/notify/style/{index.js → index.mjs} +0 -0
  352. package/es/notify/style/{less.js → less.mjs} +0 -0
  353. package/es/notify/types.d.ts +2 -1
  354. package/es/notify/{types.js → types.mjs} +0 -0
  355. package/es/number-keyboard/{NumberKeyboard.js → NumberKeyboard.mjs} +12 -3
  356. package/es/number-keyboard/{NumberKeyboardKey.js → NumberKeyboardKey.mjs} +3 -3
  357. package/es/number-keyboard/{index.js → index.mjs} +2 -2
  358. package/es/number-keyboard/style/{index.js → index.mjs} +0 -0
  359. package/es/number-keyboard/style/{less.js → less.mjs} +0 -0
  360. package/es/overlay/{Overlay.js → Overlay.mjs} +2 -2
  361. package/es/overlay/{index.js → index.mjs} +2 -2
  362. package/es/overlay/style/{index.js → index.mjs} +0 -0
  363. package/es/overlay/style/{less.js → less.mjs} +0 -0
  364. package/es/pagination/{Pagination.js → Pagination.mjs} +1 -1
  365. package/es/pagination/{index.js → index.mjs} +2 -2
  366. package/es/pagination/style/{index.js → index.mjs} +0 -0
  367. package/es/pagination/style/{less.js → less.mjs} +0 -0
  368. package/es/password-input/{PasswordInput.js → PasswordInput.mjs} +1 -1
  369. package/es/password-input/{index.js → index.mjs} +2 -2
  370. package/es/password-input/style/{index.js → index.mjs} +0 -0
  371. package/es/password-input/style/{less.js → less.mjs} +0 -0
  372. package/es/picker/Picker.d.ts +5 -4
  373. package/es/picker/{Picker.js → Picker.mjs} +5 -5
  374. package/es/picker/{PickerColumn.js → PickerColumn.mjs} +4 -4
  375. package/es/picker/index.d.ts +3 -3
  376. package/es/picker/{index.js → index.mjs} +2 -2
  377. package/es/picker/style/{index.js → index.mjs} +0 -0
  378. package/es/picker/style/{less.js → less.mjs} +0 -0
  379. package/es/picker/types.d.ts +4 -3
  380. package/es/picker/{types.js → types.mjs} +0 -0
  381. package/es/picker/utils.d.ts +4 -3
  382. package/es/picker/{utils.js → utils.mjs} +1 -1
  383. package/es/popover/{Popover.js → Popover.mjs} +3 -3
  384. package/es/popover/{index.js → index.mjs} +2 -2
  385. package/es/popover/style/{index.js → index.mjs} +0 -0
  386. package/es/popover/style/{less.js → less.mjs} +0 -0
  387. package/es/popover/{types.js → types.mjs} +0 -0
  388. package/es/popup/{Popup.js → Popup.mjs} +8 -8
  389. package/es/popup/index.css +1 -1
  390. package/es/popup/{index.js → index.mjs} +2 -2
  391. package/es/popup/{shared.js → shared.mjs} +1 -1
  392. package/es/popup/style/{index.js → index.mjs} +0 -0
  393. package/es/popup/style/{less.js → less.mjs} +0 -0
  394. package/es/popup/{types.js → types.mjs} +0 -0
  395. package/es/progress/Progress.d.ts +4 -3
  396. package/es/progress/{Progress.js → Progress.mjs} +1 -1
  397. package/es/progress/index.d.ts +2 -2
  398. package/es/progress/{index.js → index.mjs} +2 -2
  399. package/es/progress/style/{index.js → index.mjs} +0 -0
  400. package/es/progress/style/{less.js → less.mjs} +0 -0
  401. package/es/progress/{types.js → types.mjs} +0 -0
  402. package/es/pull-refresh/{PullRefresh.js → PullRefresh.mjs} +3 -3
  403. package/es/pull-refresh/{index.js → index.mjs} +2 -2
  404. package/es/pull-refresh/style/{index.js → index.mjs} +0 -0
  405. package/es/pull-refresh/style/{less.js → less.mjs} +0 -0
  406. package/es/radio/{Radio.js → Radio.mjs} +3 -3
  407. package/es/radio/{index.js → index.mjs} +2 -2
  408. package/es/radio/style/{index.js → index.mjs} +0 -0
  409. package/es/radio/style/{less.js → less.mjs} +0 -0
  410. package/es/radio-group/{RadioGroup.js → RadioGroup.mjs} +1 -1
  411. package/es/radio-group/{index.js → index.mjs} +2 -2
  412. package/es/radio-group/style/{index.js → index.mjs} +0 -0
  413. package/es/radio-group/style/{less.js → less.mjs} +0 -0
  414. package/es/rate/{Rate.js → Rate.mjs} +36 -14
  415. package/es/rate/{index.js → index.mjs} +2 -2
  416. package/es/rate/style/{index.js → index.mjs} +0 -0
  417. package/es/rate/style/{less.js → less.mjs} +0 -0
  418. package/es/row/{Row.js → Row.mjs} +1 -1
  419. package/es/row/{index.js → index.mjs} +2 -2
  420. package/es/row/style/{index.js → index.mjs} +0 -0
  421. package/es/row/style/{less.js → less.mjs} +0 -0
  422. package/es/search/Search.d.ts +3 -0
  423. package/es/search/{Search.js → Search.mjs} +5 -5
  424. package/es/search/index.css +1 -1
  425. package/es/search/index.d.ts +2 -0
  426. package/es/search/index.less +1 -1
  427. package/es/search/{index.js → index.mjs} +2 -2
  428. package/es/search/style/{index.js → index.mjs} +0 -0
  429. package/es/search/style/{less.js → less.mjs} +0 -0
  430. package/es/search/{types.js → types.mjs} +0 -0
  431. package/es/share-sheet/{ShareSheet.js → ShareSheet.mjs} +28 -14
  432. package/es/share-sheet/index.css +1 -1
  433. package/es/share-sheet/index.less +45 -1
  434. package/es/share-sheet/{index.js → index.mjs} +2 -2
  435. package/es/share-sheet/style/{index.js → index.mjs} +0 -0
  436. package/es/share-sheet/style/{less.js → less.mjs} +0 -0
  437. package/es/sidebar/{Sidebar.js → Sidebar.mjs} +1 -1
  438. package/es/sidebar/{index.js → index.mjs} +2 -2
  439. package/es/sidebar/style/{index.js → index.mjs} +0 -0
  440. package/es/sidebar/style/{less.js → less.mjs} +0 -0
  441. package/es/sidebar-item/{SidebarItem.js → SidebarItem.mjs} +4 -4
  442. package/es/sidebar-item/{index.js → index.mjs} +2 -2
  443. package/es/sidebar-item/style/{index.js → index.mjs} +0 -0
  444. package/es/sidebar-item/style/{less.js → less.mjs} +0 -0
  445. package/es/skeleton/Skeleton.d.ts +5 -4
  446. package/es/skeleton/{Skeleton.js → Skeleton.mjs} +1 -1
  447. package/es/skeleton/index.d.ts +3 -3
  448. package/es/skeleton/{index.js → index.mjs} +2 -2
  449. package/es/skeleton/style/{index.js → index.mjs} +0 -0
  450. package/es/skeleton/style/{less.js → less.mjs} +0 -0
  451. package/es/slider/{Slider.js → Slider.mjs} +2 -2
  452. package/es/slider/index.css +1 -1
  453. package/es/slider/{index.js → index.mjs} +2 -2
  454. package/es/slider/style/{index.js → index.mjs} +0 -0
  455. package/es/slider/style/{less.js → less.mjs} +0 -0
  456. package/es/step/{Step.js → Step.mjs} +3 -3
  457. package/es/step/{index.js → index.mjs} +2 -2
  458. package/es/step/style/{index.js → index.mjs} +0 -0
  459. package/es/step/style/{less.js → less.mjs} +0 -0
  460. package/es/stepper/{Stepper.js → Stepper.mjs} +1 -1
  461. package/es/stepper/{index.js → index.mjs} +2 -2
  462. package/es/stepper/style/{index.js → index.mjs} +0 -0
  463. package/es/stepper/style/{less.js → less.mjs} +0 -0
  464. package/es/steps/{Steps.js → Steps.mjs} +1 -1
  465. package/es/steps/{index.js → index.mjs} +2 -2
  466. package/es/steps/style/{index.js → index.mjs} +0 -0
  467. package/es/steps/style/{less.js → less.mjs} +0 -0
  468. package/es/sticky/{Sticky.js → Sticky.mjs} +2 -2
  469. package/es/sticky/{index.js → index.mjs} +2 -2
  470. package/es/sticky/style/{index.js → index.mjs} +0 -0
  471. package/es/sticky/style/{less.js → less.mjs} +0 -0
  472. package/es/style/animation.css +1 -1
  473. package/es/style/base.css +1 -1
  474. package/es/submit-bar/{SubmitBar.js → SubmitBar.mjs} +3 -3
  475. package/es/submit-bar/{index.js → index.mjs} +2 -2
  476. package/es/submit-bar/style/{index.js → index.mjs} +0 -0
  477. package/es/submit-bar/style/{less.js → less.mjs} +0 -0
  478. package/es/swipe/{Swipe.js → Swipe.mjs} +4 -4
  479. package/es/swipe/{index.js → index.mjs} +2 -2
  480. package/es/swipe/style/{index.js → index.mjs} +0 -0
  481. package/es/swipe/style/{less.js → less.mjs} +0 -0
  482. package/es/swipe/{types.js → types.mjs} +0 -0
  483. package/es/swipe-cell/{SwipeCell.js → SwipeCell.mjs} +3 -3
  484. package/es/swipe-cell/index.css +1 -1
  485. package/es/swipe-cell/{index.js → index.mjs} +2 -2
  486. package/es/swipe-cell/style/{index.js → index.mjs} +0 -0
  487. package/es/swipe-cell/style/{less.js → less.mjs} +0 -0
  488. package/es/swipe-cell/{types.js → types.mjs} +0 -0
  489. package/es/swipe-item/{SwipeItem.js → SwipeItem.mjs} +3 -3
  490. package/es/swipe-item/{index.js → index.mjs} +2 -2
  491. package/es/swipe-item/style/{index.js → index.mjs} +0 -0
  492. package/es/swipe-item/style/{less.js → less.mjs} +0 -0
  493. package/es/switch/{Switch.js → Switch.mjs} +7 -3
  494. package/es/switch/{index.js → index.mjs} +2 -2
  495. package/es/switch/style/{index.js → index.mjs} +0 -0
  496. package/es/switch/style/{less.js → less.mjs} +0 -0
  497. package/es/tab/{Tab.js → Tab.mjs} +7 -7
  498. package/es/tab/{index.js → index.mjs} +2 -2
  499. package/es/tab/style/{index.js → index.mjs} +0 -0
  500. package/es/tab/style/{less.js → less.mjs} +0 -0
  501. package/es/tabbar/Tabbar.d.ts +2 -2
  502. package/es/tabbar/{Tabbar.js → Tabbar.mjs} +2 -2
  503. package/es/tabbar/{index.js → index.mjs} +2 -2
  504. package/es/tabbar/style/{index.js → index.mjs} +0 -0
  505. package/es/tabbar/style/{less.js → less.mjs} +0 -0
  506. package/es/tabbar-item/{TabbarItem.js → TabbarItem.mjs} +5 -5
  507. package/es/tabbar-item/{index.js → index.mjs} +2 -2
  508. package/es/tabbar-item/style/{index.js → index.mjs} +0 -0
  509. package/es/tabbar-item/style/{less.js → less.mjs} +0 -0
  510. package/es/tabs/Tabs.d.ts +1 -1
  511. package/es/tabs/{Tabs.js → Tabs.mjs} +11 -10
  512. package/es/tabs/{TabsContent.js → TabsContent.mjs} +2 -2
  513. package/es/tabs/{TabsTitle.js → TabsTitle.mjs} +2 -2
  514. package/es/tabs/{index.js → index.mjs} +2 -2
  515. package/es/tabs/style/{index.js → index.mjs} +0 -0
  516. package/es/tabs/style/{less.js → less.mjs} +0 -0
  517. package/es/tabs/types.d.ts +5 -4
  518. package/es/tabs/{types.js → types.mjs} +0 -0
  519. package/es/tabs/{utils.js → utils.mjs} +1 -1
  520. package/es/tag/{Tag.js → Tag.mjs} +2 -2
  521. package/es/tag/{index.js → index.mjs} +2 -2
  522. package/es/tag/style/{index.js → index.mjs} +0 -0
  523. package/es/tag/style/{less.js → less.mjs} +0 -0
  524. package/es/time-picker/{TimePicker.js → TimePicker.mjs} +3 -3
  525. package/es/time-picker/{index.js → index.mjs} +2 -2
  526. package/es/time-picker/style/{index.js → index.mjs} +0 -0
  527. package/es/time-picker/style/{less.js → less.mjs} +0 -0
  528. package/es/toast/{Toast.js → Toast.mjs} +5 -5
  529. package/es/toast/{function-call.js → function-call.mjs} +3 -3
  530. package/es/toast/{index.js → index.mjs} +1 -1
  531. package/es/toast/{lock-click.js → lock-click.mjs} +0 -0
  532. package/es/toast/style/{index.js → index.mjs} +0 -0
  533. package/es/toast/style/{less.js → less.mjs} +0 -0
  534. package/es/toast/types.d.ts +3 -2
  535. package/es/toast/{types.js → types.mjs} +0 -0
  536. package/es/tree-select/TreeSelect.d.ts +7 -6
  537. package/es/tree-select/{TreeSelect.js → TreeSelect.mjs} +4 -4
  538. package/es/tree-select/index.d.ts +3 -3
  539. package/es/tree-select/{index.js → index.mjs} +2 -2
  540. package/es/tree-select/style/{index.js → index.mjs} +0 -0
  541. package/es/tree-select/style/{less.js → less.mjs} +0 -0
  542. package/es/uploader/Uploader.d.ts +4 -4
  543. package/es/uploader/{Uploader.js → Uploader.mjs} +8 -10
  544. package/es/uploader/UploaderPreviewItem.d.ts +3 -3
  545. package/es/uploader/{UploaderPreviewItem.js → UploaderPreviewItem.mjs} +19 -13
  546. package/es/uploader/index.css +1 -1
  547. package/es/uploader/index.d.ts +2 -2
  548. package/es/uploader/index.less +7 -4
  549. package/es/uploader/{index.js → index.mjs} +2 -2
  550. package/es/uploader/style/{index.js → index.mjs} +0 -0
  551. package/es/uploader/style/{less.js → less.mjs} +0 -0
  552. package/es/uploader/types.d.ts +5 -5
  553. package/es/uploader/{types.js → types.mjs} +0 -0
  554. package/es/uploader/utils.d.ts +0 -1
  555. package/es/uploader/{utils.js → utils.mjs} +2 -4
  556. package/es/utils/basic.d.ts +2 -0
  557. package/es/utils/{basic.js → basic.mjs} +3 -1
  558. package/es/utils/{constant.js → constant.mjs} +0 -0
  559. package/es/utils/{create.js → create.mjs} +4 -4
  560. package/es/utils/{deep-assign.js → deep-assign.mjs} +1 -1
  561. package/es/utils/{deep-clone.js → deep-clone.mjs} +1 -1
  562. package/es/utils/{dom.js → dom.mjs} +1 -1
  563. package/es/utils/format.d.ts +7 -6
  564. package/es/utils/{format.js → format.mjs} +9 -3
  565. package/es/utils/index.mjs +9 -0
  566. package/es/utils/{interceptor.js → interceptor.mjs} +2 -2
  567. package/es/utils/{mount-component.js → mount-component.mjs} +2 -2
  568. package/es/utils/{props.js → props.mjs} +0 -0
  569. package/es/utils/validate.d.ts +2 -1
  570. package/es/utils/{validate.js → validate.mjs} +1 -1
  571. package/es/utils/{with-install.js → with-install.mjs} +1 -1
  572. package/lib/action-bar/ActionBar.js +8 -13
  573. package/lib/action-bar/index.js +9 -16
  574. package/lib/action-bar-button/ActionBarButton.js +8 -13
  575. package/lib/action-bar-button/index.js +9 -16
  576. package/lib/action-bar-icon/ActionBarIcon.js +8 -13
  577. package/lib/action-bar-icon/index.js +9 -16
  578. package/lib/action-sheet/ActionSheet.js +8 -13
  579. package/lib/action-sheet/index.js +9 -16
  580. package/lib/address-edit/AddressEdit.d.ts +0 -17
  581. package/lib/address-edit/AddressEdit.js +12 -40
  582. package/lib/address-edit/AddressEditDetail.js +8 -13
  583. package/lib/address-edit/index.d.ts +0 -12
  584. package/lib/address-edit/index.js +9 -16
  585. package/lib/address-edit/types.d.ts +0 -1
  586. package/lib/address-edit/types.js +7 -12
  587. package/lib/address-list/AddressList.js +9 -16
  588. package/lib/address-list/AddressListItem.d.ts +3 -2
  589. package/lib/address-list/AddressListItem.js +8 -13
  590. package/lib/address-list/index.js +9 -16
  591. package/lib/area/Area.js +8 -13
  592. package/lib/area/index.js +9 -16
  593. package/lib/area/types.js +7 -12
  594. package/lib/area/utils.js +8 -13
  595. package/lib/badge/Badge.d.ts +4 -3
  596. package/lib/badge/Badge.js +8 -13
  597. package/lib/badge/index.d.ts +2 -2
  598. package/lib/badge/index.js +9 -16
  599. package/lib/button/Button.js +8 -13
  600. package/lib/button/index.js +9 -16
  601. package/lib/button/types.js +7 -12
  602. package/lib/calendar/Calendar.js +10 -17
  603. package/lib/calendar/CalendarDay.js +12 -13
  604. package/lib/calendar/CalendarHeader.js +8 -13
  605. package/lib/calendar/CalendarMonth.js +9 -16
  606. package/lib/calendar/index.css +1 -1
  607. package/lib/calendar/index.js +9 -16
  608. package/lib/calendar/index.less +2 -0
  609. package/lib/calendar/types.d.ts +2 -1
  610. package/lib/calendar/types.js +7 -12
  611. package/lib/calendar/utils.js +8 -13
  612. package/lib/card/Card.js +8 -13
  613. package/lib/card/index.js +9 -16
  614. package/lib/cascader/Cascader.js +8 -13
  615. package/lib/cascader/index.js +9 -16
  616. package/lib/cascader/types.d.ts +2 -1
  617. package/lib/cascader/types.js +7 -12
  618. package/lib/cell/Cell.js +8 -13
  619. package/lib/cell/index.js +9 -16
  620. package/lib/cell-group/CellGroup.js +8 -13
  621. package/lib/cell-group/index.js +9 -16
  622. package/lib/checkbox/Checkbox.js +9 -16
  623. package/lib/checkbox/Checker.d.ts +2 -1
  624. package/lib/checkbox/Checker.js +8 -13
  625. package/lib/checkbox/index.js +9 -16
  626. package/lib/checkbox/types.js +7 -12
  627. package/lib/checkbox-group/CheckboxGroup.js +8 -13
  628. package/lib/checkbox-group/index.js +9 -16
  629. package/lib/checkbox-group/types.js +7 -12
  630. package/lib/circle/Circle.js +8 -13
  631. package/lib/circle/index.js +9 -16
  632. package/lib/col/Col.js +8 -13
  633. package/lib/col/index.js +9 -16
  634. package/lib/collapse/Collapse.d.ts +7 -6
  635. package/lib/collapse/Collapse.js +8 -13
  636. package/lib/collapse/index.d.ts +3 -3
  637. package/lib/collapse/index.js +9 -16
  638. package/lib/collapse-item/CollapseItem.js +8 -13
  639. package/lib/collapse-item/index.js +9 -16
  640. package/lib/collapse-item/types.js +7 -12
  641. package/lib/composables/on-popup-reopen.js +8 -13
  642. package/lib/composables/use-expose.js +8 -13
  643. package/lib/composables/use-height.js +8 -13
  644. package/lib/composables/use-id.js +8 -13
  645. package/lib/composables/use-lazy-render.js +8 -13
  646. package/lib/composables/use-lock-scroll.js +8 -13
  647. package/lib/composables/use-placeholder.js +8 -13
  648. package/lib/composables/use-refs.js +8 -13
  649. package/lib/composables/use-route.js +8 -13
  650. package/lib/composables/use-tab-status.js +8 -13
  651. package/lib/composables/use-touch.js +9 -14
  652. package/lib/composables/use-visibility-change.js +8 -13
  653. package/lib/config-provider/ConfigProvider.d.ts +4 -3
  654. package/lib/config-provider/ConfigProvider.js +8 -13
  655. package/lib/config-provider/index.d.ts +2 -2
  656. package/lib/config-provider/index.js +9 -16
  657. package/lib/contact-card/ContactCard.js +8 -13
  658. package/lib/contact-card/index.js +9 -16
  659. package/lib/contact-edit/ContactEdit.js +8 -13
  660. package/lib/contact-edit/index.js +9 -16
  661. package/lib/contact-list/ContactList.d.ts +3 -2
  662. package/lib/contact-list/ContactList.js +8 -13
  663. package/lib/contact-list/index.js +9 -16
  664. package/lib/count-down/CountDown.js +8 -13
  665. package/lib/count-down/index.js +9 -16
  666. package/lib/count-down/types.js +7 -12
  667. package/lib/count-down/utils.js +8 -13
  668. package/lib/coupon/Coupon.d.ts +2 -1
  669. package/lib/coupon/Coupon.js +8 -13
  670. package/lib/coupon/index.js +9 -16
  671. package/lib/coupon/utils.js +8 -13
  672. package/lib/coupon-cell/CouponCell.js +8 -13
  673. package/lib/coupon-cell/index.js +9 -16
  674. package/lib/coupon-list/CouponList.d.ts +3 -13
  675. package/lib/coupon-list/CouponList.js +17 -20
  676. package/lib/coupon-list/index.css +1 -1
  677. package/lib/coupon-list/index.d.ts +2 -9
  678. package/lib/coupon-list/index.js +9 -16
  679. package/lib/coupon-list/index.less +4 -16
  680. package/lib/coupon-list/style/index.js +1 -0
  681. package/lib/coupon-list/style/less.js +1 -0
  682. package/lib/date-picker/DatePicker.js +8 -13
  683. package/lib/date-picker/index.js +9 -16
  684. package/lib/date-picker/utils.js +8 -13
  685. package/lib/dialog/Dialog.js +8 -13
  686. package/lib/dialog/function-call.js +9 -16
  687. package/lib/dialog/index.css +1 -1
  688. package/lib/dialog/index.js +8 -13
  689. package/lib/dialog/types.d.ts +2 -2
  690. package/lib/dialog/types.js +7 -12
  691. package/lib/divider/Divider.js +8 -13
  692. package/lib/divider/index.js +9 -16
  693. package/lib/dropdown-item/DropdownItem.js +8 -13
  694. package/lib/dropdown-item/index.js +9 -16
  695. package/lib/dropdown-item/types.d.ts +2 -1
  696. package/lib/dropdown-item/types.js +7 -12
  697. package/lib/dropdown-menu/DropdownMenu.js +8 -13
  698. package/lib/dropdown-menu/index.js +9 -16
  699. package/lib/dropdown-menu/types.js +7 -12
  700. package/lib/empty/Empty.d.ts +8 -7
  701. package/lib/empty/Empty.js +19 -27
  702. package/lib/empty/Images.d.ts +4 -0
  703. package/lib/empty/Images.js +290 -0
  704. package/lib/empty/index.d.ts +2 -2
  705. package/lib/empty/index.js +9 -16
  706. package/lib/field/Field.d.ts +4 -0
  707. package/lib/field/Field.js +28 -28
  708. package/lib/field/index.d.ts +3 -1
  709. package/lib/field/index.js +9 -16
  710. package/lib/field/types.d.ts +3 -1
  711. package/lib/field/types.js +7 -12
  712. package/lib/field/utils.js +8 -13
  713. package/lib/form/Form.d.ts +13 -13
  714. package/lib/form/Form.js +20 -16
  715. package/lib/form/index.d.ts +9 -9
  716. package/lib/form/index.js +9 -16
  717. package/lib/form/types.d.ts +3 -0
  718. package/lib/form/types.js +7 -12
  719. package/lib/grid/Grid.js +8 -13
  720. package/lib/grid/index.js +9 -16
  721. package/lib/grid-item/GridItem.js +8 -13
  722. package/lib/grid-item/index.js +9 -16
  723. package/lib/icon/Icon.js +8 -13
  724. package/lib/icon/index.css +1 -1
  725. package/lib/icon/index.js +9 -16
  726. package/lib/image/Image.js +8 -13
  727. package/lib/image/index.js +9 -16
  728. package/lib/image-preview/ImagePreview.js +9 -16
  729. package/lib/image-preview/ImagePreviewItem.js +8 -13
  730. package/lib/image-preview/function-call.js +9 -16
  731. package/lib/image-preview/index.js +8 -13
  732. package/lib/image-preview/types.js +7 -12
  733. package/lib/index-anchor/IndexAnchor.js +8 -13
  734. package/lib/index-anchor/index.js +9 -16
  735. package/lib/index-bar/IndexBar.d.ts +5 -4
  736. package/lib/index-bar/IndexBar.js +8 -13
  737. package/lib/index-bar/index.d.ts +3 -3
  738. package/lib/index-bar/index.js +9 -16
  739. package/lib/index-bar/types.d.ts +2 -1
  740. package/lib/index-bar/types.js +7 -12
  741. package/lib/index.css +1 -1
  742. package/lib/index.d.ts +1 -1
  743. package/lib/index.js +97 -101
  744. package/lib/index.less +2 -2
  745. package/lib/lazyload/index.js +8 -13
  746. package/lib/lazyload/vue-lazyload/index.js +9 -16
  747. package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
  748. package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
  749. package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
  750. package/lib/lazyload/vue-lazyload/lazy.js +9 -16
  751. package/lib/lazyload/vue-lazyload/listener.js +8 -13
  752. package/lib/lazyload/vue-lazyload/util.js +8 -13
  753. package/lib/list/List.js +8 -13
  754. package/lib/list/index.js +9 -16
  755. package/lib/list/types.js +7 -12
  756. package/lib/loading/Loading.js +11 -14
  757. package/lib/loading/index.js +9 -16
  758. package/lib/locale/index.js +9 -16
  759. package/lib/locale/lang/bg-BG.d.ts +64 -0
  760. package/lib/locale/lang/bg-BG.js +93 -0
  761. package/lib/locale/lang/bn-BD.d.ts +0 -2
  762. package/lib/locale/lang/bn-BD.js +8 -15
  763. package/lib/locale/lang/da-DK.d.ts +64 -0
  764. package/lib/locale/lang/da-DK.js +85 -0
  765. package/lib/locale/lang/de-DE-formal.d.ts +0 -2
  766. package/lib/locale/lang/de-DE-formal.js +8 -15
  767. package/lib/locale/lang/de-DE.d.ts +0 -2
  768. package/lib/locale/lang/de-DE.js +8 -15
  769. package/lib/locale/lang/el-GR.d.ts +64 -0
  770. package/lib/locale/lang/el-GR.js +93 -0
  771. package/lib/locale/lang/en-US.d.ts +0 -2
  772. package/lib/locale/lang/en-US.js +8 -15
  773. package/lib/locale/lang/es-ES.d.ts +0 -2
  774. package/lib/locale/lang/es-ES.js +8 -15
  775. package/lib/locale/lang/fa-IR.d.ts +64 -0
  776. package/lib/locale/lang/fa-IR.js +93 -0
  777. package/lib/locale/lang/fr-FR.d.ts +0 -2
  778. package/lib/locale/lang/fr-FR.js +8 -15
  779. package/lib/locale/lang/he-IL.d.ts +64 -0
  780. package/lib/locale/lang/he-IL.js +85 -0
  781. package/lib/locale/lang/hi-IN.d.ts +0 -2
  782. package/lib/locale/lang/hi-IN.js +8 -15
  783. package/lib/locale/lang/id-ID.d.ts +0 -2
  784. package/lib/locale/lang/id-ID.js +8 -15
  785. package/lib/locale/lang/is-IS.d.ts +62 -0
  786. package/lib/locale/lang/is-IS.js +91 -0
  787. package/lib/locale/lang/it-IT.d.ts +0 -2
  788. package/lib/locale/lang/it-IT.js +8 -15
  789. package/lib/locale/lang/ja-JP.d.ts +0 -2
  790. package/lib/locale/lang/ja-JP.js +8 -15
  791. package/lib/locale/lang/ko-KR.d.ts +0 -2
  792. package/lib/locale/lang/ko-KR.js +8 -15
  793. package/lib/locale/lang/la-LA.d.ts +0 -2
  794. package/lib/locale/lang/la-LA.js +8 -15
  795. package/lib/locale/lang/nb-NO.d.ts +0 -2
  796. package/lib/locale/lang/nb-NO.js +8 -15
  797. package/lib/locale/lang/pt-BR.d.ts +0 -2
  798. package/lib/locale/lang/pt-BR.js +8 -15
  799. package/lib/locale/lang/ro-RO.d.ts +0 -2
  800. package/lib/locale/lang/ro-RO.js +8 -15
  801. package/lib/locale/lang/ru-RU.d.ts +0 -2
  802. package/lib/locale/lang/ru-RU.js +8 -15
  803. package/lib/locale/lang/sv-SE.d.ts +62 -0
  804. package/lib/locale/lang/sv-SE.js +83 -0
  805. package/lib/locale/lang/th-TH.d.ts +0 -2
  806. package/lib/locale/lang/th-TH.js +8 -15
  807. package/lib/locale/lang/tr-TR.d.ts +0 -2
  808. package/lib/locale/lang/tr-TR.js +8 -15
  809. package/lib/locale/lang/uk-UA.d.ts +0 -2
  810. package/lib/locale/lang/uk-UA.js +8 -15
  811. package/lib/locale/lang/vi-VN.d.ts +0 -2
  812. package/lib/locale/lang/vi-VN.js +8 -15
  813. package/lib/locale/lang/zh-CN.d.ts +0 -2
  814. package/lib/locale/lang/zh-CN.js +8 -15
  815. package/lib/locale/lang/zh-HK.d.ts +0 -2
  816. package/lib/locale/lang/zh-HK.js +8 -15
  817. package/lib/locale/lang/zh-TW.d.ts +0 -2
  818. package/lib/locale/lang/zh-TW.js +8 -15
  819. package/lib/nav-bar/NavBar.js +8 -13
  820. package/lib/nav-bar/index.js +9 -16
  821. package/lib/notice-bar/NoticeBar.js +8 -13
  822. package/lib/notice-bar/index.js +9 -16
  823. package/lib/notice-bar/types.js +7 -12
  824. package/lib/notify/Notify.js +8 -13
  825. package/lib/notify/function-call.js +9 -16
  826. package/lib/notify/index.js +8 -13
  827. package/lib/notify/types.d.ts +2 -1
  828. package/lib/notify/types.js +7 -12
  829. package/lib/number-keyboard/NumberKeyboard.js +19 -17
  830. package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
  831. package/lib/number-keyboard/index.js +9 -16
  832. package/lib/overlay/Overlay.js +8 -13
  833. package/lib/overlay/index.js +9 -16
  834. package/lib/pagination/Pagination.js +8 -13
  835. package/lib/pagination/index.js +9 -16
  836. package/lib/password-input/PasswordInput.js +8 -13
  837. package/lib/password-input/index.js +9 -16
  838. package/lib/picker/Picker.d.ts +5 -4
  839. package/lib/picker/Picker.js +9 -16
  840. package/lib/picker/PickerColumn.js +8 -13
  841. package/lib/picker/index.d.ts +3 -3
  842. package/lib/picker/index.js +9 -16
  843. package/lib/picker/types.d.ts +4 -3
  844. package/lib/picker/types.js +7 -12
  845. package/lib/picker/utils.d.ts +4 -3
  846. package/lib/picker/utils.js +8 -13
  847. package/lib/popover/Popover.js +8 -13
  848. package/lib/popover/index.js +9 -16
  849. package/lib/popover/types.js +7 -12
  850. package/lib/popup/Popup.js +8 -13
  851. package/lib/popup/index.css +1 -1
  852. package/lib/popup/index.js +9 -16
  853. package/lib/popup/shared.js +8 -13
  854. package/lib/popup/types.js +7 -12
  855. package/lib/progress/Progress.d.ts +4 -3
  856. package/lib/progress/Progress.js +8 -13
  857. package/lib/progress/index.d.ts +2 -2
  858. package/lib/progress/index.js +9 -16
  859. package/lib/progress/types.js +7 -12
  860. package/lib/pull-refresh/PullRefresh.js +8 -13
  861. package/lib/pull-refresh/index.js +9 -16
  862. package/lib/radio/Radio.js +9 -16
  863. package/lib/radio/index.js +9 -16
  864. package/lib/radio-group/RadioGroup.js +8 -13
  865. package/lib/radio-group/index.js +9 -16
  866. package/lib/rate/Rate.js +39 -22
  867. package/lib/rate/index.js +9 -16
  868. package/lib/row/Row.js +8 -13
  869. package/lib/row/index.js +9 -16
  870. package/lib/search/Search.d.ts +3 -0
  871. package/lib/search/Search.js +8 -13
  872. package/lib/search/index.css +1 -1
  873. package/lib/search/index.d.ts +2 -0
  874. package/lib/search/index.js +9 -16
  875. package/lib/search/index.less +1 -1
  876. package/lib/search/types.js +7 -12
  877. package/lib/share-sheet/ShareSheet.js +33 -24
  878. package/lib/share-sheet/index.css +1 -1
  879. package/lib/share-sheet/index.js +9 -16
  880. package/lib/share-sheet/index.less +45 -1
  881. package/lib/sidebar/Sidebar.js +8 -13
  882. package/lib/sidebar/index.js +9 -16
  883. package/lib/sidebar-item/SidebarItem.js +8 -13
  884. package/lib/sidebar-item/index.js +9 -16
  885. package/lib/skeleton/Skeleton.d.ts +5 -4
  886. package/lib/skeleton/Skeleton.js +8 -13
  887. package/lib/skeleton/index.d.ts +3 -3
  888. package/lib/skeleton/index.js +9 -16
  889. package/lib/slider/Slider.js +8 -13
  890. package/lib/slider/index.css +1 -1
  891. package/lib/slider/index.js +9 -16
  892. package/lib/step/Step.js +8 -13
  893. package/lib/step/index.js +9 -16
  894. package/lib/stepper/Stepper.js +8 -13
  895. package/lib/stepper/index.js +9 -16
  896. package/lib/steps/Steps.js +8 -13
  897. package/lib/steps/index.js +9 -16
  898. package/lib/sticky/Sticky.js +8 -13
  899. package/lib/sticky/index.js +9 -16
  900. package/lib/style/animation.css +1 -1
  901. package/lib/style/base.css +1 -1
  902. package/lib/submit-bar/SubmitBar.js +8 -13
  903. package/lib/submit-bar/index.js +9 -16
  904. package/lib/swipe/Swipe.js +8 -13
  905. package/lib/swipe/index.js +9 -16
  906. package/lib/swipe/types.js +7 -12
  907. package/lib/swipe-cell/SwipeCell.js +8 -13
  908. package/lib/swipe-cell/index.css +1 -1
  909. package/lib/swipe-cell/index.js +9 -16
  910. package/lib/swipe-cell/types.js +7 -12
  911. package/lib/swipe-item/SwipeItem.js +8 -13
  912. package/lib/swipe-item/index.js +9 -16
  913. package/lib/switch/Switch.js +13 -14
  914. package/lib/switch/index.js +9 -16
  915. package/lib/tab/Tab.js +8 -13
  916. package/lib/tab/index.js +9 -16
  917. package/lib/tabbar/Tabbar.d.ts +2 -2
  918. package/lib/tabbar/Tabbar.js +8 -13
  919. package/lib/tabbar/index.js +9 -16
  920. package/lib/tabbar-item/TabbarItem.js +8 -13
  921. package/lib/tabbar-item/index.js +9 -16
  922. package/lib/tabs/Tabs.d.ts +1 -1
  923. package/lib/tabs/Tabs.js +10 -16
  924. package/lib/tabs/TabsContent.js +8 -13
  925. package/lib/tabs/TabsTitle.js +8 -13
  926. package/lib/tabs/index.js +9 -16
  927. package/lib/tabs/types.d.ts +5 -4
  928. package/lib/tabs/types.js +7 -12
  929. package/lib/tabs/utils.js +8 -13
  930. package/lib/tag/Tag.js +8 -13
  931. package/lib/tag/index.js +9 -16
  932. package/lib/time-picker/TimePicker.js +8 -13
  933. package/lib/time-picker/index.js +9 -16
  934. package/lib/toast/Toast.js +8 -13
  935. package/lib/toast/function-call.js +9 -16
  936. package/lib/toast/index.js +8 -13
  937. package/lib/toast/lock-click.js +8 -13
  938. package/lib/toast/types.d.ts +3 -2
  939. package/lib/toast/types.js +7 -12
  940. package/lib/tree-select/TreeSelect.d.ts +7 -6
  941. package/lib/tree-select/TreeSelect.js +8 -13
  942. package/lib/tree-select/index.d.ts +3 -3
  943. package/lib/tree-select/index.js +9 -16
  944. package/lib/uploader/Uploader.d.ts +4 -4
  945. package/lib/uploader/Uploader.js +12 -21
  946. package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
  947. package/lib/uploader/UploaderPreviewItem.js +22 -21
  948. package/lib/uploader/index.css +1 -1
  949. package/lib/uploader/index.d.ts +2 -2
  950. package/lib/uploader/index.js +9 -16
  951. package/lib/uploader/index.less +7 -4
  952. package/lib/uploader/types.d.ts +5 -5
  953. package/lib/uploader/types.js +7 -12
  954. package/lib/uploader/utils.d.ts +0 -1
  955. package/lib/uploader/utils.js +10 -17
  956. package/lib/utils/basic.d.ts +2 -0
  957. package/lib/utils/basic.js +11 -14
  958. package/lib/utils/constant.js +8 -13
  959. package/lib/utils/create.js +9 -16
  960. package/lib/utils/deep-assign.js +8 -13
  961. package/lib/utils/deep-clone.js +8 -13
  962. package/lib/utils/dom.js +8 -13
  963. package/lib/utils/format.d.ts +7 -6
  964. package/lib/utils/format.js +14 -13
  965. package/lib/utils/index.js +17 -21
  966. package/lib/utils/interceptor.js +8 -13
  967. package/lib/utils/mount-component.js +8 -13
  968. package/lib/utils/props.js +8 -13
  969. package/lib/utils/validate.d.ts +2 -1
  970. package/lib/utils/validate.js +8 -13
  971. package/lib/utils/with-install.js +8 -13
  972. package/lib/vant.cjs.js +526 -294
  973. package/lib/vant.cjs.min.js +1 -1
  974. package/lib/vant.es.js +525 -292
  975. package/lib/vant.es.min.js +525 -292
  976. package/lib/vant.js +602 -333
  977. package/lib/vant.min.js +1 -1
  978. package/package.json +8 -23
  979. package/vetur/attributes.json +350 -422
  980. package/vetur/tags.json +101 -101
  981. package/vetur/web-types.json +1928 -1084
  982. package/changelog.generated.md +0 -197
  983. package/es/empty/Network.d.ts +0 -1
  984. package/es/empty/Network.js +0 -89
  985. package/es/index.js +0 -280
  986. package/es/utils/index.js +0 -9
  987. package/lib/empty/Network.d.ts +0 -1
  988. package/lib/empty/Network.js +0 -113
package/lib/vant.js CHANGED
@@ -24,6 +24,7 @@
24
24
  }, {});
25
25
  }
26
26
  const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
27
+ const toArray = (item) => Array.isArray(item) ? item : [item];
27
28
  const unknownProp = null;
28
29
  const numericProp = [Number, String];
29
30
  const truthProp = {
@@ -473,6 +474,12 @@
473
474
  }
474
475
  function getSizeStyle(originSize) {
475
476
  if (isDef(originSize)) {
477
+ if (Array.isArray(originSize)) {
478
+ return {
479
+ width: addUnit(originSize[0]),
480
+ height: addUnit(originSize[1])
481
+ };
482
+ }
476
483
  const size = addUnit(originSize);
477
484
  return {
478
485
  width: size,
@@ -634,10 +641,8 @@
634
641
  },
635
642
  vanAddressEdit: {
636
643
  area: "\u5730\u533A",
637
- postal: "\u90AE\u653F\u7F16\u7801",
638
644
  areaEmpty: "\u8BF7\u9009\u62E9\u5730\u533A",
639
645
  addressEmpty: "\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",
640
- postalEmpty: "\u90AE\u653F\u7F16\u7801\u4E0D\u6B63\u786E",
641
646
  addressDetail: "\u8BE6\u7EC6\u5730\u5740",
642
647
  defaultAddress: "\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"
643
648
  },
@@ -663,10 +668,10 @@
663
668
  };
664
669
  var stdin_default$1B = Locale;
665
670
  function createTranslate(name2) {
666
- const prefix2 = camelize(name2) + ".";
671
+ const prefix = camelize(name2) + ".";
667
672
  return (path, ...args) => {
668
673
  const messages2 = stdin_default$1B.messages();
669
- const message = get(messages2, prefix2 + path) || get(messages2, path);
674
+ const message = get(messages2, prefix + path) || get(messages2, path);
670
675
  return isFunction(message) ? message(...args) : message;
671
676
  };
672
677
  }
@@ -1032,7 +1037,9 @@
1032
1037
  return vue.createVNode("div", {
1033
1038
  "class": bem$1l([type, {
1034
1039
  vertical
1035
- }])
1040
+ }]),
1041
+ "aria-live": "polite",
1042
+ "aria-busy": true
1036
1043
  }, [vue.createVNode("span", {
1037
1044
  "class": bem$1l("spinner", type),
1038
1045
  "style": spinnerStyle.value
@@ -1350,7 +1357,7 @@
1350
1357
  };
1351
1358
  const move = (event) => {
1352
1359
  const touch = event.touches[0];
1353
- deltaX.value = touch.clientX < 0 ? 0 : touch.clientX - startX.value;
1360
+ deltaX.value = (touch.clientX < 0 ? 0 : touch.clientX) - startX.value;
1354
1361
  deltaY.value = touch.clientY - startY.value;
1355
1362
  offsetX.value = Math.abs(deltaX.value);
1356
1363
  offsetY.value = Math.abs(deltaY.value);
@@ -2498,9 +2505,12 @@
2498
2505
  scrollToError: Boolean,
2499
2506
  validateFirst: Boolean,
2500
2507
  submitOnEnter: truthProp,
2501
- validateTrigger: makeStringProp("onBlur"),
2502
2508
  showErrorMessage: truthProp,
2503
- errorMessageAlign: String
2509
+ errorMessageAlign: String,
2510
+ validateTrigger: {
2511
+ type: [String, Array],
2512
+ default: "onBlur"
2513
+ }
2504
2514
  };
2505
2515
  var stdin_default$1l = vue.defineComponent({
2506
2516
  name: name$1e,
@@ -2580,6 +2590,10 @@
2580
2590
  item.resetValidation();
2581
2591
  });
2582
2592
  };
2593
+ const getValidationStatus = () => children.reduce((form, field) => {
2594
+ form[field.name] = field.getValidationStatus();
2595
+ return form;
2596
+ }, {});
2583
2597
  const scrollToField = (name2, options) => {
2584
2598
  children.some((item) => {
2585
2599
  if (item.name === name2) {
@@ -2615,8 +2629,10 @@
2615
2629
  useExpose({
2616
2630
  submit,
2617
2631
  validate,
2632
+ getValues,
2618
2633
  scrollToField,
2619
- resetValidation
2634
+ resetValidation,
2635
+ getValidationStatus
2620
2636
  });
2621
2637
  return () => {
2622
2638
  var _a;
@@ -2712,7 +2728,7 @@
2712
2728
  return [...str].slice(0, maxlength).join("");
2713
2729
  }
2714
2730
  let current = 0;
2715
- function useId() {
2731
+ function useId$1() {
2716
2732
  const vm = vue.getCurrentInstance();
2717
2733
  const { name: name2 = "unknown" } = (vm == null ? void 0 : vm.type) || {};
2718
2734
  return `${name2}-${++current}`;
@@ -2733,6 +2749,7 @@
2733
2749
  placeholder: String,
2734
2750
  autocomplete: String,
2735
2751
  errorMessage: String,
2752
+ enterkeyhint: String,
2736
2753
  clearTrigger: makeStringProp("focus"),
2737
2754
  formatTrigger: makeStringProp("onChange"),
2738
2755
  error: {
@@ -2771,10 +2788,10 @@
2771
2788
  emit,
2772
2789
  slots
2773
2790
  }) {
2774
- const id = useId();
2791
+ const id = useId$1();
2775
2792
  const state = vue.reactive({
2793
+ status: "unvalidated",
2776
2794
  focused: false,
2777
- validateFailed: false,
2778
2795
  validateMessage: ""
2779
2796
  });
2780
2797
  const inputRef = vue.ref();
@@ -2810,7 +2827,7 @@
2810
2827
  return props.modelValue;
2811
2828
  });
2812
2829
  const runRules = (rules) => rules.reduce((promise, rule) => promise.then(() => {
2813
- if (state.validateFailed) {
2830
+ if (state.status === "failed") {
2814
2831
  return;
2815
2832
  }
2816
2833
  let {
@@ -2820,38 +2837,37 @@
2820
2837
  value = rule.formatter(value, rule);
2821
2838
  }
2822
2839
  if (!runSyncRule(value, rule)) {
2823
- state.validateFailed = true;
2840
+ state.status = "failed";
2824
2841
  state.validateMessage = getRuleMessage(value, rule);
2825
2842
  return;
2826
2843
  }
2827
2844
  if (rule.validator) {
2828
2845
  return runRuleValidator(value, rule).then((result) => {
2829
2846
  if (result && typeof result === "string") {
2830
- state.validateFailed = true;
2847
+ state.status = "failed";
2831
2848
  state.validateMessage = result;
2832
2849
  } else if (result === false) {
2833
- state.validateFailed = true;
2850
+ state.status = "failed";
2834
2851
  state.validateMessage = getRuleMessage(value, rule);
2835
2852
  }
2836
2853
  });
2837
2854
  }
2838
2855
  }), Promise.resolve());
2839
2856
  const resetValidation = () => {
2840
- if (state.validateFailed) {
2841
- state.validateFailed = false;
2842
- state.validateMessage = "";
2843
- }
2857
+ state.status = "unvalidated";
2858
+ state.validateMessage = "";
2844
2859
  };
2845
2860
  const validate = (rules = props.rules) => new Promise((resolve) => {
2846
2861
  resetValidation();
2847
2862
  if (rules) {
2848
2863
  runRules(rules).then(() => {
2849
- if (state.validateFailed) {
2864
+ if (state.status === "failed") {
2850
2865
  resolve({
2851
2866
  name: props.name,
2852
2867
  message: state.validateMessage
2853
2868
  });
2854
2869
  } else {
2870
+ state.status = "passed";
2855
2871
  resolve();
2856
2872
  }
2857
2873
  });
@@ -2861,10 +2877,13 @@
2861
2877
  });
2862
2878
  const validateWithTrigger = (trigger) => {
2863
2879
  if (form && props.rules) {
2864
- const defaultTrigger = form.props.validateTrigger === trigger;
2880
+ const {
2881
+ validateTrigger
2882
+ } = form.props;
2883
+ const defaultTrigger = toArray(validateTrigger).includes(trigger);
2865
2884
  const rules = props.rules.filter((rule) => {
2866
2885
  if (rule.trigger) {
2867
- return rule.trigger === trigger;
2886
+ return toArray(rule.trigger).includes(trigger);
2868
2887
  }
2869
2888
  return defaultTrigger;
2870
2889
  });
@@ -2952,7 +2971,7 @@
2952
2971
  if (typeof props.error === "boolean") {
2953
2972
  return props.error;
2954
2973
  }
2955
- if (form && form.props.showError && state.validateFailed) {
2974
+ if (form && form.props.showError && state.status === "failed") {
2956
2975
  return true;
2957
2976
  }
2958
2977
  });
@@ -2978,6 +2997,7 @@
2978
2997
  emit("keypress", event);
2979
2998
  };
2980
2999
  const getInputId = () => props.id || `${id}-input`;
3000
+ const getValidationStatus = () => state.status;
2981
3001
  const renderInput = () => {
2982
3002
  const controlClass = bem$19("control", [getProp("inputAlign"), {
2983
3003
  error: showError.value,
@@ -2996,12 +3016,12 @@
2996
3016
  name: props.name,
2997
3017
  rows: props.rows !== void 0 ? +props.rows : void 0,
2998
3018
  class: controlClass,
2999
- value: props.modelValue,
3000
3019
  disabled: getProp("disabled"),
3001
3020
  readonly: getProp("readonly"),
3002
3021
  autofocus: props.autofocus,
3003
3022
  placeholder: props.placeholder,
3004
3023
  autocomplete: props.autocomplete,
3024
+ enterkeyhint: props.enterkeyhint,
3005
3025
  "aria-labelledby": props.label ? `${id}-label` : void 0,
3006
3026
  onBlur,
3007
3027
  onFocus,
@@ -3092,7 +3112,8 @@
3092
3112
  focus,
3093
3113
  validate,
3094
3114
  formValue,
3095
- resetValidation
3115
+ resetValidation,
3116
+ getValidationStatus
3096
3117
  });
3097
3118
  vue.provide(CUSTOM_FIELD_INJECTION_KEY, {
3098
3119
  customValue,
@@ -3451,7 +3472,8 @@
3451
3472
  props: switchProps,
3452
3473
  emits: ["change", "update:modelValue"],
3453
3474
  setup(props, {
3454
- emit
3475
+ emit,
3476
+ slots
3455
3477
  }) {
3456
3478
  const isChecked = () => props.modelValue === props.activeValue;
3457
3479
  const onClick = () => {
@@ -3469,6 +3491,9 @@
3469
3491
  "color": color
3470
3492
  }, null);
3471
3493
  }
3494
+ if (slots.node) {
3495
+ return slots.node();
3496
+ }
3472
3497
  };
3473
3498
  useCustomFieldValue(() => props.modelValue);
3474
3499
  return () => {
@@ -3580,10 +3605,8 @@
3580
3605
  province: "",
3581
3606
  areaCode: "",
3582
3607
  isDefault: false,
3583
- postalCode: "",
3584
3608
  addressDetail: ""
3585
3609
  };
3586
- const isPostal = (value) => /^\d{6}$/.test(value);
3587
3610
  const addressEditProps = {
3588
3611
  areaList: Object,
3589
3612
  isSaving: Boolean,
@@ -3592,7 +3615,6 @@
3592
3615
  showArea: truthProp,
3593
3616
  showDetail: truthProp,
3594
3617
  showDelete: Boolean,
3595
- showPostal: Boolean,
3596
3618
  disableArea: Boolean,
3597
3619
  searchResult: Array,
3598
3620
  telMaxlength: numericProp,
@@ -3611,10 +3633,6 @@
3611
3633
  telValidator: {
3612
3634
  type: Function,
3613
3635
  default: isMobile
3614
- },
3615
- postalValidator: {
3616
- type: Function,
3617
- default: isPostal
3618
3636
  }
3619
3637
  };
3620
3638
  var stdin_default$1g = vue.defineComponent({
@@ -3657,8 +3675,7 @@
3657
3675
  const rules = vue.computed(() => {
3658
3676
  const {
3659
3677
  validator,
3660
- telValidator,
3661
- postalValidator
3678
+ telValidator
3662
3679
  } = props;
3663
3680
  const makeRule = (name2, emptyMessage) => ({
3664
3681
  validator: (value) => {
@@ -3681,11 +3698,7 @@
3681
3698
  message: t$h("telInvalid")
3682
3699
  }],
3683
3700
  areaCode: [makeRule("areaCode", t$h("areaEmpty"))],
3684
- addressDetail: [makeRule("addressDetail", t$h("addressEmpty"))],
3685
- postalCode: [makeRule("addressDetail", t$h("postalEmpty")), {
3686
- validator: postalValidator,
3687
- message: t$h("postalEmpty")
3688
- }]
3701
+ addressDetail: [makeRule("addressDetail", t$h("addressEmpty"))]
3689
3702
  };
3690
3703
  });
3691
3704
  const onSave = () => emit("save", data);
@@ -3810,16 +3823,7 @@
3810
3823
  "onFocus": () => onFocus("addressDetail"),
3811
3824
  "onInput": onChangeDetail,
3812
3825
  "onSelectSearch": (event) => emit("selectSearch", event)
3813
- }, null), props.showPostal && vue.withDirectives(vue.createVNode(Field, {
3814
- "modelValue": data.postalCode,
3815
- "onUpdate:modelValue": ($event) => data.postalCode = $event,
3816
- "type": "tel",
3817
- "rules": rules.value.postalCode,
3818
- "label": t$h("postal"),
3819
- "maxlength": "6",
3820
- "placeholder": t$h("postal"),
3821
- "onFocus": () => onFocus("postalCode")
3822
- }, null), [[vue.vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
3826
+ }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
3823
3827
  "class": bem$15("buttons")
3824
3828
  }, [vue.createVNode(Button, {
3825
3829
  "block": true,
@@ -4378,6 +4382,7 @@
4378
4382
  slots
4379
4383
  }) {
4380
4384
  const style = vue.computed(() => {
4385
+ var _a;
4381
4386
  const {
4382
4387
  item,
4383
4388
  index,
@@ -4409,6 +4414,9 @@
4409
4414
  break;
4410
4415
  }
4411
4416
  }
4417
+ if (offset2 + (((_a = item.date) == null ? void 0 : _a.getDate()) || 1) > 28) {
4418
+ style2.marginBottom = 0;
4419
+ }
4412
4420
  return style2;
4413
4421
  });
4414
4422
  const onClick = () => {
@@ -4916,8 +4924,8 @@
4916
4924
  }
4917
4925
  raf(() => {
4918
4926
  bodyHeight = Math.floor(useRect(bodyRef).height);
4919
- scrollToCurrentDate();
4920
4927
  });
4928
+ scrollToCurrentDate();
4921
4929
  };
4922
4930
  const reset = (date = getInitialDate()) => {
4923
4931
  currentDate.value = date;
@@ -6061,7 +6069,7 @@
6061
6069
  const root = vue.ref();
6062
6070
  const navRef = vue.ref();
6063
6071
  const wrapRef = vue.ref();
6064
- const id = useId();
6072
+ const id = useId$1();
6065
6073
  const scroller = useScrollParent(root);
6066
6074
  const [titleRefs, setTitleRefs] = useRefs();
6067
6075
  const {
@@ -6228,6 +6236,7 @@
6228
6236
  }
6229
6237
  };
6230
6238
  const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$12, vue.mergeProps({
6239
+ "key": item.id,
6231
6240
  "id": `${id}-${index}`,
6232
6241
  "ref": setTitleRefs(index),
6233
6242
  "type": props.type,
@@ -6447,7 +6456,7 @@
6447
6456
  setup(props, {
6448
6457
  slots
6449
6458
  }) {
6450
- const id = useId();
6459
+ const id = useId$1();
6451
6460
  const inited = vue.ref(false);
6452
6461
  const {
6453
6462
  parent,
@@ -7817,14 +7826,328 @@
7817
7826
  }
7818
7827
  });
7819
7828
  const CouponCell = withInstall(stdin_default$K);
7820
- const [name$D, bem$C, t$8] = createNamespace("coupon-list");
7821
- const EMPTY_IMAGE = "https://img.yzcdn.cn/vant/coupon-empty.png";
7829
+ const getId = (num) => `van-empty-${num}`;
7830
+ const useId = (num) => `url(#${getId(num)})`;
7831
+ const renderStop = (color, offset2, opacity) => vue.createVNode("stop", {
7832
+ "stop-color": color,
7833
+ "offset": `${offset2}%`,
7834
+ "stop-opacity": opacity
7835
+ }, null);
7836
+ const renderStops = (fromColor, toColor) => [renderStop(fromColor, 0), renderStop(toColor, 100)];
7837
+ const renderShadow = (id) => [vue.createVNode("defs", null, [vue.createVNode("radialGradient", {
7838
+ "id": getId(id),
7839
+ "cx": "50%",
7840
+ "cy": "54%",
7841
+ "fx": "50%",
7842
+ "fy": "54%",
7843
+ "r": "297%",
7844
+ "gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
7845
+ }, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), vue.createVNode("ellipse", {
7846
+ "fill": useId(id),
7847
+ "opacity": ".8",
7848
+ "cx": "80",
7849
+ "cy": "140",
7850
+ "rx": "46",
7851
+ "ry": "8"
7852
+ }, null)];
7853
+ const renderBuilding = () => [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
7854
+ "id": getId("a"),
7855
+ "x1": "64%",
7856
+ "y1": "100%",
7857
+ "x2": "64%"
7858
+ }, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), vue.createVNode("g", {
7859
+ "opacity": ".8"
7860
+ }, [vue.createVNode("path", {
7861
+ "d": "M36 131V53H16v20H2v58h34z",
7862
+ "fill": useId("a")
7863
+ }, null), vue.createVNode("path", {
7864
+ "d": "M123 15h22v14h9v77h-31V15z",
7865
+ "fill": useId("a")
7866
+ }, null)])];
7867
+ const renderCloud = () => [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
7868
+ "id": getId("b"),
7869
+ "x1": "64%",
7870
+ "y1": "97%",
7871
+ "x2": "64%",
7872
+ "y2": "0%"
7873
+ }, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), vue.createVNode("g", {
7874
+ "opacity": ".8"
7875
+ }, [vue.createVNode("path", {
7876
+ "d": "M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",
7877
+ "fill": useId("b")
7878
+ }, null), vue.createVNode("path", {
7879
+ "d": "M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",
7880
+ "fill": useId("b")
7881
+ }, null)])];
7882
+ const renderNetwork = () => vue.createVNode("svg", {
7883
+ "viewBox": "0 0 160 160"
7884
+ }, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
7885
+ "id": getId(1),
7886
+ "x1": "64%",
7887
+ "y1": "100%",
7888
+ "x2": "64%"
7889
+ }, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), vue.createVNode("linearGradient", {
7890
+ "id": getId(2),
7891
+ "x1": "50%",
7892
+ "x2": "50%",
7893
+ "y2": "84%"
7894
+ }, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), vue.createVNode("linearGradient", {
7895
+ "id": getId(3),
7896
+ "x1": "100%",
7897
+ "x2": "100%",
7898
+ "y2": "100%"
7899
+ }, [renderStops("#EAEDF0", "#DCDEE0")]), vue.createVNode("radialGradient", {
7900
+ "id": getId(4),
7901
+ "cx": "50%",
7902
+ "cy": "0%",
7903
+ "fx": "50%",
7904
+ "fy": "0%",
7905
+ "r": "100%",
7906
+ "gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
7907
+ }, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), vue.createVNode("g", {
7908
+ "fill": "none"
7909
+ }, [renderBuilding(), vue.createVNode("path", {
7910
+ "fill": useId(4),
7911
+ "d": "M0 139h160v21H0z"
7912
+ }, null), vue.createVNode("path", {
7913
+ "d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
7914
+ "fill": useId(2)
7915
+ }, null), vue.createVNode("g", {
7916
+ "opacity": ".6",
7917
+ "stroke-linecap": "round",
7918
+ "stroke-width": "7"
7919
+ }, [vue.createVNode("path", {
7920
+ "d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
7921
+ "stroke": useId(3)
7922
+ }, null), vue.createVNode("path", {
7923
+ "d": "M53 36a34 34 0 0 0 0 48",
7924
+ "stroke": useId(3)
7925
+ }, null), vue.createVNode("path", {
7926
+ "d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
7927
+ "stroke": useId(3)
7928
+ }, null), vue.createVNode("path", {
7929
+ "d": "M106 84a34 34 0 0 0 0-48",
7930
+ "stroke": useId(3)
7931
+ }, null)]), vue.createVNode("g", {
7932
+ "transform": "translate(31 105)"
7933
+ }, [vue.createVNode("rect", {
7934
+ "fill": "#EBEDF0",
7935
+ "width": "98",
7936
+ "height": "34",
7937
+ "rx": "2"
7938
+ }, null), vue.createVNode("rect", {
7939
+ "fill": "#FFF",
7940
+ "x": "9",
7941
+ "y": "8",
7942
+ "width": "80",
7943
+ "height": "18",
7944
+ "rx": "1.1"
7945
+ }, null), vue.createVNode("rect", {
7946
+ "fill": "#EBEDF0",
7947
+ "x": "15",
7948
+ "y": "12",
7949
+ "width": "18",
7950
+ "height": "6",
7951
+ "rx": "1.1"
7952
+ }, null)])])]);
7953
+ const renderMaterial = () => vue.createVNode("svg", {
7954
+ "viewBox": "0 0 160 160"
7955
+ }, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
7956
+ "x1": "50%",
7957
+ "x2": "50%",
7958
+ "y2": "100%",
7959
+ "id": getId(5)
7960
+ }, [renderStops("#F2F3F5", "#DCDEE0")]), vue.createVNode("linearGradient", {
7961
+ "x1": "95%",
7962
+ "y1": "48%",
7963
+ "x2": "5.5%",
7964
+ "y2": "51%",
7965
+ "id": getId(6)
7966
+ }, [renderStops("#EAEDF1", "#DCDEE0")]), vue.createVNode("linearGradient", {
7967
+ "y1": "45%",
7968
+ "x2": "100%",
7969
+ "y2": "54%",
7970
+ "id": getId(7)
7971
+ }, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), vue.createVNode("g", {
7972
+ "transform": "translate(36 50)",
7973
+ "fill": "none"
7974
+ }, [vue.createVNode("g", {
7975
+ "transform": "translate(8)"
7976
+ }, [vue.createVNode("rect", {
7977
+ "fill": "#EBEDF0",
7978
+ "opacity": ".6",
7979
+ "x": "38",
7980
+ "y": "13",
7981
+ "width": "36",
7982
+ "height": "53",
7983
+ "rx": "2"
7984
+ }, null), vue.createVNode("rect", {
7985
+ "fill": useId(5),
7986
+ "width": "64",
7987
+ "height": "66",
7988
+ "rx": "2"
7989
+ }, null), vue.createVNode("rect", {
7990
+ "fill": "#FFF",
7991
+ "x": "6",
7992
+ "y": "6",
7993
+ "width": "52",
7994
+ "height": "55",
7995
+ "rx": "1"
7996
+ }, null), vue.createVNode("g", {
7997
+ "transform": "translate(15 17)",
7998
+ "fill": useId(6)
7999
+ }, [vue.createVNode("rect", {
8000
+ "width": "34",
8001
+ "height": "6",
8002
+ "rx": "1"
8003
+ }, null), vue.createVNode("path", {
8004
+ "d": "M0 14h34v6H0z"
8005
+ }, null), vue.createVNode("rect", {
8006
+ "y": "28",
8007
+ "width": "34",
8008
+ "height": "6",
8009
+ "rx": "1"
8010
+ }, null)])]), vue.createVNode("rect", {
8011
+ "fill": useId(7),
8012
+ "y": "61",
8013
+ "width": "88",
8014
+ "height": "28",
8015
+ "rx": "1"
8016
+ }, null), vue.createVNode("rect", {
8017
+ "fill": "#F7F8FA",
8018
+ "x": "29",
8019
+ "y": "72",
8020
+ "width": "30",
8021
+ "height": "6",
8022
+ "rx": "1"
8023
+ }, null)])]);
8024
+ const renderError = () => vue.createVNode("svg", {
8025
+ "viewBox": "0 0 160 160"
8026
+ }, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
8027
+ "x1": "50%",
8028
+ "x2": "50%",
8029
+ "y2": "100%",
8030
+ "id": getId(8)
8031
+ }, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), vue.createVNode("path", {
8032
+ "d": "m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",
8033
+ "fill": useId(8)
8034
+ }, null)]);
8035
+ const renderSearch = () => vue.createVNode("svg", {
8036
+ "viewBox": "0 0 160 160"
8037
+ }, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
8038
+ "x1": "50%",
8039
+ "y1": "100%",
8040
+ "x2": "50%",
8041
+ "id": getId(9)
8042
+ }, [renderStops("#EEE", "#D8D8D8")]), vue.createVNode("linearGradient", {
8043
+ "x1": "100%",
8044
+ "y1": "50%",
8045
+ "y2": "50%",
8046
+ "id": getId(10)
8047
+ }, [renderStops("#F2F3F5", "#DCDEE0")]), vue.createVNode("linearGradient", {
8048
+ "x1": "50%",
8049
+ "x2": "50%",
8050
+ "y2": "100%",
8051
+ "id": getId(11)
8052
+ }, [renderStops("#F2F3F5", "#DCDEE0")]), vue.createVNode("linearGradient", {
8053
+ "x1": "50%",
8054
+ "x2": "50%",
8055
+ "y2": "100%",
8056
+ "id": getId(12)
8057
+ }, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), vue.createVNode("g", {
8058
+ "transform": "rotate(-45 113 -4)",
8059
+ "fill": "none"
8060
+ }, [vue.createVNode("rect", {
8061
+ "fill": useId(9),
8062
+ "x": "24",
8063
+ "y": "52.8",
8064
+ "width": "5.8",
8065
+ "height": "19",
8066
+ "rx": "1"
8067
+ }, null), vue.createVNode("rect", {
8068
+ "fill": useId(10),
8069
+ "x": "22.1",
8070
+ "y": "67.3",
8071
+ "width": "9.9",
8072
+ "height": "28",
8073
+ "rx": "1"
8074
+ }, null), vue.createVNode("circle", {
8075
+ "stroke": useId(11),
8076
+ "stroke-width": "8",
8077
+ "cx": "27",
8078
+ "cy": "27",
8079
+ "r": "27"
8080
+ }, null), vue.createVNode("circle", {
8081
+ "fill": useId(12),
8082
+ "cx": "27",
8083
+ "cy": "27",
8084
+ "r": "16"
8085
+ }, null), vue.createVNode("path", {
8086
+ "d": "M37 7c-8 0-15 5-16 12",
8087
+ "stroke": useId(11),
8088
+ "stroke-width": "3",
8089
+ "opacity": ".5",
8090
+ "stroke-linecap": "round",
8091
+ "transform": "rotate(45 29 13)"
8092
+ }, null)])]);
8093
+ const [name$D, bem$C] = createNamespace("empty");
8094
+ const PRESET_IMAGES = {
8095
+ error: renderError,
8096
+ search: renderSearch,
8097
+ network: renderNetwork,
8098
+ default: renderMaterial
8099
+ };
8100
+ const emptyProps = {
8101
+ image: makeStringProp("default"),
8102
+ imageSize: [Number, String, Array],
8103
+ description: String
8104
+ };
8105
+ var stdin_default$J = vue.defineComponent({
8106
+ name: name$D,
8107
+ props: emptyProps,
8108
+ setup(props, {
8109
+ slots
8110
+ }) {
8111
+ const renderImage = () => {
8112
+ var _a;
8113
+ if (slots.image) {
8114
+ return slots.image();
8115
+ }
8116
+ return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES)) || vue.createVNode("img", {
8117
+ "src": props.image
8118
+ }, null);
8119
+ };
8120
+ const renderDescription = () => {
8121
+ const description = slots.description ? slots.description() : props.description;
8122
+ if (description) {
8123
+ return vue.createVNode("p", {
8124
+ "class": bem$C("description")
8125
+ }, [description]);
8126
+ }
8127
+ };
8128
+ const renderBottom = () => {
8129
+ if (slots.default) {
8130
+ return vue.createVNode("div", {
8131
+ "class": bem$C("bottom")
8132
+ }, [slots.default()]);
8133
+ }
8134
+ };
8135
+ return () => vue.createVNode("div", {
8136
+ "class": bem$C()
8137
+ }, [vue.createVNode("div", {
8138
+ "class": bem$C("image"),
8139
+ "style": getSizeStyle(props.imageSize)
8140
+ }, [renderImage()]), renderDescription(), renderBottom()]);
8141
+ }
8142
+ });
8143
+ const Empty = withInstall(stdin_default$J);
8144
+ const [name$C, bem$B, t$8] = createNamespace("coupon-list");
7822
8145
  const couponListProps = {
7823
8146
  code: makeStringProp(""),
7824
8147
  coupons: makeArrayProp(),
7825
8148
  currency: makeStringProp("\xA5"),
7826
8149
  showCount: truthProp,
7827
- emptyImage: makeStringProp(EMPTY_IMAGE),
8150
+ emptyImage: String,
7828
8151
  chosenCoupon: makeNumberProp(-1),
7829
8152
  enabledTitle: String,
7830
8153
  disabledTitle: String,
@@ -7839,8 +8162,8 @@
7839
8162
  exchangeButtonLoading: Boolean,
7840
8163
  exchangeButtonDisabled: Boolean
7841
8164
  };
7842
- var stdin_default$J = vue.defineComponent({
7843
- name: name$D,
8165
+ var stdin_default$I = vue.defineComponent({
8166
+ name: name$C,
7844
8167
  props: couponListProps,
7845
8168
  emits: ["change", "exchange", "update:code"],
7846
8169
  setup(props, {
@@ -7872,28 +8195,30 @@
7872
8195
  return (_a = couponRefs.value[index]) == null ? void 0 : _a.scrollIntoView();
7873
8196
  });
7874
8197
  };
7875
- const renderEmpty = () => vue.createVNode("div", {
7876
- "class": bem$C("empty")
7877
- }, [vue.createVNode("img", {
7878
- "src": props.emptyImage
7879
- }, null), vue.createVNode("p", null, [t$8("noCoupon")])]);
8198
+ const renderEmpty = () => vue.createVNode(Empty, {
8199
+ "image": props.emptyImage
8200
+ }, {
8201
+ default: () => [vue.createVNode("p", {
8202
+ "class": bem$B("empty-tip")
8203
+ }, [t$8("noCoupon")])]
8204
+ });
7880
8205
  const renderExchangeBar = () => {
7881
8206
  if (props.showExchangeBar) {
7882
8207
  return vue.createVNode("div", {
7883
8208
  "ref": barRef,
7884
- "class": bem$C("exchange-bar")
8209
+ "class": bem$B("exchange-bar")
7885
8210
  }, [vue.createVNode(Field, {
7886
8211
  "modelValue": currentCode.value,
7887
8212
  "onUpdate:modelValue": ($event) => currentCode.value = $event,
7888
8213
  "clearable": true,
7889
8214
  "border": false,
7890
- "class": bem$C("field"),
8215
+ "class": bem$B("field"),
7891
8216
  "placeholder": props.inputPlaceholder || t$8("placeholder"),
7892
8217
  "maxlength": "20"
7893
8218
  }, null), vue.createVNode(Button, {
7894
8219
  "plain": true,
7895
8220
  "type": "primary",
7896
- "class": bem$C("exchange"),
8221
+ "class": bem$B("exchange"),
7897
8222
  "text": props.exchangeButtonText || t$8("exchange"),
7898
8223
  "loading": props.exchangeButtonLoading,
7899
8224
  "disabled": buttonDisabled.value,
@@ -7913,7 +8238,7 @@
7913
8238
  default: () => {
7914
8239
  var _a;
7915
8240
  return [vue.createVNode("div", {
7916
- "class": bem$C("list", {
8241
+ "class": bem$B("list", {
7917
8242
  "with-bottom": props.showCloseButton
7918
8243
  }),
7919
8244
  "style": {
@@ -7942,7 +8267,7 @@
7942
8267
  default: () => {
7943
8268
  var _a;
7944
8269
  return [vue.createVNode("div", {
7945
- "class": bem$C("list", {
8270
+ "class": bem$B("list", {
7946
8271
  "with-bottom": props.showCloseButton
7947
8272
  }),
7948
8273
  "style": {
@@ -7969,28 +8294,28 @@
7969
8294
  });
7970
8295
  return () => vue.createVNode("div", {
7971
8296
  "ref": root,
7972
- "class": bem$C()
8297
+ "class": bem$B()
7973
8298
  }, [renderExchangeBar(), vue.createVNode(Tabs, {
7974
8299
  "active": activeTab.value,
7975
8300
  "onUpdate:active": ($event) => activeTab.value = $event,
7976
- "class": bem$C("tab")
8301
+ "class": bem$B("tab")
7977
8302
  }, {
7978
8303
  default: () => [renderCouponTab(), renderDisabledTab()]
7979
8304
  }), vue.createVNode("div", {
7980
- "class": bem$C("bottom")
8305
+ "class": bem$B("bottom")
7981
8306
  }, [vue.withDirectives(vue.createVNode(Button, {
7982
8307
  "round": true,
7983
8308
  "block": true,
7984
8309
  "type": "primary",
7985
- "class": bem$C("close"),
8310
+ "class": bem$B("close"),
7986
8311
  "text": props.closeButtonText || t$8("close"),
7987
8312
  "onClick": () => emit("change", -1)
7988
8313
  }, null), [[vue.vShow, props.showCloseButton]])])]);
7989
8314
  }
7990
8315
  });
7991
- const CouponList = withInstall(stdin_default$J);
8316
+ const CouponList = withInstall(stdin_default$I);
7992
8317
  const currentYear = new Date().getFullYear();
7993
- const [name$C] = createNamespace("date-picker");
8318
+ const [name$B] = createNamespace("date-picker");
7994
8319
  const datePickerProps = extend({}, sharedProps, {
7995
8320
  columnsType: {
7996
8321
  type: Array,
@@ -8007,8 +8332,8 @@
8007
8332
  validator: isDate
8008
8333
  }
8009
8334
  });
8010
- var stdin_default$I = vue.defineComponent({
8011
- name: name$C,
8335
+ var stdin_default$H = vue.defineComponent({
8336
+ name: name$B,
8012
8337
  props: datePickerProps,
8013
8338
  emits: ["confirm", "cancel", "change", "update:modelValue"],
8014
8339
  setup(props, {
@@ -8092,8 +8417,8 @@
8092
8417
  }, pick(props, pickerInheritKeys)), slots);
8093
8418
  }
8094
8419
  });
8095
- const DatePicker = withInstall(stdin_default$I);
8096
- const [name$B, bem$B, t$7] = createNamespace("dialog");
8420
+ const DatePicker = withInstall(stdin_default$H);
8421
+ const [name$A, bem$A, t$7] = createNamespace("dialog");
8097
8422
  const dialogProps = extend({}, popupSharedProps, {
8098
8423
  title: String,
8099
8424
  theme: String,
@@ -8114,8 +8439,8 @@
8114
8439
  closeOnClickOverlay: Boolean
8115
8440
  });
8116
8441
  const popupInheritKeys$1 = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
8117
- var stdin_default$H = vue.defineComponent({
8118
- name: name$B,
8442
+ var stdin_default$G = vue.defineComponent({
8443
+ name: name$A,
8119
8444
  props: dialogProps,
8120
8445
  emits: ["confirm", "cancel", "keydown", "update:show"],
8121
8446
  setup(props, {
@@ -8172,7 +8497,7 @@
8172
8497
  const title = slots.title ? slots.title() : props.title;
8173
8498
  if (title) {
8174
8499
  return vue.createVNode("div", {
8175
- "class": bem$B("header", {
8500
+ "class": bem$A("header", {
8176
8501
  isolated: !props.message && !slots.default
8177
8502
  })
8178
8503
  }, [title]);
@@ -8184,7 +8509,7 @@
8184
8509
  allowHtml,
8185
8510
  messageAlign
8186
8511
  } = props;
8187
- const classNames = bem$B("message", {
8512
+ const classNames = bem$A("message", {
8188
8513
  "has-title": hasTitle,
8189
8514
  [messageAlign]: messageAlign
8190
8515
  });
@@ -8202,7 +8527,7 @@
8202
8527
  const renderContent = () => {
8203
8528
  if (slots.default) {
8204
8529
  return vue.createVNode("div", {
8205
- "class": bem$B("content")
8530
+ "class": bem$A("content")
8206
8531
  }, [slots.default()]);
8207
8532
  }
8208
8533
  const {
@@ -8214,18 +8539,18 @@
8214
8539
  const hasTitle = !!(title || slots.title);
8215
8540
  return vue.createVNode("div", {
8216
8541
  "key": allowHtml ? 1 : 0,
8217
- "class": bem$B("content", {
8542
+ "class": bem$A("content", {
8218
8543
  isolated: !hasTitle
8219
8544
  })
8220
8545
  }, [renderMessage(hasTitle)]);
8221
8546
  }
8222
8547
  };
8223
8548
  const renderButtons = () => vue.createVNode("div", {
8224
- "class": [BORDER_TOP, bem$B("footer")]
8549
+ "class": [BORDER_TOP, bem$A("footer")]
8225
8550
  }, [props.showCancelButton && vue.createVNode(Button, {
8226
8551
  "size": "large",
8227
8552
  "text": props.cancelButtonText || t$7("cancel"),
8228
- "class": bem$B("cancel"),
8553
+ "class": bem$A("cancel"),
8229
8554
  "style": {
8230
8555
  color: props.cancelButtonColor
8231
8556
  },
@@ -8234,7 +8559,7 @@
8234
8559
  }, null), props.showConfirmButton && vue.createVNode(Button, {
8235
8560
  "size": "large",
8236
8561
  "text": props.confirmButtonText || t$7("confirm"),
8237
- "class": [bem$B("confirm"), {
8562
+ "class": [bem$A("confirm"), {
8238
8563
  [BORDER_LEFT]: props.showCancelButton
8239
8564
  }],
8240
8565
  "style": {
@@ -8244,19 +8569,19 @@
8244
8569
  "onClick": onConfirm
8245
8570
  }, null)]);
8246
8571
  const renderRoundButtons = () => vue.createVNode(ActionBar, {
8247
- "class": bem$B("footer")
8572
+ "class": bem$A("footer")
8248
8573
  }, {
8249
8574
  default: () => [props.showCancelButton && vue.createVNode(ActionBarButton, {
8250
8575
  "type": "warning",
8251
8576
  "text": props.cancelButtonText || t$7("cancel"),
8252
- "class": bem$B("cancel"),
8577
+ "class": bem$A("cancel"),
8253
8578
  "color": props.cancelButtonColor,
8254
8579
  "loading": loading.cancel,
8255
8580
  "onClick": onCancel
8256
8581
  }, null), props.showConfirmButton && vue.createVNode(ActionBarButton, {
8257
8582
  "type": "danger",
8258
8583
  "text": props.confirmButtonText || t$7("confirm"),
8259
- "class": bem$B("confirm"),
8584
+ "class": bem$A("confirm"),
8260
8585
  "color": props.confirmButtonColor,
8261
8586
  "loading": loading.confirm,
8262
8587
  "onClick": onConfirm
@@ -8279,7 +8604,7 @@
8279
8604
  return vue.createVNode(Popup, vue.mergeProps({
8280
8605
  "ref": root,
8281
8606
  "role": "dialog",
8282
- "class": [bem$B([theme]), className],
8607
+ "class": [bem$A([theme]), className],
8283
8608
  "style": {
8284
8609
  width: addUnit(width2)
8285
8610
  },
@@ -8301,7 +8626,7 @@
8301
8626
  state,
8302
8627
  toggle
8303
8628
  } = usePopupState();
8304
- return () => vue.createVNode(stdin_default$H, vue.mergeProps(state, {
8629
+ return () => vue.createVNode(stdin_default$G, vue.mergeProps(state, {
8305
8630
  "onUpdate:show": toggle
8306
8631
  }), null);
8307
8632
  }
@@ -8366,19 +8691,19 @@
8366
8691
  Dialog.resetDefaultOptions = () => {
8367
8692
  Dialog.currentOptions = extend({}, Dialog.defaultOptions);
8368
8693
  };
8369
- Dialog.Component = withInstall(stdin_default$H);
8694
+ Dialog.Component = withInstall(stdin_default$G);
8370
8695
  Dialog.install = (app) => {
8371
8696
  app.use(Dialog.Component);
8372
8697
  app.config.globalProperties.$dialog = Dialog;
8373
8698
  };
8374
- const [name$A, bem$A] = createNamespace("divider");
8699
+ const [name$z, bem$z] = createNamespace("divider");
8375
8700
  const dividerProps = {
8376
8701
  dashed: Boolean,
8377
8702
  hairline: truthProp,
8378
8703
  contentPosition: makeStringProp("center")
8379
8704
  };
8380
- var stdin_default$G = vue.defineComponent({
8381
- name: name$A,
8705
+ var stdin_default$F = vue.defineComponent({
8706
+ name: name$z,
8382
8707
  props: dividerProps,
8383
8708
  setup(props, {
8384
8709
  slots
@@ -8387,7 +8712,7 @@
8387
8712
  var _a;
8388
8713
  return vue.createVNode("div", {
8389
8714
  "role": "separator",
8390
- "class": bem$A({
8715
+ "class": bem$z({
8391
8716
  dashed: props.dashed,
8392
8717
  hairline: props.hairline,
8393
8718
  [`content-${props.contentPosition}`]: !!slots.default
@@ -8396,8 +8721,8 @@
8396
8721
  };
8397
8722
  }
8398
8723
  });
8399
- const Divider = withInstall(stdin_default$G);
8400
- const [name$z, bem$z] = createNamespace("dropdown-menu");
8724
+ const Divider = withInstall(stdin_default$F);
8725
+ const [name$y, bem$y] = createNamespace("dropdown-menu");
8401
8726
  const dropdownMenuProps = {
8402
8727
  overlay: truthProp,
8403
8728
  zIndex: numericProp,
@@ -8407,14 +8732,14 @@
8407
8732
  closeOnClickOutside: truthProp,
8408
8733
  closeOnClickOverlay: truthProp
8409
8734
  };
8410
- const DROPDOWN_KEY = Symbol(name$z);
8411
- var stdin_default$F = vue.defineComponent({
8412
- name: name$z,
8735
+ const DROPDOWN_KEY = Symbol(name$y);
8736
+ var stdin_default$E = vue.defineComponent({
8737
+ name: name$y,
8413
8738
  props: dropdownMenuProps,
8414
8739
  setup(props, {
8415
8740
  slots
8416
8741
  }) {
8417
- const id = useId();
8742
+ const id = useId$1();
8418
8743
  const root = vue.ref();
8419
8744
  const barRef = vue.ref();
8420
8745
  const offset2 = vue.ref(0);
@@ -8477,7 +8802,7 @@
8477
8802
  "id": `${id}-${index}`,
8478
8803
  "role": "button",
8479
8804
  "tabindex": disabled ? void 0 : 0,
8480
- "class": [bem$z("item", {
8805
+ "class": [bem$y("item", {
8481
8806
  disabled
8482
8807
  }), {
8483
8808
  [HAPTICS_FEEDBACK]: !disabled
@@ -8488,7 +8813,7 @@
8488
8813
  }
8489
8814
  }
8490
8815
  }, [vue.createVNode("span", {
8491
- "class": [bem$z("title", {
8816
+ "class": [bem$y("title", {
8492
8817
  down: showPopup === (props.direction === "down"),
8493
8818
  active: showPopup
8494
8819
  }), titleClass],
@@ -8512,18 +8837,18 @@
8512
8837
  var _a;
8513
8838
  return vue.createVNode("div", {
8514
8839
  "ref": root,
8515
- "class": bem$z()
8840
+ "class": bem$y()
8516
8841
  }, [vue.createVNode("div", {
8517
8842
  "ref": barRef,
8518
8843
  "style": barStyle.value,
8519
- "class": bem$z("bar", {
8844
+ "class": bem$y("bar", {
8520
8845
  opened: opened.value
8521
8846
  })
8522
8847
  }, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
8523
8848
  };
8524
8849
  }
8525
8850
  });
8526
- const [name$y, bem$y] = createNamespace("dropdown-item");
8851
+ const [name$x, bem$x] = createNamespace("dropdown-item");
8527
8852
  const dropdownItemProps = {
8528
8853
  title: String,
8529
8854
  options: makeArrayProp(),
@@ -8533,8 +8858,8 @@
8533
8858
  modelValue: unknownProp,
8534
8859
  titleClass: unknownProp
8535
8860
  };
8536
- var stdin_default$E = vue.defineComponent({
8537
- name: name$y,
8861
+ var stdin_default$D = vue.defineComponent({
8862
+ name: name$x,
8538
8863
  props: dropdownItemProps,
8539
8864
  emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
8540
8865
  setup(props, {
@@ -8601,7 +8926,7 @@
8601
8926
  const renderIcon = () => {
8602
8927
  if (active) {
8603
8928
  return vue.createVNode(Icon, {
8604
- "class": bem$y("icon"),
8929
+ "class": bem$x("icon"),
8605
8930
  "color": activeColor,
8606
8931
  "name": "success"
8607
8932
  }, null);
@@ -8612,7 +8937,7 @@
8612
8937
  "key": option.value,
8613
8938
  "icon": option.icon,
8614
8939
  "title": option.text,
8615
- "class": bem$y("option", {
8940
+ "class": bem$x("option", {
8616
8941
  active
8617
8942
  }),
8618
8943
  "style": {
@@ -8644,13 +8969,13 @@
8644
8969
  }
8645
8970
  return vue.withDirectives(vue.createVNode("div", {
8646
8971
  "style": style,
8647
- "class": bem$y([direction]),
8972
+ "class": bem$x([direction]),
8648
8973
  "onClick": onClickWrapper
8649
8974
  }, [vue.createVNode(Popup, {
8650
8975
  "show": state.showPopup,
8651
8976
  "onUpdate:show": ($event) => state.showPopup = $event,
8652
8977
  "role": "menu",
8653
- "class": bem$y("content"),
8978
+ "class": bem$x("content"),
8654
8979
  "overlay": overlay,
8655
8980
  "position": direction === "down" ? "top" : "bottom",
8656
8981
  "duration": state.transition ? duration : 0,
@@ -8688,147 +9013,8 @@
8688
9013
  };
8689
9014
  }
8690
9015
  });
8691
- const DropdownItem = withInstall(stdin_default$E);
8692
- const DropdownMenu = withInstall(stdin_default$F);
8693
- const prefix = "van-empty-network-";
8694
- const renderStop = (color, offset2, opacity) => vue.createVNode("stop", {
8695
- "stop-color": color,
8696
- "offset": `${offset2}%`,
8697
- "stop-opacity": opacity
8698
- }, null);
8699
- const Network = vue.createVNode("svg", {
8700
- "viewBox": "0 0 160 160"
8701
- }, [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
8702
- "id": `${prefix}1`,
8703
- "x1": "64%",
8704
- "y1": "100%",
8705
- "x2": "64%"
8706
- }, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), vue.createVNode("linearGradient", {
8707
- "id": `${prefix}2`,
8708
- "x1": "50%",
8709
- "x2": "50%",
8710
- "y2": "84%"
8711
- }, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), vue.createVNode("linearGradient", {
8712
- "id": `${prefix}3`,
8713
- "x1": "100%",
8714
- "x2": "100%",
8715
- "y2": "100%"
8716
- }, [renderStop("#EAEDF0", 0), renderStop("#DCDEE0", 100)]), vue.createVNode("radialGradient", {
8717
- "id": `${prefix}4`,
8718
- "cx": "50%",
8719
- "cy": "0%",
8720
- "fx": "50%",
8721
- "fy": "0%",
8722
- "r": "100%",
8723
- "gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
8724
- }, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), vue.createVNode("g", {
8725
- "fill": "none"
8726
- }, [vue.createVNode("g", {
8727
- "opacity": ".8"
8728
- }, [vue.createVNode("path", {
8729
- "d": "M36 131V53H16v20H2v58h34z",
8730
- "fill": `url(#${prefix}1)`
8731
- }, null), vue.createVNode("path", {
8732
- "d": "M123 15h22v14h9v77h-31V15z",
8733
- "fill": `url(#${prefix}1)`
8734
- }, null)]), vue.createVNode("path", {
8735
- "fill": `url(#${prefix}4)`,
8736
- "d": "M0 139h160v21H0z"
8737
- }, null), vue.createVNode("path", {
8738
- "d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
8739
- "fill": `url(#${prefix}2)`
8740
- }, null), vue.createVNode("g", {
8741
- "opacity": ".6",
8742
- "stroke-linecap": "round",
8743
- "stroke-width": "7"
8744
- }, [vue.createVNode("path", {
8745
- "d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
8746
- "stroke": `url(#${prefix}3)`
8747
- }, null), vue.createVNode("path", {
8748
- "d": "M53 36a34 34 0 0 0 0 48",
8749
- "stroke": `url(#${prefix}3)`
8750
- }, null), vue.createVNode("path", {
8751
- "d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
8752
- "stroke": `url(#${prefix}3)`
8753
- }, null), vue.createVNode("path", {
8754
- "d": "M106 84a34 34 0 0 0 0-48",
8755
- "stroke": `url(#${prefix}3)`
8756
- }, null)]), vue.createVNode("g", {
8757
- "transform": "translate(31 105)"
8758
- }, [vue.createVNode("rect", {
8759
- "fill": "#EBEDF0",
8760
- "width": "98",
8761
- "height": "34",
8762
- "rx": "2"
8763
- }, null), vue.createVNode("rect", {
8764
- "fill": "#FFF",
8765
- "x": "9",
8766
- "y": "8",
8767
- "width": "80",
8768
- "height": "18",
8769
- "rx": "1.1"
8770
- }, null), vue.createVNode("rect", {
8771
- "fill": "#EBEDF0",
8772
- "x": "15",
8773
- "y": "12",
8774
- "width": "18",
8775
- "height": "6",
8776
- "rx": "1.1"
8777
- }, null)])])]);
8778
- const [name$x, bem$x] = createNamespace("empty");
8779
- const PRESET_IMAGES = ["error", "search", "default"];
8780
- const emptyProps = {
8781
- image: makeStringProp("default"),
8782
- imageSize: numericProp,
8783
- description: String
8784
- };
8785
- var stdin_default$D = vue.defineComponent({
8786
- name: name$x,
8787
- props: emptyProps,
8788
- setup(props, {
8789
- slots
8790
- }) {
8791
- const renderImage = () => {
8792
- if (slots.image) {
8793
- return slots.image();
8794
- }
8795
- let {
8796
- image
8797
- } = props;
8798
- if (image === "network") {
8799
- return Network;
8800
- }
8801
- if (PRESET_IMAGES.includes(image)) {
8802
- image = `https://img.yzcdn.cn/vant/empty-image-${image}.png`;
8803
- }
8804
- return vue.createVNode("img", {
8805
- "src": image
8806
- }, null);
8807
- };
8808
- const renderDescription = () => {
8809
- const description = slots.description ? slots.description() : props.description;
8810
- if (description) {
8811
- return vue.createVNode("p", {
8812
- "class": bem$x("description")
8813
- }, [description]);
8814
- }
8815
- };
8816
- const renderBottom = () => {
8817
- if (slots.default) {
8818
- return vue.createVNode("div", {
8819
- "class": bem$x("bottom")
8820
- }, [slots.default()]);
8821
- }
8822
- };
8823
- return () => vue.createVNode("div", {
8824
- "class": bem$x()
8825
- }, [vue.createVNode("div", {
8826
- "class": bem$x("image"),
8827
- "style": getSizeStyle(props.imageSize)
8828
- }, [renderImage()]), renderDescription(), renderBottom()]);
8829
- }
8830
- });
8831
- const Empty = withInstall(stdin_default$D);
9016
+ const DropdownItem = withInstall(stdin_default$D);
9017
+ const DropdownMenu = withInstall(stdin_default$E);
8832
9018
  const [name$w, bem$w] = createNamespace("grid");
8833
9019
  const gridProps = {
8834
9020
  square: Boolean,
@@ -10322,6 +10508,15 @@
10322
10508
  default: ""
10323
10509
  }
10324
10510
  };
10511
+ function shuffle(array) {
10512
+ for (let i = array.length - 1; i > 0; i--) {
10513
+ const j = Math.floor(Math.random() * (i + 1));
10514
+ const temp = array[i];
10515
+ array[i] = array[j];
10516
+ array[j] = temp;
10517
+ }
10518
+ return array;
10519
+ }
10325
10520
  var stdin_default$r = vue.defineComponent({
10326
10521
  name: name$m,
10327
10522
  props: numberKeyboardProps,
@@ -10336,7 +10531,7 @@
10336
10531
  text: i + 1
10337
10532
  }));
10338
10533
  if (props.randomKeyOrder) {
10339
- keys2.sort(() => Math.random() > 0.5 ? 1 : -1);
10534
+ shuffle(keys2);
10340
10535
  }
10341
10536
  return keys2;
10342
10537
  };
@@ -10724,21 +10919,6 @@
10724
10919
  }
10725
10920
  });
10726
10921
  const PasswordInput = withInstall(stdin_default$p);
10727
- function getBoundingClientRect(element, includeScale) {
10728
- var rect = element.getBoundingClientRect();
10729
- var scaleX = 1;
10730
- var scaleY = 1;
10731
- return {
10732
- width: rect.width / scaleX,
10733
- height: rect.height / scaleY,
10734
- top: rect.top / scaleY,
10735
- right: rect.right / scaleX,
10736
- bottom: rect.bottom / scaleY,
10737
- left: rect.left / scaleX,
10738
- x: rect.left / scaleX,
10739
- y: rect.top / scaleY
10740
- };
10741
- }
10742
10922
  function getWindow(node) {
10743
10923
  if (node == null) {
10744
10924
  return window;
@@ -10749,15 +10929,6 @@
10749
10929
  }
10750
10930
  return node;
10751
10931
  }
10752
- function getWindowScroll(node) {
10753
- var win = getWindow(node);
10754
- var scrollLeft = win.pageXOffset;
10755
- var scrollTop = win.pageYOffset;
10756
- return {
10757
- scrollLeft,
10758
- scrollTop
10759
- };
10760
- }
10761
10932
  function isElement(node) {
10762
10933
  var OwnElement = getWindow(node).Element;
10763
10934
  return node instanceof OwnElement || node instanceof Element;
@@ -10773,6 +10944,44 @@
10773
10944
  var OwnElement = getWindow(node).ShadowRoot;
10774
10945
  return node instanceof OwnElement || node instanceof ShadowRoot;
10775
10946
  }
10947
+ var round = Math.round;
10948
+ function getBoundingClientRect(element, includeScale) {
10949
+ if (includeScale === void 0) {
10950
+ includeScale = false;
10951
+ }
10952
+ var rect = element.getBoundingClientRect();
10953
+ var scaleX = 1;
10954
+ var scaleY = 1;
10955
+ if (isHTMLElement(element) && includeScale) {
10956
+ var offsetHeight = element.offsetHeight;
10957
+ var offsetWidth = element.offsetWidth;
10958
+ if (offsetWidth > 0) {
10959
+ scaleX = round(rect.width) / offsetWidth || 1;
10960
+ }
10961
+ if (offsetHeight > 0) {
10962
+ scaleY = round(rect.height) / offsetHeight || 1;
10963
+ }
10964
+ }
10965
+ return {
10966
+ width: rect.width / scaleX,
10967
+ height: rect.height / scaleY,
10968
+ top: rect.top / scaleY,
10969
+ right: rect.right / scaleX,
10970
+ bottom: rect.bottom / scaleY,
10971
+ left: rect.left / scaleX,
10972
+ x: rect.left / scaleX,
10973
+ y: rect.top / scaleY
10974
+ };
10975
+ }
10976
+ function getWindowScroll(node) {
10977
+ var win = getWindow(node);
10978
+ var scrollLeft = win.pageXOffset;
10979
+ var scrollTop = win.pageYOffset;
10980
+ return {
10981
+ scrollLeft,
10982
+ scrollTop
10983
+ };
10984
+ }
10776
10985
  function getHTMLElementScroll(element) {
10777
10986
  return {
10778
10987
  scrollLeft: element.scrollLeft,
@@ -10804,8 +11013,8 @@
10804
11013
  }
10805
11014
  function isElementScaled(element) {
10806
11015
  var rect = element.getBoundingClientRect();
10807
- var scaleX = rect.width / element.offsetWidth || 1;
10808
- var scaleY = rect.height / element.offsetHeight || 1;
11016
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
11017
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
10809
11018
  return scaleX !== 1 || scaleY !== 1;
10810
11019
  }
10811
11020
  function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
@@ -10813,9 +11022,9 @@
10813
11022
  isFixed = false;
10814
11023
  }
10815
11024
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
10816
- isHTMLElement(offsetParent) && isElementScaled(offsetParent);
11025
+ var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
10817
11026
  var documentElement = getDocumentElement(offsetParent);
10818
- var rect = getBoundingClientRect(elementOrVirtualElement);
11027
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
10819
11028
  var scroll = {
10820
11029
  scrollLeft: 0,
10821
11030
  scrollTop: 0
@@ -10829,7 +11038,7 @@
10829
11038
  scroll = getNodeScroll(offsetParent);
10830
11039
  }
10831
11040
  if (isHTMLElement(offsetParent)) {
10832
- offsets = getBoundingClientRect(offsetParent);
11041
+ offsets = getBoundingClientRect(offsetParent, true);
10833
11042
  offsets.x += offsetParent.clientLeft;
10834
11043
  offsets.y += offsetParent.clientTop;
10835
11044
  } else if (documentElement) {
@@ -10906,6 +11115,9 @@
10906
11115
  }
10907
11116
  }
10908
11117
  var currentNode = getParentNode(element);
11118
+ if (isShadowRoot(currentNode)) {
11119
+ currentNode = currentNode.host;
11120
+ }
10909
11121
  while (isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
10910
11122
  var css = getComputedStyle(currentNode);
10911
11123
  if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === "filter" || isFirefox && css.filter && css.filter !== "none") {
@@ -11093,7 +11305,6 @@
11093
11305
  return merged[key];
11094
11306
  });
11095
11307
  }
11096
- var round = Math.round;
11097
11308
  function getVariation(placement) {
11098
11309
  return placement.split("-")[1];
11099
11310
  }
@@ -11384,14 +11595,23 @@
11384
11595
  var win = window;
11385
11596
  var dpr = win.devicePixelRatio || 1;
11386
11597
  return {
11387
- x: round(round(x * dpr) / dpr) || 0,
11388
- y: round(round(y * dpr) / dpr) || 0
11598
+ x: round(x * dpr) / dpr || 0,
11599
+ y: round(y * dpr) / dpr || 0
11389
11600
  };
11390
11601
  }
11391
11602
  function mapToStyles(_ref2) {
11392
11603
  var _Object$assign2;
11393
- var popper = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets;
11394
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === "function" ? roundOffsets(offsets) : offsets, _ref3$x = _ref3.x, x = _ref3$x === void 0 ? 0 : _ref3$x, _ref3$y = _ref3.y, y = _ref3$y === void 0 ? 0 : _ref3$y;
11604
+ var popper = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
11605
+ var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y = _offsets$y === void 0 ? 0 : _offsets$y;
11606
+ var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
11607
+ x,
11608
+ y
11609
+ }) : {
11610
+ x,
11611
+ y
11612
+ };
11613
+ x = _ref3.x;
11614
+ y = _ref3.y;
11395
11615
  var hasX = offsets.hasOwnProperty("x");
11396
11616
  var hasY = offsets.hasOwnProperty("y");
11397
11617
  var sideX = left;
@@ -11411,26 +11631,37 @@
11411
11631
  offsetParent = offsetParent;
11412
11632
  if (placement === top || (placement === left || placement === right) && variation === end) {
11413
11633
  sideY = bottom;
11414
- y -= offsetParent[heightProp] - popperRect.height;
11634
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : offsetParent[heightProp];
11635
+ y -= offsetY - popperRect.height;
11415
11636
  y *= gpuAcceleration ? 1 : -1;
11416
11637
  }
11417
11638
  if (placement === left || (placement === top || placement === bottom) && variation === end) {
11418
11639
  sideX = right;
11419
- x -= offsetParent[widthProp] - popperRect.width;
11640
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : offsetParent[widthProp];
11641
+ x -= offsetX - popperRect.width;
11420
11642
  x *= gpuAcceleration ? 1 : -1;
11421
11643
  }
11422
11644
  }
11423
11645
  var commonStyles = Object.assign({
11424
11646
  position
11425
11647
  }, adaptive && unsetSides);
11648
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
11649
+ x,
11650
+ y
11651
+ }) : {
11652
+ x,
11653
+ y
11654
+ };
11655
+ x = _ref4.x;
11656
+ y = _ref4.y;
11426
11657
  if (gpuAcceleration) {
11427
11658
  var _Object$assign;
11428
11659
  return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
11429
11660
  }
11430
11661
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
11431
11662
  }
11432
- function computeStyles(_ref4) {
11433
- var state = _ref4.state, options = _ref4.options;
11663
+ function computeStyles(_ref5) {
11664
+ var state = _ref5.state, options = _ref5.options;
11434
11665
  var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
11435
11666
  {
11436
11667
  var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || "";
@@ -11445,7 +11676,8 @@
11445
11676
  variation: getVariation(state.placement),
11446
11677
  popper: state.elements.popper,
11447
11678
  popperRect: state.rects.popper,
11448
- gpuAcceleration
11679
+ gpuAcceleration,
11680
+ isFixed: state.options.strategy === "fixed"
11449
11681
  };
11450
11682
  if (state.modifiersData.popperOffsets != null) {
11451
11683
  state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
@@ -12048,33 +12280,53 @@
12048
12280
  }) {
12049
12281
  const touch = useTouch();
12050
12282
  const [itemRefs, setItemRefs] = useRefs();
12283
+ const groupRef = vue.ref();
12051
12284
  const untouchable = () => props.readonly || props.disabled || !props.touchable;
12052
12285
  const list = vue.computed(() => Array(+props.count).fill("").map((_, i) => getRateStatus(props.modelValue, i + 1, props.allowHalf, props.readonly)));
12053
12286
  let ranges;
12287
+ let groupRefRect;
12288
+ let minRectTop = Number.MAX_SAFE_INTEGER;
12289
+ let maxRectTop = Number.MIN_SAFE_INTEGER;
12054
12290
  const updateRanges = () => {
12291
+ groupRefRect = useRect(groupRef);
12055
12292
  const rects = itemRefs.value.map(useRect);
12056
12293
  ranges = [];
12057
12294
  rects.forEach((rect, index) => {
12295
+ minRectTop = Math.min(rect.top, minRectTop);
12296
+ maxRectTop = Math.max(rect.top, maxRectTop);
12058
12297
  if (props.allowHalf) {
12059
12298
  ranges.push({
12060
12299
  score: index + 0.5,
12061
- left: rect.left
12300
+ left: rect.left,
12301
+ top: rect.top,
12302
+ height: rect.height
12062
12303
  }, {
12063
12304
  score: index + 1,
12064
- left: rect.left + rect.width / 2
12305
+ left: rect.left + rect.width / 2,
12306
+ top: rect.top,
12307
+ height: rect.height
12065
12308
  });
12066
12309
  } else {
12067
12310
  ranges.push({
12068
12311
  score: index + 1,
12069
- left: rect.left
12312
+ left: rect.left,
12313
+ top: rect.top,
12314
+ height: rect.height
12070
12315
  });
12071
12316
  }
12072
12317
  });
12073
12318
  };
12074
- const getScoreByPosition = (x) => {
12319
+ const getScoreByPosition = (x, y) => {
12075
12320
  for (let i = ranges.length - 1; i > 0; i--) {
12076
- if (x > ranges[i].left) {
12077
- return ranges[i].score;
12321
+ if (y >= groupRefRect.top && y <= groupRefRect.bottom) {
12322
+ if (x > ranges[i].left && y >= ranges[i].top && y <= ranges[i].top + ranges[i].height) {
12323
+ return ranges[i].score;
12324
+ }
12325
+ } else {
12326
+ const curTop = y < groupRefRect.top ? minRectTop : maxRectTop;
12327
+ if (x > ranges[i].left && ranges[i].top === curTop) {
12328
+ return ranges[i].score;
12329
+ }
12078
12330
  }
12079
12331
  }
12080
12332
  return props.allowHalf ? 0.5 : 1;
@@ -12099,10 +12351,11 @@
12099
12351
  touch.move(event);
12100
12352
  if (touch.isHorizontal()) {
12101
12353
  const {
12102
- clientX
12354
+ clientX,
12355
+ clientY
12103
12356
  } = event.touches[0];
12104
12357
  preventDefault(event);
12105
- select(getScoreByPosition(clientX));
12358
+ select(getScoreByPosition(clientX, clientY));
12106
12359
  }
12107
12360
  };
12108
12361
  const renderStar = (item, index) => {
@@ -12131,7 +12384,7 @@
12131
12384
  }
12132
12385
  const onClickItem = (event) => {
12133
12386
  updateRanges();
12134
- select(allowHalf ? getScoreByPosition(event.clientX) : score);
12387
+ select(allowHalf ? getScoreByPosition(event.clientX, event.clientY) : score);
12135
12388
  };
12136
12389
  return vue.createVNode("div", {
12137
12390
  "key": index,
@@ -12169,6 +12422,7 @@
12169
12422
  };
12170
12423
  useCustomFieldValue(() => props.modelValue);
12171
12424
  return () => vue.createVNode("div", {
12425
+ "ref": groupRef,
12172
12426
  "role": "radiogroup",
12173
12427
  "class": bem$f({
12174
12428
  readonly: props.readonly,
@@ -12203,7 +12457,7 @@
12203
12457
  slots,
12204
12458
  attrs
12205
12459
  }) {
12206
- const id = useId();
12460
+ const id = useId$1();
12207
12461
  const filedRef = vue.ref();
12208
12462
  const onCancel = () => {
12209
12463
  if (!slots.action) {
@@ -12293,14 +12547,17 @@
12293
12547
  }
12294
12548
  });
12295
12549
  const Search = withInstall(stdin_default$k);
12296
- const PRESET_ICONS = ["qq", "link", "weibo", "wechat", "poster", "qrcode", "weapp-qrcode", "wechat-moments"];
12297
12550
  const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
12298
- function getIconURL(icon) {
12299
- if (PRESET_ICONS.includes(icon)) {
12300
- return `https://img.yzcdn.cn/vant/share-sheet-${icon}.png`;
12301
- }
12302
- return icon;
12303
- }
12551
+ const iconMap = {
12552
+ qq: "qq",
12553
+ link: "link-o",
12554
+ weibo: "weibo",
12555
+ qrcode: "qr",
12556
+ poster: "photo-o",
12557
+ wechat: "wechat",
12558
+ "weapp-qrcode": "miniprogram-o",
12559
+ "wechat-moments": "wechat-moments"
12560
+ };
12304
12561
  const [name$e, bem$d, t$2] = createNamespace("share-sheet");
12305
12562
  const shareSheetProps = extend({}, popupSharedProps, {
12306
12563
  title: String,
@@ -12338,6 +12595,19 @@
12338
12595
  }, [description])]);
12339
12596
  }
12340
12597
  };
12598
+ const renderIcon = (icon) => {
12599
+ if (iconMap[icon]) {
12600
+ return vue.createVNode("div", {
12601
+ "class": bem$d("icon", [icon])
12602
+ }, [vue.createVNode(Icon, {
12603
+ "name": iconMap[icon] || icon
12604
+ }, null)]);
12605
+ }
12606
+ return vue.createVNode("img", {
12607
+ "src": icon,
12608
+ "class": bem$d("image-icon")
12609
+ }, null);
12610
+ };
12341
12611
  const renderOption = (option, index) => {
12342
12612
  const {
12343
12613
  name: name2,
@@ -12350,10 +12620,7 @@
12350
12620
  "tabindex": 0,
12351
12621
  "class": [bem$d("option"), className, HAPTICS_FEEDBACK],
12352
12622
  "onClick": () => onSelect(option, index)
12353
- }, [vue.createVNode("img", {
12354
- "src": getIconURL(icon),
12355
- "class": bem$d("icon")
12356
- }, null), name2 && vue.createVNode("span", {
12623
+ }, [renderIcon(icon), name2 && vue.createVNode("span", {
12357
12624
  "class": bem$d("name")
12358
12625
  }, [name2]), description && vue.createVNode("span", {
12359
12626
  "class": bem$d("option-description")
@@ -13808,7 +14075,6 @@
13808
14075
  });
13809
14076
  const TreeSelect = withInstall(stdin_default$6);
13810
14077
  const [name, bem, t] = createNamespace("uploader");
13811
- const toArray = (item) => Array.isArray(item) ? item : [item];
13812
14078
  function readFileContent(file, resultType) {
13813
14079
  return new Promise((resolve) => {
13814
14080
  if (resultType === "file") {
@@ -13874,7 +14140,7 @@
13874
14140
  imageFit: String,
13875
14141
  lazyLoad: Boolean,
13876
14142
  deletable: Boolean,
13877
- previewSize: numericProp,
14143
+ previewSize: [Number, String, Array],
13878
14144
  beforeDelete: Function
13879
14145
  },
13880
14146
  emits: ["delete", "preview"],
@@ -13921,13 +14187,16 @@
13921
14187
  const onPreview = () => emit("preview");
13922
14188
  const renderDeleteIcon = () => {
13923
14189
  if (props.deletable && props.item.status !== "uploading") {
14190
+ const slot = slots["preview-delete"];
13924
14191
  return vue.createVNode("div", {
13925
14192
  "role": "button",
13926
- "class": bem("preview-delete"),
14193
+ "class": bem("preview-delete", {
14194
+ shadow: !slot
14195
+ }),
13927
14196
  "tabindex": 0,
13928
14197
  "aria-label": t("delete"),
13929
14198
  "onClick": onDelete
13930
- }, [vue.createVNode(Icon, {
14199
+ }, [slot ? slot() : vue.createVNode(Icon, {
13931
14200
  "name": "cross",
13932
14201
  "class": bem("preview-delete-icon")
13933
14202
  }, null)]);
@@ -13948,16 +14217,19 @@
13948
14217
  };
13949
14218
  const renderPreview = () => {
13950
14219
  const {
13951
- item
14220
+ item,
14221
+ lazyLoad,
14222
+ imageFit,
14223
+ previewSize
13952
14224
  } = props;
13953
14225
  if (isImageFile(item)) {
13954
14226
  return vue.createVNode(Image$1, {
13955
- "fit": props.imageFit,
14227
+ "fit": imageFit,
13956
14228
  "src": item.content || item.url,
13957
14229
  "class": bem("preview-image"),
13958
- "width": props.previewSize,
13959
- "height": props.previewSize,
13960
- "lazyLoad": props.lazyLoad,
14230
+ "width": Array.isArray(previewSize) ? previewSize[0] : previewSize,
14231
+ "height": Array.isArray(previewSize) ? previewSize[1] : previewSize,
14232
+ "lazyLoad": lazyLoad,
13961
14233
  "onClick": onPreview
13962
14234
  }, {
13963
14235
  default: renderCover
@@ -13997,7 +14269,7 @@
13997
14269
  modelValue: makeArrayProp(),
13998
14270
  beforeRead: Function,
13999
14271
  beforeDelete: Function,
14000
- previewSize: numericProp,
14272
+ previewSize: [Number, String, Array],
14001
14273
  previewImage: truthProp,
14002
14274
  previewOptions: Object,
14003
14275
  previewFullImage: truthProp,
@@ -14151,9 +14423,7 @@
14151
14423
  "onClick": () => emit("clickPreview", item, getDetail(index)),
14152
14424
  "onDelete": () => deleteFile(item, index),
14153
14425
  "onPreview": () => previewImage(item)
14154
- }, pick(props, ["name", "lazyLoad"]), previewData), {
14155
- "preview-cover": slots["preview-cover"]
14156
- });
14426
+ }, pick(props, ["name", "lazyLoad"]), previewData), pick(slots, ["preview-cover", "preview-delete"]));
14157
14427
  };
14158
14428
  const renderPreviewList = () => {
14159
14429
  if (props.previewImage) {
@@ -15064,7 +15334,7 @@
15064
15334
  });
15065
15335
  }
15066
15336
  };
15067
- const version = "4.0.0-alpha.1";
15337
+ const version = "4.0.0-alpha.4";
15068
15338
  function install(app) {
15069
15339
  const components = [
15070
15340
  ActionBar,
@@ -15256,6 +15526,5 @@
15256
15526
  exports2["default"] = stdin_default;
15257
15527
  exports2.install = install;
15258
15528
  exports2.version = version;
15259
- Object.defineProperty(exports2, "__esModule", { value: true });
15260
- exports2[Symbol.toStringTag] = "Module";
15529
+ Object.defineProperties(exports2, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
15261
15530
  });