vant 3.4.1 → 3.4.2

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 (555) hide show
  1. package/es/action-bar/ActionBar.d.ts +6 -5
  2. package/es/action-bar/index.css +1 -1
  3. package/es/action-bar/index.d.ts +6 -5
  4. package/es/action-bar-button/ActionBarButton.d.ts +11 -21
  5. package/es/action-bar-button/index.css +1 -1
  6. package/es/action-bar-button/index.d.ts +11 -21
  7. package/es/action-bar-icon/ActionBarIcon.d.ts +16 -84
  8. package/es/action-bar-icon/index.css +1 -1
  9. package/es/action-bar-icon/index.d.ts +14 -64
  10. package/es/action-sheet/ActionSheet.d.ts +54 -47
  11. package/es/action-sheet/index.css +1 -1
  12. package/es/action-sheet/index.d.ts +54 -47
  13. package/es/address-edit/AddressEdit.d.ts +48 -48
  14. package/es/address-edit/AddressEditDetail.d.ts +10 -20
  15. package/es/address-edit/index.css +1 -1
  16. package/es/address-edit/index.d.ts +48 -48
  17. package/es/address-list/AddressList.d.ts +18 -18
  18. package/es/address-list/AddressListItem.d.ts +9 -12
  19. package/es/address-list/index.css +1 -1
  20. package/es/address-list/index.d.ts +18 -18
  21. package/es/address-list/index.less +1 -1
  22. package/es/area/Area.d.ts +41 -33
  23. package/es/area/index.d.ts +41 -33
  24. package/es/badge/Badge.d.ts +19 -20
  25. package/es/badge/index.css +1 -1
  26. package/es/badge/index.d.ts +19 -20
  27. package/es/button/Button.d.ts +39 -47
  28. package/es/button/index.css +1 -1
  29. package/es/button/index.d.ts +39 -47
  30. package/es/calendar/Calendar.d.ts +85 -62
  31. package/es/calendar/Calendar.js +6 -1
  32. package/es/calendar/CalendarDay.d.ts +13 -14
  33. package/es/calendar/CalendarHeader.d.ts +7 -14
  34. package/es/calendar/CalendarMonth.d.ts +25 -32
  35. package/es/calendar/index.css +1 -1
  36. package/es/calendar/index.d.ts +85 -62
  37. package/es/card/Card.d.ts +16 -26
  38. package/es/card/index.css +1 -1
  39. package/es/card/index.d.ts +16 -26
  40. package/es/cascader/Cascader.d.ts +36 -22
  41. package/es/cascader/Cascader.js +3 -2
  42. package/es/cascader/index.css +1 -1
  43. package/es/cascader/index.d.ts +32 -22
  44. package/es/cell/Cell.d.ts +27 -41
  45. package/es/cell/index.css +1 -1
  46. package/es/cell/index.d.ts +27 -41
  47. package/es/cell-group/CellGroup.d.ts +8 -10
  48. package/es/cell-group/index.css +1 -1
  49. package/es/cell-group/index.d.ts +8 -10
  50. package/es/checkbox/Checkbox.d.ts +17 -21
  51. package/es/checkbox/Checker.d.ts +24 -29
  52. package/es/checkbox/index.css +1 -1
  53. package/es/checkbox/index.d.ts +17 -21
  54. package/es/checkbox-group/CheckboxGroup.d.ts +11 -16
  55. package/es/checkbox-group/index.css +1 -1
  56. package/es/checkbox-group/index.d.ts +11 -16
  57. package/es/circle/Circle.d.ts +35 -28
  58. package/es/circle/index.css +1 -1
  59. package/es/circle/index.d.ts +35 -28
  60. package/es/col/Col.d.ts +11 -10
  61. package/es/col/index.css +1 -1
  62. package/es/col/index.d.ts +11 -10
  63. package/es/collapse/Collapse.d.ts +11 -9
  64. package/es/collapse/index.d.ts +11 -9
  65. package/es/collapse-item/CollapseItem.d.ts +31 -41
  66. package/es/collapse-item/index.css +1 -1
  67. package/es/collapse-item/index.d.ts +31 -41
  68. package/es/composables/use-height.js +6 -2
  69. package/es/config-provider/ConfigProvider.d.ts +8 -10
  70. package/es/config-provider/index.d.ts +8 -10
  71. package/es/contact-card/ContactCard.d.ts +13 -14
  72. package/es/contact-card/index.css +1 -1
  73. package/es/contact-card/index.d.ts +13 -14
  74. package/es/contact-edit/ContactEdit.d.ts +15 -18
  75. package/es/contact-edit/index.css +1 -1
  76. package/es/contact-edit/index.d.ts +15 -18
  77. package/es/contact-list/ContactList.d.ts +6 -11
  78. package/es/contact-list/index.css +1 -1
  79. package/es/contact-list/index.d.ts +6 -11
  80. package/es/count-down/CountDown.d.ts +15 -11
  81. package/es/count-down/index.css +1 -1
  82. package/es/count-down/index.d.ts +15 -11
  83. package/es/coupon/Coupon.d.ts +12 -11
  84. package/es/coupon/index.css +1 -1
  85. package/es/coupon/index.d.ts +12 -11
  86. package/es/coupon-cell/CouponCell.d.ts +23 -16
  87. package/es/coupon-cell/index.css +1 -1
  88. package/es/coupon-cell/index.d.ts +23 -16
  89. package/es/coupon-list/CouponList.d.ts +53 -40
  90. package/es/coupon-list/index.css +1 -1
  91. package/es/coupon-list/index.d.ts +53 -40
  92. package/es/datetime-picker/DatePicker.d.ts +45 -36
  93. package/es/datetime-picker/TimePicker.d.ts +47 -38
  94. package/es/dialog/Dialog.d.ts +52 -59
  95. package/es/dialog/function-call.d.ts +52 -59
  96. package/es/dialog/index.css +1 -1
  97. package/es/divider/Divider.d.ts +11 -9
  98. package/es/divider/index.css +1 -1
  99. package/es/divider/index.d.ts +11 -9
  100. package/es/dropdown-item/DropdownItem.d.ts +15 -18
  101. package/es/dropdown-item/index.css +1 -1
  102. package/es/dropdown-item/index.d.ts +15 -18
  103. package/es/dropdown-menu/DropdownMenu.d.ts +24 -18
  104. package/es/dropdown-menu/index.css +1 -1
  105. package/es/dropdown-menu/index.d.ts +24 -18
  106. package/es/empty/Empty.d.ts +8 -10
  107. package/es/empty/index.css +1 -1
  108. package/es/empty/index.d.ts +8 -10
  109. package/es/field/Field.d.ts +80 -90
  110. package/es/field/index.css +1 -1
  111. package/es/field/index.d.ts +80 -90
  112. package/es/form/Form.d.ts +24 -30
  113. package/es/form/index.d.ts +24 -30
  114. package/es/grid/Grid.d.ts +20 -22
  115. package/es/grid/index.css +1 -1
  116. package/es/grid/index.d.ts +20 -22
  117. package/es/grid-item/GridItem.d.ts +15 -82
  118. package/es/grid-item/index.css +1 -1
  119. package/es/grid-item/index.d.ts +13 -62
  120. package/es/icon/Icon.d.ts +16 -79
  121. package/es/icon/index.css +1 -1
  122. package/es/icon/index.d.ts +14 -59
  123. package/es/image/Image.d.ts +32 -32
  124. package/es/image/Image.js +13 -4
  125. package/es/image/index.css +1 -1
  126. package/es/image/index.d.ts +30 -32
  127. package/es/image-preview/ImagePreview.d.ts +54 -42
  128. package/es/image-preview/ImagePreviewItem.d.ts +21 -18
  129. package/es/image-preview/ImagePreviewItem.js +12 -4
  130. package/es/image-preview/function-call.d.ts +54 -42
  131. package/es/image-preview/index.css +1 -1
  132. package/es/index-anchor/IndexAnchor.d.ts +3 -5
  133. package/es/index-anchor/index.css +1 -1
  134. package/es/index-anchor/index.d.ts +3 -5
  135. package/es/index-bar/IndexBar.d.ts +17 -16
  136. package/es/index-bar/index.css +1 -1
  137. package/es/index-bar/index.d.ts +17 -16
  138. package/es/index.d.ts +1 -1
  139. package/es/index.js +1 -1
  140. package/es/list/List.d.ts +20 -22
  141. package/es/list/index.css +1 -1
  142. package/es/list/index.d.ts +20 -22
  143. package/es/loading/Loading.d.ts +11 -16
  144. package/es/loading/index.css +1 -1
  145. package/es/loading/index.d.ts +11 -16
  146. package/es/nav-bar/NavBar.d.ts +14 -22
  147. package/es/nav-bar/index.css +1 -1
  148. package/es/nav-bar/index.d.ts +14 -22
  149. package/es/notice-bar/NoticeBar.d.ts +20 -22
  150. package/es/notice-bar/index.css +1 -1
  151. package/es/notice-bar/index.d.ts +20 -22
  152. package/es/notify/Notify.d.ts +39 -39
  153. package/es/notify/function-call.d.ts +39 -39
  154. package/es/notify/index.css +1 -1
  155. package/es/number-keyboard/NumberKeyboard.d.ts +46 -38
  156. package/es/number-keyboard/NumberKeyboardKey.d.ts +8 -16
  157. package/es/number-keyboard/index.css +1 -1
  158. package/es/number-keyboard/index.d.ts +46 -38
  159. package/es/overlay/Overlay.d.ts +24 -16
  160. package/es/overlay/Overlay.js +2 -1
  161. package/es/overlay/index.css +1 -1
  162. package/es/overlay/index.d.ts +20 -16
  163. package/es/pagination/Pagination.d.ts +29 -22
  164. package/es/pagination/index.css +1 -1
  165. package/es/pagination/index.d.ts +29 -22
  166. package/es/password-input/PasswordInput.d.ts +18 -18
  167. package/es/password-input/index.css +1 -1
  168. package/es/password-input/index.d.ts +18 -18
  169. package/es/picker/Picker.d.ts +38 -33
  170. package/es/picker/PickerColumn.d.ts +29 -22
  171. package/es/picker/index.css +1 -1
  172. package/es/picker/index.d.ts +38 -33
  173. package/es/popover/Popover.d.ts +48 -36
  174. package/es/popover/index.css +1 -1
  175. package/es/popover/index.d.ts +48 -36
  176. package/es/popup/Popup.d.ts +44 -45
  177. package/es/popup/index.css +1 -1
  178. package/es/popup/index.d.ts +44 -45
  179. package/es/progress/Progress.d.ts +18 -22
  180. package/es/progress/index.css +1 -1
  181. package/es/progress/index.d.ts +18 -22
  182. package/es/pull-refresh/PullRefresh.d.ts +21 -24
  183. package/es/pull-refresh/index.css +1 -1
  184. package/es/pull-refresh/index.d.ts +21 -24
  185. package/es/radio/Radio.d.ts +13 -20
  186. package/es/radio/index.css +1 -1
  187. package/es/radio/index.d.ts +13 -20
  188. package/es/radio-group/RadioGroup.d.ts +7 -14
  189. package/es/radio-group/index.css +1 -1
  190. package/es/radio-group/index.d.ts +7 -14
  191. package/es/rate/Rate.d.ts +31 -32
  192. package/es/rate/index.css +1 -1
  193. package/es/rate/index.d.ts +31 -32
  194. package/es/row/Row.d.ts +16 -14
  195. package/es/row/index.css +1 -1
  196. package/es/row/index.d.ts +16 -14
  197. package/es/search/Search.d.ts +58 -51
  198. package/es/search/index.css +1 -1
  199. package/es/search/index.d.ts +58 -51
  200. package/es/share-sheet/ShareSheet.d.ts +45 -41
  201. package/es/share-sheet/index.css +1 -1
  202. package/es/share-sheet/index.d.ts +45 -41
  203. package/es/sidebar/Sidebar.d.ts +6 -5
  204. package/es/sidebar/index.css +1 -1
  205. package/es/sidebar/index.d.ts +6 -5
  206. package/es/sidebar-item/SidebarItem.d.ts +13 -78
  207. package/es/sidebar-item/index.css +1 -1
  208. package/es/sidebar-item/index.d.ts +11 -58
  209. package/es/skeleton/Skeleton.d.ts +27 -24
  210. package/es/skeleton/Skeleton.js +1 -1
  211. package/es/skeleton/index.css +1 -1
  212. package/es/skeleton/index.d.ts +27 -24
  213. package/es/slider/Slider.d.ts +27 -30
  214. package/es/slider/index.css +1 -1
  215. package/es/slider/index.d.ts +27 -30
  216. package/es/step/Step.d.ts +1 -1
  217. package/es/step/index.css +1 -1
  218. package/es/step/index.d.ts +1 -1
  219. package/es/stepper/Stepper.d.ts +51 -48
  220. package/es/stepper/index.css +1 -1
  221. package/es/stepper/index.d.ts +51 -48
  222. package/es/steps/Steps.d.ts +19 -20
  223. package/es/steps/index.css +1 -1
  224. package/es/steps/index.d.ts +19 -20
  225. package/es/sticky/Sticky.d.ts +16 -14
  226. package/es/sticky/index.css +1 -1
  227. package/es/sticky/index.d.ts +16 -14
  228. package/es/style/animation.css +1 -1
  229. package/es/style/base.css +1 -1
  230. package/es/style/css-variables.css +1 -1
  231. package/es/style/normalize.css +1 -1
  232. package/es/submit-bar/SubmitBar.d.ts +28 -32
  233. package/es/submit-bar/index.css +1 -1
  234. package/es/submit-bar/index.d.ts +28 -32
  235. package/es/swipe/Swipe.d.ts +35 -28
  236. package/es/swipe/index.css +1 -1
  237. package/es/swipe/index.d.ts +35 -28
  238. package/es/swipe-cell/SwipeCell.d.ts +11 -16
  239. package/es/swipe-cell/index.css +1 -1
  240. package/es/swipe-cell/index.d.ts +11 -16
  241. package/es/swipe-item/SwipeItem.d.ts +1 -1
  242. package/es/swipe-item/index.css +1 -1
  243. package/es/swipe-item/index.d.ts +1 -1
  244. package/es/switch/Switch.d.ts +16 -20
  245. package/es/switch/index.css +1 -1
  246. package/es/switch/index.d.ts +16 -20
  247. package/es/tab/Tab.d.ts +16 -25
  248. package/es/tab/index.css +1 -1
  249. package/es/tab/index.d.ts +16 -25
  250. package/es/tabbar/Tabbar.d.ts +24 -24
  251. package/es/tabbar/index.css +1 -1
  252. package/es/tabbar/index.d.ts +24 -24
  253. package/es/tabbar-item/TabbarItem.d.ts +14 -80
  254. package/es/tabbar-item/index.css +1 -1
  255. package/es/tabbar-item/index.d.ts +12 -60
  256. package/es/tabs/Tabs.d.ts +43 -44
  257. package/es/tabs/TabsContent.d.ts +18 -17
  258. package/es/tabs/TabsTitle.d.ts +19 -32
  259. package/es/tabs/index.css +1 -1
  260. package/es/tabs/index.d.ts +43 -44
  261. package/es/tag/Tag.d.ts +17 -22
  262. package/es/tag/index.css +1 -1
  263. package/es/tag/index.d.ts +17 -22
  264. package/es/toast/Toast.d.ts +31 -38
  265. package/es/toast/index.css +1 -1
  266. package/es/tree-select/TreeSelect.d.ts +26 -15
  267. package/es/tree-select/index.css +1 -1
  268. package/es/tree-select/index.d.ts +26 -15
  269. package/es/uploader/Uploader.d.ts +61 -50
  270. package/es/uploader/UploaderPreviewItem.d.ts +13 -20
  271. package/es/uploader/index.css +1 -1
  272. package/es/uploader/index.d.ts +61 -50
  273. package/lib/action-bar/ActionBar.d.ts +6 -5
  274. package/lib/action-bar/index.css +1 -1
  275. package/lib/action-bar/index.d.ts +6 -5
  276. package/lib/action-bar-button/ActionBarButton.d.ts +11 -21
  277. package/lib/action-bar-button/index.css +1 -1
  278. package/lib/action-bar-button/index.d.ts +11 -21
  279. package/lib/action-bar-icon/ActionBarIcon.d.ts +16 -84
  280. package/lib/action-bar-icon/index.css +1 -1
  281. package/lib/action-bar-icon/index.d.ts +14 -64
  282. package/lib/action-sheet/ActionSheet.d.ts +54 -47
  283. package/lib/action-sheet/index.css +1 -1
  284. package/lib/action-sheet/index.d.ts +54 -47
  285. package/lib/address-edit/AddressEdit.d.ts +48 -48
  286. package/lib/address-edit/AddressEditDetail.d.ts +10 -20
  287. package/lib/address-edit/index.css +1 -1
  288. package/lib/address-edit/index.d.ts +48 -48
  289. package/lib/address-list/AddressList.d.ts +18 -18
  290. package/lib/address-list/AddressListItem.d.ts +9 -12
  291. package/lib/address-list/index.css +1 -1
  292. package/lib/address-list/index.d.ts +18 -18
  293. package/lib/address-list/index.less +1 -1
  294. package/lib/area/Area.d.ts +41 -33
  295. package/lib/area/index.d.ts +41 -33
  296. package/lib/badge/Badge.d.ts +19 -20
  297. package/lib/badge/index.css +1 -1
  298. package/lib/badge/index.d.ts +19 -20
  299. package/lib/button/Button.d.ts +39 -47
  300. package/lib/button/index.css +1 -1
  301. package/lib/button/index.d.ts +39 -47
  302. package/lib/calendar/Calendar.d.ts +85 -62
  303. package/lib/calendar/Calendar.js +6 -1
  304. package/lib/calendar/CalendarDay.d.ts +13 -14
  305. package/lib/calendar/CalendarHeader.d.ts +7 -14
  306. package/lib/calendar/CalendarMonth.d.ts +25 -32
  307. package/lib/calendar/index.css +1 -1
  308. package/lib/calendar/index.d.ts +85 -62
  309. package/lib/card/Card.d.ts +16 -26
  310. package/lib/card/index.css +1 -1
  311. package/lib/card/index.d.ts +16 -26
  312. package/lib/cascader/Cascader.d.ts +36 -22
  313. package/lib/cascader/Cascader.js +3 -2
  314. package/lib/cascader/index.css +1 -1
  315. package/lib/cascader/index.d.ts +32 -22
  316. package/lib/cell/Cell.d.ts +27 -41
  317. package/lib/cell/index.css +1 -1
  318. package/lib/cell/index.d.ts +27 -41
  319. package/lib/cell-group/CellGroup.d.ts +8 -10
  320. package/lib/cell-group/index.css +1 -1
  321. package/lib/cell-group/index.d.ts +8 -10
  322. package/lib/checkbox/Checkbox.d.ts +17 -21
  323. package/lib/checkbox/Checker.d.ts +24 -29
  324. package/lib/checkbox/index.css +1 -1
  325. package/lib/checkbox/index.d.ts +17 -21
  326. package/lib/checkbox-group/CheckboxGroup.d.ts +11 -16
  327. package/lib/checkbox-group/index.css +1 -1
  328. package/lib/checkbox-group/index.d.ts +11 -16
  329. package/lib/circle/Circle.d.ts +35 -28
  330. package/lib/circle/index.css +1 -1
  331. package/lib/circle/index.d.ts +35 -28
  332. package/lib/col/Col.d.ts +11 -10
  333. package/lib/col/index.css +1 -1
  334. package/lib/col/index.d.ts +11 -10
  335. package/lib/collapse/Collapse.d.ts +11 -9
  336. package/lib/collapse/index.d.ts +11 -9
  337. package/lib/collapse-item/CollapseItem.d.ts +31 -41
  338. package/lib/collapse-item/index.css +1 -1
  339. package/lib/collapse-item/index.d.ts +31 -41
  340. package/lib/composables/use-height.js +6 -2
  341. package/lib/config-provider/ConfigProvider.d.ts +8 -10
  342. package/lib/config-provider/index.d.ts +8 -10
  343. package/lib/contact-card/ContactCard.d.ts +13 -14
  344. package/lib/contact-card/index.css +1 -1
  345. package/lib/contact-card/index.d.ts +13 -14
  346. package/lib/contact-edit/ContactEdit.d.ts +15 -18
  347. package/lib/contact-edit/index.css +1 -1
  348. package/lib/contact-edit/index.d.ts +15 -18
  349. package/lib/contact-list/ContactList.d.ts +6 -11
  350. package/lib/contact-list/index.css +1 -1
  351. package/lib/contact-list/index.d.ts +6 -11
  352. package/lib/count-down/CountDown.d.ts +15 -11
  353. package/lib/count-down/index.css +1 -1
  354. package/lib/count-down/index.d.ts +15 -11
  355. package/lib/coupon/Coupon.d.ts +12 -11
  356. package/lib/coupon/index.css +1 -1
  357. package/lib/coupon/index.d.ts +12 -11
  358. package/lib/coupon-cell/CouponCell.d.ts +23 -16
  359. package/lib/coupon-cell/index.css +1 -1
  360. package/lib/coupon-cell/index.d.ts +23 -16
  361. package/lib/coupon-list/CouponList.d.ts +53 -40
  362. package/lib/coupon-list/index.css +1 -1
  363. package/lib/coupon-list/index.d.ts +53 -40
  364. package/lib/datetime-picker/DatePicker.d.ts +45 -36
  365. package/lib/datetime-picker/TimePicker.d.ts +47 -38
  366. package/lib/dialog/Dialog.d.ts +52 -59
  367. package/lib/dialog/function-call.d.ts +52 -59
  368. package/lib/dialog/index.css +1 -1
  369. package/lib/divider/Divider.d.ts +11 -9
  370. package/lib/divider/index.css +1 -1
  371. package/lib/divider/index.d.ts +11 -9
  372. package/lib/dropdown-item/DropdownItem.d.ts +15 -18
  373. package/lib/dropdown-item/index.css +1 -1
  374. package/lib/dropdown-item/index.d.ts +15 -18
  375. package/lib/dropdown-menu/DropdownMenu.d.ts +24 -18
  376. package/lib/dropdown-menu/index.css +1 -1
  377. package/lib/dropdown-menu/index.d.ts +24 -18
  378. package/lib/empty/Empty.d.ts +8 -10
  379. package/lib/empty/index.css +1 -1
  380. package/lib/empty/index.d.ts +8 -10
  381. package/lib/field/Field.d.ts +80 -90
  382. package/lib/field/index.css +1 -1
  383. package/lib/field/index.d.ts +80 -90
  384. package/lib/form/Form.d.ts +24 -30
  385. package/lib/form/index.d.ts +24 -30
  386. package/lib/grid/Grid.d.ts +20 -22
  387. package/lib/grid/index.css +1 -1
  388. package/lib/grid/index.d.ts +20 -22
  389. package/lib/grid-item/GridItem.d.ts +15 -82
  390. package/lib/grid-item/index.css +1 -1
  391. package/lib/grid-item/index.d.ts +13 -62
  392. package/lib/icon/Icon.d.ts +16 -79
  393. package/lib/icon/index.css +1 -1
  394. package/lib/icon/index.d.ts +14 -59
  395. package/lib/image/Image.d.ts +32 -32
  396. package/lib/image/Image.js +12 -3
  397. package/lib/image/index.css +1 -1
  398. package/lib/image/index.d.ts +30 -32
  399. package/lib/image-preview/ImagePreview.d.ts +54 -42
  400. package/lib/image-preview/ImagePreviewItem.d.ts +21 -18
  401. package/lib/image-preview/ImagePreviewItem.js +12 -4
  402. package/lib/image-preview/function-call.d.ts +54 -42
  403. package/lib/image-preview/index.css +1 -1
  404. package/lib/index-anchor/IndexAnchor.d.ts +3 -5
  405. package/lib/index-anchor/index.css +1 -1
  406. package/lib/index-anchor/index.d.ts +3 -5
  407. package/lib/index-bar/IndexBar.d.ts +17 -16
  408. package/lib/index-bar/index.css +1 -1
  409. package/lib/index-bar/index.d.ts +17 -16
  410. package/lib/index.css +1 -1
  411. package/lib/index.d.ts +1 -1
  412. package/lib/index.js +1 -1
  413. package/lib/list/List.d.ts +20 -22
  414. package/lib/list/index.css +1 -1
  415. package/lib/list/index.d.ts +20 -22
  416. package/lib/loading/Loading.d.ts +11 -16
  417. package/lib/loading/index.css +1 -1
  418. package/lib/loading/index.d.ts +11 -16
  419. package/lib/nav-bar/NavBar.d.ts +14 -22
  420. package/lib/nav-bar/index.css +1 -1
  421. package/lib/nav-bar/index.d.ts +14 -22
  422. package/lib/notice-bar/NoticeBar.d.ts +20 -22
  423. package/lib/notice-bar/index.css +1 -1
  424. package/lib/notice-bar/index.d.ts +20 -22
  425. package/lib/notify/Notify.d.ts +39 -39
  426. package/lib/notify/function-call.d.ts +39 -39
  427. package/lib/notify/index.css +1 -1
  428. package/lib/number-keyboard/NumberKeyboard.d.ts +46 -38
  429. package/lib/number-keyboard/NumberKeyboardKey.d.ts +8 -16
  430. package/lib/number-keyboard/index.css +1 -1
  431. package/lib/number-keyboard/index.d.ts +46 -38
  432. package/lib/overlay/Overlay.d.ts +24 -16
  433. package/lib/overlay/Overlay.js +2 -1
  434. package/lib/overlay/index.css +1 -1
  435. package/lib/overlay/index.d.ts +20 -16
  436. package/lib/pagination/Pagination.d.ts +29 -22
  437. package/lib/pagination/index.css +1 -1
  438. package/lib/pagination/index.d.ts +29 -22
  439. package/lib/password-input/PasswordInput.d.ts +18 -18
  440. package/lib/password-input/index.css +1 -1
  441. package/lib/password-input/index.d.ts +18 -18
  442. package/lib/picker/Picker.d.ts +38 -33
  443. package/lib/picker/PickerColumn.d.ts +29 -22
  444. package/lib/picker/index.css +1 -1
  445. package/lib/picker/index.d.ts +38 -33
  446. package/lib/popover/Popover.d.ts +48 -36
  447. package/lib/popover/index.css +1 -1
  448. package/lib/popover/index.d.ts +48 -36
  449. package/lib/popup/Popup.d.ts +44 -45
  450. package/lib/popup/index.css +1 -1
  451. package/lib/popup/index.d.ts +44 -45
  452. package/lib/progress/Progress.d.ts +18 -22
  453. package/lib/progress/index.css +1 -1
  454. package/lib/progress/index.d.ts +18 -22
  455. package/lib/pull-refresh/PullRefresh.d.ts +21 -24
  456. package/lib/pull-refresh/index.css +1 -1
  457. package/lib/pull-refresh/index.d.ts +21 -24
  458. package/lib/radio/Radio.d.ts +13 -20
  459. package/lib/radio/index.css +1 -1
  460. package/lib/radio/index.d.ts +13 -20
  461. package/lib/radio-group/RadioGroup.d.ts +7 -14
  462. package/lib/radio-group/index.css +1 -1
  463. package/lib/radio-group/index.d.ts +7 -14
  464. package/lib/rate/Rate.d.ts +31 -32
  465. package/lib/rate/index.css +1 -1
  466. package/lib/rate/index.d.ts +31 -32
  467. package/lib/row/Row.d.ts +16 -14
  468. package/lib/row/index.css +1 -1
  469. package/lib/row/index.d.ts +16 -14
  470. package/lib/search/Search.d.ts +58 -51
  471. package/lib/search/index.css +1 -1
  472. package/lib/search/index.d.ts +58 -51
  473. package/lib/share-sheet/ShareSheet.d.ts +45 -41
  474. package/lib/share-sheet/index.css +1 -1
  475. package/lib/share-sheet/index.d.ts +45 -41
  476. package/lib/sidebar/Sidebar.d.ts +6 -5
  477. package/lib/sidebar/index.css +1 -1
  478. package/lib/sidebar/index.d.ts +6 -5
  479. package/lib/sidebar-item/SidebarItem.d.ts +13 -78
  480. package/lib/sidebar-item/index.css +1 -1
  481. package/lib/sidebar-item/index.d.ts +11 -58
  482. package/lib/skeleton/Skeleton.d.ts +27 -24
  483. package/lib/skeleton/Skeleton.js +1 -1
  484. package/lib/skeleton/index.css +1 -1
  485. package/lib/skeleton/index.d.ts +27 -24
  486. package/lib/slider/Slider.d.ts +27 -30
  487. package/lib/slider/index.css +1 -1
  488. package/lib/slider/index.d.ts +27 -30
  489. package/lib/step/Step.d.ts +1 -1
  490. package/lib/step/index.css +1 -1
  491. package/lib/step/index.d.ts +1 -1
  492. package/lib/stepper/Stepper.d.ts +51 -48
  493. package/lib/stepper/index.css +1 -1
  494. package/lib/stepper/index.d.ts +51 -48
  495. package/lib/steps/Steps.d.ts +19 -20
  496. package/lib/steps/index.css +1 -1
  497. package/lib/steps/index.d.ts +19 -20
  498. package/lib/sticky/Sticky.d.ts +16 -14
  499. package/lib/sticky/index.css +1 -1
  500. package/lib/sticky/index.d.ts +16 -14
  501. package/lib/style/animation.css +1 -1
  502. package/lib/style/base.css +1 -1
  503. package/lib/style/css-variables.css +1 -1
  504. package/lib/style/normalize.css +1 -1
  505. package/lib/submit-bar/SubmitBar.d.ts +28 -32
  506. package/lib/submit-bar/index.css +1 -1
  507. package/lib/submit-bar/index.d.ts +28 -32
  508. package/lib/swipe/Swipe.d.ts +35 -28
  509. package/lib/swipe/index.css +1 -1
  510. package/lib/swipe/index.d.ts +35 -28
  511. package/lib/swipe-cell/SwipeCell.d.ts +11 -16
  512. package/lib/swipe-cell/index.css +1 -1
  513. package/lib/swipe-cell/index.d.ts +11 -16
  514. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  515. package/lib/swipe-item/index.css +1 -1
  516. package/lib/swipe-item/index.d.ts +1 -1
  517. package/lib/switch/Switch.d.ts +16 -20
  518. package/lib/switch/index.css +1 -1
  519. package/lib/switch/index.d.ts +16 -20
  520. package/lib/tab/Tab.d.ts +16 -25
  521. package/lib/tab/index.css +1 -1
  522. package/lib/tab/index.d.ts +16 -25
  523. package/lib/tabbar/Tabbar.d.ts +24 -24
  524. package/lib/tabbar/index.css +1 -1
  525. package/lib/tabbar/index.d.ts +24 -24
  526. package/lib/tabbar-item/TabbarItem.d.ts +14 -80
  527. package/lib/tabbar-item/index.css +1 -1
  528. package/lib/tabbar-item/index.d.ts +12 -60
  529. package/lib/tabs/Tabs.d.ts +43 -44
  530. package/lib/tabs/TabsContent.d.ts +18 -17
  531. package/lib/tabs/TabsTitle.d.ts +19 -32
  532. package/lib/tabs/index.css +1 -1
  533. package/lib/tabs/index.d.ts +43 -44
  534. package/lib/tag/Tag.d.ts +17 -22
  535. package/lib/tag/index.css +1 -1
  536. package/lib/tag/index.d.ts +17 -22
  537. package/lib/toast/Toast.d.ts +31 -38
  538. package/lib/toast/index.css +1 -1
  539. package/lib/tree-select/TreeSelect.d.ts +26 -15
  540. package/lib/tree-select/index.css +1 -1
  541. package/lib/tree-select/index.d.ts +26 -15
  542. package/lib/uploader/Uploader.d.ts +61 -50
  543. package/lib/uploader/UploaderPreviewItem.d.ts +13 -20
  544. package/lib/uploader/index.css +1 -1
  545. package/lib/uploader/index.d.ts +61 -50
  546. package/lib/vant.cjs.js +43 -15
  547. package/lib/vant.cjs.min.js +1 -1
  548. package/lib/vant.es.js +43 -15
  549. package/lib/vant.es.min.js +43 -15
  550. package/lib/vant.js +43 -15
  551. package/lib/vant.min.js +1 -1
  552. package/package.json +3 -3
  553. package/vetur/attributes.json +939 -939
  554. package/vetur/tags.json +31 -31
  555. package/vetur/web-types.json +1511 -1511
package/lib/vant.es.js CHANGED
@@ -1093,6 +1093,7 @@ const overlayProps = {
1093
1093
  duration: numericProp,
1094
1094
  className: unknownProp,
1095
1095
  lockScroll: truthProp,
1096
+ lazyRender: truthProp,
1096
1097
  customStyle: Object
1097
1098
  };
1098
1099
  var stdin_default$1t = defineComponent({
@@ -1101,7 +1102,7 @@ var stdin_default$1t = defineComponent({
1101
1102
  setup(props, {
1102
1103
  slots
1103
1104
  }) {
1104
- const lazyRender = useLazyRender(() => props.show);
1105
+ const lazyRender = useLazyRender(() => props.show || !props.lazyRender);
1105
1106
  const preventTouchMove = (event) => {
1106
1107
  preventDefault(event, true);
1107
1108
  };
@@ -4208,9 +4209,13 @@ const proxyPickerMethods = (picker, callback) => {
4208
4209
  };
4209
4210
  const useHeight = (element) => {
4210
4211
  const height = ref();
4211
- onMounted(() => nextTick(() => {
4212
+ const setHeight = () => {
4212
4213
  height.value = useRect(element).height;
4213
- }));
4214
+ };
4215
+ onMounted(() => {
4216
+ nextTick(setHeight);
4217
+ setTimeout(setHeight, 100);
4218
+ });
4214
4219
  return height;
4215
4220
  };
4216
4221
  const [name$13] = createNamespace("calendar-day");
@@ -4839,7 +4844,12 @@ var stdin_default$17 = defineComponent({
4839
4844
  if (compareToStart === 1) {
4840
4845
  const disabledDay = getDisabledDate(disabledDays.value, startDay, date);
4841
4846
  if (disabledDay) {
4842
- select([startDay, getPrevDay(disabledDay)]);
4847
+ const endDay2 = getPrevDay(disabledDay);
4848
+ if (compareDay(startDay, endDay2) === -1) {
4849
+ select([startDay, endDay2]);
4850
+ } else {
4851
+ select([date]);
4852
+ }
4843
4853
  } else {
4844
4854
  select([startDay, date], true);
4845
4855
  }
@@ -4963,6 +4973,7 @@ const imageProps = {
4963
4973
  src: String,
4964
4974
  alt: String,
4965
4975
  fit: String,
4976
+ position: String,
4966
4977
  round: Boolean,
4967
4978
  width: numericProp,
4968
4979
  height: numericProp,
@@ -5044,7 +5055,8 @@ var stdin_default$16 = defineComponent({
5044
5055
  alt: props.alt,
5045
5056
  class: bem$$("img"),
5046
5057
  style: {
5047
- objectFit: props.fit
5058
+ objectFit: props.fit,
5059
+ objectPosition: props.position
5048
5060
  }
5049
5061
  };
5050
5062
  if (props.lazyLoad) {
@@ -5061,8 +5073,15 @@ var stdin_default$16 = defineComponent({
5061
5073
  const onLazyLoaded = ({
5062
5074
  el
5063
5075
  }) => {
5064
- if (el === imageRef.value && loading.value) {
5065
- onLoad();
5076
+ const check = () => {
5077
+ if (el === imageRef.value && loading.value) {
5078
+ onLoad();
5079
+ }
5080
+ };
5081
+ if (imageRef.value) {
5082
+ check();
5083
+ } else {
5084
+ nextTick(check);
5066
5085
  }
5067
5086
  };
5068
5087
  const onLazyLoadError = ({
@@ -6374,6 +6393,7 @@ const cascaderProps = {
6374
6393
  closeable: truthProp,
6375
6394
  swipeable: truthProp,
6376
6395
  closeIcon: makeStringProp("cross"),
6396
+ showHeader: truthProp,
6377
6397
  modelValue: numericProp,
6378
6398
  fieldNames: Object,
6379
6399
  placeholder: String,
@@ -6487,7 +6507,7 @@ var stdin_default$Z = defineComponent({
6487
6507
  name: name2,
6488
6508
  title
6489
6509
  }) => emit("click-tab", name2, title);
6490
- const renderHeader = () => createVNode("div", {
6510
+ const renderHeader = () => props.showHeader ? createVNode("div", {
6491
6511
  "class": bem$S("header")
6492
6512
  }, [createVNode("h2", {
6493
6513
  "class": bem$S("title")
@@ -6495,7 +6515,7 @@ var stdin_default$Z = defineComponent({
6495
6515
  "name": props.closeIcon,
6496
6516
  "class": [bem$S("close-icon"), HAPTICS_FEEDBACK],
6497
6517
  "onClick": onClose
6498
- }, null) : null]);
6518
+ }, null) : null]) : null;
6499
6519
  const renderOption = (option, selectedOption, tabIndex) => {
6500
6520
  const {
6501
6521
  disabled
@@ -9174,7 +9194,7 @@ var stdin_default$z = defineComponent({
9174
9194
  return 0;
9175
9195
  });
9176
9196
  const setScale = (scale) => {
9177
- scale = clamp(scale, +props.minZoom, +props.maxZoom);
9197
+ scale = clamp(scale, +props.minZoom, +props.maxZoom + 1);
9178
9198
  if (scale !== state.scale) {
9179
9199
  state.scale = scale;
9180
9200
  emit("scale", {
@@ -9194,6 +9214,7 @@ var stdin_default$z = defineComponent({
9194
9214
  state.moveX = 0;
9195
9215
  state.moveY = 0;
9196
9216
  };
9217
+ let fingerNum;
9197
9218
  let startMoveX;
9198
9219
  let startMoveY;
9199
9220
  let startScale;
@@ -9208,11 +9229,12 @@ var stdin_default$z = defineComponent({
9208
9229
  offsetX
9209
9230
  } = touch;
9210
9231
  touch.start(event);
9232
+ fingerNum = touches.length;
9211
9233
  startMoveX = state.moveX;
9212
9234
  startMoveY = state.moveY;
9213
9235
  touchStartTime = Date.now();
9214
- state.moving = touches.length === 1 && state.scale !== 1;
9215
- state.zooming = touches.length === 2 && !offsetX.value;
9236
+ state.moving = fingerNum === 1 && state.scale !== 1;
9237
+ state.zooming = fingerNum === 2 && !offsetX.value;
9216
9238
  if (state.zooming) {
9217
9239
  startScale = state.scale;
9218
9240
  startDistance = getDistance(event.touches);
@@ -9243,13 +9265,16 @@ var stdin_default$z = defineComponent({
9243
9265
  }
9244
9266
  };
9245
9267
  const checkTap = () => {
9268
+ if (fingerNum > 1) {
9269
+ return;
9270
+ }
9246
9271
  const {
9247
9272
  offsetX,
9248
9273
  offsetY
9249
9274
  } = touch;
9250
9275
  const deltaTime = Date.now() - touchStartTime;
9251
9276
  const TAP_TIME = 250;
9252
- const TAP_OFFSET = 10;
9277
+ const TAP_OFFSET = 5;
9253
9278
  if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET && deltaTime < TAP_TIME) {
9254
9279
  if (doubleTapTimer) {
9255
9280
  clearTimeout(doubleTapTimer);
@@ -9283,6 +9308,9 @@ var stdin_default$z = defineComponent({
9283
9308
  if (state.scale < 1) {
9284
9309
  resetScale();
9285
9310
  }
9311
+ if (state.scale > props.maxZoom) {
9312
+ state.scale = +props.maxZoom;
9313
+ }
9286
9314
  }
9287
9315
  }
9288
9316
  preventDefault(event, stopPropagation2);
@@ -11755,7 +11783,7 @@ var stdin_default$f = defineComponent({
11755
11783
  }
11756
11784
  return rowWidth;
11757
11785
  };
11758
- const renderRows = () => Array(props.row).fill("").map((_, i) => createVNode("div", {
11786
+ const renderRows = () => Array(+props.row).fill("").map((_, i) => createVNode("div", {
11759
11787
  "class": bem$a("row"),
11760
11788
  "style": {
11761
11789
  width: addUnit(getRowWidth(i))
@@ -14208,7 +14236,7 @@ const Lazyload = {
14208
14236
  });
14209
14237
  }
14210
14238
  };
14211
- const version = "3.4.1";
14239
+ const version = "3.4.2";
14212
14240
  function install(app) {
14213
14241
  const components = [
14214
14242
  ActionBar,
@@ -1093,6 +1093,7 @@ const overlayProps = {
1093
1093
  duration: numericProp,
1094
1094
  className: unknownProp,
1095
1095
  lockScroll: truthProp,
1096
+ lazyRender: truthProp,
1096
1097
  customStyle: Object
1097
1098
  };
1098
1099
  var stdin_default$1t = defineComponent({
@@ -1101,7 +1102,7 @@ var stdin_default$1t = defineComponent({
1101
1102
  setup(props, {
1102
1103
  slots
1103
1104
  }) {
1104
- const lazyRender = useLazyRender(() => props.show);
1105
+ const lazyRender = useLazyRender(() => props.show || !props.lazyRender);
1105
1106
  const preventTouchMove = (event) => {
1106
1107
  preventDefault(event, true);
1107
1108
  };
@@ -4208,9 +4209,13 @@ const proxyPickerMethods = (picker, callback) => {
4208
4209
  };
4209
4210
  const useHeight = (element) => {
4210
4211
  const height = ref();
4211
- onMounted(() => nextTick(() => {
4212
+ const setHeight = () => {
4212
4213
  height.value = useRect(element).height;
4213
- }));
4214
+ };
4215
+ onMounted(() => {
4216
+ nextTick(setHeight);
4217
+ setTimeout(setHeight, 100);
4218
+ });
4214
4219
  return height;
4215
4220
  };
4216
4221
  const [name$13] = createNamespace("calendar-day");
@@ -4839,7 +4844,12 @@ var stdin_default$17 = defineComponent({
4839
4844
  if (compareToStart === 1) {
4840
4845
  const disabledDay = getDisabledDate(disabledDays.value, startDay, date);
4841
4846
  if (disabledDay) {
4842
- select([startDay, getPrevDay(disabledDay)]);
4847
+ const endDay2 = getPrevDay(disabledDay);
4848
+ if (compareDay(startDay, endDay2) === -1) {
4849
+ select([startDay, endDay2]);
4850
+ } else {
4851
+ select([date]);
4852
+ }
4843
4853
  } else {
4844
4854
  select([startDay, date], true);
4845
4855
  }
@@ -4963,6 +4973,7 @@ const imageProps = {
4963
4973
  src: String,
4964
4974
  alt: String,
4965
4975
  fit: String,
4976
+ position: String,
4966
4977
  round: Boolean,
4967
4978
  width: numericProp,
4968
4979
  height: numericProp,
@@ -5044,7 +5055,8 @@ var stdin_default$16 = defineComponent({
5044
5055
  alt: props.alt,
5045
5056
  class: bem$$("img"),
5046
5057
  style: {
5047
- objectFit: props.fit
5058
+ objectFit: props.fit,
5059
+ objectPosition: props.position
5048
5060
  }
5049
5061
  };
5050
5062
  if (props.lazyLoad) {
@@ -5061,8 +5073,15 @@ var stdin_default$16 = defineComponent({
5061
5073
  const onLazyLoaded = ({
5062
5074
  el
5063
5075
  }) => {
5064
- if (el === imageRef.value && loading.value) {
5065
- onLoad();
5076
+ const check = () => {
5077
+ if (el === imageRef.value && loading.value) {
5078
+ onLoad();
5079
+ }
5080
+ };
5081
+ if (imageRef.value) {
5082
+ check();
5083
+ } else {
5084
+ nextTick(check);
5066
5085
  }
5067
5086
  };
5068
5087
  const onLazyLoadError = ({
@@ -6374,6 +6393,7 @@ const cascaderProps = {
6374
6393
  closeable: truthProp,
6375
6394
  swipeable: truthProp,
6376
6395
  closeIcon: makeStringProp("cross"),
6396
+ showHeader: truthProp,
6377
6397
  modelValue: numericProp,
6378
6398
  fieldNames: Object,
6379
6399
  placeholder: String,
@@ -6487,7 +6507,7 @@ var stdin_default$Z = defineComponent({
6487
6507
  name: name2,
6488
6508
  title
6489
6509
  }) => emit("click-tab", name2, title);
6490
- const renderHeader = () => createVNode("div", {
6510
+ const renderHeader = () => props.showHeader ? createVNode("div", {
6491
6511
  "class": bem$S("header")
6492
6512
  }, [createVNode("h2", {
6493
6513
  "class": bem$S("title")
@@ -6495,7 +6515,7 @@ var stdin_default$Z = defineComponent({
6495
6515
  "name": props.closeIcon,
6496
6516
  "class": [bem$S("close-icon"), HAPTICS_FEEDBACK],
6497
6517
  "onClick": onClose
6498
- }, null) : null]);
6518
+ }, null) : null]) : null;
6499
6519
  const renderOption = (option, selectedOption, tabIndex) => {
6500
6520
  const {
6501
6521
  disabled
@@ -9174,7 +9194,7 @@ var stdin_default$z = defineComponent({
9174
9194
  return 0;
9175
9195
  });
9176
9196
  const setScale = (scale) => {
9177
- scale = clamp(scale, +props.minZoom, +props.maxZoom);
9197
+ scale = clamp(scale, +props.minZoom, +props.maxZoom + 1);
9178
9198
  if (scale !== state.scale) {
9179
9199
  state.scale = scale;
9180
9200
  emit("scale", {
@@ -9194,6 +9214,7 @@ var stdin_default$z = defineComponent({
9194
9214
  state.moveX = 0;
9195
9215
  state.moveY = 0;
9196
9216
  };
9217
+ let fingerNum;
9197
9218
  let startMoveX;
9198
9219
  let startMoveY;
9199
9220
  let startScale;
@@ -9208,11 +9229,12 @@ var stdin_default$z = defineComponent({
9208
9229
  offsetX
9209
9230
  } = touch;
9210
9231
  touch.start(event);
9232
+ fingerNum = touches.length;
9211
9233
  startMoveX = state.moveX;
9212
9234
  startMoveY = state.moveY;
9213
9235
  touchStartTime = Date.now();
9214
- state.moving = touches.length === 1 && state.scale !== 1;
9215
- state.zooming = touches.length === 2 && !offsetX.value;
9236
+ state.moving = fingerNum === 1 && state.scale !== 1;
9237
+ state.zooming = fingerNum === 2 && !offsetX.value;
9216
9238
  if (state.zooming) {
9217
9239
  startScale = state.scale;
9218
9240
  startDistance = getDistance(event.touches);
@@ -9243,13 +9265,16 @@ var stdin_default$z = defineComponent({
9243
9265
  }
9244
9266
  };
9245
9267
  const checkTap = () => {
9268
+ if (fingerNum > 1) {
9269
+ return;
9270
+ }
9246
9271
  const {
9247
9272
  offsetX,
9248
9273
  offsetY
9249
9274
  } = touch;
9250
9275
  const deltaTime = Date.now() - touchStartTime;
9251
9276
  const TAP_TIME = 250;
9252
- const TAP_OFFSET = 10;
9277
+ const TAP_OFFSET = 5;
9253
9278
  if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET && deltaTime < TAP_TIME) {
9254
9279
  if (doubleTapTimer) {
9255
9280
  clearTimeout(doubleTapTimer);
@@ -9283,6 +9308,9 @@ var stdin_default$z = defineComponent({
9283
9308
  if (state.scale < 1) {
9284
9309
  resetScale();
9285
9310
  }
9311
+ if (state.scale > props.maxZoom) {
9312
+ state.scale = +props.maxZoom;
9313
+ }
9286
9314
  }
9287
9315
  }
9288
9316
  preventDefault(event, stopPropagation2);
@@ -11755,7 +11783,7 @@ var stdin_default$f = defineComponent({
11755
11783
  }
11756
11784
  return rowWidth;
11757
11785
  };
11758
- const renderRows = () => Array(props.row).fill("").map((_, i) => createVNode("div", {
11786
+ const renderRows = () => Array(+props.row).fill("").map((_, i) => createVNode("div", {
11759
11787
  "class": bem$a("row"),
11760
11788
  "style": {
11761
11789
  width: addUnit(getRowWidth(i))
@@ -14208,7 +14236,7 @@ const Lazyload = {
14208
14236
  });
14209
14237
  }
14210
14238
  };
14211
- const version = "3.4.1";
14239
+ const version = "3.4.2";
14212
14240
  function install(app) {
14213
14241
  const components = [
14214
14242
  ActionBar,
package/lib/vant.js CHANGED
@@ -1446,6 +1446,7 @@
1446
1446
  duration: numericProp,
1447
1447
  className: unknownProp,
1448
1448
  lockScroll: truthProp,
1449
+ lazyRender: truthProp,
1449
1450
  customStyle: Object
1450
1451
  };
1451
1452
  var stdin_default$1t = vue.defineComponent({
@@ -1454,7 +1455,7 @@
1454
1455
  setup(props, {
1455
1456
  slots
1456
1457
  }) {
1457
- const lazyRender = useLazyRender(() => props.show);
1458
+ const lazyRender = useLazyRender(() => props.show || !props.lazyRender);
1458
1459
  const preventTouchMove = (event) => {
1459
1460
  preventDefault(event, true);
1460
1461
  };
@@ -4561,9 +4562,13 @@
4561
4562
  };
4562
4563
  const useHeight = (element) => {
4563
4564
  const height2 = vue.ref();
4564
- vue.onMounted(() => vue.nextTick(() => {
4565
+ const setHeight = () => {
4565
4566
  height2.value = useRect(element).height;
4566
- }));
4567
+ };
4568
+ vue.onMounted(() => {
4569
+ vue.nextTick(setHeight);
4570
+ setTimeout(setHeight, 100);
4571
+ });
4567
4572
  return height2;
4568
4573
  };
4569
4574
  const [name$13] = createNamespace("calendar-day");
@@ -5192,7 +5197,12 @@
5192
5197
  if (compareToStart === 1) {
5193
5198
  const disabledDay = getDisabledDate(disabledDays.value, startDay, date);
5194
5199
  if (disabledDay) {
5195
- select([startDay, getPrevDay(disabledDay)]);
5200
+ const endDay2 = getPrevDay(disabledDay);
5201
+ if (compareDay(startDay, endDay2) === -1) {
5202
+ select([startDay, endDay2]);
5203
+ } else {
5204
+ select([date]);
5205
+ }
5196
5206
  } else {
5197
5207
  select([startDay, date], true);
5198
5208
  }
@@ -5316,6 +5326,7 @@
5316
5326
  src: String,
5317
5327
  alt: String,
5318
5328
  fit: String,
5329
+ position: String,
5319
5330
  round: Boolean,
5320
5331
  width: numericProp,
5321
5332
  height: numericProp,
@@ -5397,7 +5408,8 @@
5397
5408
  alt: props.alt,
5398
5409
  class: bem$$("img"),
5399
5410
  style: {
5400
- objectFit: props.fit
5411
+ objectFit: props.fit,
5412
+ objectPosition: props.position
5401
5413
  }
5402
5414
  };
5403
5415
  if (props.lazyLoad) {
@@ -5414,8 +5426,15 @@
5414
5426
  const onLazyLoaded = ({
5415
5427
  el
5416
5428
  }) => {
5417
- if (el === imageRef.value && loading.value) {
5418
- onLoad();
5429
+ const check = () => {
5430
+ if (el === imageRef.value && loading.value) {
5431
+ onLoad();
5432
+ }
5433
+ };
5434
+ if (imageRef.value) {
5435
+ check();
5436
+ } else {
5437
+ vue.nextTick(check);
5419
5438
  }
5420
5439
  };
5421
5440
  const onLazyLoadError = ({
@@ -6727,6 +6746,7 @@
6727
6746
  closeable: truthProp,
6728
6747
  swipeable: truthProp,
6729
6748
  closeIcon: makeStringProp("cross"),
6749
+ showHeader: truthProp,
6730
6750
  modelValue: numericProp,
6731
6751
  fieldNames: Object,
6732
6752
  placeholder: String,
@@ -6840,7 +6860,7 @@
6840
6860
  name: name2,
6841
6861
  title
6842
6862
  }) => emit("click-tab", name2, title);
6843
- const renderHeader = () => vue.createVNode("div", {
6863
+ const renderHeader = () => props.showHeader ? vue.createVNode("div", {
6844
6864
  "class": bem$S("header")
6845
6865
  }, [vue.createVNode("h2", {
6846
6866
  "class": bem$S("title")
@@ -6848,7 +6868,7 @@
6848
6868
  "name": props.closeIcon,
6849
6869
  "class": [bem$S("close-icon"), HAPTICS_FEEDBACK],
6850
6870
  "onClick": onClose
6851
- }, null) : null]);
6871
+ }, null) : null]) : null;
6852
6872
  const renderOption = (option, selectedOption, tabIndex) => {
6853
6873
  const {
6854
6874
  disabled
@@ -9527,7 +9547,7 @@
9527
9547
  return 0;
9528
9548
  });
9529
9549
  const setScale = (scale) => {
9530
- scale = clamp(scale, +props.minZoom, +props.maxZoom);
9550
+ scale = clamp(scale, +props.minZoom, +props.maxZoom + 1);
9531
9551
  if (scale !== state.scale) {
9532
9552
  state.scale = scale;
9533
9553
  emit("scale", {
@@ -9547,6 +9567,7 @@
9547
9567
  state.moveX = 0;
9548
9568
  state.moveY = 0;
9549
9569
  };
9570
+ let fingerNum;
9550
9571
  let startMoveX;
9551
9572
  let startMoveY;
9552
9573
  let startScale;
@@ -9561,11 +9582,12 @@
9561
9582
  offsetX
9562
9583
  } = touch;
9563
9584
  touch.start(event);
9585
+ fingerNum = touches.length;
9564
9586
  startMoveX = state.moveX;
9565
9587
  startMoveY = state.moveY;
9566
9588
  touchStartTime = Date.now();
9567
- state.moving = touches.length === 1 && state.scale !== 1;
9568
- state.zooming = touches.length === 2 && !offsetX.value;
9589
+ state.moving = fingerNum === 1 && state.scale !== 1;
9590
+ state.zooming = fingerNum === 2 && !offsetX.value;
9569
9591
  if (state.zooming) {
9570
9592
  startScale = state.scale;
9571
9593
  startDistance = getDistance(event.touches);
@@ -9596,13 +9618,16 @@
9596
9618
  }
9597
9619
  };
9598
9620
  const checkTap = () => {
9621
+ if (fingerNum > 1) {
9622
+ return;
9623
+ }
9599
9624
  const {
9600
9625
  offsetX,
9601
9626
  offsetY
9602
9627
  } = touch;
9603
9628
  const deltaTime = Date.now() - touchStartTime;
9604
9629
  const TAP_TIME = 250;
9605
- const TAP_OFFSET = 10;
9630
+ const TAP_OFFSET = 5;
9606
9631
  if (offsetX.value < TAP_OFFSET && offsetY.value < TAP_OFFSET && deltaTime < TAP_TIME) {
9607
9632
  if (doubleTapTimer) {
9608
9633
  clearTimeout(doubleTapTimer);
@@ -9636,6 +9661,9 @@
9636
9661
  if (state.scale < 1) {
9637
9662
  resetScale();
9638
9663
  }
9664
+ if (state.scale > props.maxZoom) {
9665
+ state.scale = +props.maxZoom;
9666
+ }
9639
9667
  }
9640
9668
  }
9641
9669
  preventDefault(event, stopPropagation2);
@@ -12965,7 +12993,7 @@
12965
12993
  }
12966
12994
  return rowWidth;
12967
12995
  };
12968
- const renderRows = () => Array(props.row).fill("").map((_, i) => vue.createVNode("div", {
12996
+ const renderRows = () => Array(+props.row).fill("").map((_, i) => vue.createVNode("div", {
12969
12997
  "class": bem$a("row"),
12970
12998
  "style": {
12971
12999
  width: addUnit(getRowWidth(i))
@@ -15418,7 +15446,7 @@
15418
15446
  });
15419
15447
  }
15420
15448
  };
15421
- const version = "3.4.1";
15449
+ const version = "3.4.2";
15422
15450
  function install(app) {
15423
15451
  const components = [
15424
15452
  ActionBar,