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/vant.cjs.js CHANGED
@@ -479,7 +479,8 @@ var badgeProps = {
479
479
  color: String,
480
480
  offset: Array,
481
481
  content: numericProp,
482
- showZero: truthProp
482
+ showZero: truthProp,
483
+ position: makeStringProp("top-right")
483
484
  };
484
485
  var _Badge = vue.defineComponent({
485
486
  name: name$1t,
@@ -537,10 +538,10 @@ var _Badge = vue.defineComponent({
537
538
  var renderBadge = () => {
538
539
  if (hasContent() || props.dot) {
539
540
  return vue.createVNode("div", {
540
- "class": bem$1p({
541
+ "class": bem$1p([props.position, {
541
542
  dot: props.dot,
542
543
  fixed: !!slots.default
543
- }),
544
+ }]),
544
545
  "style": style.value
545
546
  }, [renderContent()]);
546
547
  }
@@ -605,6 +606,7 @@ var iconProps = {
605
606
  size: numericProp,
606
607
  badge: numericProp,
607
608
  color: String,
609
+ badgeProps: Object,
608
610
  classPrefix: String
609
611
  };
610
612
  var _Icon = vue.defineComponent({
@@ -626,16 +628,16 @@ var _Icon = vue.defineComponent({
626
628
  color
627
629
  } = props;
628
630
  var isImageIcon = isImage(name2);
629
- return vue.createVNode(Badge, {
631
+ return vue.createVNode(Badge, vue.mergeProps({
630
632
  "dot": dot,
631
633
  "tag": tag,
632
- "content": badge,
633
634
  "class": [classPrefix.value, isImageIcon ? "" : classPrefix.value + "-" + name2],
634
635
  "style": {
635
636
  color,
636
637
  fontSize: addUnit(size)
637
- }
638
- }, {
638
+ },
639
+ "content": badge
640
+ }, props.badgeProps), {
639
641
  default: () => [slots.default == null ? void 0 : slots.default(), isImageIcon && vue.createVNode("img", {
640
642
  "class": bem$1n("image"),
641
643
  "src": name2
@@ -918,6 +920,7 @@ var actionBarIconProps = extend({}, routeProps, {
918
920
  color: String,
919
921
  badge: numericProp,
920
922
  iconClass: unknownProp,
923
+ badgeProps: Object,
921
924
  iconPrefix: String
922
925
  });
923
926
  var _ActionBarIcon = vue.defineComponent({
@@ -936,14 +939,15 @@ var _ActionBarIcon = vue.defineComponent({
936
939
  icon,
937
940
  color,
938
941
  iconClass,
942
+ badgeProps: badgeProps2,
939
943
  iconPrefix
940
944
  } = props;
941
945
  if (slots.icon) {
942
- return vue.createVNode(Badge, {
946
+ return vue.createVNode(Badge, vue.mergeProps({
943
947
  "dot": dot,
944
- "content": badge,
945
- "class": bem$1j("icon")
946
- }, {
948
+ "class": bem$1j("icon"),
949
+ "content": badge
950
+ }, badgeProps2), {
947
951
  default: slots.icon
948
952
  });
949
953
  }
@@ -954,6 +958,7 @@ var _ActionBarIcon = vue.defineComponent({
954
958
  "badge": badge,
955
959
  "color": color,
956
960
  "class": [bem$1j("icon"), iconClass],
961
+ "badgeProps": badgeProps2,
957
962
  "classPrefix": iconPrefix
958
963
  }, null);
959
964
  };
@@ -981,12 +986,11 @@ var popupSharedProps = {
981
986
  closeOnClickOverlay: truthProp
982
987
  };
983
988
  var popupSharedPropKeys = Object.keys(popupSharedProps);
984
- var MIN_DISTANCE = 10;
985
989
  function getDirection(x, y) {
986
- if (x > y && x > MIN_DISTANCE) {
990
+ if (x > y) {
987
991
  return "horizontal";
988
992
  }
989
- if (y > x && y > MIN_DISTANCE) {
993
+ if (y > x) {
990
994
  return "vertical";
991
995
  }
992
996
  return "";
@@ -1019,7 +1023,8 @@ function useTouch() {
1019
1023
  deltaY.value = touch.clientY - startY.value;
1020
1024
  offsetX.value = Math.abs(deltaX.value);
1021
1025
  offsetY.value = Math.abs(deltaY.value);
1022
- if (!direction.value) {
1026
+ var LOCK_DIRECTION_DISTANCE = 10;
1027
+ if (!direction.value || offsetX.value < LOCK_DIRECTION_DISTANCE && offsetY.value < LOCK_DIRECTION_DISTANCE) {
1023
1028
  direction.value = getDirection(offsetX.value, offsetY.value);
1024
1029
  }
1025
1030
  };
@@ -1283,10 +1288,11 @@ var _Popup = vue.defineComponent({
1283
1288
  default: renderPopup
1284
1289
  });
1285
1290
  };
1286
- vue.watch(() => props.show, (value) => {
1287
- if (value) {
1291
+ vue.watch(() => props.show, (show) => {
1292
+ if (show && !opened) {
1288
1293
  open();
1289
- } else {
1294
+ }
1295
+ if (!show && opened) {
1290
1296
  opened = false;
1291
1297
  emit("close");
1292
1298
  }
@@ -1382,34 +1388,43 @@ var _ActionSheet = vue.defineComponent({
1382
1388
  }, [slots.cancel ? slots.cancel() : props.cancelText])];
1383
1389
  }
1384
1390
  };
1385
- var renderOption = (item, index2) => {
1391
+ var renderActionContent = (action, index2) => {
1392
+ if (action.loading) {
1393
+ return vue.createVNode(Loading, {
1394
+ "class": bem$1g("loading-icon")
1395
+ }, null);
1396
+ }
1397
+ if (slots.action) {
1398
+ return slots.action({
1399
+ action,
1400
+ index: index2
1401
+ });
1402
+ }
1403
+ return [vue.createVNode("span", {
1404
+ "class": bem$1g("name")
1405
+ }, [action.name]), action.subname && vue.createVNode("div", {
1406
+ "class": bem$1g("subname")
1407
+ }, [action.subname])];
1408
+ };
1409
+ var renderAction = (action, index2) => {
1386
1410
  var {
1387
- name: name2,
1388
1411
  color,
1389
- subname,
1390
1412
  loading,
1391
1413
  callback,
1392
1414
  disabled,
1393
1415
  className
1394
- } = item;
1395
- var Content = loading ? vue.createVNode(Loading, {
1396
- "class": bem$1g("loading-icon")
1397
- }, null) : [vue.createVNode("span", {
1398
- "class": bem$1g("name")
1399
- }, [name2]), subname && vue.createVNode("div", {
1400
- "class": bem$1g("subname")
1401
- }, [subname])];
1416
+ } = action;
1402
1417
  var onClick = () => {
1403
1418
  if (disabled || loading) {
1404
1419
  return;
1405
1420
  }
1406
1421
  if (callback) {
1407
- callback(item);
1422
+ callback(action);
1408
1423
  }
1409
1424
  if (props.closeOnClickAction) {
1410
1425
  updateShow(false);
1411
1426
  }
1412
- vue.nextTick(() => emit("select", item, index2));
1427
+ vue.nextTick(() => emit("select", action, index2));
1413
1428
  };
1414
1429
  return vue.createVNode("button", {
1415
1430
  "type": "button",
@@ -1421,7 +1436,7 @@ var _ActionSheet = vue.defineComponent({
1421
1436
  disabled
1422
1437
  }), className],
1423
1438
  "onClick": onClick
1424
- }, [Content]);
1439
+ }, [renderActionContent(action, index2)]);
1425
1440
  };
1426
1441
  var renderDescription = () => {
1427
1442
  if (props.description || slots.description) {
@@ -1438,7 +1453,7 @@ var _ActionSheet = vue.defineComponent({
1438
1453
  }, pick(props, popupInheritKeys$2)), {
1439
1454
  default: () => [renderHeader(), renderDescription(), vue.createVNode("div", {
1440
1455
  "class": bem$1g("content")
1441
- }, [props.actions.map(renderOption), slots.default == null ? void 0 : slots.default()]), renderCancel()]
1456
+ }, [props.actions.map(renderAction), slots.default == null ? void 0 : slots.default()]), renderCancel()]
1442
1457
  });
1443
1458
  }
1444
1459
  });
@@ -1926,28 +1941,34 @@ var _Picker = vue.defineComponent({
1926
1941
  option: slots.option
1927
1942
  });
1928
1943
  });
1944
+ var renderMask = (wrapHeight) => {
1945
+ var hasOptions = formattedColumns.value.some((item) => item[valuesKey] && item[valuesKey].length !== 0);
1946
+ if (hasOptions) {
1947
+ var frameStyle = {
1948
+ height: itemHeight.value + "px"
1949
+ };
1950
+ var maskStyle = {
1951
+ backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
1952
+ };
1953
+ return [vue.createVNode("div", {
1954
+ "class": bem$1e("mask"),
1955
+ "style": maskStyle
1956
+ }, null), vue.createVNode("div", {
1957
+ "class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
1958
+ "style": frameStyle
1959
+ }, null)];
1960
+ }
1961
+ };
1929
1962
  var renderColumns = () => {
1930
1963
  var wrapHeight = itemHeight.value * +props.visibleItemCount;
1931
- var frameStyle = {
1932
- height: itemHeight.value + "px"
1933
- };
1934
1964
  var columnsStyle = {
1935
1965
  height: wrapHeight + "px"
1936
1966
  };
1937
- var maskStyle = {
1938
- backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
1939
- };
1940
1967
  return vue.createVNode("div", {
1941
1968
  "class": bem$1e("columns"),
1942
1969
  "style": columnsStyle,
1943
1970
  "onTouchmove": preventDefault
1944
- }, [renderColumnItems(), vue.createVNode("div", {
1945
- "class": bem$1e("mask"),
1946
- "style": maskStyle
1947
- }, null), vue.createVNode("div", {
1948
- "class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
1949
- "style": frameStyle
1950
- }, null)]);
1971
+ }, [renderColumnItems(), renderMask(wrapHeight)]);
1951
1972
  };
1952
1973
  vue.watch(() => props.columns, format2, {
1953
1974
  immediate: true
@@ -2556,6 +2577,12 @@ function mapInputType(type) {
2556
2577
  type
2557
2578
  };
2558
2579
  }
2580
+ function getStringLength(str) {
2581
+ return [...str].length;
2582
+ }
2583
+ function cutString(str, maxlength) {
2584
+ return [...str].slice(0, maxlength).join("");
2585
+ }
2559
2586
  var current = 0;
2560
2587
  function useId() {
2561
2588
  var vm = vue.getCurrentInstance();
@@ -2730,12 +2757,12 @@ var _Field = vue.defineComponent({
2730
2757
  var {
2731
2758
  maxlength
2732
2759
  } = props;
2733
- if (isDef(maxlength) && value.length > maxlength) {
2760
+ if (isDef(maxlength) && getStringLength(value) > maxlength) {
2734
2761
  var modelValue = getModelValue();
2735
- if (modelValue && modelValue.length === +maxlength) {
2762
+ if (modelValue && getStringLength(modelValue) === +maxlength) {
2736
2763
  return modelValue;
2737
2764
  }
2738
- return value.slice(0, +maxlength);
2765
+ return cutString(value, +maxlength);
2739
2766
  }
2740
2767
  return value;
2741
2768
  };
@@ -2899,7 +2926,7 @@ var _Field = vue.defineComponent({
2899
2926
  };
2900
2927
  var renderWordLimit = () => {
2901
2928
  if (props.showWordLimit && props.maxlength) {
2902
- var count = getModelValue().length;
2929
+ var count = getStringLength(getModelValue());
2903
2930
  return vue.createVNode("div", {
2904
2931
  "class": bem$1a("word-limit")
2905
2932
  }, [vue.createVNode("span", {
@@ -4186,11 +4213,17 @@ function calcDateNum(date) {
4186
4213
  }
4187
4214
  function useRefs() {
4188
4215
  var refs = vue.ref([]);
4216
+ var cache = [];
4189
4217
  vue.onBeforeUpdate(() => {
4190
4218
  refs.value = [];
4191
4219
  });
4192
- var setRefs = (index2) => (el) => {
4193
- refs.value[index2] = el;
4220
+ var setRefs = (index2) => {
4221
+ if (!cache[index2]) {
4222
+ cache[index2] = (el) => {
4223
+ refs.value[index2] = el;
4224
+ };
4225
+ }
4226
+ return cache[index2];
4194
4227
  };
4195
4228
  return [refs, setRefs];
4196
4229
  }
@@ -4225,6 +4258,20 @@ function getTrueValue(value) {
4225
4258
  return parseInt(value, 10);
4226
4259
  }
4227
4260
  var getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
4261
+ var proxyPickerMethods = (picker, callback) => {
4262
+ var methods = ["setValues", "setIndexes", "setColumnIndex", "setColumnValue"];
4263
+ return new Proxy(picker, {
4264
+ get: (target, prop) => {
4265
+ if (methods.includes(prop)) {
4266
+ return function() {
4267
+ target[prop](...arguments);
4268
+ callback();
4269
+ };
4270
+ }
4271
+ return target[prop];
4272
+ }
4273
+ });
4274
+ };
4228
4275
  var useHeight = (element) => {
4229
4276
  var height = vue.ref();
4230
4277
  vue.onMounted(() => vue.nextTick(() => {
@@ -5424,16 +5471,19 @@ var TabsTitle = vue.defineComponent({
5424
5471
  color: String,
5425
5472
  title: String,
5426
5473
  badge: numericProp,
5474
+ shrink: Boolean,
5427
5475
  isActive: Boolean,
5428
5476
  disabled: Boolean,
5429
5477
  controls: String,
5430
5478
  scrollable: Boolean,
5431
5479
  activeColor: String,
5432
- renderTitle: Function,
5433
5480
  inactiveColor: String,
5434
5481
  showZeroBadge: truthProp
5435
5482
  },
5436
- setup(props) {
5483
+ setup(props, _ref) {
5484
+ var {
5485
+ slots
5486
+ } = _ref;
5437
5487
  var style = vue.computed(() => {
5438
5488
  var style2 = {};
5439
5489
  var {
@@ -5466,7 +5516,7 @@ var TabsTitle = vue.defineComponent({
5466
5516
  "class": bem$Y("text", {
5467
5517
  ellipsis: !props.scrollable
5468
5518
  })
5469
- }, [props.renderTitle ? props.renderTitle() : props.title]);
5519
+ }, [slots.title ? slots.title() : props.title]);
5470
5520
  if (props.dot || isDef(props.badge) && props.badge !== "") {
5471
5521
  return vue.createVNode(Badge, {
5472
5522
  "dot": props.dot,
@@ -5481,10 +5531,12 @@ var TabsTitle = vue.defineComponent({
5481
5531
  return () => vue.createVNode("div", {
5482
5532
  "id": props.id,
5483
5533
  "role": "tab",
5484
- "class": [bem$Y({
5534
+ "class": [bem$Y([props.type, {
5535
+ grow: props.scrollable && !props.shrink,
5536
+ shrink: props.shrink,
5485
5537
  active: props.isActive,
5486
5538
  disabled: props.disabled
5487
- })],
5539
+ }])],
5488
5540
  "style": style.value,
5489
5541
  "tabindex": props.disabled ? void 0 : props.isActive ? 0 : -1,
5490
5542
  "aria-selected": props.isActive,
@@ -5670,26 +5722,33 @@ var _Swipe = vue.defineComponent({
5670
5722
  if (!root.value) {
5671
5723
  return;
5672
5724
  }
5673
- if (!isHidden(root)) {
5674
- var _props$width, _props$height;
5675
- var rect = {
5676
- width: root.value.offsetWidth,
5677
- height: root.value.offsetHeight
5678
- };
5679
- state.rect = rect;
5680
- state.width = +((_props$width = props.width) != null ? _props$width : rect.width);
5681
- state.height = +((_props$height = props.height) != null ? _props$height : rect.height);
5682
- }
5683
- if (count.value) {
5684
- active = Math.min(count.value - 1, active);
5725
+ var cb = () => {
5726
+ if (!isHidden(root)) {
5727
+ var _props$width, _props$height;
5728
+ var rect = {
5729
+ width: root.value.offsetWidth,
5730
+ height: root.value.offsetHeight
5731
+ };
5732
+ state.rect = rect;
5733
+ state.width = +((_props$width = props.width) != null ? _props$width : rect.width);
5734
+ state.height = +((_props$height = props.height) != null ? _props$height : rect.height);
5735
+ }
5736
+ if (count.value) {
5737
+ active = Math.min(count.value - 1, active);
5738
+ }
5739
+ state.active = active;
5740
+ state.swiping = true;
5741
+ state.offset = getTargetOffset(active);
5742
+ children.forEach((swipe) => {
5743
+ swipe.setOffset(0);
5744
+ });
5745
+ autoplay();
5746
+ };
5747
+ if (isHidden(root)) {
5748
+ vue.nextTick().then(cb);
5749
+ } else {
5750
+ cb();
5685
5751
  }
5686
- state.active = active;
5687
- state.swiping = true;
5688
- state.offset = getTargetOffset(active);
5689
- children.forEach((swipe) => {
5690
- swipe.setOffset(0);
5691
- });
5692
- autoplay();
5693
5752
  };
5694
5753
  var resize = () => initialize(state.active);
5695
5754
  var touchStartTime;
@@ -5704,11 +5763,8 @@ var _Swipe = vue.defineComponent({
5704
5763
  var onTouchMove = (event) => {
5705
5764
  if (props.touchable && state.swiping) {
5706
5765
  touch.move(event);
5707
- var shouldPrevent = isCorrectDirection.value || touch.offsetY.value > touch.offsetX.value === props.vertical;
5708
- if (shouldPrevent) {
5709
- preventDefault(event, props.stopPropagation);
5710
- }
5711
5766
  if (isCorrectDirection.value) {
5767
+ preventDefault(event, props.stopPropagation);
5712
5768
  move({
5713
5769
  offset: delta.value
5714
5770
  });
@@ -5783,7 +5839,8 @@ var _Swipe = vue.defineComponent({
5783
5839
  var renderIndicator = () => {
5784
5840
  if (slots.indicator) {
5785
5841
  return slots.indicator({
5786
- active: activeIndicator.value
5842
+ active: activeIndicator.value,
5843
+ total: count.value
5787
5844
  });
5788
5845
  }
5789
5846
  if (props.showIndicators && count.value > 1) {
@@ -5902,6 +5959,7 @@ var tabsProps = {
5902
5959
  color: String,
5903
5960
  border: Boolean,
5904
5961
  sticky: Boolean,
5962
+ shrink: Boolean,
5905
5963
  active: makeNumericProp(0),
5906
5964
  duration: makeNumericProp(0.3),
5907
5965
  animated: Boolean,
@@ -5947,7 +6005,7 @@ var _Tabs = vue.defineComponent({
5947
6005
  lineStyle: {},
5948
6006
  currentIndex: -1
5949
6007
  });
5950
- var scrollable = vue.computed(() => children.length > props.swipeThreshold || !props.ellipsis);
6008
+ var scrollable = vue.computed(() => children.length > props.swipeThreshold || !props.ellipsis || props.shrink);
5951
6009
  var navStyle = vue.computed(() => ({
5952
6010
  borderColor: props.color,
5953
6011
  background: props.background
@@ -6113,14 +6171,24 @@ var _Tabs = vue.defineComponent({
6113
6171
  "color": props.color,
6114
6172
  "style": item.titleStyle,
6115
6173
  "class": item.titleClass,
6174
+ "shrink": props.shrink,
6116
6175
  "isActive": index2 === state.currentIndex,
6117
6176
  "controls": item.id,
6118
6177
  "scrollable": scrollable.value,
6119
- "renderTitle": item.$slots.title,
6120
6178
  "activeColor": props.titleActiveColor,
6121
6179
  "inactiveColor": props.titleInactiveColor,
6122
6180
  "onClick": (event) => onClickTab(item, index2, event)
6123
- }, pick(item, ["dot", "badge", "title", "disabled", "showZeroBadge"])), null));
6181
+ }, pick(item, ["dot", "badge", "title", "disabled", "showZeroBadge"])), {
6182
+ title: item.$slots.title
6183
+ }));
6184
+ var renderLine = () => {
6185
+ if (props.type === "line" && children.length) {
6186
+ return vue.createVNode("div", {
6187
+ "class": bem$V("line"),
6188
+ "style": state.lineStyle
6189
+ }, null);
6190
+ }
6191
+ };
6124
6192
  var renderHeader = () => {
6125
6193
  var _slots$navLeft, _slots$navRight;
6126
6194
  var {
@@ -6129,23 +6197,19 @@ var _Tabs = vue.defineComponent({
6129
6197
  } = props;
6130
6198
  return vue.createVNode("div", {
6131
6199
  "ref": wrapRef,
6132
- "class": [bem$V("wrap", {
6133
- scrollable: scrollable.value
6134
- }), {
6200
+ "class": [bem$V("wrap"), {
6135
6201
  [BORDER_TOP_BOTTOM]: type === "line" && border
6136
6202
  }]
6137
6203
  }, [vue.createVNode("div", {
6138
6204
  "ref": navRef,
6139
6205
  "role": "tablist",
6140
6206
  "class": bem$V("nav", [type, {
6207
+ shrink: props.shrink,
6141
6208
  complete: scrollable.value
6142
6209
  }]),
6143
6210
  "style": navStyle.value,
6144
6211
  "aria-orientation": "horizontal"
6145
- }, [(_slots$navLeft = slots["nav-left"]) == null ? void 0 : _slots$navLeft.call(slots), renderNav(), type === "line" && vue.createVNode("div", {
6146
- "class": bem$V("line"),
6147
- "style": state.lineStyle
6148
- }, null), (_slots$navRight = slots["nav-right"]) == null ? void 0 : _slots$navRight.call(slots)])]);
6212
+ }, [(_slots$navLeft = slots["nav-left"]) == null ? void 0 : _slots$navLeft.call(slots), renderNav(), renderLine(), (_slots$navRight = slots["nav-right"]) == null ? void 0 : _slots$navRight.call(slots)])]);
6149
6213
  };
6150
6214
  vue.watch([() => props.color, windowWidth], setLine);
6151
6215
  vue.watch(() => props.active, (value) => {
@@ -6580,10 +6644,10 @@ var _Cascader = vue.defineComponent({
6580
6644
  var renderTabs = () => vue.createVNode(Tabs, {
6581
6645
  "active": activeTab.value,
6582
6646
  "onUpdate:active": ($event) => activeTab.value = $event,
6647
+ "shrink": true,
6583
6648
  "animated": true,
6584
6649
  "class": bem$S("tabs"),
6585
6650
  "color": props.activeColor,
6586
- "swipeThreshold": 0,
6587
6651
  "swipeable": props.swipeable,
6588
6652
  "onClick-tab": onClickTab
6589
6653
  }, {
@@ -7959,7 +8023,7 @@ var TimePicker = vue.defineComponent({
7959
8023
  }
7960
8024
  });
7961
8025
  useExpose({
7962
- getPicker: () => picker.value
8026
+ getPicker: () => picker.value && proxyPickerMethods(picker.value, updateInnerValue)
7963
8027
  });
7964
8028
  return () => vue.createVNode(Picker, vue.mergeProps({
7965
8029
  "ref": picker,
@@ -8202,7 +8266,7 @@ var DatePicker = vue.defineComponent({
8202
8266
  }
8203
8267
  });
8204
8268
  useExpose({
8205
- getPicker: () => picker.value
8269
+ getPicker: () => picker.value && proxyPickerMethods(picker.value, updateInnerValue)
8206
8270
  });
8207
8271
  return () => vue.createVNode(Picker, vue.mergeProps({
8208
8272
  "ref": picker,
@@ -9011,7 +9075,8 @@ var gridItemProps = extend({}, routeProps, {
9011
9075
  icon: String,
9012
9076
  badge: numericProp,
9013
9077
  iconColor: String,
9014
- iconPrefix: String
9078
+ iconPrefix: String,
9079
+ badgeProps: Object
9015
9080
  });
9016
9081
  var _GridItem = vue.defineComponent({
9017
9082
  name: name$u,
@@ -9065,10 +9130,10 @@ var _GridItem = vue.defineComponent({
9065
9130
  });
9066
9131
  var renderIcon = () => {
9067
9132
  if (slots.icon) {
9068
- return vue.createVNode(Badge, {
9133
+ return vue.createVNode(Badge, vue.mergeProps({
9069
9134
  "dot": props.dot,
9070
9135
  "content": props.badge
9071
- }, {
9136
+ }, props.badgeProps), {
9072
9137
  default: slots.icon
9073
9138
  });
9074
9139
  }
@@ -9079,8 +9144,9 @@ var _GridItem = vue.defineComponent({
9079
9144
  "size": parent.props.iconSize,
9080
9145
  "badge": props.badge,
9081
9146
  "class": bem$v("icon"),
9082
- "classPrefix": props.iconPrefix,
9083
- "color": props.iconColor
9147
+ "color": props.iconColor,
9148
+ "badgeProps": props.badgeProps,
9149
+ "classPrefix": props.iconPrefix
9084
9150
  }, null);
9085
9151
  }
9086
9152
  };
@@ -9381,6 +9447,7 @@ var imagePreviewProps = {
9381
9447
  closeIcon: makeStringProp("clear"),
9382
9448
  transition: String,
9383
9449
  beforeClose: Function,
9450
+ overlayClass: unknownProp,
9384
9451
  overlayStyle: Object,
9385
9452
  swipeDuration: makeNumericProp(300),
9386
9453
  startPosition: makeNumericProp(0),
@@ -9507,7 +9574,7 @@ var VanImagePreview = vue.defineComponent({
9507
9574
  });
9508
9575
  return () => vue.createVNode(Popup, vue.mergeProps({
9509
9576
  "class": [bem$t(), props.className],
9510
- "overlayClass": bem$t("overlay"),
9577
+ "overlayClass": [bem$t("overlay"), props.overlayClass],
9511
9578
  "onClosed": onClosed,
9512
9579
  "onUpdate:show": updateShow
9513
9580
  }, pick(props, popupProps$1)), {
@@ -9532,6 +9599,7 @@ var defaultConfig = {
9532
9599
  transition: void 0,
9533
9600
  beforeClose: void 0,
9534
9601
  overlayStyle: void 0,
9602
+ overlayClass: void 0,
9535
9603
  startPosition: 0,
9536
9604
  swipeDuration: 300,
9537
9605
  showIndicators: false,
@@ -11147,6 +11215,7 @@ var notifyProps = extend({}, popupSharedProps, {
11147
11215
  type: makeStringProp("danger"),
11148
11216
  color: String,
11149
11217
  message: numericProp,
11218
+ position: makeStringProp("top"),
11150
11219
  className: unknownProp,
11151
11220
  background: String,
11152
11221
  lockScroll: Boolean
@@ -11169,7 +11238,7 @@ var VanNotify = vue.defineComponent({
11169
11238
  background: props.background
11170
11239
  },
11171
11240
  "overlay": false,
11172
- "position": "top",
11241
+ "position": props.position,
11173
11242
  "duration": 0.2,
11174
11243
  "lockScroll": props.lockScroll,
11175
11244
  "onUpdate:show": updateShow
@@ -11221,6 +11290,7 @@ var getDefaultOptions = () => ({
11221
11290
  onClick: void 0,
11222
11291
  onOpened: void 0,
11223
11292
  duration: 3e3,
11293
+ position: void 0,
11224
11294
  className: "",
11225
11295
  lockScroll: false,
11226
11296
  background: void 0
@@ -11642,7 +11712,7 @@ var _Pagination = vue.defineComponent({
11642
11712
  }, [vue.createVNode("button", {
11643
11713
  "type": "button",
11644
11714
  "disabled": disabled,
11645
- "onClick": () => updateModelValue(modelValue - 1)
11715
+ "onClick": () => updateModelValue(modelValue - 1, true)
11646
11716
  }, [slot ? slot() : props.prevText || t$5("prev")])]);
11647
11717
  };
11648
11718
  var renderNextButton = () => {
@@ -11661,7 +11731,7 @@ var _Pagination = vue.defineComponent({
11661
11731
  }, [vue.createVNode("button", {
11662
11732
  "type": "button",
11663
11733
  "disabled": disabled,
11664
- "onClick": () => updateModelValue(modelValue + 1)
11734
+ "onClick": () => updateModelValue(modelValue + 1, true)
11665
11735
  }, [slot ? slot() : props.nextText || t$5("next")])]);
11666
11736
  };
11667
11737
  var renderPages = () => pages.value.map((page) => vue.createVNode("li", {
@@ -11672,7 +11742,7 @@ var _Pagination = vue.defineComponent({
11672
11742
  }, [vue.createVNode("button", {
11673
11743
  "type": "button",
11674
11744
  "aria-current": page.active || void 0,
11675
- "onClick": () => updateModelValue(page.number)
11745
+ "onClick": () => updateModelValue(page.number, true)
11676
11746
  }, [slots.page ? slots.page(page) : page.text])]));
11677
11747
  return () => vue.createVNode("nav", {
11678
11748
  "role": "navigation",
@@ -11853,10 +11923,24 @@ var _Popover = vue.defineComponent({
11853
11923
  updateShow(false);
11854
11924
  }
11855
11925
  };
11926
+ var renderActionContent = (action, index2) => {
11927
+ if (slots.action) {
11928
+ return slots.action({
11929
+ action,
11930
+ index: index2
11931
+ });
11932
+ }
11933
+ return [action.icon && vue.createVNode(Icon, {
11934
+ "name": action.icon,
11935
+ "classPrefix": props.iconPrefix,
11936
+ "class": bem$i("action-icon")
11937
+ }, null), vue.createVNode("div", {
11938
+ "class": [bem$i("action-text"), BORDER_BOTTOM]
11939
+ }, [action.text])];
11940
+ };
11856
11941
  var renderAction = (action, index2) => {
11857
11942
  var {
11858
11943
  icon,
11859
- text,
11860
11944
  color,
11861
11945
  disabled,
11862
11946
  className
@@ -11873,13 +11957,7 @@ var _Popover = vue.defineComponent({
11873
11957
  "tabindex": disabled ? void 0 : 0,
11874
11958
  "aria-disabled": disabled || void 0,
11875
11959
  "onClick": () => onClickAction(action, index2)
11876
- }, [icon && vue.createVNode(Icon, {
11877
- "name": icon,
11878
- "classPrefix": props.iconPrefix,
11879
- "class": bem$i("action-icon")
11880
- }, null), vue.createVNode("div", {
11881
- "class": [bem$i("action-text"), BORDER_BOTTOM]
11882
- }, [text])]);
11960
+ }, [renderActionContent(action, index2)]);
11883
11961
  };
11884
11962
  vue.onMounted(updateLocation);
11885
11963
  vue.onBeforeUnmount(() => {
@@ -12364,7 +12442,7 @@ var searchProps = extend({}, fieldSharedProps, {
12364
12442
  var _Search = vue.defineComponent({
12365
12443
  name: name$e,
12366
12444
  props: searchProps,
12367
- emits: ["search", "cancel", "update:modelValue"],
12445
+ emits: ["blur", "focus", "clear", "search", "cancel", "click-input", "click-left-icon", "click-right-icon", "update:modelValue"],
12368
12446
  setup(props, _ref) {
12369
12447
  var {
12370
12448
  emit,
@@ -12414,6 +12492,12 @@ var _Search = vue.defineComponent({
12414
12492
  var _filedRef$value2;
12415
12493
  return (_filedRef$value2 = filedRef.value) == null ? void 0 : _filedRef$value2.focus();
12416
12494
  };
12495
+ var onBlur = (event) => emit("blur", event);
12496
+ var onFocus = (event) => emit("focus", event);
12497
+ var onClear = (event) => emit("clear", event);
12498
+ var onClickInput = (event) => emit("click-input", event);
12499
+ var onClickLeftIcon = (event) => emit("click-left-icon", event);
12500
+ var onClickRightIcon = (event) => emit("click-right-icon", event);
12417
12501
  var fieldPropNames = Object.keys(fieldSharedProps);
12418
12502
  var renderField = () => {
12419
12503
  var fieldAttrs = extend({}, attrs, pick(props, fieldPropNames), {
@@ -12425,7 +12509,13 @@ var _Search = vue.defineComponent({
12425
12509
  "type": "search",
12426
12510
  "class": bem$e("field"),
12427
12511
  "border": false,
12512
+ "onBlur": onBlur,
12513
+ "onFocus": onFocus,
12514
+ "onClear": onClear,
12428
12515
  "onKeypress": onKeypress,
12516
+ "onClick-input": onClickInput,
12517
+ "onClick-left-icon": onClickLeftIcon,
12518
+ "onClick-right-icon": onClickRightIcon,
12429
12519
  "onUpdate:modelValue": onInput
12430
12520
  }, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
12431
12521
  };
@@ -12588,7 +12678,8 @@ var sidebarItemProps = extend({}, routeProps, {
12588
12678
  dot: Boolean,
12589
12679
  title: String,
12590
12680
  badge: numericProp,
12591
- disabled: Boolean
12681
+ disabled: Boolean,
12682
+ badgeProps: Object
12592
12683
  });
12593
12684
  var _SidebarItem = vue.defineComponent({
12594
12685
  name: name$b,
@@ -12632,11 +12723,11 @@ var _SidebarItem = vue.defineComponent({
12632
12723
  "tabindex": disabled ? void 0 : 0,
12633
12724
  "aria-selected": selected,
12634
12725
  "onClick": onClick
12635
- }, [vue.createVNode(Badge, {
12726
+ }, [vue.createVNode(Badge, vue.mergeProps({
12636
12727
  "dot": dot,
12637
- "content": badge,
12638
- "class": bem$b("text")
12639
- }, {
12728
+ "class": bem$b("text"),
12729
+ "content": badge
12730
+ }, props.badgeProps), {
12640
12731
  default: () => [slots.title ? slots.title() : title]
12641
12732
  })]);
12642
12733
  };
@@ -13050,7 +13141,7 @@ var _Step = vue.defineComponent({
13050
13141
  color: parentProps.activeColor
13051
13142
  };
13052
13143
  }
13053
- if (!getStatus()) {
13144
+ if (getStatus() === "waiting") {
13054
13145
  return {
13055
13146
  color: parentProps.inactiveColor
13056
13147
  };
@@ -13495,12 +13586,14 @@ var _SwipeCell = vue.defineComponent({
13495
13586
  var leftWidth = vue.computed(() => isDef(props.leftWidth) ? +props.leftWidth : getWidthByRef(leftRef));
13496
13587
  var rightWidth = vue.computed(() => isDef(props.rightWidth) ? +props.rightWidth : getWidthByRef(rightRef));
13497
13588
  var open = (side) => {
13498
- opened = true;
13499
13589
  state.offset = side === "left" ? leftWidth.value : -rightWidth.value;
13500
- emit("open", {
13501
- name: props.name,
13502
- position: side
13503
- });
13590
+ if (!opened) {
13591
+ opened = true;
13592
+ emit("open", {
13593
+ name: props.name,
13594
+ position: side
13595
+ });
13596
+ }
13504
13597
  };
13505
13598
  var close = (position) => {
13506
13599
  state.offset = 0;
@@ -13697,6 +13790,7 @@ var tabbarItemProps = extend({}, routeProps, {
13697
13790
  icon: String,
13698
13791
  name: numericProp,
13699
13792
  badge: numericProp,
13793
+ badgeProps: Object,
13700
13794
  iconPrefix: String
13701
13795
  });
13702
13796
  var _TabbarItem = vue.defineComponent({
@@ -13782,11 +13876,11 @@ var _TabbarItem = vue.defineComponent({
13782
13876
  "tabindex": 0,
13783
13877
  "aria-selected": active.value,
13784
13878
  "onClick": onClick
13785
- }, [vue.createVNode(Badge, {
13879
+ }, [vue.createVNode(Badge, vue.mergeProps({
13786
13880
  "dot": dot,
13787
- "content": badge,
13788
- "class": bem$2("icon")
13789
- }, {
13881
+ "class": bem$2("icon"),
13882
+ "content": badge
13883
+ }, props.badgeProps), {
13790
13884
  default: renderIcon
13791
13885
  }), vue.createVNode("div", {
13792
13886
  "class": bem$2("text")
@@ -14311,7 +14405,7 @@ var _Uploader = vue.defineComponent({
14311
14405
  }
14312
14406
  });
14313
14407
  var Uploader = withInstall(_Uploader);
14314
- var version = "3.3.4";
14408
+ var version = "3.4.0";
14315
14409
  function install(app) {
14316
14410
  var components = [ActionBar, ActionBarButton, ActionBarIcon, ActionSheet, AddressEdit, AddressList, Area, Badge, Button, Calendar, Card, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, ConfigProvider, ContactCard, ContactEdit, ContactList, CountDown, Coupon, CouponCell, CouponList, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, Form, Grid, GridItem, Icon, Image$1, ImagePreview, IndexAnchor, IndexBar, List, Loading, Locale, NavBar, NoticeBar, Notify, NumberKeyboard, Overlay, Pagination, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rate, Row, Search, ShareSheet, Sidebar, SidebarItem, Skeleton, Slider, Step, Stepper, Steps, Sticky, SubmitBar, Swipe, SwipeCell, SwipeItem, Switch, Tab, Tabbar, TabbarItem, Tabs, Tag, Toast, TreeSelect, Uploader];
14317
14411
  components.forEach((item) => {