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
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { watch, defineComponent } from "vue";
3
- import { unknownProp, numericProp, createNamespace } from "../utils";
3
+ import { unknownProp, numericProp, createNamespace } from "../utils/index.mjs";
4
4
  import { useChildren, useCustomFieldValue } from "@vant/use";
5
5
  const [name, bem] = createNamespace("radio-group");
6
6
  const radioGroupProps = {
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _RadioGroup from "./RadioGroup";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _RadioGroup from "./RadioGroup.mjs";
3
3
  const RadioGroup = withInstall(_RadioGroup);
4
4
  var stdin_default = RadioGroup;
5
5
  export {
File without changes
File without changes
@@ -1,10 +1,10 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
- import { computed, defineComponent } from "vue";
3
- import { addUnit, truthProp, numericProp, preventDefault, makeStringProp, makeNumberProp, makeNumericProp, createNamespace } from "../utils";
2
+ import { computed, defineComponent, ref } from "vue";
3
+ import { addUnit, truthProp, numericProp, preventDefault, makeStringProp, makeNumberProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
4
4
  import { useRect, useCustomFieldValue } from "@vant/use";
5
- import { useRefs } from "../composables/use-refs";
6
- import { useTouch } from "../composables/use-touch";
7
- import { Icon } from "../icon";
5
+ import { useRefs } from "../composables/use-refs.mjs";
6
+ import { useTouch } from "../composables/use-touch.mjs";
7
+ import { Icon } from "../icon/index.mjs";
8
8
  const [name, bem] = createNamespace("rate");
9
9
  function getRateStatus(value, index, allowHalf, readonly) {
10
10
  if (value >= index) {
@@ -56,33 +56,53 @@ var stdin_default = defineComponent({
56
56
  }) {
57
57
  const touch = useTouch();
58
58
  const [itemRefs, setItemRefs] = useRefs();
59
+ const groupRef = ref();
59
60
  const untouchable = () => props.readonly || props.disabled || !props.touchable;
60
61
  const list = computed(() => Array(+props.count).fill("").map((_, i) => getRateStatus(props.modelValue, i + 1, props.allowHalf, props.readonly)));
61
62
  let ranges;
63
+ let groupRefRect;
64
+ let minRectTop = Number.MAX_SAFE_INTEGER;
65
+ let maxRectTop = Number.MIN_SAFE_INTEGER;
62
66
  const updateRanges = () => {
67
+ groupRefRect = useRect(groupRef);
63
68
  const rects = itemRefs.value.map(useRect);
64
69
  ranges = [];
65
70
  rects.forEach((rect, index) => {
71
+ minRectTop = Math.min(rect.top, minRectTop);
72
+ maxRectTop = Math.max(rect.top, maxRectTop);
66
73
  if (props.allowHalf) {
67
74
  ranges.push({
68
75
  score: index + 0.5,
69
- left: rect.left
76
+ left: rect.left,
77
+ top: rect.top,
78
+ height: rect.height
70
79
  }, {
71
80
  score: index + 1,
72
- left: rect.left + rect.width / 2
81
+ left: rect.left + rect.width / 2,
82
+ top: rect.top,
83
+ height: rect.height
73
84
  });
74
85
  } else {
75
86
  ranges.push({
76
87
  score: index + 1,
77
- left: rect.left
88
+ left: rect.left,
89
+ top: rect.top,
90
+ height: rect.height
78
91
  });
79
92
  }
80
93
  });
81
94
  };
82
- const getScoreByPosition = (x) => {
95
+ const getScoreByPosition = (x, y) => {
83
96
  for (let i = ranges.length - 1; i > 0; i--) {
84
- if (x > ranges[i].left) {
85
- return ranges[i].score;
97
+ if (y >= groupRefRect.top && y <= groupRefRect.bottom) {
98
+ if (x > ranges[i].left && y >= ranges[i].top && y <= ranges[i].top + ranges[i].height) {
99
+ return ranges[i].score;
100
+ }
101
+ } else {
102
+ const curTop = y < groupRefRect.top ? minRectTop : maxRectTop;
103
+ if (x > ranges[i].left && ranges[i].top === curTop) {
104
+ return ranges[i].score;
105
+ }
86
106
  }
87
107
  }
88
108
  return props.allowHalf ? 0.5 : 1;
@@ -107,10 +127,11 @@ var stdin_default = defineComponent({
107
127
  touch.move(event);
108
128
  if (touch.isHorizontal()) {
109
129
  const {
110
- clientX
130
+ clientX,
131
+ clientY
111
132
  } = event.touches[0];
112
133
  preventDefault(event);
113
- select(getScoreByPosition(clientX));
134
+ select(getScoreByPosition(clientX, clientY));
114
135
  }
115
136
  };
116
137
  const renderStar = (item, index) => {
@@ -139,7 +160,7 @@ var stdin_default = defineComponent({
139
160
  }
140
161
  const onClickItem = (event) => {
141
162
  updateRanges();
142
- select(allowHalf ? getScoreByPosition(event.clientX) : score);
163
+ select(allowHalf ? getScoreByPosition(event.clientX, event.clientY) : score);
143
164
  };
144
165
  return _createVNode("div", {
145
166
  "key": index,
@@ -177,6 +198,7 @@ var stdin_default = defineComponent({
177
198
  };
178
199
  useCustomFieldValue(() => props.modelValue);
179
200
  return () => _createVNode("div", {
201
+ "ref": groupRef,
180
202
  "role": "radiogroup",
181
203
  "class": bem({
182
204
  readonly: props.readonly,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Rate from "./Rate";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Rate from "./Rate.mjs";
3
3
  const Rate = withInstall(_Rate);
4
4
  var stdin_default = Rate;
5
5
  export {
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { computed, defineComponent } from "vue";
3
- import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils";
3
+ import { truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
4
4
  import { useChildren } from "@vant/use";
5
5
  const [name, bem] = createNamespace("row");
6
6
  const ROW_KEY = Symbol(name);
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Row from "./Row";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Row from "./Row.mjs";
3
3
  const Row = withInstall(_Row);
4
4
  var stdin_default = Row;
5
5
  export {
File without changes
File without changes
@@ -21,6 +21,7 @@ declare const searchProps: {
21
21
  placeholder: StringConstructor;
22
22
  autocomplete: StringConstructor;
23
23
  errorMessage: StringConstructor;
24
+ enterkeyhint: StringConstructor;
24
25
  clearTrigger: {
25
26
  type: import("vue").PropType<import("../field").FieldClearTrigger>;
26
27
  default: import("../field").FieldClearTrigger;
@@ -81,6 +82,7 @@ declare const _default: import("vue").DefineComponent<{
81
82
  placeholder: StringConstructor;
82
83
  autocomplete: StringConstructor;
83
84
  errorMessage: StringConstructor;
85
+ enterkeyhint: StringConstructor;
84
86
  clearTrigger: {
85
87
  type: import("vue").PropType<import("../field").FieldClearTrigger>;
86
88
  default: import("../field").FieldClearTrigger;
@@ -139,6 +141,7 @@ declare const _default: import("vue").DefineComponent<{
139
141
  placeholder: StringConstructor;
140
142
  autocomplete: StringConstructor;
141
143
  errorMessage: StringConstructor;
144
+ enterkeyhint: StringConstructor;
142
145
  clearTrigger: {
143
146
  type: import("vue").PropType<import("../field").FieldClearTrigger>;
144
147
  default: import("../field").FieldClearTrigger;
@@ -1,10 +1,10 @@
1
1
  import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  import { ref, defineComponent } from "vue";
3
- import { pick, extend, truthProp, preventDefault, makeStringProp, createNamespace } from "../utils";
4
- import { fieldSharedProps } from "../field/Field";
5
- import { useId } from "../composables/use-id";
6
- import { useExpose } from "../composables/use-expose";
7
- import { Field } from "../field";
3
+ import { pick, extend, truthProp, preventDefault, makeStringProp, createNamespace } from "../utils/index.mjs";
4
+ import { fieldSharedProps } from "../field/Field.mjs";
5
+ import { useId } from "../composables/use-id.mjs";
6
+ import { useExpose } from "../composables/use-expose.mjs";
7
+ import { Field } from "../field/index.mjs";
8
8
  const [name, bem, t] = createNamespace("search");
9
9
  const searchProps = extend({}, fieldSharedProps, {
10
10
  label: String,
@@ -1 +1 @@
1
- body{--van-search-padding: 10px var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-gray-1);--van-search-input-height: 34px;--van-search-label-padding: 0 5px;--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background);border-radius:var(--van-radius-sm)}.van-search__content--round{border-radius:var(--van-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;padding:5px var(--van-padding-xs) 5px 0;background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}
1
+ body{--van-search-padding: 10px var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-background);--van-search-input-height: 34px;--van-search-label-padding: 0 5px;--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background);border-radius:var(--van-radius-sm)}.van-search__content--round{border-radius:var(--van-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;padding:5px var(--van-padding-xs) 5px 0;background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}
@@ -20,6 +20,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
20
20
  placeholder: StringConstructor;
21
21
  autocomplete: StringConstructor;
22
22
  errorMessage: StringConstructor;
23
+ enterkeyhint: StringConstructor;
23
24
  clearTrigger: {
24
25
  type: import("vue").PropType<import("..").FieldClearTrigger>;
25
26
  default: import("..").FieldClearTrigger;
@@ -78,6 +79,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
78
79
  placeholder: StringConstructor;
79
80
  autocomplete: StringConstructor;
80
81
  errorMessage: StringConstructor;
82
+ enterkeyhint: StringConstructor;
81
83
  clearTrigger: {
82
84
  type: import("vue").PropType<import("..").FieldClearTrigger>;
83
85
  default: import("..").FieldClearTrigger;
@@ -1,7 +1,7 @@
1
1
  body {
2
2
  --van-search-padding: 10px var(--van-padding-sm);
3
3
  --van-search-background: var(--van-background-2);
4
- --van-search-content-background: var(--van-gray-1);
4
+ --van-search-content-background: var(--van-background);
5
5
  --van-search-input-height: 34px;
6
6
  --van-search-label-padding: 0 5px;
7
7
  --van-search-label-color: var(--van-text-color);
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Search from "./Search";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Search from "./Search.mjs";
3
3
  const Search = withInstall(_Search);
4
4
  var stdin_default = Search;
5
5
  export {
File without changes
File without changes
File without changes
@@ -1,16 +1,20 @@
1
1
  import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { pick, extend, truthProp, makeArrayProp, createNamespace, HAPTICS_FEEDBACK } from "../utils";
4
- import { popupSharedProps, popupSharedPropKeys } from "../popup/shared";
5
- import { Popup } from "../popup";
6
- const PRESET_ICONS = ["qq", "link", "weibo", "wechat", "poster", "qrcode", "weapp-qrcode", "wechat-moments"];
3
+ import { pick, extend, truthProp, makeArrayProp, createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
4
+ import { popupSharedProps, popupSharedPropKeys } from "../popup/shared.mjs";
5
+ import { Icon } from "../icon/index.mjs";
6
+ import { Popup } from "../popup/index.mjs";
7
7
  const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
8
- function getIconURL(icon) {
9
- if (PRESET_ICONS.includes(icon)) {
10
- return `https://img.yzcdn.cn/vant/share-sheet-${icon}.png`;
11
- }
12
- return icon;
13
- }
8
+ const iconMap = {
9
+ qq: "qq",
10
+ link: "link-o",
11
+ weibo: "weibo",
12
+ qrcode: "qr",
13
+ poster: "photo-o",
14
+ wechat: "wechat",
15
+ "weapp-qrcode": "miniprogram-o",
16
+ "wechat-moments": "wechat-moments"
17
+ };
14
18
  const [name, bem, t] = createNamespace("share-sheet");
15
19
  const shareSheetProps = extend({}, popupSharedProps, {
16
20
  title: String,
@@ -48,6 +52,19 @@ var stdin_default = defineComponent({
48
52
  }, [description])]);
49
53
  }
50
54
  };
55
+ const renderIcon = (icon) => {
56
+ if (iconMap[icon]) {
57
+ return _createVNode("div", {
58
+ "class": bem("icon", [icon])
59
+ }, [_createVNode(Icon, {
60
+ "name": iconMap[icon] || icon
61
+ }, null)]);
62
+ }
63
+ return _createVNode("img", {
64
+ "src": icon,
65
+ "class": bem("image-icon")
66
+ }, null);
67
+ };
51
68
  const renderOption = (option, index) => {
52
69
  const {
53
70
  name: name2,
@@ -60,10 +77,7 @@ var stdin_default = defineComponent({
60
77
  "tabindex": 0,
61
78
  "class": [bem("option"), className, HAPTICS_FEEDBACK],
62
79
  "onClick": () => onSelect(option, index)
63
- }, [_createVNode("img", {
64
- "src": getIconURL(icon),
65
- "class": bem("icon")
66
- }, null), name2 && _createVNode("span", {
80
+ }, [renderIcon(icon), name2 && _createVNode("span", {
67
81
  "class": bem("name")
68
82
  }, [name2]), description && _createVNode("span", {
69
83
  "class": bem("option-description")
@@ -1 +1 @@
1
- body{--van-share-sheet-header-padding: var(--van-padding-sm) var(--van-padding-md);--van-share-sheet-title-color: var(--van-text-color);--van-share-sheet-title-font-size: var(--van-font-size-md);--van-share-sheet-title-line-height: var(--van-line-height-md);--van-share-sheet-description-color: var(--van-text-color-2);--van-share-sheet-description-font-size: var(--van-font-size-sm);--van-share-sheet-description-line-height: 16px;--van-share-sheet-icon-size: 48px;--van-share-sheet-option-name-color: var(--van-gray-7);--van-share-sheet-option-name-font-size: var(--van-font-size-sm);--van-share-sheet-option-description-color: var(--van-text-color-3);--van-share-sheet-option-description-font-size: var(--van-font-size-sm);--van-share-sheet-cancel-button-font-size: var(--van-font-size-lg);--van-share-sheet-cancel-button-height: 48px;--van-share-sheet-cancel-button-background: var(--van-background-2)}.van-share-sheet__header{padding:var(--van-share-sheet-header-padding);text-align:center}.van-share-sheet__title{margin-top:var(--van-padding-xs);color:var(--van-share-sheet-title-color);font-weight:400;font-size:var(--van-share-sheet-title-font-size);line-height:var(--van-share-sheet-title-line-height)}.van-share-sheet__description{display:block;margin-top:var(--van-padding-xs);color:var(--van-share-sheet-description-color);font-size:var(--van-share-sheet-description-font-size);line-height:var(--van-share-sheet-description-line-height)}.van-share-sheet__options{position:relative;display:flex;padding:var(--van-padding-md) 0 var(--van-padding-md) var(--van-padding-xs);overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}.van-share-sheet__options--border:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:var(--van-padding-md);border-top:1px solid var(--van-border-color);transform:scaleY(.5)}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{display:flex;flex-direction:column;align-items:center;-webkit-user-select:none;user-select:none}.van-share-sheet__icon{width:var(--van-share-sheet-icon-size);height:var(--van-share-sheet-icon-size);margin:0 var(--van-padding-md)}.van-share-sheet__name{margin-top:var(--van-padding-xs);padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-name-color);font-size:var(--van-share-sheet-option-name-font-size)}.van-share-sheet__option-description{padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-description-color);font-size:var(--van-share-sheet-option-description-font-size)}.van-share-sheet__cancel{display:block;width:100%;padding:0;font-size:var(--van-share-sheet-cancel-button-font-size);line-height:var(--van-share-sheet-cancel-button-height);text-align:center;background:var(--van-share-sheet-cancel-button-background);border:none;cursor:pointer}.van-share-sheet__cancel:before{display:block;height:var(--van-padding-xs);background-color:var(--van-background);content:" "}.van-share-sheet__cancel:active{background-color:var(--van-active-color)}
1
+ body{--van-share-sheet-header-padding: var(--van-padding-sm) var(--van-padding-md);--van-share-sheet-title-color: var(--van-text-color);--van-share-sheet-title-font-size: var(--van-font-size-md);--van-share-sheet-title-line-height: var(--van-line-height-md);--van-share-sheet-description-color: var(--van-text-color-2);--van-share-sheet-description-font-size: var(--van-font-size-sm);--van-share-sheet-description-line-height: 16px;--van-share-sheet-icon-size: 48px;--van-share-sheet-option-name-color: var(--van-gray-7);--van-share-sheet-option-name-font-size: var(--van-font-size-sm);--van-share-sheet-option-description-color: var(--van-text-color-3);--van-share-sheet-option-description-font-size: var(--van-font-size-sm);--van-share-sheet-cancel-button-font-size: var(--van-font-size-lg);--van-share-sheet-cancel-button-height: 48px;--van-share-sheet-cancel-button-background: var(--van-background-2)}.van-share-sheet__header{padding:var(--van-share-sheet-header-padding);text-align:center}.van-share-sheet__title{margin-top:var(--van-padding-xs);color:var(--van-share-sheet-title-color);font-weight:400;font-size:var(--van-share-sheet-title-font-size);line-height:var(--van-share-sheet-title-line-height)}.van-share-sheet__description{display:block;margin-top:var(--van-padding-xs);color:var(--van-share-sheet-description-color);font-size:var(--van-share-sheet-description-font-size);line-height:var(--van-share-sheet-description-line-height)}.van-share-sheet__options{position:relative;display:flex;padding:var(--van-padding-md) 0 var(--van-padding-md) var(--van-padding-xs);overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}.van-share-sheet__options--border:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:var(--van-padding-md);border-top:1px solid var(--van-border-color);transform:scaleY(.5)}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{display:flex;flex-direction:column;align-items:center;-webkit-user-select:none;user-select:none}.van-share-sheet__icon,.van-share-sheet__image-icon{width:var(--van-share-sheet-icon-size);height:var(--van-share-sheet-icon-size);margin:0 var(--van-padding-md)}.van-share-sheet__icon{display:flex;align-items:center;justify-content:center;color:var(--van-gray-7);border-radius:100%;background-color:var(--van-gray-2)}.van-share-sheet__icon--link,.van-share-sheet__icon--poster,.van-share-sheet__icon--qrcode{font-size:26px}.van-share-sheet__icon--weapp-qrcode{font-size:28px}.van-share-sheet__icon--qq,.van-share-sheet__icon--weibo,.van-share-sheet__icon--wechat,.van-share-sheet__icon--wechat-moments{font-size:30px;color:var(--van-white)}.van-share-sheet__icon--qq{background-color:#38b9fa}.van-share-sheet__icon--wechat{background-color:#0bc15f}.van-share-sheet__icon--weibo{background-color:#ee575e}.van-share-sheet__icon--wechat-moments{background-color:#7bc845}.van-share-sheet__name{margin-top:var(--van-padding-xs);padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-name-color);font-size:var(--van-share-sheet-option-name-font-size)}.van-share-sheet__option-description{padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-description-color);font-size:var(--van-share-sheet-option-description-font-size)}.van-share-sheet__cancel{display:block;width:100%;padding:0;font-size:var(--van-share-sheet-cancel-button-font-size);line-height:var(--van-share-sheet-cancel-button-height);text-align:center;background:var(--van-share-sheet-cancel-button-background);border:none;cursor:pointer}.van-share-sheet__cancel:before{display:block;height:var(--van-padding-xs);background-color:var(--van-background);content:" "}.van-share-sheet__cancel:active{background-color:var(--van-active-color)}
@@ -64,12 +64,56 @@ body {
64
64
  user-select: none;
65
65
  }
66
66
 
67
- &__icon {
67
+ &__icon,
68
+ &__image-icon {
68
69
  width: var(--van-share-sheet-icon-size);
69
70
  height: var(--van-share-sheet-icon-size);
70
71
  margin: 0 var(--van-padding-md);
71
72
  }
72
73
 
74
+ &__icon {
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: center;
78
+ color: var(--van-gray-7);
79
+ border-radius: 100%;
80
+ background-color: var(--van-gray-2);
81
+
82
+ &--link,
83
+ &--poster,
84
+ &--qrcode {
85
+ font-size: 26px;
86
+ }
87
+
88
+ &--weapp-qrcode {
89
+ font-size: 28px;
90
+ }
91
+
92
+ &--qq,
93
+ &--weibo,
94
+ &--wechat,
95
+ &--wechat-moments {
96
+ font-size: 30px;
97
+ color: var(--van-white);
98
+ }
99
+
100
+ &--qq {
101
+ background-color: #38b9fa;
102
+ }
103
+
104
+ &--wechat {
105
+ background-color: #0bc15f;
106
+ }
107
+
108
+ &--weibo {
109
+ background-color: #ee575e;
110
+ }
111
+
112
+ &--wechat-moments {
113
+ background-color: #7bc845;
114
+ }
115
+ }
116
+
73
117
  &__name {
74
118
  margin-top: var(--van-padding-xs);
75
119
  padding: 0 var(--van-padding-base);
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _ShareSheet from "./ShareSheet";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _ShareSheet from "./ShareSheet.mjs";
3
3
  const ShareSheet = withInstall(_ShareSheet);
4
4
  var stdin_default = ShareSheet;
5
5
  export {
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { makeNumericProp, createNamespace } from "../utils";
3
+ import { makeNumericProp, createNamespace } from "../utils/index.mjs";
4
4
  import { useChildren } from "@vant/use";
5
5
  const [name, bem] = createNamespace("sidebar");
6
6
  const SIDEBAR_KEY = Symbol(name);
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Sidebar from "./Sidebar";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Sidebar from "./Sidebar.mjs";
3
3
  const Sidebar = withInstall(_Sidebar);
4
4
  var stdin_default = Sidebar;
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 { defineComponent } from "vue";
3
- import { extend, numericProp, createNamespace } from "../utils";
4
- import { SIDEBAR_KEY } from "../sidebar/Sidebar";
3
+ import { extend, numericProp, createNamespace } from "../utils/index.mjs";
4
+ import { SIDEBAR_KEY } from "../sidebar/Sidebar.mjs";
5
5
  import { useParent } from "@vant/use";
6
- import { useRoute, routeProps } from "../composables/use-route";
7
- import { Badge } from "../badge";
6
+ import { useRoute, routeProps } from "../composables/use-route.mjs";
7
+ import { Badge } from "../badge/index.mjs";
8
8
  const [name, bem] = createNamespace("sidebar-item");
9
9
  const sidebarItemProps = extend({}, routeProps, {
10
10
  dot: Boolean,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _SidebarItem from "./SidebarItem";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _SidebarItem from "./SidebarItem.mjs";
3
3
  const SidebarItem = withInstall(_SidebarItem);
4
4
  var stdin_default = SidebarItem;
5
5
  export {
File without changes
File without changes
@@ -1,4 +1,5 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
+ import { type Numeric } from '../utils';
2
3
  export declare type SkeletonAvatarShape = 'square' | 'round';
3
4
  declare const skeletonProps: {
4
5
  row: {
@@ -23,7 +24,7 @@ declare const skeletonProps: {
23
24
  default: SkeletonAvatarShape;
24
25
  };
25
26
  rowWidth: {
26
- type: PropType<string | number | (string | number)[]>;
27
+ type: PropType<Numeric | Numeric[]>;
27
28
  default: string;
28
29
  };
29
30
  };
@@ -51,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
51
52
  default: SkeletonAvatarShape;
52
53
  };
53
54
  rowWidth: {
54
- type: PropType<string | number | (string | number)[]>;
55
+ type: PropType<Numeric | Numeric[]>;
55
56
  default: string;
56
57
  };
57
58
  }, () => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -79,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
79
80
  default: SkeletonAvatarShape;
80
81
  };
81
82
  rowWidth: {
82
- type: PropType<string | number | (string | number)[]>;
83
+ type: PropType<Numeric | Numeric[]>;
83
84
  default: string;
84
85
  };
85
86
  }>>, {
@@ -90,6 +91,6 @@ declare const _default: import("vue").DefineComponent<{
90
91
  row: string | number;
91
92
  avatar: boolean;
92
93
  avatarShape: SkeletonAvatarShape;
93
- rowWidth: string | number | (string | number)[];
94
+ rowWidth: Numeric | Numeric[];
94
95
  }>;
95
96
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { addUnit, truthProp, numericProp, getSizeStyle, makeStringProp, makeNumericProp, createNamespace } from "../utils";
3
+ import { addUnit, truthProp, numericProp, getSizeStyle, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
4
4
  const [name, bem] = createNamespace("skeleton");
5
5
  const DEFAULT_ROW_WIDTH = "100%";
6
6
  const DEFAULT_LAST_ROW_WIDTH = "60%";
@@ -21,7 +21,7 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
21
21
  default: import("./Skeleton").SkeletonAvatarShape;
22
22
  };
23
23
  rowWidth: {
24
- type: import("vue").PropType<string | number | (string | number)[]>;
24
+ type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
25
25
  default: string;
26
26
  };
27
27
  }, () => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -49,7 +49,7 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
49
49
  default: import("./Skeleton").SkeletonAvatarShape;
50
50
  };
51
51
  rowWidth: {
52
- type: import("vue").PropType<string | number | (string | number)[]>;
52
+ type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
53
53
  default: string;
54
54
  };
55
55
  }>>, {
@@ -60,7 +60,7 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
60
60
  row: string | number;
61
61
  avatar: boolean;
62
62
  avatarShape: import("./Skeleton").SkeletonAvatarShape;
63
- rowWidth: string | number | (string | number)[];
63
+ rowWidth: import("../utils").Numeric | import("../utils").Numeric[];
64
64
  }>>;
65
65
  export default Skeleton;
66
66
  export type { SkeletonProps, SkeletonAvatarShape } from './Skeleton';
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Skeleton from "./Skeleton";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Skeleton from "./Skeleton.mjs";
3
3
  const Skeleton = withInstall(_Skeleton);
4
4
  var stdin_default = Skeleton;
5
5
  export {
File without changes
File without changes
@@ -1,8 +1,8 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { ref, computed, defineComponent } from "vue";
3
- import { clamp, addUnit, addNumber, numericProp, isSameValue, getSizeStyle, preventDefault, stopPropagation, createNamespace, makeNumericProp } from "../utils";
3
+ import { clamp, addUnit, addNumber, numericProp, isSameValue, getSizeStyle, preventDefault, stopPropagation, createNamespace, makeNumericProp } from "../utils/index.mjs";
4
4
  import { useRect, useCustomFieldValue } from "@vant/use";
5
- import { useTouch } from "../composables/use-touch";
5
+ import { useTouch } from "../composables/use-touch.mjs";
6
6
  const [name, bem] = createNamespace("slider");
7
7
  const sliderProps = {
8
8
  min: makeNumericProp(0),
@@ -1 +1 @@
1
- body{--van-slider-active-background: var(--van-primary-color);--van-slider-inactive-background: var(--van-gray-3);--van-slider-disabled-opacity: var(--van-disabled-opacity);--van-slider-bar-height: 2px;--van-slider-button-width: 24px;--van-slider-button-height: 24px;--van-slider-button-radius: 50%;--van-slider-button-background: var(--van-white);--van-slider-button-shadow: 0 1px 2px rgba(0, 0, 0, .5)}.van-theme-dark{--van-slider-inactive-background: var(--van-background-3)}.van-slider{position:relative;width:100%;height:var(--van-slider-bar-height);background:var(--van-slider-inactive-background);border-radius:var(--van-radius-max);cursor:pointer}.van-slider:before{position:absolute;top:calc(var(--van-padding-xs) * -1);right:0;bottom:calc(var(--van-padding-xs) * -1);left:0;content:""}.van-slider__bar{position:absolute;width:100%;height:100%;background:var(--van-slider-active-background);border-radius:inherit;transition:all var(--van-duration-fast)}.van-slider__button{width:var(--van-slider-button-width);height:var(--van-slider-button-height);background:var(--van-slider-button-background);border-radius:var(--van-slider-button-radius);box-shadow:var(--van-slider-button-shadow)}.van-slider__button-wrapper{position:absolute;cursor:-webkit-grab;cursor:grab;top:50%}.van-slider__button-wrapper--right{right:0;transform:translate(50%,-50%)}.van-slider__button-wrapper--left{left:0;transform:translate(-50%,-50%)}.van-slider--disabled{cursor:not-allowed;opacity:var(--van-slider-disabled-opacity)}.van-slider--disabled .van-slider__button-wrapper{cursor:not-allowed}.van-slider--vertical{display:inline-block;width:var(--van-slider-bar-height);height:100%}.van-slider--vertical .van-slider__button-wrapper--right{top:auto;right:50%;bottom:0;transform:translate(50%,50%)}.van-slider--vertical .van-slider__button-wrapper--left{top:0;right:50%;left:auto;transform:translate(50%,-50%)}.van-slider--vertical:before{top:0;right:calc(var(--van-padding-xs) * -1);bottom:0;left:calc(var(--van-padding-xs) * -1)}
1
+ body{--van-slider-active-background: var(--van-primary-color);--van-slider-inactive-background: var(--van-gray-3);--van-slider-disabled-opacity: var(--van-disabled-opacity);--van-slider-bar-height: 2px;--van-slider-button-width: 24px;--van-slider-button-height: 24px;--van-slider-button-radius: 50%;--van-slider-button-background: var(--van-white);--van-slider-button-shadow: 0 1px 2px rgba(0, 0, 0, .5)}.van-theme-dark{--van-slider-inactive-background: var(--van-background-3)}.van-slider{position:relative;width:100%;height:var(--van-slider-bar-height);background:var(--van-slider-inactive-background);border-radius:var(--van-radius-max);cursor:pointer}.van-slider:before{position:absolute;top:calc(var(--van-padding-xs) * -1);right:0;bottom:calc(var(--van-padding-xs) * -1);left:0;content:""}.van-slider__bar{position:absolute;width:100%;height:100%;background:var(--van-slider-active-background);border-radius:inherit;transition:all var(--van-duration-fast)}.van-slider__button{width:var(--van-slider-button-width);height:var(--van-slider-button-height);background:var(--van-slider-button-background);border-radius:var(--van-slider-button-radius);box-shadow:var(--van-slider-button-shadow)}.van-slider__button-wrapper{position:absolute;cursor:-webkit-grab;cursor:grab;top:50%}.van-slider__button-wrapper--right{right:0;transform:translate3d(50%,-50%,0)}.van-slider__button-wrapper--left{left:0;transform:translate3d(-50%,-50%,0)}.van-slider--disabled{cursor:not-allowed;opacity:var(--van-slider-disabled-opacity)}.van-slider--disabled .van-slider__button-wrapper{cursor:not-allowed}.van-slider--vertical{display:inline-block;width:var(--van-slider-bar-height);height:100%}.van-slider--vertical .van-slider__button-wrapper--right{top:auto;right:50%;bottom:0;transform:translate3d(50%,50%,0)}.van-slider--vertical .van-slider__button-wrapper--left{top:0;right:50%;left:auto;transform:translate3d(50%,-50%,0)}.van-slider--vertical:before{top:0;right:calc(var(--van-padding-xs) * -1);bottom:0;left:calc(var(--van-padding-xs) * -1)}
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Slider from "./Slider";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Slider from "./Slider.mjs";
3
3
  const Slider = withInstall(_Slider);
4
4
  var stdin_default = Slider;
5
5
  export {
File without changes
File without changes
@@ -1,9 +1,9 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { computed, defineComponent } from "vue";
3
- import { BORDER, createNamespace } from "../utils";
4
- import { STEPS_KEY } from "../steps/Steps";
3
+ import { BORDER, createNamespace } from "../utils/index.mjs";
4
+ import { STEPS_KEY } from "../steps/Steps.mjs";
5
5
  import { useParent } from "@vant/use";
6
- import { Icon } from "../icon";
6
+ import { Icon } from "../icon/index.mjs";
7
7
  const [name, bem] = createNamespace("step");
8
8
  var stdin_default = defineComponent({
9
9
  name,
@@ -1,5 +1,5 @@
1
- import { withInstall } from "../utils";
2
- import _Step from "./Step";
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Step from "./Step.mjs";
3
3
  const Step = withInstall(_Step);
4
4
  var stdin_default = Step;
5
5
  export {
File without changes
File without changes