vant 3.3.7 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (464) hide show
  1. package/es/action-bar/ActionBar.d.ts +2 -2
  2. package/es/action-bar/index.d.ts +6 -1
  3. package/es/action-bar-button/ActionBarButton.d.ts +4 -4
  4. package/es/action-bar-button/index.d.ts +8 -3
  5. package/es/action-bar-icon/ActionBarIcon.d.ts +69 -8
  6. package/es/action-bar-icon/ActionBarIcon.js +8 -5
  7. package/es/action-bar-icon/index.d.ts +49 -3
  8. package/es/action-sheet/ActionSheet.d.ts +2 -2
  9. package/es/action-sheet/ActionSheet.js +27 -15
  10. package/es/action-sheet/index.d.ts +6 -1
  11. package/es/address-edit/AddressEdit.d.ts +2 -2
  12. package/es/address-edit/AddressEditDetail.d.ts +2 -2
  13. package/es/address-edit/index.d.ts +6 -1
  14. package/es/address-list/AddressList.d.ts +2 -2
  15. package/es/address-list/AddressListItem.d.ts +2 -2
  16. package/es/address-list/index.d.ts +6 -1
  17. package/es/area/Area.d.ts +2 -2
  18. package/es/area/index.d.ts +6 -1
  19. package/es/badge/Badge.d.ts +3 -3
  20. package/es/badge/index.d.ts +7 -2
  21. package/es/button/Button.d.ts +4 -4
  22. package/es/button/index.d.ts +8 -3
  23. package/es/calendar/Calendar.d.ts +3 -3
  24. package/es/calendar/CalendarDay.d.ts +2 -2
  25. package/es/calendar/CalendarHeader.d.ts +1 -1
  26. package/es/calendar/CalendarMonth.d.ts +4 -4
  27. package/es/calendar/index.d.ts +7 -2
  28. package/es/card/Card.d.ts +2 -2
  29. package/es/card/index.d.ts +6 -1
  30. package/es/cascader/Cascader.d.ts +2 -2
  31. package/es/cascader/Cascader.js +1 -1
  32. package/es/cascader/index.css +1 -1
  33. package/es/cascader/index.d.ts +6 -1
  34. package/es/cascader/index.less +0 -10
  35. package/es/cell/Cell.d.ts +2 -2
  36. package/es/cell/index.d.ts +6 -1
  37. package/es/cell-group/CellGroup.d.ts +2 -2
  38. package/es/cell-group/index.d.ts +6 -1
  39. package/es/checkbox/Checkbox.d.ts +2 -2
  40. package/es/checkbox/Checker.d.ts +2 -2
  41. package/es/checkbox/index.d.ts +6 -1
  42. package/es/checkbox-group/CheckboxGroup.d.ts +2 -2
  43. package/es/checkbox-group/index.d.ts +6 -1
  44. package/es/circle/Circle.d.ts +2 -2
  45. package/es/circle/index.d.ts +6 -1
  46. package/es/col/Col.d.ts +2 -2
  47. package/es/col/index.d.ts +6 -1
  48. package/es/collapse/Collapse.d.ts +2 -2
  49. package/es/collapse/index.d.ts +6 -1
  50. package/es/collapse-item/CollapseItem.d.ts +2 -2
  51. package/es/collapse-item/index.d.ts +6 -1
  52. package/es/composables/use-refs.js +9 -2
  53. package/es/composables/use-route.d.ts +1 -1
  54. package/es/composables/use-touch.js +7 -6
  55. package/es/config-provider/ConfigProvider.d.ts +2 -2
  56. package/es/config-provider/index.d.ts +6 -1
  57. package/es/contact-card/ContactCard.d.ts +2 -2
  58. package/es/contact-card/index.d.ts +6 -1
  59. package/es/contact-edit/ContactEdit.d.ts +2 -2
  60. package/es/contact-edit/index.d.ts +6 -1
  61. package/es/contact-list/ContactList.d.ts +2 -2
  62. package/es/contact-list/index.d.ts +6 -1
  63. package/es/count-down/CountDown.d.ts +2 -2
  64. package/es/count-down/index.d.ts +6 -1
  65. package/es/coupon/Coupon.d.ts +2 -2
  66. package/es/coupon/index.d.ts +6 -1
  67. package/es/coupon-cell/CouponCell.d.ts +2 -2
  68. package/es/coupon-cell/index.d.ts +6 -1
  69. package/es/coupon-list/CouponList.d.ts +2 -2
  70. package/es/coupon-list/index.d.ts +6 -1
  71. package/es/datetime-picker/DatePicker.d.ts +1 -1
  72. package/es/datetime-picker/DatetimePicker.d.ts +2 -2
  73. package/es/datetime-picker/TimePicker.d.ts +1 -1
  74. package/es/datetime-picker/index.d.ts +6 -1
  75. package/es/datetime-picker/utils.d.ts +1 -1
  76. package/es/dialog/Dialog.d.ts +2 -2
  77. package/es/dialog/function-call.d.ts +1 -1
  78. package/es/dialog/index.d.ts +5 -0
  79. package/es/divider/Divider.d.ts +2 -2
  80. package/es/divider/index.d.ts +6 -1
  81. package/es/dropdown-item/DropdownItem.d.ts +2 -2
  82. package/es/dropdown-item/index.d.ts +6 -1
  83. package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
  84. package/es/dropdown-menu/index.d.ts +6 -1
  85. package/es/empty/Empty.d.ts +2 -2
  86. package/es/empty/index.d.ts +6 -1
  87. package/es/field/Field.d.ts +2 -2
  88. package/es/field/index.d.ts +6 -1
  89. package/es/field/types.d.ts +1 -1
  90. package/es/form/Form.d.ts +2 -2
  91. package/es/form/index.d.ts +6 -1
  92. package/es/grid/Grid.d.ts +2 -2
  93. package/es/grid/index.d.ts +6 -1
  94. package/es/grid-item/GridItem.d.ts +66 -5
  95. package/es/grid-item/GridItem.js +8 -6
  96. package/es/grid-item/index.d.ts +48 -2
  97. package/es/icon/Icon.d.ts +66 -5
  98. package/es/icon/Icon.js +7 -6
  99. package/es/icon/index.css +1 -1
  100. package/es/icon/index.d.ts +48 -2
  101. package/es/image/Image.d.ts +2 -2
  102. package/es/image/index.d.ts +6 -1
  103. package/es/image-preview/ImagePreview.d.ts +6 -2
  104. package/es/image-preview/ImagePreview.js +2 -1
  105. package/es/image-preview/ImagePreviewItem.d.ts +1 -1
  106. package/es/image-preview/function-call.d.ts +4 -1
  107. package/es/image-preview/function-call.js +1 -0
  108. package/es/image-preview/index.d.ts +5 -0
  109. package/es/image-preview/types.d.ts +1 -0
  110. package/es/index-anchor/IndexAnchor.d.ts +2 -2
  111. package/es/index-anchor/index.d.ts +6 -1
  112. package/es/index-bar/IndexBar.d.ts +2 -2
  113. package/es/index-bar/index.d.ts +6 -1
  114. package/es/index.d.ts +1 -1
  115. package/es/index.js +1 -1
  116. package/es/list/List.d.ts +2 -2
  117. package/es/list/index.d.ts +6 -1
  118. package/es/loading/Loading.d.ts +2 -2
  119. package/es/loading/index.d.ts +6 -1
  120. package/es/nav-bar/NavBar.d.ts +2 -2
  121. package/es/nav-bar/index.d.ts +6 -1
  122. package/es/notice-bar/NoticeBar.d.ts +2 -2
  123. package/es/notice-bar/index.d.ts +6 -1
  124. package/es/notify/Notify.d.ts +14 -3
  125. package/es/notify/Notify.js +2 -1
  126. package/es/notify/function-call.d.ts +9 -2
  127. package/es/notify/function-call.js +1 -0
  128. package/es/notify/index.d.ts +5 -0
  129. package/es/notify/types.d.ts +2 -0
  130. package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
  131. package/es/number-keyboard/NumberKeyboardKey.d.ts +3 -3
  132. package/es/number-keyboard/index.d.ts +6 -1
  133. package/es/overlay/Overlay.d.ts +2 -2
  134. package/es/overlay/index.d.ts +6 -1
  135. package/es/pagination/Pagination.d.ts +2 -2
  136. package/es/pagination/index.d.ts +6 -1
  137. package/es/password-input/PasswordInput.d.ts +2 -2
  138. package/es/password-input/index.d.ts +6 -1
  139. package/es/picker/Picker.d.ts +2 -2
  140. package/es/picker/Picker.js +21 -13
  141. package/es/picker/PickerColumn.d.ts +1 -1
  142. package/es/picker/index.d.ts +6 -1
  143. package/es/popover/Popover.d.ts +2 -2
  144. package/es/popover/Popover.js +19 -9
  145. package/es/popover/index.d.ts +6 -1
  146. package/es/popup/Popup.d.ts +3 -4
  147. package/es/popup/Popup.js +7 -4
  148. package/es/popup/index.d.ts +16 -10
  149. package/es/popup/shared.d.ts +1 -1
  150. package/es/popup/types.d.ts +5 -0
  151. package/es/popup/types.js +1 -0
  152. package/es/progress/Progress.d.ts +2 -2
  153. package/es/progress/index.d.ts +6 -1
  154. package/es/pull-refresh/PullRefresh.d.ts +2 -2
  155. package/es/pull-refresh/index.css +1 -1
  156. package/es/pull-refresh/index.d.ts +6 -1
  157. package/es/pull-refresh/index.less +0 -1
  158. package/es/radio/Radio.d.ts +2 -2
  159. package/es/radio/index.d.ts +6 -1
  160. package/es/radio-group/RadioGroup.d.ts +2 -2
  161. package/es/radio-group/index.d.ts +6 -1
  162. package/es/rate/Rate.d.ts +2 -2
  163. package/es/rate/index.d.ts +6 -1
  164. package/es/row/Row.d.ts +2 -2
  165. package/es/row/index.d.ts +6 -1
  166. package/es/search/Search.d.ts +8 -2
  167. package/es/search/Search.js +19 -1
  168. package/es/search/index.d.ts +12 -1
  169. package/es/share-sheet/ShareSheet.d.ts +2 -2
  170. package/es/share-sheet/index.d.ts +6 -1
  171. package/es/sidebar/Sidebar.d.ts +2 -2
  172. package/es/sidebar/index.d.ts +6 -1
  173. package/es/sidebar-item/SidebarItem.d.ts +65 -4
  174. package/es/sidebar-item/SidebarItem.js +7 -6
  175. package/es/sidebar-item/index.d.ts +47 -1
  176. package/es/skeleton/Skeleton.d.ts +2 -2
  177. package/es/skeleton/index.d.ts +6 -1
  178. package/es/slider/Slider.d.ts +4 -4
  179. package/es/slider/index.d.ts +8 -3
  180. package/es/step/Step.d.ts +1 -1
  181. package/es/step/Step.js +1 -1
  182. package/es/step/index.d.ts +6 -1
  183. package/es/stepper/Stepper.d.ts +2 -2
  184. package/es/stepper/index.d.ts +6 -1
  185. package/es/steps/Steps.d.ts +2 -2
  186. package/es/steps/index.d.ts +6 -1
  187. package/es/sticky/Sticky.d.ts +2 -2
  188. package/es/sticky/index.d.ts +6 -1
  189. package/es/submit-bar/SubmitBar.d.ts +2 -2
  190. package/es/submit-bar/index.d.ts +6 -1
  191. package/es/swipe/Swipe.d.ts +2 -2
  192. package/es/swipe/Swipe.js +34 -30
  193. package/es/swipe/index.d.ts +6 -1
  194. package/es/swipe-cell/SwipeCell.d.ts +2 -2
  195. package/es/swipe-cell/SwipeCell.js +8 -5
  196. package/es/swipe-cell/index.d.ts +6 -1
  197. package/es/swipe-item/SwipeItem.d.ts +1 -1
  198. package/es/swipe-item/index.d.ts +6 -1
  199. package/es/switch/Switch.d.ts +2 -2
  200. package/es/switch/index.d.ts +6 -1
  201. package/es/tab/Tab.d.ts +2 -2
  202. package/es/tab/index.d.ts +6 -1
  203. package/es/tabbar/Tabbar.d.ts +2 -2
  204. package/es/tabbar/index.d.ts +6 -1
  205. package/es/tabbar-item/TabbarItem.d.ts +65 -4
  206. package/es/tabbar-item/TabbarItem.js +6 -5
  207. package/es/tabbar-item/index.d.ts +47 -1
  208. package/es/tabs/Tabs.d.ts +7 -2
  209. package/es/tabs/Tabs.js +19 -11
  210. package/es/tabs/TabsContent.d.ts +1 -1
  211. package/es/tabs/TabsTitle.d.ts +6 -5
  212. package/es/tabs/TabsTitle.js +10 -5
  213. package/es/tabs/index.css +1 -1
  214. package/es/tabs/index.d.ts +10 -1
  215. package/es/tabs/index.less +43 -35
  216. package/es/tag/Tag.d.ts +2 -2
  217. package/es/tag/index.d.ts +6 -1
  218. package/es/toast/Toast.d.ts +2 -2
  219. package/es/toast/function-call.d.ts +2 -2
  220. package/es/toast/function-call.js +1 -1
  221. package/es/tree-select/TreeSelect.d.ts +2 -2
  222. package/es/tree-select/index.css +1 -1
  223. package/es/tree-select/index.d.ts +6 -1
  224. package/es/tree-select/index.less +1 -1
  225. package/es/uploader/Uploader.d.ts +3 -3
  226. package/es/uploader/UploaderPreviewItem.d.ts +2 -2
  227. package/es/uploader/index.d.ts +6 -1
  228. package/lib/action-bar/ActionBar.d.ts +2 -2
  229. package/lib/action-bar/index.d.ts +6 -1
  230. package/lib/action-bar-button/ActionBarButton.d.ts +4 -4
  231. package/lib/action-bar-button/index.d.ts +8 -3
  232. package/lib/action-bar-icon/ActionBarIcon.d.ts +69 -8
  233. package/lib/action-bar-icon/ActionBarIcon.js +7 -4
  234. package/lib/action-bar-icon/index.d.ts +49 -3
  235. package/lib/action-sheet/ActionSheet.d.ts +2 -2
  236. package/lib/action-sheet/ActionSheet.js +27 -15
  237. package/lib/action-sheet/index.d.ts +6 -1
  238. package/lib/address-edit/AddressEdit.d.ts +2 -2
  239. package/lib/address-edit/AddressEditDetail.d.ts +2 -2
  240. package/lib/address-edit/index.d.ts +6 -1
  241. package/lib/address-list/AddressList.d.ts +2 -2
  242. package/lib/address-list/AddressListItem.d.ts +2 -2
  243. package/lib/address-list/index.d.ts +6 -1
  244. package/lib/area/Area.d.ts +2 -2
  245. package/lib/area/index.d.ts +6 -1
  246. package/lib/badge/Badge.d.ts +3 -3
  247. package/lib/badge/index.d.ts +7 -2
  248. package/lib/button/Button.d.ts +4 -4
  249. package/lib/button/index.d.ts +8 -3
  250. package/lib/calendar/Calendar.d.ts +3 -3
  251. package/lib/calendar/CalendarDay.d.ts +2 -2
  252. package/lib/calendar/CalendarHeader.d.ts +1 -1
  253. package/lib/calendar/CalendarMonth.d.ts +4 -4
  254. package/lib/calendar/index.d.ts +7 -2
  255. package/lib/card/Card.d.ts +2 -2
  256. package/lib/card/index.d.ts +6 -1
  257. package/lib/cascader/Cascader.d.ts +2 -2
  258. package/lib/cascader/Cascader.js +1 -1
  259. package/lib/cascader/index.css +1 -1
  260. package/lib/cascader/index.d.ts +6 -1
  261. package/lib/cascader/index.less +0 -10
  262. package/lib/cell/Cell.d.ts +2 -2
  263. package/lib/cell/index.d.ts +6 -1
  264. package/lib/cell-group/CellGroup.d.ts +2 -2
  265. package/lib/cell-group/index.d.ts +6 -1
  266. package/lib/checkbox/Checkbox.d.ts +2 -2
  267. package/lib/checkbox/Checker.d.ts +2 -2
  268. package/lib/checkbox/index.d.ts +6 -1
  269. package/lib/checkbox-group/CheckboxGroup.d.ts +2 -2
  270. package/lib/checkbox-group/index.d.ts +6 -1
  271. package/lib/circle/Circle.d.ts +2 -2
  272. package/lib/circle/index.d.ts +6 -1
  273. package/lib/col/Col.d.ts +2 -2
  274. package/lib/col/index.d.ts +6 -1
  275. package/lib/collapse/Collapse.d.ts +2 -2
  276. package/lib/collapse/index.d.ts +6 -1
  277. package/lib/collapse-item/CollapseItem.d.ts +2 -2
  278. package/lib/collapse-item/index.d.ts +6 -1
  279. package/lib/composables/use-refs.js +9 -2
  280. package/lib/composables/use-route.d.ts +1 -1
  281. package/lib/composables/use-touch.js +7 -7
  282. package/lib/config-provider/ConfigProvider.d.ts +2 -2
  283. package/lib/config-provider/index.d.ts +6 -1
  284. package/lib/contact-card/ContactCard.d.ts +2 -2
  285. package/lib/contact-card/index.d.ts +6 -1
  286. package/lib/contact-edit/ContactEdit.d.ts +2 -2
  287. package/lib/contact-edit/index.d.ts +6 -1
  288. package/lib/contact-list/ContactList.d.ts +2 -2
  289. package/lib/contact-list/index.d.ts +6 -1
  290. package/lib/count-down/CountDown.d.ts +2 -2
  291. package/lib/count-down/index.d.ts +6 -1
  292. package/lib/coupon/Coupon.d.ts +2 -2
  293. package/lib/coupon/index.d.ts +6 -1
  294. package/lib/coupon-cell/CouponCell.d.ts +2 -2
  295. package/lib/coupon-cell/index.d.ts +6 -1
  296. package/lib/coupon-list/CouponList.d.ts +2 -2
  297. package/lib/coupon-list/index.d.ts +6 -1
  298. package/lib/datetime-picker/DatePicker.d.ts +1 -1
  299. package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
  300. package/lib/datetime-picker/TimePicker.d.ts +1 -1
  301. package/lib/datetime-picker/index.d.ts +6 -1
  302. package/lib/datetime-picker/utils.d.ts +1 -1
  303. package/lib/dialog/Dialog.d.ts +2 -2
  304. package/lib/dialog/function-call.d.ts +1 -1
  305. package/lib/dialog/index.d.ts +5 -0
  306. package/lib/divider/Divider.d.ts +2 -2
  307. package/lib/divider/index.d.ts +6 -1
  308. package/lib/dropdown-item/DropdownItem.d.ts +2 -2
  309. package/lib/dropdown-item/index.d.ts +6 -1
  310. package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
  311. package/lib/dropdown-menu/index.d.ts +6 -1
  312. package/lib/empty/Empty.d.ts +2 -2
  313. package/lib/empty/index.d.ts +6 -1
  314. package/lib/field/Field.d.ts +2 -2
  315. package/lib/field/index.d.ts +6 -1
  316. package/lib/field/types.d.ts +1 -1
  317. package/lib/form/Form.d.ts +2 -2
  318. package/lib/form/index.d.ts +6 -1
  319. package/lib/grid/Grid.d.ts +2 -2
  320. package/lib/grid/index.d.ts +6 -1
  321. package/lib/grid-item/GridItem.d.ts +66 -5
  322. package/lib/grid-item/GridItem.js +7 -5
  323. package/lib/grid-item/index.d.ts +48 -2
  324. package/lib/icon/Icon.d.ts +66 -5
  325. package/lib/icon/Icon.js +5 -4
  326. package/lib/icon/index.css +1 -1
  327. package/lib/icon/index.d.ts +48 -2
  328. package/lib/image/Image.d.ts +2 -2
  329. package/lib/image/index.d.ts +6 -1
  330. package/lib/image-preview/ImagePreview.d.ts +6 -2
  331. package/lib/image-preview/ImagePreview.js +2 -1
  332. package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
  333. package/lib/image-preview/function-call.d.ts +4 -1
  334. package/lib/image-preview/function-call.js +1 -0
  335. package/lib/image-preview/index.d.ts +5 -0
  336. package/lib/image-preview/types.d.ts +1 -0
  337. package/lib/index-anchor/IndexAnchor.d.ts +2 -2
  338. package/lib/index-anchor/index.d.ts +6 -1
  339. package/lib/index-bar/IndexBar.d.ts +2 -2
  340. package/lib/index-bar/index.d.ts +6 -1
  341. package/lib/index.css +1 -1
  342. package/lib/index.d.ts +1 -1
  343. package/lib/index.js +1 -1
  344. package/lib/list/List.d.ts +2 -2
  345. package/lib/list/index.d.ts +6 -1
  346. package/lib/loading/Loading.d.ts +2 -2
  347. package/lib/loading/index.d.ts +6 -1
  348. package/lib/nav-bar/NavBar.d.ts +2 -2
  349. package/lib/nav-bar/index.d.ts +6 -1
  350. package/lib/notice-bar/NoticeBar.d.ts +2 -2
  351. package/lib/notice-bar/index.d.ts +6 -1
  352. package/lib/notify/Notify.d.ts +14 -3
  353. package/lib/notify/Notify.js +2 -1
  354. package/lib/notify/function-call.d.ts +9 -2
  355. package/lib/notify/function-call.js +1 -0
  356. package/lib/notify/index.d.ts +5 -0
  357. package/lib/notify/types.d.ts +2 -0
  358. package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
  359. package/lib/number-keyboard/NumberKeyboardKey.d.ts +3 -3
  360. package/lib/number-keyboard/index.d.ts +6 -1
  361. package/lib/overlay/Overlay.d.ts +2 -2
  362. package/lib/overlay/index.d.ts +6 -1
  363. package/lib/pagination/Pagination.d.ts +2 -2
  364. package/lib/pagination/index.d.ts +6 -1
  365. package/lib/password-input/PasswordInput.d.ts +2 -2
  366. package/lib/password-input/index.d.ts +6 -1
  367. package/lib/picker/Picker.d.ts +2 -2
  368. package/lib/picker/Picker.js +21 -13
  369. package/lib/picker/PickerColumn.d.ts +1 -1
  370. package/lib/picker/index.d.ts +6 -1
  371. package/lib/popover/Popover.d.ts +2 -2
  372. package/lib/popover/Popover.js +18 -8
  373. package/lib/popover/index.d.ts +6 -1
  374. package/lib/popup/Popup.d.ts +3 -4
  375. package/lib/popup/Popup.js +5 -3
  376. package/lib/popup/index.d.ts +16 -10
  377. package/lib/popup/shared.d.ts +1 -1
  378. package/lib/popup/types.d.ts +5 -0
  379. package/lib/popup/types.js +3 -0
  380. package/lib/progress/Progress.d.ts +2 -2
  381. package/lib/progress/index.d.ts +6 -1
  382. package/lib/pull-refresh/PullRefresh.d.ts +2 -2
  383. package/lib/pull-refresh/index.css +1 -1
  384. package/lib/pull-refresh/index.d.ts +6 -1
  385. package/lib/pull-refresh/index.less +0 -1
  386. package/lib/radio/Radio.d.ts +2 -2
  387. package/lib/radio/index.d.ts +6 -1
  388. package/lib/radio-group/RadioGroup.d.ts +2 -2
  389. package/lib/radio-group/index.d.ts +6 -1
  390. package/lib/rate/Rate.d.ts +2 -2
  391. package/lib/rate/index.d.ts +6 -1
  392. package/lib/row/Row.d.ts +2 -2
  393. package/lib/row/index.d.ts +6 -1
  394. package/lib/search/Search.d.ts +8 -2
  395. package/lib/search/Search.js +19 -1
  396. package/lib/search/index.d.ts +12 -1
  397. package/lib/share-sheet/ShareSheet.d.ts +2 -2
  398. package/lib/share-sheet/index.d.ts +6 -1
  399. package/lib/sidebar/Sidebar.d.ts +2 -2
  400. package/lib/sidebar/index.d.ts +6 -1
  401. package/lib/sidebar-item/SidebarItem.d.ts +65 -4
  402. package/lib/sidebar-item/SidebarItem.js +6 -5
  403. package/lib/sidebar-item/index.d.ts +47 -1
  404. package/lib/skeleton/Skeleton.d.ts +2 -2
  405. package/lib/skeleton/index.d.ts +6 -1
  406. package/lib/slider/Slider.d.ts +4 -4
  407. package/lib/slider/index.d.ts +8 -3
  408. package/lib/step/Step.d.ts +1 -1
  409. package/lib/step/Step.js +1 -1
  410. package/lib/step/index.d.ts +6 -1
  411. package/lib/stepper/Stepper.d.ts +2 -2
  412. package/lib/stepper/index.d.ts +6 -1
  413. package/lib/steps/Steps.d.ts +2 -2
  414. package/lib/steps/index.d.ts +6 -1
  415. package/lib/sticky/Sticky.d.ts +2 -2
  416. package/lib/sticky/index.d.ts +6 -1
  417. package/lib/submit-bar/SubmitBar.d.ts +2 -2
  418. package/lib/submit-bar/index.d.ts +6 -1
  419. package/lib/swipe/Swipe.d.ts +2 -2
  420. package/lib/swipe/Swipe.js +34 -30
  421. package/lib/swipe/index.d.ts +6 -1
  422. package/lib/swipe-cell/SwipeCell.d.ts +2 -2
  423. package/lib/swipe-cell/SwipeCell.js +8 -5
  424. package/lib/swipe-cell/index.d.ts +6 -1
  425. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  426. package/lib/swipe-item/index.d.ts +6 -1
  427. package/lib/switch/Switch.d.ts +2 -2
  428. package/lib/switch/index.d.ts +6 -1
  429. package/lib/tab/Tab.d.ts +2 -2
  430. package/lib/tab/index.d.ts +6 -1
  431. package/lib/tabbar/Tabbar.d.ts +2 -2
  432. package/lib/tabbar/index.d.ts +6 -1
  433. package/lib/tabbar-item/TabbarItem.d.ts +65 -4
  434. package/lib/tabbar-item/TabbarItem.js +5 -4
  435. package/lib/tabbar-item/index.d.ts +47 -1
  436. package/lib/tabs/Tabs.d.ts +7 -2
  437. package/lib/tabs/Tabs.js +18 -10
  438. package/lib/tabs/TabsContent.d.ts +1 -1
  439. package/lib/tabs/TabsTitle.d.ts +6 -5
  440. package/lib/tabs/TabsTitle.js +10 -5
  441. package/lib/tabs/index.css +1 -1
  442. package/lib/tabs/index.d.ts +10 -1
  443. package/lib/tabs/index.less +43 -35
  444. package/lib/tag/Tag.d.ts +2 -2
  445. package/lib/tag/index.d.ts +6 -1
  446. package/lib/toast/Toast.d.ts +2 -2
  447. package/lib/toast/function-call.d.ts +2 -2
  448. package/lib/tree-select/TreeSelect.d.ts +2 -2
  449. package/lib/tree-select/index.css +1 -1
  450. package/lib/tree-select/index.d.ts +6 -1
  451. package/lib/tree-select/index.less +1 -1
  452. package/lib/uploader/Uploader.d.ts +3 -3
  453. package/lib/uploader/UploaderPreviewItem.d.ts +2 -2
  454. package/lib/uploader/index.d.ts +6 -1
  455. package/lib/vant.cjs.js +190 -117
  456. package/lib/vant.cjs.min.js +1 -1
  457. package/lib/vant.es.js +191 -118
  458. package/lib/vant.es.min.js +191 -118
  459. package/lib/vant.js +190 -117
  460. package/lib/vant.min.js +1 -1
  461. package/package.json +1 -1
  462. package/vetur/attributes.json +178 -147
  463. package/vetur/tags.json +48 -41
  464. package/vetur/web-types.json +491 -403
@@ -25,7 +25,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
25
25
  to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
26
26
  url: StringConstructor;
27
27
  replace: BooleanConstructor;
28
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
28
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
29
29
  icon?: unknown;
30
30
  size?: unknown;
31
31
  title?: unknown;
@@ -76,3 +76,8 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
76
76
  }>>;
77
77
  export default Cell;
78
78
  export type { CellSize, CellProps, CellArrowDirection } from './Cell';
79
+ declare module 'vue' {
80
+ interface GlobalComponents {
81
+ VanCell: typeof Cell;
82
+ }
83
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  declare const cellGroupProps: {
3
3
  title: StringConstructor;
4
4
  inset: BooleanConstructor;
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  type: BooleanConstructor;
16
16
  default: true;
17
17
  };
18
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
19
19
  title?: unknown;
20
20
  inset?: unknown;
21
21
  border?: unknown;
@@ -5,7 +5,7 @@ export declare const CellGroup: import("../utils").WithInstall<import("vue").Def
5
5
  type: BooleanConstructor;
6
6
  default: true;
7
7
  };
8
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
8
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
9
9
  title?: unknown;
10
10
  inset?: unknown;
11
11
  border?: unknown;
@@ -20,3 +20,8 @@ export declare const CellGroup: import("../utils").WithInstall<import("vue").Def
20
20
  }>>;
21
21
  export default CellGroup;
22
22
  export type { CellGroupProps } from './CellGroup';
23
+ declare module 'vue' {
24
+ interface GlobalComponents {
25
+ VanCellGroup: typeof CellGroup;
26
+ }
27
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  declare const checkboxProps: {
3
3
  name: import("vue").PropType<unknown>;
4
4
  shape: {
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
35
35
  type: BooleanConstructor;
36
36
  default: true;
37
37
  };
38
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
38
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
39
39
  name?: unknown;
40
40
  shape?: unknown;
41
41
  disabled?: unknown;
@@ -1,4 +1,4 @@
1
- import { PropType } from 'vue';
1
+ import { type PropType } from 'vue';
2
2
  export declare type CheckerShape = 'square' | 'round';
3
3
  export declare type CheckerDirection = 'horizontal' | 'vertical';
4
4
  export declare type CheckerLabelPosition = 'left' | 'right';
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
47
47
  type: BooleanConstructor;
48
48
  default: true;
49
49
  };
50
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "toggle")[], "click" | "toggle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
50
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "toggle")[], "click" | "toggle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
51
51
  name?: unknown;
52
52
  shape?: unknown;
53
53
  disabled?: unknown;
@@ -15,7 +15,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
15
15
  type: BooleanConstructor;
16
16
  default: true;
17
17
  };
18
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
19
19
  name?: unknown;
20
20
  shape?: unknown;
21
21
  disabled?: unknown;
@@ -48,3 +48,8 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
48
48
  export default Checkbox;
49
49
  export type { CheckboxProps } from './Checkbox';
50
50
  export type { CheckboxShape, CheckboxInstance, CheckboxLabelPosition, } from './types';
51
+ declare module 'vue' {
52
+ interface GlobalComponents {
53
+ VanCheckbox: typeof Checkbox;
54
+ }
55
+ }
@@ -1,4 +1,4 @@
1
- import { PropType, InjectionKey, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
2
2
  import type { CheckerDirection } from '../checkbox/Checker';
3
3
  import type { CheckboxGroupProvide } from './types';
4
4
  declare const checkboxGroupProps: {
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
24
24
  default: () => never[];
25
25
  };
26
26
  checkedColor: StringConstructor;
27
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
27
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
28
28
  max?: unknown;
29
29
  disabled?: unknown;
30
30
  iconSize?: unknown;
@@ -8,7 +8,7 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
8
8
  default: () => never[];
9
9
  };
10
10
  checkedColor: StringConstructor;
11
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
11
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
12
12
  max?: unknown;
13
13
  disabled?: unknown;
14
14
  iconSize?: unknown;
@@ -33,3 +33,8 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
33
33
  export default CheckboxGroup;
34
34
  export type { CheckboxGroupProps } from './CheckboxGroup';
35
35
  export type { CheckboxGroupInstance, CheckboxGroupDirection, CheckboxGroupToggleAllOptions, } from './types';
36
+ declare module 'vue' {
37
+ interface GlobalComponents {
38
+ VanCheckboxGroup: typeof CheckboxGroup;
39
+ }
40
+ }
@@ -1,4 +1,4 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type ExtractPropTypes } from 'vue';
2
2
  export declare type CircleStartPosition = 'top' | 'right' | 'bottom' | 'left';
3
3
  declare const circleProps: {
4
4
  text: StringConstructor;
@@ -70,7 +70,7 @@ declare const _default: import("vue").DefineComponent<{
70
70
  type: PropType<CircleStartPosition>;
71
71
  default: CircleStartPosition;
72
72
  };
73
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:currentRate"[], "update:currentRate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
73
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:currentRate"[], "update:currentRate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
74
74
  text?: unknown;
75
75
  size?: unknown;
76
76
  fill?: unknown;
@@ -32,7 +32,7 @@ export declare const Circle: import("../utils").WithInstall<import("vue").Define
32
32
  type: import("vue").PropType<import("./Circle").CircleStartPosition>;
33
33
  default: import("./Circle").CircleStartPosition;
34
34
  };
35
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:currentRate"[], "update:currentRate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
35
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:currentRate"[], "update:currentRate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
36
36
  text?: unknown;
37
37
  size?: unknown;
38
38
  fill?: unknown;
@@ -72,3 +72,8 @@ export declare const Circle: import("../utils").WithInstall<import("vue").Define
72
72
  }>>;
73
73
  export default Circle;
74
74
  export type { CircleProps, CircleStartPosition } from './Circle';
75
+ declare module 'vue' {
76
+ interface GlobalComponents {
77
+ VanCircle: typeof Circle;
78
+ }
79
+ }
package/lib/col/Col.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  declare const colProps: {
3
3
  tag: {
4
4
  type: import("vue").PropType<keyof HTMLElementTagNameMap>;
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  default: number;
22
22
  };
23
23
  offset: (NumberConstructor | StringConstructor)[];
24
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
24
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
25
25
  tag?: unknown;
26
26
  span?: unknown;
27
27
  offset?: unknown;
@@ -8,7 +8,7 @@ export declare const Col: import("../utils").WithInstall<import("vue").DefineCom
8
8
  default: number;
9
9
  };
10
10
  offset: (NumberConstructor | StringConstructor)[];
11
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
11
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
12
12
  tag?: unknown;
13
13
  span?: unknown;
14
14
  offset?: unknown;
@@ -23,3 +23,8 @@ export declare const Col: import("../utils").WithInstall<import("vue").DefineCom
23
23
  }>>;
24
24
  export default Col;
25
25
  export type { ColProps } from './Col';
26
+ declare module 'vue' {
27
+ interface GlobalComponents {
28
+ VanCol: typeof Col;
29
+ }
30
+ }
@@ -1,4 +1,4 @@
1
- import { PropType, InjectionKey, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
2
2
  export declare type CollapseProvide = {
3
3
  toggle: (name: number | string, expanded: boolean) => void;
4
4
  isExpanded: (name: number | string) => boolean;
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
26
26
  type: PropType<string | number | (string | number)[]>;
27
27
  default: string;
28
28
  };
29
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
29
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
30
30
  border?: unknown;
31
31
  accordion?: unknown;
32
32
  modelValue?: unknown;
@@ -8,7 +8,7 @@ export declare const Collapse: import("../utils").WithInstall<import("vue").Defi
8
8
  type: import("vue").PropType<string | number | (string | number)[]>;
9
9
  default: string;
10
10
  };
11
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
11
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
12
12
  border?: unknown;
13
13
  accordion?: unknown;
14
14
  modelValue?: unknown;
@@ -26,3 +26,8 @@ export declare const Collapse: import("../utils").WithInstall<import("vue").Defi
26
26
  }>>;
27
27
  export default Collapse;
28
28
  export type { CollapseProps } from './Collapse';
29
+ declare module 'vue' {
30
+ interface GlobalComponents {
31
+ VanCollapse: typeof Collapse;
32
+ }
33
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  declare const collapseItemProps: {
3
3
  icon: StringConstructor;
4
4
  size: import("vue").PropType<import("../cell").CellSize>;
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<{
63
63
  };
64
64
  disabled: BooleanConstructor;
65
65
  readonly: BooleanConstructor;
66
- }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
66
+ }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
67
67
  icon?: unknown;
68
68
  size?: unknown;
69
69
  title?: unknown;
@@ -29,7 +29,7 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
29
29
  };
30
30
  disabled: BooleanConstructor;
31
31
  readonly: BooleanConstructor;
32
- }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
32
+ }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
33
33
  icon?: unknown;
34
34
  size?: unknown;
35
35
  title?: unknown;
@@ -82,3 +82,8 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
82
82
  export default CollapseItem;
83
83
  export type { CollapseItemProps } from './CollapseItem';
84
84
  export type { CollapseItemInstance } from './types';
85
+ declare module 'vue' {
86
+ interface GlobalComponents {
87
+ VanCollapseItem: typeof CollapseItem;
88
+ }
89
+ }
@@ -7,12 +7,19 @@ var _vue = require("vue");
7
7
 
8
8
  function useRefs() {
9
9
  var refs = (0, _vue.ref)([]);
10
+ var cache = [];
10
11
  (0, _vue.onBeforeUpdate)(() => {
11
12
  refs.value = [];
12
13
  });
13
14
 
14
- var setRefs = index => el => {
15
- refs.value[index] = el;
15
+ var setRefs = index => {
16
+ if (!cache[index]) {
17
+ cache[index] = el => {
18
+ refs.value[index] = el;
19
+ };
20
+ }
21
+
22
+ return cache[index];
16
23
  };
17
24
 
18
25
  return [refs, setRefs];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Vue Router support
3
3
  */
4
- import { PropType, ExtractPropTypes, ComponentPublicInstance } from 'vue';
4
+ import { type PropType, type ExtractPropTypes, type ComponentPublicInstance } from 'vue';
5
5
  import type { RouteLocationRaw } from 'vue-router';
6
6
  export declare const routeProps: {
7
7
  to: PropType<RouteLocationRaw>;
@@ -5,14 +5,12 @@ exports.useTouch = useTouch;
5
5
 
6
6
  var _vue = require("vue");
7
7
 
8
- var MIN_DISTANCE = 10;
9
-
10
8
  function getDirection(x, y) {
11
- if (x > y && x > MIN_DISTANCE) {
9
+ if (x > y) {
12
10
  return 'horizontal';
13
11
  }
14
12
 
15
- if (y > x && y > MIN_DISTANCE) {
13
+ if (y > x) {
16
14
  return 'vertical';
17
15
  }
18
16
 
@@ -47,14 +45,16 @@ function useTouch() {
47
45
  };
48
46
 
49
47
  var move = event => {
50
- var touch = event.touches[0]; // Fix: Safari back will set clientX to negative number
48
+ var touch = event.touches[0]; // safari back will set clientX to negative number
51
49
 
52
50
  deltaX.value = touch.clientX < 0 ? 0 : touch.clientX - startX.value;
53
51
  deltaY.value = touch.clientY - startY.value;
54
52
  offsetX.value = Math.abs(deltaX.value);
55
- offsetY.value = Math.abs(deltaY.value);
53
+ offsetY.value = Math.abs(deltaY.value); // lock direction when distance is greater than a certain value
54
+
55
+ var LOCK_DIRECTION_DISTANCE = 10;
56
56
 
57
- if (!direction.value) {
57
+ if (!direction.value || offsetX.value < LOCK_DIRECTION_DISTANCE && offsetY.value < LOCK_DIRECTION_DISTANCE) {
58
58
  direction.value = getDirection(offsetX.value, offsetY.value);
59
59
  }
60
60
  };
@@ -1,4 +1,4 @@
1
- import { PropType, InjectionKey, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
2
2
  export declare type ConfigProviderProvide = {
3
3
  iconPrefix?: string;
4
4
  };
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
19
19
  };
20
20
  themeVars: PropType<Record<string, string | number>>;
21
21
  iconPrefix: StringConstructor;
22
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
22
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
23
23
  tag?: unknown;
24
24
  themeVars?: unknown;
25
25
  iconPrefix?: unknown;
@@ -5,7 +5,7 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
5
5
  };
6
6
  themeVars: import("vue").PropType<Record<string, string | number>>;
7
7
  iconPrefix: StringConstructor;
8
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
8
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
9
9
  tag?: unknown;
10
10
  themeVars?: unknown;
11
11
  iconPrefix?: unknown;
@@ -19,3 +19,8 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
19
19
  }>>;
20
20
  export default ConfigProvider;
21
21
  export type { ConfigProviderProps } from './ConfigProvider';
22
+ declare module 'vue' {
23
+ interface GlobalComponents {
24
+ VanConfigProvider: typeof ConfigProvider;
25
+ }
26
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  export declare type ContactCardType = 'add' | 'edit';
3
3
  declare const contactCardProps: {
4
4
  tel: StringConstructor;
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
26
26
  type: BooleanConstructor;
27
27
  default: true;
28
28
  };
29
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
29
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
30
30
  tel?: unknown;
31
31
  name?: unknown;
32
32
  type?: unknown;
@@ -10,7 +10,7 @@ export declare const ContactCard: import("../utils").WithInstall<import("vue").D
10
10
  type: BooleanConstructor;
11
11
  default: true;
12
12
  };
13
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
13
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
14
14
  tel?: unknown;
15
15
  name?: unknown;
16
16
  type?: unknown;
@@ -31,3 +31,8 @@ export declare const ContactCard: import("../utils").WithInstall<import("vue").D
31
31
  }>>;
32
32
  export default ContactCard;
33
33
  export type { ContactCardType, ContactCardProps } from './ContactCard';
34
+ declare module 'vue' {
35
+ interface GlobalComponents {
36
+ VanContactCard: typeof ContactCard;
37
+ }
38
+ }
@@ -1,4 +1,4 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type ExtractPropTypes } from 'vue';
2
2
  import { isMobile } from '../utils';
3
3
  export declare type ContactEditInfo = {
4
4
  tel: string;
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
35
35
  type: PropType<(val: string) => boolean>;
36
36
  default: typeof isMobile;
37
37
  };
38
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "change-default")[], "save" | "delete" | "change-default", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
38
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "change-default")[], "save" | "delete" | "change-default", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
39
39
  isEdit?: unknown;
40
40
  isSaving?: unknown;
41
41
  isDeleting?: unknown;
@@ -12,7 +12,7 @@ export declare const ContactEdit: import("../utils").WithInstall<import("vue").D
12
12
  type: import("vue").PropType<(val: string) => boolean>;
13
13
  default: typeof import("../utils").isMobile;
14
14
  };
15
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "change-default")[], "save" | "delete" | "change-default", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
15
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "delete" | "change-default")[], "save" | "delete" | "change-default", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
16
16
  isEdit?: unknown;
17
17
  isSaving?: unknown;
18
18
  isDeleting?: unknown;
@@ -43,3 +43,8 @@ export declare const ContactEdit: import("../utils").WithInstall<import("vue").D
43
43
  }>>;
44
44
  export default ContactEdit;
45
45
  export type { ContactEditInfo, ContactEditProps } from './ContactEdit';
46
+ declare module 'vue' {
47
+ interface GlobalComponents {
48
+ VanContactEdit: typeof ContactEdit;
49
+ }
50
+ }
@@ -1,4 +1,4 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type ExtractPropTypes } from 'vue';
2
2
  export declare type ContactListItem = {
3
3
  id?: number | string;
4
4
  tel: number | string;
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
17
17
  addText: StringConstructor;
18
18
  modelValue: PropType<unknown>;
19
19
  defaultTagText: StringConstructor;
20
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "add" | "edit")[], "select" | "update:modelValue" | "add" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
20
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "add" | "edit")[], "select" | "update:modelValue" | "add" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
21
21
  list?: unknown;
22
22
  addText?: unknown;
23
23
  modelValue?: unknown;
@@ -3,7 +3,7 @@ export declare const ContactList: import("../utils").WithInstall<import("vue").D
3
3
  addText: StringConstructor;
4
4
  modelValue: import("vue").PropType<unknown>;
5
5
  defaultTagText: StringConstructor;
6
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "add" | "edit")[], "select" | "update:modelValue" | "add" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
6
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "add" | "edit")[], "select" | "update:modelValue" | "add" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
7
7
  list?: unknown;
8
8
  addText?: unknown;
9
9
  modelValue?: unknown;
@@ -21,3 +21,8 @@ export declare const ContactList: import("../utils").WithInstall<import("vue").D
21
21
  }, {}>>;
22
22
  export default ContactList;
23
23
  export type { ContactListItem, ContactListProps } from './ContactList';
24
+ declare module 'vue' {
25
+ interface GlobalComponents {
26
+ VanContactList: typeof ContactList;
27
+ }
28
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  declare const countDownProps: {
3
3
  time: {
4
4
  type: (NumberConstructor | StringConstructor)[];
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
29
29
  default: true;
30
30
  };
31
31
  millisecond: BooleanConstructor;
32
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "finish")[], "change" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
32
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "finish")[], "change" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
33
33
  time?: unknown;
34
34
  format?: unknown;
35
35
  autoStart?: unknown;
@@ -12,7 +12,7 @@ export declare const CountDown: import("../utils").WithInstall<import("vue").Def
12
12
  default: true;
13
13
  };
14
14
  millisecond: BooleanConstructor;
15
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "finish")[], "change" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
15
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "finish")[], "change" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
16
16
  time?: unknown;
17
17
  format?: unknown;
18
18
  autoStart?: unknown;
@@ -34,3 +34,8 @@ export declare const CountDown: import("../utils").WithInstall<import("vue").Def
34
34
  export default CountDown;
35
35
  export type { CountDownProps } from './CountDown';
36
36
  export type { CountDownInstance, CountDownCurrentTime } from './types';
37
+ declare module 'vue' {
38
+ interface GlobalComponents {
39
+ VanCountDown: typeof CountDown;
40
+ }
41
+ }
@@ -1,4 +1,4 @@
1
- import { PropType } from 'vue';
1
+ import { type PropType } from 'vue';
2
2
  export declare type CouponInfo = {
3
3
  id: string | number;
4
4
  name: string;
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
25
25
  type: PropType<string>;
26
26
  default: string;
27
27
  };
28
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
28
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
29
29
  chosen?: unknown;
30
30
  coupon?: unknown;
31
31
  disabled?: unknown;
@@ -9,7 +9,7 @@ export declare const Coupon: import("../utils").WithInstall<import("vue").Define
9
9
  type: import("vue").PropType<string>;
10
10
  default: string;
11
11
  };
12
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
12
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
13
13
  chosen?: unknown;
14
14
  coupon?: unknown;
15
15
  disabled?: unknown;
@@ -26,3 +26,8 @@ export declare const Coupon: import("../utils").WithInstall<import("vue").Define
26
26
  }>>;
27
27
  export default Coupon;
28
28
  export type { CouponInfo } from './Coupon';
29
+ declare module 'vue' {
30
+ interface GlobalComponents {
31
+ VanCoupon: typeof Coupon;
32
+ }
33
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  import type { CouponInfo } from '../coupon';
3
3
  declare const couponCellProps: {
4
4
  title: StringConstructor;
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
46
46
  type: (NumberConstructor | StringConstructor)[];
47
47
  default: number;
48
48
  };
49
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
49
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
50
50
  title?: unknown;
51
51
  border?: unknown;
52
52
  editable?: unknown;
@@ -20,7 +20,7 @@ export declare const CouponCell: import("../utils").WithInstall<import("vue").De
20
20
  type: (NumberConstructor | StringConstructor)[];
21
21
  default: number;
22
22
  };
23
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
23
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
24
24
  title?: unknown;
25
25
  border?: unknown;
26
26
  editable?: unknown;
@@ -44,3 +44,8 @@ export declare const CouponCell: import("../utils").WithInstall<import("vue").De
44
44
  }>>;
45
45
  export default CouponCell;
46
46
  export type { CouponCellProps } from './CouponCell';
47
+ declare module 'vue' {
48
+ interface GlobalComponents {
49
+ VanCouponCell: typeof CouponCell;
50
+ }
51
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  import { CouponInfo } from '../coupon';
3
3
  declare const couponListProps: {
4
4
  code: {
@@ -106,7 +106,7 @@ declare const _default: import("vue").DefineComponent<{
106
106
  };
107
107
  exchangeButtonLoading: BooleanConstructor;
108
108
  exchangeButtonDisabled: BooleanConstructor;
109
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "exchange" | "update:code")[], "change" | "exchange" | "update:code", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
109
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "exchange" | "update:code")[], "change" | "exchange" | "update:code", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
110
110
  code?: unknown;
111
111
  coupons?: unknown;
112
112
  currency?: unknown;