vant 3.3.7 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (464) hide show
  1. package/es/action-bar/ActionBar.d.ts +2 -2
  2. package/es/action-bar/index.d.ts +6 -1
  3. package/es/action-bar-button/ActionBarButton.d.ts +4 -4
  4. package/es/action-bar-button/index.d.ts +8 -3
  5. package/es/action-bar-icon/ActionBarIcon.d.ts +69 -8
  6. package/es/action-bar-icon/ActionBarIcon.js +8 -5
  7. package/es/action-bar-icon/index.d.ts +49 -3
  8. package/es/action-sheet/ActionSheet.d.ts +2 -2
  9. package/es/action-sheet/ActionSheet.js +27 -15
  10. package/es/action-sheet/index.d.ts +6 -1
  11. package/es/address-edit/AddressEdit.d.ts +2 -2
  12. package/es/address-edit/AddressEditDetail.d.ts +2 -2
  13. package/es/address-edit/index.d.ts +6 -1
  14. package/es/address-list/AddressList.d.ts +2 -2
  15. package/es/address-list/AddressListItem.d.ts +2 -2
  16. package/es/address-list/index.d.ts +6 -1
  17. package/es/area/Area.d.ts +2 -2
  18. package/es/area/index.d.ts +6 -1
  19. package/es/badge/Badge.d.ts +3 -3
  20. package/es/badge/index.d.ts +7 -2
  21. package/es/button/Button.d.ts +4 -4
  22. package/es/button/index.d.ts +8 -3
  23. package/es/calendar/Calendar.d.ts +3 -3
  24. package/es/calendar/CalendarDay.d.ts +2 -2
  25. package/es/calendar/CalendarHeader.d.ts +1 -1
  26. package/es/calendar/CalendarMonth.d.ts +4 -4
  27. package/es/calendar/index.d.ts +7 -2
  28. package/es/card/Card.d.ts +2 -2
  29. package/es/card/index.d.ts +6 -1
  30. package/es/cascader/Cascader.d.ts +2 -2
  31. package/es/cascader/Cascader.js +1 -1
  32. package/es/cascader/index.css +1 -1
  33. package/es/cascader/index.d.ts +6 -1
  34. package/es/cascader/index.less +0 -10
  35. package/es/cell/Cell.d.ts +2 -2
  36. package/es/cell/index.d.ts +6 -1
  37. package/es/cell-group/CellGroup.d.ts +2 -2
  38. package/es/cell-group/index.d.ts +6 -1
  39. package/es/checkbox/Checkbox.d.ts +2 -2
  40. package/es/checkbox/Checker.d.ts +2 -2
  41. package/es/checkbox/index.d.ts +6 -1
  42. package/es/checkbox-group/CheckboxGroup.d.ts +2 -2
  43. package/es/checkbox-group/index.d.ts +6 -1
  44. package/es/circle/Circle.d.ts +2 -2
  45. package/es/circle/index.d.ts +6 -1
  46. package/es/col/Col.d.ts +2 -2
  47. package/es/col/index.d.ts +6 -1
  48. package/es/collapse/Collapse.d.ts +2 -2
  49. package/es/collapse/index.d.ts +6 -1
  50. package/es/collapse-item/CollapseItem.d.ts +2 -2
  51. package/es/collapse-item/index.d.ts +6 -1
  52. package/es/composables/use-refs.js +9 -2
  53. package/es/composables/use-route.d.ts +1 -1
  54. package/es/composables/use-touch.js +7 -6
  55. package/es/config-provider/ConfigProvider.d.ts +2 -2
  56. package/es/config-provider/index.d.ts +6 -1
  57. package/es/contact-card/ContactCard.d.ts +2 -2
  58. package/es/contact-card/index.d.ts +6 -1
  59. package/es/contact-edit/ContactEdit.d.ts +2 -2
  60. package/es/contact-edit/index.d.ts +6 -1
  61. package/es/contact-list/ContactList.d.ts +2 -2
  62. package/es/contact-list/index.d.ts +6 -1
  63. package/es/count-down/CountDown.d.ts +2 -2
  64. package/es/count-down/index.d.ts +6 -1
  65. package/es/coupon/Coupon.d.ts +2 -2
  66. package/es/coupon/index.d.ts +6 -1
  67. package/es/coupon-cell/CouponCell.d.ts +2 -2
  68. package/es/coupon-cell/index.d.ts +6 -1
  69. package/es/coupon-list/CouponList.d.ts +2 -2
  70. package/es/coupon-list/index.d.ts +6 -1
  71. package/es/datetime-picker/DatePicker.d.ts +1 -1
  72. package/es/datetime-picker/DatetimePicker.d.ts +2 -2
  73. package/es/datetime-picker/TimePicker.d.ts +1 -1
  74. package/es/datetime-picker/index.d.ts +6 -1
  75. package/es/datetime-picker/utils.d.ts +1 -1
  76. package/es/dialog/Dialog.d.ts +2 -2
  77. package/es/dialog/function-call.d.ts +1 -1
  78. package/es/dialog/index.d.ts +5 -0
  79. package/es/divider/Divider.d.ts +2 -2
  80. package/es/divider/index.d.ts +6 -1
  81. package/es/dropdown-item/DropdownItem.d.ts +2 -2
  82. package/es/dropdown-item/index.d.ts +6 -1
  83. package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
  84. package/es/dropdown-menu/index.d.ts +6 -1
  85. package/es/empty/Empty.d.ts +2 -2
  86. package/es/empty/index.d.ts +6 -1
  87. package/es/field/Field.d.ts +2 -2
  88. package/es/field/index.d.ts +6 -1
  89. package/es/field/types.d.ts +1 -1
  90. package/es/form/Form.d.ts +2 -2
  91. package/es/form/index.d.ts +6 -1
  92. package/es/grid/Grid.d.ts +2 -2
  93. package/es/grid/index.d.ts +6 -1
  94. package/es/grid-item/GridItem.d.ts +66 -5
  95. package/es/grid-item/GridItem.js +8 -6
  96. package/es/grid-item/index.d.ts +48 -2
  97. package/es/icon/Icon.d.ts +66 -5
  98. package/es/icon/Icon.js +7 -6
  99. package/es/icon/index.css +1 -1
  100. package/es/icon/index.d.ts +48 -2
  101. package/es/image/Image.d.ts +2 -2
  102. package/es/image/index.d.ts +6 -1
  103. package/es/image-preview/ImagePreview.d.ts +6 -2
  104. package/es/image-preview/ImagePreview.js +2 -1
  105. package/es/image-preview/ImagePreviewItem.d.ts +1 -1
  106. package/es/image-preview/function-call.d.ts +4 -1
  107. package/es/image-preview/function-call.js +1 -0
  108. package/es/image-preview/index.d.ts +5 -0
  109. package/es/image-preview/types.d.ts +1 -0
  110. package/es/index-anchor/IndexAnchor.d.ts +2 -2
  111. package/es/index-anchor/index.d.ts +6 -1
  112. package/es/index-bar/IndexBar.d.ts +2 -2
  113. package/es/index-bar/index.d.ts +6 -1
  114. package/es/index.d.ts +1 -1
  115. package/es/index.js +1 -1
  116. package/es/list/List.d.ts +2 -2
  117. package/es/list/index.d.ts +6 -1
  118. package/es/loading/Loading.d.ts +2 -2
  119. package/es/loading/index.d.ts +6 -1
  120. package/es/nav-bar/NavBar.d.ts +2 -2
  121. package/es/nav-bar/index.d.ts +6 -1
  122. package/es/notice-bar/NoticeBar.d.ts +2 -2
  123. package/es/notice-bar/index.d.ts +6 -1
  124. package/es/notify/Notify.d.ts +14 -3
  125. package/es/notify/Notify.js +2 -1
  126. package/es/notify/function-call.d.ts +9 -2
  127. package/es/notify/function-call.js +1 -0
  128. package/es/notify/index.d.ts +5 -0
  129. package/es/notify/types.d.ts +2 -0
  130. package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
  131. package/es/number-keyboard/NumberKeyboardKey.d.ts +3 -3
  132. package/es/number-keyboard/index.d.ts +6 -1
  133. package/es/overlay/Overlay.d.ts +2 -2
  134. package/es/overlay/index.d.ts +6 -1
  135. package/es/pagination/Pagination.d.ts +2 -2
  136. package/es/pagination/index.d.ts +6 -1
  137. package/es/password-input/PasswordInput.d.ts +2 -2
  138. package/es/password-input/index.d.ts +6 -1
  139. package/es/picker/Picker.d.ts +2 -2
  140. package/es/picker/Picker.js +21 -13
  141. package/es/picker/PickerColumn.d.ts +1 -1
  142. package/es/picker/index.d.ts +6 -1
  143. package/es/popover/Popover.d.ts +2 -2
  144. package/es/popover/Popover.js +19 -9
  145. package/es/popover/index.d.ts +6 -1
  146. package/es/popup/Popup.d.ts +3 -4
  147. package/es/popup/Popup.js +7 -4
  148. package/es/popup/index.d.ts +16 -10
  149. package/es/popup/shared.d.ts +1 -1
  150. package/es/popup/types.d.ts +5 -0
  151. package/es/popup/types.js +1 -0
  152. package/es/progress/Progress.d.ts +2 -2
  153. package/es/progress/index.d.ts +6 -1
  154. package/es/pull-refresh/PullRefresh.d.ts +2 -2
  155. package/es/pull-refresh/index.css +1 -1
  156. package/es/pull-refresh/index.d.ts +6 -1
  157. package/es/pull-refresh/index.less +0 -1
  158. package/es/radio/Radio.d.ts +2 -2
  159. package/es/radio/index.d.ts +6 -1
  160. package/es/radio-group/RadioGroup.d.ts +2 -2
  161. package/es/radio-group/index.d.ts +6 -1
  162. package/es/rate/Rate.d.ts +2 -2
  163. package/es/rate/index.d.ts +6 -1
  164. package/es/row/Row.d.ts +2 -2
  165. package/es/row/index.d.ts +6 -1
  166. package/es/search/Search.d.ts +8 -2
  167. package/es/search/Search.js +19 -1
  168. package/es/search/index.d.ts +12 -1
  169. package/es/share-sheet/ShareSheet.d.ts +2 -2
  170. package/es/share-sheet/index.d.ts +6 -1
  171. package/es/sidebar/Sidebar.d.ts +2 -2
  172. package/es/sidebar/index.d.ts +6 -1
  173. package/es/sidebar-item/SidebarItem.d.ts +65 -4
  174. package/es/sidebar-item/SidebarItem.js +7 -6
  175. package/es/sidebar-item/index.d.ts +47 -1
  176. package/es/skeleton/Skeleton.d.ts +2 -2
  177. package/es/skeleton/index.d.ts +6 -1
  178. package/es/slider/Slider.d.ts +4 -4
  179. package/es/slider/index.d.ts +8 -3
  180. package/es/step/Step.d.ts +1 -1
  181. package/es/step/Step.js +1 -1
  182. package/es/step/index.d.ts +6 -1
  183. package/es/stepper/Stepper.d.ts +2 -2
  184. package/es/stepper/index.d.ts +6 -1
  185. package/es/steps/Steps.d.ts +2 -2
  186. package/es/steps/index.d.ts +6 -1
  187. package/es/sticky/Sticky.d.ts +2 -2
  188. package/es/sticky/index.d.ts +6 -1
  189. package/es/submit-bar/SubmitBar.d.ts +2 -2
  190. package/es/submit-bar/index.d.ts +6 -1
  191. package/es/swipe/Swipe.d.ts +2 -2
  192. package/es/swipe/Swipe.js +34 -30
  193. package/es/swipe/index.d.ts +6 -1
  194. package/es/swipe-cell/SwipeCell.d.ts +2 -2
  195. package/es/swipe-cell/SwipeCell.js +8 -5
  196. package/es/swipe-cell/index.d.ts +6 -1
  197. package/es/swipe-item/SwipeItem.d.ts +1 -1
  198. package/es/swipe-item/index.d.ts +6 -1
  199. package/es/switch/Switch.d.ts +2 -2
  200. package/es/switch/index.d.ts +6 -1
  201. package/es/tab/Tab.d.ts +2 -2
  202. package/es/tab/index.d.ts +6 -1
  203. package/es/tabbar/Tabbar.d.ts +2 -2
  204. package/es/tabbar/index.d.ts +6 -1
  205. package/es/tabbar-item/TabbarItem.d.ts +65 -4
  206. package/es/tabbar-item/TabbarItem.js +6 -5
  207. package/es/tabbar-item/index.d.ts +47 -1
  208. package/es/tabs/Tabs.d.ts +7 -2
  209. package/es/tabs/Tabs.js +19 -11
  210. package/es/tabs/TabsContent.d.ts +1 -1
  211. package/es/tabs/TabsTitle.d.ts +6 -5
  212. package/es/tabs/TabsTitle.js +10 -5
  213. package/es/tabs/index.css +1 -1
  214. package/es/tabs/index.d.ts +10 -1
  215. package/es/tabs/index.less +43 -35
  216. package/es/tag/Tag.d.ts +2 -2
  217. package/es/tag/index.d.ts +6 -1
  218. package/es/toast/Toast.d.ts +2 -2
  219. package/es/toast/function-call.d.ts +2 -2
  220. package/es/toast/function-call.js +1 -1
  221. package/es/tree-select/TreeSelect.d.ts +2 -2
  222. package/es/tree-select/index.css +1 -1
  223. package/es/tree-select/index.d.ts +6 -1
  224. package/es/tree-select/index.less +1 -1
  225. package/es/uploader/Uploader.d.ts +3 -3
  226. package/es/uploader/UploaderPreviewItem.d.ts +2 -2
  227. package/es/uploader/index.d.ts +6 -1
  228. package/lib/action-bar/ActionBar.d.ts +2 -2
  229. package/lib/action-bar/index.d.ts +6 -1
  230. package/lib/action-bar-button/ActionBarButton.d.ts +4 -4
  231. package/lib/action-bar-button/index.d.ts +8 -3
  232. package/lib/action-bar-icon/ActionBarIcon.d.ts +69 -8
  233. package/lib/action-bar-icon/ActionBarIcon.js +7 -4
  234. package/lib/action-bar-icon/index.d.ts +49 -3
  235. package/lib/action-sheet/ActionSheet.d.ts +2 -2
  236. package/lib/action-sheet/ActionSheet.js +27 -15
  237. package/lib/action-sheet/index.d.ts +6 -1
  238. package/lib/address-edit/AddressEdit.d.ts +2 -2
  239. package/lib/address-edit/AddressEditDetail.d.ts +2 -2
  240. package/lib/address-edit/index.d.ts +6 -1
  241. package/lib/address-list/AddressList.d.ts +2 -2
  242. package/lib/address-list/AddressListItem.d.ts +2 -2
  243. package/lib/address-list/index.d.ts +6 -1
  244. package/lib/area/Area.d.ts +2 -2
  245. package/lib/area/index.d.ts +6 -1
  246. package/lib/badge/Badge.d.ts +3 -3
  247. package/lib/badge/index.d.ts +7 -2
  248. package/lib/button/Button.d.ts +4 -4
  249. package/lib/button/index.d.ts +8 -3
  250. package/lib/calendar/Calendar.d.ts +3 -3
  251. package/lib/calendar/CalendarDay.d.ts +2 -2
  252. package/lib/calendar/CalendarHeader.d.ts +1 -1
  253. package/lib/calendar/CalendarMonth.d.ts +4 -4
  254. package/lib/calendar/index.d.ts +7 -2
  255. package/lib/card/Card.d.ts +2 -2
  256. package/lib/card/index.d.ts +6 -1
  257. package/lib/cascader/Cascader.d.ts +2 -2
  258. package/lib/cascader/Cascader.js +1 -1
  259. package/lib/cascader/index.css +1 -1
  260. package/lib/cascader/index.d.ts +6 -1
  261. package/lib/cascader/index.less +0 -10
  262. package/lib/cell/Cell.d.ts +2 -2
  263. package/lib/cell/index.d.ts +6 -1
  264. package/lib/cell-group/CellGroup.d.ts +2 -2
  265. package/lib/cell-group/index.d.ts +6 -1
  266. package/lib/checkbox/Checkbox.d.ts +2 -2
  267. package/lib/checkbox/Checker.d.ts +2 -2
  268. package/lib/checkbox/index.d.ts +6 -1
  269. package/lib/checkbox-group/CheckboxGroup.d.ts +2 -2
  270. package/lib/checkbox-group/index.d.ts +6 -1
  271. package/lib/circle/Circle.d.ts +2 -2
  272. package/lib/circle/index.d.ts +6 -1
  273. package/lib/col/Col.d.ts +2 -2
  274. package/lib/col/index.d.ts +6 -1
  275. package/lib/collapse/Collapse.d.ts +2 -2
  276. package/lib/collapse/index.d.ts +6 -1
  277. package/lib/collapse-item/CollapseItem.d.ts +2 -2
  278. package/lib/collapse-item/index.d.ts +6 -1
  279. package/lib/composables/use-refs.js +9 -2
  280. package/lib/composables/use-route.d.ts +1 -1
  281. package/lib/composables/use-touch.js +7 -7
  282. package/lib/config-provider/ConfigProvider.d.ts +2 -2
  283. package/lib/config-provider/index.d.ts +6 -1
  284. package/lib/contact-card/ContactCard.d.ts +2 -2
  285. package/lib/contact-card/index.d.ts +6 -1
  286. package/lib/contact-edit/ContactEdit.d.ts +2 -2
  287. package/lib/contact-edit/index.d.ts +6 -1
  288. package/lib/contact-list/ContactList.d.ts +2 -2
  289. package/lib/contact-list/index.d.ts +6 -1
  290. package/lib/count-down/CountDown.d.ts +2 -2
  291. package/lib/count-down/index.d.ts +6 -1
  292. package/lib/coupon/Coupon.d.ts +2 -2
  293. package/lib/coupon/index.d.ts +6 -1
  294. package/lib/coupon-cell/CouponCell.d.ts +2 -2
  295. package/lib/coupon-cell/index.d.ts +6 -1
  296. package/lib/coupon-list/CouponList.d.ts +2 -2
  297. package/lib/coupon-list/index.d.ts +6 -1
  298. package/lib/datetime-picker/DatePicker.d.ts +1 -1
  299. package/lib/datetime-picker/DatetimePicker.d.ts +2 -2
  300. package/lib/datetime-picker/TimePicker.d.ts +1 -1
  301. package/lib/datetime-picker/index.d.ts +6 -1
  302. package/lib/datetime-picker/utils.d.ts +1 -1
  303. package/lib/dialog/Dialog.d.ts +2 -2
  304. package/lib/dialog/function-call.d.ts +1 -1
  305. package/lib/dialog/index.d.ts +5 -0
  306. package/lib/divider/Divider.d.ts +2 -2
  307. package/lib/divider/index.d.ts +6 -1
  308. package/lib/dropdown-item/DropdownItem.d.ts +2 -2
  309. package/lib/dropdown-item/index.d.ts +6 -1
  310. package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
  311. package/lib/dropdown-menu/index.d.ts +6 -1
  312. package/lib/empty/Empty.d.ts +2 -2
  313. package/lib/empty/index.d.ts +6 -1
  314. package/lib/field/Field.d.ts +2 -2
  315. package/lib/field/index.d.ts +6 -1
  316. package/lib/field/types.d.ts +1 -1
  317. package/lib/form/Form.d.ts +2 -2
  318. package/lib/form/index.d.ts +6 -1
  319. package/lib/grid/Grid.d.ts +2 -2
  320. package/lib/grid/index.d.ts +6 -1
  321. package/lib/grid-item/GridItem.d.ts +66 -5
  322. package/lib/grid-item/GridItem.js +7 -5
  323. package/lib/grid-item/index.d.ts +48 -2
  324. package/lib/icon/Icon.d.ts +66 -5
  325. package/lib/icon/Icon.js +5 -4
  326. package/lib/icon/index.css +1 -1
  327. package/lib/icon/index.d.ts +48 -2
  328. package/lib/image/Image.d.ts +2 -2
  329. package/lib/image/index.d.ts +6 -1
  330. package/lib/image-preview/ImagePreview.d.ts +6 -2
  331. package/lib/image-preview/ImagePreview.js +2 -1
  332. package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
  333. package/lib/image-preview/function-call.d.ts +4 -1
  334. package/lib/image-preview/function-call.js +1 -0
  335. package/lib/image-preview/index.d.ts +5 -0
  336. package/lib/image-preview/types.d.ts +1 -0
  337. package/lib/index-anchor/IndexAnchor.d.ts +2 -2
  338. package/lib/index-anchor/index.d.ts +6 -1
  339. package/lib/index-bar/IndexBar.d.ts +2 -2
  340. package/lib/index-bar/index.d.ts +6 -1
  341. package/lib/index.css +1 -1
  342. package/lib/index.d.ts +1 -1
  343. package/lib/index.js +1 -1
  344. package/lib/list/List.d.ts +2 -2
  345. package/lib/list/index.d.ts +6 -1
  346. package/lib/loading/Loading.d.ts +2 -2
  347. package/lib/loading/index.d.ts +6 -1
  348. package/lib/nav-bar/NavBar.d.ts +2 -2
  349. package/lib/nav-bar/index.d.ts +6 -1
  350. package/lib/notice-bar/NoticeBar.d.ts +2 -2
  351. package/lib/notice-bar/index.d.ts +6 -1
  352. package/lib/notify/Notify.d.ts +14 -3
  353. package/lib/notify/Notify.js +2 -1
  354. package/lib/notify/function-call.d.ts +9 -2
  355. package/lib/notify/function-call.js +1 -0
  356. package/lib/notify/index.d.ts +5 -0
  357. package/lib/notify/types.d.ts +2 -0
  358. package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
  359. package/lib/number-keyboard/NumberKeyboardKey.d.ts +3 -3
  360. package/lib/number-keyboard/index.d.ts +6 -1
  361. package/lib/overlay/Overlay.d.ts +2 -2
  362. package/lib/overlay/index.d.ts +6 -1
  363. package/lib/pagination/Pagination.d.ts +2 -2
  364. package/lib/pagination/index.d.ts +6 -1
  365. package/lib/password-input/PasswordInput.d.ts +2 -2
  366. package/lib/password-input/index.d.ts +6 -1
  367. package/lib/picker/Picker.d.ts +2 -2
  368. package/lib/picker/Picker.js +21 -13
  369. package/lib/picker/PickerColumn.d.ts +1 -1
  370. package/lib/picker/index.d.ts +6 -1
  371. package/lib/popover/Popover.d.ts +2 -2
  372. package/lib/popover/Popover.js +18 -8
  373. package/lib/popover/index.d.ts +6 -1
  374. package/lib/popup/Popup.d.ts +3 -4
  375. package/lib/popup/Popup.js +5 -3
  376. package/lib/popup/index.d.ts +16 -10
  377. package/lib/popup/shared.d.ts +1 -1
  378. package/lib/popup/types.d.ts +5 -0
  379. package/lib/popup/types.js +3 -0
  380. package/lib/progress/Progress.d.ts +2 -2
  381. package/lib/progress/index.d.ts +6 -1
  382. package/lib/pull-refresh/PullRefresh.d.ts +2 -2
  383. package/lib/pull-refresh/index.css +1 -1
  384. package/lib/pull-refresh/index.d.ts +6 -1
  385. package/lib/pull-refresh/index.less +0 -1
  386. package/lib/radio/Radio.d.ts +2 -2
  387. package/lib/radio/index.d.ts +6 -1
  388. package/lib/radio-group/RadioGroup.d.ts +2 -2
  389. package/lib/radio-group/index.d.ts +6 -1
  390. package/lib/rate/Rate.d.ts +2 -2
  391. package/lib/rate/index.d.ts +6 -1
  392. package/lib/row/Row.d.ts +2 -2
  393. package/lib/row/index.d.ts +6 -1
  394. package/lib/search/Search.d.ts +8 -2
  395. package/lib/search/Search.js +19 -1
  396. package/lib/search/index.d.ts +12 -1
  397. package/lib/share-sheet/ShareSheet.d.ts +2 -2
  398. package/lib/share-sheet/index.d.ts +6 -1
  399. package/lib/sidebar/Sidebar.d.ts +2 -2
  400. package/lib/sidebar/index.d.ts +6 -1
  401. package/lib/sidebar-item/SidebarItem.d.ts +65 -4
  402. package/lib/sidebar-item/SidebarItem.js +6 -5
  403. package/lib/sidebar-item/index.d.ts +47 -1
  404. package/lib/skeleton/Skeleton.d.ts +2 -2
  405. package/lib/skeleton/index.d.ts +6 -1
  406. package/lib/slider/Slider.d.ts +4 -4
  407. package/lib/slider/index.d.ts +8 -3
  408. package/lib/step/Step.d.ts +1 -1
  409. package/lib/step/Step.js +1 -1
  410. package/lib/step/index.d.ts +6 -1
  411. package/lib/stepper/Stepper.d.ts +2 -2
  412. package/lib/stepper/index.d.ts +6 -1
  413. package/lib/steps/Steps.d.ts +2 -2
  414. package/lib/steps/index.d.ts +6 -1
  415. package/lib/sticky/Sticky.d.ts +2 -2
  416. package/lib/sticky/index.d.ts +6 -1
  417. package/lib/submit-bar/SubmitBar.d.ts +2 -2
  418. package/lib/submit-bar/index.d.ts +6 -1
  419. package/lib/swipe/Swipe.d.ts +2 -2
  420. package/lib/swipe/Swipe.js +34 -30
  421. package/lib/swipe/index.d.ts +6 -1
  422. package/lib/swipe-cell/SwipeCell.d.ts +2 -2
  423. package/lib/swipe-cell/SwipeCell.js +8 -5
  424. package/lib/swipe-cell/index.d.ts +6 -1
  425. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  426. package/lib/swipe-item/index.d.ts +6 -1
  427. package/lib/switch/Switch.d.ts +2 -2
  428. package/lib/switch/index.d.ts +6 -1
  429. package/lib/tab/Tab.d.ts +2 -2
  430. package/lib/tab/index.d.ts +6 -1
  431. package/lib/tabbar/Tabbar.d.ts +2 -2
  432. package/lib/tabbar/index.d.ts +6 -1
  433. package/lib/tabbar-item/TabbarItem.d.ts +65 -4
  434. package/lib/tabbar-item/TabbarItem.js +5 -4
  435. package/lib/tabbar-item/index.d.ts +47 -1
  436. package/lib/tabs/Tabs.d.ts +7 -2
  437. package/lib/tabs/Tabs.js +18 -10
  438. package/lib/tabs/TabsContent.d.ts +1 -1
  439. package/lib/tabs/TabsTitle.d.ts +6 -5
  440. package/lib/tabs/TabsTitle.js +10 -5
  441. package/lib/tabs/index.css +1 -1
  442. package/lib/tabs/index.d.ts +10 -1
  443. package/lib/tabs/index.less +43 -35
  444. package/lib/tag/Tag.d.ts +2 -2
  445. package/lib/tag/index.d.ts +6 -1
  446. package/lib/toast/Toast.d.ts +2 -2
  447. package/lib/toast/function-call.d.ts +2 -2
  448. package/lib/tree-select/TreeSelect.d.ts +2 -2
  449. package/lib/tree-select/index.css +1 -1
  450. package/lib/tree-select/index.d.ts +6 -1
  451. package/lib/tree-select/index.less +1 -1
  452. package/lib/uploader/Uploader.d.ts +3 -3
  453. package/lib/uploader/UploaderPreviewItem.d.ts +2 -2
  454. package/lib/uploader/index.d.ts +6 -1
  455. package/lib/vant.cjs.js +190 -117
  456. package/lib/vant.cjs.min.js +1 -1
  457. package/lib/vant.es.js +191 -118
  458. package/lib/vant.es.min.js +191 -118
  459. package/lib/vant.js +190 -117
  460. package/lib/vant.min.js +1 -1
  461. package/package.json +1 -1
  462. package/vetur/attributes.json +178 -147
  463. package/vetur/tags.json +48 -41
  464. package/vetur/web-types.json +491 -403
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vant",
3
- "version": "3.3.7",
3
+ "version": "3.4.0",
4
4
  "description": "Mobile UI Components built on Vue",
5
5
  "main": "lib/vant.cjs.js",
6
6
  "module": "es/index.js",
@@ -34,6 +34,10 @@
34
34
  "type": "number | string",
35
35
  "description": "图标右上角徽标的内容, 默认值: -"
36
36
  },
37
+ "van-action-bar-icon/badge-props": {
38
+ "type": "BadgeProps",
39
+ "description": "自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props), 默认值: -"
40
+ },
37
41
  "van-action-bar-icon/url": {
38
42
  "type": "string",
39
43
  "description": "点击后跳转的链接地址, 默认值: -"
@@ -60,7 +64,7 @@
60
64
  },
61
65
  "van-action-bar-button/icon": {
62
66
  "type": "string",
63
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
67
+ "description": "左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
64
68
  },
65
69
  "van-action-bar-button/disabled": {
66
70
  "type": "boolean",
@@ -82,6 +86,34 @@
82
86
  "type": "boolean",
83
87
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
84
88
  },
89
+ "van-address-list/v-model": {
90
+ "type": "string",
91
+ "description": "当前选中地址的 id, 默认值: -"
92
+ },
93
+ "van-address-list/list": {
94
+ "type": "AddressListAddress[]",
95
+ "description": "地址列表, 默认值: `[]`"
96
+ },
97
+ "van-address-list/disabled-list": {
98
+ "type": "AddressListAddress[]",
99
+ "description": "不可配送地址列表, 默认值: `[]`"
100
+ },
101
+ "van-address-list/disabled-text": {
102
+ "type": "string",
103
+ "description": "不可配送提示文案, 默认值: -"
104
+ },
105
+ "van-address-list/switchable": {
106
+ "type": "boolean",
107
+ "description": "是否允许切换地址, 默认值: `true`"
108
+ },
109
+ "van-address-list/add-button-text": {
110
+ "type": "string",
111
+ "description": "底部按钮文字, 默认值: `新增地址`"
112
+ },
113
+ "van-address-list/default-tag-text": {
114
+ "type": "string",
115
+ "description": "默认地址标签文字, 默认值: -"
116
+ },
85
117
  "van-address-edit/area-list": {
86
118
  "type": "object",
87
119
  "description": "地区列表, 默认值: -"
@@ -170,6 +202,58 @@
170
202
  "type": "(key, val) => string",
171
203
  "description": "自定义校验函数, 默认值: -"
172
204
  },
205
+ "van-area/value": {
206
+ "type": "string",
207
+ "description": "当前选中项对应的地区码, 默认值: -"
208
+ },
209
+ "van-area/title": {
210
+ "type": "string",
211
+ "description": "顶部栏标题, 默认值: -"
212
+ },
213
+ "van-area/confirm-button-text": {
214
+ "type": "string",
215
+ "description": "确认按钮文字, 默认值: `确认`"
216
+ },
217
+ "van-area/cancel-button-text": {
218
+ "type": "string",
219
+ "description": "取消按钮文字, 默认值: `取消`"
220
+ },
221
+ "van-area/area-list": {
222
+ "type": "object",
223
+ "description": "省市区数据,格式见下方, 默认值: -"
224
+ },
225
+ "van-area/columns-placeholder": {
226
+ "type": "string[]",
227
+ "description": "列占位提示文字, 默认值: `[]`"
228
+ },
229
+ "van-area/loading": {
230
+ "type": "boolean",
231
+ "description": "是否显示加载状态, 默认值: `false`"
232
+ },
233
+ "van-area/readonly": {
234
+ "type": "boolean",
235
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
236
+ },
237
+ "van-area/item-height": {
238
+ "type": "number | string",
239
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
240
+ },
241
+ "van-area/columns-num": {
242
+ "type": "number | string",
243
+ "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
244
+ },
245
+ "van-area/visible-item-count": {
246
+ "type": "number | string",
247
+ "description": "可见的选项个数, 默认值: `6`"
248
+ },
249
+ "van-area/swipe-duration": {
250
+ "type": "number | string",
251
+ "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
252
+ },
253
+ "van-area/is-oversea-code": {
254
+ "type": "() => boolean",
255
+ "description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
256
+ },
173
257
  "van-action-sheet/v-model:show": {
174
258
  "type": "boolean",
175
259
  "description": "是否显示动作面板, 默认值: `false`"
@@ -196,7 +280,7 @@
196
280
  },
197
281
  "van-action-sheet/close-icon": {
198
282
  "type": "string",
199
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
283
+ "description": "关闭图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `cross`"
200
284
  },
201
285
  "van-action-sheet/duration": {
202
286
  "type": "number | string",
@@ -253,86 +337,6 @@
253
337
  "type": "(action: string) => boolean | Promise\\<boolean\\>",
254
338
  "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise, 默认值: -"
255
339
  },
256
- "van-address-list/v-model": {
257
- "type": "string",
258
- "description": "当前选中地址的 id, 默认值: -"
259
- },
260
- "van-address-list/list": {
261
- "type": "AddressListAddress[]",
262
- "description": "地址列表, 默认值: `[]`"
263
- },
264
- "van-address-list/disabled-list": {
265
- "type": "AddressListAddress[]",
266
- "description": "不可配送地址列表, 默认值: `[]`"
267
- },
268
- "van-address-list/disabled-text": {
269
- "type": "string",
270
- "description": "不可配送提示文案, 默认值: -"
271
- },
272
- "van-address-list/switchable": {
273
- "type": "boolean",
274
- "description": "是否允许切换地址, 默认值: `true`"
275
- },
276
- "van-address-list/add-button-text": {
277
- "type": "string",
278
- "description": "底部按钮文字, 默认值: `新增地址`"
279
- },
280
- "van-address-list/default-tag-text": {
281
- "type": "string",
282
- "description": "默认地址标签文字, 默认值: -"
283
- },
284
- "van-area/value": {
285
- "type": "string",
286
- "description": "当前选中项对应的地区码, 默认值: -"
287
- },
288
- "van-area/title": {
289
- "type": "string",
290
- "description": "顶部栏标题, 默认值: -"
291
- },
292
- "van-area/confirm-button-text": {
293
- "type": "string",
294
- "description": "确认按钮文字, 默认值: `确认`"
295
- },
296
- "van-area/cancel-button-text": {
297
- "type": "string",
298
- "description": "取消按钮文字, 默认值: `取消`"
299
- },
300
- "van-area/area-list": {
301
- "type": "object",
302
- "description": "省市区数据,格式见下方, 默认值: -"
303
- },
304
- "van-area/columns-placeholder": {
305
- "type": "string[]",
306
- "description": "列占位提示文字, 默认值: `[]`"
307
- },
308
- "van-area/loading": {
309
- "type": "boolean",
310
- "description": "是否显示加载状态, 默认值: `false`"
311
- },
312
- "van-area/readonly": {
313
- "type": "boolean",
314
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
315
- },
316
- "van-area/item-height": {
317
- "type": "number | string",
318
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
319
- },
320
- "van-area/columns-num": {
321
- "type": "number | string",
322
- "description": "显示列数,3-省市区,2-省市,1-省, 默认值: `3`"
323
- },
324
- "van-area/visible-item-count": {
325
- "type": "number | string",
326
- "description": "可见的选项个数, 默认值: `6`"
327
- },
328
- "van-area/swipe-duration": {
329
- "type": "number | string",
330
- "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
331
- },
332
- "van-area/is-oversea-code": {
333
- "type": "() => boolean",
334
- "description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
335
- },
336
340
  "van-badge/content": {
337
341
  "type": "number | string",
338
342
  "description": "徽标内容, 默认值: -"
@@ -382,7 +386,7 @@
382
386
  },
383
387
  "van-button/icon": {
384
388
  "type": "string",
385
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
389
+ "description": "左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
386
390
  },
387
391
  "van-button/icon-prefix": {
388
392
  "type": "string",
@@ -645,7 +649,7 @@
645
649
  },
646
650
  "van-cascader/close-icon": {
647
651
  "type": "string",
648
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
652
+ "description": "关闭图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `cross`"
649
653
  },
650
654
  "van-cascader/field-names": {
651
655
  "type": "object",
@@ -681,7 +685,7 @@
681
685
  },
682
686
  "van-cell/icon": {
683
687
  "type": "string",
684
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
688
+ "description": "左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
685
689
  },
686
690
  "van-cell/icon-prefix": {
687
691
  "type": "string",
@@ -912,7 +916,7 @@
912
916
  },
913
917
  "van-collapse-item/icon": {
914
918
  "type": "string",
915
- "description": "标题栏左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
919
+ "description": "标题栏左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
916
920
  },
917
921
  "van-collapse-item/size": {
918
922
  "type": "string",
@@ -1410,8 +1414,8 @@
1410
1414
  "description": "输入框 id,同时会设置 label 的 for 属性, 默认值: `van-field-n-input`"
1411
1415
  },
1412
1416
  "van-field/type": {
1413
- "type": "string",
1414
- "description": "输入框类型, 可选值为 `tel` `digit`<br>`number` `textarea` `password` 等, 默认值: `text`"
1417
+ "type": "FieldType",
1418
+ "description": "输入框类型, 支持原生 input 标签的所有 [type 属性](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#%3Cinput%3E_types),额外支持了 `digit` 类型, 默认值: `text`"
1415
1419
  },
1416
1420
  "van-field/size": {
1417
1421
  "type": "string",
@@ -1455,10 +1459,10 @@
1455
1459
  },
1456
1460
  "van-field/clear-icon": {
1457
1461
  "type": "string",
1458
- "description": "清除[图标名称](#/zh-CN/icon)或图片链接, 默认值: `clear`"
1462
+ "description": "清除图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `clear`"
1459
1463
  },
1460
1464
  "van-field/clear-trigger": {
1461
- "type": "string",
1465
+ "type": "FieldClearTrigger",
1462
1466
  "description": "显示清除图标的时机,`always` 表示输入框不为空时展示,<br>`focus` 表示输入框聚焦且不为空时展示, 默认值: `focus`"
1463
1467
  },
1464
1468
  "van-field/clickable": {
@@ -1486,7 +1490,7 @@
1486
1490
  "description": "底部错误提示文案,为空时不展示, 默认值: -"
1487
1491
  },
1488
1492
  "van-field/error-message-align": {
1489
- "type": "string",
1493
+ "type": "FieldTextAlign",
1490
1494
  "description": "错误提示文案对齐方式,可选值为 `center` `right`, 默认值: `left`"
1491
1495
  },
1492
1496
  "van-field/formatter": {
@@ -1494,7 +1498,7 @@
1494
1498
  "description": "输入内容格式化函数, 默认值: -"
1495
1499
  },
1496
1500
  "van-field/format-trigger": {
1497
- "type": "string",
1501
+ "type": "FieldFormatTrigger",
1498
1502
  "description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
1499
1503
  },
1500
1504
  "van-field/arrow-direction": {
@@ -1513,31 +1517,31 @@
1513
1517
  "description": "左侧文本宽度,默认单位为 `px`, 默认值: `6.2em`"
1514
1518
  },
1515
1519
  "van-field/label-align": {
1516
- "type": "string",
1520
+ "type": "FieldTextAlign",
1517
1521
  "description": "左侧文本对齐方式,可选值为 `center` `right`, 默认值: `left`"
1518
1522
  },
1519
1523
  "van-field/input-align": {
1520
- "type": "string",
1524
+ "type": "FieldTextAlign",
1521
1525
  "description": "输入框对齐方式,可选值为 `center` `right`, 默认值: `left`"
1522
1526
  },
1523
1527
  "van-field/autosize": {
1524
- "type": "boolean | object",
1528
+ "type": "boolean | FieldAutosizeConfig",
1525
1529
  "description": "是否自适应内容高度,只对 textarea 有效,<br>可传入对象,如 { maxHeight: 100, minHeight: 50 },<br>单位为`px`, 默认值: `false`"
1526
1530
  },
1527
1531
  "van-field/left-icon": {
1528
1532
  "type": "string",
1529
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1533
+ "description": "左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
1530
1534
  },
1531
1535
  "van-field/right-icon": {
1532
1536
  "type": "string",
1533
- "description": "右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1537
+ "description": "右侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
1534
1538
  },
1535
1539
  "van-field/icon-prefix": {
1536
1540
  "type": "string",
1537
1541
  "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1538
1542
  },
1539
1543
  "van-field/rules": {
1540
- "type": "Rule[]",
1544
+ "type": "FieldRule[]",
1541
1545
  "description": "表单校验规则,详见 [Form 组件](#/zh-CN/form#rule-shu-ju-jie-gou), 默认值: -"
1542
1546
  },
1543
1547
  "van-field/autocomplete": {
@@ -1634,7 +1638,7 @@
1634
1638
  },
1635
1639
  "van-grid-item/icon": {
1636
1640
  "type": "string",
1637
- "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1641
+ "description": "图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
1638
1642
  },
1639
1643
  "van-grid-item/icon-prefix": {
1640
1644
  "type": "string",
@@ -1656,6 +1660,10 @@
1656
1660
  "type": "number | string",
1657
1661
  "description": "图标右上角徽标的内容, 默认值: -"
1658
1662
  },
1663
+ "van-grid-item/badge-props": {
1664
+ "type": "BadgeProps",
1665
+ "description": "自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props), 默认值: -"
1666
+ },
1659
1667
  "van-grid-item/url": {
1660
1668
  "type": "string",
1661
1669
  "description": "点击后跳转的链接地址, 默认值: -"
@@ -1680,6 +1688,10 @@
1680
1688
  "type": "number | string",
1681
1689
  "description": "图标右上角徽标的内容, 默认值: -"
1682
1690
  },
1691
+ "van-icon/badge-props": {
1692
+ "type": "BadgeProps",
1693
+ "description": "自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props), 默认值: -"
1694
+ },
1683
1695
  "van-icon/color": {
1684
1696
  "type": "string",
1685
1697
  "description": "图标颜色, 默认值: `inherit`"
@@ -1738,11 +1750,11 @@
1738
1750
  },
1739
1751
  "van-image/error-icon": {
1740
1752
  "type": "string",
1741
- "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
1753
+ "description": "失败时提示的图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `photo-fail`"
1742
1754
  },
1743
1755
  "van-image/loading-icon": {
1744
1756
  "type": "string",
1745
- "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
1757
+ "description": "加载时提示的图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `photo`"
1746
1758
  },
1747
1759
  "van-image/icon-size": {
1748
1760
  "type": "number | string",
@@ -1819,6 +1831,13 @@
1819
1831
  "type": "string",
1820
1832
  "description": "动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性, 默认值: `van-fade`"
1821
1833
  },
1834
+ "van-image-preview/overlay-class": {
1835
+ "type": "string | Array \\",
1836
+ "description": "自定义遮罩层类名, 默认值: object_",
1837
+ "options": [
1838
+ "-"
1839
+ ]
1840
+ },
1822
1841
  "van-image-preview/overlay-style": {
1823
1842
  "type": "object",
1824
1843
  "description": "自定义遮罩层样式, 默认值: -"
@@ -1969,7 +1988,7 @@
1969
1988
  },
1970
1989
  "van-notice-bar/left-icon": {
1971
1990
  "type": "string",
1972
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1991
+ "description": "左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
1973
1992
  },
1974
1993
  "van-notice-bar/delay": {
1975
1994
  "type": "number | string",
@@ -2315,7 +2334,7 @@
2315
2334
  },
2316
2335
  "van-popup/close-icon": {
2317
2336
  "type": "string",
2318
- "description": "关闭[图标名称](#/zh-CN/icon)或图片链接, 默认值: `cross`"
2337
+ "description": "关闭图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `cross`"
2319
2338
  },
2320
2339
  "van-popup/close-icon-position": {
2321
2340
  "type": "string",
@@ -2345,42 +2364,6 @@
2345
2364
  "type": "boolean",
2346
2365
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
2347
2366
  },
2348
- "van-progress/percentage": {
2349
- "type": "number | string",
2350
- "description": "进度百分比, 默认值: `0`"
2351
- },
2352
- "van-progress/stroke-width": {
2353
- "type": "number | string",
2354
- "description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
2355
- },
2356
- "van-progress/color": {
2357
- "type": "string",
2358
- "description": "进度条颜色, 默认值: `#1989fa`"
2359
- },
2360
- "van-progress/track-color": {
2361
- "type": "string",
2362
- "description": "轨道颜色, 默认值: `#e5e5e5`"
2363
- },
2364
- "van-progress/pivot-text": {
2365
- "type": "string",
2366
- "description": "进度文字内容, 默认值: 百分比"
2367
- },
2368
- "van-progress/pivot-color": {
2369
- "type": "string",
2370
- "description": "进度文字背景色, 默认值: 同进度条颜色"
2371
- },
2372
- "van-progress/text-color": {
2373
- "type": "string",
2374
- "description": "进度文字颜色, 默认值: `white`"
2375
- },
2376
- "van-progress/inactive": {
2377
- "type": "boolean",
2378
- "description": "是否置灰, 默认值: `false`"
2379
- },
2380
- "van-progress/show-pivot": {
2381
- "type": "boolean",
2382
- "description": "是否显示进度文字, 默认值: `true`"
2383
- },
2384
2367
  "van-pull-refresh/v-model": {
2385
2368
  "type": "boolean",
2386
2369
  "description": "是否处于加载中状态, 默认值: -"
@@ -2421,6 +2404,42 @@
2421
2404
  "type": "boolean",
2422
2405
  "description": "是否禁用下拉刷新, 默认值: `false`"
2423
2406
  },
2407
+ "van-progress/percentage": {
2408
+ "type": "number | string",
2409
+ "description": "进度百分比, 默认值: `0`"
2410
+ },
2411
+ "van-progress/stroke-width": {
2412
+ "type": "number | string",
2413
+ "description": "进度条粗细,默认单位为`px`, 默认值: `4px`"
2414
+ },
2415
+ "van-progress/color": {
2416
+ "type": "string",
2417
+ "description": "进度条颜色, 默认值: `#1989fa`"
2418
+ },
2419
+ "van-progress/track-color": {
2420
+ "type": "string",
2421
+ "description": "轨道颜色, 默认值: `#e5e5e5`"
2422
+ },
2423
+ "van-progress/pivot-text": {
2424
+ "type": "string",
2425
+ "description": "进度文字内容, 默认值: 百分比"
2426
+ },
2427
+ "van-progress/pivot-color": {
2428
+ "type": "string",
2429
+ "description": "进度文字背景色, 默认值: 同进度条颜色"
2430
+ },
2431
+ "van-progress/text-color": {
2432
+ "type": "string",
2433
+ "description": "进度文字颜色, 默认值: `white`"
2434
+ },
2435
+ "van-progress/inactive": {
2436
+ "type": "boolean",
2437
+ "description": "是否置灰, 默认值: `false`"
2438
+ },
2439
+ "van-progress/show-pivot": {
2440
+ "type": "boolean",
2441
+ "description": "是否显示进度文字, 默认值: `true`"
2442
+ },
2424
2443
  "van-radio/name": {
2425
2444
  "type": "any",
2426
2445
  "description": "标识符, 默认值: -"
@@ -2499,11 +2518,11 @@
2499
2518
  },
2500
2519
  "van-rate/icon": {
2501
2520
  "type": "string",
2502
- "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star`"
2521
+ "description": "选中时的图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `star`"
2503
2522
  },
2504
2523
  "van-rate/void-icon": {
2505
2524
  "type": "string",
2506
- "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
2525
+ "description": "未选中时的图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `star-o`"
2507
2526
  },
2508
2527
  "van-rate/icon-prefix": {
2509
2528
  "type": "string",
@@ -2563,7 +2582,7 @@
2563
2582
  },
2564
2583
  "van-search/clear-icon": {
2565
2584
  "type": "string",
2566
- "description": "清除[图标名称](#/zh-CN/icon)或图片链接, 默认值: `clear`"
2585
+ "description": "清除图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `clear`"
2567
2586
  },
2568
2587
  "van-search/clear-trigger": {
2569
2588
  "type": "string",
@@ -2611,11 +2630,11 @@
2611
2630
  },
2612
2631
  "van-search/left-icon": {
2613
2632
  "type": "string",
2614
- "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
2633
+ "description": "输入框左侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `search`"
2615
2634
  },
2616
2635
  "van-search/right-icon": {
2617
2636
  "type": "string",
2618
- "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
2637
+ "description": "输入框右侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
2619
2638
  },
2620
2639
  "van-search/autocomplete": {
2621
2640
  "type": "string",
@@ -2708,6 +2727,10 @@
2708
2727
  "type": "number | string",
2709
2728
  "description": "图标右上角徽标的内容, 默认值: -"
2710
2729
  },
2730
+ "van-sidebar-item/badge-props": {
2731
+ "type": "BadgeProps",
2732
+ "description": "自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props), 默认值: -"
2733
+ },
2711
2734
  "van-sidebar-item/disabled": {
2712
2735
  "type": "boolean",
2713
2736
  "description": "是否禁用该项, 默认值: `false`"
@@ -3000,7 +3023,7 @@
3000
3023
  },
3001
3024
  "van-submit-bar/tip-icon": {
3002
3025
  "type": "string",
3003
- "description": "提示文案左侧的[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
3026
+ "description": "提示文案左侧的图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
3004
3027
  },
3005
3028
  "van-submit-bar/currency": {
3006
3029
  "type": "string",
@@ -3166,6 +3189,10 @@
3166
3189
  "type": "boolean",
3167
3190
  "description": "是否使用粘性布局, 默认值: `false`"
3168
3191
  },
3192
+ "van-tabs/shrink": {
3193
+ "type": "boolean",
3194
+ "description": "是否开启左侧收缩布局, 默认值: `false`"
3195
+ },
3169
3196
  "van-tabs/swipeable": {
3170
3197
  "type": "boolean",
3171
3198
  "description": "是否开启手势左右滑动切换, 默认值: `false`"
@@ -3300,7 +3327,7 @@
3300
3327
  },
3301
3328
  "van-tabbar-item/icon": {
3302
3329
  "type": "string",
3303
- "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
3330
+ "description": "图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: -"
3304
3331
  },
3305
3332
  "van-tabbar-item/icon-prefix": {
3306
3333
  "type": "string",
@@ -3314,6 +3341,10 @@
3314
3341
  "type": "number | string",
3315
3342
  "description": "图标右上角徽标的内容, 默认值: -"
3316
3343
  },
3344
+ "van-tabbar-item/badge-props": {
3345
+ "type": "BadgeProps",
3346
+ "description": "自定义徽标的属性,传入的对象会被透传给 [Badge 组件的 props](#/zh-CN/badge#props), 默认值: -"
3347
+ },
3317
3348
  "van-tabbar-item/url": {
3318
3349
  "type": "string",
3319
3350
  "description": "点击后跳转的链接地址, 默认值: -"
@@ -3482,6 +3513,6 @@
3482
3513
  },
3483
3514
  "van-uploader/upload-icon": {
3484
3515
  "type": "string",
3485
- "description": "上传区域[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photograph`"
3516
+ "description": "上传区域图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props), 默认值: `photograph`"
3486
3517
  }
3487
3518
  }