vant 4.0.0-rc.0 → 4.0.0-rc.1

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 (688) hide show
  1. package/changelog.generated.md +33 -34
  2. package/es/action-bar/ActionBar.d.ts +1 -1
  3. package/es/action-bar/ActionBar.mjs +1 -0
  4. package/es/action-bar/index.d.ts +1 -0
  5. package/es/action-bar/index.mjs +2 -0
  6. package/es/action-bar-button/ActionBarButton.d.ts +1 -1
  7. package/es/action-bar-button/ActionBarButton.mjs +1 -0
  8. package/es/action-bar-button/index.d.ts +1 -0
  9. package/es/action-bar-button/index.mjs +2 -0
  10. package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
  11. package/es/action-bar-icon/ActionBarIcon.mjs +1 -0
  12. package/es/action-bar-icon/index.d.ts +1 -0
  13. package/es/action-bar-icon/index.mjs +2 -0
  14. package/es/action-sheet/ActionSheet.d.ts +1 -1
  15. package/es/action-sheet/ActionSheet.mjs +1 -0
  16. package/es/action-sheet/index.d.ts +1 -0
  17. package/es/action-sheet/index.mjs +2 -0
  18. package/es/address-edit/AddressEdit.d.ts +1 -1
  19. package/es/address-edit/AddressEdit.mjs +1 -0
  20. package/es/address-edit/index.d.ts +1 -0
  21. package/es/address-edit/index.mjs +2 -0
  22. package/es/address-list/AddressList.d.ts +1 -1
  23. package/es/address-list/AddressList.mjs +1 -0
  24. package/es/address-list/index.d.ts +1 -0
  25. package/es/address-list/index.mjs +2 -0
  26. package/es/area/Area.d.ts +1 -1
  27. package/es/area/Area.mjs +1 -0
  28. package/es/area/index.d.ts +1 -0
  29. package/es/area/index.mjs +2 -0
  30. package/es/badge/Badge.d.ts +1 -1
  31. package/es/badge/Badge.mjs +1 -0
  32. package/es/badge/index.d.ts +1 -0
  33. package/es/badge/index.mjs +2 -0
  34. package/es/button/Button.d.ts +1 -1
  35. package/es/button/Button.mjs +1 -0
  36. package/es/button/index.d.ts +1 -0
  37. package/es/button/index.mjs +2 -0
  38. package/es/calendar/Calendar.d.ts +1 -1
  39. package/es/calendar/Calendar.mjs +1 -0
  40. package/es/calendar/index.d.ts +1 -0
  41. package/es/calendar/index.mjs +2 -0
  42. package/es/card/Card.d.ts +1 -1
  43. package/es/card/Card.mjs +1 -0
  44. package/es/card/index.d.ts +1 -0
  45. package/es/card/index.mjs +2 -0
  46. package/es/cascader/Cascader.d.ts +1 -1
  47. package/es/cascader/Cascader.mjs +1 -0
  48. package/es/cascader/index.d.ts +1 -0
  49. package/es/cascader/index.mjs +2 -0
  50. package/es/cell/Cell.d.ts +1 -1
  51. package/es/cell/Cell.mjs +1 -0
  52. package/es/cell/index.d.ts +1 -0
  53. package/es/cell/index.mjs +2 -0
  54. package/es/cell-group/CellGroup.d.ts +1 -1
  55. package/es/cell-group/CellGroup.mjs +1 -0
  56. package/es/cell-group/index.d.ts +1 -0
  57. package/es/cell-group/index.mjs +2 -0
  58. package/es/checkbox/Checkbox.d.ts +1 -1
  59. package/es/checkbox/Checkbox.mjs +1 -0
  60. package/es/checkbox/index.d.ts +1 -0
  61. package/es/checkbox/index.mjs +2 -0
  62. package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
  63. package/es/checkbox-group/CheckboxGroup.mjs +1 -0
  64. package/es/checkbox-group/index.d.ts +1 -0
  65. package/es/checkbox-group/index.mjs +2 -0
  66. package/es/circle/Circle.d.ts +1 -1
  67. package/es/circle/Circle.mjs +1 -0
  68. package/es/circle/index.d.ts +1 -0
  69. package/es/circle/index.mjs +2 -0
  70. package/es/col/Col.d.ts +1 -1
  71. package/es/col/Col.mjs +1 -0
  72. package/es/col/index.d.ts +1 -0
  73. package/es/col/index.mjs +2 -0
  74. package/es/collapse/Collapse.d.ts +1 -1
  75. package/es/collapse/Collapse.mjs +1 -0
  76. package/es/collapse/index.d.ts +1 -0
  77. package/es/collapse/index.mjs +2 -0
  78. package/es/collapse-item/CollapseItem.d.ts +1 -1
  79. package/es/collapse-item/CollapseItem.mjs +1 -0
  80. package/es/collapse-item/index.d.ts +1 -0
  81. package/es/collapse-item/index.mjs +2 -0
  82. package/es/config-provider/ConfigProvider.d.ts +1 -1
  83. package/es/config-provider/ConfigProvider.mjs +1 -0
  84. package/es/config-provider/index.d.ts +1 -0
  85. package/es/config-provider/index.mjs +2 -0
  86. package/es/contact-card/ContactCard.d.ts +1 -1
  87. package/es/contact-card/ContactCard.mjs +1 -0
  88. package/es/contact-card/index.d.ts +1 -0
  89. package/es/contact-card/index.mjs +2 -0
  90. package/es/contact-edit/ContactEdit.d.ts +1 -1
  91. package/es/contact-edit/ContactEdit.mjs +1 -0
  92. package/es/contact-edit/index.d.ts +1 -0
  93. package/es/contact-edit/index.mjs +2 -0
  94. package/es/contact-list/ContactList.d.ts +1 -1
  95. package/es/contact-list/ContactList.mjs +1 -0
  96. package/es/contact-list/index.d.ts +1 -0
  97. package/es/contact-list/index.mjs +2 -0
  98. package/es/count-down/CountDown.d.ts +1 -1
  99. package/es/count-down/CountDown.mjs +1 -0
  100. package/es/count-down/index.d.ts +1 -0
  101. package/es/count-down/index.mjs +2 -0
  102. package/es/coupon-cell/CouponCell.d.ts +1 -1
  103. package/es/coupon-cell/CouponCell.mjs +1 -0
  104. package/es/coupon-cell/index.d.ts +1 -0
  105. package/es/coupon-cell/index.mjs +2 -0
  106. package/es/coupon-list/CouponList.d.ts +1 -1
  107. package/es/coupon-list/CouponList.mjs +1 -0
  108. package/es/coupon-list/index.d.ts +1 -0
  109. package/es/coupon-list/index.mjs +2 -0
  110. package/es/date-picker/DatePicker.d.ts +1 -1
  111. package/es/date-picker/DatePicker.mjs +1 -0
  112. package/es/date-picker/index.d.ts +1 -0
  113. package/es/date-picker/index.mjs +2 -0
  114. package/es/dialog/Dialog.d.ts +1 -1
  115. package/es/dialog/Dialog.mjs +2 -1
  116. package/es/dialog/index.css +1 -1
  117. package/es/dialog/index.d.ts +1 -0
  118. package/es/dialog/index.mjs +2 -0
  119. package/es/dialog/types.d.ts +1 -1
  120. package/es/divider/Divider.d.ts +1 -1
  121. package/es/divider/Divider.mjs +2 -1
  122. package/es/divider/index.d.ts +1 -0
  123. package/es/divider/index.mjs +3 -1
  124. package/es/dropdown-item/DropdownItem.d.ts +1 -1
  125. package/es/dropdown-item/DropdownItem.mjs +2 -1
  126. package/es/dropdown-item/index.d.ts +1 -0
  127. package/es/dropdown-item/index.mjs +3 -1
  128. package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
  129. package/es/dropdown-menu/DropdownMenu.mjs +2 -1
  130. package/es/dropdown-menu/index.d.ts +1 -0
  131. package/es/dropdown-menu/index.mjs +3 -1
  132. package/es/empty/Empty.d.ts +1 -1
  133. package/es/empty/Empty.mjs +2 -1
  134. package/es/empty/index.d.ts +1 -0
  135. package/es/empty/index.mjs +3 -1
  136. package/es/field/Field.d.ts +1 -1
  137. package/es/field/Field.mjs +1 -0
  138. package/es/field/index.d.ts +1 -0
  139. package/es/field/index.mjs +3 -1
  140. package/es/form/Form.d.ts +1 -1
  141. package/es/form/Form.mjs +2 -1
  142. package/es/form/index.d.ts +1 -0
  143. package/es/form/index.mjs +3 -1
  144. package/es/grid/Grid.d.ts +1 -1
  145. package/es/grid/Grid.mjs +2 -1
  146. package/es/grid/index.d.ts +1 -0
  147. package/es/grid/index.mjs +3 -1
  148. package/es/grid-item/GridItem.d.ts +1 -1
  149. package/es/grid-item/GridItem.mjs +2 -1
  150. package/es/grid-item/index.d.ts +1 -0
  151. package/es/grid-item/index.mjs +3 -1
  152. package/es/icon/Icon.d.ts +1 -1
  153. package/es/icon/Icon.mjs +2 -1
  154. package/es/icon/index.d.ts +1 -0
  155. package/es/icon/index.mjs +3 -1
  156. package/es/image/Image.d.ts +5 -1
  157. package/es/image/Image.mjs +5 -2
  158. package/es/image/index.css +1 -1
  159. package/es/image/index.d.ts +4 -0
  160. package/es/image/index.mjs +3 -1
  161. package/es/image-preview/ImagePreview.d.ts +1 -1
  162. package/es/image-preview/ImagePreview.mjs +2 -1
  163. package/es/image-preview/index.d.ts +1 -0
  164. package/es/image-preview/index.mjs +2 -0
  165. package/es/index-anchor/IndexAnchor.d.ts +1 -1
  166. package/es/index-anchor/IndexAnchor.mjs +2 -1
  167. package/es/index-anchor/index.d.ts +1 -0
  168. package/es/index-anchor/index.mjs +3 -1
  169. package/es/index-bar/IndexBar.d.ts +1 -1
  170. package/es/index-bar/IndexBar.mjs +2 -1
  171. package/es/index-bar/index.d.ts +1 -0
  172. package/es/index-bar/index.mjs +3 -1
  173. package/es/index.d.ts +1 -1
  174. package/es/index.mjs +1 -1
  175. package/es/list/List.d.ts +1 -1
  176. package/es/list/List.mjs +2 -1
  177. package/es/list/index.d.ts +1 -0
  178. package/es/list/index.mjs +3 -1
  179. package/es/loading/Loading.d.ts +1 -1
  180. package/es/loading/Loading.mjs +2 -1
  181. package/es/loading/index.d.ts +1 -0
  182. package/es/loading/index.mjs +3 -1
  183. package/es/nav-bar/NavBar.d.ts +1 -1
  184. package/es/nav-bar/NavBar.mjs +2 -1
  185. package/es/nav-bar/index.d.ts +1 -0
  186. package/es/nav-bar/index.mjs +3 -1
  187. package/es/notice-bar/NoticeBar.d.ts +1 -1
  188. package/es/notice-bar/NoticeBar.mjs +2 -1
  189. package/es/notice-bar/index.d.ts +1 -0
  190. package/es/notice-bar/index.mjs +3 -1
  191. package/es/notify/Notify.d.ts +1 -1
  192. package/es/notify/Notify.mjs +2 -1
  193. package/es/notify/index.d.ts +1 -0
  194. package/es/notify/index.mjs +2 -0
  195. package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
  196. package/es/number-keyboard/NumberKeyboard.mjs +2 -1
  197. package/es/number-keyboard/index.d.ts +1 -0
  198. package/es/number-keyboard/index.mjs +3 -1
  199. package/es/overlay/Overlay.d.ts +1 -1
  200. package/es/overlay/Overlay.mjs +2 -1
  201. package/es/overlay/index.d.ts +1 -0
  202. package/es/overlay/index.mjs +3 -1
  203. package/es/pagination/Pagination.d.ts +1 -1
  204. package/es/pagination/Pagination.mjs +2 -1
  205. package/es/pagination/index.d.ts +1 -0
  206. package/es/pagination/index.mjs +3 -1
  207. package/es/password-input/PasswordInput.d.ts +1 -1
  208. package/es/password-input/PasswordInput.mjs +2 -1
  209. package/es/password-input/index.d.ts +1 -0
  210. package/es/password-input/index.mjs +3 -1
  211. package/es/picker/Picker.d.ts +1 -1
  212. package/es/picker/Picker.mjs +5 -2
  213. package/es/picker/index.d.ts +1 -0
  214. package/es/picker/index.mjs +3 -1
  215. package/es/picker-group/index.d.ts +1 -0
  216. package/es/picker-group/index.mjs +3 -1
  217. package/es/popover/Popover.d.ts +1 -1
  218. package/es/popover/Popover.mjs +2 -1
  219. package/es/popover/index.d.ts +1 -0
  220. package/es/popover/index.mjs +3 -1
  221. package/es/popup/Popup.d.ts +1 -1
  222. package/es/popup/Popup.mjs +2 -1
  223. package/es/popup/index.d.ts +1 -0
  224. package/es/popup/index.mjs +3 -1
  225. package/es/progress/Progress.d.ts +1 -1
  226. package/es/progress/Progress.mjs +2 -1
  227. package/es/progress/index.d.ts +1 -0
  228. package/es/progress/index.mjs +3 -1
  229. package/es/pull-refresh/PullRefresh.d.ts +1 -1
  230. package/es/pull-refresh/PullRefresh.mjs +2 -1
  231. package/es/pull-refresh/index.d.ts +1 -0
  232. package/es/pull-refresh/index.mjs +3 -1
  233. package/es/radio/Radio.d.ts +15 -2
  234. package/es/radio/Radio.mjs +3 -1
  235. package/es/radio/index.d.ts +1 -0
  236. package/es/radio/index.mjs +3 -1
  237. package/es/radio-group/RadioGroup.d.ts +1 -1
  238. package/es/radio-group/RadioGroup.mjs +2 -1
  239. package/es/radio-group/index.d.ts +1 -0
  240. package/es/radio-group/index.mjs +3 -1
  241. package/es/rate/Rate.d.ts +1 -1
  242. package/es/rate/Rate.mjs +2 -1
  243. package/es/rate/index.d.ts +1 -0
  244. package/es/rate/index.mjs +3 -1
  245. package/es/row/Row.d.ts +1 -1
  246. package/es/row/Row.mjs +2 -1
  247. package/es/row/index.d.ts +1 -0
  248. package/es/row/index.mjs +3 -1
  249. package/es/search/Search.d.ts +1 -1
  250. package/es/search/Search.mjs +2 -1
  251. package/es/search/index.d.ts +1 -0
  252. package/es/search/index.mjs +3 -1
  253. package/es/share-sheet/ShareSheet.d.ts +1 -1
  254. package/es/share-sheet/ShareSheet.mjs +2 -1
  255. package/es/share-sheet/index.d.ts +1 -0
  256. package/es/share-sheet/index.mjs +3 -1
  257. package/es/sidebar/Sidebar.d.ts +1 -1
  258. package/es/sidebar/Sidebar.mjs +2 -1
  259. package/es/sidebar/index.d.ts +1 -0
  260. package/es/sidebar/index.mjs +3 -1
  261. package/es/sidebar-item/SidebarItem.d.ts +1 -1
  262. package/es/sidebar-item/SidebarItem.mjs +2 -1
  263. package/es/sidebar-item/index.d.ts +1 -0
  264. package/es/sidebar-item/index.mjs +3 -1
  265. package/es/skeleton/Skeleton.d.ts +1 -1
  266. package/es/skeleton/Skeleton.mjs +2 -1
  267. package/es/skeleton/index.d.ts +1 -0
  268. package/es/skeleton/index.mjs +3 -1
  269. package/es/slider/Slider.d.ts +1 -1
  270. package/es/slider/Slider.mjs +2 -1
  271. package/es/slider/index.d.ts +1 -0
  272. package/es/slider/index.mjs +3 -1
  273. package/es/space/Space.d.ts +1 -1
  274. package/es/space/Space.mjs +2 -1
  275. package/es/space/index.d.ts +1 -0
  276. package/es/space/index.mjs +3 -1
  277. package/es/stepper/Stepper.d.ts +1 -1
  278. package/es/stepper/Stepper.mjs +2 -1
  279. package/es/stepper/index.d.ts +1 -0
  280. package/es/stepper/index.mjs +3 -1
  281. package/es/steps/Steps.d.ts +1 -1
  282. package/es/steps/Steps.mjs +2 -1
  283. package/es/steps/index.d.ts +1 -0
  284. package/es/steps/index.mjs +3 -1
  285. package/es/sticky/Sticky.d.ts +1 -1
  286. package/es/sticky/Sticky.mjs +2 -1
  287. package/es/sticky/index.d.ts +1 -0
  288. package/es/sticky/index.mjs +3 -1
  289. package/es/submit-bar/SubmitBar.d.ts +1 -1
  290. package/es/submit-bar/SubmitBar.mjs +2 -1
  291. package/es/submit-bar/index.d.ts +1 -0
  292. package/es/submit-bar/index.mjs +3 -1
  293. package/es/swipe/Swipe.d.ts +1 -1
  294. package/es/swipe/Swipe.mjs +2 -1
  295. package/es/swipe/index.d.ts +1 -0
  296. package/es/swipe/index.mjs +3 -1
  297. package/es/swipe-cell/SwipeCell.d.ts +1 -1
  298. package/es/swipe-cell/SwipeCell.mjs +2 -1
  299. package/es/swipe-cell/index.d.ts +1 -0
  300. package/es/swipe-cell/index.mjs +3 -1
  301. package/es/switch/Switch.d.ts +1 -1
  302. package/es/switch/Switch.mjs +2 -1
  303. package/es/switch/index.d.ts +1 -0
  304. package/es/switch/index.mjs +3 -1
  305. package/es/tab/Tab.d.ts +1 -1
  306. package/es/tab/Tab.mjs +2 -1
  307. package/es/tab/index.d.ts +1 -0
  308. package/es/tab/index.mjs +3 -1
  309. package/es/tabbar/Tabbar.d.ts +1 -1
  310. package/es/tabbar/Tabbar.mjs +2 -1
  311. package/es/tabbar/index.d.ts +1 -0
  312. package/es/tabbar/index.mjs +3 -1
  313. package/es/tabbar-item/TabbarItem.d.ts +1 -1
  314. package/es/tabbar-item/TabbarItem.mjs +2 -1
  315. package/es/tabbar-item/index.d.ts +1 -0
  316. package/es/tabbar-item/index.mjs +3 -1
  317. package/es/tabs/Tabs.d.ts +1 -1
  318. package/es/tabs/Tabs.mjs +2 -1
  319. package/es/tabs/index.d.ts +1 -0
  320. package/es/tabs/index.mjs +3 -1
  321. package/es/tag/Tag.d.ts +1 -1
  322. package/es/tag/Tag.mjs +2 -1
  323. package/es/tag/index.d.ts +1 -0
  324. package/es/tag/index.mjs +3 -1
  325. package/es/time-picker/TimePicker.d.ts +1 -1
  326. package/es/time-picker/TimePicker.mjs +2 -1
  327. package/es/time-picker/index.d.ts +1 -0
  328. package/es/time-picker/index.mjs +3 -1
  329. package/es/toast/Toast.d.ts +1 -1
  330. package/es/toast/Toast.mjs +9 -2
  331. package/es/toast/index.d.ts +1 -0
  332. package/es/toast/index.mjs +3 -1
  333. package/es/tree-select/TreeSelect.d.ts +1 -1
  334. package/es/tree-select/TreeSelect.mjs +2 -1
  335. package/es/tree-select/index.d.ts +1 -0
  336. package/es/tree-select/index.mjs +3 -1
  337. package/es/uploader/Uploader.d.ts +1 -1
  338. package/es/uploader/Uploader.mjs +2 -1
  339. package/es/uploader/index.d.ts +1 -0
  340. package/es/uploader/index.mjs +3 -1
  341. package/es/utils/basic.mjs +2 -1
  342. package/lib/action-bar/ActionBar.d.ts +1 -1
  343. package/lib/action-bar/ActionBar.js +1 -0
  344. package/lib/action-bar/index.d.ts +1 -0
  345. package/lib/action-bar/index.js +2 -0
  346. package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
  347. package/lib/action-bar-button/ActionBarButton.js +1 -0
  348. package/lib/action-bar-button/index.d.ts +1 -0
  349. package/lib/action-bar-button/index.js +2 -0
  350. package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
  351. package/lib/action-bar-icon/ActionBarIcon.js +1 -0
  352. package/lib/action-bar-icon/index.d.ts +1 -0
  353. package/lib/action-bar-icon/index.js +2 -0
  354. package/lib/action-sheet/ActionSheet.d.ts +1 -1
  355. package/lib/action-sheet/ActionSheet.js +1 -0
  356. package/lib/action-sheet/index.d.ts +1 -0
  357. package/lib/action-sheet/index.js +2 -0
  358. package/lib/address-edit/AddressEdit.d.ts +1 -1
  359. package/lib/address-edit/AddressEdit.js +1 -0
  360. package/lib/address-edit/index.d.ts +1 -0
  361. package/lib/address-edit/index.js +2 -0
  362. package/lib/address-list/AddressList.d.ts +1 -1
  363. package/lib/address-list/AddressList.js +1 -0
  364. package/lib/address-list/index.d.ts +1 -0
  365. package/lib/address-list/index.js +2 -0
  366. package/lib/area/Area.d.ts +1 -1
  367. package/lib/area/Area.js +1 -0
  368. package/lib/area/index.d.ts +1 -0
  369. package/lib/area/index.js +2 -0
  370. package/lib/badge/Badge.d.ts +1 -1
  371. package/lib/badge/Badge.js +1 -0
  372. package/lib/badge/index.d.ts +1 -0
  373. package/lib/badge/index.js +2 -0
  374. package/lib/button/Button.d.ts +1 -1
  375. package/lib/button/Button.js +1 -0
  376. package/lib/button/index.d.ts +1 -0
  377. package/lib/button/index.js +2 -0
  378. package/lib/calendar/Calendar.d.ts +1 -1
  379. package/lib/calendar/Calendar.js +1 -0
  380. package/lib/calendar/index.d.ts +1 -0
  381. package/lib/calendar/index.js +2 -0
  382. package/lib/card/Card.d.ts +1 -1
  383. package/lib/card/Card.js +1 -0
  384. package/lib/card/index.d.ts +1 -0
  385. package/lib/card/index.js +2 -0
  386. package/lib/cascader/Cascader.d.ts +1 -1
  387. package/lib/cascader/Cascader.js +1 -0
  388. package/lib/cascader/index.d.ts +1 -0
  389. package/lib/cascader/index.js +2 -0
  390. package/lib/cell/Cell.d.ts +1 -1
  391. package/lib/cell/Cell.js +1 -0
  392. package/lib/cell/index.d.ts +1 -0
  393. package/lib/cell/index.js +2 -0
  394. package/lib/cell-group/CellGroup.d.ts +1 -1
  395. package/lib/cell-group/CellGroup.js +1 -0
  396. package/lib/cell-group/index.d.ts +1 -0
  397. package/lib/cell-group/index.js +2 -0
  398. package/lib/checkbox/Checkbox.d.ts +1 -1
  399. package/lib/checkbox/Checkbox.js +1 -0
  400. package/lib/checkbox/index.d.ts +1 -0
  401. package/lib/checkbox/index.js +2 -0
  402. package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
  403. package/lib/checkbox-group/CheckboxGroup.js +1 -0
  404. package/lib/checkbox-group/index.d.ts +1 -0
  405. package/lib/checkbox-group/index.js +2 -0
  406. package/lib/circle/Circle.d.ts +1 -1
  407. package/lib/circle/Circle.js +1 -0
  408. package/lib/circle/index.d.ts +1 -0
  409. package/lib/circle/index.js +2 -0
  410. package/lib/col/Col.d.ts +1 -1
  411. package/lib/col/Col.js +1 -0
  412. package/lib/col/index.d.ts +1 -0
  413. package/lib/col/index.js +2 -0
  414. package/lib/collapse/Collapse.d.ts +1 -1
  415. package/lib/collapse/Collapse.js +1 -0
  416. package/lib/collapse/index.d.ts +1 -0
  417. package/lib/collapse/index.js +2 -0
  418. package/lib/collapse-item/CollapseItem.d.ts +1 -1
  419. package/lib/collapse-item/CollapseItem.js +1 -0
  420. package/lib/collapse-item/index.d.ts +1 -0
  421. package/lib/collapse-item/index.js +2 -0
  422. package/lib/config-provider/ConfigProvider.d.ts +1 -1
  423. package/lib/config-provider/ConfigProvider.js +1 -0
  424. package/lib/config-provider/index.d.ts +1 -0
  425. package/lib/config-provider/index.js +2 -0
  426. package/lib/contact-card/ContactCard.d.ts +1 -1
  427. package/lib/contact-card/ContactCard.js +1 -0
  428. package/lib/contact-card/index.d.ts +1 -0
  429. package/lib/contact-card/index.js +2 -0
  430. package/lib/contact-edit/ContactEdit.d.ts +1 -1
  431. package/lib/contact-edit/ContactEdit.js +1 -0
  432. package/lib/contact-edit/index.d.ts +1 -0
  433. package/lib/contact-edit/index.js +2 -0
  434. package/lib/contact-list/ContactList.d.ts +1 -1
  435. package/lib/contact-list/ContactList.js +1 -0
  436. package/lib/contact-list/index.d.ts +1 -0
  437. package/lib/contact-list/index.js +2 -0
  438. package/lib/count-down/CountDown.d.ts +1 -1
  439. package/lib/count-down/CountDown.js +1 -0
  440. package/lib/count-down/index.d.ts +1 -0
  441. package/lib/count-down/index.js +2 -0
  442. package/lib/coupon-cell/CouponCell.d.ts +1 -1
  443. package/lib/coupon-cell/CouponCell.js +1 -0
  444. package/lib/coupon-cell/index.d.ts +1 -0
  445. package/lib/coupon-cell/index.js +2 -0
  446. package/lib/coupon-list/CouponList.d.ts +1 -1
  447. package/lib/coupon-list/CouponList.js +1 -0
  448. package/lib/coupon-list/index.d.ts +1 -0
  449. package/lib/coupon-list/index.js +2 -0
  450. package/lib/date-picker/DatePicker.d.ts +1 -1
  451. package/lib/date-picker/DatePicker.js +1 -0
  452. package/lib/date-picker/index.d.ts +1 -0
  453. package/lib/date-picker/index.js +2 -0
  454. package/lib/dialog/Dialog.d.ts +1 -1
  455. package/lib/dialog/Dialog.js +2 -1
  456. package/lib/dialog/index.css +1 -1
  457. package/lib/dialog/index.d.ts +1 -0
  458. package/lib/dialog/index.js +2 -0
  459. package/lib/dialog/types.d.ts +1 -1
  460. package/lib/divider/Divider.d.ts +1 -1
  461. package/lib/divider/Divider.js +2 -1
  462. package/lib/divider/index.d.ts +1 -0
  463. package/lib/divider/index.js +3 -1
  464. package/lib/dropdown-item/DropdownItem.d.ts +1 -1
  465. package/lib/dropdown-item/DropdownItem.js +2 -1
  466. package/lib/dropdown-item/index.d.ts +1 -0
  467. package/lib/dropdown-item/index.js +3 -1
  468. package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
  469. package/lib/dropdown-menu/DropdownMenu.js +2 -1
  470. package/lib/dropdown-menu/index.d.ts +1 -0
  471. package/lib/dropdown-menu/index.js +3 -1
  472. package/lib/empty/Empty.d.ts +1 -1
  473. package/lib/empty/Empty.js +2 -1
  474. package/lib/empty/index.d.ts +1 -0
  475. package/lib/empty/index.js +3 -1
  476. package/lib/field/Field.d.ts +1 -1
  477. package/lib/field/Field.js +1 -0
  478. package/lib/field/index.d.ts +1 -0
  479. package/lib/field/index.js +3 -1
  480. package/lib/form/Form.d.ts +1 -1
  481. package/lib/form/Form.js +2 -1
  482. package/lib/form/index.d.ts +1 -0
  483. package/lib/form/index.js +3 -1
  484. package/lib/grid/Grid.d.ts +1 -1
  485. package/lib/grid/Grid.js +2 -1
  486. package/lib/grid/index.d.ts +1 -0
  487. package/lib/grid/index.js +3 -1
  488. package/lib/grid-item/GridItem.d.ts +1 -1
  489. package/lib/grid-item/GridItem.js +2 -1
  490. package/lib/grid-item/index.d.ts +1 -0
  491. package/lib/grid-item/index.js +3 -1
  492. package/lib/icon/Icon.d.ts +1 -1
  493. package/lib/icon/Icon.js +2 -1
  494. package/lib/icon/index.d.ts +1 -0
  495. package/lib/icon/index.js +3 -1
  496. package/lib/image/Image.d.ts +5 -1
  497. package/lib/image/Image.js +5 -2
  498. package/lib/image/index.css +1 -1
  499. package/lib/image/index.d.ts +4 -0
  500. package/lib/image/index.js +3 -1
  501. package/lib/image-preview/ImagePreview.d.ts +1 -1
  502. package/lib/image-preview/ImagePreview.js +2 -1
  503. package/lib/image-preview/index.d.ts +1 -0
  504. package/lib/image-preview/index.js +2 -0
  505. package/lib/index-anchor/IndexAnchor.d.ts +1 -1
  506. package/lib/index-anchor/IndexAnchor.js +2 -1
  507. package/lib/index-anchor/index.d.ts +1 -0
  508. package/lib/index-anchor/index.js +3 -1
  509. package/lib/index-bar/IndexBar.d.ts +1 -1
  510. package/lib/index-bar/IndexBar.js +2 -1
  511. package/lib/index-bar/index.d.ts +1 -0
  512. package/lib/index-bar/index.js +3 -1
  513. package/lib/index.css +1 -1
  514. package/lib/index.d.ts +1 -1
  515. package/lib/index.js +1 -1
  516. package/lib/list/List.d.ts +1 -1
  517. package/lib/list/List.js +2 -1
  518. package/lib/list/index.d.ts +1 -0
  519. package/lib/list/index.js +3 -1
  520. package/lib/loading/Loading.d.ts +1 -1
  521. package/lib/loading/Loading.js +2 -1
  522. package/lib/loading/index.d.ts +1 -0
  523. package/lib/loading/index.js +3 -1
  524. package/lib/nav-bar/NavBar.d.ts +1 -1
  525. package/lib/nav-bar/NavBar.js +2 -1
  526. package/lib/nav-bar/index.d.ts +1 -0
  527. package/lib/nav-bar/index.js +3 -1
  528. package/lib/notice-bar/NoticeBar.d.ts +1 -1
  529. package/lib/notice-bar/NoticeBar.js +2 -1
  530. package/lib/notice-bar/index.d.ts +1 -0
  531. package/lib/notice-bar/index.js +3 -1
  532. package/lib/notify/Notify.d.ts +1 -1
  533. package/lib/notify/Notify.js +2 -1
  534. package/lib/notify/index.d.ts +1 -0
  535. package/lib/notify/index.js +2 -0
  536. package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
  537. package/lib/number-keyboard/NumberKeyboard.js +2 -1
  538. package/lib/number-keyboard/index.d.ts +1 -0
  539. package/lib/number-keyboard/index.js +3 -1
  540. package/lib/overlay/Overlay.d.ts +1 -1
  541. package/lib/overlay/Overlay.js +2 -1
  542. package/lib/overlay/index.d.ts +1 -0
  543. package/lib/overlay/index.js +3 -1
  544. package/lib/pagination/Pagination.d.ts +1 -1
  545. package/lib/pagination/Pagination.js +2 -1
  546. package/lib/pagination/index.d.ts +1 -0
  547. package/lib/pagination/index.js +3 -1
  548. package/lib/password-input/PasswordInput.d.ts +1 -1
  549. package/lib/password-input/PasswordInput.js +2 -1
  550. package/lib/password-input/index.d.ts +1 -0
  551. package/lib/password-input/index.js +3 -1
  552. package/lib/picker/Picker.d.ts +1 -1
  553. package/lib/picker/Picker.js +5 -2
  554. package/lib/picker/index.d.ts +1 -0
  555. package/lib/picker/index.js +3 -1
  556. package/lib/picker-group/index.d.ts +1 -0
  557. package/lib/picker-group/index.js +3 -1
  558. package/lib/popover/Popover.d.ts +1 -1
  559. package/lib/popover/Popover.js +2 -1
  560. package/lib/popover/index.d.ts +1 -0
  561. package/lib/popover/index.js +3 -1
  562. package/lib/popup/Popup.d.ts +1 -1
  563. package/lib/popup/Popup.js +2 -1
  564. package/lib/popup/index.d.ts +1 -0
  565. package/lib/popup/index.js +3 -1
  566. package/lib/progress/Progress.d.ts +1 -1
  567. package/lib/progress/Progress.js +2 -1
  568. package/lib/progress/index.d.ts +1 -0
  569. package/lib/progress/index.js +3 -1
  570. package/lib/pull-refresh/PullRefresh.d.ts +1 -1
  571. package/lib/pull-refresh/PullRefresh.js +2 -1
  572. package/lib/pull-refresh/index.d.ts +1 -0
  573. package/lib/pull-refresh/index.js +3 -1
  574. package/lib/radio/Radio.d.ts +15 -2
  575. package/lib/radio/Radio.js +3 -1
  576. package/lib/radio/index.d.ts +1 -0
  577. package/lib/radio/index.js +3 -1
  578. package/lib/radio-group/RadioGroup.d.ts +1 -1
  579. package/lib/radio-group/RadioGroup.js +2 -1
  580. package/lib/radio-group/index.d.ts +1 -0
  581. package/lib/radio-group/index.js +3 -1
  582. package/lib/rate/Rate.d.ts +1 -1
  583. package/lib/rate/Rate.js +2 -1
  584. package/lib/rate/index.d.ts +1 -0
  585. package/lib/rate/index.js +3 -1
  586. package/lib/row/Row.d.ts +1 -1
  587. package/lib/row/Row.js +2 -1
  588. package/lib/row/index.d.ts +1 -0
  589. package/lib/row/index.js +3 -1
  590. package/lib/search/Search.d.ts +1 -1
  591. package/lib/search/Search.js +2 -1
  592. package/lib/search/index.d.ts +1 -0
  593. package/lib/search/index.js +3 -1
  594. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  595. package/lib/share-sheet/ShareSheet.js +2 -1
  596. package/lib/share-sheet/index.d.ts +1 -0
  597. package/lib/share-sheet/index.js +3 -1
  598. package/lib/sidebar/Sidebar.d.ts +1 -1
  599. package/lib/sidebar/Sidebar.js +2 -1
  600. package/lib/sidebar/index.d.ts +1 -0
  601. package/lib/sidebar/index.js +3 -1
  602. package/lib/sidebar-item/SidebarItem.d.ts +1 -1
  603. package/lib/sidebar-item/SidebarItem.js +2 -1
  604. package/lib/sidebar-item/index.d.ts +1 -0
  605. package/lib/sidebar-item/index.js +3 -1
  606. package/lib/skeleton/Skeleton.d.ts +1 -1
  607. package/lib/skeleton/Skeleton.js +2 -1
  608. package/lib/skeleton/index.d.ts +1 -0
  609. package/lib/skeleton/index.js +3 -1
  610. package/lib/slider/Slider.d.ts +1 -1
  611. package/lib/slider/Slider.js +2 -1
  612. package/lib/slider/index.d.ts +1 -0
  613. package/lib/slider/index.js +3 -1
  614. package/lib/space/Space.d.ts +1 -1
  615. package/lib/space/Space.js +2 -1
  616. package/lib/space/index.d.ts +1 -0
  617. package/lib/space/index.js +3 -1
  618. package/lib/stepper/Stepper.d.ts +1 -1
  619. package/lib/stepper/Stepper.js +2 -1
  620. package/lib/stepper/index.d.ts +1 -0
  621. package/lib/stepper/index.js +3 -1
  622. package/lib/steps/Steps.d.ts +1 -1
  623. package/lib/steps/Steps.js +2 -1
  624. package/lib/steps/index.d.ts +1 -0
  625. package/lib/steps/index.js +3 -1
  626. package/lib/sticky/Sticky.d.ts +1 -1
  627. package/lib/sticky/Sticky.js +2 -1
  628. package/lib/sticky/index.d.ts +1 -0
  629. package/lib/sticky/index.js +3 -1
  630. package/lib/submit-bar/SubmitBar.d.ts +1 -1
  631. package/lib/submit-bar/SubmitBar.js +2 -1
  632. package/lib/submit-bar/index.d.ts +1 -0
  633. package/lib/submit-bar/index.js +3 -1
  634. package/lib/swipe/Swipe.d.ts +1 -1
  635. package/lib/swipe/Swipe.js +2 -1
  636. package/lib/swipe/index.d.ts +1 -0
  637. package/lib/swipe/index.js +3 -1
  638. package/lib/swipe-cell/SwipeCell.d.ts +1 -1
  639. package/lib/swipe-cell/SwipeCell.js +2 -1
  640. package/lib/swipe-cell/index.d.ts +1 -0
  641. package/lib/swipe-cell/index.js +3 -1
  642. package/lib/switch/Switch.d.ts +1 -1
  643. package/lib/switch/Switch.js +2 -1
  644. package/lib/switch/index.d.ts +1 -0
  645. package/lib/switch/index.js +3 -1
  646. package/lib/tab/Tab.d.ts +1 -1
  647. package/lib/tab/Tab.js +2 -1
  648. package/lib/tab/index.d.ts +1 -0
  649. package/lib/tab/index.js +3 -1
  650. package/lib/tabbar/Tabbar.d.ts +1 -1
  651. package/lib/tabbar/Tabbar.js +2 -1
  652. package/lib/tabbar/index.d.ts +1 -0
  653. package/lib/tabbar/index.js +3 -1
  654. package/lib/tabbar-item/TabbarItem.d.ts +1 -1
  655. package/lib/tabbar-item/TabbarItem.js +2 -1
  656. package/lib/tabbar-item/index.d.ts +1 -0
  657. package/lib/tabbar-item/index.js +3 -1
  658. package/lib/tabs/Tabs.d.ts +1 -1
  659. package/lib/tabs/Tabs.js +2 -1
  660. package/lib/tabs/index.d.ts +1 -0
  661. package/lib/tabs/index.js +3 -1
  662. package/lib/tag/Tag.d.ts +1 -1
  663. package/lib/tag/Tag.js +2 -1
  664. package/lib/tag/index.d.ts +1 -0
  665. package/lib/tag/index.js +3 -1
  666. package/lib/time-picker/TimePicker.d.ts +1 -1
  667. package/lib/time-picker/TimePicker.js +2 -1
  668. package/lib/time-picker/index.d.ts +1 -0
  669. package/lib/time-picker/index.js +3 -1
  670. package/lib/toast/Toast.d.ts +1 -1
  671. package/lib/toast/Toast.js +9 -2
  672. package/lib/toast/index.d.ts +1 -0
  673. package/lib/toast/index.js +3 -1
  674. package/lib/tree-select/TreeSelect.d.ts +1 -1
  675. package/lib/tree-select/TreeSelect.js +2 -1
  676. package/lib/tree-select/index.d.ts +1 -0
  677. package/lib/tree-select/index.js +3 -1
  678. package/lib/uploader/Uploader.d.ts +1 -1
  679. package/lib/uploader/Uploader.js +2 -1
  680. package/lib/uploader/index.d.ts +1 -0
  681. package/lib/uploader/index.js +3 -1
  682. package/lib/utils/basic.js +2 -1
  683. package/lib/vant.cjs.js +112 -17
  684. package/lib/vant.es.js +112 -17
  685. package/lib/vant.js +112 -17
  686. package/lib/vant.min.js +1 -1
  687. package/lib/web-types.json +1027 -1006
  688. package/package.json +3 -3
@@ -24,10 +24,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
24
24
  var stdin_exports = {};
25
25
  __export(stdin_exports, {
26
26
  TreeSelect: () => TreeSelect,
27
- default: () => stdin_default
27
+ default: () => stdin_default,
28
+ treeSelectProps: () => import_TreeSelect2.treeSelectProps
28
29
  });
29
30
  module.exports = __toCommonJS(stdin_exports);
30
31
  var import_utils = require("../utils");
31
32
  var import_TreeSelect = __toESM(require("./TreeSelect"));
33
+ var import_TreeSelect2 = require("./TreeSelect");
32
34
  const TreeSelect = (0, import_utils.withInstall)(import_TreeSelect.default);
33
35
  var stdin_default = TreeSelect;
@@ -3,7 +3,7 @@ import { Interceptor, type Numeric } from '../utils';
3
3
  import { type ImagePreviewOptions } from '../image-preview';
4
4
  import type { ImageFit } from '../image';
5
5
  import type { UploaderMaxSize, UploaderAfterRead, UploaderBeforeRead, UploaderResultType, UploaderFileListItem } from './types';
6
- declare const uploaderProps: {
6
+ export declare const uploaderProps: {
7
7
  name: {
8
8
  type: (NumberConstructor | StringConstructor)[];
9
9
  default: string;
@@ -23,7 +23,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
24
  var stdin_exports = {};
25
25
  __export(stdin_exports, {
26
- default: () => stdin_default
26
+ default: () => stdin_default,
27
+ uploaderProps: () => uploaderProps
27
28
  });
28
29
  module.exports = __toCommonJS(stdin_exports);
29
30
  var import_vue = require("vue");
@@ -145,6 +145,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
145
145
  maxSize: import("./types").UploaderMaxSize;
146
146
  }>>;
147
147
  export default Uploader;
148
+ export { uploaderProps } from './Uploader';
148
149
  export type { UploaderProps };
149
150
  export type { UploaderInstance, UploaderResultType, UploaderFileListItem, } from './types';
150
151
  declare module 'vue' {
@@ -24,10 +24,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
24
24
  var stdin_exports = {};
25
25
  __export(stdin_exports, {
26
26
  Uploader: () => Uploader,
27
- default: () => stdin_default
27
+ default: () => stdin_default,
28
+ uploaderProps: () => import_Uploader2.uploaderProps
28
29
  });
29
30
  module.exports = __toCommonJS(stdin_exports);
30
31
  var import_utils = require("../utils");
31
32
  var import_Uploader = __toESM(require("./Uploader"));
33
+ var import_Uploader2 = require("./Uploader");
32
34
  const Uploader = (0, import_utils.withInstall)(import_Uploader.default);
33
35
  var stdin_default = Uploader;
@@ -26,6 +26,7 @@ __export(stdin_exports, {
26
26
  toArray: () => toArray
27
27
  });
28
28
  module.exports = __toCommonJS(stdin_exports);
29
+ var import_validate = require("./validate");
29
30
  function noop() {
30
31
  }
31
32
  const extend = Object.assign;
@@ -35,7 +36,7 @@ function get(object, path) {
35
36
  let result = object;
36
37
  keys.forEach((key) => {
37
38
  var _a;
38
- result = (_a = result[key]) != null ? _a : "";
39
+ result = (0, import_validate.isObject)(result) ? (_a = result[key]) != null ? _a : "" : "";
39
40
  });
40
41
  return result;
41
42
  }
package/lib/vant.cjs.js CHANGED
@@ -3,6 +3,17 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const use = require("@vant/use");
4
4
  const vue = require("vue");
5
5
  const popperjs = require("@vant/popperjs");
6
+ const isDef = (val) => val !== void 0 && val !== null;
7
+ const isFunction = (val) => typeof val === "function";
8
+ const isObject = (val) => val !== null && typeof val === "object";
9
+ const isPromise = (val) => isObject(val) && isFunction(val.then) && isFunction(val.catch);
10
+ const isDate = (val) => Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
11
+ function isMobile(value) {
12
+ value = value.replace(/[^-|\d]/g, "");
13
+ return /^((\+86)|(86))?(1)\d{10}$/.test(value) || /^0[0-9-]{10,13}$/.test(value);
14
+ }
15
+ const isNumeric = (val) => typeof val === "number" || /^\d+(\.\d+)?$/.test(val);
16
+ const isIOS$1 = () => inBrowser ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
6
17
  function noop() {
7
18
  }
8
19
  const extend = Object.assign;
@@ -12,7 +23,7 @@ function get(object, path) {
12
23
  let result = object;
13
24
  keys.forEach((key) => {
14
25
  var _a;
15
- result = (_a = result[key]) != null ? _a : "";
26
+ result = isObject(result) ? (_a = result[key]) != null ? _a : "" : "";
16
27
  });
17
28
  return result;
18
29
  }
@@ -52,17 +63,6 @@ const makeStringProp = (defaultVal) => ({
52
63
  type: String,
53
64
  default: defaultVal
54
65
  });
55
- const isDef = (val) => val !== void 0 && val !== null;
56
- const isFunction = (val) => typeof val === "function";
57
- const isObject = (val) => val !== null && typeof val === "object";
58
- const isPromise = (val) => isObject(val) && isFunction(val.then) && isFunction(val.catch);
59
- const isDate = (val) => Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
60
- function isMobile(value) {
61
- value = value.replace(/[^-|\d]/g, "");
62
- return /^((\+86)|(86))?(1)\d{10}$/.test(value) || /^0[0-9-]{10,13}$/.test(value);
63
- }
64
- const isNumeric = (val) => typeof val === "number" || /^\d+(\.\d+)?$/.test(val);
65
- const isIOS$1 = () => inBrowser ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
66
66
  function getScrollTop(el) {
67
67
  const top = "scrollTop" in el ? el.scrollTop : el.pageYOffset;
68
68
  return Math.max(top, 0);
@@ -3227,8 +3227,9 @@ var stdin_default$1i = vue.defineComponent({
3227
3227
  }, {
3228
3228
  immediate: true
3229
3229
  });
3230
+ let lastEmittedModelValue;
3230
3231
  vue.watch(() => props.modelValue, (newValues) => {
3231
- if (!isSameValue(newValues, selectedValues.value)) {
3232
+ if (!isSameValue(newValues, selectedValues.value) && !isSameValue(newValues, lastEmittedModelValue)) {
3232
3233
  selectedValues.value = newValues.slice(0);
3233
3234
  }
3234
3235
  }, {
@@ -3236,7 +3237,8 @@ var stdin_default$1i = vue.defineComponent({
3236
3237
  });
3237
3238
  vue.watch(selectedValues, (newValues) => {
3238
3239
  if (!isSameValue(newValues, props.modelValue)) {
3239
- emit("update:modelValue", newValues.slice(0));
3240
+ lastEmittedModelValue = newValues.slice(0);
3241
+ emit("update:modelValue", lastEmittedModelValue);
3240
3242
  }
3241
3243
  }, {
3242
3244
  immediate: true
@@ -4247,7 +4249,8 @@ var stdin_default$1d = vue.defineComponent({
4247
4249
  props: toastProps,
4248
4250
  emits: ["update:show"],
4249
4251
  setup(props, {
4250
- emit
4252
+ emit,
4253
+ slots
4251
4254
  }) {
4252
4255
  let timer2;
4253
4256
  let clickable = false;
@@ -4295,6 +4298,11 @@ var stdin_default$1d = vue.defineComponent({
4295
4298
  type,
4296
4299
  message
4297
4300
  } = props;
4301
+ if (slots.message) {
4302
+ return vue.createVNode("div", {
4303
+ "class": bem$12("text")
4304
+ }, [slots.message()]);
4305
+ }
4298
4306
  if (isDef(message) && message !== "") {
4299
4307
  return type === "html" ? vue.createVNode("div", {
4300
4308
  "key": 0,
@@ -5115,6 +5123,7 @@ var stdin_default$17 = vue.defineComponent({
5115
5123
  };
5116
5124
  }
5117
5125
  });
5126
+ const radioProps = checkerProps;
5118
5127
  const [name$10, bem$Y] = createNamespace("radio");
5119
5128
  var stdin_default$16 = vue.defineComponent({
5120
5129
  name: name$10,
@@ -6147,6 +6156,7 @@ const imageProps = {
6147
6156
  fit: String,
6148
6157
  position: String,
6149
6158
  round: Boolean,
6159
+ block: Boolean,
6150
6160
  width: numericProp,
6151
6161
  height: numericProp,
6152
6162
  radius: numericProp,
@@ -6275,7 +6285,8 @@ var stdin_default$$ = vue.defineComponent({
6275
6285
  var _a;
6276
6286
  return vue.createVNode("div", {
6277
6287
  "class": bem$U({
6278
- round: props.round
6288
+ round: props.round,
6289
+ block: props.block
6279
6290
  }),
6280
6291
  "style": style.value
6281
6292
  }, [renderImage(), renderPlaceholder(), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
@@ -14529,7 +14540,7 @@ const Lazyload = {
14529
14540
  });
14530
14541
  }
14531
14542
  };
14532
- const version = "4.0.0-rc.0";
14543
+ const version = "4.0.0-rc.1";
14533
14544
  function install(app) {
14534
14545
  const components = [
14535
14546
  ActionBar,
@@ -14722,18 +14733,81 @@ exports.TimePicker = TimePicker;
14722
14733
  exports.Toast = Toast;
14723
14734
  exports.TreeSelect = TreeSelect;
14724
14735
  exports.Uploader = Uploader;
14736
+ exports.actionBarButtonProps = actionBarButtonProps;
14737
+ exports.actionBarIconProps = actionBarIconProps;
14738
+ exports.actionBarProps = actionBarProps;
14739
+ exports.actionSheetProps = actionSheetProps;
14740
+ exports.addressEditProps = addressEditProps;
14741
+ exports.addressListProps = addressListProps;
14725
14742
  exports.allowMultipleToast = allowMultipleToast;
14743
+ exports.areaProps = areaProps;
14744
+ exports.badgeProps = badgeProps;
14745
+ exports.buttonProps = buttonProps;
14746
+ exports.calendarProps = calendarProps;
14747
+ exports.cardProps = cardProps;
14748
+ exports.cascaderProps = cascaderProps;
14749
+ exports.cellGroupProps = cellGroupProps;
14750
+ exports.cellProps = cellProps;
14751
+ exports.checkboxGroupProps = checkboxGroupProps;
14752
+ exports.checkboxProps = checkboxProps;
14753
+ exports.circleProps = circleProps;
14726
14754
  exports.closeDialog = closeDialog;
14727
14755
  exports.closeNotify = closeNotify;
14728
14756
  exports.closeToast = closeToast;
14757
+ exports.colProps = colProps;
14758
+ exports.collapseItemProps = collapseItemProps;
14759
+ exports.collapseProps = collapseProps;
14760
+ exports.configProviderProps = configProviderProps;
14761
+ exports.contactCardProps = contactCardProps;
14762
+ exports.contactEditProps = contactEditProps;
14763
+ exports.contactListProps = contactListProps;
14764
+ exports.countDownProps = countDownProps;
14765
+ exports.couponCellProps = couponCellProps;
14766
+ exports.couponListProps = couponListProps;
14767
+ exports.datePickerProps = datePickerProps;
14729
14768
  exports.default = stdin_default;
14769
+ exports.dialogProps = dialogProps;
14770
+ exports.dividerProps = dividerProps;
14771
+ exports.dropdownItemProps = dropdownItemProps;
14772
+ exports.dropdownMenuProps = dropdownMenuProps;
14773
+ exports.emptyProps = emptyProps;
14774
+ exports.fieldProps = fieldProps;
14775
+ exports.formProps = formProps;
14776
+ exports.gridItemProps = gridItemProps;
14777
+ exports.gridProps = gridProps;
14778
+ exports.iconProps = iconProps;
14779
+ exports.imagePreviewProps = imagePreviewProps;
14780
+ exports.imageProps = imageProps;
14781
+ exports.indexAnchorProps = indexAnchorProps;
14782
+ exports.indexBarProps = indexBarProps;
14730
14783
  exports.install = install;
14784
+ exports.listProps = listProps;
14785
+ exports.loadingProps = loadingProps;
14786
+ exports.navBarProps = navBarProps;
14787
+ exports.noticeBarProps = noticeBarProps;
14788
+ exports.notifyProps = notifyProps;
14789
+ exports.numberKeyboardProps = numberKeyboardProps;
14790
+ exports.overlayProps = overlayProps;
14791
+ exports.paginationProps = paginationProps;
14792
+ exports.passwordInputProps = passwordInputProps;
14793
+ exports.pickerGroupProps = pickerGroupProps;
14794
+ exports.pickerProps = pickerProps;
14795
+ exports.popoverProps = popoverProps;
14796
+ exports.popupProps = popupProps$2;
14797
+ exports.progressProps = progressProps;
14798
+ exports.pullRefreshProps = pullRefreshProps;
14799
+ exports.radioGroupProps = radioGroupProps;
14800
+ exports.radioProps = radioProps;
14801
+ exports.rateProps = rateProps;
14731
14802
  exports.resetDialogDefaultOptions = resetDialogDefaultOptions;
14732
14803
  exports.resetNotifyDefaultOptions = resetNotifyDefaultOptions;
14733
14804
  exports.resetToastDefaultOptions = resetToastDefaultOptions;
14805
+ exports.rowProps = rowProps;
14806
+ exports.searchProps = searchProps;
14734
14807
  exports.setDialogDefaultOptions = setDialogDefaultOptions;
14735
14808
  exports.setNotifyDefaultOptions = setNotifyDefaultOptions;
14736
14809
  exports.setToastDefaultOptions = setToastDefaultOptions;
14810
+ exports.shareSheetProps = shareSheetProps;
14737
14811
  exports.showConfirmDialog = showConfirmDialog;
14738
14812
  exports.showDialog = showDialog;
14739
14813
  exports.showFailToast = showFailToast;
@@ -14742,4 +14816,25 @@ exports.showLoadingToast = showLoadingToast;
14742
14816
  exports.showNotify = showNotify;
14743
14817
  exports.showSuccessToast = showSuccessToast;
14744
14818
  exports.showToast = showToast;
14819
+ exports.sidebarItemProps = sidebarItemProps;
14820
+ exports.sidebarProps = sidebarProps;
14821
+ exports.skeletonProps = skeletonProps;
14822
+ exports.sliderProps = sliderProps;
14823
+ exports.spaceProps = spaceProps;
14824
+ exports.stepperProps = stepperProps;
14825
+ exports.stepsProps = stepsProps;
14826
+ exports.stickyProps = stickyProps;
14827
+ exports.submitBarProps = submitBarProps;
14828
+ exports.swipeCellProps = swipeCellProps;
14829
+ exports.swipeProps = swipeProps;
14830
+ exports.switchProps = switchProps;
14831
+ exports.tabProps = tabProps;
14832
+ exports.tabbarItemProps = tabbarItemProps;
14833
+ exports.tabbarProps = tabbarProps;
14834
+ exports.tabsProps = tabsProps;
14835
+ exports.tagProps = tagProps;
14836
+ exports.timePickerProps = timePickerProps;
14837
+ exports.toastProps = toastProps;
14838
+ exports.treeSelectProps = treeSelectProps;
14839
+ exports.uploaderProps = uploaderProps;
14745
14840
  exports.version = version;
package/lib/vant.es.js CHANGED
@@ -1,6 +1,17 @@
1
1
  import { useWindowSize, useRect, useChildren, useParent, onMountedOrActivated, getScrollParent, useEventListener, raf, useScrollParent, usePageVisibility, doubleRaf, CUSTOM_FIELD_INJECTION_KEY, useCustomFieldValue, useToggle, cancelRaf, useCountDown, useClickAway, inBrowser as inBrowser$1 } from "@vant/use";
2
2
  import { unref, ref, reactive, inject, watch, onMounted, nextTick, createVNode, defineComponent, getCurrentInstance, computed, onActivated, onDeactivated, onBeforeUnmount, provide, watchEffect, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, onBeforeUpdate, createTextVNode, onUnmounted, createApp, resolveDirective, withKeys, onUpdated, h } from "vue";
3
3
  import { offsetModifier, createPopper } from "@vant/popperjs";
4
+ const isDef = (val) => val !== void 0 && val !== null;
5
+ const isFunction = (val) => typeof val === "function";
6
+ const isObject = (val) => val !== null && typeof val === "object";
7
+ const isPromise = (val) => isObject(val) && isFunction(val.then) && isFunction(val.catch);
8
+ const isDate = (val) => Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
9
+ function isMobile(value) {
10
+ value = value.replace(/[^-|\d]/g, "");
11
+ return /^((\+86)|(86))?(1)\d{10}$/.test(value) || /^0[0-9-]{10,13}$/.test(value);
12
+ }
13
+ const isNumeric = (val) => typeof val === "number" || /^\d+(\.\d+)?$/.test(val);
14
+ const isIOS$1 = () => inBrowser ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
4
15
  function noop() {
5
16
  }
6
17
  const extend = Object.assign;
@@ -10,7 +21,7 @@ function get(object, path) {
10
21
  let result = object;
11
22
  keys.forEach((key) => {
12
23
  var _a;
13
- result = (_a = result[key]) != null ? _a : "";
24
+ result = isObject(result) ? (_a = result[key]) != null ? _a : "" : "";
14
25
  });
15
26
  return result;
16
27
  }
@@ -50,17 +61,6 @@ const makeStringProp = (defaultVal) => ({
50
61
  type: String,
51
62
  default: defaultVal
52
63
  });
53
- const isDef = (val) => val !== void 0 && val !== null;
54
- const isFunction = (val) => typeof val === "function";
55
- const isObject = (val) => val !== null && typeof val === "object";
56
- const isPromise = (val) => isObject(val) && isFunction(val.then) && isFunction(val.catch);
57
- const isDate = (val) => Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
58
- function isMobile(value) {
59
- value = value.replace(/[^-|\d]/g, "");
60
- return /^((\+86)|(86))?(1)\d{10}$/.test(value) || /^0[0-9-]{10,13}$/.test(value);
61
- }
62
- const isNumeric = (val) => typeof val === "number" || /^\d+(\.\d+)?$/.test(val);
63
- const isIOS$1 = () => inBrowser ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
64
64
  function getScrollTop(el) {
65
65
  const top = "scrollTop" in el ? el.scrollTop : el.pageYOffset;
66
66
  return Math.max(top, 0);
@@ -3225,8 +3225,9 @@ var stdin_default$1i = defineComponent({
3225
3225
  }, {
3226
3226
  immediate: true
3227
3227
  });
3228
+ let lastEmittedModelValue;
3228
3229
  watch(() => props.modelValue, (newValues) => {
3229
- if (!isSameValue(newValues, selectedValues.value)) {
3230
+ if (!isSameValue(newValues, selectedValues.value) && !isSameValue(newValues, lastEmittedModelValue)) {
3230
3231
  selectedValues.value = newValues.slice(0);
3231
3232
  }
3232
3233
  }, {
@@ -3234,7 +3235,8 @@ var stdin_default$1i = defineComponent({
3234
3235
  });
3235
3236
  watch(selectedValues, (newValues) => {
3236
3237
  if (!isSameValue(newValues, props.modelValue)) {
3237
- emit("update:modelValue", newValues.slice(0));
3238
+ lastEmittedModelValue = newValues.slice(0);
3239
+ emit("update:modelValue", lastEmittedModelValue);
3238
3240
  }
3239
3241
  }, {
3240
3242
  immediate: true
@@ -4245,7 +4247,8 @@ var stdin_default$1d = defineComponent({
4245
4247
  props: toastProps,
4246
4248
  emits: ["update:show"],
4247
4249
  setup(props, {
4248
- emit
4250
+ emit,
4251
+ slots
4249
4252
  }) {
4250
4253
  let timer2;
4251
4254
  let clickable = false;
@@ -4293,6 +4296,11 @@ var stdin_default$1d = defineComponent({
4293
4296
  type,
4294
4297
  message
4295
4298
  } = props;
4299
+ if (slots.message) {
4300
+ return createVNode("div", {
4301
+ "class": bem$12("text")
4302
+ }, [slots.message()]);
4303
+ }
4296
4304
  if (isDef(message) && message !== "") {
4297
4305
  return type === "html" ? createVNode("div", {
4298
4306
  "key": 0,
@@ -5113,6 +5121,7 @@ var stdin_default$17 = defineComponent({
5113
5121
  };
5114
5122
  }
5115
5123
  });
5124
+ const radioProps = checkerProps;
5116
5125
  const [name$10, bem$Y] = createNamespace("radio");
5117
5126
  var stdin_default$16 = defineComponent({
5118
5127
  name: name$10,
@@ -6145,6 +6154,7 @@ const imageProps = {
6145
6154
  fit: String,
6146
6155
  position: String,
6147
6156
  round: Boolean,
6157
+ block: Boolean,
6148
6158
  width: numericProp,
6149
6159
  height: numericProp,
6150
6160
  radius: numericProp,
@@ -6273,7 +6283,8 @@ var stdin_default$$ = defineComponent({
6273
6283
  var _a;
6274
6284
  return createVNode("div", {
6275
6285
  "class": bem$U({
6276
- round: props.round
6286
+ round: props.round,
6287
+ block: props.block
6277
6288
  }),
6278
6289
  "style": style.value
6279
6290
  }, [renderImage(), renderPlaceholder(), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
@@ -14527,7 +14538,7 @@ const Lazyload = {
14527
14538
  });
14528
14539
  }
14529
14540
  };
14530
- const version = "4.0.0-rc.0";
14541
+ const version = "4.0.0-rc.1";
14531
14542
  function install(app) {
14532
14543
  const components = [
14533
14544
  ActionBar,
@@ -14721,18 +14732,81 @@ export {
14721
14732
  Toast,
14722
14733
  TreeSelect,
14723
14734
  Uploader,
14735
+ actionBarButtonProps,
14736
+ actionBarIconProps,
14737
+ actionBarProps,
14738
+ actionSheetProps,
14739
+ addressEditProps,
14740
+ addressListProps,
14724
14741
  allowMultipleToast,
14742
+ areaProps,
14743
+ badgeProps,
14744
+ buttonProps,
14745
+ calendarProps,
14746
+ cardProps,
14747
+ cascaderProps,
14748
+ cellGroupProps,
14749
+ cellProps,
14750
+ checkboxGroupProps,
14751
+ checkboxProps,
14752
+ circleProps,
14725
14753
  closeDialog,
14726
14754
  closeNotify,
14727
14755
  closeToast,
14756
+ colProps,
14757
+ collapseItemProps,
14758
+ collapseProps,
14759
+ configProviderProps,
14760
+ contactCardProps,
14761
+ contactEditProps,
14762
+ contactListProps,
14763
+ countDownProps,
14764
+ couponCellProps,
14765
+ couponListProps,
14766
+ datePickerProps,
14728
14767
  stdin_default as default,
14768
+ dialogProps,
14769
+ dividerProps,
14770
+ dropdownItemProps,
14771
+ dropdownMenuProps,
14772
+ emptyProps,
14773
+ fieldProps,
14774
+ formProps,
14775
+ gridItemProps,
14776
+ gridProps,
14777
+ iconProps,
14778
+ imagePreviewProps,
14779
+ imageProps,
14780
+ indexAnchorProps,
14781
+ indexBarProps,
14729
14782
  install,
14783
+ listProps,
14784
+ loadingProps,
14785
+ navBarProps,
14786
+ noticeBarProps,
14787
+ notifyProps,
14788
+ numberKeyboardProps,
14789
+ overlayProps,
14790
+ paginationProps,
14791
+ passwordInputProps,
14792
+ pickerGroupProps,
14793
+ pickerProps,
14794
+ popoverProps,
14795
+ popupProps$2 as popupProps,
14796
+ progressProps,
14797
+ pullRefreshProps,
14798
+ radioGroupProps,
14799
+ radioProps,
14800
+ rateProps,
14730
14801
  resetDialogDefaultOptions,
14731
14802
  resetNotifyDefaultOptions,
14732
14803
  resetToastDefaultOptions,
14804
+ rowProps,
14805
+ searchProps,
14733
14806
  setDialogDefaultOptions,
14734
14807
  setNotifyDefaultOptions,
14735
14808
  setToastDefaultOptions,
14809
+ shareSheetProps,
14736
14810
  showConfirmDialog,
14737
14811
  showDialog,
14738
14812
  showFailToast,
@@ -14741,5 +14815,26 @@ export {
14741
14815
  showNotify,
14742
14816
  showSuccessToast,
14743
14817
  showToast,
14818
+ sidebarItemProps,
14819
+ sidebarProps,
14820
+ skeletonProps,
14821
+ sliderProps,
14822
+ spaceProps,
14823
+ stepperProps,
14824
+ stepsProps,
14825
+ stickyProps,
14826
+ submitBarProps,
14827
+ swipeCellProps,
14828
+ swipeProps,
14829
+ switchProps,
14830
+ tabProps,
14831
+ tabbarItemProps,
14832
+ tabbarProps,
14833
+ tabsProps,
14834
+ tagProps,
14835
+ timePickerProps,
14836
+ toastProps,
14837
+ treeSelectProps,
14838
+ uploaderProps,
14744
14839
  version
14745
14840
  };