vant 4.4.0 → 4.5.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 (473) hide show
  1. package/es/action-bar/ActionBar.d.ts +1 -1
  2. package/es/action-bar/index.d.ts +1 -1
  3. package/es/action-bar-button/ActionBarButton.d.ts +1 -1
  4. package/es/action-bar-button/index.d.ts +1 -1
  5. package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
  6. package/es/action-bar-icon/index.d.ts +1 -1
  7. package/es/action-sheet/ActionSheet.d.ts +1 -1
  8. package/es/action-sheet/index.d.ts +1 -1
  9. package/es/address-edit/AddressEdit.d.ts +1 -1
  10. package/es/address-edit/AddressEditDetail.d.ts +1 -1
  11. package/es/address-edit/index.d.ts +1 -1
  12. package/es/address-list/AddressList.d.ts +14 -1
  13. package/es/address-list/AddressList.mjs +4 -2
  14. package/es/address-list/AddressListItem.d.ts +10 -1
  15. package/es/address-list/AddressListItem.mjs +4 -3
  16. package/es/address-list/index.d.ts +10 -1
  17. package/es/area/Area.d.ts +1 -1
  18. package/es/area/index.d.ts +1 -1
  19. package/es/back-top/BackTop.d.ts +1 -1
  20. package/es/back-top/BackTop.mjs +14 -1
  21. package/es/back-top/index.d.ts +1 -1
  22. package/es/badge/Badge.d.ts +1 -1
  23. package/es/badge/index.d.ts +1 -1
  24. package/es/barrage/Barrage.d.ts +1 -1
  25. package/es/barrage/index.d.ts +1 -1
  26. package/es/button/Button.d.ts +1 -1
  27. package/es/button/index.d.ts +1 -1
  28. package/es/calendar/Calendar.d.ts +1 -1
  29. package/es/calendar/CalendarDay.d.ts +1 -1
  30. package/es/calendar/CalendarHeader.d.ts +1 -1
  31. package/es/calendar/CalendarMonth.d.ts +1 -1
  32. package/es/calendar/index.d.ts +1 -1
  33. package/es/card/Card.d.ts +1 -1
  34. package/es/card/index.d.ts +1 -1
  35. package/es/cascader/Cascader.d.ts +1 -1
  36. package/es/cascader/index.d.ts +1 -1
  37. package/es/cell/Cell.d.ts +1 -1
  38. package/es/cell/index.d.ts +1 -1
  39. package/es/cell-group/CellGroup.d.ts +1 -1
  40. package/es/cell-group/index.d.ts +1 -1
  41. package/es/checkbox/Checkbox.d.ts +1 -1
  42. package/es/checkbox/Checker.d.ts +1 -1
  43. package/es/checkbox/index.d.ts +1 -1
  44. package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
  45. package/es/checkbox-group/index.d.ts +1 -1
  46. package/es/circle/Circle.d.ts +1 -1
  47. package/es/circle/index.d.ts +1 -1
  48. package/es/col/Col.d.ts +1 -1
  49. package/es/col/index.d.ts +1 -1
  50. package/es/collapse/Collapse.d.ts +1 -1
  51. package/es/collapse/index.d.ts +1 -1
  52. package/es/collapse-item/CollapseItem.d.ts +1 -1
  53. package/es/collapse-item/index.d.ts +1 -1
  54. package/es/config-provider/ConfigProvider.d.ts +1 -1
  55. package/es/config-provider/index.d.ts +1 -1
  56. package/es/contact-card/ContactCard.d.ts +1 -1
  57. package/es/contact-card/index.d.ts +1 -1
  58. package/es/contact-edit/ContactEdit.d.ts +1 -1
  59. package/es/contact-edit/index.d.ts +1 -1
  60. package/es/contact-list/ContactList.d.ts +1 -1
  61. package/es/contact-list/index.d.ts +1 -1
  62. package/es/count-down/CountDown.d.ts +1 -1
  63. package/es/count-down/index.d.ts +1 -1
  64. package/es/coupon/Coupon.d.ts +1 -1
  65. package/es/coupon/index.d.ts +1 -1
  66. package/es/coupon-cell/CouponCell.d.ts +1 -1
  67. package/es/coupon-cell/index.d.ts +1 -1
  68. package/es/coupon-list/CouponList.d.ts +1 -1
  69. package/es/coupon-list/index.d.ts +1 -1
  70. package/es/date-picker/DatePicker.d.ts +4 -4
  71. package/es/date-picker/index.d.ts +3 -3
  72. package/es/date-picker/utils.d.ts +4 -2
  73. package/es/date-picker/utils.mjs +8 -3
  74. package/es/dialog/Dialog.d.ts +1 -1
  75. package/es/dialog/index.d.ts +1 -1
  76. package/es/divider/Divider.d.ts +1 -1
  77. package/es/divider/index.d.ts +1 -1
  78. package/es/dropdown-item/DropdownItem.d.ts +1 -1
  79. package/es/dropdown-item/index.d.ts +1 -1
  80. package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
  81. package/es/dropdown-menu/DropdownMenu.mjs +10 -3
  82. package/es/dropdown-menu/index.d.ts +1 -1
  83. package/es/dropdown-menu/types.d.ts +5 -1
  84. package/es/empty/Empty.d.ts +1 -1
  85. package/es/empty/index.d.ts +1 -1
  86. package/es/field/Field.d.ts +1 -1
  87. package/es/field/index.d.ts +1 -1
  88. package/es/floating-panel/FloatingPanel.d.ts +77 -0
  89. package/es/floating-panel/FloatingPanel.mjs +126 -0
  90. package/es/floating-panel/index.css +1 -0
  91. package/es/floating-panel/index.d.ts +60 -0
  92. package/es/floating-panel/index.mjs +8 -0
  93. package/es/floating-panel/style/index.d.ts +1 -0
  94. package/es/floating-panel/style/index.mjs +2 -0
  95. package/es/form/Form.d.ts +1 -1
  96. package/es/form/index.d.ts +1 -1
  97. package/es/grid/Grid.d.ts +1 -1
  98. package/es/grid/index.d.ts +1 -1
  99. package/es/grid-item/GridItem.d.ts +1 -1
  100. package/es/grid-item/index.d.ts +1 -1
  101. package/es/icon/Icon.d.ts +1 -1
  102. package/es/icon/index.d.ts +1 -1
  103. package/es/image/Image.d.ts +1 -1
  104. package/es/image/index.d.ts +1 -1
  105. package/es/image-preview/ImagePreview.d.ts +1 -1
  106. package/es/image-preview/ImagePreviewItem.d.ts +1 -1
  107. package/es/image-preview/ImagePreviewItem.mjs +9 -3
  108. package/es/image-preview/index.d.ts +1 -1
  109. package/es/index-anchor/IndexAnchor.d.ts +1 -1
  110. package/es/index-anchor/index.d.ts +1 -1
  111. package/es/index-bar/IndexBar.d.ts +1 -1
  112. package/es/index-bar/index.d.ts +1 -1
  113. package/es/index.d.ts +2 -1
  114. package/es/index.mjs +4 -1
  115. package/es/list/List.d.ts +1 -1
  116. package/es/list/index.d.ts +1 -1
  117. package/es/loading/Loading.d.ts +1 -1
  118. package/es/loading/index.d.ts +1 -1
  119. package/es/nav-bar/NavBar.d.ts +1 -1
  120. package/es/nav-bar/index.d.ts +1 -1
  121. package/es/notice-bar/NoticeBar.d.ts +1 -1
  122. package/es/notice-bar/index.d.ts +1 -1
  123. package/es/notify/Notify.d.ts +1 -1
  124. package/es/notify/index.d.ts +1 -1
  125. package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
  126. package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
  127. package/es/number-keyboard/index.d.ts +1 -1
  128. package/es/overlay/Overlay.d.ts +1 -1
  129. package/es/overlay/index.d.ts +1 -1
  130. package/es/pagination/Pagination.d.ts +1 -1
  131. package/es/pagination/index.d.ts +1 -1
  132. package/es/password-input/PasswordInput.d.ts +1 -1
  133. package/es/password-input/index.d.ts +1 -1
  134. package/es/picker/Picker.d.ts +1 -1
  135. package/es/picker/PickerColumn.d.ts +1 -1
  136. package/es/picker/PickerToolbar.d.ts +1 -1
  137. package/es/picker/index.d.ts +1 -1
  138. package/es/picker-group/PickerGroup.d.ts +1 -1
  139. package/es/picker-group/index.d.ts +1 -1
  140. package/es/popover/Popover.d.ts +15 -2
  141. package/es/popover/Popover.mjs +9 -4
  142. package/es/popover/index.css +1 -1
  143. package/es/popover/index.d.ts +10 -1
  144. package/es/popover/types.d.ts +1 -0
  145. package/es/popup/Popup.d.ts +1 -1
  146. package/es/popup/Popup.mjs +8 -1
  147. package/es/popup/index.d.ts +1 -1
  148. package/es/progress/Progress.d.ts +1 -1
  149. package/es/progress/index.d.ts +1 -1
  150. package/es/pull-refresh/PullRefresh.d.ts +1 -1
  151. package/es/pull-refresh/index.d.ts +1 -1
  152. package/es/radio/Radio.d.ts +1 -1
  153. package/es/radio/index.d.ts +1 -1
  154. package/es/radio-group/RadioGroup.d.ts +1 -1
  155. package/es/radio-group/index.d.ts +1 -1
  156. package/es/rate/Rate.d.ts +1 -1
  157. package/es/rate/index.d.ts +1 -1
  158. package/es/row/Row.d.ts +1 -1
  159. package/es/row/index.d.ts +1 -1
  160. package/es/search/Search.d.ts +1 -1
  161. package/es/search/index.d.ts +1 -1
  162. package/es/share-sheet/ShareSheet.d.ts +1 -1
  163. package/es/share-sheet/index.d.ts +1 -1
  164. package/es/sidebar/Sidebar.d.ts +1 -1
  165. package/es/sidebar/index.d.ts +1 -1
  166. package/es/sidebar-item/SidebarItem.d.ts +1 -1
  167. package/es/sidebar-item/index.d.ts +1 -1
  168. package/es/signature/Signature.d.ts +1 -1
  169. package/es/signature/index.d.ts +1 -1
  170. package/es/skeleton/Skeleton.d.ts +1 -1
  171. package/es/skeleton/index.d.ts +1 -1
  172. package/es/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
  173. package/es/skeleton-avatar/index.d.ts +1 -1
  174. package/es/skeleton-image/SkeletonImage.d.ts +1 -1
  175. package/es/skeleton-image/index.d.ts +1 -1
  176. package/es/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
  177. package/es/skeleton-paragraph/index.d.ts +1 -1
  178. package/es/skeleton-title/SkeletonTitle.d.ts +1 -1
  179. package/es/skeleton-title/index.d.ts +1 -1
  180. package/es/slider/Slider.d.ts +1 -1
  181. package/es/slider/Slider.mjs +20 -7
  182. package/es/slider/index.d.ts +1 -1
  183. package/es/space/Space.d.ts +1 -1
  184. package/es/space/index.d.ts +1 -1
  185. package/es/step/Step.d.ts +1 -1
  186. package/es/step/index.d.ts +1 -1
  187. package/es/stepper/Stepper.d.ts +1 -1
  188. package/es/stepper/index.d.ts +1 -1
  189. package/es/steps/Steps.d.ts +1 -1
  190. package/es/steps/index.d.ts +1 -1
  191. package/es/sticky/Sticky.d.ts +1 -1
  192. package/es/sticky/index.d.ts +1 -1
  193. package/es/submit-bar/SubmitBar.d.ts +1 -1
  194. package/es/submit-bar/index.d.ts +1 -1
  195. package/es/swipe/Swipe.d.ts +1 -1
  196. package/es/swipe/index.d.ts +1 -1
  197. package/es/swipe-cell/SwipeCell.d.ts +1 -1
  198. package/es/swipe-cell/index.d.ts +1 -1
  199. package/es/swipe-item/SwipeItem.d.ts +1 -1
  200. package/es/swipe-item/index.d.ts +1 -1
  201. package/es/switch/Switch.d.ts +1 -1
  202. package/es/switch/index.d.ts +1 -1
  203. package/es/tab/Tab.d.ts +1 -1
  204. package/es/tab/Tab.mjs +14 -3
  205. package/es/tab/TabTitle.d.ts +1 -1
  206. package/es/tab/index.d.ts +1 -1
  207. package/es/tabbar/Tabbar.d.ts +1 -1
  208. package/es/tabbar/index.d.ts +1 -1
  209. package/es/tabbar-item/TabbarItem.d.ts +1 -1
  210. package/es/tabbar-item/index.d.ts +1 -1
  211. package/es/tabs/Tabs.d.ts +1 -1
  212. package/es/tabs/TabsContent.d.ts +1 -1
  213. package/es/tabs/index.d.ts +1 -1
  214. package/es/tag/Tag.d.ts +1 -1
  215. package/es/tag/index.d.ts +1 -1
  216. package/es/text-ellipsis/TextEllipsis.d.ts +1 -1
  217. package/es/text-ellipsis/index.d.ts +1 -1
  218. package/es/time-picker/TimePicker.d.ts +32 -5
  219. package/es/time-picker/TimePicker.mjs +73 -21
  220. package/es/time-picker/index.d.ts +21 -3
  221. package/es/toast/Toast.d.ts +1 -1
  222. package/es/toast/index.d.ts +1 -1
  223. package/es/tree-select/TreeSelect.d.ts +1 -1
  224. package/es/tree-select/index.d.ts +1 -1
  225. package/es/uploader/Uploader.d.ts +1 -1
  226. package/es/uploader/UploaderPreviewItem.d.ts +1 -1
  227. package/es/uploader/index.d.ts +1 -1
  228. package/es/utils/basic.d.ts +3 -0
  229. package/es/utils/constant.d.ts +1 -0
  230. package/es/utils/constant.mjs +2 -0
  231. package/es/utils/mount-component.d.ts +1 -1
  232. package/es/watermark/Watermark.d.ts +1 -1
  233. package/es/watermark/index.d.ts +1 -1
  234. package/lib/action-bar/ActionBar.d.ts +1 -1
  235. package/lib/action-bar/index.d.ts +1 -1
  236. package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
  237. package/lib/action-bar-button/index.d.ts +1 -1
  238. package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
  239. package/lib/action-bar-icon/index.d.ts +1 -1
  240. package/lib/action-sheet/ActionSheet.d.ts +1 -1
  241. package/lib/action-sheet/index.d.ts +1 -1
  242. package/lib/address-edit/AddressEdit.d.ts +1 -1
  243. package/lib/address-edit/AddressEditDetail.d.ts +1 -1
  244. package/lib/address-edit/index.d.ts +1 -1
  245. package/lib/address-list/AddressList.d.ts +14 -1
  246. package/lib/address-list/AddressList.js +3 -1
  247. package/lib/address-list/AddressListItem.d.ts +10 -1
  248. package/lib/address-list/AddressListItem.js +3 -2
  249. package/lib/address-list/index.d.ts +10 -1
  250. package/lib/area/Area.d.ts +1 -1
  251. package/lib/area/index.d.ts +1 -1
  252. package/lib/back-top/BackTop.d.ts +1 -1
  253. package/lib/back-top/BackTop.js +13 -0
  254. package/lib/back-top/index.d.ts +1 -1
  255. package/lib/badge/Badge.d.ts +1 -1
  256. package/lib/badge/index.d.ts +1 -1
  257. package/lib/barrage/Barrage.d.ts +1 -1
  258. package/lib/barrage/index.d.ts +1 -1
  259. package/lib/button/Button.d.ts +1 -1
  260. package/lib/button/index.d.ts +1 -1
  261. package/lib/calendar/Calendar.d.ts +1 -1
  262. package/lib/calendar/CalendarDay.d.ts +1 -1
  263. package/lib/calendar/CalendarHeader.d.ts +1 -1
  264. package/lib/calendar/CalendarMonth.d.ts +1 -1
  265. package/lib/calendar/index.d.ts +1 -1
  266. package/lib/card/Card.d.ts +1 -1
  267. package/lib/card/index.d.ts +1 -1
  268. package/lib/cascader/Cascader.d.ts +1 -1
  269. package/lib/cascader/index.d.ts +1 -1
  270. package/lib/cell/Cell.d.ts +1 -1
  271. package/lib/cell/index.d.ts +1 -1
  272. package/lib/cell-group/CellGroup.d.ts +1 -1
  273. package/lib/cell-group/index.d.ts +1 -1
  274. package/lib/checkbox/Checkbox.d.ts +1 -1
  275. package/lib/checkbox/Checker.d.ts +1 -1
  276. package/lib/checkbox/index.d.ts +1 -1
  277. package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
  278. package/lib/checkbox-group/index.d.ts +1 -1
  279. package/lib/circle/Circle.d.ts +1 -1
  280. package/lib/circle/index.d.ts +1 -1
  281. package/lib/col/Col.d.ts +1 -1
  282. package/lib/col/index.d.ts +1 -1
  283. package/lib/collapse/Collapse.d.ts +1 -1
  284. package/lib/collapse/index.d.ts +1 -1
  285. package/lib/collapse-item/CollapseItem.d.ts +1 -1
  286. package/lib/collapse-item/index.d.ts +1 -1
  287. package/lib/config-provider/ConfigProvider.d.ts +1 -1
  288. package/lib/config-provider/index.d.ts +1 -1
  289. package/lib/contact-card/ContactCard.d.ts +1 -1
  290. package/lib/contact-card/index.d.ts +1 -1
  291. package/lib/contact-edit/ContactEdit.d.ts +1 -1
  292. package/lib/contact-edit/index.d.ts +1 -1
  293. package/lib/contact-list/ContactList.d.ts +1 -1
  294. package/lib/contact-list/index.d.ts +1 -1
  295. package/lib/count-down/CountDown.d.ts +1 -1
  296. package/lib/count-down/index.d.ts +1 -1
  297. package/lib/coupon/Coupon.d.ts +1 -1
  298. package/lib/coupon/index.d.ts +1 -1
  299. package/lib/coupon-cell/CouponCell.d.ts +1 -1
  300. package/lib/coupon-cell/index.d.ts +1 -1
  301. package/lib/coupon-list/CouponList.d.ts +1 -1
  302. package/lib/coupon-list/index.d.ts +1 -1
  303. package/lib/date-picker/DatePicker.d.ts +4 -4
  304. package/lib/date-picker/index.d.ts +3 -3
  305. package/lib/date-picker/utils.d.ts +4 -2
  306. package/lib/date-picker/utils.js +2 -2
  307. package/lib/dialog/Dialog.d.ts +1 -1
  308. package/lib/dialog/index.d.ts +1 -1
  309. package/lib/divider/Divider.d.ts +1 -1
  310. package/lib/divider/index.d.ts +1 -1
  311. package/lib/dropdown-item/DropdownItem.d.ts +1 -1
  312. package/lib/dropdown-item/index.d.ts +1 -1
  313. package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
  314. package/lib/dropdown-menu/DropdownMenu.js +10 -3
  315. package/lib/dropdown-menu/index.d.ts +1 -1
  316. package/lib/dropdown-menu/types.d.ts +5 -1
  317. package/lib/empty/Empty.d.ts +1 -1
  318. package/lib/empty/index.d.ts +1 -1
  319. package/lib/field/Field.d.ts +1 -1
  320. package/lib/field/index.d.ts +1 -1
  321. package/lib/floating-panel/FloatingPanel.d.ts +77 -0
  322. package/lib/floating-panel/FloatingPanel.js +145 -0
  323. package/lib/floating-panel/index.css +1 -0
  324. package/lib/floating-panel/index.d.ts +60 -0
  325. package/lib/floating-panel/index.js +37 -0
  326. package/lib/floating-panel/style/index.d.ts +1 -0
  327. package/lib/floating-panel/style/index.js +2 -0
  328. package/lib/form/Form.d.ts +1 -1
  329. package/lib/form/index.d.ts +1 -1
  330. package/lib/grid/Grid.d.ts +1 -1
  331. package/lib/grid/index.d.ts +1 -1
  332. package/lib/grid-item/GridItem.d.ts +1 -1
  333. package/lib/grid-item/index.d.ts +1 -1
  334. package/lib/icon/Icon.d.ts +1 -1
  335. package/lib/icon/index.d.ts +1 -1
  336. package/lib/image/Image.d.ts +1 -1
  337. package/lib/image/index.d.ts +1 -1
  338. package/lib/image-preview/ImagePreview.d.ts +1 -1
  339. package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
  340. package/lib/image-preview/ImagePreviewItem.js +8 -2
  341. package/lib/image-preview/index.d.ts +1 -1
  342. package/lib/index-anchor/IndexAnchor.d.ts +1 -1
  343. package/lib/index-anchor/index.d.ts +1 -1
  344. package/lib/index-bar/IndexBar.d.ts +1 -1
  345. package/lib/index-bar/index.d.ts +1 -1
  346. package/lib/index.css +1 -1
  347. package/lib/index.d.ts +2 -1
  348. package/lib/index.js +4 -1
  349. package/lib/list/List.d.ts +1 -1
  350. package/lib/list/index.d.ts +1 -1
  351. package/lib/loading/Loading.d.ts +1 -1
  352. package/lib/loading/index.d.ts +1 -1
  353. package/lib/nav-bar/NavBar.d.ts +1 -1
  354. package/lib/nav-bar/index.d.ts +1 -1
  355. package/lib/notice-bar/NoticeBar.d.ts +1 -1
  356. package/lib/notice-bar/index.d.ts +1 -1
  357. package/lib/notify/Notify.d.ts +1 -1
  358. package/lib/notify/index.d.ts +1 -1
  359. package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
  360. package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
  361. package/lib/number-keyboard/index.d.ts +1 -1
  362. package/lib/overlay/Overlay.d.ts +1 -1
  363. package/lib/overlay/index.d.ts +1 -1
  364. package/lib/pagination/Pagination.d.ts +1 -1
  365. package/lib/pagination/index.d.ts +1 -1
  366. package/lib/password-input/PasswordInput.d.ts +1 -1
  367. package/lib/password-input/index.d.ts +1 -1
  368. package/lib/picker/Picker.d.ts +1 -1
  369. package/lib/picker/PickerColumn.d.ts +1 -1
  370. package/lib/picker/PickerToolbar.d.ts +1 -1
  371. package/lib/picker/index.d.ts +1 -1
  372. package/lib/picker-group/PickerGroup.d.ts +1 -1
  373. package/lib/picker-group/index.d.ts +1 -1
  374. package/lib/popover/Popover.d.ts +15 -2
  375. package/lib/popover/Popover.js +8 -3
  376. package/lib/popover/index.css +1 -1
  377. package/lib/popover/index.d.ts +10 -1
  378. package/lib/popover/types.d.ts +1 -0
  379. package/lib/popup/Popup.d.ts +1 -1
  380. package/lib/popup/Popup.js +8 -1
  381. package/lib/popup/index.d.ts +1 -1
  382. package/lib/progress/Progress.d.ts +1 -1
  383. package/lib/progress/index.d.ts +1 -1
  384. package/lib/pull-refresh/PullRefresh.d.ts +1 -1
  385. package/lib/pull-refresh/index.d.ts +1 -1
  386. package/lib/radio/Radio.d.ts +1 -1
  387. package/lib/radio/index.d.ts +1 -1
  388. package/lib/radio-group/RadioGroup.d.ts +1 -1
  389. package/lib/radio-group/index.d.ts +1 -1
  390. package/lib/rate/Rate.d.ts +1 -1
  391. package/lib/rate/index.d.ts +1 -1
  392. package/lib/row/Row.d.ts +1 -1
  393. package/lib/row/index.d.ts +1 -1
  394. package/lib/search/Search.d.ts +1 -1
  395. package/lib/search/index.d.ts +1 -1
  396. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  397. package/lib/share-sheet/index.d.ts +1 -1
  398. package/lib/sidebar/Sidebar.d.ts +1 -1
  399. package/lib/sidebar/index.d.ts +1 -1
  400. package/lib/sidebar-item/SidebarItem.d.ts +1 -1
  401. package/lib/sidebar-item/index.d.ts +1 -1
  402. package/lib/signature/Signature.d.ts +1 -1
  403. package/lib/signature/index.d.ts +1 -1
  404. package/lib/skeleton/Skeleton.d.ts +1 -1
  405. package/lib/skeleton/index.d.ts +1 -1
  406. package/lib/skeleton-avatar/SkeletonAvatar.d.ts +1 -1
  407. package/lib/skeleton-avatar/index.d.ts +1 -1
  408. package/lib/skeleton-image/SkeletonImage.d.ts +1 -1
  409. package/lib/skeleton-image/index.d.ts +1 -1
  410. package/lib/skeleton-paragraph/SkeletonParagraph.d.ts +1 -1
  411. package/lib/skeleton-paragraph/index.d.ts +1 -1
  412. package/lib/skeleton-title/SkeletonTitle.d.ts +1 -1
  413. package/lib/skeleton-title/index.d.ts +1 -1
  414. package/lib/slider/Slider.d.ts +1 -1
  415. package/lib/slider/Slider.js +20 -7
  416. package/lib/slider/index.d.ts +1 -1
  417. package/lib/space/Space.d.ts +1 -1
  418. package/lib/space/index.d.ts +1 -1
  419. package/lib/step/Step.d.ts +1 -1
  420. package/lib/step/index.d.ts +1 -1
  421. package/lib/stepper/Stepper.d.ts +1 -1
  422. package/lib/stepper/index.d.ts +1 -1
  423. package/lib/steps/Steps.d.ts +1 -1
  424. package/lib/steps/index.d.ts +1 -1
  425. package/lib/sticky/Sticky.d.ts +1 -1
  426. package/lib/sticky/index.d.ts +1 -1
  427. package/lib/submit-bar/SubmitBar.d.ts +1 -1
  428. package/lib/submit-bar/index.d.ts +1 -1
  429. package/lib/swipe/Swipe.d.ts +1 -1
  430. package/lib/swipe/index.d.ts +1 -1
  431. package/lib/swipe-cell/SwipeCell.d.ts +1 -1
  432. package/lib/swipe-cell/index.d.ts +1 -1
  433. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  434. package/lib/swipe-item/index.d.ts +1 -1
  435. package/lib/switch/Switch.d.ts +1 -1
  436. package/lib/switch/index.d.ts +1 -1
  437. package/lib/tab/Tab.d.ts +1 -1
  438. package/lib/tab/Tab.js +13 -2
  439. package/lib/tab/TabTitle.d.ts +1 -1
  440. package/lib/tab/index.d.ts +1 -1
  441. package/lib/tabbar/Tabbar.d.ts +1 -1
  442. package/lib/tabbar/index.d.ts +1 -1
  443. package/lib/tabbar-item/TabbarItem.d.ts +1 -1
  444. package/lib/tabbar-item/index.d.ts +1 -1
  445. package/lib/tabs/Tabs.d.ts +1 -1
  446. package/lib/tabs/TabsContent.d.ts +1 -1
  447. package/lib/tabs/index.d.ts +1 -1
  448. package/lib/tag/Tag.d.ts +1 -1
  449. package/lib/tag/index.d.ts +1 -1
  450. package/lib/text-ellipsis/TextEllipsis.d.ts +1 -1
  451. package/lib/text-ellipsis/index.d.ts +1 -1
  452. package/lib/time-picker/TimePicker.d.ts +32 -5
  453. package/lib/time-picker/TimePicker.js +84 -32
  454. package/lib/time-picker/index.d.ts +21 -3
  455. package/lib/toast/Toast.d.ts +1 -1
  456. package/lib/toast/index.d.ts +1 -1
  457. package/lib/tree-select/TreeSelect.d.ts +1 -1
  458. package/lib/tree-select/index.d.ts +1 -1
  459. package/lib/uploader/Uploader.d.ts +1 -1
  460. package/lib/uploader/UploaderPreviewItem.d.ts +1 -1
  461. package/lib/uploader/index.d.ts +1 -1
  462. package/lib/utils/basic.d.ts +3 -0
  463. package/lib/utils/constant.d.ts +1 -0
  464. package/lib/utils/constant.js +2 -0
  465. package/lib/utils/mount-component.d.ts +1 -1
  466. package/lib/vant.cjs.js +818 -583
  467. package/lib/vant.es.js +819 -584
  468. package/lib/vant.js +839 -579
  469. package/lib/vant.min.js +1 -1
  470. package/lib/watermark/Watermark.d.ts +1 -1
  471. package/lib/watermark/index.d.ts +1 -1
  472. package/lib/web-types.json +1 -1
  473. package/package.json +5 -4
@@ -64,7 +64,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
64
64
  currency: string;
65
65
  decimalLength: string | number;
66
66
  buttonType: import("..").ButtonType;
67
- }>>;
67
+ }, {}>>;
68
68
  export default SubmitBar;
69
69
  export { submitBarProps } from './SubmitBar';
70
70
  export type { SubmitBarProps, SubmitBarTextAlign } from './SubmitBar';
@@ -119,5 +119,5 @@ declare const _default: import("vue").DefineComponent<{
119
119
  initialSwipe: string | number;
120
120
  showIndicators: boolean;
121
121
  stopPropagation: boolean;
122
- }>;
122
+ }, {}>;
123
123
  export default _default;
@@ -81,7 +81,7 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
81
81
  initialSwipe: string | number;
82
82
  showIndicators: boolean;
83
83
  stopPropagation: boolean;
84
- }>>;
84
+ }, {}>>;
85
85
  export default Swipe;
86
86
  export { swipeProps } from './Swipe';
87
87
  export type { SwipeProps };
@@ -40,5 +40,5 @@ declare const _default: import("vue").DefineComponent<{
40
40
  name: string | number;
41
41
  disabled: boolean;
42
42
  stopPropagation: boolean;
43
- }>;
43
+ }, {}>;
44
44
  export default _default;
@@ -27,7 +27,7 @@ export declare const SwipeCell: import("../utils").WithInstall<import("vue").Def
27
27
  name: string | number;
28
28
  disabled: boolean;
29
29
  stopPropagation: boolean;
30
- }>>;
30
+ }, {}>>;
31
31
  export default SwipeCell;
32
32
  export { swipeCellProps } from './SwipeCell';
33
33
  export type { SwipeCellProps };
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- export declare const SwipeItem: import("../utils").WithInstall<import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
1
+ export declare const SwipeItem: import("../utils").WithInstall<import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>>;
2
2
  export default SwipeItem;
3
3
  declare module 'vue' {
4
4
  interface GlobalComponents {
@@ -54,5 +54,5 @@ declare const _default: import("vue").DefineComponent<{
54
54
  loading: boolean;
55
55
  activeValue: unknown;
56
56
  inactiveValue: unknown;
57
- }>;
57
+ }, {}>;
58
58
  export default _default;
@@ -36,7 +36,7 @@ export declare const Switch: import("../utils").WithInstall<import("vue").Define
36
36
  loading: boolean;
37
37
  activeValue: unknown;
38
38
  inactiveValue: unknown;
39
- }>>;
39
+ }, {}>>;
40
40
  export default Switch;
41
41
  export { switchProps } from './Switch';
42
42
  export type { SwitchProps } from './Switch';
package/es/tab/Tab.d.ts CHANGED
@@ -54,5 +54,5 @@ declare const _default: import("vue").DefineComponent<{
54
54
  dot: boolean;
55
55
  disabled: boolean;
56
56
  showZeroBadge: boolean;
57
- }>;
57
+ }, {}>;
58
58
  export default _default;
package/es/tab/Tab.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
- import { ref, watch, provide, computed, nextTick, defineComponent, getCurrentInstance } from "vue";
2
+ import { ref, watch, provide, computed, nextTick, watchEffect, normalizeClass, normalizeStyle, defineComponent, getCurrentInstance } from "vue";
3
+ import { stringifyStyle } from "@vue/shared";
3
4
  import { pick, extend, truthProp, unknownProp, numericProp, createNamespace } from "../utils/index.mjs";
4
5
  import { TABS_KEY } from "../tabs/Tabs.mjs";
5
6
  import { doubleRaf, useParent } from "@vant/use";
@@ -58,12 +59,22 @@ var stdin_default = defineComponent({
58
59
  }
59
60
  return isActive;
60
61
  });
62
+ const parsedClass = ref("");
63
+ const parsedStyle = ref("");
64
+ watchEffect(() => {
65
+ const {
66
+ titleClass,
67
+ titleStyle
68
+ } = props;
69
+ parsedClass.value = titleClass ? normalizeClass(titleClass) : "";
70
+ parsedStyle.value = titleStyle && typeof titleStyle !== "string" ? stringifyStyle(normalizeStyle(titleStyle)) : titleStyle;
71
+ });
61
72
  const renderTitle = (onClickTab) => _createVNode(TabTitle, _mergeProps({
62
73
  "key": id,
63
74
  "id": `${parent.id}-${index.value}`,
64
75
  "ref": parent.setTitleRefs(index.value),
65
- "style": props.titleStyle,
66
- "class": props.titleClass,
76
+ "style": parsedStyle.value,
77
+ "class": parsedClass.value,
67
78
  "isActive": active.value,
68
79
  "controls": id,
69
80
  "scrollable": parent.scrollable.value,
@@ -41,4 +41,4 @@ export declare const TabTitle: import("vue").DefineComponent<{
41
41
  isActive: boolean;
42
42
  scrollable: boolean;
43
43
  showZeroBadge: boolean;
44
- }>;
44
+ }, {}>;
package/es/tab/index.d.ts CHANGED
@@ -35,7 +35,7 @@ export declare const Tab: import("../utils").WithInstall<import("vue").DefineCom
35
35
  dot: boolean;
36
36
  disabled: boolean;
37
37
  showZeroBadge: boolean;
38
- }>>;
38
+ }, {}>>;
39
39
  export default Tab;
40
40
  export { tabProps } from './Tab';
41
41
  export type { TabProps } from './Tab';
@@ -86,5 +86,5 @@ declare const _default: import("vue").DefineComponent<{
86
86
  placeholder: boolean;
87
87
  safeAreaInsetBottom: boolean | null;
88
88
  route: boolean;
89
- }>;
89
+ }, {}>;
90
90
  export default _default;
@@ -54,7 +54,7 @@ export declare const Tabbar: import("../utils").WithInstall<import("vue").Define
54
54
  placeholder: boolean;
55
55
  safeAreaInsetBottom: boolean | null;
56
56
  route: boolean;
57
- }>>;
57
+ }, {}>>;
58
58
  export default Tabbar;
59
59
  export { tabbarProps } from './Tabbar';
60
60
  export type { TabbarProps } from './Tabbar';
@@ -40,5 +40,5 @@ declare const _default: import("vue").DefineComponent<{
40
40
  }, {
41
41
  replace: boolean;
42
42
  dot: boolean;
43
- }>;
43
+ }, {}>;
44
44
  export default _default;
@@ -25,7 +25,7 @@ export declare const TabbarItem: import("../utils").WithInstall<import("vue").De
25
25
  }, {
26
26
  replace: boolean;
27
27
  dot: boolean;
28
- }>>;
28
+ }, {}>>;
29
29
  export default TabbarItem;
30
30
  export { tabbarItemProps } from './TabbarItem';
31
31
  export type { TabbarItemProps } from './TabbarItem';
package/es/tabs/Tabs.d.ts CHANGED
@@ -150,5 +150,5 @@ declare const _default: import("vue").DefineComponent<{
150
150
  shrink: boolean;
151
151
  scrollspy: boolean;
152
152
  swipeThreshold: string | number;
153
- }>;
153
+ }, {}>;
154
154
  export default _default;
@@ -39,5 +39,5 @@ declare const _default: import("vue").DefineComponent<{
39
39
  inited: boolean;
40
40
  animated: boolean;
41
41
  swipeable: boolean;
42
- }>;
42
+ }, {}>;
43
43
  export default _default;
@@ -103,7 +103,7 @@ export declare const Tabs: import("../utils").WithInstall<import("vue").DefineCo
103
103
  shrink: boolean;
104
104
  scrollspy: boolean;
105
105
  swipeThreshold: string | number;
106
- }>>;
106
+ }, {}>>;
107
107
  export default Tabs;
108
108
  export { tabsProps } from './Tabs';
109
109
  export type { TabsProps };
package/es/tag/Tag.d.ts CHANGED
@@ -59,5 +59,5 @@ declare const _default: import("vue").DefineComponent<{
59
59
  plain: boolean;
60
60
  show: boolean;
61
61
  closeable: boolean;
62
- }>;
62
+ }, {}>;
63
63
  export default _default;
package/es/tag/index.d.ts CHANGED
@@ -39,7 +39,7 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
39
39
  plain: boolean;
40
40
  show: boolean;
41
41
  closeable: boolean;
42
- }>>;
42
+ }, {}>>;
43
43
  export default Tag;
44
44
  export { tagProps } from './Tag';
45
45
  export type { TagProps } from './Tag';
@@ -72,5 +72,5 @@ declare const _default: import("vue").DefineComponent<{
72
72
  dots: string;
73
73
  expandText: string;
74
74
  collapseText: string;
75
- }>;
75
+ }, {}>;
76
76
  export default _default;
@@ -48,7 +48,7 @@ export declare const TextEllipsis: import("../utils").WithInstall<import("vue").
48
48
  dots: string;
49
49
  expandText: string;
50
50
  collapseText: string;
51
- }>>;
51
+ }, {}>>;
52
52
  export default TextEllipsis;
53
53
  export { textEllipsisProps } from './TextEllipsis';
54
54
  export type { TextEllipsisProps } from './TextEllipsis';
@@ -1,4 +1,4 @@
1
- import { type PropType, type ExtractPropTypes } from 'vue';
1
+ import { type ExtractPropTypes, type PropType } from 'vue';
2
2
  export type TimePickerColumnType = 'hour' | 'minute' | 'second';
3
3
  export declare const timePickerProps: {
4
4
  loading: BooleanConstructor;
@@ -29,7 +29,7 @@ export declare const timePickerProps: {
29
29
  type: PropType<string[]>;
30
30
  default: () => never[];
31
31
  };
32
- filter: PropType<(columnType: string, options: import("../picker").PickerOption[]) => import("../picker").PickerOption[]>;
32
+ filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[] | undefined) => import("../picker").PickerOption[]>;
33
33
  formatter: {
34
34
  type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
35
35
  default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
@@ -59,10 +59,19 @@ export declare const timePickerProps: {
59
59
  type: (NumberConstructor | StringConstructor)[];
60
60
  default: number;
61
61
  };
62
+ minTime: {
63
+ type: StringConstructor;
64
+ validator: (val: string) => boolean;
65
+ };
66
+ maxTime: {
67
+ type: StringConstructor;
68
+ validator: (val: string) => boolean;
69
+ };
62
70
  columnsType: {
63
71
  type: PropType<TimePickerColumnType[]>;
64
72
  default: () => string[];
65
73
  };
74
+ filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
66
75
  };
67
76
  export type TimePickerProps = ExtractPropTypes<typeof timePickerProps>;
68
77
  declare const _default: import("vue").DefineComponent<{
@@ -94,7 +103,7 @@ declare const _default: import("vue").DefineComponent<{
94
103
  type: PropType<string[]>;
95
104
  default: () => never[];
96
105
  };
97
- filter: PropType<(columnType: string, options: import("../picker").PickerOption[]) => import("../picker").PickerOption[]>;
106
+ filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[] | undefined) => import("../picker").PickerOption[]>;
98
107
  formatter: {
99
108
  type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
100
109
  default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
@@ -124,10 +133,19 @@ declare const _default: import("vue").DefineComponent<{
124
133
  type: (NumberConstructor | StringConstructor)[];
125
134
  default: number;
126
135
  };
136
+ minTime: {
137
+ type: StringConstructor;
138
+ validator: (val: string) => boolean;
139
+ };
140
+ maxTime: {
141
+ type: StringConstructor;
142
+ validator: (val: string) => boolean;
143
+ };
127
144
  columnsType: {
128
145
  type: PropType<TimePickerColumnType[]>;
129
146
  default: () => string[];
130
147
  };
148
+ filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
131
149
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
132
150
  loading: BooleanConstructor;
133
151
  readonly: BooleanConstructor;
@@ -157,7 +175,7 @@ declare const _default: import("vue").DefineComponent<{
157
175
  type: PropType<string[]>;
158
176
  default: () => never[];
159
177
  };
160
- filter: PropType<(columnType: string, options: import("../picker").PickerOption[]) => import("../picker").PickerOption[]>;
178
+ filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values?: string[] | undefined) => import("../picker").PickerOption[]>;
161
179
  formatter: {
162
180
  type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
163
181
  default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
@@ -187,10 +205,19 @@ declare const _default: import("vue").DefineComponent<{
187
205
  type: (NumberConstructor | StringConstructor)[];
188
206
  default: number;
189
207
  };
208
+ minTime: {
209
+ type: StringConstructor;
210
+ validator: (val: string) => boolean;
211
+ };
212
+ maxTime: {
213
+ type: StringConstructor;
214
+ validator: (val: string) => boolean;
215
+ };
190
216
  columnsType: {
191
217
  type: PropType<TimePickerColumnType[]>;
192
218
  default: () => string[];
193
219
  };
220
+ filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
194
221
  }>> & {
195
222
  onChange?: ((...args: any[]) => any) | undefined;
196
223
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -213,5 +240,5 @@ declare const _default: import("vue").DefineComponent<{
213
240
  maxMinute: string | number;
214
241
  minSecond: string | number;
215
242
  maxSecond: string | number;
216
- }>;
243
+ }, {}>;
217
244
  export default _default;
@@ -1,9 +1,11 @@
1
1
  import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
- import { ref, watch, computed, defineComponent } from "vue";
3
- import { pick, extend, createNamespace, makeNumericProp, isSameValue } from "../utils/index.mjs";
4
- import { genOptions, sharedProps, pickerInheritKeys, formatValueRange } from "../date-picker/utils.mjs";
2
+ import { computed, defineComponent, ref, watch } from "vue";
3
+ import { formatValueRange, genOptions, pickerInheritKeys, sharedProps } from "../date-picker/utils.mjs";
4
+ import { createNamespace, extend, isSameValue, makeNumericProp, pick } from "../utils/index.mjs";
5
5
  import { Picker } from "../picker/index.mjs";
6
6
  const [name] = createNamespace("time-picker");
7
+ const validateTime = (val) => /^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(val);
8
+ const fullColumns = ["hour", "minute", "second"];
7
9
  const timePickerProps = extend({}, sharedProps, {
8
10
  minHour: makeNumericProp(0),
9
11
  maxHour: makeNumericProp(23),
@@ -11,10 +13,19 @@ const timePickerProps = extend({}, sharedProps, {
11
13
  maxMinute: makeNumericProp(59),
12
14
  minSecond: makeNumericProp(0),
13
15
  maxSecond: makeNumericProp(59),
16
+ minTime: {
17
+ type: String,
18
+ validator: validateTime
19
+ },
20
+ maxTime: {
21
+ type: String,
22
+ validator: validateTime
23
+ },
14
24
  columnsType: {
15
25
  type: Array,
16
26
  default: () => ["hour", "minute"]
17
- }
27
+ },
28
+ filter: Function
18
29
  });
19
30
  var stdin_default = defineComponent({
20
31
  name,
@@ -25,25 +36,66 @@ var stdin_default = defineComponent({
25
36
  slots
26
37
  }) {
27
38
  const currentValues = ref(props.modelValue);
28
- const columns = computed(() => props.columnsType.map((type) => {
29
- const {
30
- filter,
31
- formatter
39
+ const getValidTime = (time) => {
40
+ const timeLimitArr = time.split(":");
41
+ return fullColumns.map((col, i) => props.columnsType.includes(col) ? timeLimitArr[i] : "00");
42
+ };
43
+ const columns = computed(() => {
44
+ let {
45
+ minHour,
46
+ maxHour,
47
+ minMinute,
48
+ maxMinute,
49
+ minSecond,
50
+ maxSecond
32
51
  } = props;
33
- switch (type) {
34
- case "hour":
35
- return genOptions(+props.minHour, +props.maxHour, type, formatter, filter);
36
- case "minute":
37
- return genOptions(+props.minMinute, +props.maxMinute, type, formatter, filter);
38
- case "second":
39
- return genOptions(+props.minSecond, +props.maxSecond, type, formatter, filter);
40
- default:
41
- if (process.env.NODE_ENV !== "production") {
42
- throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
43
- }
44
- return [];
52
+ if (props.minTime || props.maxTime) {
53
+ const fullTime = {
54
+ hour: 0,
55
+ minute: 0,
56
+ second: 0
57
+ };
58
+ props.columnsType.forEach((col, i) => {
59
+ var _a;
60
+ fullTime[col] = (_a = currentValues.value[i]) != null ? _a : 0;
61
+ });
62
+ const {
63
+ hour,
64
+ minute
65
+ } = fullTime;
66
+ if (props.minTime) {
67
+ const [minH, minM, minS] = getValidTime(props.minTime);
68
+ minHour = minH;
69
+ minMinute = +hour <= +minHour ? minM : "00";
70
+ minSecond = +hour <= +minHour && +minute <= +minMinute ? minS : "00";
71
+ }
72
+ if (props.maxTime) {
73
+ const [maxH, maxM, maxS] = getValidTime(props.maxTime);
74
+ maxHour = maxH;
75
+ maxMinute = +hour >= +maxHour ? maxM : "59";
76
+ maxSecond = +hour >= +maxHour && +minute >= +maxMinute ? maxS : "59";
77
+ }
45
78
  }
46
- }));
79
+ return props.columnsType.map((type) => {
80
+ const {
81
+ filter,
82
+ formatter
83
+ } = props;
84
+ switch (type) {
85
+ case "hour":
86
+ return genOptions(+minHour, +maxHour, type, formatter, filter, currentValues.value);
87
+ case "minute":
88
+ return genOptions(+minMinute, +maxMinute, type, formatter, filter, currentValues.value);
89
+ case "second":
90
+ return genOptions(+minSecond, +maxSecond, type, formatter, filter, currentValues.value);
91
+ default:
92
+ if (process.env.NODE_ENV !== "production") {
93
+ throw new Error(`[Vant] DatePicker: unsupported columns type: ${type}`);
94
+ }
95
+ return [];
96
+ }
97
+ });
98
+ });
47
99
  watch(currentValues, (newValues) => {
48
100
  if (!isSameValue(newValues, props.modelValue)) {
49
101
  emit("update:modelValue", newValues);
@@ -28,7 +28,7 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
28
28
  type: import("vue").PropType<string[]>;
29
29
  default: () => never[];
30
30
  };
31
- filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[]) => import("..").PickerOption[]>;
31
+ filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values?: string[] | undefined) => import("..").PickerOption[]>;
32
32
  formatter: {
33
33
  type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
34
34
  default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
@@ -58,10 +58,19 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
58
58
  type: (NumberConstructor | StringConstructor)[];
59
59
  default: number;
60
60
  };
61
+ minTime: {
62
+ type: StringConstructor;
63
+ validator: (val: string) => boolean;
64
+ };
65
+ maxTime: {
66
+ type: StringConstructor;
67
+ validator: (val: string) => boolean;
68
+ };
61
69
  columnsType: {
62
70
  type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
63
71
  default: () => string[];
64
72
  };
73
+ filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
65
74
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
66
75
  loading: BooleanConstructor;
67
76
  readonly: BooleanConstructor;
@@ -91,7 +100,7 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
91
100
  type: import("vue").PropType<string[]>;
92
101
  default: () => never[];
93
102
  };
94
- filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[]) => import("..").PickerOption[]>;
103
+ filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values?: string[] | undefined) => import("..").PickerOption[]>;
95
104
  formatter: {
96
105
  type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
97
106
  default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
@@ -121,10 +130,19 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
121
130
  type: (NumberConstructor | StringConstructor)[];
122
131
  default: number;
123
132
  };
133
+ minTime: {
134
+ type: StringConstructor;
135
+ validator: (val: string) => boolean;
136
+ };
137
+ maxTime: {
138
+ type: StringConstructor;
139
+ validator: (val: string) => boolean;
140
+ };
124
141
  columnsType: {
125
142
  type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
126
143
  default: () => string[];
127
144
  };
145
+ filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
128
146
  }>> & {
129
147
  onChange?: ((...args: any[]) => any) | undefined;
130
148
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -147,7 +165,7 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
147
165
  maxMinute: string | number;
148
166
  minSecond: string | number;
149
167
  maxSecond: string | number;
150
- }>>;
168
+ }, {}>>;
151
169
  export default TimePicker;
152
170
  export { timePickerProps } from './TimePicker';
153
171
  export type { TimePickerProps };
@@ -111,5 +111,5 @@ declare const _default: import("vue").DefineComponent<{
111
111
  transition: string;
112
112
  forbidClick: boolean;
113
113
  closeOnClick: boolean;
114
- }>;
114
+ }, {}>;
115
115
  export default _default;
@@ -74,7 +74,7 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
74
74
  transition: string;
75
75
  forbidClick: boolean;
76
76
  closeOnClick: boolean;
77
- }>>;
77
+ }, {}>>;
78
78
  export default Toast;
79
79
  export { toastProps } from './Toast';
80
80
  export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
@@ -102,5 +102,5 @@ declare const _default: import("vue").DefineComponent<{
102
102
  selectedIcon: string;
103
103
  mainActiveIndex: string | number;
104
104
  activeId: Numeric | Numeric[];
105
- }>;
105
+ }, {}>;
106
106
  export default _default;
@@ -60,7 +60,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
60
60
  selectedIcon: string;
61
61
  mainActiveIndex: string | number;
62
62
  activeId: import("../utils").Numeric | import("../utils").Numeric[];
63
- }>>;
63
+ }, {}>>;
64
64
  export default TreeSelect;
65
65
  export { treeSelectProps } from './TreeSelect';
66
66
  export type { TreeSelectItem, TreeSelectChild, TreeSelectProps, } from './TreeSelect';
@@ -214,5 +214,5 @@ declare const _default: import("vue").DefineComponent<{
214
214
  previewImage: boolean;
215
215
  previewFullImage: boolean;
216
216
  maxSize: UploaderMaxSize;
217
- }>;
217
+ }, {}>;
218
218
  export default _default;
@@ -36,5 +36,5 @@ declare const _default: import("vue").DefineComponent<{
36
36
  lazyLoad: boolean;
37
37
  deletable: boolean;
38
38
  reupload: boolean;
39
- }>;
39
+ }, {}>;
40
40
  export default _default;
@@ -147,7 +147,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
147
147
  previewImage: boolean;
148
148
  previewFullImage: boolean;
149
149
  maxSize: import("./types").UploaderMaxSize;
150
- }>>;
150
+ }, {}>>;
151
151
  export default Uploader;
152
152
  export { uploaderProps } from './Uploader';
153
153
  export type { UploaderProps };
@@ -13,6 +13,9 @@ export declare function get(object: any, path: string): any;
13
13
  export type Writeable<T> = {
14
14
  -readonly [P in keyof T]: T[P];
15
15
  };
16
+ export type RequiredParams<T> = T extends (...args: infer P) => infer R ? (...args: {
17
+ [K in keyof P]-?: NonNullable<P[K]>;
18
+ }) => R : never;
16
19
  export declare function pick<T, U extends keyof T>(obj: T, keys: ReadonlyArray<U>, ignoreUndefined?: boolean): Writeable<Pick<T, U>>;
17
20
  export declare const isSameValue: (newValue: unknown, oldValue: unknown) => boolean;
18
21
  export declare const toArray: <T>(item: T | T[]) => T[];
@@ -3,6 +3,7 @@ import type { FormProvide } from '../form/types';
3
3
  export declare const BORDER = "van-hairline";
4
4
  export declare const BORDER_TOP: string;
5
5
  export declare const BORDER_LEFT: string;
6
+ export declare const BORDER_RIGHT: string;
6
7
  export declare const BORDER_BOTTOM: string;
7
8
  export declare const BORDER_SURROUND: string;
8
9
  export declare const BORDER_TOP_BOTTOM: string;
@@ -1,6 +1,7 @@
1
1
  const BORDER = "van-hairline";
2
2
  const BORDER_TOP = `${BORDER}--top`;
3
3
  const BORDER_LEFT = `${BORDER}--left`;
4
+ const BORDER_RIGHT = `${BORDER}--right`;
4
5
  const BORDER_BOTTOM = `${BORDER}--bottom`;
5
6
  const BORDER_SURROUND = `${BORDER}--surround`;
6
7
  const BORDER_TOP_BOTTOM = `${BORDER}--top-bottom`;
@@ -12,6 +13,7 @@ export {
12
13
  BORDER,
13
14
  BORDER_BOTTOM,
14
15
  BORDER_LEFT,
16
+ BORDER_RIGHT,
15
17
  BORDER_SURROUND,
16
18
  BORDER_TOP,
17
19
  BORDER_TOP_BOTTOM,
@@ -9,6 +9,6 @@ export declare function usePopupState(): {
9
9
  toggle: (show: boolean) => void;
10
10
  };
11
11
  export declare function mountComponent(RootComponent: Component): {
12
- instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
12
+ instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
13
13
  unmount(): void;
14
14
  };
@@ -108,5 +108,5 @@ declare const _default: import("vue").DefineComponent<{
108
108
  gapX: number;
109
109
  gapY: number;
110
110
  fullPage: boolean;
111
- }>;
111
+ }, {}>;
112
112
  export default _default;