vant 3.3.7 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (464) hide show
  1. package/es/action-bar/ActionBar.d.ts +2 -2
  2. package/es/action-bar/index.d.ts +6 -1
  3. package/es/action-bar-button/ActionBarButton.d.ts +4 -4
  4. package/es/action-bar-button/index.d.ts +8 -3
  5. package/es/action-bar-icon/ActionBarIcon.d.ts +69 -8
  6. package/es/action-bar-icon/ActionBarIcon.js +8 -5
  7. package/es/action-bar-icon/index.d.ts +49 -3
  8. package/es/action-sheet/ActionSheet.d.ts +2 -2
  9. package/es/action-sheet/ActionSheet.js +27 -15
  10. package/es/action-sheet/index.d.ts +6 -1
  11. package/es/address-edit/AddressEdit.d.ts +2 -2
  12. package/es/address-edit/AddressEditDetail.d.ts +2 -2
  13. package/es/address-edit/index.d.ts +6 -1
  14. package/es/address-list/AddressList.d.ts +2 -2
  15. package/es/address-list/AddressListItem.d.ts +2 -2
  16. package/es/address-list/index.d.ts +6 -1
  17. package/es/area/Area.d.ts +2 -2
  18. package/es/area/index.d.ts +6 -1
  19. package/es/badge/Badge.d.ts +3 -3
  20. package/es/badge/index.d.ts +7 -2
  21. package/es/button/Button.d.ts +4 -4
  22. package/es/button/index.d.ts +8 -3
  23. package/es/calendar/Calendar.d.ts +3 -3
  24. package/es/calendar/CalendarDay.d.ts +2 -2
  25. package/es/calendar/CalendarHeader.d.ts +1 -1
  26. package/es/calendar/CalendarMonth.d.ts +4 -4
  27. package/es/calendar/index.d.ts +7 -2
  28. package/es/card/Card.d.ts +2 -2
  29. package/es/card/index.d.ts +6 -1
  30. package/es/cascader/Cascader.d.ts +2 -2
  31. package/es/cascader/Cascader.js +1 -1
  32. package/es/cascader/index.css +1 -1
  33. package/es/cascader/index.d.ts +6 -1
  34. package/es/cascader/index.less +0 -10
  35. package/es/cell/Cell.d.ts +2 -2
  36. package/es/cell/index.d.ts +6 -1
  37. package/es/cell-group/CellGroup.d.ts +2 -2
  38. package/es/cell-group/index.d.ts +6 -1
  39. package/es/checkbox/Checkbox.d.ts +2 -2
  40. package/es/checkbox/Checker.d.ts +2 -2
  41. package/es/checkbox/index.d.ts +6 -1
  42. package/es/checkbox-group/CheckboxGroup.d.ts +2 -2
  43. package/es/checkbox-group/index.d.ts +6 -1
  44. package/es/circle/Circle.d.ts +2 -2
  45. package/es/circle/index.d.ts +6 -1
  46. package/es/col/Col.d.ts +2 -2
  47. package/es/col/index.d.ts +6 -1
  48. package/es/collapse/Collapse.d.ts +2 -2
  49. package/es/collapse/index.d.ts +6 -1
  50. package/es/collapse-item/CollapseItem.d.ts +2 -2
  51. package/es/collapse-item/index.d.ts +6 -1
  52. package/es/composables/use-refs.js +9 -2
  53. package/es/composables/use-route.d.ts +1 -1
  54. package/es/composables/use-touch.js +7 -6
  55. package/es/config-provider/ConfigProvider.d.ts +2 -2
  56. package/es/config-provider/index.d.ts +6 -1
  57. package/es/contact-card/ContactCard.d.ts +2 -2
  58. package/es/contact-card/index.d.ts +6 -1
  59. package/es/contact-edit/ContactEdit.d.ts +2 -2
  60. package/es/contact-edit/index.d.ts +6 -1
  61. package/es/contact-list/ContactList.d.ts +2 -2
  62. package/es/contact-list/index.d.ts +6 -1
  63. package/es/count-down/CountDown.d.ts +2 -2
  64. package/es/count-down/index.d.ts +6 -1
  65. package/es/coupon/Coupon.d.ts +2 -2
  66. package/es/coupon/index.d.ts +6 -1
  67. package/es/coupon-cell/CouponCell.d.ts +2 -2
  68. package/es/coupon-cell/index.d.ts +6 -1
  69. package/es/coupon-list/CouponList.d.ts +2 -2
  70. package/es/coupon-list/index.d.ts +6 -1
  71. package/es/datetime-picker/DatePicker.d.ts +1 -1
  72. package/es/datetime-picker/DatetimePicker.d.ts +2 -2
  73. package/es/datetime-picker/TimePicker.d.ts +1 -1
  74. package/es/datetime-picker/index.d.ts +6 -1
  75. package/es/datetime-picker/utils.d.ts +1 -1
  76. package/es/dialog/Dialog.d.ts +2 -2
  77. package/es/dialog/function-call.d.ts +1 -1
  78. package/es/dialog/index.d.ts +5 -0
  79. package/es/divider/Divider.d.ts +2 -2
  80. package/es/divider/index.d.ts +6 -1
  81. package/es/dropdown-item/DropdownItem.d.ts +2 -2
  82. package/es/dropdown-item/index.d.ts +6 -1
  83. package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
  84. package/es/dropdown-menu/index.d.ts +6 -1
  85. package/es/empty/Empty.d.ts +2 -2
  86. package/es/empty/index.d.ts +6 -1
  87. package/es/field/Field.d.ts +2 -2
  88. package/es/field/index.d.ts +6 -1
  89. package/es/field/types.d.ts +1 -1
  90. package/es/form/Form.d.ts +2 -2
  91. package/es/form/index.d.ts +6 -1
  92. package/es/grid/Grid.d.ts +2 -2
  93. package/es/grid/index.d.ts +6 -1
  94. package/es/grid-item/GridItem.d.ts +66 -5
  95. package/es/grid-item/GridItem.js +8 -6
  96. package/es/grid-item/index.d.ts +48 -2
  97. package/es/icon/Icon.d.ts +66 -5
  98. package/es/icon/Icon.js +7 -6
  99. package/es/icon/index.css +1 -1
  100. package/es/icon/index.d.ts +48 -2
  101. package/es/image/Image.d.ts +2 -2
  102. package/es/image/index.d.ts +6 -1
  103. package/es/image-preview/ImagePreview.d.ts +6 -2
  104. package/es/image-preview/ImagePreview.js +2 -1
  105. package/es/image-preview/ImagePreviewItem.d.ts +1 -1
  106. package/es/image-preview/function-call.d.ts +4 -1
  107. package/es/image-preview/function-call.js +1 -0
  108. package/es/image-preview/index.d.ts +5 -0
  109. package/es/image-preview/types.d.ts +1 -0
  110. package/es/index-anchor/IndexAnchor.d.ts +2 -2
  111. package/es/index-anchor/index.d.ts +6 -1
  112. package/es/index-bar/IndexBar.d.ts +2 -2
  113. package/es/index-bar/index.d.ts +6 -1
  114. package/es/index.d.ts +1 -1
  115. package/es/index.js +1 -1
  116. package/es/list/List.d.ts +2 -2
  117. package/es/list/index.d.ts +6 -1
  118. package/es/loading/Loading.d.ts +2 -2
  119. package/es/loading/index.d.ts +6 -1
  120. package/es/nav-bar/NavBar.d.ts +2 -2
  121. package/es/nav-bar/index.d.ts +6 -1
  122. package/es/notice-bar/NoticeBar.d.ts +2 -2
  123. package/es/notice-bar/index.d.ts +6 -1
  124. package/es/notify/Notify.d.ts +14 -3
  125. package/es/notify/Notify.js +2 -1
  126. package/es/notify/function-call.d.ts +9 -2
  127. package/es/notify/function-call.js +1 -0
  128. package/es/notify/index.d.ts +5 -0
  129. package/es/notify/types.d.ts +2 -0
  130. package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
  131. package/es/number-keyboard/NumberKeyboardKey.d.ts +3 -3
  132. package/es/number-keyboard/index.d.ts +6 -1
  133. package/es/overlay/Overlay.d.ts +2 -2
  134. package/es/overlay/index.d.ts +6 -1
  135. package/es/pagination/Pagination.d.ts +2 -2
  136. package/es/pagination/index.d.ts +6 -1
  137. package/es/password-input/PasswordInput.d.ts +2 -2
  138. package/es/password-input/index.d.ts +6 -1
  139. package/es/picker/Picker.d.ts +2 -2
  140. package/es/picker/Picker.js +21 -13
  141. package/es/picker/PickerColumn.d.ts +1 -1
  142. package/es/picker/index.d.ts +6 -1
  143. package/es/popover/Popover.d.ts +2 -2
  144. package/es/popover/Popover.js +19 -9
  145. package/es/popover/index.d.ts +6 -1
  146. package/es/popup/Popup.d.ts +3 -4
  147. package/es/popup/Popup.js +7 -4
  148. package/es/popup/index.d.ts +16 -10
  149. package/es/popup/shared.d.ts +1 -1
  150. package/es/popup/types.d.ts +5 -0
  151. package/es/popup/types.js +1 -0
  152. package/es/progress/Progress.d.ts +2 -2
  153. package/es/progress/index.d.ts +6 -1
  154. package/es/pull-refresh/PullRefresh.d.ts +2 -2
  155. package/es/pull-refresh/index.css +1 -1
  156. package/es/pull-refresh/index.d.ts +6 -1
  157. package/es/pull-refresh/index.less +0 -1
  158. package/es/radio/Radio.d.ts +2 -2
  159. package/es/radio/index.d.ts +6 -1
  160. package/es/radio-group/RadioGroup.d.ts +2 -2
  161. package/es/radio-group/index.d.ts +6 -1
  162. package/es/rate/Rate.d.ts +2 -2
  163. package/es/rate/index.d.ts +6 -1
  164. package/es/row/Row.d.ts +2 -2
  165. package/es/row/index.d.ts +6 -1
  166. package/es/search/Search.d.ts +8 -2
  167. package/es/search/Search.js +19 -1
  168. package/es/search/index.d.ts +12 -1
  169. package/es/share-sheet/ShareSheet.d.ts +2 -2
  170. package/es/share-sheet/index.d.ts +6 -1
  171. package/es/sidebar/Sidebar.d.ts +2 -2
  172. package/es/sidebar/index.d.ts +6 -1
  173. package/es/sidebar-item/SidebarItem.d.ts +65 -4
  174. package/es/sidebar-item/SidebarItem.js +7 -6
  175. package/es/sidebar-item/index.d.ts +47 -1
  176. package/es/skeleton/Skeleton.d.ts +2 -2
  177. package/es/skeleton/index.d.ts +6 -1
  178. package/es/slider/Slider.d.ts +4 -4
  179. package/es/slider/index.d.ts +8 -3
  180. package/es/step/Step.d.ts +1 -1
  181. package/es/step/Step.js +1 -1
  182. package/es/step/index.d.ts +6 -1
  183. package/es/stepper/Stepper.d.ts +2 -2
  184. package/es/stepper/index.d.ts +6 -1
  185. package/es/steps/Steps.d.ts +2 -2
  186. package/es/steps/index.d.ts +6 -1
  187. package/es/sticky/Sticky.d.ts +2 -2
  188. package/es/sticky/index.d.ts +6 -1
  189. package/es/submit-bar/SubmitBar.d.ts +2 -2
  190. package/es/submit-bar/index.d.ts +6 -1
  191. package/es/swipe/Swipe.d.ts +2 -2
  192. package/es/swipe/Swipe.js +34 -30
  193. package/es/swipe/index.d.ts +6 -1
  194. package/es/swipe-cell/SwipeCell.d.ts +2 -2
  195. package/es/swipe-cell/SwipeCell.js +8 -5
  196. package/es/swipe-cell/index.d.ts +6 -1
  197. package/es/swipe-item/SwipeItem.d.ts +1 -1
  198. package/es/swipe-item/index.d.ts +6 -1
  199. package/es/switch/Switch.d.ts +2 -2
  200. package/es/switch/index.d.ts +6 -1
  201. package/es/tab/Tab.d.ts +2 -2
  202. package/es/tab/index.d.ts +6 -1
  203. package/es/tabbar/Tabbar.d.ts +2 -2
  204. package/es/tabbar/index.d.ts +6 -1
  205. package/es/tabbar-item/TabbarItem.d.ts +65 -4
  206. package/es/tabbar-item/TabbarItem.js +6 -5
  207. package/es/tabbar-item/index.d.ts +47 -1
  208. package/es/tabs/Tabs.d.ts +7 -2
  209. package/es/tabs/Tabs.js +19 -11
  210. package/es/tabs/TabsContent.d.ts +1 -1
  211. package/es/tabs/TabsTitle.d.ts +6 -5
  212. package/es/tabs/TabsTitle.js +10 -5
  213. package/es/tabs/index.css +1 -1
  214. package/es/tabs/index.d.ts +10 -1
  215. package/es/tabs/index.less +43 -35
  216. package/es/tag/Tag.d.ts +2 -2
  217. package/es/tag/index.d.ts +6 -1
  218. package/es/toast/Toast.d.ts +2 -2
  219. package/es/toast/function-call.d.ts +2 -2
  220. package/es/toast/function-call.js +1 -1
  221. package/es/tree-select/TreeSelect.d.ts +2 -2
  222. package/es/tree-select/index.css +1 -1
  223. package/es/tree-select/index.d.ts +6 -1
  224. package/es/tree-select/index.less +1 -1
  225. package/es/uploader/Uploader.d.ts +3 -3
  226. package/es/uploader/UploaderPreviewItem.d.ts +2 -2
  227. package/es/uploader/index.d.ts +6 -1
  228. package/lib/action-bar/ActionBar.d.ts +2 -2
  229. package/lib/action-bar/index.d.ts +6 -1
  230. package/lib/action-bar-button/ActionBarButton.d.ts +4 -4
  231. package/lib/action-bar-button/index.d.ts +8 -3
  232. package/lib/action-bar-icon/ActionBarIcon.d.ts +69 -8
  233. package/lib/action-bar-icon/ActionBarIcon.js +7 -4
  234. package/lib/action-bar-icon/index.d.ts +49 -3
  235. package/lib/action-sheet/ActionSheet.d.ts +2 -2
  236. package/lib/action-sheet/ActionSheet.js +27 -15
  237. package/lib/action-sheet/index.d.ts +6 -1
  238. package/lib/address-edit/AddressEdit.d.ts +2 -2
  239. package/lib/address-edit/AddressEditDetail.d.ts +2 -2
  240. package/lib/address-edit/index.d.ts +6 -1
  241. package/lib/address-list/AddressList.d.ts +2 -2
  242. package/lib/address-list/AddressListItem.d.ts +2 -2
  243. package/lib/address-list/index.d.ts +6 -1
  244. package/lib/area/Area.d.ts +2 -2
  245. package/lib/area/index.d.ts +6 -1
  246. package/lib/badge/Badge.d.ts +3 -3
  247. package/lib/badge/index.d.ts +7 -2
  248. package/lib/button/Button.d.ts +4 -4
  249. package/lib/button/index.d.ts +8 -3
  250. package/lib/calendar/Calendar.d.ts +3 -3
  251. package/lib/calendar/CalendarDay.d.ts +2 -2
  252. package/lib/calendar/CalendarHeader.d.ts +1 -1
  253. package/lib/calendar/CalendarMonth.d.ts +4 -4
  254. package/lib/calendar/index.d.ts +7 -2
  255. package/lib/card/Card.d.ts +2 -2
  256. package/lib/card/index.d.ts +6 -1
  257. package/lib/cascader/Cascader.d.ts +2 -2
  258. package/lib/cascader/Cascader.js +1 -1
  259. package/lib/cascader/index.css +1 -1
  260. package/lib/cascader/index.d.ts +6 -1
  261. package/lib/cascader/index.less +0 -10
  262. package/lib/cell/Cell.d.ts +2 -2
  263. package/lib/cell/index.d.ts +6 -1
  264. package/lib/cell-group/CellGroup.d.ts +2 -2
  265. package/lib/cell-group/index.d.ts +6 -1
  266. package/lib/checkbox/Checkbox.d.ts +2 -2
  267. package/lib/checkbox/Checker.d.ts +2 -2
  268. package/lib/checkbox/index.d.ts +6 -1
  269. package/lib/checkbox-group/CheckboxGroup.d.ts +2 -2
  270. package/lib/checkbox-group/index.d.ts +6 -1
  271. package/lib/circle/Circle.d.ts +2 -2
  272. package/lib/circle/index.d.ts +6 -1
  273. package/lib/col/Col.d.ts +2 -2
  274. package/lib/col/index.d.ts +6 -1
  275. package/lib/collapse/Collapse.d.ts +2 -2
  276. package/lib/collapse/index.d.ts +6 -1
  277. package/lib/collapse-item/CollapseItem.d.ts +2 -2
  278. package/lib/collapse-item/index.d.ts +6 -1
  279. package/lib/composables/use-refs.js +9 -2
  280. package/lib/composables/use-route.d.ts +1 -1
  281. package/lib/composables/use-touch.js +7 -7
  282. package/lib/config-provider/ConfigProvider.d.ts +2 -2
  283. package/lib/config-provider/index.d.ts +6 -1
  284. package/lib/contact-card/ContactCard.d.ts +2 -2
  285. package/lib/contact-card/index.d.ts +6 -1
  286. package/lib/contact-edit/ContactEdit.d.ts +2 -2
  287. package/lib/contact-edit/index.d.ts +6 -1
  288. package/lib/contact-list/ContactList.d.ts +2 -2
  289. package/lib/contact-list/index.d.ts +6 -1
  290. package/lib/count-down/CountDown.d.ts +2 -2
  291. package/lib/count-down/index.d.ts +6 -1
  292. package/lib/coupon/Coupon.d.ts +2 -2
  293. package/lib/coupon/index.d.ts +6 -1
  294. package/lib/coupon-cell/CouponCell.d.ts +2 -2
  295. package/lib/coupon-cell/index.d.ts +6 -1
  296. package/lib/coupon-list/CouponList.d.ts +2 -2
  297. package/lib/coupon-list/index.d.ts +6 -1
  298. package/lib/datetime-picker/DatePicker.d.ts +1 -1
  299. package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
  300. package/lib/datetime-picker/TimePicker.d.ts +1 -1
  301. package/lib/datetime-picker/index.d.ts +6 -1
  302. package/lib/datetime-picker/utils.d.ts +1 -1
  303. package/lib/dialog/Dialog.d.ts +2 -2
  304. package/lib/dialog/function-call.d.ts +1 -1
  305. package/lib/dialog/index.d.ts +5 -0
  306. package/lib/divider/Divider.d.ts +2 -2
  307. package/lib/divider/index.d.ts +6 -1
  308. package/lib/dropdown-item/DropdownItem.d.ts +2 -2
  309. package/lib/dropdown-item/index.d.ts +6 -1
  310. package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
  311. package/lib/dropdown-menu/index.d.ts +6 -1
  312. package/lib/empty/Empty.d.ts +2 -2
  313. package/lib/empty/index.d.ts +6 -1
  314. package/lib/field/Field.d.ts +2 -2
  315. package/lib/field/index.d.ts +6 -1
  316. package/lib/field/types.d.ts +1 -1
  317. package/lib/form/Form.d.ts +2 -2
  318. package/lib/form/index.d.ts +6 -1
  319. package/lib/grid/Grid.d.ts +2 -2
  320. package/lib/grid/index.d.ts +6 -1
  321. package/lib/grid-item/GridItem.d.ts +66 -5
  322. package/lib/grid-item/GridItem.js +7 -5
  323. package/lib/grid-item/index.d.ts +48 -2
  324. package/lib/icon/Icon.d.ts +66 -5
  325. package/lib/icon/Icon.js +5 -4
  326. package/lib/icon/index.css +1 -1
  327. package/lib/icon/index.d.ts +48 -2
  328. package/lib/image/Image.d.ts +2 -2
  329. package/lib/image/index.d.ts +6 -1
  330. package/lib/image-preview/ImagePreview.d.ts +6 -2
  331. package/lib/image-preview/ImagePreview.js +2 -1
  332. package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
  333. package/lib/image-preview/function-call.d.ts +4 -1
  334. package/lib/image-preview/function-call.js +1 -0
  335. package/lib/image-preview/index.d.ts +5 -0
  336. package/lib/image-preview/types.d.ts +1 -0
  337. package/lib/index-anchor/IndexAnchor.d.ts +2 -2
  338. package/lib/index-anchor/index.d.ts +6 -1
  339. package/lib/index-bar/IndexBar.d.ts +2 -2
  340. package/lib/index-bar/index.d.ts +6 -1
  341. package/lib/index.css +1 -1
  342. package/lib/index.d.ts +1 -1
  343. package/lib/index.js +1 -1
  344. package/lib/list/List.d.ts +2 -2
  345. package/lib/list/index.d.ts +6 -1
  346. package/lib/loading/Loading.d.ts +2 -2
  347. package/lib/loading/index.d.ts +6 -1
  348. package/lib/nav-bar/NavBar.d.ts +2 -2
  349. package/lib/nav-bar/index.d.ts +6 -1
  350. package/lib/notice-bar/NoticeBar.d.ts +2 -2
  351. package/lib/notice-bar/index.d.ts +6 -1
  352. package/lib/notify/Notify.d.ts +14 -3
  353. package/lib/notify/Notify.js +2 -1
  354. package/lib/notify/function-call.d.ts +9 -2
  355. package/lib/notify/function-call.js +1 -0
  356. package/lib/notify/index.d.ts +5 -0
  357. package/lib/notify/types.d.ts +2 -0
  358. package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
  359. package/lib/number-keyboard/NumberKeyboardKey.d.ts +3 -3
  360. package/lib/number-keyboard/index.d.ts +6 -1
  361. package/lib/overlay/Overlay.d.ts +2 -2
  362. package/lib/overlay/index.d.ts +6 -1
  363. package/lib/pagination/Pagination.d.ts +2 -2
  364. package/lib/pagination/index.d.ts +6 -1
  365. package/lib/password-input/PasswordInput.d.ts +2 -2
  366. package/lib/password-input/index.d.ts +6 -1
  367. package/lib/picker/Picker.d.ts +2 -2
  368. package/lib/picker/Picker.js +21 -13
  369. package/lib/picker/PickerColumn.d.ts +1 -1
  370. package/lib/picker/index.d.ts +6 -1
  371. package/lib/popover/Popover.d.ts +2 -2
  372. package/lib/popover/Popover.js +18 -8
  373. package/lib/popover/index.d.ts +6 -1
  374. package/lib/popup/Popup.d.ts +3 -4
  375. package/lib/popup/Popup.js +5 -3
  376. package/lib/popup/index.d.ts +16 -10
  377. package/lib/popup/shared.d.ts +1 -1
  378. package/lib/popup/types.d.ts +5 -0
  379. package/lib/popup/types.js +3 -0
  380. package/lib/progress/Progress.d.ts +2 -2
  381. package/lib/progress/index.d.ts +6 -1
  382. package/lib/pull-refresh/PullRefresh.d.ts +2 -2
  383. package/lib/pull-refresh/index.css +1 -1
  384. package/lib/pull-refresh/index.d.ts +6 -1
  385. package/lib/pull-refresh/index.less +0 -1
  386. package/lib/radio/Radio.d.ts +2 -2
  387. package/lib/radio/index.d.ts +6 -1
  388. package/lib/radio-group/RadioGroup.d.ts +2 -2
  389. package/lib/radio-group/index.d.ts +6 -1
  390. package/lib/rate/Rate.d.ts +2 -2
  391. package/lib/rate/index.d.ts +6 -1
  392. package/lib/row/Row.d.ts +2 -2
  393. package/lib/row/index.d.ts +6 -1
  394. package/lib/search/Search.d.ts +8 -2
  395. package/lib/search/Search.js +19 -1
  396. package/lib/search/index.d.ts +12 -1
  397. package/lib/share-sheet/ShareSheet.d.ts +2 -2
  398. package/lib/share-sheet/index.d.ts +6 -1
  399. package/lib/sidebar/Sidebar.d.ts +2 -2
  400. package/lib/sidebar/index.d.ts +6 -1
  401. package/lib/sidebar-item/SidebarItem.d.ts +65 -4
  402. package/lib/sidebar-item/SidebarItem.js +6 -5
  403. package/lib/sidebar-item/index.d.ts +47 -1
  404. package/lib/skeleton/Skeleton.d.ts +2 -2
  405. package/lib/skeleton/index.d.ts +6 -1
  406. package/lib/slider/Slider.d.ts +4 -4
  407. package/lib/slider/index.d.ts +8 -3
  408. package/lib/step/Step.d.ts +1 -1
  409. package/lib/step/Step.js +1 -1
  410. package/lib/step/index.d.ts +6 -1
  411. package/lib/stepper/Stepper.d.ts +2 -2
  412. package/lib/stepper/index.d.ts +6 -1
  413. package/lib/steps/Steps.d.ts +2 -2
  414. package/lib/steps/index.d.ts +6 -1
  415. package/lib/sticky/Sticky.d.ts +2 -2
  416. package/lib/sticky/index.d.ts +6 -1
  417. package/lib/submit-bar/SubmitBar.d.ts +2 -2
  418. package/lib/submit-bar/index.d.ts +6 -1
  419. package/lib/swipe/Swipe.d.ts +2 -2
  420. package/lib/swipe/Swipe.js +34 -30
  421. package/lib/swipe/index.d.ts +6 -1
  422. package/lib/swipe-cell/SwipeCell.d.ts +2 -2
  423. package/lib/swipe-cell/SwipeCell.js +8 -5
  424. package/lib/swipe-cell/index.d.ts +6 -1
  425. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  426. package/lib/swipe-item/index.d.ts +6 -1
  427. package/lib/switch/Switch.d.ts +2 -2
  428. package/lib/switch/index.d.ts +6 -1
  429. package/lib/tab/Tab.d.ts +2 -2
  430. package/lib/tab/index.d.ts +6 -1
  431. package/lib/tabbar/Tabbar.d.ts +2 -2
  432. package/lib/tabbar/index.d.ts +6 -1
  433. package/lib/tabbar-item/TabbarItem.d.ts +65 -4
  434. package/lib/tabbar-item/TabbarItem.js +5 -4
  435. package/lib/tabbar-item/index.d.ts +47 -1
  436. package/lib/tabs/Tabs.d.ts +7 -2
  437. package/lib/tabs/Tabs.js +18 -10
  438. package/lib/tabs/TabsContent.d.ts +1 -1
  439. package/lib/tabs/TabsTitle.d.ts +6 -5
  440. package/lib/tabs/TabsTitle.js +10 -5
  441. package/lib/tabs/index.css +1 -1
  442. package/lib/tabs/index.d.ts +10 -1
  443. package/lib/tabs/index.less +43 -35
  444. package/lib/tag/Tag.d.ts +2 -2
  445. package/lib/tag/index.d.ts +6 -1
  446. package/lib/toast/Toast.d.ts +2 -2
  447. package/lib/toast/function-call.d.ts +2 -2
  448. package/lib/tree-select/TreeSelect.d.ts +2 -2
  449. package/lib/tree-select/index.css +1 -1
  450. package/lib/tree-select/index.d.ts +6 -1
  451. package/lib/tree-select/index.less +1 -1
  452. package/lib/uploader/Uploader.d.ts +3 -3
  453. package/lib/uploader/UploaderPreviewItem.d.ts +2 -2
  454. package/lib/uploader/index.d.ts +6 -1
  455. package/lib/vant.cjs.js +190 -117
  456. package/lib/vant.cjs.min.js +1 -1
  457. package/lib/vant.es.js +191 -118
  458. package/lib/vant.es.min.js +191 -118
  459. package/lib/vant.js +190 -117
  460. package/lib/vant.min.js +1 -1
  461. package/package.json +1 -1
  462. package/vetur/attributes.json +178 -147
  463. package/vetur/tags.json +48 -41
  464. package/vetur/web-types.json +491 -403
package/lib/vant.js CHANGED
@@ -956,6 +956,7 @@
956
956
  size: numericProp,
957
957
  badge: numericProp,
958
958
  color: String,
959
+ badgeProps: Object,
959
960
  classPrefix: String
960
961
  };
961
962
  var _Icon = vue.defineComponent({
@@ -977,16 +978,16 @@
977
978
  color
978
979
  } = props;
979
980
  var isImageIcon = isImage(name2);
980
- return vue.createVNode(Badge, {
981
+ return vue.createVNode(Badge, vue.mergeProps({
981
982
  "dot": dot,
982
983
  "tag": tag,
983
- "content": badge,
984
984
  "class": [classPrefix.value, isImageIcon ? "" : classPrefix.value + "-" + name2],
985
985
  "style": {
986
986
  color,
987
987
  fontSize: addUnit(size)
988
- }
989
- }, {
988
+ },
989
+ "content": badge
990
+ }, props.badgeProps), {
990
991
  default: () => [slots.default == null ? void 0 : slots.default(), isImageIcon && vue.createVNode("img", {
991
992
  "class": bem$1n("image"),
992
993
  "src": name2
@@ -1269,6 +1270,7 @@
1269
1270
  color: String,
1270
1271
  badge: numericProp,
1271
1272
  iconClass: unknownProp,
1273
+ badgeProps: Object,
1272
1274
  iconPrefix: String
1273
1275
  });
1274
1276
  var _ActionBarIcon = vue.defineComponent({
@@ -1287,14 +1289,15 @@
1287
1289
  icon,
1288
1290
  color,
1289
1291
  iconClass,
1292
+ badgeProps: badgeProps2,
1290
1293
  iconPrefix
1291
1294
  } = props;
1292
1295
  if (slots.icon) {
1293
- return vue.createVNode(Badge, {
1296
+ return vue.createVNode(Badge, vue.mergeProps({
1294
1297
  "dot": dot,
1295
- "content": badge,
1296
- "class": bem$1j("icon")
1297
- }, {
1298
+ "class": bem$1j("icon"),
1299
+ "content": badge
1300
+ }, badgeProps2), {
1298
1301
  default: slots.icon
1299
1302
  });
1300
1303
  }
@@ -1305,6 +1308,7 @@
1305
1308
  "badge": badge,
1306
1309
  "color": color,
1307
1310
  "class": [bem$1j("icon"), iconClass],
1311
+ "badgeProps": badgeProps2,
1308
1312
  "classPrefix": iconPrefix
1309
1313
  }, null);
1310
1314
  };
@@ -1332,12 +1336,11 @@
1332
1336
  closeOnClickOverlay: truthProp
1333
1337
  };
1334
1338
  var popupSharedPropKeys = Object.keys(popupSharedProps);
1335
- var MIN_DISTANCE = 10;
1336
1339
  function getDirection(x, y) {
1337
- if (x > y && x > MIN_DISTANCE) {
1340
+ if (x > y) {
1338
1341
  return "horizontal";
1339
1342
  }
1340
- if (y > x && y > MIN_DISTANCE) {
1343
+ if (y > x) {
1341
1344
  return "vertical";
1342
1345
  }
1343
1346
  return "";
@@ -1370,7 +1373,8 @@
1370
1373
  deltaY.value = touch.clientY - startY.value;
1371
1374
  offsetX.value = Math.abs(deltaX.value);
1372
1375
  offsetY.value = Math.abs(deltaY.value);
1373
- if (!direction.value) {
1376
+ var LOCK_DIRECTION_DISTANCE = 10;
1377
+ if (!direction.value || offsetX.value < LOCK_DIRECTION_DISTANCE && offsetY.value < LOCK_DIRECTION_DISTANCE) {
1374
1378
  direction.value = getDirection(offsetX.value, offsetY.value);
1375
1379
  }
1376
1380
  };
@@ -1634,10 +1638,11 @@
1634
1638
  default: renderPopup
1635
1639
  });
1636
1640
  };
1637
- vue.watch(() => props.show, (value) => {
1638
- if (value) {
1641
+ vue.watch(() => props.show, (show) => {
1642
+ if (show && !opened) {
1639
1643
  open();
1640
- } else {
1644
+ }
1645
+ if (!show && opened) {
1641
1646
  opened = false;
1642
1647
  emit("close");
1643
1648
  }
@@ -1733,34 +1738,43 @@
1733
1738
  }, [slots.cancel ? slots.cancel() : props.cancelText])];
1734
1739
  }
1735
1740
  };
1736
- var renderOption = (item, index2) => {
1741
+ var renderActionContent = (action, index2) => {
1742
+ if (action.loading) {
1743
+ return vue.createVNode(Loading, {
1744
+ "class": bem$1g("loading-icon")
1745
+ }, null);
1746
+ }
1747
+ if (slots.action) {
1748
+ return slots.action({
1749
+ action,
1750
+ index: index2
1751
+ });
1752
+ }
1753
+ return [vue.createVNode("span", {
1754
+ "class": bem$1g("name")
1755
+ }, [action.name]), action.subname && vue.createVNode("div", {
1756
+ "class": bem$1g("subname")
1757
+ }, [action.subname])];
1758
+ };
1759
+ var renderAction = (action, index2) => {
1737
1760
  var {
1738
- name: name2,
1739
1761
  color,
1740
- subname,
1741
1762
  loading,
1742
1763
  callback,
1743
1764
  disabled,
1744
1765
  className
1745
- } = item;
1746
- var Content = loading ? vue.createVNode(Loading, {
1747
- "class": bem$1g("loading-icon")
1748
- }, null) : [vue.createVNode("span", {
1749
- "class": bem$1g("name")
1750
- }, [name2]), subname && vue.createVNode("div", {
1751
- "class": bem$1g("subname")
1752
- }, [subname])];
1766
+ } = action;
1753
1767
  var onClick = () => {
1754
1768
  if (disabled || loading) {
1755
1769
  return;
1756
1770
  }
1757
1771
  if (callback) {
1758
- callback(item);
1772
+ callback(action);
1759
1773
  }
1760
1774
  if (props.closeOnClickAction) {
1761
1775
  updateShow(false);
1762
1776
  }
1763
- vue.nextTick(() => emit("select", item, index2));
1777
+ vue.nextTick(() => emit("select", action, index2));
1764
1778
  };
1765
1779
  return vue.createVNode("button", {
1766
1780
  "type": "button",
@@ -1772,7 +1786,7 @@
1772
1786
  disabled
1773
1787
  }), className],
1774
1788
  "onClick": onClick
1775
- }, [Content]);
1789
+ }, [renderActionContent(action, index2)]);
1776
1790
  };
1777
1791
  var renderDescription = () => {
1778
1792
  if (props.description || slots.description) {
@@ -1789,7 +1803,7 @@
1789
1803
  }, pick(props, popupInheritKeys$2)), {
1790
1804
  default: () => [renderHeader(), renderDescription(), vue.createVNode("div", {
1791
1805
  "class": bem$1g("content")
1792
- }, [props.actions.map(renderOption), slots.default == null ? void 0 : slots.default()]), renderCancel()]
1806
+ }, [props.actions.map(renderAction), slots.default == null ? void 0 : slots.default()]), renderCancel()]
1793
1807
  });
1794
1808
  }
1795
1809
  });
@@ -2277,28 +2291,34 @@
2277
2291
  option: slots.option
2278
2292
  });
2279
2293
  });
2294
+ var renderMask = (wrapHeight) => {
2295
+ var hasOptions = formattedColumns.value.some((item) => item[valuesKey] && item[valuesKey].length !== 0);
2296
+ if (hasOptions) {
2297
+ var frameStyle = {
2298
+ height: itemHeight.value + "px"
2299
+ };
2300
+ var maskStyle = {
2301
+ backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
2302
+ };
2303
+ return [vue.createVNode("div", {
2304
+ "class": bem$1e("mask"),
2305
+ "style": maskStyle
2306
+ }, null), vue.createVNode("div", {
2307
+ "class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
2308
+ "style": frameStyle
2309
+ }, null)];
2310
+ }
2311
+ };
2280
2312
  var renderColumns = () => {
2281
2313
  var wrapHeight = itemHeight.value * +props.visibleItemCount;
2282
- var frameStyle = {
2283
- height: itemHeight.value + "px"
2284
- };
2285
2314
  var columnsStyle = {
2286
2315
  height: wrapHeight + "px"
2287
2316
  };
2288
- var maskStyle = {
2289
- backgroundSize: "100% " + (wrapHeight - itemHeight.value) / 2 + "px"
2290
- };
2291
2317
  return vue.createVNode("div", {
2292
2318
  "class": bem$1e("columns"),
2293
2319
  "style": columnsStyle,
2294
2320
  "onTouchmove": preventDefault
2295
- }, [renderColumnItems(), vue.createVNode("div", {
2296
- "class": bem$1e("mask"),
2297
- "style": maskStyle
2298
- }, null), vue.createVNode("div", {
2299
- "class": [BORDER_UNSET_TOP_BOTTOM, bem$1e("frame")],
2300
- "style": frameStyle
2301
- }, null)]);
2321
+ }, [renderColumnItems(), renderMask(wrapHeight)]);
2302
2322
  };
2303
2323
  vue.watch(() => props.columns, format2, {
2304
2324
  immediate: true
@@ -4543,11 +4563,17 @@
4543
4563
  }
4544
4564
  function useRefs() {
4545
4565
  var refs = vue.ref([]);
4566
+ var cache = [];
4546
4567
  vue.onBeforeUpdate(() => {
4547
4568
  refs.value = [];
4548
4569
  });
4549
- var setRefs = (index2) => (el) => {
4550
- refs.value[index2] = el;
4570
+ var setRefs = (index2) => {
4571
+ if (!cache[index2]) {
4572
+ cache[index2] = (el) => {
4573
+ refs.value[index2] = el;
4574
+ };
4575
+ }
4576
+ return cache[index2];
4551
4577
  };
4552
4578
  return [refs, setRefs];
4553
4579
  }
@@ -5795,16 +5821,19 @@
5795
5821
  color: String,
5796
5822
  title: String,
5797
5823
  badge: numericProp,
5824
+ shrink: Boolean,
5798
5825
  isActive: Boolean,
5799
5826
  disabled: Boolean,
5800
5827
  controls: String,
5801
5828
  scrollable: Boolean,
5802
5829
  activeColor: String,
5803
- renderTitle: Function,
5804
5830
  inactiveColor: String,
5805
5831
  showZeroBadge: truthProp
5806
5832
  },
5807
- setup(props) {
5833
+ setup(props, _ref) {
5834
+ var {
5835
+ slots
5836
+ } = _ref;
5808
5837
  var style = vue.computed(() => {
5809
5838
  var style2 = {};
5810
5839
  var {
@@ -5837,7 +5866,7 @@
5837
5866
  "class": bem$Y("text", {
5838
5867
  ellipsis: !props.scrollable
5839
5868
  })
5840
- }, [props.renderTitle ? props.renderTitle() : props.title]);
5869
+ }, [slots.title ? slots.title() : props.title]);
5841
5870
  if (props.dot || isDef(props.badge) && props.badge !== "") {
5842
5871
  return vue.createVNode(Badge, {
5843
5872
  "dot": props.dot,
@@ -5852,10 +5881,12 @@
5852
5881
  return () => vue.createVNode("div", {
5853
5882
  "id": props.id,
5854
5883
  "role": "tab",
5855
- "class": [bem$Y({
5884
+ "class": [bem$Y([props.type, {
5885
+ grow: props.scrollable && !props.shrink,
5886
+ shrink: props.shrink,
5856
5887
  active: props.isActive,
5857
5888
  disabled: props.disabled
5858
- })],
5889
+ }])],
5859
5890
  "style": style.value,
5860
5891
  "tabindex": props.disabled ? void 0 : props.isActive ? 0 : -1,
5861
5892
  "aria-selected": props.isActive,
@@ -6041,26 +6072,33 @@
6041
6072
  if (!root.value) {
6042
6073
  return;
6043
6074
  }
6044
- if (!isHidden(root)) {
6045
- var _props$width, _props$height;
6046
- var rect = {
6047
- width: root.value.offsetWidth,
6048
- height: root.value.offsetHeight
6049
- };
6050
- state.rect = rect;
6051
- state.width = +((_props$width = props.width) != null ? _props$width : rect.width);
6052
- state.height = +((_props$height = props.height) != null ? _props$height : rect.height);
6053
- }
6054
- if (count.value) {
6055
- active = Math.min(count.value - 1, active);
6075
+ var cb = () => {
6076
+ if (!isHidden(root)) {
6077
+ var _props$width, _props$height;
6078
+ var rect = {
6079
+ width: root.value.offsetWidth,
6080
+ height: root.value.offsetHeight
6081
+ };
6082
+ state.rect = rect;
6083
+ state.width = +((_props$width = props.width) != null ? _props$width : rect.width);
6084
+ state.height = +((_props$height = props.height) != null ? _props$height : rect.height);
6085
+ }
6086
+ if (count.value) {
6087
+ active = Math.min(count.value - 1, active);
6088
+ }
6089
+ state.active = active;
6090
+ state.swiping = true;
6091
+ state.offset = getTargetOffset(active);
6092
+ children.forEach((swipe) => {
6093
+ swipe.setOffset(0);
6094
+ });
6095
+ autoplay();
6096
+ };
6097
+ if (isHidden(root)) {
6098
+ vue.nextTick().then(cb);
6099
+ } else {
6100
+ cb();
6056
6101
  }
6057
- state.active = active;
6058
- state.swiping = true;
6059
- state.offset = getTargetOffset(active);
6060
- children.forEach((swipe) => {
6061
- swipe.setOffset(0);
6062
- });
6063
- autoplay();
6064
6102
  };
6065
6103
  var resize = () => initialize(state.active);
6066
6104
  var touchStartTime;
@@ -6075,11 +6113,8 @@
6075
6113
  var onTouchMove = (event) => {
6076
6114
  if (props.touchable && state.swiping) {
6077
6115
  touch.move(event);
6078
- var shouldPrevent = isCorrectDirection.value || touch.offsetY.value > touch.offsetX.value === props.vertical;
6079
- if (shouldPrevent) {
6080
- preventDefault(event, props.stopPropagation);
6081
- }
6082
6116
  if (isCorrectDirection.value) {
6117
+ preventDefault(event, props.stopPropagation);
6083
6118
  move({
6084
6119
  offset: delta.value
6085
6120
  });
@@ -6154,7 +6189,8 @@
6154
6189
  var renderIndicator = () => {
6155
6190
  if (slots.indicator) {
6156
6191
  return slots.indicator({
6157
- active: activeIndicator.value
6192
+ active: activeIndicator.value,
6193
+ total: count.value
6158
6194
  });
6159
6195
  }
6160
6196
  if (props.showIndicators && count.value > 1) {
@@ -6273,6 +6309,7 @@
6273
6309
  color: String,
6274
6310
  border: Boolean,
6275
6311
  sticky: Boolean,
6312
+ shrink: Boolean,
6276
6313
  active: makeNumericProp(0),
6277
6314
  duration: makeNumericProp(0.3),
6278
6315
  animated: Boolean,
@@ -6318,7 +6355,7 @@
6318
6355
  lineStyle: {},
6319
6356
  currentIndex: -1
6320
6357
  });
6321
- var scrollable = vue.computed(() => children.length > props.swipeThreshold || !props.ellipsis);
6358
+ var scrollable = vue.computed(() => children.length > props.swipeThreshold || !props.ellipsis || props.shrink);
6322
6359
  var navStyle = vue.computed(() => ({
6323
6360
  borderColor: props.color,
6324
6361
  background: props.background
@@ -6484,14 +6521,24 @@
6484
6521
  "color": props.color,
6485
6522
  "style": item.titleStyle,
6486
6523
  "class": item.titleClass,
6524
+ "shrink": props.shrink,
6487
6525
  "isActive": index2 === state.currentIndex,
6488
6526
  "controls": item.id,
6489
6527
  "scrollable": scrollable.value,
6490
- "renderTitle": item.$slots.title,
6491
6528
  "activeColor": props.titleActiveColor,
6492
6529
  "inactiveColor": props.titleInactiveColor,
6493
6530
  "onClick": (event) => onClickTab(item, index2, event)
6494
- }, pick(item, ["dot", "badge", "title", "disabled", "showZeroBadge"])), null));
6531
+ }, pick(item, ["dot", "badge", "title", "disabled", "showZeroBadge"])), {
6532
+ title: item.$slots.title
6533
+ }));
6534
+ var renderLine = () => {
6535
+ if (props.type === "line" && children.length) {
6536
+ return vue.createVNode("div", {
6537
+ "class": bem$V("line"),
6538
+ "style": state.lineStyle
6539
+ }, null);
6540
+ }
6541
+ };
6495
6542
  var renderHeader = () => {
6496
6543
  var _slots$navLeft, _slots$navRight;
6497
6544
  var {
@@ -6500,23 +6547,19 @@
6500
6547
  } = props;
6501
6548
  return vue.createVNode("div", {
6502
6549
  "ref": wrapRef,
6503
- "class": [bem$V("wrap", {
6504
- scrollable: scrollable.value
6505
- }), {
6550
+ "class": [bem$V("wrap"), {
6506
6551
  [BORDER_TOP_BOTTOM]: type === "line" && border
6507
6552
  }]
6508
6553
  }, [vue.createVNode("div", {
6509
6554
  "ref": navRef,
6510
6555
  "role": "tablist",
6511
6556
  "class": bem$V("nav", [type, {
6557
+ shrink: props.shrink,
6512
6558
  complete: scrollable.value
6513
6559
  }]),
6514
6560
  "style": navStyle.value,
6515
6561
  "aria-orientation": "horizontal"
6516
- }, [(_slots$navLeft = slots["nav-left"]) == null ? void 0 : _slots$navLeft.call(slots), renderNav(), type === "line" && vue.createVNode("div", {
6517
- "class": bem$V("line"),
6518
- "style": state.lineStyle
6519
- }, null), (_slots$navRight = slots["nav-right"]) == null ? void 0 : _slots$navRight.call(slots)])]);
6562
+ }, [(_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)])]);
6520
6563
  };
6521
6564
  vue.watch([() => props.color, windowWidth], setLine);
6522
6565
  vue.watch(() => props.active, (value) => {
@@ -6951,10 +6994,10 @@
6951
6994
  var renderTabs = () => vue.createVNode(Tabs, {
6952
6995
  "active": activeTab.value,
6953
6996
  "onUpdate:active": ($event) => activeTab.value = $event,
6997
+ "shrink": true,
6954
6998
  "animated": true,
6955
6999
  "class": bem$S("tabs"),
6956
7000
  "color": props.activeColor,
6957
- "swipeThreshold": 0,
6958
7001
  "swipeable": props.swipeable,
6959
7002
  "onClick-tab": onClickTab
6960
7003
  }, {
@@ -9382,7 +9425,8 @@
9382
9425
  icon: String,
9383
9426
  badge: numericProp,
9384
9427
  iconColor: String,
9385
- iconPrefix: String
9428
+ iconPrefix: String,
9429
+ badgeProps: Object
9386
9430
  });
9387
9431
  var _GridItem = vue.defineComponent({
9388
9432
  name: name$u,
@@ -9436,10 +9480,10 @@
9436
9480
  });
9437
9481
  var renderIcon = () => {
9438
9482
  if (slots.icon) {
9439
- return vue.createVNode(Badge, {
9483
+ return vue.createVNode(Badge, vue.mergeProps({
9440
9484
  "dot": props.dot,
9441
9485
  "content": props.badge
9442
- }, {
9486
+ }, props.badgeProps), {
9443
9487
  default: slots.icon
9444
9488
  });
9445
9489
  }
@@ -9450,8 +9494,9 @@
9450
9494
  "size": parent.props.iconSize,
9451
9495
  "badge": props.badge,
9452
9496
  "class": bem$v("icon"),
9453
- "classPrefix": props.iconPrefix,
9454
- "color": props.iconColor
9497
+ "color": props.iconColor,
9498
+ "badgeProps": props.badgeProps,
9499
+ "classPrefix": props.iconPrefix
9455
9500
  }, null);
9456
9501
  }
9457
9502
  };
@@ -9752,6 +9797,7 @@
9752
9797
  closeIcon: makeStringProp("clear"),
9753
9798
  transition: String,
9754
9799
  beforeClose: Function,
9800
+ overlayClass: unknownProp,
9755
9801
  overlayStyle: Object,
9756
9802
  swipeDuration: makeNumericProp(300),
9757
9803
  startPosition: makeNumericProp(0),
@@ -9878,7 +9924,7 @@
9878
9924
  });
9879
9925
  return () => vue.createVNode(Popup, vue.mergeProps({
9880
9926
  "class": [bem$t(), props.className],
9881
- "overlayClass": bem$t("overlay"),
9927
+ "overlayClass": [bem$t("overlay"), props.overlayClass],
9882
9928
  "onClosed": onClosed,
9883
9929
  "onUpdate:show": updateShow
9884
9930
  }, pick(props, popupProps$1)), {
@@ -9903,6 +9949,7 @@
9903
9949
  transition: void 0,
9904
9950
  beforeClose: void 0,
9905
9951
  overlayStyle: void 0,
9952
+ overlayClass: void 0,
9906
9953
  startPosition: 0,
9907
9954
  swipeDuration: 300,
9908
9955
  showIndicators: false,
@@ -11518,6 +11565,7 @@
11518
11565
  type: makeStringProp("danger"),
11519
11566
  color: String,
11520
11567
  message: numericProp,
11568
+ position: makeStringProp("top"),
11521
11569
  className: unknownProp,
11522
11570
  background: String,
11523
11571
  lockScroll: Boolean
@@ -11540,7 +11588,7 @@
11540
11588
  background: props.background
11541
11589
  },
11542
11590
  "overlay": false,
11543
- "position": "top",
11591
+ "position": props.position,
11544
11592
  "duration": 0.2,
11545
11593
  "lockScroll": props.lockScroll,
11546
11594
  "onUpdate:show": updateShow
@@ -11592,6 +11640,7 @@
11592
11640
  onClick: void 0,
11593
11641
  onOpened: void 0,
11594
11642
  duration: 3e3,
11643
+ position: void 0,
11595
11644
  className: "",
11596
11645
  lockScroll: false,
11597
11646
  background: void 0
@@ -13081,10 +13130,24 @@
13081
13130
  updateShow(false);
13082
13131
  }
13083
13132
  };
13133
+ var renderActionContent = (action, index2) => {
13134
+ if (slots.action) {
13135
+ return slots.action({
13136
+ action,
13137
+ index: index2
13138
+ });
13139
+ }
13140
+ return [action.icon && vue.createVNode(Icon, {
13141
+ "name": action.icon,
13142
+ "classPrefix": props.iconPrefix,
13143
+ "class": bem$i("action-icon")
13144
+ }, null), vue.createVNode("div", {
13145
+ "class": [bem$i("action-text"), BORDER_BOTTOM]
13146
+ }, [action.text])];
13147
+ };
13084
13148
  var renderAction = (action, index2) => {
13085
13149
  var {
13086
13150
  icon,
13087
- text,
13088
13151
  color,
13089
13152
  disabled,
13090
13153
  className
@@ -13101,13 +13164,7 @@
13101
13164
  "tabindex": disabled ? void 0 : 0,
13102
13165
  "aria-disabled": disabled || void 0,
13103
13166
  "onClick": () => onClickAction(action, index2)
13104
- }, [icon && vue.createVNode(Icon, {
13105
- "name": icon,
13106
- "classPrefix": props.iconPrefix,
13107
- "class": bem$i("action-icon")
13108
- }, null), vue.createVNode("div", {
13109
- "class": [bem$i("action-text"), BORDER_BOTTOM]
13110
- }, [text])]);
13167
+ }, [renderActionContent(action, index2)]);
13111
13168
  };
13112
13169
  vue.onMounted(updateLocation);
13113
13170
  vue.onBeforeUnmount(() => {
@@ -13592,7 +13649,7 @@
13592
13649
  var _Search = vue.defineComponent({
13593
13650
  name: name$e,
13594
13651
  props: searchProps,
13595
- emits: ["search", "cancel", "update:modelValue"],
13652
+ emits: ["blur", "focus", "clear", "search", "cancel", "click-input", "click-left-icon", "click-right-icon", "update:modelValue"],
13596
13653
  setup(props, _ref) {
13597
13654
  var {
13598
13655
  emit,
@@ -13642,6 +13699,12 @@
13642
13699
  var _filedRef$value2;
13643
13700
  return (_filedRef$value2 = filedRef.value) == null ? void 0 : _filedRef$value2.focus();
13644
13701
  };
13702
+ var onBlur = (event) => emit("blur", event);
13703
+ var onFocus = (event) => emit("focus", event);
13704
+ var onClear = (event) => emit("clear", event);
13705
+ var onClickInput = (event) => emit("click-input", event);
13706
+ var onClickLeftIcon = (event) => emit("click-left-icon", event);
13707
+ var onClickRightIcon = (event) => emit("click-right-icon", event);
13645
13708
  var fieldPropNames = Object.keys(fieldSharedProps);
13646
13709
  var renderField = () => {
13647
13710
  var fieldAttrs = extend({}, attrs, pick(props, fieldPropNames), {
@@ -13653,7 +13716,13 @@
13653
13716
  "type": "search",
13654
13717
  "class": bem$e("field"),
13655
13718
  "border": false,
13719
+ "onBlur": onBlur,
13720
+ "onFocus": onFocus,
13721
+ "onClear": onClear,
13656
13722
  "onKeypress": onKeypress,
13723
+ "onClick-input": onClickInput,
13724
+ "onClick-left-icon": onClickLeftIcon,
13725
+ "onClick-right-icon": onClickRightIcon,
13657
13726
  "onUpdate:modelValue": onInput
13658
13727
  }, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
13659
13728
  };
@@ -13816,7 +13885,8 @@
13816
13885
  dot: Boolean,
13817
13886
  title: String,
13818
13887
  badge: numericProp,
13819
- disabled: Boolean
13888
+ disabled: Boolean,
13889
+ badgeProps: Object
13820
13890
  });
13821
13891
  var _SidebarItem = vue.defineComponent({
13822
13892
  name: name$b,
@@ -13860,11 +13930,11 @@
13860
13930
  "tabindex": disabled ? void 0 : 0,
13861
13931
  "aria-selected": selected,
13862
13932
  "onClick": onClick
13863
- }, [vue.createVNode(Badge, {
13933
+ }, [vue.createVNode(Badge, vue.mergeProps({
13864
13934
  "dot": dot,
13865
- "content": badge,
13866
- "class": bem$b("text")
13867
- }, {
13935
+ "class": bem$b("text"),
13936
+ "content": badge
13937
+ }, props.badgeProps), {
13868
13938
  default: () => [slots.title ? slots.title() : title]
13869
13939
  })]);
13870
13940
  };
@@ -14278,7 +14348,7 @@
14278
14348
  color: parentProps.activeColor
14279
14349
  };
14280
14350
  }
14281
- if (!getStatus()) {
14351
+ if (getStatus() === "waiting") {
14282
14352
  return {
14283
14353
  color: parentProps.inactiveColor
14284
14354
  };
@@ -14723,12 +14793,14 @@
14723
14793
  var leftWidth = vue.computed(() => isDef(props.leftWidth) ? +props.leftWidth : getWidthByRef(leftRef));
14724
14794
  var rightWidth = vue.computed(() => isDef(props.rightWidth) ? +props.rightWidth : getWidthByRef(rightRef));
14725
14795
  var open = (side) => {
14726
- opened = true;
14727
14796
  state.offset = side === "left" ? leftWidth.value : -rightWidth.value;
14728
- emit("open", {
14729
- name: props.name,
14730
- position: side
14731
- });
14797
+ if (!opened) {
14798
+ opened = true;
14799
+ emit("open", {
14800
+ name: props.name,
14801
+ position: side
14802
+ });
14803
+ }
14732
14804
  };
14733
14805
  var close = (position) => {
14734
14806
  state.offset = 0;
@@ -14925,6 +14997,7 @@
14925
14997
  icon: String,
14926
14998
  name: numericProp,
14927
14999
  badge: numericProp,
15000
+ badgeProps: Object,
14928
15001
  iconPrefix: String
14929
15002
  });
14930
15003
  var _TabbarItem = vue.defineComponent({
@@ -15010,11 +15083,11 @@
15010
15083
  "tabindex": 0,
15011
15084
  "aria-selected": active.value,
15012
15085
  "onClick": onClick
15013
- }, [vue.createVNode(Badge, {
15086
+ }, [vue.createVNode(Badge, vue.mergeProps({
15014
15087
  "dot": dot,
15015
- "content": badge,
15016
- "class": bem$2("icon")
15017
- }, {
15088
+ "class": bem$2("icon"),
15089
+ "content": badge
15090
+ }, props.badgeProps), {
15018
15091
  default: renderIcon
15019
15092
  }), vue.createVNode("div", {
15020
15093
  "class": bem$2("text")
@@ -15539,7 +15612,7 @@
15539
15612
  }
15540
15613
  });
15541
15614
  var Uploader = withInstall(_Uploader);
15542
- var version = "3.3.7";
15615
+ var version = "3.4.0";
15543
15616
  function install(app) {
15544
15617
  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];
15545
15618
  components.forEach((item) => {