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
@@ -128,10 +128,26 @@ var _default = (0, _vue.defineComponent)({
128
128
  }
129
129
  };
130
130
 
131
+ var renderActionContent = (action, index) => {
132
+ if (slots.action) {
133
+ return slots.action({
134
+ action,
135
+ index
136
+ });
137
+ }
138
+
139
+ return [action.icon && (0, _vue.createVNode)(_icon.Icon, {
140
+ "name": action.icon,
141
+ "classPrefix": props.iconPrefix,
142
+ "class": bem('action-icon')
143
+ }, null), (0, _vue.createVNode)("div", {
144
+ "class": [bem('action-text'), _utils.BORDER_BOTTOM]
145
+ }, [action.text])];
146
+ };
147
+
131
148
  var renderAction = (action, index) => {
132
149
  var {
133
150
  icon,
134
- text,
135
151
  color,
136
152
  disabled,
137
153
  className
@@ -148,13 +164,7 @@ var _default = (0, _vue.defineComponent)({
148
164
  "tabindex": disabled ? undefined : 0,
149
165
  "aria-disabled": disabled || undefined,
150
166
  "onClick": () => onClickAction(action, index)
151
- }, [icon && (0, _vue.createVNode)(_icon.Icon, {
152
- "name": icon,
153
- "classPrefix": props.iconPrefix,
154
- "class": bem('action-icon')
155
- }, null), (0, _vue.createVNode)("div", {
156
- "class": [bem('action-text'), _utils.BORDER_BOTTOM]
157
- }, [text])]);
167
+ }, [renderActionContent(action, index)]);
158
168
  };
159
169
 
160
170
  (0, _vue.onMounted)(updateLocation);
@@ -45,7 +45,7 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
45
45
  type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
46
46
  default: string;
47
47
  };
48
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
48
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
49
49
  show?: unknown;
50
50
  theme?: unknown;
51
51
  overlay?: unknown;
@@ -101,3 +101,8 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
101
101
  export default Popover;
102
102
  export type { PopoverProps } from './Popover';
103
103
  export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement, } from './types';
104
+ declare module 'vue' {
105
+ interface GlobalComponents {
106
+ VanPopover: typeof Popover;
107
+ }
108
+ }
@@ -1,6 +1,5 @@
1
- import { CSSProperties, ExtractPropTypes } from 'vue';
2
- export declare type PopupPosition = 'top' | 'left' | 'bottom' | 'right' | 'center' | '';
3
- export declare type PopupCloseIconPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
1
+ import { type CSSProperties, type ExtractPropTypes } from 'vue';
2
+ import type { PopupPosition, PopupCloseIconPosition } from './types';
4
3
  declare const popupProps: {
5
4
  show: BooleanConstructor;
6
5
  zIndex: (NumberConstructor | StringConstructor)[];
@@ -91,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
91
90
  default: PopupCloseIconPosition;
92
91
  };
93
92
  safeAreaInsetBottom: BooleanConstructor;
94
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
93
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
95
94
  show?: unknown;
96
95
  zIndex?: unknown;
97
96
  overlay?: unknown;
@@ -114,6 +113,7 @@ declare const _default: import("vue").DefineComponent<{
114
113
  closeIconPosition?: unknown;
115
114
  safeAreaInsetBottom?: unknown;
116
115
  } & {
116
+ position: PopupPosition;
117
117
  round: boolean;
118
118
  safeAreaInsetBottom: boolean;
119
119
  overlay: boolean;
@@ -122,7 +122,6 @@ declare const _default: import("vue").DefineComponent<{
122
122
  lazyRender: boolean;
123
123
  transitionAppear: boolean;
124
124
  closeOnClickOverlay: boolean;
125
- position: PopupPosition;
126
125
  closeIcon: string;
127
126
  closeable: boolean;
128
127
  closeOnPopstate: boolean;
@@ -145,6 +144,7 @@ declare const _default: import("vue").DefineComponent<{
145
144
  "onClick-overlay"?: ((...args: any[]) => any) | undefined;
146
145
  "onClick-close-icon"?: ((...args: any[]) => any) | undefined;
147
146
  }, {
147
+ position: PopupPosition;
148
148
  round: boolean;
149
149
  safeAreaInsetBottom: boolean;
150
150
  overlay: boolean;
@@ -153,7 +153,6 @@ declare const _default: import("vue").DefineComponent<{
153
153
  lazyRender: boolean;
154
154
  transitionAppear: boolean;
155
155
  closeOnClickOverlay: boolean;
156
- position: PopupPosition;
157
156
  closeIcon: string;
158
157
  closeable: boolean;
159
158
  closeOnPopstate: boolean;
@@ -175,10 +175,12 @@ var _default = (0, _vue.defineComponent)({
175
175
  });
176
176
  };
177
177
 
178
- (0, _vue.watch)(() => props.show, value => {
179
- if (value) {
178
+ (0, _vue.watch)(() => props.show, show => {
179
+ if (show && !opened) {
180
180
  open();
181
- } else {
181
+ }
182
+
183
+ if (!show && opened) {
182
184
  opened = false;
183
185
  emit('close');
184
186
  }
@@ -26,8 +26,8 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
26
26
  } & {
27
27
  round: BooleanConstructor;
28
28
  position: {
29
- type: import("vue").PropType<import("./Popup").PopupPosition>;
30
- default: import("./Popup").PopupPosition;
29
+ type: import("vue").PropType<import("./types").PopupPosition>;
30
+ default: import("./types").PopupPosition;
31
31
  };
32
32
  closeIcon: {
33
33
  type: import("vue").PropType<string>;
@@ -38,11 +38,11 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
38
38
  iconPrefix: StringConstructor;
39
39
  closeOnPopstate: BooleanConstructor;
40
40
  closeIconPosition: {
41
- type: import("vue").PropType<import("./Popup").PopupCloseIconPosition>;
42
- default: import("./Popup").PopupCloseIconPosition;
41
+ type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
42
+ default: import("./types").PopupCloseIconPosition;
43
43
  };
44
44
  safeAreaInsetBottom: BooleanConstructor;
45
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
45
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
46
46
  show?: unknown;
47
47
  zIndex?: unknown;
48
48
  overlay?: unknown;
@@ -65,6 +65,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
65
65
  closeIconPosition?: unknown;
66
66
  safeAreaInsetBottom?: unknown;
67
67
  } & {
68
+ position: import("./types").PopupPosition;
68
69
  round: boolean;
69
70
  safeAreaInsetBottom: boolean;
70
71
  overlay: boolean;
@@ -73,11 +74,10 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
73
74
  lazyRender: boolean;
74
75
  transitionAppear: boolean;
75
76
  closeOnClickOverlay: boolean;
76
- position: import("./Popup").PopupPosition;
77
77
  closeIcon: string;
78
78
  closeable: boolean;
79
79
  closeOnPopstate: boolean;
80
- closeIconPosition: import("./Popup").PopupCloseIconPosition;
80
+ closeIconPosition: import("./types").PopupCloseIconPosition;
81
81
  } & {
82
82
  iconPrefix?: string | undefined;
83
83
  zIndex?: string | number | undefined;
@@ -96,6 +96,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
96
96
  "onClick-overlay"?: ((...args: any[]) => any) | undefined;
97
97
  "onClick-close-icon"?: ((...args: any[]) => any) | undefined;
98
98
  }, {
99
+ position: import("./types").PopupPosition;
99
100
  round: boolean;
100
101
  safeAreaInsetBottom: boolean;
101
102
  overlay: boolean;
@@ -104,11 +105,16 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
104
105
  lazyRender: boolean;
105
106
  transitionAppear: boolean;
106
107
  closeOnClickOverlay: boolean;
107
- position: import("./Popup").PopupPosition;
108
108
  closeIcon: string;
109
109
  closeable: boolean;
110
110
  closeOnPopstate: boolean;
111
- closeIconPosition: import("./Popup").PopupCloseIconPosition;
111
+ closeIconPosition: import("./types").PopupCloseIconPosition;
112
112
  }>>;
113
113
  export default Popup;
114
- export type { PopupProps, PopupPosition, PopupCloseIconPosition, } from './Popup';
114
+ export type { PopupProps } from './Popup';
115
+ export type { PopupPosition, PopupInstance, PopupCloseIconPosition, } from './types';
116
+ declare module 'vue' {
117
+ interface GlobalComponents {
118
+ VanPopup: typeof Popup;
119
+ }
120
+ }
@@ -1,5 +1,5 @@
1
- import { PropType, CSSProperties } from 'vue';
2
1
  import { Interceptor } from '../utils';
2
+ import type { PropType, CSSProperties } from 'vue';
3
3
  export declare const popupSharedProps: {
4
4
  show: BooleanConstructor;
5
5
  zIndex: (NumberConstructor | StringConstructor)[];
@@ -0,0 +1,5 @@
1
+ import type { ComponentPublicInstance } from 'vue';
2
+ import type { PopupProps } from './Popup';
3
+ export declare type PopupPosition = 'top' | 'left' | 'bottom' | 'right' | 'center' | '';
4
+ export declare type PopupCloseIconPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
5
+ export declare type PopupInstance = ComponentPublicInstance<PopupProps>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  declare const progressProps: {
3
3
  color: StringConstructor;
4
4
  inactive: BooleanConstructor;
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
35
35
  default: number;
36
36
  validator: (value: string | number) => boolean;
37
37
  };
38
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
38
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
39
39
  color?: unknown;
40
40
  inactive?: unknown;
41
41
  pivotText?: unknown;
@@ -16,7 +16,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
16
16
  default: number;
17
17
  validator: (value: string | number) => boolean;
18
18
  };
19
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
19
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
20
20
  color?: unknown;
21
21
  inactive?: unknown;
22
22
  pivotText?: unknown;
@@ -45,3 +45,8 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
45
45
  export default Progress;
46
46
  export type { ProgressProps };
47
47
  export type { ProgressInstance } from './types';
48
+ declare module 'vue' {
49
+ interface GlobalComponents {
50
+ VanProgress: typeof Progress;
51
+ }
52
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  declare const pullRefreshProps: {
3
3
  disabled: BooleanConstructor;
4
4
  modelValue: BooleanConstructor;
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  type: (NumberConstructor | StringConstructor)[];
42
42
  default: number;
43
43
  };
44
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
44
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
45
45
  disabled?: unknown;
46
46
  modelValue?: unknown;
47
47
  headHeight?: unknown;
@@ -1 +1 @@
1
- :root{--van-pull-refresh-head-height:50px;--van-pull-refresh-head-font-size:var(--van-font-size-md);--van-pull-refresh-head-text-color:var(--van-text-color-2);--van-pull-refresh-loading-icon-size:16px}.van-pull-refresh{overflow:hidden;-webkit-user-select:none;user-select:none}.van-pull-refresh__track{position:relative;height:100%;transition-property:transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--van-pull-refresh-head-height);overflow:hidden;color:var(--van-pull-refresh-head-text-color);font-size:var(--van-pull-refresh-head-font-size);line-height:var(--van-pull-refresh-head-height);text-align:center;transform:translateY(-100%)}.van-pull-refresh__loading .van-loading__spinner{width:var(--van-pull-refresh-loading-icon-size);height:var(--van-pull-refresh-loading-icon-size)}
1
+ :root{--van-pull-refresh-head-height:50px;--van-pull-refresh-head-font-size:var(--van-font-size-md);--van-pull-refresh-head-text-color:var(--van-text-color-2);--van-pull-refresh-loading-icon-size:16px}.van-pull-refresh{overflow:hidden}.van-pull-refresh__track{position:relative;height:100%;transition-property:transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--van-pull-refresh-head-height);overflow:hidden;color:var(--van-pull-refresh-head-text-color);font-size:var(--van-pull-refresh-head-font-size);line-height:var(--van-pull-refresh-head-height);text-align:center;transform:translateY(-100%)}.van-pull-refresh__loading .van-loading__spinner{width:var(--van-pull-refresh-loading-icon-size);height:var(--van-pull-refresh-loading-icon-size)}
@@ -18,7 +18,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
18
18
  type: (NumberConstructor | StringConstructor)[];
19
19
  default: number;
20
20
  };
21
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
21
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
22
22
  disabled?: unknown;
23
23
  modelValue?: unknown;
24
24
  headHeight?: unknown;
@@ -53,3 +53,8 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
53
53
  }>>;
54
54
  export default PullRefresh;
55
55
  export type { PullRefreshProps } from './PullRefresh';
56
+ declare module 'vue' {
57
+ interface GlobalComponents {
58
+ VanPullRefresh: typeof PullRefresh;
59
+ }
60
+ }
@@ -9,7 +9,6 @@
9
9
 
10
10
  .van-pull-refresh {
11
11
  overflow: hidden;
12
- user-select: none;
13
12
 
14
13
  &__track {
15
14
  position: relative;
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  import { checkerProps, CheckerShape, CheckerLabelPosition } from '../checkbox/Checker';
3
3
  export declare type RadioShape = CheckerShape;
4
4
  export declare type RadioLabelPosition = CheckerLabelPosition;
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  checkedColor: StringConstructor;
16
16
  labelPosition: import("vue").PropType<CheckerLabelPosition>;
17
17
  labelDisabled: BooleanConstructor;
18
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
19
19
  name?: unknown;
20
20
  shape?: unknown;
21
21
  disabled?: unknown;
@@ -10,7 +10,7 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineC
10
10
  checkedColor: StringConstructor;
11
11
  labelPosition: import("vue").PropType<import("../checkbox/Checker").CheckerLabelPosition>;
12
12
  labelDisabled: BooleanConstructor;
13
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
13
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
14
14
  name?: unknown;
15
15
  shape?: unknown;
16
16
  disabled?: unknown;
@@ -38,3 +38,8 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineC
38
38
  }>>;
39
39
  export default Radio;
40
40
  export type { RadioProps, RadioShape, RadioLabelPosition } from './Radio';
41
+ declare module 'vue' {
42
+ interface GlobalComponents {
43
+ VanRadio: typeof Radio;
44
+ }
45
+ }
@@ -1,4 +1,4 @@
1
- import { PropType, InjectionKey, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
2
2
  import type { CheckerDirection } from '../checkbox/Checker';
3
3
  export declare type RadioGroupDirection = CheckerDirection;
4
4
  declare const radioGroupProps: {
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
20
20
  direction: PropType<CheckerDirection>;
21
21
  modelValue: PropType<unknown>;
22
22
  checkedColor: StringConstructor;
23
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
23
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
24
24
  disabled?: unknown;
25
25
  iconSize?: unknown;
26
26
  direction?: unknown;
@@ -4,7 +4,7 @@ export declare const RadioGroup: import("../utils").WithInstall<import("vue").De
4
4
  direction: import("vue").PropType<import("../checkbox/Checker").CheckerDirection>;
5
5
  modelValue: import("vue").PropType<unknown>;
6
6
  checkedColor: StringConstructor;
7
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
7
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
8
8
  disabled?: unknown;
9
9
  iconSize?: unknown;
10
10
  direction?: unknown;
@@ -25,3 +25,8 @@ export declare const RadioGroup: import("../utils").WithInstall<import("vue").De
25
25
  }>>;
26
26
  export default RadioGroup;
27
27
  export type { RadioGroupProps, RadioGroupDirection } from './RadioGroup';
28
+ declare module 'vue' {
29
+ interface GlobalComponents {
30
+ VanRadioGroup: typeof RadioGroup;
31
+ }
32
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  declare const rateProps: {
3
3
  size: (NumberConstructor | StringConstructor)[];
4
4
  icon: {
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
61
61
  default: number;
62
62
  };
63
63
  disabledColor: StringConstructor;
64
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
64
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
65
65
  size?: unknown;
66
66
  icon?: unknown;
67
67
  color?: unknown;
@@ -28,7 +28,7 @@ export declare const Rate: import("../utils").WithInstall<import("vue").DefineCo
28
28
  default: number;
29
29
  };
30
30
  disabledColor: StringConstructor;
31
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
31
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
32
32
  size?: unknown;
33
33
  icon?: unknown;
34
34
  color?: unknown;
@@ -74,3 +74,8 @@ export declare const Rate: import("../utils").WithInstall<import("vue").DefineCo
74
74
  }>>;
75
75
  export default Rate;
76
76
  export type { RateProps } from './Rate';
77
+ declare module 'vue' {
78
+ interface GlobalComponents {
79
+ VanRate: typeof Rate;
80
+ }
81
+ }
package/lib/row/Row.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PropType, ComputedRef, InjectionKey, ExtractPropTypes } from 'vue';
1
+ import { type PropType, type ComputedRef, type InjectionKey, type ExtractPropTypes } from 'vue';
2
2
  export declare type RowSpaces = {
3
3
  left?: number;
4
4
  right: number;
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  default: number;
42
42
  };
43
43
  justify: PropType<RowJustify>;
44
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
44
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
45
45
  tag?: unknown;
46
46
  wrap?: unknown;
47
47
  align?: unknown;
@@ -13,7 +13,7 @@ export declare const Row: import("../utils").WithInstall<import("vue").DefineCom
13
13
  default: number;
14
14
  };
15
15
  justify: import("vue").PropType<import("./Row").RowJustify>;
16
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
16
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
17
17
  tag?: unknown;
18
18
  wrap?: unknown;
19
19
  align?: unknown;
@@ -33,3 +33,8 @@ export declare const Row: import("../utils").WithInstall<import("vue").DefineCom
33
33
  }>>;
34
34
  export default Row;
35
35
  export type { RowProps, RowAlign, RowJustify } from './Row';
36
+ declare module 'vue' {
37
+ interface GlobalComponents {
38
+ VanRow: typeof Row;
39
+ }
40
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  import type { SearchShape } from './types';
3
3
  declare const searchProps: {
4
4
  id: StringConstructor;
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
118
118
  actionText: StringConstructor;
119
119
  background: StringConstructor;
120
120
  showAction: BooleanConstructor;
121
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "cancel")[], "search" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
121
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "clear" | "focus" | "blur" | "click-input" | "click-left-icon" | "click-right-icon" | "update:modelValue" | "cancel")[], "search" | "clear" | "focus" | "blur" | "click-input" | "click-left-icon" | "click-right-icon" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
122
122
  id?: unknown;
123
123
  name?: unknown;
124
124
  leftIcon?: unknown;
@@ -170,6 +170,12 @@ declare const _default: import("vue").DefineComponent<{
170
170
  background?: string | undefined;
171
171
  actionText?: string | undefined;
172
172
  }> & {
173
+ onFocus?: ((...args: any[]) => any) | undefined;
174
+ onBlur?: ((...args: any[]) => any) | undefined;
175
+ onClear?: ((...args: any[]) => any) | undefined;
176
+ "onClick-input"?: ((...args: any[]) => any) | undefined;
177
+ "onClick-left-icon"?: ((...args: any[]) => any) | undefined;
178
+ "onClick-right-icon"?: ((...args: any[]) => any) | undefined;
173
179
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
174
180
  onCancel?: ((...args: any[]) => any) | undefined;
175
181
  onSearch?: ((...args: any[]) => any) | undefined;
@@ -32,7 +32,7 @@ var searchProps = (0, _utils.extend)({}, _Field.fieldSharedProps, {
32
32
  var _default = (0, _vue.defineComponent)({
33
33
  name,
34
34
  props: searchProps,
35
- emits: ['search', 'cancel', 'update:modelValue'],
35
+ emits: ['blur', 'focus', 'clear', 'search', 'cancel', 'click-input', 'click-left-icon', 'click-right-icon', 'update:modelValue'],
36
36
 
37
37
  setup(props, _ref) {
38
38
  var {
@@ -94,6 +94,18 @@ var _default = (0, _vue.defineComponent)({
94
94
  return (_filedRef$value2 = filedRef.value) == null ? void 0 : _filedRef$value2.focus();
95
95
  };
96
96
 
97
+ var onBlur = event => emit('blur', event);
98
+
99
+ var onFocus = event => emit('focus', event);
100
+
101
+ var onClear = event => emit('clear', event);
102
+
103
+ var onClickInput = event => emit('click-input', event);
104
+
105
+ var onClickLeftIcon = event => emit('click-left-icon', event);
106
+
107
+ var onClickRightIcon = event => emit('click-right-icon', event);
108
+
97
109
  var fieldPropNames = Object.keys(_Field.fieldSharedProps);
98
110
 
99
111
  var renderField = () => {
@@ -108,7 +120,13 @@ var _default = (0, _vue.defineComponent)({
108
120
  "type": "search",
109
121
  "class": bem('field'),
110
122
  "border": false,
123
+ "onBlur": onBlur,
124
+ "onFocus": onFocus,
125
+ "onClear": onClear,
111
126
  "onKeypress": onKeypress,
127
+ "onClick-input": onClickInput,
128
+ "onClick-left-icon": onClickLeftIcon,
129
+ "onClick-right-icon": onClickRightIcon,
112
130
  "onUpdate:modelValue": onInput
113
131
  }, fieldAttrs), (0, _utils.pick)(slots, ['left-icon', 'right-icon']));
114
132
  };
@@ -57,7 +57,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
57
57
  actionText: StringConstructor;
58
58
  background: StringConstructor;
59
59
  showAction: BooleanConstructor;
60
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "cancel")[], "search" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
60
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "clear" | "focus" | "blur" | "click-input" | "click-left-icon" | "click-right-icon" | "update:modelValue" | "cancel")[], "search" | "clear" | "focus" | "blur" | "click-input" | "click-left-icon" | "click-right-icon" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
61
61
  id?: unknown;
62
62
  name?: unknown;
63
63
  leftIcon?: unknown;
@@ -109,6 +109,12 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
109
109
  background?: string | undefined;
110
110
  actionText?: string | undefined;
111
111
  }> & {
112
+ onFocus?: ((...args: any[]) => any) | undefined;
113
+ onBlur?: ((...args: any[]) => any) | undefined;
114
+ onClear?: ((...args: any[]) => any) | undefined;
115
+ "onClick-input"?: ((...args: any[]) => any) | undefined;
116
+ "onClick-left-icon"?: ((...args: any[]) => any) | undefined;
117
+ "onClick-right-icon"?: ((...args: any[]) => any) | undefined;
112
118
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
113
119
  onCancel?: ((...args: any[]) => any) | undefined;
114
120
  onSearch?: ((...args: any[]) => any) | undefined;
@@ -129,3 +135,8 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
129
135
  export default Search;
130
136
  export type { SearchProps };
131
137
  export type { SearchShape, SearchInstance } from './types';
138
+ declare module 'vue' {
139
+ interface GlobalComponents {
140
+ VanSearch: typeof Search;
141
+ }
142
+ }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes } from 'vue';
2
2
  export declare type ShareSheetOption = {
3
3
  name: string;
4
4
  icon: string;
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  type: BooleanConstructor;
99
99
  default: true;
100
100
  };
101
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel")[], "select" | "update:show" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
101
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel")[], "select" | "update:show" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
102
102
  show?: unknown;
103
103
  zIndex?: unknown;
104
104
  overlay?: unknown;
@@ -43,7 +43,7 @@ export declare const ShareSheet: import("../utils").WithInstall<import("vue").De
43
43
  type: BooleanConstructor;
44
44
  default: true;
45
45
  };
46
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel")[], "select" | "update:show" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
46
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel")[], "select" | "update:show" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
47
47
  show?: unknown;
48
48
  zIndex?: unknown;
49
49
  overlay?: unknown;
@@ -102,3 +102,8 @@ export declare const ShareSheet: import("../utils").WithInstall<import("vue").De
102
102
  }>>;
103
103
  export default ShareSheet;
104
104
  export type { ShareSheetProps, ShareSheetOption, ShareSheetOptions, } from './ShareSheet';
105
+ declare module 'vue' {
106
+ interface GlobalComponents {
107
+ VanShareSheet: typeof ShareSheet;
108
+ }
109
+ }
@@ -1,4 +1,4 @@
1
- import { InjectionKey, ExtractPropTypes } from 'vue';
1
+ import { type InjectionKey, type ExtractPropTypes } from 'vue';
2
2
  export declare type SidebarProvide = {
3
3
  getActive: () => number;
4
4
  setActive: (value: number) => void;
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
16
16
  type: (NumberConstructor | StringConstructor)[];
17
17
  default: number;
18
18
  };
19
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
19
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
20
20
  modelValue?: unknown;
21
21
  } & {
22
22
  modelValue: string | number;
@@ -3,7 +3,7 @@ export declare const Sidebar: import("../utils").WithInstall<import("vue").Defin
3
3
  type: (NumberConstructor | StringConstructor)[];
4
4
  default: number;
5
5
  };
6
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
6
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
7
7
  modelValue?: unknown;
8
8
  } & {
9
9
  modelValue: string | number;
@@ -15,3 +15,8 @@ export declare const Sidebar: import("../utils").WithInstall<import("vue").Defin
15
15
  }>>;
16
16
  export default Sidebar;
17
17
  export type { SidebarProps } from './Sidebar';
18
+ declare module 'vue' {
19
+ interface GlobalComponents {
20
+ VanSidebar: typeof Sidebar;
21
+ }
22
+ }