vant 3.4.5 → 3.4.8

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 (476) hide show
  1. package/README.md +141 -0
  2. package/changelog.generated.md +79 -0
  3. package/es/address-list/AddressListItem.d.ts +3 -2
  4. package/es/address-list/AddressListItem.js +1 -1
  5. package/es/badge/Badge.d.ts +4 -3
  6. package/es/badge/index.d.ts +2 -2
  7. package/es/calendar/Calendar.d.ts +4 -0
  8. package/es/calendar/Calendar.js +3 -1
  9. package/es/calendar/CalendarDay.js +4 -0
  10. package/es/calendar/index.css +1 -1
  11. package/es/calendar/index.d.ts +3 -0
  12. package/es/calendar/index.less +2 -0
  13. package/es/calendar/types.d.ts +2 -1
  14. package/es/calendar/var.less +1 -0
  15. package/es/cascader/types.d.ts +2 -1
  16. package/es/checkbox/Checker.d.ts +2 -1
  17. package/es/collapse/Collapse.d.ts +7 -6
  18. package/es/collapse/index.d.ts +3 -3
  19. package/es/composables/use-touch.js +1 -1
  20. package/es/config-provider/ConfigProvider.d.ts +4 -3
  21. package/es/config-provider/index.d.ts +2 -2
  22. package/es/contact-list/ContactList.d.ts +3 -2
  23. package/es/coupon/Coupon.d.ts +2 -1
  24. package/es/coupon-list/CouponList.d.ts +3 -13
  25. package/es/coupon-list/CouponList.js +9 -7
  26. package/es/coupon-list/index.css +1 -1
  27. package/es/coupon-list/index.d.ts +2 -9
  28. package/es/coupon-list/index.less +4 -16
  29. package/es/coupon-list/style/index.js +1 -0
  30. package/es/coupon-list/style/less.js +1 -0
  31. package/es/coupon-list/var.less +0 -1
  32. package/es/datetime-picker/DatePicker.js +2 -2
  33. package/es/dialog/index.css +1 -1
  34. package/es/dialog/types.d.ts +2 -2
  35. package/es/dropdown-item/types.d.ts +2 -1
  36. package/es/empty/Empty.d.ts +8 -7
  37. package/es/empty/Empty.js +2 -2
  38. package/es/empty/index.d.ts +2 -2
  39. package/es/field/Field.d.ts +4 -0
  40. package/es/field/Field.js +2 -0
  41. package/es/field/index.d.ts +2 -0
  42. package/es/form/Form.js +1 -0
  43. package/es/form/types.d.ts +1 -0
  44. package/es/icon/index.css +1 -1
  45. package/es/index-bar/IndexBar.d.ts +5 -4
  46. package/es/index-bar/IndexBar.js +25 -4
  47. package/es/index-bar/index.d.ts +3 -3
  48. package/es/index-bar/types.d.ts +2 -1
  49. package/es/index.d.ts +1 -1
  50. package/es/index.js +1 -1
  51. package/es/locale/lang/da-DK.d.ts +64 -0
  52. package/es/locale/lang/da-DK.js +66 -0
  53. package/es/locale/lang/is-IS.d.ts +64 -0
  54. package/es/locale/lang/is-IS.js +74 -0
  55. package/es/locale/lang/la-LA.d.ts +64 -0
  56. package/es/locale/lang/la-LA.js +66 -0
  57. package/es/locale/lang/sv-SE.d.ts +64 -0
  58. package/es/locale/lang/sv-SE.js +66 -0
  59. package/es/nav-bar/NavBar.d.ts +1 -1
  60. package/es/nav-bar/NavBar.js +3 -3
  61. package/es/nav-bar/index.d.ts +1 -1
  62. package/es/notify/types.d.ts +2 -1
  63. package/es/number-keyboard/NumberKeyboard.js +10 -1
  64. package/es/picker/types.d.ts +3 -2
  65. package/es/popup/Popup.d.ts +4 -0
  66. package/es/popup/Popup.js +3 -0
  67. package/es/popup/index.css +1 -1
  68. package/es/popup/index.d.ts +3 -0
  69. package/es/progress/Progress.d.ts +4 -3
  70. package/es/progress/index.d.ts +2 -2
  71. package/es/rate/Rate.js +32 -10
  72. package/es/search/Search.d.ts +3 -0
  73. package/es/search/index.d.ts +2 -0
  74. package/es/share-sheet/ShareSheet.js +25 -11
  75. package/es/share-sheet/index.css +1 -1
  76. package/es/share-sheet/index.less +45 -1
  77. package/es/skeleton/Skeleton.d.ts +5 -4
  78. package/es/skeleton/Skeleton.js +6 -4
  79. package/es/skeleton/index.d.ts +3 -3
  80. package/es/slider/index.css +1 -1
  81. package/es/style/animation.css +1 -1
  82. package/es/style/base.css +1 -1
  83. package/es/style/base.less +5 -0
  84. package/es/swipe-cell/SwipeCell.js +1 -1
  85. package/es/swipe-cell/index.css +1 -1
  86. package/es/tabbar/Tabbar.d.ts +2 -2
  87. package/es/tabs/Tabs.d.ts +1 -1
  88. package/es/tabs/Tabs.js +1 -0
  89. package/es/tabs/types.d.ts +5 -4
  90. package/es/toast/Toast.js +1 -0
  91. package/es/toast/types.d.ts +3 -2
  92. package/es/tree-select/TreeSelect.d.ts +7 -6
  93. package/es/tree-select/index.d.ts +3 -3
  94. package/es/uploader/Uploader.d.ts +4 -4
  95. package/es/uploader/Uploader.js +2 -2
  96. package/es/uploader/UploaderPreviewItem.d.ts +3 -3
  97. package/es/uploader/UploaderPreviewItem.js +9 -6
  98. package/es/uploader/index.d.ts +2 -2
  99. package/es/uploader/types.d.ts +5 -5
  100. package/es/utils/basic.d.ts +1 -0
  101. package/es/utils/format.d.ts +7 -6
  102. package/es/utils/format.js +6 -0
  103. package/es/utils/validate.d.ts +2 -1
  104. package/lib/action-bar/ActionBar.js +8 -13
  105. package/lib/action-bar/index.js +9 -16
  106. package/lib/action-bar-button/ActionBarButton.js +8 -13
  107. package/lib/action-bar-button/index.js +9 -16
  108. package/lib/action-bar-icon/ActionBarIcon.js +8 -13
  109. package/lib/action-bar-icon/index.js +9 -16
  110. package/lib/action-sheet/ActionSheet.js +8 -13
  111. package/lib/action-sheet/index.js +9 -16
  112. package/lib/address-edit/AddressEdit.js +9 -16
  113. package/lib/address-edit/AddressEditDetail.js +8 -13
  114. package/lib/address-edit/index.js +9 -16
  115. package/lib/address-edit/types.js +7 -12
  116. package/lib/address-list/AddressList.js +9 -16
  117. package/lib/address-list/AddressListItem.d.ts +3 -2
  118. package/lib/address-list/AddressListItem.js +8 -13
  119. package/lib/address-list/index.js +9 -16
  120. package/lib/area/Area.js +8 -13
  121. package/lib/area/index.js +9 -16
  122. package/lib/area/types.js +7 -12
  123. package/lib/badge/Badge.d.ts +4 -3
  124. package/lib/badge/Badge.js +8 -13
  125. package/lib/badge/index.d.ts +2 -2
  126. package/lib/badge/index.js +9 -16
  127. package/lib/button/Button.js +8 -13
  128. package/lib/button/index.js +9 -16
  129. package/lib/button/types.js +7 -12
  130. package/lib/calendar/Calendar.d.ts +4 -0
  131. package/lib/calendar/Calendar.js +12 -17
  132. package/lib/calendar/CalendarDay.js +12 -13
  133. package/lib/calendar/CalendarHeader.js +8 -13
  134. package/lib/calendar/CalendarMonth.js +9 -16
  135. package/lib/calendar/index.css +1 -1
  136. package/lib/calendar/index.d.ts +3 -0
  137. package/lib/calendar/index.js +9 -16
  138. package/lib/calendar/index.less +2 -0
  139. package/lib/calendar/types.d.ts +2 -1
  140. package/lib/calendar/types.js +7 -12
  141. package/lib/calendar/utils.js +8 -13
  142. package/lib/calendar/var.less +1 -0
  143. package/lib/card/Card.js +8 -13
  144. package/lib/card/index.js +9 -16
  145. package/lib/cascader/Cascader.js +8 -13
  146. package/lib/cascader/index.js +9 -16
  147. package/lib/cascader/types.d.ts +2 -1
  148. package/lib/cascader/types.js +7 -12
  149. package/lib/cell/Cell.js +8 -13
  150. package/lib/cell/index.js +9 -16
  151. package/lib/cell-group/CellGroup.js +8 -13
  152. package/lib/cell-group/index.js +9 -16
  153. package/lib/checkbox/Checkbox.js +9 -16
  154. package/lib/checkbox/Checker.d.ts +2 -1
  155. package/lib/checkbox/Checker.js +8 -13
  156. package/lib/checkbox/index.js +9 -16
  157. package/lib/checkbox/types.js +7 -12
  158. package/lib/checkbox-group/CheckboxGroup.js +8 -13
  159. package/lib/checkbox-group/index.js +9 -16
  160. package/lib/checkbox-group/types.js +7 -12
  161. package/lib/circle/Circle.js +8 -13
  162. package/lib/circle/index.js +9 -16
  163. package/lib/col/Col.js +8 -13
  164. package/lib/col/index.js +9 -16
  165. package/lib/collapse/Collapse.d.ts +7 -6
  166. package/lib/collapse/Collapse.js +8 -13
  167. package/lib/collapse/index.d.ts +3 -3
  168. package/lib/collapse/index.js +9 -16
  169. package/lib/collapse-item/CollapseItem.js +8 -13
  170. package/lib/collapse-item/index.js +9 -16
  171. package/lib/collapse-item/types.js +7 -12
  172. package/lib/composables/on-popup-reopen.js +8 -13
  173. package/lib/composables/use-expose.js +8 -13
  174. package/lib/composables/use-height.js +8 -13
  175. package/lib/composables/use-id.js +8 -13
  176. package/lib/composables/use-lazy-render.js +8 -13
  177. package/lib/composables/use-lock-scroll.js +8 -13
  178. package/lib/composables/use-placeholder.js +8 -13
  179. package/lib/composables/use-refs.js +8 -13
  180. package/lib/composables/use-route.js +8 -13
  181. package/lib/composables/use-tab-status.js +8 -13
  182. package/lib/composables/use-touch.js +9 -14
  183. package/lib/composables/use-visibility-change.js +8 -13
  184. package/lib/config-provider/ConfigProvider.d.ts +4 -3
  185. package/lib/config-provider/ConfigProvider.js +8 -13
  186. package/lib/config-provider/index.d.ts +2 -2
  187. package/lib/config-provider/index.js +9 -16
  188. package/lib/contact-card/ContactCard.js +8 -13
  189. package/lib/contact-card/index.js +9 -16
  190. package/lib/contact-edit/ContactEdit.js +8 -13
  191. package/lib/contact-edit/index.js +9 -16
  192. package/lib/contact-list/ContactList.d.ts +3 -2
  193. package/lib/contact-list/ContactList.js +8 -13
  194. package/lib/contact-list/index.js +9 -16
  195. package/lib/count-down/CountDown.js +8 -13
  196. package/lib/count-down/index.js +9 -16
  197. package/lib/count-down/types.js +7 -12
  198. package/lib/count-down/utils.js +8 -13
  199. package/lib/coupon/Coupon.d.ts +2 -1
  200. package/lib/coupon/Coupon.js +8 -13
  201. package/lib/coupon/index.js +9 -16
  202. package/lib/coupon/utils.js +8 -13
  203. package/lib/coupon-cell/CouponCell.js +8 -13
  204. package/lib/coupon-cell/index.js +9 -16
  205. package/lib/coupon-list/CouponList.d.ts +3 -13
  206. package/lib/coupon-list/CouponList.js +17 -20
  207. package/lib/coupon-list/index.css +1 -1
  208. package/lib/coupon-list/index.d.ts +2 -9
  209. package/lib/coupon-list/index.js +9 -16
  210. package/lib/coupon-list/index.less +4 -16
  211. package/lib/coupon-list/style/index.js +1 -0
  212. package/lib/coupon-list/style/less.js +1 -0
  213. package/lib/coupon-list/var.less +0 -1
  214. package/lib/datetime-picker/DatePicker.js +10 -15
  215. package/lib/datetime-picker/DatetimePicker.js +9 -16
  216. package/lib/datetime-picker/TimePicker.js +8 -13
  217. package/lib/datetime-picker/index.js +9 -16
  218. package/lib/datetime-picker/types.js +7 -12
  219. package/lib/datetime-picker/utils.js +8 -13
  220. package/lib/dialog/Dialog.js +8 -13
  221. package/lib/dialog/function-call.js +9 -16
  222. package/lib/dialog/index.css +1 -1
  223. package/lib/dialog/index.js +8 -13
  224. package/lib/dialog/types.d.ts +2 -2
  225. package/lib/dialog/types.js +7 -12
  226. package/lib/divider/Divider.js +8 -13
  227. package/lib/divider/index.js +9 -16
  228. package/lib/dropdown-item/DropdownItem.js +8 -13
  229. package/lib/dropdown-item/index.js +9 -16
  230. package/lib/dropdown-item/types.d.ts +2 -1
  231. package/lib/dropdown-item/types.js +7 -12
  232. package/lib/dropdown-menu/DropdownMenu.js +8 -13
  233. package/lib/dropdown-menu/index.js +9 -16
  234. package/lib/dropdown-menu/types.js +7 -12
  235. package/lib/empty/Empty.d.ts +8 -7
  236. package/lib/empty/Empty.js +9 -14
  237. package/lib/empty/Network.js +8 -13
  238. package/lib/empty/index.d.ts +2 -2
  239. package/lib/empty/index.js +9 -16
  240. package/lib/field/Field.d.ts +4 -0
  241. package/lib/field/Field.js +10 -13
  242. package/lib/field/index.d.ts +2 -0
  243. package/lib/field/index.js +9 -16
  244. package/lib/field/types.js +7 -12
  245. package/lib/field/utils.js +8 -13
  246. package/lib/form/Form.js +9 -13
  247. package/lib/form/index.js +9 -16
  248. package/lib/form/types.d.ts +1 -0
  249. package/lib/form/types.js +7 -12
  250. package/lib/grid/Grid.js +8 -13
  251. package/lib/grid/index.js +9 -16
  252. package/lib/grid-item/GridItem.js +8 -13
  253. package/lib/grid-item/index.js +9 -16
  254. package/lib/icon/Icon.js +8 -13
  255. package/lib/icon/index.css +1 -1
  256. package/lib/icon/index.js +9 -16
  257. package/lib/image/Image.js +8 -13
  258. package/lib/image/index.js +9 -16
  259. package/lib/image-preview/ImagePreview.js +9 -16
  260. package/lib/image-preview/ImagePreviewItem.js +8 -13
  261. package/lib/image-preview/function-call.js +9 -16
  262. package/lib/image-preview/index.js +8 -13
  263. package/lib/image-preview/types.js +7 -12
  264. package/lib/index-anchor/IndexAnchor.js +8 -13
  265. package/lib/index-anchor/index.js +9 -16
  266. package/lib/index-bar/IndexBar.d.ts +5 -4
  267. package/lib/index-bar/IndexBar.js +33 -17
  268. package/lib/index-bar/index.d.ts +3 -3
  269. package/lib/index-bar/index.js +9 -16
  270. package/lib/index-bar/types.d.ts +2 -1
  271. package/lib/index-bar/types.js +7 -12
  272. package/lib/index.css +1 -1
  273. package/lib/index.d.ts +1 -1
  274. package/lib/index.js +96 -100
  275. package/lib/index.less +2 -2
  276. package/lib/lazyload/index.js +8 -13
  277. package/lib/lazyload/vue-lazyload/index.js +9 -16
  278. package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
  279. package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
  280. package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
  281. package/lib/lazyload/vue-lazyload/lazy.js +9 -16
  282. package/lib/lazyload/vue-lazyload/listener.js +8 -13
  283. package/lib/lazyload/vue-lazyload/util.js +8 -13
  284. package/lib/list/List.js +8 -13
  285. package/lib/list/index.js +9 -16
  286. package/lib/list/types.js +7 -12
  287. package/lib/loading/Loading.js +8 -13
  288. package/lib/loading/index.js +9 -16
  289. package/lib/locale/index.js +9 -16
  290. package/lib/locale/lang/bn-BD.js +8 -13
  291. package/lib/locale/lang/da-DK.d.ts +64 -0
  292. package/lib/locale/lang/da-DK.js +85 -0
  293. package/lib/locale/lang/de-DE-formal.js +8 -13
  294. package/lib/locale/lang/de-DE.js +8 -13
  295. package/lib/locale/lang/en-US.js +8 -13
  296. package/lib/locale/lang/es-ES.js +8 -13
  297. package/lib/locale/lang/fr-FR.js +8 -13
  298. package/lib/locale/lang/hi-IN.js +8 -13
  299. package/lib/locale/lang/id-ID.js +8 -13
  300. package/lib/locale/lang/is-IS.d.ts +64 -0
  301. package/lib/locale/lang/is-IS.js +93 -0
  302. package/lib/locale/lang/it-IT.js +8 -13
  303. package/lib/locale/lang/ja-JP.js +8 -13
  304. package/lib/locale/lang/ko-KR.js +8 -13
  305. package/lib/locale/lang/la-LA.d.ts +64 -0
  306. package/lib/locale/lang/la-LA.js +85 -0
  307. package/lib/locale/lang/nb-NO.js +8 -13
  308. package/lib/locale/lang/pt-BR.js +8 -13
  309. package/lib/locale/lang/ro-RO.js +8 -13
  310. package/lib/locale/lang/ru-RU.js +8 -13
  311. package/lib/locale/lang/sv-SE.d.ts +64 -0
  312. package/lib/locale/lang/sv-SE.js +85 -0
  313. package/lib/locale/lang/th-TH.js +8 -13
  314. package/lib/locale/lang/tr-TR.js +8 -13
  315. package/lib/locale/lang/uk-UA.js +8 -13
  316. package/lib/locale/lang/vi-VN.js +8 -13
  317. package/lib/locale/lang/zh-CN.js +8 -13
  318. package/lib/locale/lang/zh-HK.js +8 -13
  319. package/lib/locale/lang/zh-TW.js +8 -13
  320. package/lib/nav-bar/NavBar.d.ts +1 -1
  321. package/lib/nav-bar/NavBar.js +11 -16
  322. package/lib/nav-bar/index.d.ts +1 -1
  323. package/lib/nav-bar/index.js +9 -16
  324. package/lib/notice-bar/NoticeBar.js +8 -13
  325. package/lib/notice-bar/index.js +9 -16
  326. package/lib/notice-bar/types.js +7 -12
  327. package/lib/notify/Notify.js +8 -13
  328. package/lib/notify/function-call.js +9 -16
  329. package/lib/notify/index.js +8 -13
  330. package/lib/notify/types.d.ts +2 -1
  331. package/lib/notify/types.js +7 -12
  332. package/lib/number-keyboard/NumberKeyboard.js +19 -17
  333. package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
  334. package/lib/number-keyboard/index.js +9 -16
  335. package/lib/overlay/Overlay.js +8 -13
  336. package/lib/overlay/index.js +9 -16
  337. package/lib/pagination/Pagination.js +8 -13
  338. package/lib/pagination/index.js +9 -16
  339. package/lib/password-input/PasswordInput.js +8 -13
  340. package/lib/password-input/index.js +9 -16
  341. package/lib/picker/Picker.js +9 -16
  342. package/lib/picker/PickerColumn.js +8 -13
  343. package/lib/picker/index.js +9 -16
  344. package/lib/picker/types.d.ts +3 -2
  345. package/lib/picker/types.js +7 -12
  346. package/lib/popover/Popover.js +8 -13
  347. package/lib/popover/index.js +9 -16
  348. package/lib/popover/types.js +7 -12
  349. package/lib/popup/Popup.d.ts +4 -0
  350. package/lib/popup/Popup.js +11 -13
  351. package/lib/popup/index.css +1 -1
  352. package/lib/popup/index.d.ts +3 -0
  353. package/lib/popup/index.js +9 -16
  354. package/lib/popup/shared.js +8 -13
  355. package/lib/popup/types.js +7 -12
  356. package/lib/progress/Progress.d.ts +4 -3
  357. package/lib/progress/Progress.js +8 -13
  358. package/lib/progress/index.d.ts +2 -2
  359. package/lib/progress/index.js +9 -16
  360. package/lib/progress/types.js +7 -12
  361. package/lib/pull-refresh/PullRefresh.js +8 -13
  362. package/lib/pull-refresh/index.js +9 -16
  363. package/lib/radio/Radio.js +9 -16
  364. package/lib/radio/index.js +9 -16
  365. package/lib/radio-group/RadioGroup.js +8 -13
  366. package/lib/radio-group/index.js +9 -16
  367. package/lib/rate/Rate.js +39 -22
  368. package/lib/rate/index.js +9 -16
  369. package/lib/row/Row.js +8 -13
  370. package/lib/row/index.js +9 -16
  371. package/lib/search/Search.d.ts +3 -0
  372. package/lib/search/Search.js +8 -13
  373. package/lib/search/index.d.ts +2 -0
  374. package/lib/search/index.js +9 -16
  375. package/lib/search/types.js +7 -12
  376. package/lib/share-sheet/ShareSheet.js +33 -24
  377. package/lib/share-sheet/index.css +1 -1
  378. package/lib/share-sheet/index.js +9 -16
  379. package/lib/share-sheet/index.less +45 -1
  380. package/lib/sidebar/Sidebar.js +8 -13
  381. package/lib/sidebar/index.js +9 -16
  382. package/lib/sidebar-item/SidebarItem.js +8 -13
  383. package/lib/sidebar-item/index.js +9 -16
  384. package/lib/skeleton/Skeleton.d.ts +5 -4
  385. package/lib/skeleton/Skeleton.js +13 -16
  386. package/lib/skeleton/index.d.ts +3 -3
  387. package/lib/skeleton/index.js +9 -16
  388. package/lib/slider/Slider.js +8 -13
  389. package/lib/slider/index.css +1 -1
  390. package/lib/slider/index.js +9 -16
  391. package/lib/step/Step.js +8 -13
  392. package/lib/step/index.js +9 -16
  393. package/lib/stepper/Stepper.js +8 -13
  394. package/lib/stepper/index.js +9 -16
  395. package/lib/steps/Steps.js +8 -13
  396. package/lib/steps/index.js +9 -16
  397. package/lib/sticky/Sticky.js +8 -13
  398. package/lib/sticky/index.js +9 -16
  399. package/lib/style/animation.css +1 -1
  400. package/lib/style/base.css +1 -1
  401. package/lib/style/base.less +5 -0
  402. package/lib/submit-bar/SubmitBar.js +8 -13
  403. package/lib/submit-bar/index.js +9 -16
  404. package/lib/swipe/Swipe.js +8 -13
  405. package/lib/swipe/index.js +9 -16
  406. package/lib/swipe/types.js +7 -12
  407. package/lib/swipe-cell/SwipeCell.js +9 -14
  408. package/lib/swipe-cell/index.css +1 -1
  409. package/lib/swipe-cell/index.js +9 -16
  410. package/lib/swipe-cell/types.js +7 -12
  411. package/lib/swipe-item/SwipeItem.js +8 -13
  412. package/lib/swipe-item/index.js +9 -16
  413. package/lib/switch/Switch.js +8 -13
  414. package/lib/switch/index.js +9 -16
  415. package/lib/tab/Tab.js +8 -13
  416. package/lib/tab/index.js +9 -16
  417. package/lib/tabbar/Tabbar.d.ts +2 -2
  418. package/lib/tabbar/Tabbar.js +8 -13
  419. package/lib/tabbar/index.js +9 -16
  420. package/lib/tabbar-item/TabbarItem.js +8 -13
  421. package/lib/tabbar-item/index.js +9 -16
  422. package/lib/tabs/Tabs.d.ts +1 -1
  423. package/lib/tabs/Tabs.js +10 -16
  424. package/lib/tabs/TabsContent.js +8 -13
  425. package/lib/tabs/TabsTitle.js +8 -13
  426. package/lib/tabs/index.js +9 -16
  427. package/lib/tabs/types.d.ts +5 -4
  428. package/lib/tabs/types.js +7 -12
  429. package/lib/tabs/utils.js +8 -13
  430. package/lib/tag/Tag.js +8 -13
  431. package/lib/tag/index.js +9 -16
  432. package/lib/toast/Toast.js +9 -13
  433. package/lib/toast/function-call.js +9 -16
  434. package/lib/toast/index.js +8 -13
  435. package/lib/toast/lock-click.js +8 -13
  436. package/lib/toast/types.d.ts +3 -2
  437. package/lib/toast/types.js +7 -12
  438. package/lib/tree-select/TreeSelect.d.ts +7 -6
  439. package/lib/tree-select/TreeSelect.js +8 -13
  440. package/lib/tree-select/index.d.ts +3 -3
  441. package/lib/tree-select/index.js +9 -16
  442. package/lib/uploader/Uploader.d.ts +4 -4
  443. package/lib/uploader/Uploader.js +10 -17
  444. package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
  445. package/lib/uploader/UploaderPreviewItem.js +17 -19
  446. package/lib/uploader/index.d.ts +2 -2
  447. package/lib/uploader/index.js +9 -16
  448. package/lib/uploader/types.d.ts +5 -5
  449. package/lib/uploader/types.js +7 -12
  450. package/lib/uploader/utils.js +8 -13
  451. package/lib/utils/basic.d.ts +1 -0
  452. package/lib/utils/basic.js +8 -13
  453. package/lib/utils/constant.js +8 -13
  454. package/lib/utils/create.js +9 -16
  455. package/lib/utils/deep-assign.js +8 -13
  456. package/lib/utils/deep-clone.js +8 -13
  457. package/lib/utils/dom.js +8 -13
  458. package/lib/utils/format.d.ts +7 -6
  459. package/lib/utils/format.js +14 -13
  460. package/lib/utils/index.js +17 -21
  461. package/lib/utils/interceptor.js +8 -13
  462. package/lib/utils/mount-component.js +8 -13
  463. package/lib/utils/props.js +8 -13
  464. package/lib/utils/validate.d.ts +2 -1
  465. package/lib/utils/validate.js +8 -13
  466. package/lib/utils/with-install.js +8 -13
  467. package/lib/vant.cjs.js +347 -256
  468. package/lib/vant.cjs.min.js +1 -1
  469. package/lib/vant.es.js +347 -256
  470. package/lib/vant.es.min.js +347 -256
  471. package/lib/vant.js +347 -256
  472. package/lib/vant.min.js +1 -1
  473. package/package.json +4 -4
  474. package/vetur/attributes.json +223 -279
  475. package/vetur/tags.json +53 -49
  476. package/vetur/web-types.json +1628 -753
@@ -16,11 +16,8 @@
16
16
  "description": "Icon color, Default: `#323233`"
17
17
  },
18
18
  "van-action-bar-icon/icon-class": {
19
- "type": "string | Array \\",
20
- "description": "Icon class name, Default: object_",
21
- "options": [
22
- "''"
23
- ]
19
+ "type": "string | Array | object",
20
+ "description": "Icon class name, Default: `''`"
24
21
  },
25
22
  "van-action-bar-icon/icon-prefix": {
26
23
  "type": "string",
@@ -36,7 +33,7 @@
36
33
  },
37
34
  "van-action-bar-icon/badge-props": {
38
35
  "type": "BadgeProps",
39
- "description": "Props of Badgesee [Badge - props](#/en-US/badge#props), Default: -"
36
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props), Default: -"
40
37
  },
41
38
  "van-action-bar-icon/url": {
42
39
  "type": "string",
@@ -127,11 +124,8 @@
127
124
  "description": "Whether to show overlay, Default: `true`"
128
125
  },
129
126
  "van-action-sheet/overlay-class": {
130
- "type": "string | Array \\",
131
- "description": "Custom overlay class, Default: object_",
132
- "options": [
133
- "-"
134
- ]
127
+ "type": "string | Array | object",
128
+ "description": "Custom overlay class, Default: -"
135
129
  },
136
130
  "van-action-sheet/overlay-style": {
137
131
  "type": "object",
@@ -303,12 +297,40 @@
303
297
  },
304
298
  "van-area/swipe-duration": {
305
299
  "type": "number | string",
306
- "description": "Duration of the momentum animationunit `ms`, Default: `1000`"
300
+ "description": "Duration of the momentum animation, unit `ms`, Default: `1000`"
307
301
  },
308
302
  "van-area/is-oversea-code": {
309
303
  "type": "() => boolean",
310
304
  "description": "The method to validate oversea code, Default: -"
311
305
  },
306
+ "van-badge/content": {
307
+ "type": "number | string",
308
+ "description": "Badge content, Default: -"
309
+ },
310
+ "van-badge/color": {
311
+ "type": "string",
312
+ "description": "Background color, Default: `#ee0a24`"
313
+ },
314
+ "van-badge/dot": {
315
+ "type": "boolean",
316
+ "description": "Whether to show dot, Default: `false`"
317
+ },
318
+ "van-badge/max": {
319
+ "type": "number | string",
320
+ "description": "Max value, show `{max}+` when exceed, only works when content is number, Default: -"
321
+ },
322
+ "van-badge/offset": {
323
+ "type": "[number | string, number | string]",
324
+ "description": "Offset of badge dot, Default: -"
325
+ },
326
+ "van-badge/show-zero": {
327
+ "type": "boolean",
328
+ "description": "Whether to show badge when content is zero, Default: `true`"
329
+ },
330
+ "van-badge/position": {
331
+ "type": "string",
332
+ "description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
333
+ },
312
334
  "van-address-list/v-model": {
313
335
  "type": "string",
314
336
  "description": "Id of chosen address, Default: -"
@@ -337,37 +359,6 @@
337
359
  "type": "string",
338
360
  "description": "Default tag text, Default: -"
339
361
  },
340
- "van-badge/content": {
341
- "type": "number | string",
342
- "description": "Badge content, Default: -"
343
- },
344
- "van-badge/color": {
345
- "type": "string",
346
- "description": "Background color, Default: `#ee0a24`"
347
- },
348
- "van-badge/dot": {
349
- "type": "boolean",
350
- "description": "Whether to show dot, Default: `false`"
351
- },
352
- "van-badge/max": {
353
- "type": "number | string",
354
- "description": "Max value,show `{max}+` when exceed,only works when content is number, Default: -"
355
- },
356
- "van-badge/offset": {
357
- "type": "[number | string, number \\",
358
- "description": "Offset of badge dot, Default: string]_",
359
- "options": [
360
- "-"
361
- ]
362
- },
363
- "van-badge/show-zero": {
364
- "type": "boolean",
365
- "description": "Whether to show badge when content is zero, Default: `true`"
366
- },
367
- "van-badge/position": {
368
- "type": "string",
369
- "description": "Badge position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
370
- },
371
362
  "van-button/type": {
372
363
  "type": "string",
373
364
  "description": "Can be set to `primary` `success` `warning` `danger`, Default: `default`"
@@ -454,7 +445,7 @@
454
445
  },
455
446
  "van-calendar/type": {
456
447
  "type": "string",
457
- "description": "Typecan be set to `range` `multiple`, Default: `single`"
448
+ "description": "Type, can be set to `range` `multiple`, Default: `single`"
458
449
  },
459
450
  "van-calendar/title": {
460
451
  "type": "string",
@@ -473,11 +464,8 @@
473
464
  "description": "Max date, Default: Six months after the today"
474
465
  },
475
466
  "van-calendar/default-date": {
476
- "type": "Date | Date[] \\",
477
- "description": "Default selected date, Default: null_",
478
- "options": [
479
- "Today"
480
- ]
467
+ "type": "Date | Date[] | null",
468
+ "description": "Default selected date, Default: Today"
481
469
  },
482
470
  "van-calendar/row-height": {
483
471
  "type": "number | string",
@@ -547,6 +535,10 @@
547
535
  "type": "boolean",
548
536
  "description": "Whether to close when overlay is clicked, Default: `true`"
549
537
  },
538
+ "van-calendar/safe-area-inset-top": {
539
+ "type": "boolean",
540
+ "description": "Whether to enable top safe area adaptation, Default: `false`"
541
+ },
550
542
  "van-calendar/safe-area-inset-bottom": {
551
543
  "type": "boolean",
552
544
  "description": "Whether to enable bottom safe area adaptation, Default: `true`"
@@ -613,7 +605,7 @@
613
605
  },
614
606
  "van-card/lazy-load": {
615
607
  "type": "boolean",
616
- "description": "Whether to enable thumb lazy loadshould register [Lazyload](#/en-US/lazyload) component, Default: `false`"
608
+ "description": "Whether to enable thumb lazy load, should register [Lazyload](#/en-US/lazyload) component, Default: `false`"
617
609
  },
618
610
  "van-cascader/title": {
619
611
  "type": "string",
@@ -681,7 +673,7 @@
681
673
  },
682
674
  "van-cell/size": {
683
675
  "type": "string",
684
- "description": "Sizecan be set to `large`, Default: -"
676
+ "description": "Size, can be set to `large`, Default: -"
685
677
  },
686
678
  "van-cell/icon": {
687
679
  "type": "string",
@@ -728,32 +720,20 @@
728
720
  "description": "Can be set to `left` `up` `down`, Default: `right`"
729
721
  },
730
722
  "van-cell/title-style": {
731
- "type": "string | Array \\",
732
- "description": "Title style, Default: object_",
733
- "options": [
734
- "-"
735
- ]
723
+ "type": "string | Array | object",
724
+ "description": "Title style, Default: -"
736
725
  },
737
726
  "van-cell/title-class": {
738
- "type": "string | Array \\",
739
- "description": "Title className, Default: object_",
740
- "options": [
741
- "-"
742
- ]
727
+ "type": "string | Array | object",
728
+ "description": "Title className, Default: -"
743
729
  },
744
730
  "van-cell/value-class": {
745
- "type": "string | Array \\",
746
- "description": "Value className, Default: object_",
747
- "options": [
748
- "-"
749
- ]
731
+ "type": "string | Array | object",
732
+ "description": "Value className, Default: -"
750
733
  },
751
734
  "van-cell/label-class": {
752
- "type": "string | Array \\",
753
- "description": "Label className, Default: object_",
754
- "options": [
755
- "-"
756
- ]
735
+ "type": "string | Array | object",
736
+ "description": "Label className, Default: -"
757
737
  },
758
738
  "van-checkbox/v-model": {
759
739
  "type": "boolean",
@@ -853,7 +833,7 @@
853
833
  },
854
834
  "van-circle/stroke-linecap": {
855
835
  "type": "string",
856
- "description": "Stroke linecapcan be set to `square` `butt`, Default: `round`"
836
+ "description": "Stroke linecap, can be set to `square` `butt`, Default: `round`"
857
837
  },
858
838
  "van-circle/clockwise": {
859
839
  "type": "boolean",
@@ -861,7 +841,7 @@
861
841
  },
862
842
  "van-circle/start-position": {
863
843
  "type": "CircleStartPosition",
864
- "description": "Progress start positioncan be set to `left`、`right`、`bottom`, Default: `top`"
844
+ "description": "Progress start position, can be set to `left`、`right`、`bottom`, Default: `top`"
865
845
  },
866
846
  "van-row/gutter": {
867
847
  "type": "number | string",
@@ -873,7 +853,7 @@
873
853
  },
874
854
  "van-row/justify": {
875
855
  "type": "string",
876
- "description": "Flex main axiscan be set to end/center/space-around/space-between, Default: `start`"
856
+ "description": "Flex main axis, can be set to end/center/space-around/space-between, Default: `start`"
877
857
  },
878
858
  "van-row/align": {
879
859
  "type": "string",
@@ -895,24 +875,9 @@
895
875
  "type": "string",
896
876
  "description": "Custom element tag, Default: `div`"
897
877
  },
898
- "van-config-provider/theme-vars": {
899
- "type": "object",
900
- "description": "Theme variables, Default: -"
901
- },
902
- "van-config-provider/tag": {
903
- "type": "string",
904
- "description": "HTML Tag of root element, Default: `div`"
905
- },
906
- "van-config-provider/icon-prefix": {
907
- "type": "string",
908
- "description": "Icon className prefix, Default: `van-icon`"
909
- },
910
878
  "van-collapse/v-model": {
911
- "type": "accordion mode _number | string_<br>non-accordion mode_(number \\",
912
- "description": "Names of current active panels, Default: string)[]_",
913
- "options": [
914
- "-"
915
- ]
879
+ "type": "accordion mode: _number | string_<br>non-accordion mode: _(number | string)[]",
880
+ "description": "Names of current active panels, Default: -"
916
881
  },
917
882
  "van-collapse/accordion": {
918
883
  "type": "boolean",
@@ -932,7 +897,7 @@
932
897
  },
933
898
  "van-collapse-item/size": {
934
899
  "type": "string",
935
- "description": "Title sizecan be set to `large`, Default: -"
900
+ "description": "Title size, can be set to `large`, Default: -"
936
901
  },
937
902
  "van-collapse-item/title": {
938
903
  "type": "number | string",
@@ -978,6 +943,18 @@
978
943
  "type": "string",
979
944
  "description": "Label className, Default: -"
980
945
  },
946
+ "van-config-provider/theme-vars": {
947
+ "type": "object",
948
+ "description": "Theme variables, Default: -"
949
+ },
950
+ "van-config-provider/tag": {
951
+ "type": "string",
952
+ "description": "HTML Tag of root element, Default: `div`"
953
+ },
954
+ "van-config-provider/icon-prefix": {
955
+ "type": "string",
956
+ "description": "Icon className prefix, Default: `van-icon`"
957
+ },
981
958
  "van-contact-card/type": {
982
959
  "type": "string",
983
960
  "description": "Can be set to `edit`, Default: `add`"
@@ -994,6 +971,10 @@
994
971
  "type": "string",
995
972
  "description": "Add card text, Default: `Add contact info`"
996
973
  },
974
+ "van-contact-card/editable": {
975
+ "type": "boolean",
976
+ "description": "Whether to allow editing of contacts, Default: `true`"
977
+ },
997
978
  "van-contact-edit/contact-info": {
998
979
  "type": "Contact",
999
980
  "description": "Contact Info, Default: `[]`"
@@ -1136,7 +1117,7 @@
1136
1117
  },
1137
1118
  "van-coupon-list/empty-image": {
1138
1119
  "type": "string",
1139
- "description": "Placeholder image when list is empty, Default: `https://img.yzcdn.cn/vant/coupon-empty.png`"
1120
+ "description": "Placeholder image when list is empty, Default: -"
1140
1121
  },
1141
1122
  "van-coupon-list/show-count": {
1142
1123
  "type": "boolean",
@@ -1192,7 +1173,7 @@
1192
1173
  },
1193
1174
  "van-datetime-picker/swipe-duration": {
1194
1175
  "type": "number | string",
1195
- "description": "Duration of the momentum animationunit `ms`, Default: `1000`"
1176
+ "description": "Duration of the momentum animation, unit `ms`, Default: `1000`"
1196
1177
  },
1197
1178
  "van-date-picker/min-date": {
1198
1179
  "type": "Date",
@@ -1236,11 +1217,11 @@
1236
1217
  },
1237
1218
  "van-dialog/message-align": {
1238
1219
  "type": "string",
1239
- "description": "Message aligncan be set to `left` `right`, Default: `center`"
1220
+ "description": "Message align, can be set to `left` `right`, Default: `center`"
1240
1221
  },
1241
1222
  "van-dialog/theme": {
1242
1223
  "type": "string",
1243
- "description": "Theme stylecan be set to `round-button`, Default: `default`"
1224
+ "description": "Theme style, can be set to `round-button`, Default: `default`"
1244
1225
  },
1245
1226
  "van-dialog/show-confirm-button": {
1246
1227
  "type": "boolean",
@@ -1320,7 +1301,7 @@
1320
1301
  },
1321
1302
  "van-divider/content-position": {
1322
1303
  "type": "string",
1323
- "description": "Content positioncan be set to `left` `right`, Default: `center`"
1304
+ "description": "Content position, can be set to `left` `right`, Default: `center`"
1324
1305
  },
1325
1306
  "van-dropdown-menu/active-color": {
1326
1307
  "type": "string",
@@ -1371,11 +1352,8 @@
1371
1352
  "description": "Whether to lazy render util opened, Default: `true`"
1372
1353
  },
1373
1354
  "van-dropdown-item/title-class": {
1374
- "type": "string | Array \\",
1375
- "description": "Title class, Default: object_",
1376
- "options": [
1377
- "-"
1378
- ]
1355
+ "type": "string | Array | object",
1356
+ "description": "Title class, Default: -"
1379
1357
  },
1380
1358
  "van-dropdown-item/teleport": {
1381
1359
  "type": "string | Element",
@@ -1383,10 +1361,10 @@
1383
1361
  },
1384
1362
  "van-empty/image": {
1385
1363
  "type": "string",
1386
- "description": "Image typecan be set to `error` `network` `search` or image URL, Default: `default`"
1364
+ "description": "Image type, can be set to `error` `network` `search` or image URL, Default: `default`"
1387
1365
  },
1388
1366
  "van-empty/image-size": {
1389
- "type": "number | string",
1367
+ "type": "number | string | Array",
1390
1368
  "description": "Image size, Default: -"
1391
1369
  },
1392
1370
  "van-empty/description": {
@@ -1415,7 +1393,7 @@
1415
1393
  },
1416
1394
  "van-field/size": {
1417
1395
  "type": "string",
1418
- "description": "Sizecan be set to `large`, Default: -"
1396
+ "description": "Size, can be set to `large`, Default: -"
1419
1397
  },
1420
1398
  "van-field/maxlength": {
1421
1399
  "type": "number | string",
@@ -1495,18 +1473,15 @@
1495
1473
  },
1496
1474
  "van-field/format-trigger": {
1497
1475
  "type": "FieldFormatTrigger",
1498
- "description": "When to format valuecan be set to `onBlur`, Default: `onChange`"
1476
+ "description": "When to format value, can be set to `onBlur`, Default: `onChange`"
1499
1477
  },
1500
1478
  "van-field/arrow-direction": {
1501
1479
  "type": "string",
1502
1480
  "description": "Can be set to `left` `up` `down`, Default: `right`"
1503
1481
  },
1504
1482
  "van-field/label-class": {
1505
- "type": "string | Array \\",
1506
- "description": "Label className, Default: object_",
1507
- "options": [
1508
- "-"
1509
- ]
1483
+ "type": "string | Array | object",
1484
+ "description": "Label className, Default: -"
1510
1485
  },
1511
1486
  "van-field/label-width": {
1512
1487
  "type": "number | string",
@@ -1522,7 +1497,7 @@
1522
1497
  },
1523
1498
  "van-field/autosize": {
1524
1499
  "type": "boolean | FieldAutosizeConfig",
1525
- "description": "Textarea auto resizecan accept an object,<br>e.g. { maxHeight: 100, minHeight: 50 }, Default: `false`"
1500
+ "description": "Textarea auto resize, can accept an object,<br>e.g. { maxHeight: 100, minHeight: 50 }, Default: `false`"
1526
1501
  },
1527
1502
  "van-field/left-icon": {
1528
1503
  "type": "string",
@@ -1542,7 +1517,63 @@
1542
1517
  },
1543
1518
  "van-field/autocomplete": {
1544
1519
  "type": "string",
1545
- "description": "[autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute of native input element, Default: -"
1520
+ "description": "HTML native attribute, see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), Default: -"
1521
+ },
1522
+ "van-field/enterkeyhint": {
1523
+ "type": "string",
1524
+ "description": "HTML native attribute, see [MDN - enterkeyhint](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)<br>, Default: -"
1525
+ },
1526
+ "van-form/label-width": {
1527
+ "type": "number | string",
1528
+ "description": "Field label width, Default: `6.2em`"
1529
+ },
1530
+ "van-form/label-align": {
1531
+ "type": "string",
1532
+ "description": "Field label align, can be set to `center` `right`, Default: `left`"
1533
+ },
1534
+ "van-form/input-align": {
1535
+ "type": "string",
1536
+ "description": "Field input align, can be set to `center` `right`, Default: `left`"
1537
+ },
1538
+ "van-form/error-message-align": {
1539
+ "type": "string",
1540
+ "description": "Error message align, can be set to `center` `right`, Default: `left`"
1541
+ },
1542
+ "van-form/validate-trigger": {
1543
+ "type": "string",
1544
+ "description": "When to validate the form, can be set to `onChange`、`onSubmit`, Default: `onBlur`"
1545
+ },
1546
+ "van-form/colon": {
1547
+ "type": "boolean",
1548
+ "description": "Whether to display colon after label, Default: `false`"
1549
+ },
1550
+ "van-form/disabled": {
1551
+ "type": "boolean",
1552
+ "description": "Whether to disable form, Default: `false`"
1553
+ },
1554
+ "van-form/readonly": {
1555
+ "type": "boolean",
1556
+ "description": "Whether to be readonly, Default: `false`"
1557
+ },
1558
+ "van-form/validate-first": {
1559
+ "type": "boolean",
1560
+ "description": "Whether to stop the validation when a rule fails, Default: `false`"
1561
+ },
1562
+ "van-form/scroll-to-error": {
1563
+ "type": "boolean",
1564
+ "description": "Whether to scroll to the error field when validation failed, Default: `false`"
1565
+ },
1566
+ "van-form/show-error": {
1567
+ "type": "boolean",
1568
+ "description": "Whether to highlight input when validation failed, Default: `false`"
1569
+ },
1570
+ "van-form/show-error-message": {
1571
+ "type": "boolean",
1572
+ "description": "Whether to show error message when validation failed, Default: `true`"
1573
+ },
1574
+ "van-form/submit-on-enter": {
1575
+ "type": "boolean",
1576
+ "description": "Whether to submit form on enter, Default: `true`"
1546
1577
  },
1547
1578
  "van-grid/column-num": {
1548
1579
  "type": "number | string",
@@ -1576,6 +1607,10 @@
1576
1607
  "type": "string",
1577
1608
  "description": "Content arrangement direction, can be set to `horizontal`, Default: `vertical`"
1578
1609
  },
1610
+ "van-grid/reverse": {
1611
+ "type": "boolean",
1612
+ "description": "Whether to reverse the position of icon and text, Default: `false`"
1613
+ },
1579
1614
  "van-grid-item/text": {
1580
1615
  "type": "string",
1581
1616
  "description": "Text, Default: -"
@@ -1592,10 +1627,6 @@
1592
1627
  "type": "string",
1593
1628
  "description": "Icon color, Default: -"
1594
1629
  },
1595
- "van-grid-item/reverse": {
1596
- "type": "boolean",
1597
- "description": "Whether to reverse the position of icon and text, Default: `false`"
1598
- },
1599
1630
  "van-grid-item/dot": {
1600
1631
  "type": "boolean",
1601
1632
  "description": "Whether to show red dot, Default: `false`"
@@ -1606,7 +1637,7 @@
1606
1637
  },
1607
1638
  "van-grid-item/badge-props": {
1608
1639
  "type": "BadgeProps",
1609
- "description": "Props of Badgesee [Badge - props](#/en-US/badge#props), Default: -"
1640
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props), Default: -"
1610
1641
  },
1611
1642
  "van-grid-item/url": {
1612
1643
  "type": "string",
@@ -1634,7 +1665,7 @@
1634
1665
  },
1635
1666
  "van-icon/badge-props": {
1636
1667
  "type": "BadgeProps",
1637
- "description": "Props of Badgesee [Badge - props](#/en-US/badge#props), Default: -"
1668
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props), Default: -"
1638
1669
  },
1639
1670
  "van-icon/color": {
1640
1671
  "type": "string",
@@ -1686,7 +1717,7 @@
1686
1717
  },
1687
1718
  "van-image/lazy-load": {
1688
1719
  "type": "boolean",
1689
- "description": "Whether to enable lazy loadshould register [Lazyload](#/en-US/lazyload) component, Default: `false`"
1720
+ "description": "Whether to enable lazy load, should register [Lazyload](#/en-US/lazyload) component, Default: `false`"
1690
1721
  },
1691
1722
  "van-image/show-error": {
1692
1723
  "type": "boolean",
@@ -1749,11 +1780,8 @@
1749
1780
  "description": "Whether to close when popstate, Default: `true`"
1750
1781
  },
1751
1782
  "van-image-preview/class-name": {
1752
- "type": "string | Array \\",
1753
- "description": "Custom className, Default: object_",
1754
- "options": [
1755
- "-"
1756
- ]
1783
+ "type": "string | Array | object",
1784
+ "description": "Custom className, Default: -"
1757
1785
  },
1758
1786
  "van-image-preview/max-zoom": {
1759
1787
  "type": "number | string",
@@ -1773,18 +1801,15 @@
1773
1801
  },
1774
1802
  "van-image-preview/close-icon-position": {
1775
1803
  "type": "string",
1776
- "description": "Close icon positioncan be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
1804
+ "description": "Close icon position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
1777
1805
  },
1778
1806
  "van-image-preview/transition": {
1779
1807
  "type": "string",
1780
1808
  "description": "Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition), Default: `van-fade`"
1781
1809
  },
1782
1810
  "van-image-preview/overlay-class": {
1783
- "type": "string | Array \\",
1784
- "description": "Custom overlay class, Default: object_",
1785
- "options": [
1786
- "-"
1787
- ]
1811
+ "type": "string | Array | object",
1812
+ "description": "Custom overlay class, Default: -"
1788
1813
  },
1789
1814
  "van-image-preview/overlay-style": {
1790
1815
  "type": "object",
@@ -1794,58 +1819,6 @@
1794
1819
  "type": "string | Element",
1795
1820
  "description": "Specifies a target element where ImagePreview will be mounted, Default: -"
1796
1821
  },
1797
- "van-form/label-width": {
1798
- "type": "number | string",
1799
- "description": "Field label width, Default: `6.2em`"
1800
- },
1801
- "van-form/label-align": {
1802
- "type": "string",
1803
- "description": "Field label align, can be set to `center` `right`, Default: `left`"
1804
- },
1805
- "van-form/input-align": {
1806
- "type": "string",
1807
- "description": "Field input align, can be set to `center` `right`, Default: `left`"
1808
- },
1809
- "van-form/error-message-align": {
1810
- "type": "string",
1811
- "description": "Error message align, can be set to `center` `right`, Default: `left`"
1812
- },
1813
- "van-form/validate-trigger": {
1814
- "type": "string",
1815
- "description": "When to validate the form,can be set to `onChange`、`onSubmit`, Default: `onBlur`"
1816
- },
1817
- "van-form/colon": {
1818
- "type": "boolean",
1819
- "description": "Whether to display colon after label, Default: `false`"
1820
- },
1821
- "van-form/disabled": {
1822
- "type": "boolean",
1823
- "description": "Whether to disable form, Default: `false`"
1824
- },
1825
- "van-form/readonly": {
1826
- "type": "boolean",
1827
- "description": "Whether to be readonly, Default: `false`"
1828
- },
1829
- "van-form/validate-first": {
1830
- "type": "boolean",
1831
- "description": "Whether to stop the validation when a rule fails, Default: `false`"
1832
- },
1833
- "van-form/scroll-to-error": {
1834
- "type": "boolean",
1835
- "description": "Whether to scroll to the error field when validation failed, Default: `false`"
1836
- },
1837
- "van-form/show-error": {
1838
- "type": "boolean",
1839
- "description": "Whether to highlight input when validation failed, Default: `false`"
1840
- },
1841
- "van-form/show-error-message": {
1842
- "type": "boolean",
1843
- "description": "Whether to show error message when validation failed, Default: `true`"
1844
- },
1845
- "van-form/submit-on-enter": {
1846
- "type": "boolean",
1847
- "description": "Whether to submit form on enter, Default: `true`"
1848
- },
1849
1822
  "van-index-bar/index-list": {
1850
1823
  "type": "string[] | number[]",
1851
1824
  "description": "Index List, Default: `A-Z`"
@@ -1876,15 +1849,15 @@
1876
1849
  },
1877
1850
  "van-list/v-model:loading": {
1878
1851
  "type": "boolean",
1879
- "description": "Whether to show loading infothe `load` event will not be Emitted when loading, Default: `false`"
1852
+ "description": "Whether to show loading info, the `load` event will not be Emitted when loading, Default: `false`"
1880
1853
  },
1881
1854
  "van-list/v-model:error": {
1882
1855
  "type": "boolean",
1883
- "description": "Whether loading is errorthe `load` event will be Emitted only when error text clicked, Default: `false`"
1856
+ "description": "Whether loading is error, the `load` event will be Emitted only when error text clicked, Default: `false`"
1884
1857
  },
1885
1858
  "van-list/finished": {
1886
1859
  "type": "boolean",
1887
- "description": "Whether loading is finishedthe `load` event will not be Emitted when finished, Default: `false`"
1860
+ "description": "Whether loading is finished, the `load` event will not be Emitted when finished, Default: `false`"
1888
1861
  },
1889
1862
  "van-list/offset": {
1890
1863
  "type": "number | string",
@@ -1908,7 +1881,7 @@
1908
1881
  },
1909
1882
  "van-list/direction": {
1910
1883
  "type": "string",
1911
- "description": "Scroll directioncan be set to `up`, Default: `down`"
1884
+ "description": "Scroll direction, can be set to `up`, Default: `down`"
1912
1885
  },
1913
1886
  "van-loading/color": {
1914
1887
  "type": "string",
@@ -2020,7 +1993,7 @@
2020
1993
  },
2021
1994
  "van-number-keyboard/theme": {
2022
1995
  "type": "string",
2023
- "description": "Keyboard themecan be set to `custom`, Default: `default`"
1996
+ "description": "Keyboard theme, can be set to `custom`, Default: `default`"
2024
1997
  },
2025
1998
  "van-number-keyboard/maxlength": {
2026
1999
  "type": "number | string",
@@ -2216,7 +2189,7 @@
2216
2189
  },
2217
2190
  "van-picker/swipe-duration": {
2218
2191
  "type": "number | string",
2219
- "description": "Duration of the momentum animationunit `ms`, Default: `1000`"
2192
+ "description": "Duration of the momentum animation, unit `ms`, Default: `1000`"
2220
2193
  },
2221
2194
  "van-popover/v-model:show": {
2222
2195
  "type": "boolean",
@@ -2232,11 +2205,11 @@
2232
2205
  },
2233
2206
  "van-popover/theme": {
2234
2207
  "type": "PopoverTheme",
2235
- "description": "Themecan be set to `dark`, Default: `light`"
2208
+ "description": "Theme, can be set to `dark`, Default: `light`"
2236
2209
  },
2237
2210
  "van-popover/trigger": {
2238
2211
  "type": "PopoverTrigger",
2239
- "description": "Trigger modecan be set to `manual`, Default: `click`"
2212
+ "description": "Trigger mode, can be set to `manual`, Default: `click`"
2240
2213
  },
2241
2214
  "van-popover/duration": {
2242
2215
  "type": "number | string",
@@ -2251,11 +2224,8 @@
2251
2224
  "description": "Whether to show overlay, Default: `false`"
2252
2225
  },
2253
2226
  "van-popover/overlay-class": {
2254
- "type": "string | Array \\",
2255
- "description": "Custom overlay class, Default: object_",
2256
- "options": [
2257
- "-"
2258
- ]
2227
+ "type": "string | Array | object",
2228
+ "description": "Custom overlay class, Default: -"
2259
2229
  },
2260
2230
  "van-popover/overlay-style": {
2261
2231
  "type": "object",
@@ -2298,11 +2268,8 @@
2298
2268
  "description": "Can be set to `top` `bottom` `right` `left`, Default: `center`"
2299
2269
  },
2300
2270
  "van-popup/overlay-class": {
2301
- "type": "string | Array \\",
2302
- "description": "Custom overlay class, Default: object_",
2303
- "options": [
2304
- "-"
2305
- ]
2271
+ "type": "string | Array | object",
2272
+ "description": "Custom overlay class, Default: -"
2306
2273
  },
2307
2274
  "van-popup/overlay-style": {
2308
2275
  "type": "object",
@@ -2342,7 +2309,7 @@
2342
2309
  },
2343
2310
  "van-popup/close-icon-position": {
2344
2311
  "type": "string",
2345
- "description": "Close Icon Positioncan be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
2312
+ "description": "Close Icon Position, can be set to `top-left` `bottom-left` `bottom-right`, Default: `top-right`"
2346
2313
  },
2347
2314
  "van-popup/before-close": {
2348
2315
  "type": "(action: string) => boolean | Promise\\<boolean\\>",
@@ -2364,6 +2331,10 @@
2364
2331
  "type": "string | Element",
2365
2332
  "description": "Specifies a target element where Popup will be mounted, Default: -"
2366
2333
  },
2334
+ "van-popup/safe-area-inset-top": {
2335
+ "type": "boolean",
2336
+ "description": "Whether to enable top safe area adaptation, Default: `false`"
2337
+ },
2367
2338
  "van-popup/safe-area-inset-bottom": {
2368
2339
  "type": "boolean",
2369
2340
  "description": "Whether to enable bottom safe area adaptation, Default: `false`"
@@ -2626,7 +2597,7 @@
2626
2597
  },
2627
2598
  "van-search/format-trigger": {
2628
2599
  "type": "string",
2629
- "description": "When to format valuecan be set to `onBlur`, Default: `onChange`"
2600
+ "description": "When to format value, can be set to `onBlur`, Default: `onChange`"
2630
2601
  },
2631
2602
  "van-search/input-align": {
2632
2603
  "type": "string",
@@ -2677,11 +2648,8 @@
2677
2648
  "description": "Whether to show overlay, Default: `true`"
2678
2649
  },
2679
2650
  "van-share-sheet/overlay-class": {
2680
- "type": "string | Array \\",
2681
- "description": "Custom overlay class, Default: object_",
2682
- "options": [
2683
- "-"
2684
- ]
2651
+ "type": "string | Array | object",
2652
+ "description": "Custom overlay class, Default: -"
2685
2653
  },
2686
2654
  "van-share-sheet/overlay-style": {
2687
2655
  "type": "object",
@@ -2733,7 +2701,7 @@
2733
2701
  },
2734
2702
  "van-sidebar-item/badge-props": {
2735
2703
  "type": "BadgeProps",
2736
- "description": "Props of Badgesee [Badge - props](#/en-US/badge#props), Default: -"
2704
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props), Default: -"
2737
2705
  },
2738
2706
  "van-sidebar-item/disabled": {
2739
2707
  "type": "boolean",
@@ -2756,11 +2724,8 @@
2756
2724
  "description": "Row count, Default: `0`"
2757
2725
  },
2758
2726
  "van-skeleton/row-width": {
2759
- "type": "number | string \\",
2760
- "description": "Row width, can be array, Default: <br>(number \\",
2761
- "options": [
2762
- "string)[]_"
2763
- ]
2727
+ "type": "number | string |<br>(number | string)[]",
2728
+ "description": "Row width, can be array, Default: `100%`"
2764
2729
  },
2765
2730
  "van-skeleton/title": {
2766
2731
  "type": "boolean",
@@ -2772,7 +2737,7 @@
2772
2737
  },
2773
2738
  "van-skeleton/loading": {
2774
2739
  "type": "boolean",
2775
- "description": "Whether to show skeletonpass `false` to show child component, Default: `true`"
2740
+ "description": "Whether to show skeleton, pass `false` to show child component, Default: `true`"
2776
2741
  },
2777
2742
  "van-skeleton/animate": {
2778
2743
  "type": "boolean",
@@ -2792,7 +2757,7 @@
2792
2757
  },
2793
2758
  "van-skeleton/avatar-shape": {
2794
2759
  "type": "string",
2795
- "description": "Shape of avatar placeholdercan be set to `square`, Default: `round`"
2760
+ "description": "Shape of avatar placeholder, can be set to `square`, Default: `round`"
2796
2761
  },
2797
2762
  "van-slider/v-model": {
2798
2763
  "type": "number | [number, number]",
@@ -2911,11 +2876,8 @@
2911
2876
  "description": "Whether to disable input, Default: `false`"
2912
2877
  },
2913
2878
  "van-stepper/before-change": {
2914
- "type": "(value: number | string) => boolean \\",
2915
- "description": "Callback function before changingreturn `false` to prevent changesupport return Promise, Default: Promise\\<boolean\\>_",
2916
- "options": [
2917
- "false"
2918
- ]
2879
+ "type": "(value: number | string) => boolean | Promise\\<boolean\\>",
2880
+ "description": "Callback function before changing, return `false` to prevent change, support return Promise, Default: `false`"
2919
2881
  },
2920
2882
  "van-stepper/show-plus": {
2921
2883
  "type": "boolean",
@@ -2999,7 +2961,7 @@
2999
2961
  },
3000
2962
  "van-submit-bar/label": {
3001
2963
  "type": "string",
3002
- "description": "Price left label, Default: `Total:`"
2964
+ "description": "Price left label, Default: `Total: `"
3003
2965
  },
3004
2966
  "van-submit-bar/suffix-label": {
3005
2967
  "type": "string",
@@ -3226,11 +3188,8 @@
3226
3188
  "description": "Title inactive color, Default: -"
3227
3189
  },
3228
3190
  "van-tabs/before-change": {
3229
- "type": "(name: number | string) => boolean \\",
3230
- "description": "Callback function before changing tabsreturn `false` to prevent changesupport return Promise, Default: Promise\\<boolean\\>_",
3231
- "options": [
3232
- "-"
3233
- ]
3191
+ "type": "(name: number | string) => boolean | Promise\\<boolean\\>",
3192
+ "description": "Callback function before changing tabs, return `false` to prevent change, support return Promise, Default: -"
3234
3193
  },
3235
3194
  "van-tab/title": {
3236
3195
  "type": "string",
@@ -3265,18 +3224,12 @@
3265
3224
  "description": "If true, the navigation will not leave a history record, Default: `false`"
3266
3225
  },
3267
3226
  "van-tab/title-style": {
3268
- "type": "string | Array \\",
3269
- "description": "Custom title style, Default: object_",
3270
- "options": [
3271
- "-"
3272
- ]
3227
+ "type": "string | Array | object",
3228
+ "description": "Custom title style, Default: -"
3273
3229
  },
3274
3230
  "van-tab/title-class": {
3275
- "type": "string | Array \\",
3276
- "description": "Custom title class name, Default: object_",
3277
- "options": [
3278
- "-"
3279
- ]
3231
+ "type": "string | Array | object",
3232
+ "description": "Custom title class name, Default: -"
3280
3233
  },
3281
3234
  "van-tab/show-zero-badge": {
3282
3235
  "type": "boolean",
@@ -3319,11 +3272,8 @@
3319
3272
  "description": "Whether to enable bottom safe area adaptation, Default: `false`"
3320
3273
  },
3321
3274
  "van-tabbar/before-change": {
3322
- "type": "(name: number | string) => boolean \\",
3323
- "description": "Callback function before changing tabreturn `false` to prevent changesupport return Promise, Default: Promise\\<boolean\\>_",
3324
- "options": [
3325
- "-"
3326
- ]
3275
+ "type": "(name: number | string) => boolean | Promise\\<boolean\\>",
3276
+ "description": "Callback function before changing tab, return `false` to prevent change, support return Promise, Default: -"
3327
3277
  },
3328
3278
  "van-tabbar-item/name": {
3329
3279
  "type": "number | string",
@@ -3347,7 +3297,7 @@
3347
3297
  },
3348
3298
  "van-tabbar-item/badge-props": {
3349
3299
  "type": "BadgeProps",
3350
- "description": "Props of Badgesee [Badge - props](#/en-US/badge#props), Default: -"
3300
+ "description": "Props of Badge, see [Badge - props](#/en-US/badge#props), Default: -"
3351
3301
  },
3352
3302
  "van-tabbar-item/url": {
3353
3303
  "type": "string",
@@ -3397,6 +3347,30 @@
3397
3347
  "type": "boolean",
3398
3348
  "description": "Whether to be closeable, Default: `false`"
3399
3349
  },
3350
+ "van-tree-select/items": {
3351
+ "type": "TreeSelectItem[]",
3352
+ "description": "Required datasets for the component, Default: `[]`"
3353
+ },
3354
+ "van-tree-select/height": {
3355
+ "type": "number | string",
3356
+ "description": "Height, Default: `300`"
3357
+ },
3358
+ "van-tree-select/main-active-index": {
3359
+ "type": "number | string",
3360
+ "description": "The index of selected parent node, Default: `0`"
3361
+ },
3362
+ "van-tree-select/active-id": {
3363
+ "type": "number | string |<br>(number | string)[]",
3364
+ "description": "Id of selected item, Default: `0`"
3365
+ },
3366
+ "van-tree-select/max": {
3367
+ "type": "number | string",
3368
+ "description": "Maximum number of selected items, Default: `Infinity`"
3369
+ },
3370
+ "van-tree-select/selected-icon": {
3371
+ "type": "string",
3372
+ "description": "Selected icon, Default: `success`"
3373
+ },
3400
3374
  "van-uploader/v-model": {
3401
3375
  "type": "FileListItem[]",
3402
3376
  "description": "List of uploaded files, Default: -"
@@ -3410,7 +3384,7 @@
3410
3384
  "description": "Input name, Default: -"
3411
3385
  },
3412
3386
  "van-uploader/preview-size": {
3413
- "type": "number | string",
3387
+ "type": "number | string | Array",
3414
3388
  "description": "Size of preview image, Default: `80px`"
3415
3389
  },
3416
3390
  "van-uploader/preview-image": {
@@ -3423,7 +3397,7 @@
3423
3397
  },
3424
3398
  "van-uploader/preview-options": {
3425
3399
  "type": "object",
3426
- "description": "Options of full screen image previewsee [ImagePreview](#/en-US/image-preview), Default: -"
3400
+ "description": "Options of full screen image preview, see [ImagePreview](#/en-US/image-preview), Default: -"
3427
3401
  },
3428
3402
  "van-uploader/multiple": {
3429
3403
  "type": "boolean",
@@ -3447,11 +3421,11 @@
3447
3421
  },
3448
3422
  "van-uploader/lazy-load": {
3449
3423
  "type": "boolean",
3450
- "description": "Whether to enable lazy loadshould register [Lazyload](#/en-US/lazyload) component, Default: `false`"
3424
+ "description": "Whether to enable lazy load, should register [Lazyload](#/en-US/lazyload) component, Default: `false`"
3451
3425
  },
3452
3426
  "van-uploader/capture": {
3453
3427
  "type": "string",
3454
- "description": "Capturecan be set to `camera`, Default: -"
3428
+ "description": "Capture, can be set to `camera`, Default: -"
3455
3429
  },
3456
3430
  "van-uploader/after-read": {
3457
3431
  "type": "Function",
@@ -3466,11 +3440,8 @@
3466
3440
  "description": "Hook before delete the file, return false to stop reading the file, can return Promise, Default: -"
3467
3441
  },
3468
3442
  "van-uploader/max-size": {
3469
- "type": "number | string \\",
3470
- "description": "Max size of file, Default: (file: File) => boolean_",
3471
- "options": [
3472
- "Infinity"
3473
- ]
3443
+ "type": "number | string | (file: File) => boolean",
3444
+ "description": "Max size of file, Default: `Infinity`"
3474
3445
  },
3475
3446
  "van-uploader/max-count": {
3476
3447
  "type": "number | string",
@@ -3491,32 +3462,5 @@
3491
3462
  "van-uploader/upload-icon": {
3492
3463
  "type": "string",
3493
3464
  "description": "Upload icon, Default: `photograph`"
3494
- },
3495
- "van-tree-select/items": {
3496
- "type": "TreeSelectItem[]",
3497
- "description": "Required datasets for the component, Default: `[]`"
3498
- },
3499
- "van-tree-select/height": {
3500
- "type": "number | string",
3501
- "description": "Height, Default: `300`"
3502
- },
3503
- "van-tree-select/main-active-index": {
3504
- "type": "number | string",
3505
- "description": "The index of selected parent node, Default: `0`"
3506
- },
3507
- "van-tree-select/active-id": {
3508
- "type": "number | string \\",
3509
- "description": "Id of selected item, Default: <br>(number \\",
3510
- "options": [
3511
- "string)[]_"
3512
- ]
3513
- },
3514
- "van-tree-select/max": {
3515
- "type": "number | string",
3516
- "description": "Maximum number of selected items, Default: `Infinity`"
3517
- },
3518
- "van-tree-select/selected-icon": {
3519
- "type": "string",
3520
- "description": "Selected icon, Default: `success`"
3521
3465
  }
3522
3466
  }