vant 4.9.5 → 4.9.6

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 (717) hide show
  1. package/es/action-bar/ActionBar.d.ts +4 -4
  2. package/es/action-bar/ActionBar.mjs +1 -2
  3. package/es/action-bar/index.d.ts +4 -4
  4. package/es/action-bar-button/ActionBarButton.d.ts +7 -7
  5. package/es/action-bar-button/ActionBarButton.mjs +1 -2
  6. package/es/action-bar-button/index.d.ts +6 -6
  7. package/es/action-bar-icon/ActionBarIcon.d.ts +7 -7
  8. package/es/action-bar-icon/ActionBarIcon.mjs +1 -2
  9. package/es/action-bar-icon/index.d.ts +6 -6
  10. package/es/action-sheet/ActionSheet.d.ts +8 -8
  11. package/es/action-sheet/ActionSheet.mjs +1 -2
  12. package/es/action-sheet/index.d.ts +7 -7
  13. package/es/address-edit/AddressEdit.d.ts +5 -5
  14. package/es/address-edit/AddressEdit.mjs +1 -2
  15. package/es/address-edit/AddressEditDetail.d.ts +5 -5
  16. package/es/address-edit/AddressEditDetail.mjs +1 -2
  17. package/es/address-edit/index.d.ts +5 -5
  18. package/es/address-list/AddressList.d.ts +8 -8
  19. package/es/address-list/AddressList.mjs +1 -2
  20. package/es/address-list/AddressListItem.d.ts +5 -5
  21. package/es/address-list/AddressListItem.mjs +1 -2
  22. package/es/address-list/index.d.ts +7 -7
  23. package/es/area/Area.d.ts +5 -5
  24. package/es/area/Area.mjs +1 -2
  25. package/es/area/index.d.ts +5 -5
  26. package/es/back-top/BackTop.d.ts +12 -12
  27. package/es/back-top/BackTop.mjs +1 -2
  28. package/es/back-top/index.d.ts +9 -9
  29. package/es/badge/Badge.d.ts +4 -4
  30. package/es/badge/Badge.mjs +1 -2
  31. package/es/badge/index.d.ts +4 -4
  32. package/es/barrage/Barrage.d.ts +5 -5
  33. package/es/barrage/Barrage.mjs +1 -2
  34. package/es/barrage/index.d.ts +5 -5
  35. package/es/button/Button.d.ts +8 -8
  36. package/es/button/Button.mjs +1 -2
  37. package/es/button/index.d.ts +7 -7
  38. package/es/calendar/Calendar.d.ts +9 -9
  39. package/es/calendar/Calendar.mjs +1 -2
  40. package/es/calendar/CalendarDay.d.ts +5 -5
  41. package/es/calendar/CalendarDay.mjs +1 -2
  42. package/es/calendar/CalendarHeader.d.ts +5 -5
  43. package/es/calendar/CalendarHeader.mjs +1 -2
  44. package/es/calendar/CalendarMonth.d.ts +5 -5
  45. package/es/calendar/CalendarMonth.mjs +1 -2
  46. package/es/calendar/index.d.ts +7 -7
  47. package/es/calendar/utils.d.ts +1 -1
  48. package/es/card/Card.d.ts +5 -5
  49. package/es/card/Card.mjs +1 -2
  50. package/es/card/index.d.ts +5 -5
  51. package/es/cascader/Cascader.d.ts +6 -6
  52. package/es/cascader/Cascader.mjs +2 -4
  53. package/es/cascader/index.d.ts +6 -6
  54. package/es/cell/Cell.d.ts +7 -7
  55. package/es/cell/Cell.mjs +1 -2
  56. package/es/cell/index.d.ts +6 -6
  57. package/es/cell-group/CellGroup.d.ts +4 -4
  58. package/es/cell-group/CellGroup.mjs +1 -2
  59. package/es/cell-group/index.d.ts +4 -4
  60. package/es/checkbox/Checkbox.d.ts +5 -5
  61. package/es/checkbox/Checkbox.mjs +3 -6
  62. package/es/checkbox/Checker.d.ts +7 -7
  63. package/es/checkbox/Checker.mjs +1 -2
  64. package/es/checkbox/index.d.ts +5 -5
  65. package/es/checkbox-group/CheckboxGroup.d.ts +5 -5
  66. package/es/checkbox-group/CheckboxGroup.mjs +1 -2
  67. package/es/checkbox-group/index.d.ts +5 -5
  68. package/es/circle/Circle.d.ts +5 -5
  69. package/es/circle/Circle.mjs +1 -2
  70. package/es/circle/index.d.ts +5 -5
  71. package/es/col/Col.d.ts +4 -4
  72. package/es/col/Col.mjs +1 -2
  73. package/es/col/index.d.ts +4 -4
  74. package/es/collapse/Collapse.d.ts +5 -5
  75. package/es/collapse/Collapse.mjs +1 -2
  76. package/es/collapse/index.d.ts +5 -5
  77. package/es/collapse-item/CollapseItem.d.ts +4 -4
  78. package/es/collapse-item/CollapseItem.mjs +1 -2
  79. package/es/collapse-item/index.d.ts +4 -4
  80. package/es/composables/use-height.d.ts +1 -1
  81. package/es/composables/use-lazy-render.d.ts +0 -1
  82. package/es/composables/use-placeholder.d.ts +0 -1
  83. package/es/composables/use-refs.d.ts +1 -1
  84. package/es/composables/use-route.d.ts +2 -1
  85. package/es/composables/use-sync-prop-ref.d.ts +1 -1
  86. package/es/composables/use-touch.d.ts +8 -8
  87. package/es/config-provider/ConfigProvider.d.ts +4 -4
  88. package/es/config-provider/ConfigProvider.mjs +1 -2
  89. package/es/config-provider/index.d.ts +4 -4
  90. package/es/contact-card/ContactCard.d.ts +5 -5
  91. package/es/contact-card/ContactCard.mjs +1 -2
  92. package/es/contact-card/index.d.ts +5 -5
  93. package/es/contact-edit/ContactEdit.d.ts +5 -5
  94. package/es/contact-edit/ContactEdit.mjs +1 -2
  95. package/es/contact-edit/index.d.ts +5 -5
  96. package/es/contact-list/ContactList.d.ts +4 -4
  97. package/es/contact-list/ContactList.mjs +1 -2
  98. package/es/contact-list/index.d.ts +4 -4
  99. package/es/count-down/CountDown.d.ts +5 -5
  100. package/es/count-down/CountDown.mjs +1 -2
  101. package/es/count-down/index.d.ts +5 -5
  102. package/es/coupon/Coupon.d.ts +4 -4
  103. package/es/coupon/Coupon.mjs +1 -2
  104. package/es/coupon/index.d.ts +4 -4
  105. package/es/coupon-cell/CouponCell.d.ts +4 -4
  106. package/es/coupon-cell/CouponCell.mjs +1 -2
  107. package/es/coupon-cell/index.d.ts +4 -4
  108. package/es/coupon-list/CouponList.d.ts +5 -5
  109. package/es/coupon-list/CouponList.mjs +1 -2
  110. package/es/coupon-list/index.d.ts +5 -5
  111. package/es/date-picker/DatePicker.d.ts +8 -8
  112. package/es/date-picker/DatePicker.mjs +1 -2
  113. package/es/date-picker/index.d.ts +7 -7
  114. package/es/date-picker/utils.d.ts +2 -1
  115. package/es/dialog/Dialog.d.ts +10 -10
  116. package/es/dialog/Dialog.mjs +1 -2
  117. package/es/dialog/function-call.mjs +1 -1
  118. package/es/dialog/index.d.ts +9 -9
  119. package/es/dialog/types.d.ts +0 -1
  120. package/es/divider/Divider.d.ts +4 -4
  121. package/es/divider/Divider.mjs +1 -2
  122. package/es/divider/index.d.ts +4 -4
  123. package/es/dropdown-item/DropdownItem.d.ts +10 -10
  124. package/es/dropdown-item/DropdownItem.mjs +1 -2
  125. package/es/dropdown-item/index.d.ts +8 -8
  126. package/es/dropdown-menu/DropdownMenu.d.ts +4 -4
  127. package/es/dropdown-menu/DropdownMenu.mjs +1 -2
  128. package/es/dropdown-menu/index.d.ts +4 -4
  129. package/es/empty/Empty.d.ts +4 -4
  130. package/es/empty/Empty.mjs +1 -2
  131. package/es/empty/index.d.ts +4 -4
  132. package/es/field/Field.d.ts +5 -5
  133. package/es/field/Field.mjs +1 -2
  134. package/es/field/index.d.ts +5 -5
  135. package/es/floating-bubble/FloatingBubble.d.ts +9 -9
  136. package/es/floating-bubble/FloatingBubble.mjs +9 -18
  137. package/es/floating-bubble/index.d.ts +7 -7
  138. package/es/floating-panel/FloatingPanel.d.ts +5 -5
  139. package/es/floating-panel/FloatingPanel.mjs +2 -4
  140. package/es/floating-panel/index.d.ts +5 -5
  141. package/es/form/Form.d.ts +5 -5
  142. package/es/form/Form.mjs +1 -2
  143. package/es/form/index.d.ts +5 -5
  144. package/es/grid/Grid.d.ts +4 -4
  145. package/es/grid/Grid.mjs +1 -2
  146. package/es/grid/index.d.ts +4 -4
  147. package/es/grid-item/GridItem.d.ts +7 -7
  148. package/es/grid-item/GridItem.mjs +1 -2
  149. package/es/grid-item/index.d.ts +6 -6
  150. package/es/highlight/Highlight.d.ts +4 -4
  151. package/es/highlight/Highlight.mjs +1 -2
  152. package/es/highlight/index.d.ts +4 -4
  153. package/es/icon/Icon.d.ts +4 -4
  154. package/es/icon/Icon.mjs +1 -2
  155. package/es/icon/index.d.ts +4 -4
  156. package/es/image/Image.d.ts +19 -18
  157. package/es/image/Image.mjs +1 -2
  158. package/es/image/index.d.ts +13 -13
  159. package/es/image-preview/ImagePreview.d.ts +9 -9
  160. package/es/image-preview/ImagePreview.mjs +1 -2
  161. package/es/image-preview/ImagePreviewItem.d.ts +5 -5
  162. package/es/image-preview/ImagePreviewItem.mjs +4 -8
  163. package/es/image-preview/function-call.mjs +1 -1
  164. package/es/image-preview/index.d.ts +7 -7
  165. package/es/index-anchor/IndexAnchor.d.ts +3 -3
  166. package/es/index-anchor/IndexAnchor.mjs +1 -2
  167. package/es/index-anchor/index.d.ts +3 -3
  168. package/es/index-bar/IndexBar.d.ts +9 -9
  169. package/es/index-bar/IndexBar.mjs +1 -2
  170. package/es/index-bar/index.d.ts +7 -7
  171. package/es/index.d.ts +1 -1
  172. package/es/index.mjs +1 -1
  173. package/es/lazyload/vue-lazyload/lazy-container.mjs +2 -4
  174. package/es/lazyload/vue-lazyload/lazy.mjs +8 -16
  175. package/es/lazyload/vue-lazyload/listener.mjs +2 -4
  176. package/es/lazyload/vue-lazyload/util.mjs +5 -10
  177. package/es/list/List.d.ts +5 -5
  178. package/es/list/List.mjs +1 -2
  179. package/es/list/index.d.ts +5 -5
  180. package/es/loading/Loading.d.ts +4 -4
  181. package/es/loading/Loading.mjs +1 -2
  182. package/es/loading/index.d.ts +4 -4
  183. package/es/locale/index.d.ts +1 -1
  184. package/es/nav-bar/NavBar.d.ts +5 -5
  185. package/es/nav-bar/NavBar.mjs +1 -2
  186. package/es/nav-bar/index.d.ts +5 -5
  187. package/es/notice-bar/NoticeBar.d.ts +5 -5
  188. package/es/notice-bar/NoticeBar.mjs +1 -2
  189. package/es/notice-bar/index.d.ts +5 -5
  190. package/es/notify/Notify.d.ts +8 -8
  191. package/es/notify/Notify.mjs +1 -2
  192. package/es/notify/function-call.mjs +1 -1
  193. package/es/notify/index.d.ts +7 -7
  194. package/es/number-keyboard/NumberKeyboard.d.ts +10 -10
  195. package/es/number-keyboard/NumberKeyboard.mjs +7 -3
  196. package/es/number-keyboard/NumberKeyboardKey.d.ts +5 -5
  197. package/es/number-keyboard/NumberKeyboardKey.mjs +1 -2
  198. package/es/number-keyboard/index.d.ts +8 -8
  199. package/es/overlay/Overlay.d.ts +8 -8
  200. package/es/overlay/Overlay.mjs +1 -2
  201. package/es/overlay/index.d.ts +6 -6
  202. package/es/pagination/Pagination.d.ts +5 -5
  203. package/es/pagination/Pagination.mjs +1 -2
  204. package/es/pagination/index.d.ts +5 -5
  205. package/es/password-input/PasswordInput.d.ts +5 -5
  206. package/es/password-input/PasswordInput.mjs +1 -2
  207. package/es/password-input/index.d.ts +5 -5
  208. package/es/picker/Picker.d.ts +5 -5
  209. package/es/picker/Picker.mjs +1 -2
  210. package/es/picker/PickerColumn.d.ts +5 -5
  211. package/es/picker/PickerColumn.mjs +2 -4
  212. package/es/picker/PickerToolbar.d.ts +4 -4
  213. package/es/picker/PickerToolbar.mjs +1 -2
  214. package/es/picker/index.d.ts +5 -5
  215. package/es/picker/utils.d.ts +1 -1
  216. package/es/picker/utils.mjs +2 -4
  217. package/es/picker-group/PickerGroup.d.ts +5 -5
  218. package/es/picker-group/PickerGroup.mjs +1 -2
  219. package/es/picker-group/index.d.ts +5 -5
  220. package/es/popover/Popover.d.ts +9 -9
  221. package/es/popover/Popover.mjs +1 -2
  222. package/es/popover/index.d.ts +7 -7
  223. package/es/popup/Popup.d.ts +9 -9
  224. package/es/popup/Popup.mjs +2 -4
  225. package/es/popup/index.d.ts +8 -8
  226. package/es/popup/shared.d.ts +2 -2
  227. package/es/progress/Progress.d.ts +4 -4
  228. package/es/progress/Progress.mjs +1 -2
  229. package/es/progress/index.d.ts +4 -4
  230. package/es/pull-refresh/PullRefresh.d.ts +5 -5
  231. package/es/pull-refresh/PullRefresh.mjs +1 -2
  232. package/es/pull-refresh/index.d.ts +5 -5
  233. package/es/radio/Radio.d.ts +5 -5
  234. package/es/radio/Radio.mjs +1 -2
  235. package/es/radio/index.d.ts +5 -5
  236. package/es/radio-group/RadioGroup.d.ts +8 -8
  237. package/es/radio-group/RadioGroup.mjs +1 -2
  238. package/es/radio-group/index.d.ts +7 -7
  239. package/es/rate/Rate.d.ts +5 -5
  240. package/es/rate/Rate.mjs +2 -4
  241. package/es/rate/index.d.ts +5 -5
  242. package/es/rolling-text/RollingText.d.ts +4 -4
  243. package/es/rolling-text/RollingText.mjs +4 -8
  244. package/es/rolling-text/RollingTextItem.d.ts +4 -4
  245. package/es/rolling-text/RollingTextItem.mjs +1 -2
  246. package/es/rolling-text/index.d.ts +4 -4
  247. package/es/row/Row.d.ts +4 -4
  248. package/es/row/Row.mjs +2 -4
  249. package/es/row/index.d.ts +4 -4
  250. package/es/search/Search.d.ts +5 -5
  251. package/es/search/Search.mjs +1 -2
  252. package/es/search/index.d.ts +5 -5
  253. package/es/share-sheet/ShareSheet.d.ts +8 -8
  254. package/es/share-sheet/ShareSheet.mjs +1 -2
  255. package/es/share-sheet/index.d.ts +7 -7
  256. package/es/sidebar/Sidebar.d.ts +5 -5
  257. package/es/sidebar/Sidebar.mjs +1 -2
  258. package/es/sidebar/index.d.ts +5 -5
  259. package/es/sidebar-item/SidebarItem.d.ts +8 -8
  260. package/es/sidebar-item/SidebarItem.mjs +1 -2
  261. package/es/sidebar-item/index.d.ts +7 -7
  262. package/es/signature/Signature.d.ts +5 -5
  263. package/es/signature/Signature.mjs +2 -4
  264. package/es/signature/index.d.ts +5 -5
  265. package/es/skeleton/Skeleton.d.ts +5 -5
  266. package/es/skeleton/Skeleton.mjs +1 -2
  267. package/es/skeleton/index.d.ts +5 -5
  268. package/es/skeleton-avatar/SkeletonAvatar.d.ts +4 -4
  269. package/es/skeleton-avatar/SkeletonAvatar.mjs +1 -2
  270. package/es/skeleton-avatar/index.d.ts +4 -4
  271. package/es/skeleton-image/SkeletonImage.d.ts +4 -4
  272. package/es/skeleton-image/SkeletonImage.mjs +1 -2
  273. package/es/skeleton-image/index.d.ts +4 -4
  274. package/es/skeleton-paragraph/SkeletonParagraph.d.ts +4 -4
  275. package/es/skeleton-paragraph/SkeletonParagraph.mjs +1 -2
  276. package/es/skeleton-paragraph/index.d.ts +4 -4
  277. package/es/skeleton-title/SkeletonTitle.d.ts +4 -4
  278. package/es/skeleton-title/SkeletonTitle.mjs +1 -2
  279. package/es/skeleton-title/index.d.ts +4 -4
  280. package/es/slider/Slider.d.ts +5 -5
  281. package/es/slider/Slider.mjs +1 -2
  282. package/es/slider/index.d.ts +5 -5
  283. package/es/space/Space.d.ts +10 -10
  284. package/es/space/Space.mjs +1 -2
  285. package/es/space/index.d.ts +8 -8
  286. package/es/step/Step.d.ts +1 -1
  287. package/es/step/Step.mjs +1 -2
  288. package/es/step/index.d.ts +1 -1
  289. package/es/stepper/Stepper.d.ts +5 -5
  290. package/es/stepper/Stepper.mjs +1 -2
  291. package/es/stepper/index.d.ts +5 -5
  292. package/es/steps/Steps.d.ts +5 -5
  293. package/es/steps/Steps.mjs +1 -2
  294. package/es/steps/index.d.ts +5 -5
  295. package/es/sticky/Sticky.d.ts +5 -5
  296. package/es/sticky/Sticky.mjs +1 -2
  297. package/es/sticky/index.d.ts +5 -5
  298. package/es/submit-bar/SubmitBar.d.ts +5 -5
  299. package/es/submit-bar/SubmitBar.mjs +1 -2
  300. package/es/submit-bar/index.d.ts +5 -5
  301. package/es/swipe/Swipe.d.ts +5 -5
  302. package/es/swipe/Swipe.mjs +2 -4
  303. package/es/swipe/index.d.ts +5 -5
  304. package/es/swipe-cell/SwipeCell.d.ts +6 -6
  305. package/es/swipe-cell/SwipeCell.mjs +2 -4
  306. package/es/swipe-cell/index.d.ts +6 -6
  307. package/es/swipe-item/SwipeItem.d.ts +1 -1
  308. package/es/swipe-item/SwipeItem.mjs +1 -2
  309. package/es/swipe-item/index.d.ts +1 -1
  310. package/es/switch/Switch.d.ts +5 -5
  311. package/es/switch/Switch.mjs +1 -2
  312. package/es/switch/index.d.ts +5 -5
  313. package/es/tab/Tab.d.ts +7 -7
  314. package/es/tab/Tab.mjs +1 -2
  315. package/es/tab/TabTitle.d.ts +4 -4
  316. package/es/tab/TabTitle.mjs +1 -2
  317. package/es/tab/index.d.ts +6 -6
  318. package/es/tabbar/Tabbar.d.ts +5 -5
  319. package/es/tabbar/Tabbar.mjs +1 -2
  320. package/es/tabbar/index.d.ts +5 -5
  321. package/es/tabbar-item/TabbarItem.d.ts +8 -8
  322. package/es/tabbar-item/TabbarItem.mjs +1 -2
  323. package/es/tabbar-item/index.d.ts +7 -7
  324. package/es/tabs/Tabs.d.ts +5 -5
  325. package/es/tabs/Tabs.mjs +3 -6
  326. package/es/tabs/TabsContent.d.ts +5 -5
  327. package/es/tabs/TabsContent.mjs +1 -2
  328. package/es/tabs/index.d.ts +5 -5
  329. package/es/tag/Tag.d.ts +5 -5
  330. package/es/tag/Tag.mjs +1 -2
  331. package/es/tag/index.d.ts +5 -5
  332. package/es/text-ellipsis/TextEllipsis.d.ts +5 -5
  333. package/es/text-ellipsis/TextEllipsis.mjs +3 -6
  334. package/es/text-ellipsis/index.d.ts +5 -5
  335. package/es/time-picker/TimePicker.d.ts +12 -11
  336. package/es/time-picker/TimePicker.mjs +1 -2
  337. package/es/time-picker/index.d.ts +9 -9
  338. package/es/toast/Toast.d.ts +9 -9
  339. package/es/toast/Toast.mjs +1 -2
  340. package/es/toast/function-call.mjs +1 -2
  341. package/es/toast/index.d.ts +7 -7
  342. package/es/tree-select/TreeSelect.d.ts +5 -5
  343. package/es/tree-select/TreeSelect.mjs +1 -2
  344. package/es/tree-select/index.d.ts +5 -5
  345. package/es/uploader/Uploader.d.ts +5 -5
  346. package/es/uploader/Uploader.mjs +1 -2
  347. package/es/uploader/UploaderPreviewItem.d.ts +8 -7
  348. package/es/uploader/UploaderPreviewItem.mjs +1 -2
  349. package/es/uploader/index.d.ts +5 -5
  350. package/es/uploader/utils.d.ts +1 -1
  351. package/es/utils/basic.d.ts +2 -2
  352. package/es/utils/create.d.ts +1 -1
  353. package/es/utils/dom.d.ts +1 -1
  354. package/es/utils/mount-component.d.ts +1 -1
  355. package/es/watermark/Watermark.d.ts +4 -4
  356. package/es/watermark/Watermark.mjs +1 -2
  357. package/es/watermark/index.d.ts +4 -4
  358. package/lib/action-bar/ActionBar.d.ts +4 -4
  359. package/lib/action-bar/ActionBar.js +2 -3
  360. package/lib/action-bar/index.d.ts +4 -4
  361. package/lib/action-bar-button/ActionBarButton.d.ts +7 -7
  362. package/lib/action-bar-button/ActionBarButton.js +3 -4
  363. package/lib/action-bar-button/index.d.ts +6 -6
  364. package/lib/action-bar-icon/ActionBarIcon.d.ts +7 -7
  365. package/lib/action-bar-icon/ActionBarIcon.js +1 -2
  366. package/lib/action-bar-icon/index.d.ts +6 -6
  367. package/lib/action-sheet/ActionSheet.d.ts +8 -8
  368. package/lib/action-sheet/ActionSheet.js +2 -3
  369. package/lib/action-sheet/index.d.ts +7 -7
  370. package/lib/address-edit/AddressEdit.d.ts +5 -5
  371. package/lib/address-edit/AddressEdit.js +11 -12
  372. package/lib/address-edit/AddressEditDetail.d.ts +5 -5
  373. package/lib/address-edit/AddressEditDetail.js +2 -3
  374. package/lib/address-edit/index.d.ts +5 -5
  375. package/lib/address-list/AddressList.d.ts +8 -8
  376. package/lib/address-list/AddressList.js +2 -3
  377. package/lib/address-list/AddressListItem.d.ts +5 -5
  378. package/lib/address-list/AddressListItem.js +1 -2
  379. package/lib/address-list/index.d.ts +7 -7
  380. package/lib/area/Area.d.ts +5 -5
  381. package/lib/area/Area.js +6 -7
  382. package/lib/area/index.d.ts +5 -5
  383. package/lib/back-top/BackTop.d.ts +12 -12
  384. package/lib/back-top/BackTop.js +11 -12
  385. package/lib/back-top/index.d.ts +9 -9
  386. package/lib/badge/Badge.d.ts +4 -4
  387. package/lib/badge/Badge.js +2 -3
  388. package/lib/badge/index.d.ts +4 -4
  389. package/lib/barrage/Barrage.d.ts +5 -5
  390. package/lib/barrage/Barrage.js +9 -10
  391. package/lib/barrage/index.d.ts +5 -5
  392. package/lib/button/Button.d.ts +8 -8
  393. package/lib/button/Button.js +1 -2
  394. package/lib/button/index.d.ts +7 -7
  395. package/lib/calendar/Calendar.d.ts +9 -9
  396. package/lib/calendar/Calendar.js +15 -16
  397. package/lib/calendar/CalendarDay.d.ts +5 -5
  398. package/lib/calendar/CalendarDay.js +2 -3
  399. package/lib/calendar/CalendarHeader.d.ts +5 -5
  400. package/lib/calendar/CalendarHeader.js +5 -6
  401. package/lib/calendar/CalendarMonth.d.ts +5 -5
  402. package/lib/calendar/CalendarMonth.js +11 -12
  403. package/lib/calendar/index.d.ts +7 -7
  404. package/lib/calendar/utils.d.ts +1 -1
  405. package/lib/card/Card.d.ts +5 -5
  406. package/lib/card/Card.js +1 -2
  407. package/lib/card/index.d.ts +5 -5
  408. package/lib/cascader/Cascader.d.ts +6 -6
  409. package/lib/cascader/Cascader.js +9 -11
  410. package/lib/cascader/index.d.ts +6 -6
  411. package/lib/cell/Cell.d.ts +7 -7
  412. package/lib/cell/Cell.js +1 -2
  413. package/lib/cell/index.d.ts +6 -6
  414. package/lib/cell-group/CellGroup.d.ts +4 -4
  415. package/lib/cell-group/CellGroup.js +1 -2
  416. package/lib/cell-group/index.d.ts +4 -4
  417. package/lib/checkbox/Checkbox.d.ts +5 -5
  418. package/lib/checkbox/Checkbox.js +5 -8
  419. package/lib/checkbox/Checker.d.ts +7 -7
  420. package/lib/checkbox/Checker.js +6 -7
  421. package/lib/checkbox/index.d.ts +5 -5
  422. package/lib/checkbox-group/CheckboxGroup.d.ts +5 -5
  423. package/lib/checkbox-group/CheckboxGroup.js +2 -3
  424. package/lib/checkbox-group/index.d.ts +5 -5
  425. package/lib/circle/Circle.d.ts +5 -5
  426. package/lib/circle/Circle.js +5 -6
  427. package/lib/circle/index.d.ts +5 -5
  428. package/lib/col/Col.d.ts +4 -4
  429. package/lib/col/Col.js +2 -3
  430. package/lib/col/index.d.ts +4 -4
  431. package/lib/collapse/Collapse.d.ts +5 -5
  432. package/lib/collapse/Collapse.js +1 -2
  433. package/lib/collapse/index.d.ts +5 -5
  434. package/lib/collapse-item/CollapseItem.d.ts +4 -4
  435. package/lib/collapse-item/CollapseItem.js +8 -9
  436. package/lib/collapse-item/index.d.ts +4 -4
  437. package/lib/composables/use-height.d.ts +1 -1
  438. package/lib/composables/use-lazy-render.d.ts +0 -1
  439. package/lib/composables/use-placeholder.d.ts +0 -1
  440. package/lib/composables/use-refs.d.ts +1 -1
  441. package/lib/composables/use-route.d.ts +2 -1
  442. package/lib/composables/use-sync-prop-ref.d.ts +1 -1
  443. package/lib/composables/use-touch.d.ts +8 -8
  444. package/lib/config-provider/ConfigProvider.d.ts +4 -4
  445. package/lib/config-provider/ConfigProvider.js +10 -11
  446. package/lib/config-provider/index.d.ts +4 -4
  447. package/lib/contact-card/ContactCard.d.ts +5 -5
  448. package/lib/contact-card/ContactCard.js +1 -2
  449. package/lib/contact-card/index.d.ts +5 -5
  450. package/lib/contact-edit/ContactEdit.d.ts +5 -5
  451. package/lib/contact-edit/ContactEdit.js +3 -4
  452. package/lib/contact-edit/index.d.ts +5 -5
  453. package/lib/contact-list/ContactList.d.ts +4 -4
  454. package/lib/contact-list/ContactList.js +1 -2
  455. package/lib/contact-list/index.d.ts +4 -4
  456. package/lib/count-down/CountDown.d.ts +5 -5
  457. package/lib/count-down/CountDown.js +3 -4
  458. package/lib/count-down/index.d.ts +5 -5
  459. package/lib/coupon/Coupon.d.ts +4 -4
  460. package/lib/coupon/Coupon.js +4 -5
  461. package/lib/coupon/index.d.ts +4 -4
  462. package/lib/coupon-cell/CouponCell.d.ts +4 -4
  463. package/lib/coupon-cell/CouponCell.js +1 -2
  464. package/lib/coupon-cell/index.d.ts +4 -4
  465. package/lib/coupon-list/CouponList.d.ts +5 -5
  466. package/lib/coupon-list/CouponList.js +13 -14
  467. package/lib/coupon-list/index.d.ts +5 -5
  468. package/lib/date-picker/DatePicker.d.ts +8 -8
  469. package/lib/date-picker/DatePicker.js +7 -8
  470. package/lib/date-picker/index.d.ts +7 -7
  471. package/lib/date-picker/utils.d.ts +2 -1
  472. package/lib/dialog/Dialog.d.ts +10 -10
  473. package/lib/dialog/Dialog.js +4 -5
  474. package/lib/dialog/index.d.ts +9 -9
  475. package/lib/dialog/types.d.ts +0 -1
  476. package/lib/divider/Divider.d.ts +4 -4
  477. package/lib/divider/Divider.js +1 -2
  478. package/lib/divider/index.d.ts +4 -4
  479. package/lib/dropdown-item/DropdownItem.d.ts +10 -10
  480. package/lib/dropdown-item/DropdownItem.js +4 -5
  481. package/lib/dropdown-item/index.d.ts +8 -8
  482. package/lib/dropdown-menu/DropdownMenu.d.ts +4 -4
  483. package/lib/dropdown-menu/DropdownMenu.js +7 -8
  484. package/lib/dropdown-menu/index.d.ts +4 -4
  485. package/lib/empty/Empty.d.ts +4 -4
  486. package/lib/empty/Empty.js +1 -2
  487. package/lib/empty/index.d.ts +4 -4
  488. package/lib/field/Field.d.ts +5 -5
  489. package/lib/field/Field.js +18 -19
  490. package/lib/field/index.d.ts +5 -5
  491. package/lib/floating-bubble/FloatingBubble.d.ts +9 -9
  492. package/lib/floating-bubble/FloatingBubble.js +22 -31
  493. package/lib/floating-bubble/index.d.ts +7 -7
  494. package/lib/floating-panel/FloatingPanel.d.ts +5 -5
  495. package/lib/floating-panel/FloatingPanel.js +9 -11
  496. package/lib/floating-panel/index.d.ts +5 -5
  497. package/lib/form/Form.d.ts +5 -5
  498. package/lib/form/Form.js +1 -2
  499. package/lib/form/index.d.ts +5 -5
  500. package/lib/grid/Grid.d.ts +4 -4
  501. package/lib/grid/Grid.js +1 -2
  502. package/lib/grid/index.d.ts +4 -4
  503. package/lib/grid-item/GridItem.d.ts +7 -7
  504. package/lib/grid-item/GridItem.js +3 -4
  505. package/lib/grid-item/index.d.ts +6 -6
  506. package/lib/highlight/Highlight.d.ts +4 -4
  507. package/lib/highlight/Highlight.js +2 -3
  508. package/lib/highlight/index.d.ts +4 -4
  509. package/lib/icon/Icon.d.ts +4 -4
  510. package/lib/icon/Icon.js +3 -4
  511. package/lib/icon/index.d.ts +4 -4
  512. package/lib/image/Image.d.ts +19 -18
  513. package/lib/image/Image.js +11 -12
  514. package/lib/image/index.d.ts +13 -13
  515. package/lib/image-preview/ImagePreview.d.ts +9 -9
  516. package/lib/image-preview/ImagePreview.js +9 -10
  517. package/lib/image-preview/ImagePreviewItem.d.ts +5 -5
  518. package/lib/image-preview/ImagePreviewItem.js +16 -20
  519. package/lib/image-preview/index.d.ts +7 -7
  520. package/lib/index-anchor/IndexAnchor.d.ts +3 -3
  521. package/lib/index-anchor/IndexAnchor.js +4 -5
  522. package/lib/index-anchor/index.d.ts +3 -3
  523. package/lib/index-bar/IndexBar.d.ts +9 -9
  524. package/lib/index-bar/IndexBar.js +11 -12
  525. package/lib/index-bar/index.d.ts +7 -7
  526. package/lib/index.d.ts +1 -1
  527. package/lib/index.js +1 -1
  528. package/lib/lazyload/vue-lazyload/lazy-container.js +2 -4
  529. package/lib/lazyload/vue-lazyload/lazy.js +8 -16
  530. package/lib/lazyload/vue-lazyload/listener.js +2 -4
  531. package/lib/lazyload/vue-lazyload/util.js +5 -10
  532. package/lib/list/List.d.ts +5 -5
  533. package/lib/list/List.js +10 -11
  534. package/lib/list/index.d.ts +5 -5
  535. package/lib/loading/Loading.d.ts +4 -4
  536. package/lib/loading/Loading.js +2 -3
  537. package/lib/loading/index.d.ts +4 -4
  538. package/lib/locale/index.d.ts +1 -1
  539. package/lib/nav-bar/NavBar.d.ts +5 -5
  540. package/lib/nav-bar/NavBar.js +2 -3
  541. package/lib/nav-bar/index.d.ts +5 -5
  542. package/lib/notice-bar/NoticeBar.d.ts +5 -5
  543. package/lib/notice-bar/NoticeBar.js +5 -6
  544. package/lib/notice-bar/index.d.ts +5 -5
  545. package/lib/notify/Notify.d.ts +8 -8
  546. package/lib/notify/Notify.js +1 -2
  547. package/lib/notify/index.d.ts +7 -7
  548. package/lib/number-keyboard/NumberKeyboard.d.ts +10 -10
  549. package/lib/number-keyboard/NumberKeyboard.js +12 -8
  550. package/lib/number-keyboard/NumberKeyboardKey.d.ts +5 -5
  551. package/lib/number-keyboard/NumberKeyboardKey.js +2 -3
  552. package/lib/number-keyboard/index.d.ts +8 -8
  553. package/lib/overlay/Overlay.d.ts +8 -8
  554. package/lib/overlay/Overlay.js +4 -5
  555. package/lib/overlay/index.d.ts +6 -6
  556. package/lib/pagination/Pagination.d.ts +5 -5
  557. package/lib/pagination/Pagination.js +4 -5
  558. package/lib/pagination/index.d.ts +5 -5
  559. package/lib/password-input/PasswordInput.d.ts +5 -5
  560. package/lib/password-input/PasswordInput.js +1 -2
  561. package/lib/password-input/index.d.ts +5 -5
  562. package/lib/picker/Picker.d.ts +5 -5
  563. package/lib/picker/Picker.js +15 -16
  564. package/lib/picker/PickerColumn.d.ts +5 -5
  565. package/lib/picker/PickerColumn.js +8 -10
  566. package/lib/picker/PickerToolbar.d.ts +4 -4
  567. package/lib/picker/PickerToolbar.js +1 -2
  568. package/lib/picker/index.d.ts +5 -5
  569. package/lib/picker/utils.d.ts +1 -1
  570. package/lib/picker/utils.js +2 -4
  571. package/lib/picker-group/PickerGroup.d.ts +5 -5
  572. package/lib/picker-group/PickerGroup.js +3 -4
  573. package/lib/picker-group/index.d.ts +5 -5
  574. package/lib/popover/Popover.d.ts +9 -9
  575. package/lib/popover/Popover.js +9 -10
  576. package/lib/popover/index.d.ts +7 -7
  577. package/lib/popup/Popup.d.ts +9 -9
  578. package/lib/popup/Popup.js +13 -15
  579. package/lib/popup/index.d.ts +8 -8
  580. package/lib/popup/shared.d.ts +2 -2
  581. package/lib/progress/Progress.d.ts +4 -4
  582. package/lib/progress/Progress.js +2 -3
  583. package/lib/progress/index.d.ts +4 -4
  584. package/lib/pull-refresh/PullRefresh.d.ts +5 -5
  585. package/lib/pull-refresh/PullRefresh.js +6 -7
  586. package/lib/pull-refresh/index.d.ts +5 -5
  587. package/lib/radio/Radio.d.ts +5 -5
  588. package/lib/radio/Radio.js +1 -2
  589. package/lib/radio/index.d.ts +5 -5
  590. package/lib/radio-group/RadioGroup.d.ts +8 -8
  591. package/lib/radio-group/RadioGroup.js +2 -3
  592. package/lib/radio-group/index.d.ts +7 -7
  593. package/lib/rate/Rate.d.ts +5 -5
  594. package/lib/rate/Rate.js +6 -8
  595. package/lib/rate/index.d.ts +5 -5
  596. package/lib/rolling-text/RollingText.d.ts +4 -4
  597. package/lib/rolling-text/RollingText.js +10 -14
  598. package/lib/rolling-text/RollingTextItem.d.ts +4 -4
  599. package/lib/rolling-text/RollingTextItem.js +5 -6
  600. package/lib/rolling-text/index.d.ts +4 -4
  601. package/lib/row/Row.d.ts +4 -4
  602. package/lib/row/Row.js +5 -7
  603. package/lib/row/index.d.ts +4 -4
  604. package/lib/search/Search.d.ts +5 -5
  605. package/lib/search/Search.js +2 -3
  606. package/lib/search/index.d.ts +5 -5
  607. package/lib/share-sheet/ShareSheet.d.ts +8 -8
  608. package/lib/share-sheet/ShareSheet.js +1 -2
  609. package/lib/share-sheet/index.d.ts +7 -7
  610. package/lib/sidebar/Sidebar.d.ts +5 -5
  611. package/lib/sidebar/Sidebar.js +1 -2
  612. package/lib/sidebar/index.d.ts +5 -5
  613. package/lib/sidebar-item/SidebarItem.d.ts +8 -8
  614. package/lib/sidebar-item/SidebarItem.js +1 -2
  615. package/lib/sidebar-item/index.d.ts +7 -7
  616. package/lib/signature/Signature.d.ts +5 -5
  617. package/lib/signature/Signature.js +7 -9
  618. package/lib/signature/index.d.ts +5 -5
  619. package/lib/skeleton/Skeleton.d.ts +5 -5
  620. package/lib/skeleton/Skeleton.js +1 -2
  621. package/lib/skeleton/index.d.ts +5 -5
  622. package/lib/skeleton-avatar/SkeletonAvatar.d.ts +4 -4
  623. package/lib/skeleton-avatar/SkeletonAvatar.js +1 -2
  624. package/lib/skeleton-avatar/index.d.ts +4 -4
  625. package/lib/skeleton-image/SkeletonImage.d.ts +4 -4
  626. package/lib/skeleton-image/SkeletonImage.js +1 -2
  627. package/lib/skeleton-image/index.d.ts +4 -4
  628. package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +4 -4
  629. package/lib/skeleton-paragraph/SkeletonParagraph.js +1 -2
  630. package/lib/skeleton-paragraph/index.d.ts +4 -4
  631. package/lib/skeleton-title/SkeletonTitle.d.ts +4 -4
  632. package/lib/skeleton-title/SkeletonTitle.js +1 -2
  633. package/lib/skeleton-title/index.d.ts +4 -4
  634. package/lib/slider/Slider.d.ts +5 -5
  635. package/lib/slider/Slider.js +7 -8
  636. package/lib/slider/index.d.ts +5 -5
  637. package/lib/space/Space.d.ts +10 -10
  638. package/lib/space/Space.js +4 -5
  639. package/lib/space/index.d.ts +8 -8
  640. package/lib/step/Step.d.ts +1 -1
  641. package/lib/step/Step.js +3 -4
  642. package/lib/step/index.d.ts +1 -1
  643. package/lib/stepper/Stepper.d.ts +5 -5
  644. package/lib/stepper/Stepper.js +11 -12
  645. package/lib/stepper/index.d.ts +5 -5
  646. package/lib/steps/Steps.d.ts +5 -5
  647. package/lib/steps/Steps.js +1 -2
  648. package/lib/steps/index.d.ts +5 -5
  649. package/lib/sticky/Sticky.d.ts +5 -5
  650. package/lib/sticky/Sticky.js +10 -11
  651. package/lib/sticky/index.d.ts +5 -5
  652. package/lib/submit-bar/SubmitBar.d.ts +5 -5
  653. package/lib/submit-bar/SubmitBar.js +2 -3
  654. package/lib/submit-bar/index.d.ts +5 -5
  655. package/lib/swipe/Swipe.d.ts +5 -5
  656. package/lib/swipe/Swipe.js +24 -26
  657. package/lib/swipe/index.d.ts +5 -5
  658. package/lib/swipe-cell/SwipeCell.d.ts +6 -6
  659. package/lib/swipe-cell/SwipeCell.js +8 -10
  660. package/lib/swipe-cell/index.d.ts +6 -6
  661. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  662. package/lib/swipe-item/SwipeItem.js +6 -7
  663. package/lib/swipe-item/index.d.ts +1 -1
  664. package/lib/switch/Switch.d.ts +5 -5
  665. package/lib/switch/Switch.js +1 -2
  666. package/lib/switch/index.d.ts +5 -5
  667. package/lib/tab/Tab.d.ts +7 -7
  668. package/lib/tab/Tab.js +12 -13
  669. package/lib/tab/TabTitle.d.ts +4 -4
  670. package/lib/tab/TabTitle.js +2 -3
  671. package/lib/tab/index.d.ts +6 -6
  672. package/lib/tabbar/Tabbar.d.ts +5 -5
  673. package/lib/tabbar/Tabbar.js +2 -3
  674. package/lib/tabbar/index.d.ts +5 -5
  675. package/lib/tabbar-item/TabbarItem.d.ts +8 -8
  676. package/lib/tabbar-item/TabbarItem.js +3 -4
  677. package/lib/tabbar-item/index.d.ts +7 -7
  678. package/lib/tabs/Tabs.d.ts +5 -5
  679. package/lib/tabs/Tabs.js +23 -26
  680. package/lib/tabs/TabsContent.d.ts +5 -5
  681. package/lib/tabs/TabsContent.js +4 -5
  682. package/lib/tabs/index.d.ts +5 -5
  683. package/lib/tag/Tag.d.ts +5 -5
  684. package/lib/tag/Tag.js +2 -3
  685. package/lib/tag/index.d.ts +5 -5
  686. package/lib/text-ellipsis/TextEllipsis.d.ts +5 -5
  687. package/lib/text-ellipsis/TextEllipsis.js +13 -16
  688. package/lib/text-ellipsis/index.d.ts +5 -5
  689. package/lib/time-picker/TimePicker.d.ts +12 -11
  690. package/lib/time-picker/TimePicker.js +6 -7
  691. package/lib/time-picker/index.d.ts +9 -9
  692. package/lib/toast/Toast.d.ts +9 -9
  693. package/lib/toast/Toast.js +5 -6
  694. package/lib/toast/function-call.js +3 -4
  695. package/lib/toast/index.d.ts +7 -7
  696. package/lib/tree-select/TreeSelect.d.ts +5 -5
  697. package/lib/tree-select/TreeSelect.js +1 -2
  698. package/lib/tree-select/index.d.ts +5 -5
  699. package/lib/uploader/Uploader.d.ts +5 -5
  700. package/lib/uploader/Uploader.js +7 -8
  701. package/lib/uploader/UploaderPreviewItem.d.ts +8 -7
  702. package/lib/uploader/UploaderPreviewItem.js +1 -2
  703. package/lib/uploader/index.d.ts +5 -5
  704. package/lib/uploader/utils.d.ts +1 -1
  705. package/lib/utils/basic.d.ts +2 -2
  706. package/lib/utils/create.d.ts +1 -1
  707. package/lib/utils/dom.d.ts +1 -1
  708. package/lib/utils/mount-component.d.ts +1 -1
  709. package/lib/vant.cjs.js +55 -98
  710. package/lib/vant.es.js +55 -98
  711. package/lib/vant.js +56 -99
  712. package/lib/vant.min.js +2 -2
  713. package/lib/watermark/Watermark.d.ts +4 -4
  714. package/lib/watermark/Watermark.js +8 -9
  715. package/lib/watermark/index.d.ts +4 -4
  716. package/lib/web-types.json +1 -1
  717. package/package.json +12 -12
@@ -33,7 +33,6 @@ __export(stdin_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(stdin_exports);
35
35
  var import_vue = require("vue");
36
- var import_vue2 = require("vue");
37
36
  var import_utils = require("../utils");
38
37
  var import_utils2 = require("./utils");
39
38
  var import_use = require("@vant/use");
@@ -57,7 +56,7 @@ const pickerProps = (0, import_utils.extend)({}, pickerSharedProps, {
57
56
  toolbarPosition: (0, import_utils.makeStringProp)("top"),
58
57
  columnsFieldNames: Object
59
58
  });
60
- var stdin_default = (0, import_vue2.defineComponent)({
59
+ var stdin_default = (0, import_vue.defineComponent)({
61
60
  name: import_utils2.name,
62
61
  props: pickerProps,
63
62
  emits: ["confirm", "cancel", "change", "scrollInto", "clickOption", "update:modelValue"],
@@ -65,8 +64,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
65
64
  emit,
66
65
  slots
67
66
  }) {
68
- const columnsRef = (0, import_vue2.ref)();
69
- const selectedValues = (0, import_vue2.ref)(props.modelValue.slice(0));
67
+ const columnsRef = (0, import_vue.ref)();
68
+ const selectedValues = (0, import_vue.ref)(props.modelValue.slice(0));
70
69
  const {
71
70
  parent
72
71
  } = (0, import_use.useParent)(import_PickerGroup.PICKER_GROUP_KEY);
@@ -75,10 +74,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
75
74
  linkChildren
76
75
  } = (0, import_use.useChildren)(import_PickerColumn.PICKER_KEY);
77
76
  linkChildren();
78
- const fields = (0, import_vue2.computed)(() => (0, import_utils2.assignDefaultFields)(props.columnsFieldNames));
79
- const optionHeight = (0, import_vue2.computed)(() => (0, import_utils.unitToPx)(props.optionHeight));
80
- const columnsType = (0, import_vue2.computed)(() => (0, import_utils2.getColumnsType)(props.columns, fields.value));
81
- const currentColumns = (0, import_vue2.computed)(() => {
77
+ const fields = (0, import_vue.computed)(() => (0, import_utils2.assignDefaultFields)(props.columnsFieldNames));
78
+ const optionHeight = (0, import_vue.computed)(() => (0, import_utils.unitToPx)(props.optionHeight));
79
+ const columnsType = (0, import_vue.computed)(() => (0, import_utils2.getColumnsType)(props.columns, fields.value));
80
+ const currentColumns = (0, import_vue.computed)(() => {
82
81
  const {
83
82
  columns
84
83
  } = props;
@@ -91,9 +90,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
91
90
  return [columns];
92
91
  }
93
92
  });
94
- const hasOptions = (0, import_vue2.computed)(() => currentColumns.value.some((options) => options.length));
95
- const selectedOptions = (0, import_vue2.computed)(() => currentColumns.value.map((options, index) => (0, import_utils2.findOptionByValue)(options, selectedValues.value[index], fields.value)));
96
- const selectedIndexes = (0, import_vue2.computed)(() => currentColumns.value.map((options, index) => options.findIndex((option) => option[fields.value.value] === selectedValues.value[index])));
93
+ const hasOptions = (0, import_vue.computed)(() => currentColumns.value.some((options) => options.length));
94
+ const selectedOptions = (0, import_vue.computed)(() => currentColumns.value.map((options, index) => (0, import_utils2.findOptionByValue)(options, selectedValues.value[index], fields.value)));
95
+ const selectedIndexes = (0, import_vue.computed)(() => currentColumns.value.map((options, index) => options.findIndex((option) => option[fields.value.value] === selectedValues.value[index])));
97
96
  const setValue = (index, value) => {
98
97
  if (selectedValues.value[index] !== value) {
99
98
  const newValues = selectedValues.value.slice(0);
@@ -116,7 +115,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
116
115
  }
117
116
  });
118
117
  }
119
- (0, import_vue2.nextTick)(() => {
118
+ (0, import_vue.nextTick)(() => {
120
119
  emit("change", (0, import_utils.extend)({
121
120
  columnIndex
122
121
  }, getEventParams()));
@@ -133,7 +132,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
133
132
  const confirm = () => {
134
133
  children.forEach((child) => child.stopMomentum());
135
134
  const params = getEventParams();
136
- (0, import_vue2.nextTick)(() => {
135
+ (0, import_vue.nextTick)(() => {
137
136
  emit("confirm", params);
138
137
  });
139
138
  return params;
@@ -195,7 +194,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
195
194
  }), (0, import_utils.pick)(slots, import_PickerToolbar.pickerToolbarSlots));
196
195
  }
197
196
  };
198
- (0, import_vue2.watch)(currentColumns, (columns) => {
197
+ (0, import_vue.watch)(currentColumns, (columns) => {
199
198
  columns.forEach((options, index) => {
200
199
  if (options.length && !(0, import_utils2.isOptionExist)(options, selectedValues.value[index], fields.value)) {
201
200
  setValue(index, (0, import_utils2.getFirstEnabledOption)(options)[fields.value.value]);
@@ -205,7 +204,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
205
204
  immediate: true
206
205
  });
207
206
  let lastEmittedModelValue;
208
- (0, import_vue2.watch)(() => props.modelValue, (newValues) => {
207
+ (0, import_vue.watch)(() => props.modelValue, (newValues) => {
209
208
  if (!(0, import_utils.isSameValue)(newValues, selectedValues.value) && !(0, import_utils.isSameValue)(newValues, lastEmittedModelValue)) {
210
209
  selectedValues.value = newValues.slice(0);
211
210
  lastEmittedModelValue = newValues.slice(0);
@@ -213,7 +212,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
213
212
  }, {
214
213
  deep: true
215
214
  });
216
- (0, import_vue2.watch)(selectedValues, (newValues) => {
215
+ (0, import_vue.watch)(selectedValues, (newValues) => {
217
216
  if (!(0, import_utils.isSameValue)(newValues, props.modelValue)) {
218
217
  lastEmittedModelValue = newValues.slice(0);
219
218
  emit("update:modelValue", lastEmittedModelValue);
@@ -1,7 +1,7 @@
1
1
  import { type PropType, type InjectionKey } from 'vue';
2
2
  import type { PickerOption, PickerFieldNames, PickerColumnProvide } from './types';
3
3
  export declare const PICKER_KEY: InjectionKey<PickerColumnProvide>;
4
- declare const _default: import("vue").DefineComponent<{
4
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
5
  value: (NumberConstructor | StringConstructor)[];
6
6
  fields: {
7
7
  type: PropType<Required<PickerFieldNames>>;
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
25
25
  type: (NumberConstructor | StringConstructor)[];
26
26
  required: true;
27
27
  };
28
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "clickOption" | "scrollInto")[], "change" | "clickOption" | "scrollInto", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "clickOption" | "scrollInto")[], "change" | "clickOption" | "scrollInto", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
29
  value: (NumberConstructor | StringConstructor)[];
30
30
  fields: {
31
31
  type: PropType<Required<PickerFieldNames>>;
@@ -49,13 +49,13 @@ declare const _default: import("vue").DefineComponent<{
49
49
  type: (NumberConstructor | StringConstructor)[];
50
50
  required: true;
51
51
  };
52
- }>> & {
52
+ }>> & Readonly<{
53
53
  onChange?: ((...args: any[]) => any) | undefined;
54
54
  onClickOption?: ((...args: any[]) => any) | undefined;
55
55
  onScrollInto?: ((...args: any[]) => any) | undefined;
56
- }, {
56
+ }>, {
57
57
  readonly: boolean;
58
58
  allowHtml: boolean;
59
59
  options: PickerOption[];
60
- }, {}>;
60
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
61
61
  export default _default;
@@ -22,7 +22,6 @@ __export(stdin_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(stdin_exports);
24
24
  var import_vue = require("vue");
25
- var import_vue2 = require("vue");
26
25
  var import_utils = require("../utils");
27
26
  var import_utils2 = require("./utils");
28
27
  var import_use = require("@vant/use");
@@ -33,7 +32,7 @@ const MOMENTUM_TIME = 300;
33
32
  const MOMENTUM_DISTANCE = 15;
34
33
  const [name, bem] = (0, import_utils.createNamespace)("picker-column");
35
34
  const PICKER_KEY = Symbol(name);
36
- var stdin_default = (0, import_vue2.defineComponent)({
35
+ var stdin_default = (0, import_vue.defineComponent)({
37
36
  name,
38
37
  props: {
39
38
  value: import_utils.numericProp,
@@ -55,10 +54,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
55
54
  let touchStartTime;
56
55
  let momentumOffset;
57
56
  let transitionEndTrigger;
58
- const root = (0, import_vue2.ref)();
59
- const wrapper = (0, import_vue2.ref)();
60
- const currentOffset = (0, import_vue2.ref)(0);
61
- const currentDuration = (0, import_vue2.ref)(0);
57
+ const root = (0, import_vue.ref)();
58
+ const wrapper = (0, import_vue.ref)();
59
+ const currentOffset = (0, import_vue.ref)(0);
60
+ const currentDuration = (0, import_vue.ref)(0);
62
61
  const touch = (0, import_use_touch.useTouch)();
63
62
  const count = () => props.options.length;
64
63
  const baseOffset = () => props.optionHeight * (+props.visibleOptionNum - 1) / 2;
@@ -92,7 +91,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
92
91
  emit("clickOption", props.options[index]);
93
92
  };
94
93
  const getIndexByOffset = (offset) => (0, import_utils.clamp)(Math.round(-offset / props.optionHeight), 0, count() - 1);
95
- const currentIndex = (0, import_vue2.computed)(() => getIndexByOffset(currentOffset.value));
94
+ const currentIndex = (0, import_vue.computed)(() => getIndexByOffset(currentOffset.value));
96
95
  const momentum = (distance, duration) => {
97
96
  const speed = Math.abs(distance / duration);
98
97
  distance = currentOffset.value + speed / 3e-3 * (distance < 0 ? -1 : 1);
@@ -193,12 +192,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
193
192
  (0, import_use_expose.useExpose)({
194
193
  stopMomentum
195
194
  });
196
- (0, import_vue2.watchEffect)(() => {
195
+ (0, import_vue.watchEffect)(() => {
197
196
  const index = moving ? Math.floor(-currentOffset.value / props.optionHeight) : props.options.findIndex((option) => option[props.fields.value] === props.value);
198
197
  const enabledIndex = (0, import_utils2.findIndexOfEnabledOption)(props.options, index);
199
198
  const offset = -enabledIndex * props.optionHeight;
200
- if (moving && enabledIndex < index)
201
- stopMomentum();
199
+ if (moving && enabledIndex < index) stopMomentum();
202
200
  currentOffset.value = offset;
203
201
  });
204
202
  (0, import_use.useEventListener)("touchmove", onTouchMove, {
@@ -6,16 +6,16 @@ export declare const pickerToolbarProps: {
6
6
  export declare const pickerToolbarSlots: string[];
7
7
  export type PickerToolbarPropKeys = Array<keyof typeof pickerToolbarProps>;
8
8
  export declare const pickerToolbarPropKeys: PickerToolbarPropKeys;
9
- declare const _default: import("vue").DefineComponent<{
9
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
10
  title: StringConstructor;
11
11
  cancelButtonText: StringConstructor;
12
12
  confirmButtonText: StringConstructor;
13
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
14
  title: StringConstructor;
15
15
  cancelButtonText: StringConstructor;
16
16
  confirmButtonText: StringConstructor;
17
- }>> & {
17
+ }>> & Readonly<{
18
18
  onCancel?: ((...args: any[]) => any) | undefined;
19
19
  onConfirm?: ((...args: any[]) => any) | undefined;
20
- }, {}, {}>;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
21
  export default _default;
@@ -24,7 +24,6 @@ __export(stdin_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(stdin_exports);
26
26
  var import_vue = require("vue");
27
- var import_vue2 = require("vue");
28
27
  var import_utils = require("./utils");
29
28
  var import_utils2 = require("../utils");
30
29
  const [name] = (0, import_utils2.createNamespace)("picker-toolbar");
@@ -35,7 +34,7 @@ const pickerToolbarProps = {
35
34
  };
36
35
  const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
37
36
  const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
38
- var stdin_default = (0, import_vue2.defineComponent)({
37
+ var stdin_default = (0, import_vue.defineComponent)({
39
38
  name,
40
39
  props: pickerToolbarProps,
41
40
  emits: ["confirm", "cancel"],
@@ -1,5 +1,5 @@
1
1
  import { PickerProps } from './Picker';
2
- export declare const Picker: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ export declare const Picker: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  loading: BooleanConstructor;
4
4
  readonly: BooleanConstructor;
5
5
  allowHtml: BooleanConstructor;
@@ -37,7 +37,7 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
37
37
  default: import("./types").PickerToolbarPosition;
38
38
  };
39
39
  columnsFieldNames: import("vue").PropType<import("./types").PickerFieldNames>;
40
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "scrollInto")[], "update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "scrollInto", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "scrollInto")[], "update:modelValue" | "cancel" | "change" | "confirm" | "clickOption" | "scrollInto", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
41
  loading: BooleanConstructor;
42
42
  readonly: BooleanConstructor;
43
43
  allowHtml: BooleanConstructor;
@@ -75,14 +75,14 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
75
75
  default: import("./types").PickerToolbarPosition;
76
76
  };
77
77
  columnsFieldNames: import("vue").PropType<import("./types").PickerFieldNames>;
78
- }>> & {
78
+ }>> & Readonly<{
79
79
  onChange?: ((...args: any[]) => any) | undefined;
80
80
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
81
81
  onCancel?: ((...args: any[]) => any) | undefined;
82
82
  onClickOption?: ((...args: any[]) => any) | undefined;
83
83
  onScrollInto?: ((...args: any[]) => any) | undefined;
84
84
  onConfirm?: ((...args: any[]) => any) | undefined;
85
- }, {
85
+ }>, {
86
86
  modelValue: import("../utils").Numeric[];
87
87
  readonly: boolean;
88
88
  loading: boolean;
@@ -93,7 +93,7 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
93
93
  visibleOptionNum: string | number;
94
94
  columns: (import("./types").PickerColumn | import("./types").PickerOption)[];
95
95
  toolbarPosition: import("./types").PickerToolbarPosition;
96
- }, {}>>;
96
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
97
97
  export default Picker;
98
98
  export { pickerProps } from './Picker';
99
99
  export type { PickerProps };
@@ -1,7 +1,7 @@
1
1
  import { type Numeric } from '../utils';
2
2
  import type { Ref } from 'vue';
3
3
  import type { PickerOption, PickerColumn, PickerFieldNames } from './types';
4
- declare const name: string, bem: (el?: import("../utils").Mods | undefined, mods?: import("../utils").Mods | undefined) => import("../utils").Mods, t: (path: string, ...args: unknown[]) => any;
4
+ declare const name: string, bem: (el?: import("../utils").Mods, mods?: import("../utils").Mods) => import("../utils").Mods, t: (path: string, ...args: unknown[]) => any;
5
5
  export { name, bem, t };
6
6
  export declare const getFirstEnabledOption: (options: PickerOption[]) => PickerOption | undefined;
7
7
  export declare function getColumnsType(columns: PickerColumn | PickerColumn[], fields: Required<PickerFieldNames>): "default" | "multiple" | "cascade";
@@ -48,12 +48,10 @@ function getColumnsType(columns, fields) {
48
48
  function findIndexOfEnabledOption(options, index) {
49
49
  index = (0, import_utils.clamp)(index, 0, options.length);
50
50
  for (let i = index; i < options.length; i++) {
51
- if (!options[i].disabled)
52
- return i;
51
+ if (!options[i].disabled) return i;
53
52
  }
54
53
  for (let i = index - 1; i >= 0; i--) {
55
- if (!options[i].disabled)
56
- return i;
54
+ if (!options[i].disabled) return i;
57
55
  }
58
56
  return 0;
59
57
  }
@@ -21,7 +21,7 @@ export declare const pickerGroupProps: {
21
21
  confirmButtonText: StringConstructor;
22
22
  };
23
23
  export type PickerGroupProps = ExtractPropTypes<typeof pickerGroupProps>;
24
- declare const _default: import("vue").DefineComponent<{
24
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
25
25
  tabs: {
26
26
  type: import("vue").PropType<string[]>;
27
27
  default: () => never[];
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  title: StringConstructor;
40
40
  cancelButtonText: StringConstructor;
41
41
  confirmButtonText: StringConstructor;
42
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm" | "update:activeTab")[], "cancel" | "confirm" | "update:activeTab", import("vue").PublicProps, Readonly<ExtractPropTypes<{
42
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm" | "update:activeTab")[], "cancel" | "confirm" | "update:activeTab", import("vue").PublicProps, Readonly<ExtractPropTypes<{
43
43
  tabs: {
44
44
  type: import("vue").PropType<string[]>;
45
45
  default: () => never[];
@@ -57,13 +57,13 @@ declare const _default: import("vue").DefineComponent<{
57
57
  title: StringConstructor;
58
58
  cancelButtonText: StringConstructor;
59
59
  confirmButtonText: StringConstructor;
60
- }>> & {
60
+ }>> & Readonly<{
61
61
  onCancel?: ((...args: any[]) => any) | undefined;
62
62
  onConfirm?: ((...args: any[]) => any) | undefined;
63
63
  "onUpdate:activeTab"?: ((...args: any[]) => any) | undefined;
64
- }, {
64
+ }>, {
65
65
  showToolbar: boolean;
66
66
  tabs: string[];
67
67
  activeTab: string | number;
68
- }, {}>;
68
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
69
69
  export default _default;
@@ -33,7 +33,6 @@ __export(stdin_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(stdin_exports);
35
35
  var import_vue = require("vue");
36
- var import_vue2 = require("vue");
37
36
  var import_utils = require("../utils");
38
37
  var import_use = require("@vant/use");
39
38
  var import_use_sync_prop_ref = require("../composables/use-sync-prop-ref");
@@ -48,7 +47,7 @@ const pickerGroupProps = (0, import_utils.extend)({
48
47
  nextStepText: String,
49
48
  showToolbar: import_utils.truthProp
50
49
  }, import_PickerToolbar.pickerToolbarProps);
51
- var stdin_default = (0, import_vue2.defineComponent)({
50
+ var stdin_default = (0, import_vue.defineComponent)({
52
51
  name,
53
52
  props: pickerGroupProps,
54
53
  emits: ["confirm", "cancel", "update:activeTab"],
@@ -73,8 +72,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
73
72
  const onCancel = () => emit("cancel");
74
73
  return () => {
75
74
  var _a, _b;
76
- let childNodes = (_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b.filter((node) => node.type !== import_vue2.Comment).map((node) => {
77
- if (node.type === import_vue2.Fragment) {
75
+ let childNodes = (_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b.filter((node) => node.type !== import_vue.Comment).map((node) => {
76
+ if (node.type === import_vue.Fragment) {
78
77
  return node.children;
79
78
  }
80
79
  return node;
@@ -1,5 +1,5 @@
1
1
  import { PickerGroupProps } from './PickerGroup';
2
- export declare const PickerGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ export declare const PickerGroup: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  tabs: {
4
4
  type: import("vue").PropType<string[]>;
5
5
  default: () => never[];
@@ -17,7 +17,7 @@ export declare const PickerGroup: import("../utils").WithInstall<import("vue").D
17
17
  title: StringConstructor;
18
18
  cancelButtonText: StringConstructor;
19
19
  confirmButtonText: StringConstructor;
20
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm" | "update:activeTab")[], "cancel" | "confirm" | "update:activeTab", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm" | "update:activeTab")[], "cancel" | "confirm" | "update:activeTab", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
21
  tabs: {
22
22
  type: import("vue").PropType<string[]>;
23
23
  default: () => never[];
@@ -35,15 +35,15 @@ export declare const PickerGroup: import("../utils").WithInstall<import("vue").D
35
35
  title: StringConstructor;
36
36
  cancelButtonText: StringConstructor;
37
37
  confirmButtonText: StringConstructor;
38
- }>> & {
38
+ }>> & Readonly<{
39
39
  onCancel?: ((...args: any[]) => any) | undefined;
40
40
  onConfirm?: ((...args: any[]) => any) | undefined;
41
41
  "onUpdate:activeTab"?: ((...args: any[]) => any) | undefined;
42
- }, {
42
+ }>, {
43
43
  showToolbar: boolean;
44
44
  tabs: string[];
45
45
  activeTab: string | number;
46
- }, {}>>;
46
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
47
47
  export default PickerGroup;
48
48
  export { pickerGroupProps } from './PickerGroup';
49
49
  export type { PickerGroupProps };
@@ -1,4 +1,4 @@
1
- import { type PropType, type CSSProperties, type ExtractPropTypes } from 'vue';
1
+ import { type PropType, type CSSProperties, type TeleportProps, type ExtractPropTypes } from 'vue';
2
2
  import { PopoverTheme, PopoverAction, PopoverActionsDirection, PopoverTrigger, PopoverPlacement } from './types';
3
3
  export declare const popoverProps: {
4
4
  show: BooleanConstructor;
@@ -48,12 +48,12 @@ export declare const popoverProps: {
48
48
  default: () => number[];
49
49
  };
50
50
  teleport: {
51
- type: PropType<string | import("vue").RendererElement | null | undefined>;
51
+ type: PropType<TeleportProps["to"]>;
52
52
  default: string;
53
53
  };
54
54
  };
55
55
  export type PopoverProps = ExtractPropTypes<typeof popoverProps>;
56
- declare const _default: import("vue").DefineComponent<{
56
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
57
57
  show: BooleanConstructor;
58
58
  theme: {
59
59
  type: PropType<PopoverTheme>;
@@ -101,10 +101,10 @@ declare const _default: import("vue").DefineComponent<{
101
101
  default: () => number[];
102
102
  };
103
103
  teleport: {
104
- type: PropType<string | import("vue").RendererElement | null | undefined>;
104
+ type: PropType<TeleportProps["to"]>;
105
105
  default: string;
106
106
  };
107
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").PublicProps, Readonly<ExtractPropTypes<{
107
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").PublicProps, Readonly<ExtractPropTypes<{
108
108
  show: BooleanConstructor;
109
109
  theme: {
110
110
  type: PropType<PopoverTheme>;
@@ -152,14 +152,14 @@ declare const _default: import("vue").DefineComponent<{
152
152
  default: () => number[];
153
153
  };
154
154
  teleport: {
155
- type: PropType<string | import("vue").RendererElement | null | undefined>;
155
+ type: PropType<TeleportProps["to"]>;
156
156
  default: string;
157
157
  };
158
- }>> & {
158
+ }>> & Readonly<{
159
159
  onSelect?: ((...args: any[]) => any) | undefined;
160
160
  onTouchstart?: ((...args: any[]) => any) | undefined;
161
161
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
162
- }, {
162
+ }>, {
163
163
  offset: [number, number];
164
164
  theme: PopoverTheme;
165
165
  overlay: boolean;
@@ -173,5 +173,5 @@ declare const _default: import("vue").DefineComponent<{
173
173
  trigger: PopoverTrigger;
174
174
  showArrow: boolean;
175
175
  placement: PopoverPlacement;
176
- }, {}>;
176
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
177
177
  export default _default;
@@ -22,7 +22,6 @@ __export(stdin_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(stdin_exports);
24
24
  var import_vue = require("vue");
25
- var import_vue2 = require("vue");
26
25
  var import_popperjs = require("@vant/popperjs");
27
26
  var import_utils = require("../utils");
28
27
  var import_use = require("@vant/use");
@@ -57,7 +56,7 @@ const popoverProps = {
57
56
  default: "body"
58
57
  }
59
58
  };
60
- var stdin_default = (0, import_vue2.defineComponent)({
59
+ var stdin_default = (0, import_vue.defineComponent)({
61
60
  name,
62
61
  props: popoverProps,
63
62
  emits: ["select", "touchstart", "update:show"],
@@ -67,9 +66,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
67
66
  attrs
68
67
  }) {
69
68
  let popper;
70
- const popupRef = (0, import_vue2.ref)();
71
- const wrapperRef = (0, import_vue2.ref)();
72
- const popoverRef = (0, import_vue2.ref)();
69
+ const popupRef = (0, import_vue.ref)();
70
+ const wrapperRef = (0, import_vue.ref)();
71
+ const popoverRef = (0, import_vue.ref)();
73
72
  const show = (0, import_use_sync_prop_ref.useSyncPropRef)(() => props.show, (value) => emit("update:show", value));
74
73
  const getPopoverOptions = () => ({
75
74
  placement: props.placement,
@@ -92,7 +91,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
92
91
  return null;
93
92
  };
94
93
  const updateLocation = () => {
95
- (0, import_vue2.nextTick)(() => {
94
+ (0, import_vue.nextTick)(() => {
96
95
  if (!show.value) {
97
96
  return;
98
97
  }
@@ -169,14 +168,14 @@ var stdin_default = (0, import_vue2.defineComponent)({
169
168
  "onClick": () => onClickAction(action, index)
170
169
  }, [renderActionContent(action, index)]);
171
170
  };
172
- (0, import_vue2.onMounted)(() => {
171
+ (0, import_vue.onMounted)(() => {
173
172
  updateLocation();
174
- (0, import_vue2.watchEffect)(() => {
173
+ (0, import_vue.watchEffect)(() => {
175
174
  var _a;
176
175
  popupRef.value = (_a = popoverRef.value) == null ? void 0 : _a.popupRef.value;
177
176
  });
178
177
  });
179
- (0, import_vue2.onBeforeUnmount)(() => {
178
+ (0, import_vue.onBeforeUnmount)(() => {
180
179
  if (popper) {
181
180
  if (import_utils.inBrowser) {
182
181
  window.removeEventListener("animationend", updateLocation);
@@ -186,7 +185,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
186
185
  popper = null;
187
186
  }
188
187
  });
189
- (0, import_vue2.watch)(() => [show.value, props.offset, props.placement], updateLocation);
188
+ (0, import_vue.watch)(() => [show.value, props.offset, props.placement], updateLocation);
190
189
  (0, import_use.useClickAway)([wrapperRef, popupRef], onClickAway, {
191
190
  eventName: "touchstart"
192
191
  });
@@ -1,4 +1,4 @@
1
- export declare const Popover: import("../utils").WithInstall<import("vue").DefineComponent<{
1
+ export declare const Popover: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  show: BooleanConstructor;
3
3
  theme: {
4
4
  type: import("vue").PropType<import("./types").PopoverTheme>;
@@ -46,10 +46,10 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
46
46
  default: () => number[];
47
47
  };
48
48
  teleport: {
49
- type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
49
+ type: import("vue").PropType<import("vue").TeleportProps["to"]>;
50
50
  default: string;
51
51
  };
52
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
52
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
53
53
  show: BooleanConstructor;
54
54
  theme: {
55
55
  type: import("vue").PropType<import("./types").PopoverTheme>;
@@ -97,14 +97,14 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
97
97
  default: () => number[];
98
98
  };
99
99
  teleport: {
100
- type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
100
+ type: import("vue").PropType<import("vue").TeleportProps["to"]>;
101
101
  default: string;
102
102
  };
103
- }>> & {
103
+ }>> & Readonly<{
104
104
  onSelect?: ((...args: any[]) => any) | undefined;
105
105
  onTouchstart?: ((...args: any[]) => any) | undefined;
106
106
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
107
- }, {
107
+ }>, {
108
108
  offset: [number, number];
109
109
  theme: import("./types").PopoverTheme;
110
110
  overlay: boolean;
@@ -118,7 +118,7 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
118
118
  trigger: import("./types").PopoverTrigger;
119
119
  showArrow: boolean;
120
120
  placement: import("./types").PopoverPlacement;
121
- }, {}>>;
121
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
122
122
  export default Popover;
123
123
  export { popoverProps } from './Popover';
124
124
  export type { PopoverProps } from './Popover';
@@ -8,7 +8,7 @@ export declare const popupProps: {
8
8
  default: true;
9
9
  };
10
10
  duration: (NumberConstructor | StringConstructor)[];
11
- teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
11
+ teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
12
12
  lockScroll: {
13
13
  type: BooleanConstructor;
14
14
  default: true;
@@ -47,7 +47,7 @@ export declare const popupProps: {
47
47
  safeAreaInsetBottom: BooleanConstructor;
48
48
  };
49
49
  export type PopupProps = ExtractPropTypes<typeof popupProps>;
50
- declare const _default: import("vue").DefineComponent<{
50
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
51
51
  show: BooleanConstructor;
52
52
  zIndex: (NumberConstructor | StringConstructor)[];
53
53
  overlay: {
@@ -55,7 +55,7 @@ declare const _default: import("vue").DefineComponent<{
55
55
  default: true;
56
56
  };
57
57
  duration: (NumberConstructor | StringConstructor)[];
58
- teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
58
+ teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
59
59
  lockScroll: {
60
60
  type: BooleanConstructor;
61
61
  default: true;
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
92
92
  };
93
93
  safeAreaInsetTop: BooleanConstructor;
94
94
  safeAreaInsetBottom: BooleanConstructor;
95
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon", import("vue").PublicProps, Readonly<ExtractPropTypes<{
95
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "clickOverlay" | "clickCloseIcon", import("vue").PublicProps, Readonly<ExtractPropTypes<{
96
96
  show: BooleanConstructor;
97
97
  zIndex: (NumberConstructor | StringConstructor)[];
98
98
  overlay: {
@@ -100,7 +100,7 @@ declare const _default: import("vue").DefineComponent<{
100
100
  default: true;
101
101
  };
102
102
  duration: (NumberConstructor | StringConstructor)[];
103
- teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
103
+ teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
104
104
  lockScroll: {
105
105
  type: BooleanConstructor;
106
106
  default: true;
@@ -137,16 +137,16 @@ declare const _default: import("vue").DefineComponent<{
137
137
  };
138
138
  safeAreaInsetTop: BooleanConstructor;
139
139
  safeAreaInsetBottom: BooleanConstructor;
140
- }>> & {
140
+ }>> & Readonly<{
141
141
  onKeydown?: ((...args: any[]) => any) | undefined;
142
- onOpen?: ((...args: any[]) => any) | undefined;
143
142
  onClose?: ((...args: any[]) => any) | undefined;
143
+ onOpen?: ((...args: any[]) => any) | undefined;
144
144
  onOpened?: ((...args: any[]) => any) | undefined;
145
145
  onClosed?: ((...args: any[]) => any) | undefined;
146
146
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
147
147
  onClickOverlay?: ((...args: any[]) => any) | undefined;
148
148
  onClickCloseIcon?: ((...args: any[]) => any) | undefined;
149
- }, {
149
+ }>, {
150
150
  position: PopupPosition;
151
151
  round: boolean;
152
152
  overlay: boolean;
@@ -161,5 +161,5 @@ declare const _default: import("vue").DefineComponent<{
161
161
  closeOnPopstate: boolean;
162
162
  closeIconPosition: PopupCloseIconPosition;
163
163
  safeAreaInsetTop: boolean;
164
- }, {}>;
164
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
165
165
  export default _default;