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/README.md ADDED
@@ -0,0 +1,141 @@
1
+ <p align="center">
2
+ <img alt="logo" src="https://fastly.jsdelivr.net/npm/@vant/assets/logo.png" width="120" height="120" style="margin-bottom: 10px;">
3
+ </p>
4
+
5
+ <h1 align="center">Vant</h1>
6
+
7
+ <p align="center">Mobile UI Components built on Vue</p>
8
+
9
+ <p align="center">
10
+ <img src="https://img.shields.io/npm/v/vant?style=flat-square" alt="npm version" />
11
+ <img src="https://img.shields.io/github/workflow/status/youzan/vant/CI/dev?style=flat-square" alt="CI Status" />
12
+ <img src="https://img.shields.io/codecov/c/github/youzan/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
13
+ <img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
14
+ <img src="https://img.shields.io/jsdelivr/npm/hm/vant?style=flat-square" alt="Jsdelivr Hits">
15
+ <img src="https://img.badgesize.io/https://unpkg.com/vant@3/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
16
+ </p>
17
+
18
+ <p align="center">
19
+ 🔥 <a href="https://vant-contrib.gitee.io/vant">文档网站(国内)</a>
20
+ &nbsp;
21
+ 🌈 <a href="https://youzan.github.io/vant">文档网站(GitHub)</a>
22
+ &nbsp;
23
+ 🇨🇳 <a href="./README.zh-CN.md">中文版介绍</a>
24
+ </p>
25
+
26
+ ---
27
+
28
+ ## Features
29
+
30
+ - 🚀 1KB Component average size (min+gzip)
31
+ - 🚀 70+ High quality components
32
+ - 💪 90%+ Unit test coverage
33
+ - 💪 Written in TypeScript
34
+ - 📖 Extensive documentation and demos
35
+ - 📖 Provide Sketch and Axure design resources
36
+ - 🍭 Support Vue 2 & Vue 3
37
+ - 🍭 Support Tree Shaking
38
+ - 🍭 Support Custom Theme
39
+ - 🍭 Support Accessibility (still improving)
40
+ - 🍭 Support Dark Mode (Requires upgrade to [Vant 4](https://vant-contrib.gitee.io/vant/v4/#/en-US/config-provider))
41
+ - 🍭 Support SSR
42
+ - 🌍 Support i18n, built-in 20+ languages
43
+
44
+ ## Install
45
+
46
+ Using `npm` to install:
47
+
48
+ ```bash
49
+ # install latest Vant for Vue 3 project
50
+ npm i vant
51
+
52
+ # install Vant 2 for Vue 2 project
53
+ npm i vant@latest-v2
54
+ ```
55
+
56
+ Using `yarn` or `pnpm`:
57
+
58
+ ```bash
59
+ # with yarn
60
+ yarn add vant
61
+
62
+ # with pnpm
63
+ pnpm add vant
64
+ ```
65
+
66
+ ## Quickstart
67
+
68
+ ```js
69
+ import { createApp } from 'vue';
70
+ import { Button } from 'vant';
71
+ import 'vant/lib/index.css';
72
+
73
+ const app = createApp();
74
+ app.use(Button);
75
+ ```
76
+
77
+ See more in [Quickstart](https://youzan.github.io/vant#/en-US/quickstart).
78
+
79
+ ## Browser Support
80
+
81
+ Vant 2 supports modern browsers and Android >= 4.0、iOS >= 8.0.
82
+
83
+ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3).
84
+
85
+ ## Official Ecosystem
86
+
87
+ | Project | Description |
88
+ | --- | --- |
89
+ | [vant-weapp](https://github.com/youzan/vant-weapp) | WeChat MiniProgram UI |
90
+ | [vant-demo](https://github.com/vant-ui/vant-demo) | Collection of Vant demos |
91
+ | [vant-cli](https://github.com/youzan/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
92
+ | [vant-icons](https://github.com/youzan/vant/tree/dev/packages/vant-icons) | Vant icons |
93
+ | [vant-touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
94
+
95
+ ## Community Ecosystem
96
+
97
+ | Project | Description |
98
+ | --- | --- |
99
+ | [3lang3/react-vant](https://github.com/3lang3/react-vant) | React mobile UI Components based on Vant |
100
+ | [rc-ui-lib](https://github.com/rancui/rc-ui-lib) | React mobile UI Components based on Vant |
101
+ | [vant-aliapp](https://github.com/ant-move/Vant-Aliapp) | Alipay MiniProgram UI |
102
+ | [taroify](https://gitee.com/mallfoundry/taroify) | Vant Taro |
103
+ | [vant-theme](https://github.com/Aisen60/vant-theme) | Online theme preview built on Vant UI |
104
+ | [@antmjs/vantui](https://github.com/antmjs/vantui) | Mobile UI Components based on Vant, supporting Taro and React |
105
+ | [sfc-playground-vant](https://github.com/zhixiaoqiang/sfc-playground-vant) | Try Vant in the Playground. Currently only Vant 3+ is supported |
106
+
107
+ ## Links
108
+
109
+ - [Documentation](https://youzan.github.io/vant)
110
+ - [Changelog](https://youzan.github.io/vant#/en-US/changelog)
111
+ - [Gitter](https://gitter.im/vant-contrib/discuss?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
112
+
113
+ ## Preview
114
+
115
+ You can scan the following QR code to access the demo:
116
+
117
+ <img src="https://fastly.jsdelivr.net/npm/@vant/assets/preview-qrcode.png" width="220" height="220" >
118
+
119
+ ## Core Team
120
+
121
+ Core contributors of Vant and Vant Weapp:
122
+
123
+ | [![chenjiahan](https://avatars.githubusercontent.com/u/7237365?s=80&v=4)](https://github.com/chenjiahan/) | [![cookfront](https://avatars.githubusercontent.com/u/4829465?s=80&v=4)](https://github.com/cookfront/) | [![w91](https://avatars.githubusercontent.com/u/2599455?s=80&v=4)](https://github.com/w91/) | [![pangxie1991](https://avatars.githubusercontent.com/u/5961240?s=80&v=4)](https://github.com/pangxie1991/) | [![rex-zsd](https://avatars.githubusercontent.com/u/8767877?s=80&v=4)](https://github.com/rex-zsd/) | [![nemo-shen](https://avatars.githubusercontent.com/u/13480805?s=80&v=4)](https://github.com/nemo-shen/) | [![Lindysen](https://avatars.githubusercontent.com/u/33708359?s=80&v=4)](https://github.com/Lindysen/) | [![nemo-shen](https://avatars.githubusercontent.com/u/16181940?s=80&v=4)](https://github.com/JakeLaoyu/) |
124
+ | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
125
+ | [chenjiahan](https://github.com/chenjiahan/) | [cookfront](https://github.com/cookfront/) | [wangnaiyi](https://github.com/w91/) | [pangxie](https://github.com/pangxie1991/) | [rex-zsd](https://github.com/rex-zsd/) | [nemo-shen](https://github.com/nemo-shen/) | [Lindysen](https://github.com/Lindysen/) | [JakeLaoyu](https://github.com/JakeLaoyu/) |
126
+
127
+ ## All Contributors
128
+
129
+ Thanks to the following friends for their contributions to Vant:
130
+
131
+ <a href="https://github.com/youzan/vant/graphs/contributors">
132
+ <img src="https://opencollective.com/vant/contributors.svg?width=890&button=false" alt="contributors">
133
+ </a>
134
+
135
+ ## Contribution Guide
136
+
137
+ Please make sure to read the [Contributing Guide](./.github/CONTRIBUTING.md) before making a pull request.
138
+
139
+ ## LICENSE
140
+
141
+ [MIT](https://en.wikipedia.org/wiki/MIT_License)
@@ -1,6 +1,6 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { truthProp, createNamespace } from "../utils";
3
+ import { truthProp, createNamespace } from "../utils/index.mjs";
4
4
  import { useChildren } from "@vant/use";
5
5
  const [name, bem] = createNamespace("action-bar");
6
6
  const ACTION_BAR_KEY = Symbol(name);
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _ActionBar from "./ActionBar";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _ActionBar from "./ActionBar.mjs";
3
3
  const ActionBar = withInstall(_ActionBar);
4
4
  var stdin_default = ActionBar;
5
5
  export {
File without changes
File without changes
@@ -1,11 +1,11 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { computed, defineComponent } from "vue";
3
- import { extend, createNamespace } from "../utils";
4
- import { ACTION_BAR_KEY } from "../action-bar/ActionBar";
3
+ import { extend, createNamespace } from "../utils/index.mjs";
4
+ import { ACTION_BAR_KEY } from "../action-bar/ActionBar.mjs";
5
5
  import { useParent } from "@vant/use";
6
- import { useExpose } from "../composables/use-expose";
7
- import { useRoute, routeProps } from "../composables/use-route";
8
- import { Button } from "../button";
6
+ import { useExpose } from "../composables/use-expose.mjs";
7
+ import { useRoute, routeProps } from "../composables/use-route.mjs";
8
+ import { Button } from "../button/index.mjs";
9
9
  const [name, bem] = createNamespace("action-bar-button");
10
10
  const actionBarButtonProps = extend({}, routeProps, {
11
11
  type: String,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _ActionBarButton from "./ActionBarButton";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _ActionBarButton from "./ActionBarButton.mjs";
3
3
  const ActionBarButton = withInstall(_ActionBarButton);
4
4
  var stdin_default = ActionBarButton;
5
5
  export {
File without changes
@@ -1,11 +1,11 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { extend, createNamespace, unknownProp, numericProp } from "../utils";
4
- import { ACTION_BAR_KEY } from "../action-bar/ActionBar";
3
+ import { extend, createNamespace, unknownProp, numericProp } from "../utils/index.mjs";
4
+ import { ACTION_BAR_KEY } from "../action-bar/ActionBar.mjs";
5
5
  import { useParent } from "@vant/use";
6
- import { useRoute, routeProps } from "../composables/use-route";
7
- import { Icon } from "../icon";
8
- import { Badge } from "../badge";
6
+ import { useRoute, routeProps } from "../composables/use-route.mjs";
7
+ import { Icon } from "../icon/index.mjs";
8
+ import { Badge } from "../badge/index.mjs";
9
9
  const [name, bem] = createNamespace("action-bar-icon");
10
10
  const actionBarIconProps = extend({}, routeProps, {
11
11
  dot: Boolean,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _ActionBarIcon from "./ActionBarIcon";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _ActionBarIcon from "./ActionBarIcon.mjs";
3
3
  const ActionBarIcon = withInstall(_ActionBarIcon);
4
4
  var stdin_default = ActionBarIcon;
5
5
  export {
File without changes
File without changes
@@ -1,10 +1,10 @@
1
1
  import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  import { nextTick, defineComponent } from "vue";
3
- import { pick, extend, truthProp, makeArrayProp, makeStringProp, createNamespace, HAPTICS_FEEDBACK } from "../utils";
4
- import { Icon } from "../icon";
5
- import { Popup } from "../popup";
6
- import { Loading } from "../loading";
7
- import { popupSharedProps, popupSharedPropKeys } from "../popup/shared";
3
+ import { pick, extend, truthProp, makeArrayProp, makeStringProp, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
4
+ import { Icon } from "../icon/index.mjs";
5
+ import { Popup } from "../popup/index.mjs";
6
+ import { Loading } from "../loading/index.mjs";
7
+ import { popupSharedProps, popupSharedPropKeys } from "../popup/shared.mjs";
8
8
  const [name, bem] = createNamespace("action-sheet");
9
9
  const actionSheetProps = extend({}, popupSharedProps, {
10
10
  title: String,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _ActionSheet from "./ActionSheet";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _ActionSheet from "./ActionSheet.mjs";
3
3
  const ActionSheet = withInstall(_ActionSheet);
4
4
  var stdin_default = ActionSheet;
5
5
  export {
File without changes
File without changes
@@ -16,7 +16,6 @@ declare const addressEditProps: {
16
16
  default: true;
17
17
  };
18
18
  showDelete: BooleanConstructor;
19
- showPostal: BooleanConstructor;
20
19
  disableArea: BooleanConstructor;
21
20
  searchResult: PropType<AddressEditSearchItem[]>;
22
21
  telMaxlength: (NumberConstructor | StringConstructor)[];
@@ -45,10 +44,6 @@ declare const addressEditProps: {
45
44
  type: PropType<(val: string) => boolean>;
46
45
  default: typeof isMobile;
47
46
  };
48
- postalValidator: {
49
- type: PropType<(val: string) => boolean>;
50
- default: (value: string) => boolean;
51
- };
52
47
  };
53
48
  export declare type AddressEditProps = ExtractPropTypes<typeof addressEditProps>;
54
49
  declare const _default: import("vue").DefineComponent<{
@@ -65,7 +60,6 @@ declare const _default: import("vue").DefineComponent<{
65
60
  default: true;
66
61
  };
67
62
  showDelete: BooleanConstructor;
68
- showPostal: BooleanConstructor;
69
63
  disableArea: BooleanConstructor;
70
64
  searchResult: PropType<AddressEditSearchItem[]>;
71
65
  telMaxlength: (NumberConstructor | StringConstructor)[];
@@ -94,10 +88,6 @@ declare const _default: import("vue").DefineComponent<{
94
88
  type: PropType<(val: string) => boolean>;
95
89
  default: typeof isMobile;
96
90
  };
97
- postalValidator: {
98
- type: PropType<(val: string) => boolean>;
99
- default: (value: string) => boolean;
100
- };
101
91
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault")[], "focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
102
92
  areaList: PropType<AreaList>;
103
93
  isSaving: BooleanConstructor;
@@ -112,7 +102,6 @@ declare const _default: import("vue").DefineComponent<{
112
102
  default: true;
113
103
  };
114
104
  showDelete: BooleanConstructor;
115
- showPostal: BooleanConstructor;
116
105
  disableArea: BooleanConstructor;
117
106
  searchResult: PropType<AddressEditSearchItem[]>;
118
107
  telMaxlength: (NumberConstructor | StringConstructor)[];
@@ -141,10 +130,6 @@ declare const _default: import("vue").DefineComponent<{
141
130
  type: PropType<(val: string) => boolean>;
142
131
  default: typeof isMobile;
143
132
  };
144
- postalValidator: {
145
- type: PropType<(val: string) => boolean>;
146
- default: (value: string) => boolean;
147
- };
148
133
  }>> & {
149
134
  onFocus?: ((...args: any[]) => any) | undefined;
150
135
  onSelectSearch?: ((...args: any[]) => any) | undefined;
@@ -160,7 +145,6 @@ declare const _default: import("vue").DefineComponent<{
160
145
  showArea: boolean;
161
146
  showDetail: boolean;
162
147
  showDelete: boolean;
163
- showPostal: boolean;
164
148
  disableArea: boolean;
165
149
  showSetDefault: boolean;
166
150
  showSearchResult: boolean;
@@ -169,6 +153,5 @@ declare const _default: import("vue").DefineComponent<{
169
153
  areaColumnsPlaceholder: string[];
170
154
  addressInfo: Partial<AddressEditInfo>;
171
155
  telValidator: (val: string) => boolean;
172
- postalValidator: (val: string) => boolean;
173
156
  }>;
174
157
  export default _default;
@@ -1,17 +1,17 @@
1
1
  import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
2
2
  import { ref, watch, computed, nextTick, reactive, defineComponent } from "vue";
3
- import { extend, isObject, isMobile, truthProp, numericProp, makeArrayProp, makeNumericProp, createNamespace } from "../utils";
4
- import { useExpose } from "../composables/use-expose";
5
- import { Area } from "../area";
6
- import { Cell } from "../cell";
7
- import { Form } from "../form";
8
- import { Field } from "../field";
9
- import { Popup } from "../popup";
10
- import { Toast } from "../toast";
11
- import { Button } from "../button";
12
- import { Switch } from "../switch";
13
- import AddressEditDetail from "./AddressEditDetail";
14
- import { AREA_EMPTY_CODE } from "../area/utils";
3
+ import { extend, isObject, isMobile, truthProp, numericProp, makeArrayProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
4
+ import { useExpose } from "../composables/use-expose.mjs";
5
+ import { Area } from "../area/index.mjs";
6
+ import { Cell } from "../cell/index.mjs";
7
+ import { Form } from "../form/index.mjs";
8
+ import { Field } from "../field/index.mjs";
9
+ import { Popup } from "../popup/index.mjs";
10
+ import { Toast } from "../toast/index.mjs";
11
+ import { Button } from "../button/index.mjs";
12
+ import { Switch } from "../switch/index.mjs";
13
+ import AddressEditDetail from "./AddressEditDetail.mjs";
14
+ import { AREA_EMPTY_CODE } from "../area/utils.mjs";
15
15
  const [name, bem, t] = createNamespace("address-edit");
16
16
  const DEFAULT_DATA = {
17
17
  name: "",
@@ -22,10 +22,8 @@ const DEFAULT_DATA = {
22
22
  province: "",
23
23
  areaCode: "",
24
24
  isDefault: false,
25
- postalCode: "",
26
25
  addressDetail: ""
27
26
  };
28
- const isPostal = (value) => /^\d{6}$/.test(value);
29
27
  const addressEditProps = {
30
28
  areaList: Object,
31
29
  isSaving: Boolean,
@@ -34,7 +32,6 @@ const addressEditProps = {
34
32
  showArea: truthProp,
35
33
  showDetail: truthProp,
36
34
  showDelete: Boolean,
37
- showPostal: Boolean,
38
35
  disableArea: Boolean,
39
36
  searchResult: Array,
40
37
  telMaxlength: numericProp,
@@ -53,10 +50,6 @@ const addressEditProps = {
53
50
  telValidator: {
54
51
  type: Function,
55
52
  default: isMobile
56
- },
57
- postalValidator: {
58
- type: Function,
59
- default: isPostal
60
53
  }
61
54
  };
62
55
  var stdin_default = defineComponent({
@@ -99,8 +92,7 @@ var stdin_default = defineComponent({
99
92
  const rules = computed(() => {
100
93
  const {
101
94
  validator,
102
- telValidator,
103
- postalValidator
95
+ telValidator
104
96
  } = props;
105
97
  const makeRule = (name2, emptyMessage) => ({
106
98
  validator: (value) => {
@@ -123,11 +115,7 @@ var stdin_default = defineComponent({
123
115
  message: t("telInvalid")
124
116
  }],
125
117
  areaCode: [makeRule("areaCode", t("areaEmpty"))],
126
- addressDetail: [makeRule("addressDetail", t("addressEmpty"))],
127
- postalCode: [makeRule("addressDetail", t("postalEmpty")), {
128
- validator: postalValidator,
129
- message: t("postalEmpty")
130
- }]
118
+ addressDetail: [makeRule("addressDetail", t("addressEmpty"))]
131
119
  };
132
120
  });
133
121
  const onSave = () => emit("save", data);
@@ -252,16 +240,7 @@ var stdin_default = defineComponent({
252
240
  "onFocus": () => onFocus("addressDetail"),
253
241
  "onInput": onChangeDetail,
254
242
  "onSelectSearch": (event) => emit("selectSearch", event)
255
- }, null), props.showPostal && _withDirectives(_createVNode(Field, {
256
- "modelValue": data.postalCode,
257
- "onUpdate:modelValue": ($event) => data.postalCode = $event,
258
- "type": "tel",
259
- "rules": rules.value.postalCode,
260
- "label": t("postal"),
261
- "maxlength": "6",
262
- "placeholder": t("postal"),
263
- "onFocus": () => onFocus("postalCode")
264
- }, null), [[_vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), _withDirectives(_createVNode("div", {
243
+ }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), _withDirectives(_createVNode("div", {
265
244
  "class": bem("buttons")
266
245
  }, [_createVNode(Button, {
267
246
  "block": true,
@@ -1,8 +1,8 @@
1
1
  import { Fragment as _Fragment, createVNode as _createVNode } from "vue";
2
2
  import { ref, defineComponent } from "vue";
3
- import { createNamespace, numericProp } from "../utils";
4
- import { Cell } from "../cell";
5
- import { Field } from "../field";
3
+ import { createNamespace, numericProp } from "../utils/index.mjs";
4
+ import { Cell } from "../cell/index.mjs";
5
+ import { Field } from "../field/index.mjs";
6
6
  const [name, bem] = createNamespace("address-edit-detail");
7
7
  const t = createNamespace("address-edit")[2];
8
8
  var stdin_default = defineComponent({
@@ -13,7 +13,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
13
13
  default: true;
14
14
  };
15
15
  showDelete: BooleanConstructor;
16
- showPostal: BooleanConstructor;
17
16
  disableArea: BooleanConstructor;
18
17
  searchResult: import("vue").PropType<import("./types").AddressEditSearchItem[]>;
19
18
  telMaxlength: (NumberConstructor | StringConstructor)[];
@@ -42,10 +41,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
42
41
  type: import("vue").PropType<(val: string) => boolean>;
43
42
  default: typeof import("../utils").isMobile;
44
43
  };
45
- postalValidator: {
46
- type: import("vue").PropType<(val: string) => boolean>;
47
- default: (value: string) => boolean;
48
- };
49
44
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault")[], "focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
45
  areaList: import("vue").PropType<import("..").AreaList>;
51
46
  isSaving: BooleanConstructor;
@@ -60,7 +55,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
60
55
  default: true;
61
56
  };
62
57
  showDelete: BooleanConstructor;
63
- showPostal: BooleanConstructor;
64
58
  disableArea: BooleanConstructor;
65
59
  searchResult: import("vue").PropType<import("./types").AddressEditSearchItem[]>;
66
60
  telMaxlength: (NumberConstructor | StringConstructor)[];
@@ -89,10 +83,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
89
83
  type: import("vue").PropType<(val: string) => boolean>;
90
84
  default: typeof import("../utils").isMobile;
91
85
  };
92
- postalValidator: {
93
- type: import("vue").PropType<(val: string) => boolean>;
94
- default: (value: string) => boolean;
95
- };
96
86
  }>> & {
97
87
  onFocus?: ((...args: any[]) => any) | undefined;
98
88
  onSelectSearch?: ((...args: any[]) => any) | undefined;
@@ -108,7 +98,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
108
98
  showArea: boolean;
109
99
  showDetail: boolean;
110
100
  showDelete: boolean;
111
- showPostal: boolean;
112
101
  disableArea: boolean;
113
102
  showSetDefault: boolean;
114
103
  showSearchResult: boolean;
@@ -117,7 +106,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
117
106
  areaColumnsPlaceholder: string[];
118
107
  addressInfo: Partial<import("./types").AddressEditInfo>;
119
108
  telValidator: (val: string) => boolean;
120
- postalValidator: (val: string) => boolean;
121
109
  }>>;
122
110
  export default AddressEdit;
123
111
  export type { AddressEditProps };
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _AddressEdit from "./AddressEdit";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _AddressEdit from "./AddressEdit.mjs";
3
3
  const AddressEdit = withInstall(_AddressEdit);
4
4
  var stdin_default = AddressEdit;
5
5
  export {
File without changes
File without changes
@@ -13,7 +13,6 @@ export declare type AddressEditInfo = {
13
13
  province: string;
14
14
  areaCode: string;
15
15
  isDefault?: boolean;
16
- postalCode?: string;
17
16
  addressDetail: string;
18
17
  };
19
18
  export declare type AddressEditExpose = {
File without changes
@@ -1,9 +1,9 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { truthProp, numericProp, makeArrayProp, createNamespace } from "../utils";
4
- import { Button } from "../button";
5
- import { RadioGroup } from "../radio-group";
6
- import AddressListItem from "./AddressListItem";
3
+ import { truthProp, numericProp, makeArrayProp, createNamespace } from "../utils/index.mjs";
4
+ import { Button } from "../button/index.mjs";
5
+ import { RadioGroup } from "../radio-group/index.mjs";
6
+ import AddressListItem from "./AddressListItem.mjs";
7
7
  const [name, bem, t] = createNamespace("address-list");
8
8
  const addressListProps = {
9
9
  list: makeArrayProp(),
@@ -1,7 +1,8 @@
1
1
  import { type PropType } from 'vue';
2
+ import { type Numeric } from '../utils';
2
3
  export declare type AddressListAddress = {
3
- id: number | string;
4
- tel: number | string;
4
+ id: Numeric;
5
+ tel: Numeric;
5
6
  name: string;
6
7
  address: string;
7
8
  isDefault?: boolean;
@@ -1,10 +1,10 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { createNamespace, extend, makeRequiredProp } from "../utils";
4
- import { Tag } from "../tag";
5
- import { Icon } from "../icon";
6
- import { Cell } from "../cell";
7
- import { Radio } from "../radio";
3
+ import { extend, createNamespace, makeRequiredProp } from "../utils/index.mjs";
4
+ import { Tag } from "../tag/index.mjs";
5
+ import { Icon } from "../icon/index.mjs";
6
+ import { Cell } from "../cell/index.mjs";
7
+ import { Radio } from "../radio/index.mjs";
8
8
  const [name, bem] = createNamespace("address-item");
9
9
  var stdin_default = defineComponent({
10
10
  name,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _AddressList from "./AddressList";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _AddressList from "./AddressList.mjs";
3
3
  const AddressList = withInstall(_AddressList);
4
4
  var stdin_default = AddressList;
5
5
  export {
File without changes
File without changes
@@ -1,10 +1,10 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { ref, watch, computed, defineComponent } from "vue";
3
- import { pick, extend, makeArrayProp, makeNumericProp, createNamespace } from "../utils";
4
- import { pickerSharedProps } from "../picker/Picker";
5
- import { INHERIT_PROPS, INHERIT_SLOTS, formatDataForCascade } from "./utils";
6
- import { useExpose } from "../composables/use-expose";
7
- import { Picker } from "../picker";
3
+ import { pick, extend, makeArrayProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
4
+ import { pickerSharedProps } from "../picker/Picker.mjs";
5
+ import { INHERIT_PROPS, INHERIT_SLOTS, formatDataForCascade } from "./utils.mjs";
6
+ import { useExpose } from "../composables/use-expose.mjs";
7
+ import { Picker } from "../picker/index.mjs";
8
8
  const [name, bem] = createNamespace("area");
9
9
  const areaProps = extend({}, pickerSharedProps, {
10
10
  modelValue: String,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Area from "./Area";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Area from "./Area.mjs";
3
3
  const Area = withInstall(_Area);
4
4
  var stdin_default = Area;
5
5
  export {
File without changes
File without changes
File without changes
File without changes