vant 3.3.4 → 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 (485) 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 +15 -3
  20. package/es/badge/Badge.js +4 -3
  21. package/es/badge/index.css +1 -1
  22. package/es/badge/index.d.ts +15 -3
  23. package/es/badge/index.less +22 -1
  24. package/es/button/Button.d.ts +4 -4
  25. package/es/button/index.d.ts +8 -3
  26. package/es/calendar/Calendar.d.ts +5 -5
  27. package/es/calendar/CalendarDay.d.ts +2 -2
  28. package/es/calendar/CalendarHeader.d.ts +1 -1
  29. package/es/calendar/CalendarMonth.d.ts +4 -4
  30. package/es/calendar/index.d.ts +9 -4
  31. package/es/card/Card.d.ts +2 -2
  32. package/es/card/index.d.ts +6 -1
  33. package/es/cascader/Cascader.d.ts +2 -2
  34. package/es/cascader/Cascader.js +1 -1
  35. package/es/cascader/index.css +1 -1
  36. package/es/cascader/index.d.ts +6 -1
  37. package/es/cascader/index.less +0 -10
  38. package/es/cell/Cell.d.ts +2 -2
  39. package/es/cell/index.d.ts +6 -1
  40. package/es/cell-group/CellGroup.d.ts +2 -2
  41. package/es/cell-group/index.d.ts +6 -1
  42. package/es/checkbox/Checkbox.d.ts +2 -2
  43. package/es/checkbox/Checker.d.ts +2 -2
  44. package/es/checkbox/index.d.ts +6 -1
  45. package/es/checkbox-group/CheckboxGroup.d.ts +2 -2
  46. package/es/checkbox-group/index.d.ts +6 -1
  47. package/es/circle/Circle.d.ts +2 -2
  48. package/es/circle/index.d.ts +6 -1
  49. package/es/col/Col.d.ts +2 -2
  50. package/es/col/index.d.ts +6 -1
  51. package/es/collapse/Collapse.d.ts +2 -2
  52. package/es/collapse/index.d.ts +6 -1
  53. package/es/collapse-item/CollapseItem.d.ts +2 -2
  54. package/es/collapse-item/index.d.ts +6 -1
  55. package/es/composables/use-refs.js +9 -2
  56. package/es/composables/use-route.d.ts +1 -1
  57. package/es/composables/use-touch.js +7 -6
  58. package/es/config-provider/ConfigProvider.d.ts +2 -2
  59. package/es/config-provider/index.d.ts +6 -1
  60. package/es/contact-card/ContactCard.d.ts +2 -2
  61. package/es/contact-card/index.d.ts +6 -1
  62. package/es/contact-edit/ContactEdit.d.ts +2 -2
  63. package/es/contact-edit/index.d.ts +6 -1
  64. package/es/contact-list/ContactList.d.ts +2 -2
  65. package/es/contact-list/index.d.ts +6 -1
  66. package/es/count-down/CountDown.d.ts +2 -2
  67. package/es/count-down/index.d.ts +6 -1
  68. package/es/coupon/Coupon.d.ts +2 -2
  69. package/es/coupon/index.d.ts +6 -1
  70. package/es/coupon-cell/CouponCell.d.ts +2 -2
  71. package/es/coupon-cell/index.d.ts +6 -1
  72. package/es/coupon-list/CouponList.d.ts +2 -2
  73. package/es/coupon-list/index.d.ts +6 -1
  74. package/es/datetime-picker/DatePicker.d.ts +1 -1
  75. package/es/datetime-picker/DatePicker.js +2 -2
  76. package/es/datetime-picker/DatetimePicker.d.ts +2 -2
  77. package/es/datetime-picker/TimePicker.d.ts +1 -1
  78. package/es/datetime-picker/TimePicker.js +2 -2
  79. package/es/datetime-picker/index.d.ts +6 -1
  80. package/es/datetime-picker/utils.d.ts +3 -1
  81. package/es/datetime-picker/utils.js +17 -1
  82. package/es/dialog/Dialog.d.ts +2 -2
  83. package/es/dialog/function-call.d.ts +1 -1
  84. package/es/dialog/index.d.ts +5 -0
  85. package/es/divider/Divider.d.ts +2 -2
  86. package/es/divider/index.d.ts +6 -1
  87. package/es/dropdown-item/DropdownItem.d.ts +2 -2
  88. package/es/dropdown-item/index.d.ts +6 -1
  89. package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
  90. package/es/dropdown-menu/index.d.ts +6 -1
  91. package/es/empty/Empty.d.ts +2 -2
  92. package/es/empty/index.d.ts +6 -1
  93. package/es/field/Field.d.ts +2 -2
  94. package/es/field/Field.js +5 -5
  95. package/es/field/index.d.ts +6 -1
  96. package/es/field/types.d.ts +1 -1
  97. package/es/field/utils.d.ts +2 -0
  98. package/es/field/utils.js +9 -0
  99. package/es/form/Form.d.ts +2 -2
  100. package/es/form/index.d.ts +6 -1
  101. package/es/grid/Grid.d.ts +2 -2
  102. package/es/grid/index.d.ts +6 -1
  103. package/es/grid-item/GridItem.d.ts +66 -5
  104. package/es/grid-item/GridItem.js +8 -6
  105. package/es/grid-item/index.d.ts +48 -2
  106. package/es/icon/Icon.d.ts +66 -5
  107. package/es/icon/Icon.js +7 -6
  108. package/es/icon/index.css +1 -1
  109. package/es/icon/index.d.ts +48 -2
  110. package/es/image/Image.d.ts +2 -2
  111. package/es/image/index.d.ts +6 -1
  112. package/es/image-preview/ImagePreview.d.ts +6 -2
  113. package/es/image-preview/ImagePreview.js +2 -1
  114. package/es/image-preview/ImagePreviewItem.d.ts +1 -1
  115. package/es/image-preview/function-call.d.ts +4 -1
  116. package/es/image-preview/function-call.js +1 -0
  117. package/es/image-preview/index.d.ts +5 -0
  118. package/es/image-preview/types.d.ts +1 -0
  119. package/es/index-anchor/IndexAnchor.d.ts +2 -2
  120. package/es/index-anchor/index.d.ts +6 -1
  121. package/es/index-bar/IndexBar.d.ts +2 -2
  122. package/es/index-bar/index.d.ts +6 -1
  123. package/es/index.d.ts +1 -1
  124. package/es/index.js +1 -1
  125. package/es/list/List.d.ts +2 -2
  126. package/es/list/index.d.ts +6 -1
  127. package/es/loading/Loading.d.ts +2 -2
  128. package/es/loading/index.d.ts +6 -1
  129. package/es/nav-bar/NavBar.d.ts +2 -2
  130. package/es/nav-bar/index.d.ts +6 -1
  131. package/es/notice-bar/NoticeBar.d.ts +2 -2
  132. package/es/notice-bar/index.d.ts +6 -1
  133. package/es/notify/Notify.d.ts +14 -3
  134. package/es/notify/Notify.js +2 -1
  135. package/es/notify/function-call.d.ts +9 -2
  136. package/es/notify/function-call.js +1 -0
  137. package/es/notify/index.d.ts +5 -0
  138. package/es/notify/types.d.ts +2 -0
  139. package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
  140. package/es/number-keyboard/NumberKeyboardKey.d.ts +3 -3
  141. package/es/number-keyboard/index.d.ts +6 -1
  142. package/es/overlay/Overlay.d.ts +2 -2
  143. package/es/overlay/index.d.ts +6 -1
  144. package/es/pagination/Pagination.d.ts +2 -2
  145. package/es/pagination/Pagination.js +3 -3
  146. package/es/pagination/index.d.ts +6 -1
  147. package/es/password-input/PasswordInput.d.ts +2 -2
  148. package/es/password-input/index.d.ts +6 -1
  149. package/es/picker/Picker.d.ts +2 -2
  150. package/es/picker/Picker.js +21 -13
  151. package/es/picker/PickerColumn.d.ts +1 -1
  152. package/es/picker/index.d.ts +6 -1
  153. package/es/popover/Popover.d.ts +2 -2
  154. package/es/popover/Popover.js +19 -9
  155. package/es/popover/index.d.ts +6 -1
  156. package/es/popup/Popup.d.ts +5 -6
  157. package/es/popup/Popup.js +7 -4
  158. package/es/popup/index.d.ts +16 -10
  159. package/es/popup/shared.d.ts +1 -1
  160. package/es/popup/types.d.ts +5 -0
  161. package/es/popup/types.js +1 -0
  162. package/es/progress/Progress.d.ts +2 -2
  163. package/es/progress/index.d.ts +6 -1
  164. package/es/pull-refresh/PullRefresh.d.ts +2 -2
  165. package/es/pull-refresh/index.css +1 -1
  166. package/es/pull-refresh/index.d.ts +6 -1
  167. package/es/pull-refresh/index.less +0 -1
  168. package/es/radio/Radio.d.ts +2 -2
  169. package/es/radio/index.d.ts +6 -1
  170. package/es/radio-group/RadioGroup.d.ts +2 -2
  171. package/es/radio-group/index.d.ts +6 -1
  172. package/es/rate/Rate.d.ts +2 -2
  173. package/es/rate/index.d.ts +6 -1
  174. package/es/row/Row.d.ts +2 -2
  175. package/es/row/index.d.ts +6 -1
  176. package/es/search/Search.d.ts +8 -2
  177. package/es/search/Search.js +19 -1
  178. package/es/search/index.d.ts +12 -1
  179. package/es/share-sheet/ShareSheet.d.ts +2 -2
  180. package/es/share-sheet/index.d.ts +6 -1
  181. package/es/sidebar/Sidebar.d.ts +2 -2
  182. package/es/sidebar/index.d.ts +6 -1
  183. package/es/sidebar-item/SidebarItem.d.ts +65 -4
  184. package/es/sidebar-item/SidebarItem.js +7 -6
  185. package/es/sidebar-item/index.d.ts +47 -1
  186. package/es/skeleton/Skeleton.d.ts +2 -2
  187. package/es/skeleton/index.d.ts +6 -1
  188. package/es/slider/Slider.d.ts +4 -4
  189. package/es/slider/index.d.ts +8 -3
  190. package/es/step/Step.d.ts +1 -1
  191. package/es/step/Step.js +1 -1
  192. package/es/step/index.d.ts +6 -1
  193. package/es/stepper/Stepper.d.ts +2 -2
  194. package/es/stepper/index.d.ts +6 -1
  195. package/es/steps/Steps.d.ts +2 -2
  196. package/es/steps/index.d.ts +6 -1
  197. package/es/sticky/Sticky.d.ts +2 -2
  198. package/es/sticky/index.d.ts +6 -1
  199. package/es/submit-bar/SubmitBar.d.ts +2 -2
  200. package/es/submit-bar/index.d.ts +6 -1
  201. package/es/swipe/Swipe.d.ts +2 -2
  202. package/es/swipe/Swipe.js +34 -30
  203. package/es/swipe/index.d.ts +6 -1
  204. package/es/swipe-cell/SwipeCell.d.ts +2 -2
  205. package/es/swipe-cell/SwipeCell.js +8 -5
  206. package/es/swipe-cell/index.d.ts +6 -1
  207. package/es/swipe-item/SwipeItem.d.ts +1 -1
  208. package/es/swipe-item/index.d.ts +6 -1
  209. package/es/switch/Switch.d.ts +2 -2
  210. package/es/switch/index.d.ts +6 -1
  211. package/es/tab/Tab.d.ts +2 -2
  212. package/es/tab/index.d.ts +6 -1
  213. package/es/tabbar/Tabbar.d.ts +2 -2
  214. package/es/tabbar/index.d.ts +6 -1
  215. package/es/tabbar-item/TabbarItem.d.ts +65 -4
  216. package/es/tabbar-item/TabbarItem.js +6 -5
  217. package/es/tabbar-item/index.d.ts +47 -1
  218. package/es/tabs/Tabs.d.ts +7 -2
  219. package/es/tabs/Tabs.js +19 -11
  220. package/es/tabs/TabsContent.d.ts +1 -1
  221. package/es/tabs/TabsTitle.d.ts +6 -5
  222. package/es/tabs/TabsTitle.js +10 -5
  223. package/es/tabs/index.css +1 -1
  224. package/es/tabs/index.d.ts +10 -1
  225. package/es/tabs/index.less +43 -35
  226. package/es/tag/Tag.d.ts +2 -2
  227. package/es/tag/index.d.ts +6 -1
  228. package/es/toast/Toast.d.ts +4 -4
  229. package/es/toast/function-call.d.ts +2 -2
  230. package/es/toast/function-call.js +1 -1
  231. package/es/tree-select/TreeSelect.d.ts +2 -2
  232. package/es/tree-select/index.css +1 -1
  233. package/es/tree-select/index.d.ts +6 -1
  234. package/es/tree-select/index.less +1 -1
  235. package/es/uploader/Uploader.d.ts +3 -3
  236. package/es/uploader/UploaderPreviewItem.d.ts +2 -2
  237. package/es/uploader/index.d.ts +6 -1
  238. package/lib/action-bar/ActionBar.d.ts +2 -2
  239. package/lib/action-bar/index.d.ts +6 -1
  240. package/lib/action-bar-button/ActionBarButton.d.ts +4 -4
  241. package/lib/action-bar-button/index.d.ts +8 -3
  242. package/lib/action-bar-icon/ActionBarIcon.d.ts +69 -8
  243. package/lib/action-bar-icon/ActionBarIcon.js +7 -4
  244. package/lib/action-bar-icon/index.d.ts +49 -3
  245. package/lib/action-sheet/ActionSheet.d.ts +2 -2
  246. package/lib/action-sheet/ActionSheet.js +27 -15
  247. package/lib/action-sheet/index.d.ts +6 -1
  248. package/lib/address-edit/AddressEdit.d.ts +2 -2
  249. package/lib/address-edit/AddressEditDetail.d.ts +2 -2
  250. package/lib/address-edit/index.d.ts +6 -1
  251. package/lib/address-list/AddressList.d.ts +2 -2
  252. package/lib/address-list/AddressListItem.d.ts +2 -2
  253. package/lib/address-list/index.d.ts +6 -1
  254. package/lib/area/Area.d.ts +2 -2
  255. package/lib/area/index.d.ts +6 -1
  256. package/lib/badge/Badge.d.ts +15 -3
  257. package/lib/badge/Badge.js +4 -3
  258. package/lib/badge/index.css +1 -1
  259. package/lib/badge/index.d.ts +15 -3
  260. package/lib/badge/index.less +22 -1
  261. package/lib/button/Button.d.ts +4 -4
  262. package/lib/button/index.d.ts +8 -3
  263. package/lib/calendar/Calendar.d.ts +5 -5
  264. package/lib/calendar/CalendarDay.d.ts +2 -2
  265. package/lib/calendar/CalendarHeader.d.ts +1 -1
  266. package/lib/calendar/CalendarMonth.d.ts +4 -4
  267. package/lib/calendar/index.d.ts +9 -4
  268. package/lib/card/Card.d.ts +2 -2
  269. package/lib/card/index.d.ts +6 -1
  270. package/lib/cascader/Cascader.d.ts +2 -2
  271. package/lib/cascader/Cascader.js +1 -1
  272. package/lib/cascader/index.css +1 -1
  273. package/lib/cascader/index.d.ts +6 -1
  274. package/lib/cascader/index.less +0 -10
  275. package/lib/cell/Cell.d.ts +2 -2
  276. package/lib/cell/index.d.ts +6 -1
  277. package/lib/cell-group/CellGroup.d.ts +2 -2
  278. package/lib/cell-group/index.d.ts +6 -1
  279. package/lib/checkbox/Checkbox.d.ts +2 -2
  280. package/lib/checkbox/Checker.d.ts +2 -2
  281. package/lib/checkbox/index.d.ts +6 -1
  282. package/lib/checkbox-group/CheckboxGroup.d.ts +2 -2
  283. package/lib/checkbox-group/index.d.ts +6 -1
  284. package/lib/circle/Circle.d.ts +2 -2
  285. package/lib/circle/index.d.ts +6 -1
  286. package/lib/col/Col.d.ts +2 -2
  287. package/lib/col/index.d.ts +6 -1
  288. package/lib/collapse/Collapse.d.ts +2 -2
  289. package/lib/collapse/index.d.ts +6 -1
  290. package/lib/collapse-item/CollapseItem.d.ts +2 -2
  291. package/lib/collapse-item/index.d.ts +6 -1
  292. package/lib/composables/use-refs.js +9 -2
  293. package/lib/composables/use-route.d.ts +1 -1
  294. package/lib/composables/use-touch.js +7 -7
  295. package/lib/config-provider/ConfigProvider.d.ts +2 -2
  296. package/lib/config-provider/index.d.ts +6 -1
  297. package/lib/contact-card/ContactCard.d.ts +2 -2
  298. package/lib/contact-card/index.d.ts +6 -1
  299. package/lib/contact-edit/ContactEdit.d.ts +2 -2
  300. package/lib/contact-edit/index.d.ts +6 -1
  301. package/lib/contact-list/ContactList.d.ts +2 -2
  302. package/lib/contact-list/index.d.ts +6 -1
  303. package/lib/count-down/CountDown.d.ts +2 -2
  304. package/lib/count-down/index.d.ts +6 -1
  305. package/lib/coupon/Coupon.d.ts +2 -2
  306. package/lib/coupon/index.d.ts +6 -1
  307. package/lib/coupon-cell/CouponCell.d.ts +2 -2
  308. package/lib/coupon-cell/index.d.ts +6 -1
  309. package/lib/coupon-list/CouponList.d.ts +2 -2
  310. package/lib/coupon-list/index.d.ts +6 -1
  311. package/lib/datetime-picker/DatePicker.d.ts +1 -1
  312. package/lib/datetime-picker/DatePicker.js +1 -1
  313. package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
  314. package/lib/datetime-picker/TimePicker.d.ts +1 -1
  315. package/lib/datetime-picker/TimePicker.js +1 -1
  316. package/lib/datetime-picker/index.d.ts +6 -1
  317. package/lib/datetime-picker/utils.d.ts +3 -1
  318. package/lib/datetime-picker/utils.js +22 -3
  319. package/lib/dialog/Dialog.d.ts +2 -2
  320. package/lib/dialog/function-call.d.ts +1 -1
  321. package/lib/dialog/index.d.ts +5 -0
  322. package/lib/divider/Divider.d.ts +2 -2
  323. package/lib/divider/index.d.ts +6 -1
  324. package/lib/dropdown-item/DropdownItem.d.ts +2 -2
  325. package/lib/dropdown-item/index.d.ts +6 -1
  326. package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
  327. package/lib/dropdown-menu/index.d.ts +6 -1
  328. package/lib/empty/Empty.d.ts +2 -2
  329. package/lib/empty/index.d.ts +6 -1
  330. package/lib/field/Field.d.ts +2 -2
  331. package/lib/field/Field.js +4 -4
  332. package/lib/field/index.d.ts +6 -1
  333. package/lib/field/types.d.ts +1 -1
  334. package/lib/field/utils.d.ts +2 -0
  335. package/lib/field/utils.js +13 -0
  336. package/lib/form/Form.d.ts +2 -2
  337. package/lib/form/index.d.ts +6 -1
  338. package/lib/grid/Grid.d.ts +2 -2
  339. package/lib/grid/index.d.ts +6 -1
  340. package/lib/grid-item/GridItem.d.ts +66 -5
  341. package/lib/grid-item/GridItem.js +7 -5
  342. package/lib/grid-item/index.d.ts +48 -2
  343. package/lib/icon/Icon.d.ts +66 -5
  344. package/lib/icon/Icon.js +5 -4
  345. package/lib/icon/index.css +1 -1
  346. package/lib/icon/index.d.ts +48 -2
  347. package/lib/image/Image.d.ts +2 -2
  348. package/lib/image/index.d.ts +6 -1
  349. package/lib/image-preview/ImagePreview.d.ts +6 -2
  350. package/lib/image-preview/ImagePreview.js +2 -1
  351. package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
  352. package/lib/image-preview/function-call.d.ts +4 -1
  353. package/lib/image-preview/function-call.js +1 -0
  354. package/lib/image-preview/index.d.ts +5 -0
  355. package/lib/image-preview/types.d.ts +1 -0
  356. package/lib/index-anchor/IndexAnchor.d.ts +2 -2
  357. package/lib/index-anchor/index.d.ts +6 -1
  358. package/lib/index-bar/IndexBar.d.ts +2 -2
  359. package/lib/index-bar/index.d.ts +6 -1
  360. package/lib/index.css +1 -1
  361. package/lib/index.d.ts +1 -1
  362. package/lib/index.js +1 -1
  363. package/lib/list/List.d.ts +2 -2
  364. package/lib/list/index.d.ts +6 -1
  365. package/lib/loading/Loading.d.ts +2 -2
  366. package/lib/loading/index.d.ts +6 -1
  367. package/lib/nav-bar/NavBar.d.ts +2 -2
  368. package/lib/nav-bar/index.d.ts +6 -1
  369. package/lib/notice-bar/NoticeBar.d.ts +2 -2
  370. package/lib/notice-bar/index.d.ts +6 -1
  371. package/lib/notify/Notify.d.ts +14 -3
  372. package/lib/notify/Notify.js +2 -1
  373. package/lib/notify/function-call.d.ts +9 -2
  374. package/lib/notify/function-call.js +1 -0
  375. package/lib/notify/index.d.ts +5 -0
  376. package/lib/notify/types.d.ts +2 -0
  377. package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
  378. package/lib/number-keyboard/NumberKeyboardKey.d.ts +3 -3
  379. package/lib/number-keyboard/index.d.ts +6 -1
  380. package/lib/overlay/Overlay.d.ts +2 -2
  381. package/lib/overlay/index.d.ts +6 -1
  382. package/lib/pagination/Pagination.d.ts +2 -2
  383. package/lib/pagination/Pagination.js +3 -3
  384. package/lib/pagination/index.d.ts +6 -1
  385. package/lib/password-input/PasswordInput.d.ts +2 -2
  386. package/lib/password-input/index.d.ts +6 -1
  387. package/lib/picker/Picker.d.ts +2 -2
  388. package/lib/picker/Picker.js +21 -13
  389. package/lib/picker/PickerColumn.d.ts +1 -1
  390. package/lib/picker/index.d.ts +6 -1
  391. package/lib/popover/Popover.d.ts +2 -2
  392. package/lib/popover/Popover.js +18 -8
  393. package/lib/popover/index.d.ts +6 -1
  394. package/lib/popup/Popup.d.ts +5 -6
  395. package/lib/popup/Popup.js +5 -3
  396. package/lib/popup/index.d.ts +16 -10
  397. package/lib/popup/shared.d.ts +1 -1
  398. package/lib/popup/types.d.ts +5 -0
  399. package/lib/popup/types.js +3 -0
  400. package/lib/progress/Progress.d.ts +2 -2
  401. package/lib/progress/index.d.ts +6 -1
  402. package/lib/pull-refresh/PullRefresh.d.ts +2 -2
  403. package/lib/pull-refresh/index.css +1 -1
  404. package/lib/pull-refresh/index.d.ts +6 -1
  405. package/lib/pull-refresh/index.less +0 -1
  406. package/lib/radio/Radio.d.ts +2 -2
  407. package/lib/radio/index.d.ts +6 -1
  408. package/lib/radio-group/RadioGroup.d.ts +2 -2
  409. package/lib/radio-group/index.d.ts +6 -1
  410. package/lib/rate/Rate.d.ts +2 -2
  411. package/lib/rate/index.d.ts +6 -1
  412. package/lib/row/Row.d.ts +2 -2
  413. package/lib/row/index.d.ts +6 -1
  414. package/lib/search/Search.d.ts +8 -2
  415. package/lib/search/Search.js +19 -1
  416. package/lib/search/index.d.ts +12 -1
  417. package/lib/share-sheet/ShareSheet.d.ts +2 -2
  418. package/lib/share-sheet/index.d.ts +6 -1
  419. package/lib/sidebar/Sidebar.d.ts +2 -2
  420. package/lib/sidebar/index.d.ts +6 -1
  421. package/lib/sidebar-item/SidebarItem.d.ts +65 -4
  422. package/lib/sidebar-item/SidebarItem.js +6 -5
  423. package/lib/sidebar-item/index.d.ts +47 -1
  424. package/lib/skeleton/Skeleton.d.ts +2 -2
  425. package/lib/skeleton/index.d.ts +6 -1
  426. package/lib/slider/Slider.d.ts +4 -4
  427. package/lib/slider/index.d.ts +8 -3
  428. package/lib/ssr.js +2 -2
  429. package/lib/step/Step.d.ts +1 -1
  430. package/lib/step/Step.js +1 -1
  431. package/lib/step/index.d.ts +6 -1
  432. package/lib/stepper/Stepper.d.ts +2 -2
  433. package/lib/stepper/index.d.ts +6 -1
  434. package/lib/steps/Steps.d.ts +2 -2
  435. package/lib/steps/index.d.ts +6 -1
  436. package/lib/sticky/Sticky.d.ts +2 -2
  437. package/lib/sticky/index.d.ts +6 -1
  438. package/lib/submit-bar/SubmitBar.d.ts +2 -2
  439. package/lib/submit-bar/index.d.ts +6 -1
  440. package/lib/swipe/Swipe.d.ts +2 -2
  441. package/lib/swipe/Swipe.js +34 -30
  442. package/lib/swipe/index.d.ts +6 -1
  443. package/lib/swipe-cell/SwipeCell.d.ts +2 -2
  444. package/lib/swipe-cell/SwipeCell.js +8 -5
  445. package/lib/swipe-cell/index.d.ts +6 -1
  446. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  447. package/lib/swipe-item/index.d.ts +6 -1
  448. package/lib/switch/Switch.d.ts +2 -2
  449. package/lib/switch/index.d.ts +6 -1
  450. package/lib/tab/Tab.d.ts +2 -2
  451. package/lib/tab/index.d.ts +6 -1
  452. package/lib/tabbar/Tabbar.d.ts +2 -2
  453. package/lib/tabbar/index.d.ts +6 -1
  454. package/lib/tabbar-item/TabbarItem.d.ts +65 -4
  455. package/lib/tabbar-item/TabbarItem.js +5 -4
  456. package/lib/tabbar-item/index.d.ts +47 -1
  457. package/lib/tabs/Tabs.d.ts +7 -2
  458. package/lib/tabs/Tabs.js +18 -10
  459. package/lib/tabs/TabsContent.d.ts +1 -1
  460. package/lib/tabs/TabsTitle.d.ts +6 -5
  461. package/lib/tabs/TabsTitle.js +10 -5
  462. package/lib/tabs/index.css +1 -1
  463. package/lib/tabs/index.d.ts +10 -1
  464. package/lib/tabs/index.less +43 -35
  465. package/lib/tag/Tag.d.ts +2 -2
  466. package/lib/tag/index.d.ts +6 -1
  467. package/lib/toast/Toast.d.ts +4 -4
  468. package/lib/toast/function-call.d.ts +2 -2
  469. package/lib/tree-select/TreeSelect.d.ts +2 -2
  470. package/lib/tree-select/index.css +1 -1
  471. package/lib/tree-select/index.d.ts +6 -1
  472. package/lib/tree-select/index.less +1 -1
  473. package/lib/uploader/Uploader.d.ts +3 -3
  474. package/lib/uploader/UploaderPreviewItem.d.ts +2 -2
  475. package/lib/uploader/index.d.ts +6 -1
  476. package/lib/vant.cjs.js +223 -129
  477. package/lib/vant.cjs.min.js +1 -1
  478. package/lib/vant.es.js +224 -130
  479. package/lib/vant.es.min.js +224 -130
  480. package/lib/vant.js +391 -171
  481. package/lib/vant.min.js +1 -1
  482. package/package.json +17 -13
  483. package/vetur/attributes.json +365 -330
  484. package/vetur/tags.json +115 -107
  485. package/vetur/web-types.json +1265 -1167
package/lib/index.d.ts CHANGED
@@ -90,4 +90,4 @@ declare namespace _default {
90
90
  }
91
91
  export default _default;
92
92
  export function install(app: any): void;
93
- export const version: "3.3.4";
93
+ export const version: "3.4.0";
package/lib/index.js CHANGED
@@ -782,7 +782,7 @@ Object.keys(_uploader).forEach(function (key) {
782
782
  if (key in exports && exports[key] === _uploader[key]) return;
783
783
  exports[key] = _uploader[key];
784
784
  });
785
- var version = '3.3.4';
785
+ var version = '3.4.0';
786
786
  exports.version = version;
787
787
 
788
788
  function install(app) {
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  import type { ListDirection } from './types';
3
3
  declare const listProps: {
4
4
  error: BooleanConstructor;
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  type: BooleanConstructor;
41
41
  default: true;
42
42
  };
43
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
43
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
44
44
  error?: unknown;
45
45
  offset?: unknown;
46
46
  loading?: unknown;
@@ -18,7 +18,7 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
18
18
  type: BooleanConstructor;
19
19
  default: true;
20
20
  };
21
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
21
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("load" | "update:error" | "update:loading")[], "load" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
22
22
  error?: unknown;
23
23
  offset?: unknown;
24
24
  loading?: unknown;
@@ -54,3 +54,8 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
54
54
  export default List;
55
55
  export type { ListProps };
56
56
  export type { ListInstance, ListDirection } from './types';
57
+ declare module 'vue' {
58
+ interface GlobalComponents {
59
+ VanList: typeof List;
60
+ }
61
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  export declare type LoadingType = 'circular' | 'spinner';
3
3
  declare const loadingProps: {
4
4
  size: (NumberConstructor | StringConstructor)[];
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
22
22
  vertical: BooleanConstructor;
23
23
  textSize: (NumberConstructor | StringConstructor)[];
24
24
  textColor: StringConstructor;
25
- }, () => 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<{
25
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
26
26
  size?: unknown;
27
27
  type?: unknown;
28
28
  color?: unknown;
@@ -8,7 +8,7 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
8
8
  vertical: BooleanConstructor;
9
9
  textSize: (NumberConstructor | StringConstructor)[];
10
10
  textColor: 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
  size?: unknown;
13
13
  type?: unknown;
14
14
  color?: unknown;
@@ -29,3 +29,8 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
29
29
  }>>;
30
30
  export default Loading;
31
31
  export type { LoadingType, LoadingProps } from './Loading';
32
+ declare module 'vue' {
33
+ interface GlobalComponents {
34
+ VanLoading: typeof Loading;
35
+ }
36
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  declare const navBarProps: {
3
3
  title: StringConstructor;
4
4
  fixed: BooleanConstructor;
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
27
27
  leftArrow: BooleanConstructor;
28
28
  placeholder: BooleanConstructor;
29
29
  safeAreaInsetTop: BooleanConstructor;
30
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-left" | "click-right")[], "click-left" | "click-right", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
30
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-left" | "click-right")[], "click-left" | "click-right", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
31
31
  title?: unknown;
32
32
  fixed?: unknown;
33
33
  zIndex?: unknown;
@@ -11,7 +11,7 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
11
11
  leftArrow: BooleanConstructor;
12
12
  placeholder: BooleanConstructor;
13
13
  safeAreaInsetTop: BooleanConstructor;
14
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-left" | "click-right")[], "click-left" | "click-right", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
14
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-left" | "click-right")[], "click-left" | "click-right", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
15
15
  title?: unknown;
16
16
  fixed?: unknown;
17
17
  zIndex?: unknown;
@@ -44,3 +44,8 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
44
44
  }>>;
45
45
  export default NavBar;
46
46
  export type { NavBarProps } from './NavBar';
47
+ declare module 'vue' {
48
+ interface GlobalComponents {
49
+ VanNavBar: typeof NavBar;
50
+ }
51
+ }
@@ -1,4 +1,4 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type ExtractPropTypes } from 'vue';
2
2
  import { NoticeBarMode } from './types';
3
3
  declare const noticeBarProps: {
4
4
  text: StringConstructor;
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  type: PropType<boolean | null>;
41
41
  default: null;
42
42
  };
43
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
43
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
44
44
  text?: unknown;
45
45
  mode?: unknown;
46
46
  color?: unknown;
@@ -18,7 +18,7 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
18
18
  type: import("vue").PropType<boolean | null>;
19
19
  default: null;
20
20
  };
21
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
21
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "replay")[], "close" | "replay", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
22
22
  text?: unknown;
23
23
  mode?: unknown;
24
24
  color?: unknown;
@@ -51,3 +51,8 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
51
51
  export default NoticeBar;
52
52
  export type { NoticeBarProps };
53
53
  export type { NoticeBarMode, NoticeBarInstance } from './types';
54
+ declare module 'vue' {
55
+ interface GlobalComponents {
56
+ VanNoticeBar: typeof NoticeBar;
57
+ }
58
+ }
@@ -1,5 +1,5 @@
1
- import { ExtractPropTypes } from 'vue';
2
- import type { NotifyType } from './types';
1
+ import { type ExtractPropTypes } from 'vue';
2
+ import type { NotifyType, NotifyPosition } from './types';
3
3
  declare const notifyProps: {
4
4
  show: BooleanConstructor;
5
5
  zIndex: (NumberConstructor | StringConstructor)[];
@@ -32,6 +32,10 @@ declare const notifyProps: {
32
32
  };
33
33
  color: StringConstructor;
34
34
  message: (NumberConstructor | StringConstructor)[];
35
+ position: {
36
+ type: import("vue").PropType<NotifyPosition>;
37
+ default: NotifyPosition;
38
+ };
35
39
  className: import("vue").PropType<unknown>;
36
40
  background: StringConstructor;
37
41
  lockScroll: BooleanConstructor;
@@ -69,10 +73,14 @@ declare const _default: import("vue").DefineComponent<{
69
73
  };
70
74
  color: StringConstructor;
71
75
  message: (NumberConstructor | StringConstructor)[];
76
+ position: {
77
+ type: import("vue").PropType<NotifyPosition>;
78
+ default: NotifyPosition;
79
+ };
72
80
  className: import("vue").PropType<unknown>;
73
81
  background: StringConstructor;
74
82
  lockScroll: BooleanConstructor;
75
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
83
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
76
84
  show?: unknown;
77
85
  zIndex?: unknown;
78
86
  overlay?: unknown;
@@ -88,10 +96,12 @@ declare const _default: import("vue").DefineComponent<{
88
96
  type?: unknown;
89
97
  color?: unknown;
90
98
  message?: unknown;
99
+ position?: unknown;
91
100
  className?: unknown;
92
101
  background?: unknown;
93
102
  } & {
94
103
  type: NotifyType;
104
+ position: NotifyPosition;
95
105
  overlay: boolean;
96
106
  show: boolean;
97
107
  lockScroll: boolean;
@@ -113,6 +123,7 @@ declare const _default: import("vue").DefineComponent<{
113
123
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
114
124
  }, {
115
125
  type: NotifyType;
126
+ position: NotifyPosition;
116
127
  overlay: boolean;
117
128
  show: boolean;
118
129
  lockScroll: boolean;
@@ -16,6 +16,7 @@ var notifyProps = (0, _utils.extend)({}, _shared.popupSharedProps, {
16
16
  type: (0, _utils.makeStringProp)('danger'),
17
17
  color: String,
18
18
  message: _utils.numericProp,
19
+ position: (0, _utils.makeStringProp)('top'),
19
20
  className: _utils.unknownProp,
20
21
  background: String,
21
22
  lockScroll: Boolean
@@ -42,7 +43,7 @@ var _default = (0, _vue.defineComponent)({
42
43
  background: props.background
43
44
  },
44
45
  "overlay": false,
45
- "position": "top",
46
+ "position": props.position,
46
47
  "duration": 0.2,
47
48
  "lockScroll": props.lockScroll,
48
49
  "onUpdate:show": updateShow
@@ -1,5 +1,5 @@
1
1
  import { App } from 'vue';
2
- import { ComponentInstance } from '../utils';
2
+ import { type ComponentInstance } from '../utils';
3
3
  import type { NotifyMessage, NotifyOptions } from './types';
4
4
  declare function Notify(options: NotifyMessage | NotifyOptions): ComponentInstance | undefined;
5
5
  declare namespace Notify {
@@ -39,10 +39,14 @@ declare namespace Notify {
39
39
  };
40
40
  color: StringConstructor;
41
41
  message: (NumberConstructor | StringConstructor)[];
42
+ position: {
43
+ type: import("vue").PropType<import("./types").NotifyPosition>;
44
+ default: import("./types").NotifyPosition;
45
+ };
42
46
  className: import("vue").PropType<unknown>;
43
47
  background: StringConstructor;
44
48
  lockScroll: BooleanConstructor;
45
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
49
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
46
50
  show?: unknown;
47
51
  zIndex?: unknown;
48
52
  overlay?: unknown;
@@ -58,10 +62,12 @@ declare namespace Notify {
58
62
  type?: unknown;
59
63
  color?: unknown;
60
64
  message?: unknown;
65
+ position?: unknown;
61
66
  className?: unknown;
62
67
  background?: unknown;
63
68
  } & {
64
69
  type: import("./types").NotifyType;
70
+ position: import("./types").NotifyPosition;
65
71
  overlay: boolean;
66
72
  show: boolean;
67
73
  lockScroll: boolean;
@@ -83,6 +89,7 @@ declare namespace Notify {
83
89
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
84
90
  }, {
85
91
  type: import("./types").NotifyType;
92
+ position: import("./types").NotifyPosition;
86
93
  overlay: boolean;
87
94
  show: boolean;
88
95
  lockScroll: boolean;
@@ -65,6 +65,7 @@ var getDefaultOptions = () => ({
65
65
  onClick: undefined,
66
66
  onOpened: undefined,
67
67
  duration: 3000,
68
+ position: undefined,
68
69
  className: '',
69
70
  lockScroll: false,
70
71
  background: undefined
@@ -3,3 +3,8 @@ export default Notify;
3
3
  export { Notify };
4
4
  export type { NotifyProps } from './Notify';
5
5
  export type { NotifyType, NotifyOptions } from './types';
6
+ declare module 'vue' {
7
+ interface GlobalComponents {
8
+ VanNotify: typeof Notify.Component;
9
+ }
10
+ }
@@ -1,11 +1,13 @@
1
1
  import { Notify } from './function-call';
2
2
  export declare type NotifyMessage = string | number;
3
3
  export declare type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
4
+ export declare type NotifyPosition = 'top' | 'bottom';
4
5
  export declare type NotifyOptions = {
5
6
  type?: NotifyType;
6
7
  color?: string;
7
8
  message?: NotifyMessage;
8
9
  duration?: number;
10
+ position?: NotifyPosition;
9
11
  className?: unknown;
10
12
  background?: string;
11
13
  lockScroll?: boolean;
@@ -1,4 +1,4 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type ExtractPropTypes } from 'vue';
2
2
  export declare type NumberKeyboardTheme = 'default' | 'custom';
3
3
  declare const numberKeyboardProps: {
4
4
  show: BooleanConstructor;
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
92
92
  type: PropType<string | string[]>;
93
93
  default: string;
94
94
  };
95
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete")[], "input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
95
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete")[], "input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
96
96
  show?: unknown;
97
97
  title?: unknown;
98
98
  theme?: unknown;
@@ -1,4 +1,4 @@
1
- import { PropType } from 'vue';
1
+ import { type PropType } from 'vue';
2
2
  export declare type KeyType = '' | 'delete' | 'extra' | 'close';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  type: PropType<KeyType>;
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
7
7
  wider: BooleanConstructor;
8
8
  large: BooleanConstructor;
9
9
  loading: BooleanConstructor;
10
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "press"[], "press", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
10
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "press"[], "press", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
11
11
  type?: unknown;
12
12
  text?: unknown;
13
13
  color?: unknown;
@@ -20,8 +20,8 @@ declare const _default: import("vue").DefineComponent<{
20
20
  wider: boolean;
21
21
  } & {
22
22
  text?: string | number | undefined;
23
- type?: KeyType | undefined;
24
23
  color?: string | undefined;
24
+ type?: KeyType | undefined;
25
25
  }> & {
26
26
  onPress?: ((...args: any[]) => any) | undefined;
27
27
  }, {
@@ -43,7 +43,7 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
43
43
  type: import("vue").PropType<string | string[]>;
44
44
  default: string;
45
45
  };
46
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete")[], "input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
46
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete")[], "input" | "blur" | "update:modelValue" | "hide" | "show" | "close" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
47
47
  show?: unknown;
48
48
  title?: unknown;
49
49
  theme?: unknown;
@@ -104,3 +104,8 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
104
104
  }>>;
105
105
  export default NumberKeyboard;
106
106
  export type { NumberKeyboardProps, NumberKeyboardTheme, } from './NumberKeyboard';
107
+ declare module 'vue' {
108
+ interface GlobalComponents {
109
+ VanNumberKeyboard: typeof NumberKeyboard;
110
+ }
111
+ }
@@ -1,4 +1,4 @@
1
- import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
2
2
  declare const overlayProps: {
3
3
  show: BooleanConstructor;
4
4
  zIndex: (NumberConstructor | StringConstructor)[];
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  default: true;
22
22
  };
23
23
  customStyle: PropType<CSSProperties>;
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
  show?: unknown;
26
26
  zIndex?: unknown;
27
27
  duration?: unknown;
@@ -8,7 +8,7 @@ export declare const Overlay: import("../utils").WithInstall<import("vue").Defin
8
8
  default: true;
9
9
  };
10
10
  customStyle: import("vue").PropType<import("vue").CSSProperties>;
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
  show?: unknown;
13
13
  zIndex?: unknown;
14
14
  duration?: unknown;
@@ -29,3 +29,8 @@ export declare const Overlay: import("../utils").WithInstall<import("vue").Defin
29
29
  }>>;
30
30
  export default Overlay;
31
31
  export type { OverlayProps } from './Overlay';
32
+ declare module 'vue' {
33
+ interface GlobalComponents {
34
+ VanOverlay: typeof Overlay;
35
+ }
36
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  export declare type PaginationMode = 'simple' | 'multi';
3
3
  declare const paginationProps: {
4
4
  mode: {
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
58
58
  default: number;
59
59
  };
60
60
  forceEllipses: BooleanConstructor;
61
- }, () => 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<{
61
+ }, () => 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<{
62
62
  mode?: unknown;
63
63
  prevText?: unknown;
64
64
  nextText?: unknown;
@@ -127,7 +127,7 @@ var _default = (0, _vue.defineComponent)({
127
127
  }, [(0, _vue.createVNode)("button", {
128
128
  "type": "button",
129
129
  "disabled": disabled,
130
- "onClick": () => updateModelValue(modelValue - 1)
130
+ "onClick": () => updateModelValue(modelValue - 1, true)
131
131
  }, [slot ? slot() : props.prevText || t('prev')])]);
132
132
  };
133
133
 
@@ -147,7 +147,7 @@ var _default = (0, _vue.defineComponent)({
147
147
  }, [(0, _vue.createVNode)("button", {
148
148
  "type": "button",
149
149
  "disabled": disabled,
150
- "onClick": () => updateModelValue(modelValue + 1)
150
+ "onClick": () => updateModelValue(modelValue + 1, true)
151
151
  }, [slot ? slot() : props.nextText || t('next')])]);
152
152
  };
153
153
 
@@ -159,7 +159,7 @@ var _default = (0, _vue.defineComponent)({
159
159
  }, [(0, _vue.createVNode)("button", {
160
160
  "type": "button",
161
161
  "aria-current": page.active || undefined,
162
- "onClick": () => updateModelValue(page.number)
162
+ "onClick": () => updateModelValue(page.number, true)
163
163
  }, [slots.page ? slots.page(page) : page.text])]));
164
164
 
165
165
  return () => (0, _vue.createVNode)("nav", {
@@ -26,7 +26,7 @@ export declare const Pagination: import("../utils").WithInstall<import("vue").De
26
26
  default: number;
27
27
  };
28
28
  forceEllipses: BooleanConstructor;
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
  mode?: unknown;
31
31
  prevText?: unknown;
32
32
  nextText?: unknown;
@@ -61,3 +61,8 @@ export declare const Pagination: import("../utils").WithInstall<import("vue").De
61
61
  }>>;
62
62
  export default Pagination;
63
63
  export type { PaginationMode, PaginationProps } from './Pagination';
64
+ declare module 'vue' {
65
+ interface GlobalComponents {
66
+ VanPagination: typeof Pagination;
67
+ }
68
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  declare const passwordInputProps: {
3
3
  info: StringConstructor;
4
4
  mask: {
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
35
35
  };
36
36
  focused: BooleanConstructor;
37
37
  errorInfo: StringConstructor;
38
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
38
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
39
39
  info?: unknown;
40
40
  mask?: unknown;
41
41
  value?: unknown;
@@ -15,7 +15,7 @@ export declare const PasswordInput: import("../utils").WithInstall<import("vue")
15
15
  };
16
16
  focused: BooleanConstructor;
17
17
  errorInfo: StringConstructor;
18
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "focus"[], "focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
19
19
  info?: unknown;
20
20
  mask?: unknown;
21
21
  value?: unknown;
@@ -42,3 +42,8 @@ export declare const PasswordInput: import("../utils").WithInstall<import("vue")
42
42
  }>>;
43
43
  export default PasswordInput;
44
44
  export type { PasswordInputProps } from './PasswordInput';
45
+ declare module 'vue' {
46
+ interface GlobalComponents {
47
+ VanPasswordInput: typeof PasswordInput;
48
+ }
49
+ }
@@ -1,4 +1,4 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type ExtractPropTypes } from 'vue';
2
2
  import type { PickerColumn, PickerOption, PickerFieldNames, PickerToolbarPosition } from './types';
3
3
  export declare const pickerSharedProps: {
4
4
  title: StringConstructor;
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
102
102
  default: PickerToolbarPosition;
103
103
  };
104
104
  columnsFieldNames: PropType<PickerFieldNames>;
105
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "cancel" | "confirm")[], "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
105
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "cancel" | "confirm")[], "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
106
106
  title?: unknown;
107
107
  loading?: unknown;
108
108
  readonly?: unknown;
@@ -337,28 +337,36 @@ var _default = (0, _vue.defineComponent)({
337
337
  });
338
338
  });
339
339
 
340
+ var renderMask = wrapHeight => {
341
+ var hasOptions = formattedColumns.value.some(item => item[valuesKey] && item[valuesKey].length !== 0);
342
+
343
+ if (hasOptions) {
344
+ var frameStyle = {
345
+ height: itemHeight.value + "px"
346
+ };
347
+ var maskStyle = {
348
+ backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
349
+ };
350
+ return [(0, _vue.createVNode)("div", {
351
+ "class": bem('mask'),
352
+ "style": maskStyle
353
+ }, null), (0, _vue.createVNode)("div", {
354
+ "class": [_utils.BORDER_UNSET_TOP_BOTTOM, bem('frame')],
355
+ "style": frameStyle
356
+ }, null)];
357
+ }
358
+ };
359
+
340
360
  var renderColumns = () => {
341
361
  var wrapHeight = itemHeight.value * +props.visibleItemCount;
342
- var frameStyle = {
343
- height: itemHeight.value + "px"
344
- };
345
362
  var columnsStyle = {
346
363
  height: wrapHeight + "px"
347
364
  };
348
- var maskStyle = {
349
- backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
350
- };
351
365
  return (0, _vue.createVNode)("div", {
352
366
  "class": bem('columns'),
353
367
  "style": columnsStyle,
354
368
  "onTouchmove": _utils.preventDefault
355
- }, [renderColumnItems(), (0, _vue.createVNode)("div", {
356
- "class": bem('mask'),
357
- "style": maskStyle
358
- }, null), (0, _vue.createVNode)("div", {
359
- "class": [_utils.BORDER_UNSET_TOP_BOTTOM, bem('frame')],
360
- "style": frameStyle
361
- }, null)]);
369
+ }, [renderColumnItems(), renderMask(wrapHeight)]);
362
370
  };
363
371
 
364
372
  (0, _vue.watch)(() => props.columns, format, {
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
28
28
  type: (NumberConstructor | StringConstructor)[];
29
29
  required: true;
30
30
  };
31
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
31
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
32
32
  textKey?: unknown;
33
33
  readonly?: unknown;
34
34
  allowHtml?: unknown;
@@ -37,7 +37,7 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
37
37
  default: import("./types").PickerToolbarPosition;
38
38
  };
39
39
  columnsFieldNames: import("vue").PropType<import("./types").PickerFieldNames>;
40
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "cancel" | "confirm")[], "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
40
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "cancel" | "confirm")[], "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
41
41
  title?: unknown;
42
42
  loading?: unknown;
43
43
  readonly?: unknown;
@@ -89,3 +89,8 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
89
89
  export default Picker;
90
90
  export type { PickerProps };
91
91
  export type { PickerColumn, PickerOption, PickerInstance, PickerFieldNames, PickerObjectColumn, PickerObjectOption, PickerToolbarPosition, } from './types';
92
+ declare module 'vue' {
93
+ interface GlobalComponents {
94
+ VanPicker: typeof Picker;
95
+ }
96
+ }
@@ -1,4 +1,4 @@
1
- import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
2
2
  import { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement } from './types';
3
3
  declare const popoverProps: {
4
4
  show: BooleanConstructor;
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
96
96
  type: PropType<string | import("vue").RendererElement | null | undefined>;
97
97
  default: string;
98
98
  };
99
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
99
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
100
100
  show?: unknown;
101
101
  theme?: unknown;
102
102
  overlay?: unknown;