vant 3.2.4 → 3.2.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 (1081) hide show
  1. package/es/action-bar/ActionBar.d.ts +8 -0
  2. package/es/action-bar/ActionBar.js +8 -6
  3. package/es/action-bar/index.css +1 -1
  4. package/es/action-bar/index.d.ts +1 -0
  5. package/es/action-bar/index.less +1 -1
  6. package/es/action-bar/var.less +1 -1
  7. package/es/action-bar-button/ActionBarButton.d.ts +14 -1
  8. package/es/action-bar-button/ActionBarButton.js +13 -11
  9. package/es/action-bar-button/index.d.ts +1 -0
  10. package/es/action-bar-icon/ActionBarIcon.d.ts +15 -0
  11. package/es/action-bar-icon/ActionBarIcon.js +17 -15
  12. package/es/action-bar-icon/index.css +1 -1
  13. package/es/action-bar-icon/index.d.ts +1 -0
  14. package/es/action-bar-icon/index.less +1 -1
  15. package/es/action-bar-icon/var.less +1 -1
  16. package/es/action-sheet/ActionSheet.d.ts +76 -13
  17. package/es/action-sheet/ActionSheet.js +25 -33
  18. package/es/action-sheet/index.css +1 -1
  19. package/es/action-sheet/index.d.ts +18 -11
  20. package/es/action-sheet/index.less +2 -7
  21. package/es/action-sheet/var.less +4 -5
  22. package/es/address-edit/AddressEdit.d.ts +16 -18
  23. package/es/address-edit/AddressEdit.js +17 -32
  24. package/es/address-edit/AddressEditDetail.js +12 -12
  25. package/es/address-edit/index.css +1 -1
  26. package/es/address-edit/index.d.ts +8 -9
  27. package/es/address-edit/index.less +2 -2
  28. package/es/address-edit/style/index.js +0 -3
  29. package/es/address-edit/style/less.js +0 -3
  30. package/es/address-list/AddressList.d.ts +25 -6
  31. package/es/address-list/AddressList.js +19 -26
  32. package/es/address-list/AddressListItem.d.ts +4 -4
  33. package/es/address-list/AddressListItem.js +9 -10
  34. package/es/address-list/index.css +1 -1
  35. package/es/address-list/index.d.ts +9 -8
  36. package/es/address-list/index.less +2 -2
  37. package/es/address-list/var.less +2 -2
  38. package/es/area/Area.d.ts +45 -46
  39. package/es/area/Area.js +24 -21
  40. package/es/area/index.d.ts +28 -29
  41. package/es/badge/Badge.d.ts +23 -7
  42. package/es/badge/Badge.js +18 -18
  43. package/es/badge/index.css +1 -1
  44. package/es/badge/index.d.ts +9 -8
  45. package/es/badge/index.less +5 -3
  46. package/es/button/Button.d.ts +59 -19
  47. package/es/button/Button.js +30 -42
  48. package/es/button/index.css +1 -1
  49. package/es/button/index.d.ts +32 -31
  50. package/es/button/types.d.ts +5 -0
  51. package/es/button/types.js +1 -0
  52. package/es/button/var.less +1 -1
  53. package/es/calendar/Calendar.d.ts +48 -49
  54. package/es/calendar/Calendar.js +53 -45
  55. package/es/calendar/CalendarDay.d.ts +7 -7
  56. package/es/calendar/CalendarDay.js +9 -14
  57. package/es/calendar/CalendarHeader.js +6 -4
  58. package/es/calendar/CalendarMonth.d.ts +20 -20
  59. package/es/calendar/CalendarMonth.js +15 -23
  60. package/es/calendar/index.css +1 -1
  61. package/es/calendar/index.d.ts +29 -30
  62. package/es/calendar/index.less +3 -3
  63. package/es/calendar/types.d.ts +1 -1
  64. package/es/calendar/utils.d.ts +2 -2
  65. package/es/calendar/utils.js +1 -3
  66. package/es/calendar/var.less +2 -2
  67. package/es/card/Card.d.ts +21 -3
  68. package/es/card/Card.js +21 -21
  69. package/es/card/index.css +1 -1
  70. package/es/card/index.d.ts +5 -4
  71. package/es/card/index.less +1 -1
  72. package/es/card/var.less +3 -3
  73. package/es/cascader/Cascader.d.ts +33 -22
  74. package/es/cascader/Cascader.js +79 -72
  75. package/es/cascader/index.css +1 -1
  76. package/es/cascader/index.d.ts +19 -18
  77. package/es/cascader/index.less +0 -5
  78. package/es/cascader/types.d.ts +18 -0
  79. package/es/cascader/types.js +1 -0
  80. package/es/cascader/var.less +2 -3
  81. package/es/cell/Cell.d.ts +35 -5
  82. package/es/cell/Cell.js +12 -17
  83. package/es/cell/index.css +1 -1
  84. package/es/cell/index.d.ts +3 -3
  85. package/es/cell/index.less +1 -1
  86. package/es/cell/var.less +3 -3
  87. package/es/cell-group/CellGroup.d.ts +10 -0
  88. package/es/cell-group/CellGroup.js +12 -9
  89. package/es/cell-group/index.css +1 -1
  90. package/es/cell-group/index.d.ts +1 -0
  91. package/es/cell-group/index.less +1 -1
  92. package/es/cell-group/var.less +2 -2
  93. package/es/checkbox/Checkbox.d.ts +11 -11
  94. package/es/checkbox/Checkbox.js +12 -7
  95. package/es/checkbox/Checker.d.ts +14 -14
  96. package/es/checkbox/Checker.js +12 -24
  97. package/es/checkbox/index.css +1 -1
  98. package/es/checkbox/index.d.ts +7 -8
  99. package/es/checkbox/types.d.ts +3 -0
  100. package/es/checkbox/var.less +1 -1
  101. package/es/checkbox-group/CheckboxGroup.d.ts +8 -8
  102. package/es/checkbox-group/CheckboxGroup.js +17 -15
  103. package/es/checkbox-group/index.d.ts +6 -7
  104. package/es/checkbox-group/types.d.ts +2 -1
  105. package/es/circle/Circle.d.ts +50 -14
  106. package/es/circle/Circle.js +22 -40
  107. package/es/circle/index.d.ts +23 -23
  108. package/es/col/Col.d.ts +17 -5
  109. package/es/col/Col.js +11 -15
  110. package/es/col/index.d.ts +4 -3
  111. package/es/collapse/Collapse.d.ts +13 -1
  112. package/es/collapse/Collapse.js +14 -12
  113. package/es/collapse/index.d.ts +1 -0
  114. package/es/collapse-item/CollapseItem.d.ts +5 -5
  115. package/es/collapse-item/CollapseItem.js +15 -10
  116. package/es/collapse-item/index.css +1 -1
  117. package/es/collapse-item/index.d.ts +3 -4
  118. package/es/collapse-item/index.less +1 -1
  119. package/es/collapse-item/var.less +3 -3
  120. package/es/composables/use-lock-scroll.js +3 -3
  121. package/es/composables/use-placeholder.d.ts +1 -1
  122. package/es/config-provider/ConfigProvider.d.ts +14 -5
  123. package/es/config-provider/ConfigProvider.js +11 -12
  124. package/es/config-provider/index.d.ts +6 -5
  125. package/es/contact-card/ContactCard.d.ts +19 -5
  126. package/es/contact-card/ContactCard.js +14 -14
  127. package/es/contact-card/index.css +1 -1
  128. package/es/contact-card/index.d.ts +6 -6
  129. package/es/contact-card/index.less +2 -2
  130. package/es/contact-edit/ContactEdit.d.ts +17 -1
  131. package/es/contact-edit/ContactEdit.js +21 -22
  132. package/es/contact-edit/index.d.ts +1 -1
  133. package/es/contact-edit/style/index.js +0 -5
  134. package/es/contact-edit/style/less.js +0 -5
  135. package/es/contact-list/ContactList.d.ts +8 -1
  136. package/es/contact-list/ContactList.js +12 -9
  137. package/es/contact-list/index.css +1 -1
  138. package/es/contact-list/index.d.ts +1 -1
  139. package/es/contact-list/index.less +1 -1
  140. package/es/count-down/CountDown.d.ts +15 -15
  141. package/es/count-down/CountDown.js +11 -16
  142. package/es/count-down/index.d.ts +11 -12
  143. package/es/coupon/Coupon.d.ts +3 -3
  144. package/es/coupon/Coupon.js +4 -23
  145. package/es/coupon/index.css +1 -1
  146. package/es/coupon/index.d.ts +3 -3
  147. package/es/coupon/index.less +3 -2
  148. package/es/coupon/utils.d.ts +3 -0
  149. package/es/coupon/utils.js +7 -0
  150. package/es/coupon/var.less +3 -2
  151. package/es/coupon-cell/CouponCell.d.ts +27 -3
  152. package/es/coupon-cell/CouponCell.js +18 -22
  153. package/es/coupon-cell/index.d.ts +2 -1
  154. package/es/coupon-list/CouponList.d.ts +89 -35
  155. package/es/coupon-list/CouponList.js +28 -50
  156. package/es/coupon-list/index.css +1 -1
  157. package/es/coupon-list/index.d.ts +44 -43
  158. package/es/coupon-list/index.less +4 -4
  159. package/es/coupon-list/var.less +1 -1
  160. package/es/datetime-picker/DatePicker.d.ts +23 -25
  161. package/es/datetime-picker/DatePicker.js +15 -15
  162. package/es/datetime-picker/DatetimePicker.d.ts +3 -12
  163. package/es/datetime-picker/DatetimePicker.js +10 -9
  164. package/es/datetime-picker/TimePicker.d.ts +16 -16
  165. package/es/datetime-picker/TimePicker.js +19 -28
  166. package/es/datetime-picker/index.d.ts +1 -10
  167. package/es/datetime-picker/utils.d.ts +9 -9
  168. package/es/datetime-picker/utils.js +4 -6
  169. package/es/dialog/Dialog.d.ts +59 -5
  170. package/es/dialog/Dialog.js +32 -38
  171. package/es/dialog/function-call.d.ts +8 -8
  172. package/es/dialog/function-call.js +2 -2
  173. package/es/dialog/index.css +1 -1
  174. package/es/dialog/index.d.ts +1 -0
  175. package/es/dialog/index.less +1 -1
  176. package/es/dialog/var.less +1 -1
  177. package/es/divider/Divider.d.ts +15 -3
  178. package/es/divider/Divider.js +11 -12
  179. package/es/divider/index.css +1 -1
  180. package/es/divider/index.d.ts +2 -2
  181. package/es/divider/var.less +1 -1
  182. package/es/dropdown-item/DropdownItem.d.ts +10 -10
  183. package/es/dropdown-item/DropdownItem.js +20 -14
  184. package/es/dropdown-item/index.d.ts +5 -5
  185. package/es/dropdown-menu/DropdownMenu.d.ts +21 -21
  186. package/es/dropdown-menu/DropdownMenu.js +15 -18
  187. package/es/dropdown-menu/index.css +1 -1
  188. package/es/dropdown-menu/index.d.ts +10 -10
  189. package/es/dropdown-menu/index.less +1 -9
  190. package/es/dropdown-menu/var.less +2 -2
  191. package/es/empty/Empty.d.ts +13 -3
  192. package/es/empty/Empty.js +12 -12
  193. package/es/empty/Network.js +8 -27
  194. package/es/empty/index.css +1 -1
  195. package/es/empty/index.d.ts +5 -4
  196. package/es/empty/var.less +1 -1
  197. package/es/field/Field.d.ts +75 -75
  198. package/es/field/Field.js +62 -61
  199. package/es/field/index.css +1 -1
  200. package/es/field/index.d.ts +34 -34
  201. package/es/field/utils.d.ts +2 -2
  202. package/es/field/utils.js +9 -6
  203. package/es/field/var.less +3 -3
  204. package/es/form/Form.d.ts +13 -13
  205. package/es/form/Form.js +11 -13
  206. package/es/form/index.d.ts +7 -7
  207. package/es/grid/Grid.d.ts +3 -2
  208. package/es/grid/Grid.js +10 -12
  209. package/es/grid/index.d.ts +1 -1
  210. package/es/grid-item/GridItem.d.ts +16 -2
  211. package/es/grid-item/GridItem.js +17 -15
  212. package/es/grid-item/index.css +1 -1
  213. package/es/grid-item/index.d.ts +3 -2
  214. package/es/grid-item/index.less +1 -1
  215. package/es/grid-item/var.less +1 -1
  216. package/es/icon/Icon.d.ts +18 -5
  217. package/es/icon/Icon.js +16 -19
  218. package/es/icon/index.d.ts +6 -5
  219. package/es/image/Image.d.ts +39 -10
  220. package/es/image/Image.js +40 -53
  221. package/es/image/index.css +1 -1
  222. package/es/image/index.d.ts +12 -12
  223. package/es/image/index.less +1 -1
  224. package/es/image/var.less +1 -1
  225. package/es/image-preview/ImagePreview.d.ts +54 -54
  226. package/es/image-preview/ImagePreview.js +23 -44
  227. package/es/image-preview/ImagePreviewItem.js +10 -23
  228. package/es/image-preview/function-call.d.ts +31 -31
  229. package/es/image-preview/function-call.js +7 -3
  230. package/es/image-preview/index.css +1 -1
  231. package/es/image-preview/index.less +1 -6
  232. package/es/image-preview/var.less +0 -1
  233. package/es/index-anchor/IndexAnchor.d.ts +5 -0
  234. package/es/index-anchor/IndexAnchor.js +10 -8
  235. package/es/index-anchor/index.css +1 -1
  236. package/es/index-anchor/index.d.ts +1 -0
  237. package/es/index-anchor/index.less +2 -2
  238. package/es/index-anchor/var.less +1 -1
  239. package/es/index-bar/IndexBar.d.ts +2 -2
  240. package/es/index-bar/IndexBar.js +11 -24
  241. package/es/index.d.ts +1 -1
  242. package/es/index.js +1 -1
  243. package/es/list/List.d.ts +20 -20
  244. package/es/list/List.js +11 -16
  245. package/es/list/index.css +1 -1
  246. package/es/list/index.d.ts +10 -10
  247. package/es/list/var.less +1 -1
  248. package/es/loading/Loading.d.ts +17 -5
  249. package/es/loading/Loading.js +14 -15
  250. package/es/loading/index.css +1 -1
  251. package/es/loading/index.d.ts +6 -6
  252. package/es/loading/var.less +1 -1
  253. package/es/locale/index.js +5 -1
  254. package/es/locale/lang/de-DE-formal.d.ts +0 -1
  255. package/es/locale/lang/de-DE-formal.js +0 -1
  256. package/es/locale/lang/de-DE.d.ts +0 -1
  257. package/es/locale/lang/de-DE.js +0 -1
  258. package/es/locale/lang/en-US.d.ts +0 -1
  259. package/es/locale/lang/en-US.js +0 -1
  260. package/es/locale/lang/es-ES.d.ts +0 -1
  261. package/es/locale/lang/es-ES.js +0 -1
  262. package/es/locale/lang/fr-FR.d.ts +0 -1
  263. package/es/locale/lang/fr-FR.js +0 -1
  264. package/es/locale/lang/ja-JP.d.ts +0 -1
  265. package/es/locale/lang/ja-JP.js +0 -1
  266. package/es/locale/lang/nb-NO.d.ts +0 -1
  267. package/es/locale/lang/nb-NO.js +0 -1
  268. package/es/locale/lang/ro-RO.d.ts +0 -1
  269. package/es/locale/lang/ro-RO.js +0 -1
  270. package/es/locale/lang/ru-RU.d.ts +0 -1
  271. package/es/locale/lang/ru-RU.js +0 -1
  272. package/es/locale/lang/th-TH.d.ts +0 -1
  273. package/es/locale/lang/th-TH.js +0 -1
  274. package/es/locale/lang/tr-TR.d.ts +0 -1
  275. package/es/locale/lang/tr-TR.js +0 -1
  276. package/es/locale/lang/zh-CN.d.ts +0 -1
  277. package/es/locale/lang/zh-CN.js +0 -1
  278. package/es/locale/lang/zh-HK.d.ts +0 -1
  279. package/es/locale/lang/zh-HK.js +0 -1
  280. package/es/locale/lang/zh-TW.d.ts +0 -1
  281. package/es/locale/lang/zh-TW.js +0 -1
  282. package/es/nav-bar/NavBar.d.ts +16 -0
  283. package/es/nav-bar/NavBar.js +20 -18
  284. package/es/nav-bar/index.css +1 -1
  285. package/es/nav-bar/index.d.ts +1 -0
  286. package/es/nav-bar/index.less +1 -5
  287. package/es/nav-bar/var.less +1 -1
  288. package/es/notice-bar/NoticeBar.d.ts +19 -19
  289. package/es/notice-bar/NoticeBar.js +10 -15
  290. package/es/notice-bar/index.css +1 -1
  291. package/es/notice-bar/index.d.ts +12 -12
  292. package/es/notice-bar/index.less +1 -1
  293. package/es/notify/Notify.d.ts +51 -12
  294. package/es/notify/Notify.js +21 -16
  295. package/es/notify/function-call.d.ts +9 -7
  296. package/es/notify/function-call.js +18 -22
  297. package/es/notify/index.css +1 -1
  298. package/es/notify/index.d.ts +1 -0
  299. package/es/notify/index.less +4 -4
  300. package/es/number-keyboard/NumberKeyboard.d.ts +58 -11
  301. package/es/number-keyboard/NumberKeyboard.js +30 -37
  302. package/es/number-keyboard/NumberKeyboardKey.js +7 -6
  303. package/es/number-keyboard/index.css +1 -1
  304. package/es/number-keyboard/index.d.ts +16 -16
  305. package/es/number-keyboard/index.less +3 -7
  306. package/es/number-keyboard/var.less +1 -1
  307. package/es/overlay/Overlay.d.ts +13 -1
  308. package/es/overlay/Overlay.js +18 -15
  309. package/es/overlay/index.css +1 -1
  310. package/es/overlay/index.d.ts +1 -0
  311. package/es/overlay/index.less +1 -1
  312. package/es/pagination/Pagination.d.ts +46 -16
  313. package/es/pagination/Pagination.js +24 -42
  314. package/es/pagination/index.css +1 -1
  315. package/es/pagination/index.d.ts +19 -19
  316. package/es/pagination/index.less +1 -1
  317. package/es/pagination/var.less +1 -1
  318. package/es/password-input/PasswordInput.d.ts +24 -4
  319. package/es/password-input/PasswordInput.js +16 -19
  320. package/es/password-input/index.css +1 -1
  321. package/es/password-input/index.d.ts +7 -6
  322. package/es/password-input/index.less +3 -3
  323. package/es/password-input/var.less +3 -3
  324. package/es/picker/Picker.d.ts +63 -24
  325. package/es/picker/Picker.js +24 -39
  326. package/es/picker/PickerColumn.d.ts +15 -16
  327. package/es/picker/PickerColumn.js +30 -53
  328. package/es/picker/index.css +1 -1
  329. package/es/picker/index.d.ts +22 -22
  330. package/es/picker/index.less +4 -12
  331. package/es/picker/types.d.ts +2 -2
  332. package/es/picker/var.less +9 -3
  333. package/es/popover/Popover.d.ts +69 -30
  334. package/es/popover/Popover.js +37 -50
  335. package/es/popover/index.css +1 -1
  336. package/es/popover/index.d.ts +35 -34
  337. package/es/popover/index.less +2 -2
  338. package/es/popover/types.d.ts +11 -0
  339. package/es/popover/types.js +1 -0
  340. package/es/popover/var.less +3 -3
  341. package/es/popup/Popup.d.ts +64 -18
  342. package/es/popup/Popup.js +22 -31
  343. package/es/popup/index.css +1 -1
  344. package/es/popup/index.d.ts +16 -16
  345. package/es/popup/index.less +1 -6
  346. package/es/popup/shared.js +3 -3
  347. package/es/popup/var.less +1 -2
  348. package/es/progress/Progress.d.ts +2 -2
  349. package/es/progress/Progress.js +14 -10
  350. package/es/progress/index.css +1 -1
  351. package/es/progress/index.less +10 -1
  352. package/es/progress/var.less +1 -0
  353. package/es/pull-refresh/PullRefresh.d.ts +29 -9
  354. package/es/pull-refresh/PullRefresh.js +21 -31
  355. package/es/pull-refresh/index.css +1 -1
  356. package/es/pull-refresh/index.d.ts +10 -12
  357. package/es/pull-refresh/var.less +1 -1
  358. package/es/radio/Radio.d.ts +14 -9
  359. package/es/radio/Radio.js +5 -4
  360. package/es/radio/index.css +1 -1
  361. package/es/radio/index.d.ts +6 -5
  362. package/es/radio/var.less +1 -1
  363. package/es/radio-group/RadioGroup.d.ts +4 -2
  364. package/es/radio-group/RadioGroup.js +9 -8
  365. package/es/radio-group/index.d.ts +1 -0
  366. package/es/rate/Rate.d.ts +47 -14
  367. package/es/rate/Rate.js +24 -34
  368. package/es/rate/index.d.ts +22 -21
  369. package/es/row/Row.d.ts +22 -5
  370. package/es/row/Row.js +13 -17
  371. package/es/row/index.d.ts +8 -8
  372. package/es/search/Search.d.ts +64 -64
  373. package/es/search/Search.js +15 -21
  374. package/es/search/index.css +1 -1
  375. package/es/search/index.d.ts +35 -35
  376. package/es/search/index.less +2 -2
  377. package/es/search/var.less +1 -1
  378. package/es/share-sheet/ShareSheet.d.ts +64 -10
  379. package/es/share-sheet/ShareSheet.js +22 -23
  380. package/es/share-sheet/index.css +1 -1
  381. package/es/share-sheet/index.d.ts +15 -8
  382. package/es/share-sheet/index.less +0 -4
  383. package/es/share-sheet/var.less +3 -3
  384. package/es/sidebar/Sidebar.d.ts +8 -1
  385. package/es/sidebar/Sidebar.js +10 -11
  386. package/es/sidebar/index.d.ts +1 -0
  387. package/es/sidebar-item/SidebarItem.d.ts +12 -0
  388. package/es/sidebar-item/SidebarItem.js +13 -11
  389. package/es/sidebar-item/index.css +1 -1
  390. package/es/sidebar-item/index.d.ts +1 -0
  391. package/es/sidebar-item/index.less +1 -1
  392. package/es/sidebar-item/var.less +2 -2
  393. package/es/skeleton/Skeleton.d.ts +36 -7
  394. package/es/skeleton/Skeleton.js +22 -25
  395. package/es/skeleton/index.css +1 -1
  396. package/es/skeleton/index.d.ts +10 -9
  397. package/es/skeleton/index.less +2 -2
  398. package/es/slider/Slider.d.ts +37 -9
  399. package/es/slider/Slider.js +37 -44
  400. package/es/slider/index.css +1 -1
  401. package/es/slider/index.d.ts +17 -16
  402. package/es/slider/index.less +3 -3
  403. package/es/step/Step.js +4 -3
  404. package/es/step/index.css +1 -1
  405. package/es/step/index.less +1 -1
  406. package/es/step/var.less +1 -1
  407. package/es/stepper/Stepper.d.ts +64 -12
  408. package/es/stepper/Stepper.js +47 -58
  409. package/es/stepper/index.css +1 -1
  410. package/es/stepper/index.d.ts +26 -27
  411. package/es/stepper/index.less +6 -21
  412. package/es/stepper/var.less +1 -2
  413. package/es/steps/Steps.d.ts +23 -22
  414. package/es/steps/Steps.js +12 -20
  415. package/es/steps/index.css +1 -1
  416. package/es/steps/index.d.ts +11 -10
  417. package/es/steps/var.less +1 -1
  418. package/es/sticky/Sticky.d.ts +21 -4
  419. package/es/sticky/Sticky.js +14 -21
  420. package/es/sticky/index.d.ts +6 -6
  421. package/es/style/base.css +1 -1
  422. package/es/style/base.less +4 -0
  423. package/es/style/css-variables.css +1 -1
  424. package/es/style/css-variables.less +3 -1
  425. package/es/style/mixins/hairline.less +3 -3
  426. package/es/style/var.less +5 -3
  427. package/es/submit-bar/SubmitBar.d.ts +43 -13
  428. package/es/submit-bar/SubmitBar.js +24 -30
  429. package/es/submit-bar/index.css +1 -1
  430. package/es/submit-bar/index.d.ts +17 -16
  431. package/es/submit-bar/index.less +2 -2
  432. package/es/submit-bar/var.less +3 -3
  433. package/es/swipe/Swipe.d.ts +32 -32
  434. package/es/swipe/Swipe.js +36 -30
  435. package/es/swipe/index.d.ts +18 -18
  436. package/es/swipe-cell/SwipeCell.d.ts +9 -9
  437. package/es/swipe-cell/SwipeCell.js +18 -17
  438. package/es/swipe-cell/index.d.ts +5 -5
  439. package/es/swipe-item/SwipeItem.js +4 -3
  440. package/es/switch/Switch.d.ts +18 -0
  441. package/es/switch/Switch.js +23 -20
  442. package/es/switch/index.css +1 -1
  443. package/es/switch/index.d.ts +1 -0
  444. package/es/switch/index.less +3 -3
  445. package/es/switch/var.less +1 -1
  446. package/es/tab/Tab.d.ts +19 -1
  447. package/es/tab/Tab.js +17 -15
  448. package/es/tab/index.d.ts +1 -0
  449. package/es/tabbar/Tabbar.d.ts +5 -4
  450. package/es/tabbar/Tabbar.js +11 -14
  451. package/es/tabbar/index.css +1 -1
  452. package/es/tabbar/index.d.ts +3 -2
  453. package/es/tabbar/index.less +1 -1
  454. package/es/tabbar/var.less +1 -1
  455. package/es/tabbar-item/TabbarItem.d.ts +13 -0
  456. package/es/tabbar-item/TabbarItem.js +17 -15
  457. package/es/tabbar-item/index.css +1 -1
  458. package/es/tabbar-item/index.d.ts +1 -0
  459. package/es/tabbar-item/var.less +1 -1
  460. package/es/tabs/Tabs.d.ts +40 -40
  461. package/es/tabs/Tabs.js +40 -45
  462. package/es/tabs/TabsContent.d.ts +7 -7
  463. package/es/tabs/TabsContent.js +9 -17
  464. package/es/tabs/TabsTitle.js +2 -2
  465. package/es/tabs/index.css +1 -1
  466. package/es/tabs/index.d.ts +23 -23
  467. package/es/tabs/index.less +2 -2
  468. package/es/tabs/var.less +2 -2
  469. package/es/tag/Tag.d.ts +25 -6
  470. package/es/tag/Tag.js +19 -19
  471. package/es/tag/index.css +1 -1
  472. package/es/tag/index.d.ts +8 -7
  473. package/es/tag/index.less +6 -6
  474. package/es/tag/var.less +1 -1
  475. package/es/toast/Toast.d.ts +43 -11
  476. package/es/toast/Toast.js +29 -45
  477. package/es/toast/function-call.js +10 -2
  478. package/es/toast/index.css +1 -1
  479. package/es/toast/index.d.ts +1 -0
  480. package/es/toast/index.less +1 -1
  481. package/es/tree-select/TreeSelect.d.ts +35 -8
  482. package/es/tree-select/TreeSelect.js +19 -31
  483. package/es/tree-select/index.css +1 -1
  484. package/es/tree-select/index.d.ts +11 -11
  485. package/es/tree-select/index.less +2 -2
  486. package/es/tree-select/var.less +1 -1
  487. package/es/uploader/Uploader.d.ts +66 -66
  488. package/es/uploader/Uploader.js +27 -41
  489. package/es/uploader/UploaderPreviewItem.d.ts +6 -6
  490. package/es/uploader/UploaderPreviewItem.js +14 -16
  491. package/es/uploader/index.css +1 -1
  492. package/es/uploader/index.d.ts +45 -45
  493. package/es/uploader/index.less +4 -4
  494. package/es/uploader/utils.d.ts +3 -3
  495. package/es/uploader/utils.js +2 -10
  496. package/es/uploader/var.less +1 -1
  497. package/{lib/utils/base.d.ts → es/utils/basic.d.ts} +1 -6
  498. package/es/utils/{base.js → basic.js} +1 -7
  499. package/es/utils/constant.d.ts +1 -0
  500. package/es/utils/constant.js +1 -0
  501. package/{lib/utils/create/bem.d.ts → es/utils/create.d.ts} +7 -4
  502. package/es/utils/create.js +58 -0
  503. package/es/utils/deep-assign.d.ts +1 -1
  504. package/es/utils/deep-assign.js +1 -1
  505. package/es/utils/deep-clone.js +2 -2
  506. package/{lib/utils/dom/scroll.d.ts → es/utils/dom.d.ts} +4 -2
  507. package/es/utils/{dom/scroll.js → dom.js} +31 -22
  508. package/es/utils/format.d.ts +12 -0
  509. package/es/utils/format.js +139 -0
  510. package/es/utils/index.d.ts +4 -7
  511. package/es/utils/index.js +5 -8
  512. package/es/utils/interceptor.d.ts +3 -4
  513. package/es/utils/interceptor.js +6 -6
  514. package/es/utils/mount-component.js +5 -3
  515. package/es/utils/props.d.ts +31 -0
  516. package/es/utils/props.js +30 -0
  517. package/es/utils/validate.d.ts +7 -7
  518. package/es/utils/validate.js +8 -22
  519. package/es/utils/with-install.js +1 -1
  520. package/lib/action-bar/ActionBar.d.ts +8 -0
  521. package/lib/action-bar/ActionBar.js +8 -6
  522. package/lib/action-bar/index.css +1 -1
  523. package/lib/action-bar/index.d.ts +1 -0
  524. package/lib/action-bar/index.less +1 -1
  525. package/lib/action-bar/var.less +1 -1
  526. package/lib/action-bar-button/ActionBarButton.d.ts +14 -1
  527. package/lib/action-bar-button/ActionBarButton.js +13 -11
  528. package/lib/action-bar-button/index.d.ts +1 -0
  529. package/lib/action-bar-icon/ActionBarIcon.d.ts +15 -0
  530. package/lib/action-bar-icon/ActionBarIcon.js +16 -14
  531. package/lib/action-bar-icon/index.css +1 -1
  532. package/lib/action-bar-icon/index.d.ts +1 -0
  533. package/lib/action-bar-icon/index.less +1 -1
  534. package/lib/action-bar-icon/var.less +1 -1
  535. package/lib/action-sheet/ActionSheet.d.ts +76 -13
  536. package/lib/action-sheet/ActionSheet.js +24 -32
  537. package/lib/action-sheet/index.css +1 -1
  538. package/lib/action-sheet/index.d.ts +18 -11
  539. package/lib/action-sheet/index.less +2 -7
  540. package/lib/action-sheet/var.less +4 -5
  541. package/lib/address-edit/AddressEdit.d.ts +16 -18
  542. package/lib/address-edit/AddressEdit.js +16 -32
  543. package/lib/address-edit/AddressEditDetail.js +10 -10
  544. package/lib/address-edit/index.css +1 -1
  545. package/lib/address-edit/index.d.ts +8 -9
  546. package/lib/address-edit/index.less +2 -2
  547. package/lib/address-edit/style/index.js +0 -6
  548. package/lib/address-edit/style/less.js +0 -6
  549. package/lib/address-list/AddressList.d.ts +25 -6
  550. package/lib/address-list/AddressList.js +18 -25
  551. package/lib/address-list/AddressListItem.d.ts +4 -4
  552. package/lib/address-list/AddressListItem.js +8 -9
  553. package/lib/address-list/index.css +1 -1
  554. package/lib/address-list/index.d.ts +9 -8
  555. package/lib/address-list/index.less +2 -2
  556. package/lib/address-list/var.less +2 -2
  557. package/lib/area/Area.d.ts +45 -46
  558. package/lib/area/Area.js +22 -19
  559. package/lib/area/index.d.ts +28 -29
  560. package/lib/badge/Badge.d.ts +23 -7
  561. package/lib/badge/Badge.js +16 -16
  562. package/lib/badge/index.css +1 -1
  563. package/lib/badge/index.d.ts +9 -8
  564. package/lib/badge/index.less +5 -3
  565. package/lib/button/Button.d.ts +59 -19
  566. package/lib/button/Button.js +27 -40
  567. package/lib/button/index.css +1 -1
  568. package/lib/button/index.d.ts +32 -31
  569. package/lib/button/types.d.ts +5 -0
  570. package/lib/button/types.js +3 -0
  571. package/lib/button/var.less +1 -1
  572. package/lib/calendar/Calendar.d.ts +48 -49
  573. package/lib/calendar/Calendar.js +52 -44
  574. package/lib/calendar/CalendarDay.d.ts +7 -7
  575. package/lib/calendar/CalendarDay.js +8 -13
  576. package/lib/calendar/CalendarHeader.js +6 -4
  577. package/lib/calendar/CalendarMonth.d.ts +20 -20
  578. package/lib/calendar/CalendarMonth.js +13 -21
  579. package/lib/calendar/index.css +1 -1
  580. package/lib/calendar/index.d.ts +29 -30
  581. package/lib/calendar/index.less +3 -3
  582. package/lib/calendar/types.d.ts +1 -1
  583. package/lib/calendar/utils.d.ts +2 -2
  584. package/lib/calendar/utils.js +9 -7
  585. package/lib/calendar/var.less +2 -2
  586. package/lib/card/Card.d.ts +21 -3
  587. package/lib/card/Card.js +20 -20
  588. package/lib/card/index.css +1 -1
  589. package/lib/card/index.d.ts +5 -4
  590. package/lib/card/index.less +1 -1
  591. package/lib/card/var.less +3 -3
  592. package/lib/cascader/Cascader.d.ts +33 -22
  593. package/lib/cascader/Cascader.js +77 -70
  594. package/lib/cascader/index.css +1 -1
  595. package/lib/cascader/index.d.ts +19 -18
  596. package/lib/cascader/index.less +0 -5
  597. package/lib/cascader/types.d.ts +18 -0
  598. package/lib/cascader/types.js +3 -0
  599. package/lib/cascader/var.less +2 -3
  600. package/lib/cell/Cell.d.ts +35 -5
  601. package/lib/cell/Cell.js +13 -18
  602. package/lib/cell/index.css +1 -1
  603. package/lib/cell/index.d.ts +3 -3
  604. package/lib/cell/index.less +1 -1
  605. package/lib/cell/var.less +3 -3
  606. package/lib/cell-group/CellGroup.d.ts +10 -0
  607. package/lib/cell-group/CellGroup.js +13 -10
  608. package/lib/cell-group/index.css +1 -1
  609. package/lib/cell-group/index.d.ts +1 -0
  610. package/lib/cell-group/index.less +1 -1
  611. package/lib/cell-group/var.less +2 -2
  612. package/lib/checkbox/Checkbox.d.ts +11 -11
  613. package/lib/checkbox/Checkbox.js +12 -7
  614. package/lib/checkbox/Checker.d.ts +14 -14
  615. package/lib/checkbox/Checker.js +11 -23
  616. package/lib/checkbox/index.css +1 -1
  617. package/lib/checkbox/index.d.ts +7 -8
  618. package/lib/checkbox/types.d.ts +3 -0
  619. package/lib/checkbox/var.less +1 -1
  620. package/lib/checkbox-group/CheckboxGroup.d.ts +8 -8
  621. package/lib/checkbox-group/CheckboxGroup.js +16 -14
  622. package/lib/checkbox-group/index.d.ts +6 -7
  623. package/lib/checkbox-group/types.d.ts +2 -1
  624. package/lib/circle/Circle.d.ts +50 -14
  625. package/lib/circle/Circle.js +22 -39
  626. package/lib/circle/index.d.ts +23 -23
  627. package/lib/col/Col.d.ts +17 -5
  628. package/lib/col/Col.js +10 -14
  629. package/lib/col/index.d.ts +4 -3
  630. package/lib/collapse/Collapse.d.ts +13 -1
  631. package/lib/collapse/Collapse.js +14 -12
  632. package/lib/collapse/index.d.ts +1 -0
  633. package/lib/collapse-item/CollapseItem.d.ts +5 -5
  634. package/lib/collapse-item/CollapseItem.js +13 -8
  635. package/lib/collapse-item/index.css +1 -1
  636. package/lib/collapse-item/index.d.ts +3 -4
  637. package/lib/collapse-item/index.less +1 -1
  638. package/lib/collapse-item/var.less +3 -3
  639. package/lib/composables/on-popup-reopen.js +1 -1
  640. package/lib/composables/use-lock-scroll.js +2 -2
  641. package/lib/composables/use-placeholder.d.ts +1 -1
  642. package/lib/composables/use-route.js +1 -1
  643. package/lib/config-provider/ConfigProvider.d.ts +14 -5
  644. package/lib/config-provider/ConfigProvider.js +11 -12
  645. package/lib/config-provider/index.d.ts +6 -5
  646. package/lib/contact-card/ContactCard.d.ts +19 -5
  647. package/lib/contact-card/ContactCard.js +13 -13
  648. package/lib/contact-card/index.css +1 -1
  649. package/lib/contact-card/index.d.ts +6 -6
  650. package/lib/contact-card/index.less +2 -2
  651. package/lib/contact-edit/ContactEdit.d.ts +17 -1
  652. package/lib/contact-edit/ContactEdit.js +21 -23
  653. package/lib/contact-edit/index.d.ts +1 -1
  654. package/lib/contact-edit/style/index.js +0 -10
  655. package/lib/contact-edit/style/less.js +0 -10
  656. package/lib/contact-list/ContactList.d.ts +8 -1
  657. package/lib/contact-list/ContactList.js +12 -9
  658. package/lib/contact-list/index.css +1 -1
  659. package/lib/contact-list/index.d.ts +1 -1
  660. package/lib/contact-list/index.less +1 -1
  661. package/lib/count-down/CountDown.d.ts +15 -15
  662. package/lib/count-down/CountDown.js +10 -15
  663. package/lib/count-down/index.d.ts +11 -12
  664. package/lib/coupon/Coupon.d.ts +3 -3
  665. package/lib/coupon/Coupon.js +8 -25
  666. package/lib/coupon/index.css +1 -1
  667. package/lib/coupon/index.d.ts +3 -3
  668. package/lib/coupon/index.less +3 -2
  669. package/lib/coupon/utils.d.ts +3 -0
  670. package/lib/coupon/utils.js +20 -0
  671. package/lib/coupon/var.less +3 -2
  672. package/lib/coupon-cell/CouponCell.d.ts +27 -3
  673. package/lib/coupon-cell/CouponCell.js +16 -20
  674. package/lib/coupon-cell/index.d.ts +2 -1
  675. package/lib/coupon-list/CouponList.d.ts +89 -35
  676. package/lib/coupon-list/CouponList.js +27 -49
  677. package/lib/coupon-list/index.css +1 -1
  678. package/lib/coupon-list/index.d.ts +44 -43
  679. package/lib/coupon-list/index.less +4 -4
  680. package/lib/coupon-list/var.less +1 -1
  681. package/lib/datetime-picker/DatePicker.d.ts +23 -25
  682. package/lib/datetime-picker/DatePicker.js +13 -13
  683. package/lib/datetime-picker/DatetimePicker.d.ts +3 -12
  684. package/lib/datetime-picker/DatetimePicker.js +10 -9
  685. package/lib/datetime-picker/TimePicker.d.ts +16 -16
  686. package/lib/datetime-picker/TimePicker.js +17 -26
  687. package/lib/datetime-picker/index.d.ts +1 -10
  688. package/lib/datetime-picker/utils.d.ts +9 -9
  689. package/lib/datetime-picker/utils.js +9 -9
  690. package/lib/dialog/Dialog.d.ts +59 -5
  691. package/lib/dialog/Dialog.js +31 -37
  692. package/lib/dialog/function-call.d.ts +8 -8
  693. package/lib/dialog/function-call.js +2 -2
  694. package/lib/dialog/index.css +1 -1
  695. package/lib/dialog/index.d.ts +1 -0
  696. package/lib/dialog/index.less +1 -1
  697. package/lib/dialog/var.less +1 -1
  698. package/lib/divider/Divider.d.ts +15 -3
  699. package/lib/divider/Divider.js +11 -12
  700. package/lib/divider/index.css +1 -1
  701. package/lib/divider/index.d.ts +2 -2
  702. package/lib/divider/var.less +1 -1
  703. package/lib/dropdown-item/DropdownItem.d.ts +10 -10
  704. package/lib/dropdown-item/DropdownItem.js +19 -13
  705. package/lib/dropdown-item/index.d.ts +5 -5
  706. package/lib/dropdown-menu/DropdownMenu.d.ts +21 -21
  707. package/lib/dropdown-menu/DropdownMenu.js +14 -17
  708. package/lib/dropdown-menu/index.css +1 -1
  709. package/lib/dropdown-menu/index.d.ts +10 -10
  710. package/lib/dropdown-menu/index.less +1 -9
  711. package/lib/dropdown-menu/var.less +2 -2
  712. package/lib/empty/Empty.d.ts +13 -3
  713. package/lib/empty/Empty.js +12 -12
  714. package/lib/empty/Network.js +8 -27
  715. package/lib/empty/index.css +1 -1
  716. package/lib/empty/index.d.ts +5 -4
  717. package/lib/empty/var.less +1 -1
  718. package/lib/field/Field.d.ts +75 -75
  719. package/lib/field/Field.js +61 -60
  720. package/lib/field/index.css +1 -1
  721. package/lib/field/index.d.ts +34 -34
  722. package/lib/field/utils.d.ts +2 -2
  723. package/lib/field/utils.js +13 -10
  724. package/lib/field/var.less +3 -3
  725. package/lib/form/Form.d.ts +13 -13
  726. package/lib/form/Form.js +10 -12
  727. package/lib/form/index.d.ts +7 -7
  728. package/lib/grid/Grid.d.ts +3 -2
  729. package/lib/grid/Grid.js +9 -11
  730. package/lib/grid/index.d.ts +1 -1
  731. package/lib/grid-item/GridItem.d.ts +16 -2
  732. package/lib/grid-item/GridItem.js +15 -13
  733. package/lib/grid-item/index.css +1 -1
  734. package/lib/grid-item/index.d.ts +3 -2
  735. package/lib/grid-item/index.less +1 -1
  736. package/lib/grid-item/var.less +1 -1
  737. package/lib/icon/Icon.d.ts +18 -5
  738. package/lib/icon/Icon.js +16 -18
  739. package/lib/icon/index.d.ts +6 -5
  740. package/lib/image/Image.d.ts +39 -10
  741. package/lib/image/Image.js +39 -52
  742. package/lib/image/index.css +1 -1
  743. package/lib/image/index.d.ts +12 -12
  744. package/lib/image/index.less +1 -1
  745. package/lib/image/var.less +1 -1
  746. package/lib/image-preview/ImagePreview.d.ts +54 -54
  747. package/lib/image-preview/ImagePreview.js +21 -42
  748. package/lib/image-preview/ImagePreviewItem.js +9 -22
  749. package/lib/image-preview/function-call.d.ts +31 -31
  750. package/lib/image-preview/function-call.js +7 -3
  751. package/lib/image-preview/index.css +1 -1
  752. package/lib/image-preview/index.less +1 -6
  753. package/lib/image-preview/var.less +0 -1
  754. package/lib/index-anchor/IndexAnchor.d.ts +5 -0
  755. package/lib/index-anchor/IndexAnchor.js +11 -9
  756. package/lib/index-anchor/index.css +1 -1
  757. package/lib/index-anchor/index.d.ts +1 -0
  758. package/lib/index-anchor/index.less +2 -2
  759. package/lib/index-anchor/var.less +1 -1
  760. package/lib/index-bar/IndexBar.d.ts +2 -2
  761. package/lib/index-bar/IndexBar.js +10 -23
  762. package/lib/index.css +1 -1
  763. package/lib/index.d.ts +1 -1
  764. package/lib/index.js +3 -2
  765. package/lib/index.less +1 -1
  766. package/lib/list/List.d.ts +20 -20
  767. package/lib/list/List.js +10 -15
  768. package/lib/list/index.css +1 -1
  769. package/lib/list/index.d.ts +10 -10
  770. package/lib/list/var.less +1 -1
  771. package/lib/loading/Loading.d.ts +17 -5
  772. package/lib/loading/Loading.js +13 -14
  773. package/lib/loading/index.css +1 -1
  774. package/lib/loading/index.d.ts +6 -6
  775. package/lib/loading/var.less +1 -1
  776. package/lib/locale/index.js +5 -1
  777. package/lib/locale/lang/de-DE-formal.d.ts +0 -1
  778. package/lib/locale/lang/de-DE-formal.js +0 -1
  779. package/lib/locale/lang/de-DE.d.ts +0 -1
  780. package/lib/locale/lang/de-DE.js +0 -1
  781. package/lib/locale/lang/en-US.d.ts +0 -1
  782. package/lib/locale/lang/en-US.js +0 -1
  783. package/lib/locale/lang/es-ES.d.ts +0 -1
  784. package/lib/locale/lang/es-ES.js +0 -1
  785. package/lib/locale/lang/fr-FR.d.ts +0 -1
  786. package/lib/locale/lang/fr-FR.js +0 -1
  787. package/lib/locale/lang/ja-JP.d.ts +0 -1
  788. package/lib/locale/lang/ja-JP.js +0 -1
  789. package/lib/locale/lang/nb-NO.d.ts +0 -1
  790. package/lib/locale/lang/nb-NO.js +0 -1
  791. package/lib/locale/lang/ro-RO.d.ts +0 -1
  792. package/lib/locale/lang/ro-RO.js +0 -1
  793. package/lib/locale/lang/ru-RU.d.ts +0 -1
  794. package/lib/locale/lang/ru-RU.js +0 -1
  795. package/lib/locale/lang/th-TH.d.ts +0 -1
  796. package/lib/locale/lang/th-TH.js +0 -1
  797. package/lib/locale/lang/tr-TR.d.ts +0 -1
  798. package/lib/locale/lang/tr-TR.js +0 -1
  799. package/lib/locale/lang/zh-CN.d.ts +0 -1
  800. package/lib/locale/lang/zh-CN.js +0 -1
  801. package/lib/locale/lang/zh-HK.d.ts +0 -1
  802. package/lib/locale/lang/zh-HK.js +0 -1
  803. package/lib/locale/lang/zh-TW.d.ts +0 -1
  804. package/lib/locale/lang/zh-TW.js +0 -1
  805. package/lib/nav-bar/NavBar.d.ts +16 -0
  806. package/lib/nav-bar/NavBar.js +19 -17
  807. package/lib/nav-bar/index.css +1 -1
  808. package/lib/nav-bar/index.d.ts +1 -0
  809. package/lib/nav-bar/index.less +1 -5
  810. package/lib/nav-bar/var.less +1 -1
  811. package/lib/notice-bar/NoticeBar.d.ts +19 -19
  812. package/lib/notice-bar/NoticeBar.js +9 -14
  813. package/lib/notice-bar/index.css +1 -1
  814. package/lib/notice-bar/index.d.ts +12 -12
  815. package/lib/notice-bar/index.less +1 -1
  816. package/lib/notify/Notify.d.ts +51 -12
  817. package/lib/notify/Notify.js +21 -16
  818. package/lib/notify/function-call.d.ts +9 -7
  819. package/lib/notify/function-call.js +18 -22
  820. package/lib/notify/index.css +1 -1
  821. package/lib/notify/index.d.ts +1 -0
  822. package/lib/notify/index.less +4 -4
  823. package/lib/number-keyboard/NumberKeyboard.d.ts +58 -11
  824. package/lib/number-keyboard/NumberKeyboard.js +29 -36
  825. package/lib/number-keyboard/NumberKeyboardKey.js +6 -5
  826. package/lib/number-keyboard/index.css +1 -1
  827. package/lib/number-keyboard/index.d.ts +16 -16
  828. package/lib/number-keyboard/index.less +3 -7
  829. package/lib/number-keyboard/var.less +1 -1
  830. package/lib/overlay/Overlay.d.ts +13 -1
  831. package/lib/overlay/Overlay.js +17 -14
  832. package/lib/overlay/index.css +1 -1
  833. package/lib/overlay/index.d.ts +1 -0
  834. package/lib/overlay/index.less +1 -1
  835. package/lib/pagination/Pagination.d.ts +46 -16
  836. package/lib/pagination/Pagination.js +23 -40
  837. package/lib/pagination/index.css +1 -1
  838. package/lib/pagination/index.d.ts +19 -19
  839. package/lib/pagination/index.less +1 -1
  840. package/lib/pagination/var.less +1 -1
  841. package/lib/password-input/PasswordInput.d.ts +24 -4
  842. package/lib/password-input/PasswordInput.js +15 -18
  843. package/lib/password-input/index.css +1 -1
  844. package/lib/password-input/index.d.ts +7 -6
  845. package/lib/password-input/index.less +3 -3
  846. package/lib/password-input/var.less +3 -3
  847. package/lib/picker/Picker.d.ts +63 -24
  848. package/lib/picker/Picker.js +25 -40
  849. package/lib/picker/PickerColumn.d.ts +15 -16
  850. package/lib/picker/PickerColumn.js +29 -52
  851. package/lib/picker/index.css +1 -1
  852. package/lib/picker/index.d.ts +22 -22
  853. package/lib/picker/index.less +4 -12
  854. package/lib/picker/types.d.ts +2 -2
  855. package/lib/picker/var.less +9 -3
  856. package/lib/popover/Popover.d.ts +69 -30
  857. package/lib/popover/Popover.js +34 -48
  858. package/lib/popover/index.css +1 -1
  859. package/lib/popover/index.d.ts +35 -34
  860. package/lib/popover/index.less +2 -2
  861. package/lib/popover/types.d.ts +11 -0
  862. package/lib/popover/types.js +3 -0
  863. package/lib/popover/var.less +3 -3
  864. package/lib/popup/Popup.d.ts +64 -18
  865. package/lib/popup/Popup.js +21 -30
  866. package/lib/popup/index.css +1 -1
  867. package/lib/popup/index.d.ts +16 -16
  868. package/lib/popup/index.less +1 -6
  869. package/lib/popup/shared.js +3 -3
  870. package/lib/popup/var.less +1 -2
  871. package/lib/progress/Progress.d.ts +2 -2
  872. package/lib/progress/Progress.js +13 -9
  873. package/lib/progress/index.css +1 -1
  874. package/lib/progress/index.less +10 -1
  875. package/lib/progress/var.less +1 -0
  876. package/lib/pull-refresh/PullRefresh.d.ts +29 -9
  877. package/lib/pull-refresh/PullRefresh.js +19 -29
  878. package/lib/pull-refresh/index.css +1 -1
  879. package/lib/pull-refresh/index.d.ts +10 -12
  880. package/lib/pull-refresh/var.less +1 -1
  881. package/lib/radio/Radio.d.ts +14 -9
  882. package/lib/radio/Radio.js +5 -4
  883. package/lib/radio/index.css +1 -1
  884. package/lib/radio/index.d.ts +6 -5
  885. package/lib/radio/var.less +1 -1
  886. package/lib/radio-group/RadioGroup.d.ts +4 -2
  887. package/lib/radio-group/RadioGroup.js +8 -7
  888. package/lib/radio-group/index.d.ts +1 -0
  889. package/lib/rate/Rate.d.ts +47 -14
  890. package/lib/rate/Rate.js +23 -32
  891. package/lib/rate/index.d.ts +22 -21
  892. package/lib/row/Row.d.ts +22 -5
  893. package/lib/row/Row.js +12 -16
  894. package/lib/row/index.d.ts +8 -8
  895. package/lib/search/Search.d.ts +64 -64
  896. package/lib/search/Search.js +14 -20
  897. package/lib/search/index.css +1 -1
  898. package/lib/search/index.d.ts +35 -35
  899. package/lib/search/index.less +2 -2
  900. package/lib/search/var.less +1 -1
  901. package/lib/share-sheet/ShareSheet.d.ts +64 -10
  902. package/lib/share-sheet/ShareSheet.js +21 -22
  903. package/lib/share-sheet/index.css +1 -1
  904. package/lib/share-sheet/index.d.ts +15 -8
  905. package/lib/share-sheet/index.less +0 -4
  906. package/lib/share-sheet/var.less +3 -3
  907. package/lib/sidebar/Sidebar.d.ts +8 -1
  908. package/lib/sidebar/Sidebar.js +9 -10
  909. package/lib/sidebar/index.d.ts +1 -0
  910. package/lib/sidebar-item/SidebarItem.d.ts +12 -0
  911. package/lib/sidebar-item/SidebarItem.js +12 -10
  912. package/lib/sidebar-item/index.css +1 -1
  913. package/lib/sidebar-item/index.d.ts +1 -0
  914. package/lib/sidebar-item/index.less +1 -1
  915. package/lib/sidebar-item/var.less +2 -2
  916. package/lib/skeleton/Skeleton.d.ts +36 -7
  917. package/lib/skeleton/Skeleton.js +22 -25
  918. package/lib/skeleton/index.css +1 -1
  919. package/lib/skeleton/index.d.ts +10 -9
  920. package/lib/skeleton/index.less +2 -2
  921. package/lib/slider/Slider.d.ts +37 -9
  922. package/lib/slider/Slider.js +36 -43
  923. package/lib/slider/index.css +1 -1
  924. package/lib/slider/index.d.ts +17 -16
  925. package/lib/slider/index.less +3 -3
  926. package/lib/step/Step.js +4 -3
  927. package/lib/step/index.css +1 -1
  928. package/lib/step/index.less +1 -1
  929. package/lib/step/var.less +1 -1
  930. package/lib/stepper/Stepper.d.ts +64 -12
  931. package/lib/stepper/Stepper.js +45 -55
  932. package/lib/stepper/index.css +1 -1
  933. package/lib/stepper/index.d.ts +26 -27
  934. package/lib/stepper/index.less +6 -21
  935. package/lib/stepper/var.less +1 -2
  936. package/lib/steps/Steps.d.ts +23 -22
  937. package/lib/steps/Steps.js +11 -19
  938. package/lib/steps/index.css +1 -1
  939. package/lib/steps/index.d.ts +11 -10
  940. package/lib/steps/var.less +1 -1
  941. package/lib/sticky/Sticky.d.ts +21 -4
  942. package/lib/sticky/Sticky.js +13 -20
  943. package/lib/sticky/index.d.ts +6 -6
  944. package/lib/style/base.css +1 -1
  945. package/lib/style/base.less +4 -0
  946. package/lib/style/css-variables.css +1 -1
  947. package/lib/style/css-variables.less +3 -1
  948. package/lib/style/mixins/hairline.less +3 -3
  949. package/lib/style/var.less +5 -3
  950. package/lib/submit-bar/SubmitBar.d.ts +43 -13
  951. package/lib/submit-bar/SubmitBar.js +23 -29
  952. package/lib/submit-bar/index.css +1 -1
  953. package/lib/submit-bar/index.d.ts +17 -16
  954. package/lib/submit-bar/index.less +2 -2
  955. package/lib/submit-bar/var.less +3 -3
  956. package/lib/swipe/Swipe.d.ts +32 -32
  957. package/lib/swipe/Swipe.js +35 -29
  958. package/lib/swipe/index.d.ts +18 -18
  959. package/lib/swipe-cell/SwipeCell.d.ts +9 -9
  960. package/lib/swipe-cell/SwipeCell.js +17 -16
  961. package/lib/swipe-cell/index.d.ts +5 -5
  962. package/lib/swipe-item/SwipeItem.js +4 -3
  963. package/lib/switch/Switch.d.ts +18 -0
  964. package/lib/switch/Switch.js +22 -19
  965. package/lib/switch/index.css +1 -1
  966. package/lib/switch/index.d.ts +1 -0
  967. package/lib/switch/index.less +3 -3
  968. package/lib/switch/var.less +1 -1
  969. package/lib/tab/Tab.d.ts +19 -1
  970. package/lib/tab/Tab.js +16 -14
  971. package/lib/tab/index.d.ts +1 -0
  972. package/lib/tabbar/Tabbar.d.ts +5 -4
  973. package/lib/tabbar/Tabbar.js +10 -13
  974. package/lib/tabbar/index.css +1 -1
  975. package/lib/tabbar/index.d.ts +3 -2
  976. package/lib/tabbar/index.less +1 -1
  977. package/lib/tabbar/var.less +1 -1
  978. package/lib/tabbar-item/TabbarItem.d.ts +13 -0
  979. package/lib/tabbar-item/TabbarItem.js +14 -12
  980. package/lib/tabbar-item/index.css +1 -1
  981. package/lib/tabbar-item/index.d.ts +1 -0
  982. package/lib/tabbar-item/var.less +1 -1
  983. package/lib/tabs/Tabs.d.ts +40 -40
  984. package/lib/tabs/Tabs.js +38 -43
  985. package/lib/tabs/TabsContent.d.ts +7 -7
  986. package/lib/tabs/TabsContent.js +8 -16
  987. package/lib/tabs/TabsTitle.js +1 -1
  988. package/lib/tabs/index.css +1 -1
  989. package/lib/tabs/index.d.ts +23 -23
  990. package/lib/tabs/index.less +2 -2
  991. package/lib/tabs/var.less +2 -2
  992. package/lib/tag/Tag.d.ts +25 -6
  993. package/lib/tag/Tag.js +18 -18
  994. package/lib/tag/index.css +1 -1
  995. package/lib/tag/index.d.ts +8 -7
  996. package/lib/tag/index.less +6 -6
  997. package/lib/tag/var.less +1 -1
  998. package/lib/toast/Toast.d.ts +43 -11
  999. package/lib/toast/Toast.js +28 -44
  1000. package/lib/toast/function-call.js +10 -2
  1001. package/lib/toast/index.css +1 -1
  1002. package/lib/toast/index.d.ts +1 -0
  1003. package/lib/toast/index.less +1 -1
  1004. package/lib/tree-select/TreeSelect.d.ts +35 -8
  1005. package/lib/tree-select/TreeSelect.js +18 -30
  1006. package/lib/tree-select/index.css +1 -1
  1007. package/lib/tree-select/index.d.ts +11 -11
  1008. package/lib/tree-select/index.less +2 -2
  1009. package/lib/tree-select/var.less +1 -1
  1010. package/lib/uploader/Uploader.d.ts +66 -66
  1011. package/lib/uploader/Uploader.js +26 -40
  1012. package/lib/uploader/UploaderPreviewItem.d.ts +6 -6
  1013. package/lib/uploader/UploaderPreviewItem.js +12 -14
  1014. package/lib/uploader/index.css +1 -1
  1015. package/lib/uploader/index.d.ts +45 -45
  1016. package/lib/uploader/index.less +4 -4
  1017. package/lib/uploader/utils.d.ts +3 -3
  1018. package/lib/uploader/utils.js +11 -14
  1019. package/lib/uploader/var.less +1 -1
  1020. package/{es/utils/base.d.ts → lib/utils/basic.d.ts} +1 -6
  1021. package/lib/utils/{base.js → basic.js} +4 -11
  1022. package/lib/utils/constant.d.ts +1 -0
  1023. package/lib/utils/constant.js +3 -1
  1024. package/{es/utils/create/bem.d.ts → lib/utils/create.d.ts} +7 -4
  1025. package/lib/utils/create.js +73 -0
  1026. package/lib/utils/deep-assign.d.ts +1 -1
  1027. package/lib/utils/deep-assign.js +1 -1
  1028. package/lib/utils/deep-clone.js +1 -1
  1029. package/{es/utils/dom/scroll.d.ts → lib/utils/dom.d.ts} +4 -2
  1030. package/lib/utils/{dom/scroll.js → dom.js} +42 -26
  1031. package/lib/utils/format.d.ts +12 -0
  1032. package/lib/utils/format.js +169 -0
  1033. package/lib/utils/index.d.ts +4 -7
  1034. package/lib/utils/index.js +28 -52
  1035. package/lib/utils/interceptor.d.ts +3 -4
  1036. package/lib/utils/interceptor.js +9 -8
  1037. package/lib/utils/mount-component.js +5 -3
  1038. package/lib/utils/props.d.ts +31 -0
  1039. package/lib/utils/props.js +53 -0
  1040. package/lib/utils/validate.d.ts +7 -7
  1041. package/lib/utils/validate.js +24 -29
  1042. package/lib/utils/with-install.js +2 -2
  1043. package/lib/vant.es.js +4188 -4637
  1044. package/lib/vant.es.min.js +15377 -1
  1045. package/lib/vant.js +4187 -4636
  1046. package/lib/vant.min.js +1 -1
  1047. package/package.json +11 -8
  1048. package/vetur/attributes.json +762 -758
  1049. package/vetur/tags.json +254 -253
  1050. package/vetur/web-types.json +1923 -1897
  1051. package/changelog.generated.md +0 -152
  1052. package/es/utils/create/bem.js +0 -35
  1053. package/es/utils/create/index.d.ts +0 -1
  1054. package/es/utils/create/index.js +0 -6
  1055. package/es/utils/create/translate.d.ts +0 -2
  1056. package/es/utils/create/translate.js +0 -12
  1057. package/es/utils/dom/event.d.ts +0 -3
  1058. package/es/utils/dom/event.js +0 -18
  1059. package/es/utils/dom/style.d.ts +0 -2
  1060. package/es/utils/dom/style.js +0 -16
  1061. package/es/utils/format/number.d.ts +0 -4
  1062. package/es/utils/format/number.js +0 -40
  1063. package/es/utils/format/string.d.ts +0 -3
  1064. package/es/utils/format/string.js +0 -16
  1065. package/es/utils/format/unit.d.ts +0 -5
  1066. package/es/utils/format/unit.js +0 -76
  1067. package/lib/utils/create/bem.js +0 -40
  1068. package/lib/utils/create/index.d.ts +0 -1
  1069. package/lib/utils/create/index.js +0 -13
  1070. package/lib/utils/create/translate.d.ts +0 -2
  1071. package/lib/utils/create/translate.js +0 -24
  1072. package/lib/utils/dom/event.d.ts +0 -3
  1073. package/lib/utils/dom/event.js +0 -27
  1074. package/lib/utils/dom/style.d.ts +0 -2
  1075. package/lib/utils/dom/style.js +0 -22
  1076. package/lib/utils/format/number.d.ts +0 -4
  1077. package/lib/utils/format/number.js +0 -48
  1078. package/lib/utils/format/string.d.ts +0 -3
  1079. package/lib/utils/format/string.js +0 -25
  1080. package/lib/utils/format/unit.d.ts +0 -5
  1081. package/lib/utils/format/unit.js +0 -89
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "van-action-sheet/close-on-popstate": {
62
62
  "type": "boolean",
63
- "description": "是否在页面回退时自动关闭, 默认值: `false`"
63
+ "description": "是否在页面回退时自动关闭, 默认值: `true`"
64
64
  },
65
65
  "van-action-sheet/close-on-click-action": {
66
66
  "type": "boolean",
@@ -253,6 +253,33 @@
253
253
  "type": "(key, val) => string",
254
254
  "description": "自定义校验函数, 默认值: -"
255
255
  },
256
+ "van-badge/content": {
257
+ "type": "number | string",
258
+ "description": "徽标内容, 默认值: -"
259
+ },
260
+ "van-badge/color": {
261
+ "type": "string",
262
+ "description": "徽标背景颜色, 默认值: `#ee0a24`"
263
+ },
264
+ "van-badge/dot": {
265
+ "type": "boolean",
266
+ "description": "是否展示为小红点, 默认值: `false`"
267
+ },
268
+ "van-badge/max": {
269
+ "type": "number | string",
270
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
271
+ },
272
+ "van-badge/offset": {
273
+ "type": "[number | string, number \\",
274
+ "description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
275
+ "options": [
276
+ "-"
277
+ ]
278
+ },
279
+ "van-badge/show-zero": {
280
+ "type": "boolean",
281
+ "description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
282
+ },
256
283
  "van-address-list/v-model": {
257
284
  "type": "string",
258
285
  "description": "当前选中地址的 id, 默认值: -"
@@ -333,6 +360,94 @@
333
360
  "type": "() => boolean",
334
361
  "description": "根据地区码校验海外地址,海外地址会划分至单独的分类, 默认值: -"
335
362
  },
363
+ "van-button/type": {
364
+ "type": "string",
365
+ "description": "类型,可选值为 `primary` `success` `warning` `danger`, 默认值: `default`"
366
+ },
367
+ "van-button/size": {
368
+ "type": "string",
369
+ "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
370
+ },
371
+ "van-button/text": {
372
+ "type": "string",
373
+ "description": "按钮文字, 默认值: -"
374
+ },
375
+ "van-button/color": {
376
+ "type": "string",
377
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
378
+ },
379
+ "van-button/icon": {
380
+ "type": "string",
381
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
382
+ },
383
+ "van-button/icon-prefix": {
384
+ "type": "string",
385
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
386
+ },
387
+ "van-button/icon-position": {
388
+ "type": "string",
389
+ "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
390
+ },
391
+ "van-button/tag": {
392
+ "type": "string",
393
+ "description": "按钮根节点的 HTML 标签, 默认值: `button`"
394
+ },
395
+ "van-button/native-type": {
396
+ "type": "string",
397
+ "description": "原生 button 标签的 type 属性, 默认值: `button`"
398
+ },
399
+ "van-button/block": {
400
+ "type": "boolean",
401
+ "description": "是否为块级元素, 默认值: `false`"
402
+ },
403
+ "van-button/plain": {
404
+ "type": "boolean",
405
+ "description": "是否为朴素按钮, 默认值: `false`"
406
+ },
407
+ "van-button/square": {
408
+ "type": "boolean",
409
+ "description": "是否为方形按钮, 默认值: `false`"
410
+ },
411
+ "van-button/round": {
412
+ "type": "boolean",
413
+ "description": "是否为圆形按钮, 默认值: `false`"
414
+ },
415
+ "van-button/disabled": {
416
+ "type": "boolean",
417
+ "description": "是否禁用按钮, 默认值: `false`"
418
+ },
419
+ "van-button/hairline": {
420
+ "type": "boolean",
421
+ "description": "是否使用 0.5px 边框, 默认值: `false`"
422
+ },
423
+ "van-button/loading": {
424
+ "type": "boolean",
425
+ "description": "是否显示为加载状态, 默认值: `false`"
426
+ },
427
+ "van-button/loading-text": {
428
+ "type": "string",
429
+ "description": "加载状态提示文字, 默认值: -"
430
+ },
431
+ "van-button/loading-type": {
432
+ "type": "string",
433
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
434
+ },
435
+ "van-button/loading-size": {
436
+ "type": "number | string",
437
+ "description": "加载图标大小,默认单位为 `px`, 默认值: `20px`"
438
+ },
439
+ "van-button/url": {
440
+ "type": "string",
441
+ "description": "点击后跳转的链接地址, 默认值: -"
442
+ },
443
+ "van-button/to": {
444
+ "type": "string | object",
445
+ "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
446
+ },
447
+ "van-button/replace": {
448
+ "type": "boolean",
449
+ "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
450
+ },
336
451
  "van-calendar/type": {
337
452
  "type": "string",
338
453
  "description": "选择类型:<br>`single` 表示选择单个日期,<br>`multiple` 表示选择多个日期,<br>`range` 表示选择日期区间, 默认值: `single`"
@@ -452,121 +567,6 @@
452
567
  "type": "boolean",
453
568
  "description": "是否允许日期范围的起止时间为同一天, 默认值: `false`"
454
569
  },
455
- "van-button/type": {
456
- "type": "string",
457
- "description": "类型,可选值为 `primary` `success` `warning` `danger`, 默认值: `default`"
458
- },
459
- "van-button/size": {
460
- "type": "string",
461
- "description": "尺寸,可选值为 `large` `small` `mini`, 默认值: `normal`"
462
- },
463
- "van-button/text": {
464
- "type": "string",
465
- "description": "按钮文字, 默认值: -"
466
- },
467
- "van-button/color": {
468
- "type": "string",
469
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色, 默认值: -"
470
- },
471
- "van-button/icon": {
472
- "type": "string",
473
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
474
- },
475
- "van-button/icon-prefix": {
476
- "type": "string",
477
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
478
- },
479
- "van-button/icon-position": {
480
- "type": "string",
481
- "description": "图标展示位置,可选值为 `right`, 默认值: `left`"
482
- },
483
- "van-button/tag": {
484
- "type": "string",
485
- "description": "按钮根节点的 HTML 标签, 默认值: `button`"
486
- },
487
- "van-button/native-type": {
488
- "type": "string",
489
- "description": "原生 button 标签的 type 属性, 默认值: `button`"
490
- },
491
- "van-button/block": {
492
- "type": "boolean",
493
- "description": "是否为块级元素, 默认值: `false`"
494
- },
495
- "van-button/plain": {
496
- "type": "boolean",
497
- "description": "是否为朴素按钮, 默认值: `false`"
498
- },
499
- "van-button/square": {
500
- "type": "boolean",
501
- "description": "是否为方形按钮, 默认值: `false`"
502
- },
503
- "van-button/round": {
504
- "type": "boolean",
505
- "description": "是否为圆形按钮, 默认值: `false`"
506
- },
507
- "van-button/disabled": {
508
- "type": "boolean",
509
- "description": "是否禁用按钮, 默认值: `false`"
510
- },
511
- "van-button/hairline": {
512
- "type": "boolean",
513
- "description": "是否使用 0.5px 边框, 默认值: `false`"
514
- },
515
- "van-button/loading": {
516
- "type": "boolean",
517
- "description": "是否显示为加载状态, 默认值: `false`"
518
- },
519
- "van-button/loading-text": {
520
- "type": "string",
521
- "description": "加载状态提示文字, 默认值: -"
522
- },
523
- "van-button/loading-type": {
524
- "type": "string",
525
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`, 默认值: `circular`"
526
- },
527
- "van-button/loading-size": {
528
- "type": "number | string",
529
- "description": "加载图标大小,默认单位为 `px`, 默认值: `20px`"
530
- },
531
- "van-button/url": {
532
- "type": "string",
533
- "description": "点击后跳转的链接地址, 默认值: -"
534
- },
535
- "van-button/to": {
536
- "type": "string | object",
537
- "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
538
- },
539
- "van-button/replace": {
540
- "type": "boolean",
541
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
542
- },
543
- "van-badge/content": {
544
- "type": "number | string",
545
- "description": "徽标内容, 默认值: -"
546
- },
547
- "van-badge/color": {
548
- "type": "string",
549
- "description": "徽标背景颜色, 默认值: `#ee0a24`"
550
- },
551
- "van-badge/dot": {
552
- "type": "boolean",
553
- "description": "是否展示为小红点, 默认值: `false`"
554
- },
555
- "van-badge/max": {
556
- "type": "number | string",
557
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效, 默认值: -"
558
- },
559
- "van-badge/offset": {
560
- "type": "[number | string, number \\",
561
- "description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`, 默认值: string]_",
562
- "options": [
563
- "-"
564
- ]
565
- },
566
- "van-badge/show-zero": {
567
- "type": "boolean",
568
- "description": "当 content 为数字 0 时,是否展示徽标, 默认值: `true`"
569
- },
570
570
  "van-card/thumb": {
571
571
  "type": "string",
572
572
  "description": "左侧图片 URL, 默认值: -"
@@ -747,65 +747,53 @@
747
747
  "-"
748
748
  ]
749
749
  },
750
- "van-checkbox/v-model": {
751
- "type": "boolean",
752
- "description": "是否为选中状态, 默认值: `false`"
750
+ "van-circle/v-model:current-rate": {
751
+ "type": "number",
752
+ "description": "当前进度, 默认值: -"
753
753
  },
754
- "van-checkbox/name": {
755
- "type": "any",
756
- "description": "标识符, 默认值: -"
754
+ "van-circle/rate": {
755
+ "type": "number | string",
756
+ "description": "目标进度, 默认值: `100`"
757
757
  },
758
- "van-checkbox/shape": {
759
- "type": "string",
760
- "description": "形状,可选值为 `square`, 默认值: `round`"
758
+ "van-circle/size": {
759
+ "type": "number | string",
760
+ "description": "圆环直径,默认单位为 `px`, 默认值: `100px`"
761
761
  },
762
- "van-checkbox/disabled": {
763
- "type": "boolean",
764
- "description": "是否禁用复选框, 默认值: `false`"
762
+ "van-circle/color": {
763
+ "type": "string | object",
764
+ "description": "进度条颜色,传入对象格式可以定义渐变色, 默认值: `#1989fa`"
765
765
  },
766
- "van-checkbox/label-disabled": {
767
- "type": "boolean",
768
- "description": "是否禁用复选框文本点击, 默认值: `false`"
766
+ "van-circle/layer-color": {
767
+ "type": "string",
768
+ "description": "轨道颜色, 默认值: `white`"
769
769
  },
770
- "van-checkbox/label-position": {
770
+ "van-circle/fill": {
771
771
  "type": "string",
772
- "description": "文本位置,可选值为 `left`, 默认值: `right`"
772
+ "description": "填充颜色, 默认值: `none`"
773
773
  },
774
- "van-checkbox/icon-size": {
774
+ "van-circle/speed": {
775
775
  "type": "number | string",
776
- "description": "图标大小,默认单位为 `px`, 默认值: `20px`"
776
+ "description": "动画速度(单位为 rate/s), 默认值: `0`"
777
777
  },
778
- "van-checkbox/checked-color": {
778
+ "van-circle/text": {
779
779
  "type": "string",
780
- "description": "选中状态颜色, 默认值: `#1989fa`"
781
- },
782
- "van-checkbox/bind-group": {
783
- "type": "boolean",
784
- "description": "是否与复选框组绑定, 默认值: `true`"
785
- },
786
- "van-checkbox-group/v-model": {
787
- "type": "any[]",
788
- "description": "所有选中项的标识符, 默认值: -"
789
- },
790
- "van-checkbox-group/disabled": {
791
- "type": "boolean",
792
- "description": "是否禁用所有复选框, 默认值: `false`"
780
+ "description": "文字, 默认值: -"
793
781
  },
794
- "van-checkbox-group/max": {
782
+ "van-circle/stroke-width": {
795
783
  "type": "number | string",
796
- "description": "最大可选数,`0` 为无限制, 默认值: `0`"
784
+ "description": "进度条宽度, 默认值: `40`"
797
785
  },
798
- "van-checkbox-group/direction": {
786
+ "van-circle/stroke-linecap": {
799
787
  "type": "string",
800
- "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
788
+ "description": "进度条端点的形状,可选值为 `square` `butt`, 默认值: `round`"
801
789
  },
802
- "van-checkbox-group/icon-size": {
803
- "type": "number | string",
804
- "description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
790
+ "van-circle/clockwise": {
791
+ "type": "boolean",
792
+ "description": "是否顺时针增加, 默认值: `true`"
805
793
  },
806
- "van-checkbox-group/checked-color": {
807
- "type": "string",
808
- "description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
794
+ "van-circle/start-position": {
795
+ "type": "CircleStartPosition",
796
+ "description": "进度起始位置,可选值为 `left`、`right`、`bottom`, 默认值: `top`"
809
797
  },
810
798
  "van-row/gutter": {
811
799
  "type": "number | string",
@@ -839,53 +827,65 @@
839
827
  "type": "string",
840
828
  "description": "自定义元素标签, 默认值: `div`"
841
829
  },
842
- "van-circle/v-model:current-rate": {
843
- "type": "number",
844
- "description": "当前进度, 默认值: -"
830
+ "van-checkbox/v-model": {
831
+ "type": "boolean",
832
+ "description": "是否为选中状态, 默认值: `false`"
845
833
  },
846
- "van-circle/rate": {
847
- "type": "number | string",
848
- "description": "目标进度, 默认值: `100`"
834
+ "van-checkbox/name": {
835
+ "type": "any",
836
+ "description": "标识符, 默认值: -"
849
837
  },
850
- "van-circle/size": {
851
- "type": "number | string",
852
- "description": "圆环直径,默认单位为 `px`, 默认值: `100px`"
838
+ "van-checkbox/shape": {
839
+ "type": "string",
840
+ "description": "形状,可选值为 `square`, 默认值: `round`"
853
841
  },
854
- "van-circle/color": {
855
- "type": "string | object",
856
- "description": "进度条颜色,传入对象格式可以定义渐变色, 默认值: `#1989fa`"
842
+ "van-checkbox/disabled": {
843
+ "type": "boolean",
844
+ "description": "是否禁用复选框, 默认值: `false`"
857
845
  },
858
- "van-circle/layer-color": {
859
- "type": "string",
860
- "description": "轨道颜色, 默认值: `white`"
846
+ "van-checkbox/label-disabled": {
847
+ "type": "boolean",
848
+ "description": "是否禁用复选框文本点击, 默认值: `false`"
861
849
  },
862
- "van-circle/fill": {
850
+ "van-checkbox/label-position": {
863
851
  "type": "string",
864
- "description": "填充颜色, 默认值: `none`"
852
+ "description": "文本位置,可选值为 `left`, 默认值: `right`"
865
853
  },
866
- "van-circle/speed": {
854
+ "van-checkbox/icon-size": {
867
855
  "type": "number | string",
868
- "description": "动画速度(单位为 rate/s), 默认值: `0`"
856
+ "description": "图标大小,默认单位为 `px`, 默认值: `20px`"
869
857
  },
870
- "van-circle/text": {
858
+ "van-checkbox/checked-color": {
871
859
  "type": "string",
872
- "description": "文字, 默认值: -"
860
+ "description": "选中状态颜色, 默认值: `#1989fa`"
873
861
  },
874
- "van-circle/stroke-width": {
862
+ "van-checkbox/bind-group": {
863
+ "type": "boolean",
864
+ "description": "是否与复选框组绑定, 默认值: `true`"
865
+ },
866
+ "van-checkbox-group/v-model": {
867
+ "type": "any[]",
868
+ "description": "所有选中项的标识符, 默认值: -"
869
+ },
870
+ "van-checkbox-group/disabled": {
871
+ "type": "boolean",
872
+ "description": "是否禁用所有复选框, 默认值: `false`"
873
+ },
874
+ "van-checkbox-group/max": {
875
875
  "type": "number | string",
876
- "description": "进度条宽度, 默认值: `40`"
876
+ "description": "最大可选数,`0` 为无限制, 默认值: `0`"
877
877
  },
878
- "van-circle/stroke-linecap": {
878
+ "van-checkbox-group/direction": {
879
879
  "type": "string",
880
- "description": "进度条端点的形状,可选值为 `square` `butt`, 默认值: `round`"
880
+ "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
881
881
  },
882
- "van-circle/clockwise": {
883
- "type": "boolean",
884
- "description": "是否顺时针增加, 默认值: `true`"
882
+ "van-checkbox-group/icon-size": {
883
+ "type": "number | string",
884
+ "description": "所有复选框的图标大小,默认单位为 `px`, 默认值: `20px`"
885
885
  },
886
- "van-circle/start-position": {
887
- "type": "CircleStartPosition",
888
- "description": "进度起始位置,可选值为 `left`、`right`、`bottom`, 默认值: `top`"
886
+ "van-checkbox-group/checked-color": {
887
+ "type": "string",
888
+ "description": "所有复选框的选中状态颜色, 默认值: `#1989fa`"
889
889
  },
890
890
  "van-collapse/v-model": {
891
891
  "type": "手风琴模式:_number | string_<br>非手风琴模式:_(number \\",
@@ -1042,82 +1042,6 @@
1042
1042
  "type": "boolean",
1043
1043
  "description": "是否开启毫秒级渲染, 默认值: `false`"
1044
1044
  },
1045
- "van-datetime-picker/type": {
1046
- "type": "string",
1047
- "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
1048
- },
1049
- "van-datetime-picker/title": {
1050
- "type": "string",
1051
- "description": "顶部栏标题, 默认值: `''`"
1052
- },
1053
- "van-datetime-picker/confirm-button-text": {
1054
- "type": "string",
1055
- "description": "确认按钮文字, 默认值: `确认`"
1056
- },
1057
- "van-datetime-picker/cancel-button-text": {
1058
- "type": "string",
1059
- "description": "取消按钮文字, 默认值: `取消`"
1060
- },
1061
- "van-datetime-picker/show-toolbar": {
1062
- "type": "boolean",
1063
- "description": "是否显示顶部栏, 默认值: `true`"
1064
- },
1065
- "van-datetime-picker/loading": {
1066
- "type": "boolean",
1067
- "description": "是否显示加载状态, 默认值: `false`"
1068
- },
1069
- "van-datetime-picker/readonly": {
1070
- "type": "boolean",
1071
- "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
1072
- },
1073
- "van-datetime-picker/filter": {
1074
- "type": "(type: string, values: string[]) => string[]",
1075
- "description": "选项过滤函数, 默认值: -"
1076
- },
1077
- "van-datetime-picker/formatter": {
1078
- "type": "(type: string, value: string) => string",
1079
- "description": "选项格式化函数, 默认值: -"
1080
- },
1081
- "van-datetime-picker/columns-order": {
1082
- "type": "string[]",
1083
- "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`, 默认值: -"
1084
- },
1085
- "van-datetime-picker/item-height": {
1086
- "type": "number | string",
1087
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
1088
- },
1089
- "van-datetime-picker/visible-item-count": {
1090
- "type": "number | string",
1091
- "description": "可见的选项个数, 默认值: `6`"
1092
- },
1093
- "van-datetime-picker/swipe-duration": {
1094
- "type": "number | string",
1095
- "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
1096
- },
1097
- "van-date-picker/min-date": {
1098
- "type": "Date",
1099
- "description": "可选的最小时间,精确到分钟, 默认值: 十年前"
1100
- },
1101
- "van-date-picker/max-date": {
1102
- "type": "Date",
1103
- "description": "可选的最大时间,精确到分钟, 默认值: 十年后"
1104
- },
1105
- "van-time-picker/min-hour": {
1106
- "type": "number | string",
1107
- "description": "可选的最小小时, 默认值: `0`"
1108
- },
1109
- "van-time-picker/max-hour": {
1110
- "type": "number | string",
1111
- "description": "可选的最大小时, 默认值: `23`"
1112
- },
1113
- "van-time-picker/min-minute": {
1114
- "type": "number | string",
1115
- "description": "可选的最小分钟, 默认值: `0`"
1116
- },
1117
- "van-time-picker/max-minute": {
1118
- "type": "number | string",
1119
- "description": "可选的最大分钟, 默认值: `59`"
1120
- },
1121
1045
  "van-coupon-cell/title": {
1122
1046
  "type": "string",
1123
1047
  "description": "单元格标题, 默认值: `优惠券`"
@@ -1214,53 +1138,129 @@
1214
1138
  "type": "boolean",
1215
1139
  "description": "是否展示可用 / 不可用数量, 默认值: `true`"
1216
1140
  },
1217
- "van-dialog/v-model:show": {
1218
- "type": "boolean",
1219
- "description": "是否显示弹窗, 默认值: -"
1220
- },
1221
- "van-dialog/title": {
1141
+ "van-datetime-picker/type": {
1222
1142
  "type": "string",
1223
- "description": "标题, 默认值: -"
1224
- },
1225
- "van-dialog/width": {
1226
- "type": "number | string",
1227
- "description": "弹窗宽度,默认单位为 `px`, 默认值: `320px`"
1143
+ "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`, 默认值: `datetime`"
1228
1144
  },
1229
- "van-dialog/message": {
1230
- "type": "string | () => JSX.ELement",
1231
- "description": "文本内容,支持通过 `\\n` 换行, 默认值: -"
1145
+ "van-datetime-picker/title": {
1146
+ "type": "string",
1147
+ "description": "顶部栏标题, 默认值: `''`"
1232
1148
  },
1233
- "van-dialog/message-align": {
1149
+ "van-datetime-picker/confirm-button-text": {
1234
1150
  "type": "string",
1235
- "description": "内容水平对齐方式,可选值为 `left` `right`, 默认值: `center`"
1151
+ "description": "确认按钮文字, 默认值: `确认`"
1236
1152
  },
1237
- "van-dialog/theme": {
1153
+ "van-datetime-picker/cancel-button-text": {
1238
1154
  "type": "string",
1239
- "description": "样式风格,可选值为 `round-button`, 默认值: `default`"
1155
+ "description": "取消按钮文字, 默认值: `取消`"
1240
1156
  },
1241
- "van-dialog/show-confirm-button": {
1157
+ "van-datetime-picker/show-toolbar": {
1242
1158
  "type": "boolean",
1243
- "description": "是否展示确认按钮, 默认值: `true`"
1159
+ "description": "是否显示顶部栏, 默认值: `true`"
1244
1160
  },
1245
- "van-dialog/show-cancel-button": {
1161
+ "van-datetime-picker/loading": {
1246
1162
  "type": "boolean",
1247
- "description": "是否展示取消按钮, 默认值: `false`"
1248
- },
1249
- "van-dialog/confirm-button-text": {
1250
- "type": "string",
1251
- "description": "确认按钮文案, 默认值: `确认`"
1163
+ "description": "是否显示加载状态, 默认值: `false`"
1252
1164
  },
1253
- "van-dialog/confirm-button-color": {
1254
- "type": "string",
1255
- "description": "确认按钮颜色, 默认值: `#ee0a24`"
1165
+ "van-datetime-picker/readonly": {
1166
+ "type": "boolean",
1167
+ "description": "是否为只读状态,只读状态下无法切换选项, 默认值: `false`"
1256
1168
  },
1257
- "van-dialog/cancel-button-text": {
1258
- "type": "string",
1259
- "description": "取消按钮文案, 默认值: `取消`"
1169
+ "van-datetime-picker/filter": {
1170
+ "type": "(type: string, values: string[]) => string[]",
1171
+ "description": "选项过滤函数, 默认值: -"
1260
1172
  },
1261
- "van-dialog/cancel-button-color": {
1262
- "type": "string",
1263
- "description": "取消按钮颜色, 默认值: `black`"
1173
+ "van-datetime-picker/formatter": {
1174
+ "type": "(type: string, value: string) => string",
1175
+ "description": "选项格式化函数, 默认值: -"
1176
+ },
1177
+ "van-datetime-picker/columns-order": {
1178
+ "type": "string[]",
1179
+ "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`, 默认值: -"
1180
+ },
1181
+ "van-datetime-picker/item-height": {
1182
+ "type": "number | string",
1183
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
1184
+ },
1185
+ "van-datetime-picker/visible-item-count": {
1186
+ "type": "number | string",
1187
+ "description": "可见的选项个数, 默认值: `6`"
1188
+ },
1189
+ "van-datetime-picker/swipe-duration": {
1190
+ "type": "number | string",
1191
+ "description": "快速滑动时惯性滚动的时长,单位`ms`, 默认值: `1000`"
1192
+ },
1193
+ "van-date-picker/min-date": {
1194
+ "type": "Date",
1195
+ "description": "可选的最小时间,精确到分钟, 默认值: 十年前"
1196
+ },
1197
+ "van-date-picker/max-date": {
1198
+ "type": "Date",
1199
+ "description": "可选的最大时间,精确到分钟, 默认值: 十年后"
1200
+ },
1201
+ "van-time-picker/min-hour": {
1202
+ "type": "number | string",
1203
+ "description": "可选的最小小时, 默认值: `0`"
1204
+ },
1205
+ "van-time-picker/max-hour": {
1206
+ "type": "number | string",
1207
+ "description": "可选的最大小时, 默认值: `23`"
1208
+ },
1209
+ "van-time-picker/min-minute": {
1210
+ "type": "number | string",
1211
+ "description": "可选的最小分钟, 默认值: `0`"
1212
+ },
1213
+ "van-time-picker/max-minute": {
1214
+ "type": "number | string",
1215
+ "description": "可选的最大分钟, 默认值: `59`"
1216
+ },
1217
+ "van-dialog/v-model:show": {
1218
+ "type": "boolean",
1219
+ "description": "是否显示弹窗, 默认值: -"
1220
+ },
1221
+ "van-dialog/title": {
1222
+ "type": "string",
1223
+ "description": "标题, 默认值: -"
1224
+ },
1225
+ "van-dialog/width": {
1226
+ "type": "number | string",
1227
+ "description": "弹窗宽度,默认单位为 `px`, 默认值: `320px`"
1228
+ },
1229
+ "van-dialog/message": {
1230
+ "type": "string | () => JSX.ELement",
1231
+ "description": "文本内容,支持通过 `\\n` 换行, 默认值: -"
1232
+ },
1233
+ "van-dialog/message-align": {
1234
+ "type": "string",
1235
+ "description": "内容水平对齐方式,可选值为 `left` `right`, 默认值: `center`"
1236
+ },
1237
+ "van-dialog/theme": {
1238
+ "type": "string",
1239
+ "description": "样式风格,可选值为 `round-button`, 默认值: `default`"
1240
+ },
1241
+ "van-dialog/show-confirm-button": {
1242
+ "type": "boolean",
1243
+ "description": "是否展示确认按钮, 默认值: `true`"
1244
+ },
1245
+ "van-dialog/show-cancel-button": {
1246
+ "type": "boolean",
1247
+ "description": "是否展示取消按钮, 默认值: `false`"
1248
+ },
1249
+ "van-dialog/confirm-button-text": {
1250
+ "type": "string",
1251
+ "description": "确认按钮文案, 默认值: `确认`"
1252
+ },
1253
+ "van-dialog/confirm-button-color": {
1254
+ "type": "string",
1255
+ "description": "确认按钮颜色, 默认值: `#ee0a24`"
1256
+ },
1257
+ "van-dialog/cancel-button-text": {
1258
+ "type": "string",
1259
+ "description": "取消按钮文案, 默认值: `取消`"
1260
+ },
1261
+ "van-dialog/cancel-button-color": {
1262
+ "type": "string",
1263
+ "description": "取消按钮颜色, 默认值: `black`"
1264
1264
  },
1265
1265
  "van-dialog/overlay": {
1266
1266
  "type": "boolean",
@@ -1540,6 +1540,78 @@
1540
1540
  "type": "string",
1541
1541
  "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
1542
1542
  },
1543
+ "van-grid/column-num": {
1544
+ "type": "number | string",
1545
+ "description": "列数, 默认值: `4`"
1546
+ },
1547
+ "van-grid/icon-size": {
1548
+ "type": "number | string",
1549
+ "description": "图标大小,默认单位为`px`, 默认值: `28px`"
1550
+ },
1551
+ "van-grid/gutter": {
1552
+ "type": "number | string",
1553
+ "description": "格子之间的间距,默认单位为`px`, 默认值: `0`"
1554
+ },
1555
+ "van-grid/border": {
1556
+ "type": "boolean",
1557
+ "description": "是否显示边框, 默认值: `true`"
1558
+ },
1559
+ "van-grid/center": {
1560
+ "type": "boolean",
1561
+ "description": "是否将格子内容居中显示, 默认值: `true`"
1562
+ },
1563
+ "van-grid/square": {
1564
+ "type": "boolean",
1565
+ "description": "是否将格子固定为正方形, 默认值: `false`"
1566
+ },
1567
+ "van-grid/clickable": {
1568
+ "type": "boolean",
1569
+ "description": "是否开启格子点击反馈, 默认值: `false`"
1570
+ },
1571
+ "van-grid/direction": {
1572
+ "type": "string",
1573
+ "description": "格子内容排列的方向,可选值为 `horizontal`, 默认值: `vertical`"
1574
+ },
1575
+ "van-grid-item/text": {
1576
+ "type": "string",
1577
+ "description": "文字, 默认值: -"
1578
+ },
1579
+ "van-grid-item/icon": {
1580
+ "type": "string",
1581
+ "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1582
+ },
1583
+ "van-grid-item/icon-prefix": {
1584
+ "type": "string",
1585
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1586
+ },
1587
+ "van-grid-item/icon-color": {
1588
+ "type": "string",
1589
+ "description": "图标颜色,等同于 Icon 组件的 [color 属性](#/zh-CN/icon#props), 默认值: -"
1590
+ },
1591
+ "van-grid-item/reverse": {
1592
+ "type": "boolean",
1593
+ "description": "是否调换图标和文本的位置, 默认值: `false`"
1594
+ },
1595
+ "van-grid-item/dot": {
1596
+ "type": "boolean",
1597
+ "description": "是否显示图标右上角小红点, 默认值: `false`"
1598
+ },
1599
+ "van-grid-item/badge": {
1600
+ "type": "number | string",
1601
+ "description": "图标右上角徽标的内容, 默认值: -"
1602
+ },
1603
+ "van-grid-item/url": {
1604
+ "type": "string",
1605
+ "description": "点击后跳转的链接地址, 默认值: -"
1606
+ },
1607
+ "van-grid-item/to": {
1608
+ "type": "string | object",
1609
+ "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
1610
+ },
1611
+ "van-grid-item/replace": {
1612
+ "type": "boolean",
1613
+ "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
1614
+ },
1543
1615
  "van-icon/name": {
1544
1616
  "type": "string",
1545
1617
  "description": "图标名称或图片链接, 默认值: -"
@@ -1620,62 +1692,6 @@
1620
1692
  "type": "boolean",
1621
1693
  "description": "是否在按下回车键时提交表单, 默认值: `true`"
1622
1694
  },
1623
- "van-image/src": {
1624
- "type": "string",
1625
- "description": "图片链接, 默认值: -"
1626
- },
1627
- "van-image/fit": {
1628
- "type": "string",
1629
- "description": "图片填充模式, 默认值: `fill`"
1630
- },
1631
- "van-image/alt": {
1632
- "type": "string",
1633
- "description": "替代文本, 默认值: -"
1634
- },
1635
- "van-image/width": {
1636
- "type": "number | string",
1637
- "description": "宽度,默认单位为 `px`, 默认值: -"
1638
- },
1639
- "van-image/height": {
1640
- "type": "number | string",
1641
- "description": "高度,默认单位为 `px`, 默认值: -"
1642
- },
1643
- "van-image/radius": {
1644
- "type": "number | string",
1645
- "description": "圆角大小,默认单位为 `px`, 默认值: `0`"
1646
- },
1647
- "van-image/round": {
1648
- "type": "boolean",
1649
- "description": "是否显示为圆形, 默认值: `false`"
1650
- },
1651
- "van-image/lazy-load": {
1652
- "type": "boolean",
1653
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
1654
- },
1655
- "van-image/show-error": {
1656
- "type": "boolean",
1657
- "description": "是否展示图片加载失败提示, 默认值: `true`"
1658
- },
1659
- "van-image/show-loading": {
1660
- "type": "boolean",
1661
- "description": "是否展示图片加载中提示, 默认值: `true`"
1662
- },
1663
- "van-image/error-icon": {
1664
- "type": "string",
1665
- "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
1666
- },
1667
- "van-image/loading-icon": {
1668
- "type": "string",
1669
- "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
1670
- },
1671
- "van-image/icon-size": {
1672
- "type": "number | string",
1673
- "description": "加载图标和失败图标的大小, 默认值: `32px`"
1674
- },
1675
- "van-image/icon-prefix": {
1676
- "type": "string",
1677
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1678
- },
1679
1695
  "van-image-preview/v-model:show": {
1680
1696
  "type": "boolean",
1681
1697
  "description": "是否展示图片预览, 默认值: `false`"
@@ -1751,105 +1767,89 @@
1751
1767
  "type": "string | Element",
1752
1768
  "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport), 默认值: -"
1753
1769
  },
1754
- "van-grid/column-num": {
1755
- "type": "number | string",
1756
- "description": "列数, 默认值: `4`"
1757
- },
1758
- "van-grid/icon-size": {
1759
- "type": "number | string",
1760
- "description": "图标大小,默认单位为`px`, 默认值: `28px`"
1770
+ "van-index-bar/index-list": {
1771
+ "type": "string[] | number[]",
1772
+ "description": "索引字符列表, 默认值: `A-Z`"
1761
1773
  },
1762
- "van-grid/gutter": {
1774
+ "van-index-bar/z-index": {
1763
1775
  "type": "number | string",
1764
- "description": "格子之间的间距,默认单位为`px`, 默认值: `0`"
1765
- },
1766
- "van-grid/border": {
1767
- "type": "boolean",
1768
- "description": "是否显示边框, 默认值: `true`"
1769
- },
1770
- "van-grid/center": {
1771
- "type": "boolean",
1772
- "description": "是否将格子内容居中显示, 默认值: `true`"
1773
- },
1774
- "van-grid/square": {
1775
- "type": "boolean",
1776
- "description": "是否将格子固定为正方形, 默认值: `false`"
1776
+ "description": "z-index 层级, 默认值: `1`"
1777
1777
  },
1778
- "van-grid/clickable": {
1778
+ "van-index-bar/sticky": {
1779
1779
  "type": "boolean",
1780
- "description": "是否开启格子点击反馈, 默认值: `false`"
1780
+ "description": "是否开启锚点自动吸顶, 默认值: `true`"
1781
1781
  },
1782
- "van-grid/direction": {
1783
- "type": "string",
1784
- "description": "格子内容排列的方向,可选值为 `horizontal`, 默认值: `vertical`"
1782
+ "van-index-bar/sticky-offset-top": {
1783
+ "type": "number",
1784
+ "description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
1785
1785
  },
1786
- "van-grid-item/text": {
1786
+ "van-index-bar/highlight-color": {
1787
1787
  "type": "string",
1788
- "description": "文字, 默认值: -"
1788
+ "description": "索引字符高亮颜色, 默认值: `#ee0a24`"
1789
1789
  },
1790
- "van-grid-item/icon": {
1791
- "type": "string",
1792
- "description": "[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1790
+ "van-index-bar/teleport": {
1791
+ "type": "string | Element",
1792
+ "description": "指定索引栏挂载的节点, 默认值: -"
1793
1793
  },
1794
- "van-grid-item/icon-prefix": {
1795
- "type": "string",
1796
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1794
+ "van-index-anchor/index": {
1795
+ "type": "number | string",
1796
+ "description": "索引字符, 默认值: -"
1797
1797
  },
1798
- "van-grid-item/icon-color": {
1798
+ "van-image/src": {
1799
1799
  "type": "string",
1800
- "description": "图标颜色,等同于 Icon 组件的 [color 属性](#/zh-CN/icon#props), 默认值: -"
1800
+ "description": "图片链接, 默认值: -"
1801
1801
  },
1802
- "van-grid-item/reverse": {
1803
- "type": "boolean",
1804
- "description": "是否调换图标和文本的位置, 默认值: `false`"
1802
+ "van-image/fit": {
1803
+ "type": "string",
1804
+ "description": "图片填充模式, 默认值: `fill`"
1805
1805
  },
1806
- "van-grid-item/dot": {
1807
- "type": "boolean",
1808
- "description": "是否显示图标右上角小红点, 默认值: `false`"
1806
+ "van-image/alt": {
1807
+ "type": "string",
1808
+ "description": "替代文本, 默认值: -"
1809
1809
  },
1810
- "van-grid-item/badge": {
1810
+ "van-image/width": {
1811
1811
  "type": "number | string",
1812
- "description": "图标右上角徽标的内容, 默认值: -"
1812
+ "description": "宽度,默认单位为 `px`, 默认值: -"
1813
1813
  },
1814
- "van-grid-item/url": {
1815
- "type": "string",
1816
- "description": "点击后跳转的链接地址, 默认值: -"
1814
+ "van-image/height": {
1815
+ "type": "number | string",
1816
+ "description": "高度,默认单位为 `px`, 默认值: -"
1817
1817
  },
1818
- "van-grid-item/to": {
1819
- "type": "string | object",
1820
- "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to), 默认值: -"
1818
+ "van-image/radius": {
1819
+ "type": "number | string",
1820
+ "description": "圆角大小,默认单位为 `px`, 默认值: `0`"
1821
1821
  },
1822
- "van-grid-item/replace": {
1822
+ "van-image/round": {
1823
1823
  "type": "boolean",
1824
- "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
1825
- },
1826
- "van-index-bar/index-list": {
1827
- "type": "string[] | number[]",
1828
- "description": "索引字符列表, 默认值: `A-Z`"
1824
+ "description": "是否显示为圆形, 默认值: `false`"
1829
1825
  },
1830
- "van-index-bar/z-index": {
1831
- "type": "number | string",
1832
- "description": "z-index 层级, 默认值: `1`"
1826
+ "van-image/lazy-load": {
1827
+ "type": "boolean",
1828
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用, 默认值: `false`"
1833
1829
  },
1834
- "van-index-bar/sticky": {
1830
+ "van-image/show-error": {
1835
1831
  "type": "boolean",
1836
- "description": "是否开启锚点自动吸顶, 默认值: `true`"
1832
+ "description": "是否展示图片加载失败提示, 默认值: `true`"
1837
1833
  },
1838
- "van-index-bar/sticky-offset-top": {
1839
- "type": "number",
1840
- "description": "锚点自动吸顶时与顶部的距离, 默认值: `0`"
1834
+ "van-image/show-loading": {
1835
+ "type": "boolean",
1836
+ "description": "是否展示图片加载中提示, 默认值: `true`"
1841
1837
  },
1842
- "van-index-bar/highlight-color": {
1838
+ "van-image/error-icon": {
1843
1839
  "type": "string",
1844
- "description": "索引字符高亮颜色, 默认值: `#ee0a24`"
1840
+ "description": "失败时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo-fail`"
1845
1841
  },
1846
- "van-index-bar/teleport": {
1847
- "type": "string | Element",
1848
- "description": "指定索引栏挂载的节点, 默认值: -"
1842
+ "van-image/loading-icon": {
1843
+ "type": "string",
1844
+ "description": "加载时提示的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `photo`"
1849
1845
  },
1850
- "van-index-anchor/index": {
1846
+ "van-image/icon-size": {
1851
1847
  "type": "number | string",
1852
- "description": "索引字符, 默认值: -"
1848
+ "description": "加载图标和失败图标的大小, 默认值: `32px`"
1849
+ },
1850
+ "van-image/icon-prefix": {
1851
+ "type": "string",
1852
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
1853
1853
  },
1854
1854
  "van-list/v-model:loading": {
1855
1855
  "type": "boolean",
@@ -1887,41 +1887,41 @@
1887
1887
  "type": "string",
1888
1888
  "description": "滚动触发加载的方向,可选值为 `up`, 默认值: `down`"
1889
1889
  },
1890
- "van-notice-bar/mode": {
1891
- "type": "string",
1892
- "description": "通知栏模式,可选值为 `closeable` `link`, 默认值: `''`"
1893
- },
1894
- "van-notice-bar/text": {
1890
+ "van-nav-bar/title": {
1895
1891
  "type": "string",
1896
- "description": "通知文本内容, 默认值: `''`"
1892
+ "description": "标题, 默认值: `''`"
1897
1893
  },
1898
- "van-notice-bar/color": {
1894
+ "van-nav-bar/left-text": {
1899
1895
  "type": "string",
1900
- "description": "通知文本颜色, 默认值: `#f60`"
1896
+ "description": "左侧文案, 默认值: `''`"
1901
1897
  },
1902
- "van-notice-bar/background": {
1898
+ "van-nav-bar/right-text": {
1903
1899
  "type": "string",
1904
- "description": "滚动条背景, 默认值: `#fff7cc`"
1900
+ "description": "右侧文案, 默认值: `''`"
1905
1901
  },
1906
- "van-notice-bar/left-icon": {
1907
- "type": "string",
1908
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1902
+ "van-nav-bar/left-arrow": {
1903
+ "type": "boolean",
1904
+ "description": "是否显示左侧箭头, 默认值: `false`"
1909
1905
  },
1910
- "van-notice-bar/delay": {
1911
- "type": "number | string",
1912
- "description": "动画延迟时间 (s), 默认值: `1`"
1906
+ "van-nav-bar/border": {
1907
+ "type": "boolean",
1908
+ "description": "是否显示下边框, 默认值: `true`"
1913
1909
  },
1914
- "van-notice-bar/speed": {
1915
- "type": "number | string",
1916
- "description": "滚动速率 (px/s), 默认值: `60`"
1910
+ "van-nav-bar/fixed": {
1911
+ "type": "boolean",
1912
+ "description": "是否固定在顶部, 默认值: `false`"
1917
1913
  },
1918
- "van-notice-bar/scrollable": {
1914
+ "van-nav-bar/placeholder": {
1919
1915
  "type": "boolean",
1920
- "description": "是否开启滚动播放,内容长度溢出时默认开启, 默认值: -"
1916
+ "description": "固定在顶部时,是否在标签位置生成一个等高的占位元素, 默认值: `false`"
1921
1917
  },
1922
- "van-notice-bar/wrapable": {
1918
+ "van-nav-bar/z-index": {
1919
+ "type": "number | string",
1920
+ "description": "导航栏 z-index, 默认值: `1`"
1921
+ },
1922
+ "van-nav-bar/safe-area-inset-top": {
1923
1923
  "type": "boolean",
1924
- "description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
1924
+ "description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
1925
1925
  },
1926
1926
  "van-loading/color": {
1927
1927
  "type": "string",
@@ -1947,41 +1947,41 @@
1947
1947
  "type": "boolean",
1948
1948
  "description": "是否垂直排列图标和文字内容, 默认值: `false`"
1949
1949
  },
1950
- "van-nav-bar/title": {
1950
+ "van-notice-bar/mode": {
1951
1951
  "type": "string",
1952
- "description": "标题, 默认值: `''`"
1952
+ "description": "通知栏模式,可选值为 `closeable` `link`, 默认值: `''`"
1953
1953
  },
1954
- "van-nav-bar/left-text": {
1954
+ "van-notice-bar/text": {
1955
1955
  "type": "string",
1956
- "description": "左侧文案, 默认值: `''`"
1956
+ "description": "通知文本内容, 默认值: `''`"
1957
1957
  },
1958
- "van-nav-bar/right-text": {
1958
+ "van-notice-bar/color": {
1959
1959
  "type": "string",
1960
- "description": "右侧文案, 默认值: `''`"
1961
- },
1962
- "van-nav-bar/left-arrow": {
1963
- "type": "boolean",
1964
- "description": "是否显示左侧箭头, 默认值: `false`"
1960
+ "description": "通知文本颜色, 默认值: `#ed6a0c`"
1965
1961
  },
1966
- "van-nav-bar/border": {
1967
- "type": "boolean",
1968
- "description": "是否显示下边框, 默认值: `true`"
1962
+ "van-notice-bar/background": {
1963
+ "type": "string",
1964
+ "description": "滚动条背景, 默认值: `#fffbe8`"
1969
1965
  },
1970
- "van-nav-bar/fixed": {
1971
- "type": "boolean",
1972
- "description": "是否固定在顶部, 默认值: `false`"
1966
+ "van-notice-bar/left-icon": {
1967
+ "type": "string",
1968
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
1973
1969
  },
1974
- "van-nav-bar/placeholder": {
1975
- "type": "boolean",
1976
- "description": "固定在顶部时,是否在标签位置生成一个等高的占位元素, 默认值: `false`"
1970
+ "van-notice-bar/delay": {
1971
+ "type": "number | string",
1972
+ "description": "动画延迟时间 (s), 默认值: `1`"
1977
1973
  },
1978
- "van-nav-bar/z-index": {
1974
+ "van-notice-bar/speed": {
1979
1975
  "type": "number | string",
1980
- "description": "导航栏 z-index, 默认值: `1`"
1976
+ "description": "滚动速率 (px/s), 默认值: `60`"
1981
1977
  },
1982
- "van-nav-bar/safe-area-inset-top": {
1978
+ "van-notice-bar/scrollable": {
1983
1979
  "type": "boolean",
1984
- "description": "是否开启[顶部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `false`"
1980
+ "description": "是否开启滚动播放,内容长度溢出时默认开启, 默认值: -"
1981
+ },
1982
+ "van-notice-bar/wrapable": {
1983
+ "type": "boolean",
1984
+ "description": "是否开启文本换行,只在禁用滚动时生效, 默认值: `false`"
1985
1985
  },
1986
1986
  "van-number-keyboard/v-model": {
1987
1987
  "type": "string",
@@ -2001,7 +2001,7 @@
2001
2001
  },
2002
2002
  "van-number-keyboard/maxlength": {
2003
2003
  "type": "number | string",
2004
- "description": "输入值最大长度, 默认值: -"
2004
+ "description": "输入值最大长度, 默认值: `Infinity`"
2005
2005
  },
2006
2006
  "van-number-keyboard/transition": {
2007
2007
  "type": "boolean",
@@ -2075,57 +2075,41 @@
2075
2075
  "type": "boolean",
2076
2076
  "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 默认值: `true`"
2077
2077
  },
2078
- "van-picker/columns": {
2079
- "type": "Column[]",
2080
- "description": "对象数组,配置每一列显示的数据, 默认值: `[]`"
2081
- },
2082
- "van-picker/columns-field-names": {
2083
- "type": "object",
2084
- "description": "自定义 `columns` 结构中的字段, 默认值: `{ text: 'text', values: 'values', children: 'children' }`"
2085
- },
2086
- "van-picker/title": {
2087
- "type": "string",
2088
- "description": "顶部栏标题, 默认值: -"
2078
+ "van-pagination/v-model": {
2079
+ "type": "number",
2080
+ "description": "当前页码, 默认值: -"
2089
2081
  },
2090
- "van-picker/confirm-button-text": {
2082
+ "van-pagination/mode": {
2091
2083
  "type": "string",
2092
- "description": "确认按钮文字, 默认值: `确认`"
2084
+ "description": "显示模式,可选值为 `simple`, 默认值: `multi`"
2093
2085
  },
2094
- "van-picker/cancel-button-text": {
2086
+ "van-pagination/prev-text": {
2095
2087
  "type": "string",
2096
- "description": "取消按钮文字, 默认值: `取消`"
2088
+ "description": "上一页按钮文字, 默认值: `上一页`"
2097
2089
  },
2098
- "van-picker/toolbar-position": {
2090
+ "van-pagination/next-text": {
2099
2091
  "type": "string",
2100
- "description": "顶部栏位置,可选值为 `bottom`, 默认值: `top`"
2101
- },
2102
- "van-picker/loading": {
2103
- "type": "boolean",
2104
- "description": "是否显示加载状态, 默认值: `false`"
2105
- },
2106
- "van-picker/show-toolbar": {
2107
- "type": "boolean",
2108
- "description": "是否显示顶部栏, 默认值: `true`"
2109
- },
2110
- "van-picker/allow-html": {
2111
- "type": "boolean",
2112
- "description": "是否允许选项内容中渲染 HTML, 默认值: `false`"
2092
+ "description": "下一页按钮文字, 默认值: `下一页`"
2113
2093
  },
2114
- "van-picker/default-index": {
2094
+ "van-pagination/page-count": {
2115
2095
  "type": "number | string",
2116
- "description": "单列选择时,默认选中项的索引, 默认值: `0`"
2096
+ "description": "总页数, 默认值: 根据页数计算"
2117
2097
  },
2118
- "van-picker/item-height": {
2098
+ "van-pagination/total-items": {
2119
2099
  "type": "number | string",
2120
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
2100
+ "description": "总记录数, 默认值: `0`"
2121
2101
  },
2122
- "van-picker/visible-item-count": {
2102
+ "van-pagination/items-per-page": {
2123
2103
  "type": "number | string",
2124
- "description": "可见的选项个数, 默认值: `6`"
2104
+ "description": "每页记录数, 默认值: `10`"
2125
2105
  },
2126
- "van-picker/swipe-duration": {
2106
+ "van-pagination/show-page-size": {
2127
2107
  "type": "number | string",
2128
- "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
2108
+ "description": "显示的页码个数, 默认值: `5`"
2109
+ },
2110
+ "van-pagination/force-ellipses": {
2111
+ "type": "boolean",
2112
+ "description": "是否显示省略号, 默认值: `false`"
2129
2113
  },
2130
2114
  "van-password-input/value": {
2131
2115
  "type": "string",
@@ -2155,41 +2139,57 @@
2155
2139
  "type": "boolean",
2156
2140
  "description": "是否已聚焦,聚焦时会显示光标, 默认值: `false`"
2157
2141
  },
2158
- "van-pagination/v-model": {
2159
- "type": "number",
2160
- "description": "当前页码, 默认值: -"
2142
+ "van-picker/columns": {
2143
+ "type": "Column[]",
2144
+ "description": "对象数组,配置每一列显示的数据, 默认值: `[]`"
2161
2145
  },
2162
- "van-pagination/mode": {
2146
+ "van-picker/columns-field-names": {
2147
+ "type": "object",
2148
+ "description": "自定义 `columns` 结构中的字段, 默认值: `{ text: 'text', values: 'values', children: 'children' }`"
2149
+ },
2150
+ "van-picker/title": {
2163
2151
  "type": "string",
2164
- "description": "显示模式,可选值为 `simple`, 默认值: `multi`"
2152
+ "description": "顶部栏标题, 默认值: -"
2165
2153
  },
2166
- "van-pagination/prev-text": {
2154
+ "van-picker/confirm-button-text": {
2167
2155
  "type": "string",
2168
- "description": "上一页按钮文字, 默认值: `上一页`"
2156
+ "description": "确认按钮文字, 默认值: `确认`"
2169
2157
  },
2170
- "van-pagination/next-text": {
2158
+ "van-picker/cancel-button-text": {
2171
2159
  "type": "string",
2172
- "description": "下一页按钮文字, 默认值: `下一页`"
2160
+ "description": "取消按钮文字, 默认值: `取消`"
2173
2161
  },
2174
- "van-pagination/page-count": {
2175
- "type": "number | string",
2176
- "description": "总页数, 默认值: 根据页数计算"
2162
+ "van-picker/toolbar-position": {
2163
+ "type": "string",
2164
+ "description": "顶部栏位置,可选值为 `bottom`, 默认值: `top`"
2177
2165
  },
2178
- "van-pagination/total-items": {
2166
+ "van-picker/loading": {
2167
+ "type": "boolean",
2168
+ "description": "是否显示加载状态, 默认值: `false`"
2169
+ },
2170
+ "van-picker/show-toolbar": {
2171
+ "type": "boolean",
2172
+ "description": "是否显示顶部栏, 默认值: `true`"
2173
+ },
2174
+ "van-picker/allow-html": {
2175
+ "type": "boolean",
2176
+ "description": "是否允许选项内容中渲染 HTML, 默认值: `false`"
2177
+ },
2178
+ "van-picker/default-index": {
2179
2179
  "type": "number | string",
2180
- "description": "总记录数, 默认值: `0`"
2180
+ "description": "单列选择时,默认选中项的索引, 默认值: `0`"
2181
2181
  },
2182
- "van-pagination/items-per-page": {
2182
+ "van-picker/item-height": {
2183
2183
  "type": "number | string",
2184
- "description": "每页记录数, 默认值: `10`"
2184
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `44`"
2185
2185
  },
2186
- "van-pagination/show-page-size": {
2186
+ "van-picker/visible-item-count": {
2187
2187
  "type": "number | string",
2188
- "description": "显示的页码个数, 默认值: `5`"
2188
+ "description": "可见的选项个数, 默认值: `6`"
2189
2189
  },
2190
- "van-pagination/force-ellipses": {
2191
- "type": "boolean",
2192
- "description": "是否显示省略号, 默认值: `false`"
2190
+ "van-picker/swipe-duration": {
2191
+ "type": "number | string",
2192
+ "description": "快速滑动时惯性滚动的时长,单位 `ms`, 默认值: `1000`"
2193
2193
  },
2194
2194
  "van-popover/v-model:show": {
2195
2195
  "type": "boolean",
@@ -2417,6 +2417,110 @@
2417
2417
  "type": "boolean",
2418
2418
  "description": "是否禁用下拉刷新, 默认值: `false`"
2419
2419
  },
2420
+ "van-radio/name": {
2421
+ "type": "any",
2422
+ "description": "标识符, 默认值: -"
2423
+ },
2424
+ "van-radio/shape": {
2425
+ "type": "string",
2426
+ "description": "形状,可选值为 `square`, 默认值: `round`"
2427
+ },
2428
+ "van-radio/disabled": {
2429
+ "type": "boolean",
2430
+ "description": "是否为禁用状态, 默认值: `false`"
2431
+ },
2432
+ "van-radio/label-disabled": {
2433
+ "type": "boolean",
2434
+ "description": "是否禁用文本内容点击, 默认值: `false`"
2435
+ },
2436
+ "van-radio/label-position": {
2437
+ "type": "string",
2438
+ "description": "文本位置,可选值为 `left`, 默认值: `right`"
2439
+ },
2440
+ "van-radio/icon-size": {
2441
+ "type": "number | string",
2442
+ "description": "图标大小,默认单位为 `px`, 默认值: `20px`"
2443
+ },
2444
+ "van-radio/checked-color": {
2445
+ "type": "string",
2446
+ "description": "选中状态颜色, 默认值: `#1989fa`"
2447
+ },
2448
+ "van-radio-group/v-model": {
2449
+ "type": "any",
2450
+ "description": "当前选中项的标识符, 默认值: -"
2451
+ },
2452
+ "van-radio-group/disabled": {
2453
+ "type": "boolean",
2454
+ "description": "是否禁用所有单选框, 默认值: `false`"
2455
+ },
2456
+ "van-radio-group/direction": {
2457
+ "type": "string",
2458
+ "description": "排列方向,可选值为 `horizontal`, 默认值: `vertical`"
2459
+ },
2460
+ "van-radio-group/icon-size": {
2461
+ "type": "number | string",
2462
+ "description": "所有单选框的图标大小,默认单位为 `px`, 默认值: `20px`"
2463
+ },
2464
+ "van-radio-group/checked-color": {
2465
+ "type": "string",
2466
+ "description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
2467
+ },
2468
+ "van-rate/v-model": {
2469
+ "type": "number",
2470
+ "description": "当前分值, 默认值: -"
2471
+ },
2472
+ "van-rate/count": {
2473
+ "type": "number | string",
2474
+ "description": "图标总数, 默认值: `5`"
2475
+ },
2476
+ "van-rate/size": {
2477
+ "type": "number | string",
2478
+ "description": "图标大小,默认单位为`px`, 默认值: `20px`"
2479
+ },
2480
+ "van-rate/gutter": {
2481
+ "type": "number | string",
2482
+ "description": "图标间距,默认单位为`px`, 默认值: `4px`"
2483
+ },
2484
+ "van-rate/color": {
2485
+ "type": "string",
2486
+ "description": "选中时的颜色, 默认值: `#ee0a24`"
2487
+ },
2488
+ "van-rate/void-color": {
2489
+ "type": "string",
2490
+ "description": "未选中时的颜色, 默认值: `#c8c9cc`"
2491
+ },
2492
+ "van-rate/disabled-color": {
2493
+ "type": "string",
2494
+ "description": "禁用时的颜色, 默认值: `#c8c9cc`"
2495
+ },
2496
+ "van-rate/icon": {
2497
+ "type": "string",
2498
+ "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star`"
2499
+ },
2500
+ "van-rate/void-icon": {
2501
+ "type": "string",
2502
+ "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
2503
+ },
2504
+ "van-rate/icon-prefix": {
2505
+ "type": "string",
2506
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
2507
+ },
2508
+ "van-rate/allow-half": {
2509
+ "type": "boolean",
2510
+ "description": "是否允许半选, 默认值: `false`"
2511
+ },
2512
+ "van-rate/readonly": {
2513
+ "type": "boolean",
2514
+ "description": "是否为只读状态,只读状态下无法修改评分, 默认值: `false`"
2515
+ },
2516
+ "van-rate/disabled": {
2517
+ "type": "boolean",
2518
+ "description": "是否禁用评分, 默认值: `false`"
2519
+ },
2520
+ "van-rate/touchable": {
2521
+ "type": "boolean",
2522
+ "description": "是否可以通过滑动手势选择评分, 默认值: `true`"
2523
+ },
2420
2524
  "van-search/v-model": {
2421
2525
  "type": "number | string",
2422
2526
  "description": "当前输入的值, 默认值: -"
@@ -2473,149 +2577,45 @@
2473
2577
  "type": "boolean",
2474
2578
  "description": "取消按钮文字, 默认值: `取消`"
2475
2579
  },
2476
- "van-search/disabled": {
2477
- "type": "boolean",
2478
- "description": "是否禁用输入框, 默认值: `false`"
2479
- },
2480
- "van-search/readonly": {
2481
- "type": "boolean",
2482
- "description": "是否将输入框设为只读状态,只读状态下无法输入内容, 默认值: `false`"
2483
- },
2484
- "van-search/error": {
2485
- "type": "boolean",
2486
- "description": "是否将输入内容标红, 默认值: `false`"
2487
- },
2488
- "van-search/error-message": {
2489
- "type": "string",
2490
- "description": "底部错误提示文案,为空时不展示, 默认值: -"
2491
- },
2492
- "van-search/formatter": {
2493
- "type": "(val: string) => string",
2494
- "description": "输入内容格式化函数, 默认值: -"
2495
- },
2496
- "van-search/format-trigger": {
2497
- "type": "string",
2498
- "description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
2499
- },
2500
- "van-search/input-align": {
2501
- "type": "string",
2502
- "description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
2503
- },
2504
- "van-search/left-icon": {
2505
- "type": "string",
2506
- "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
2507
- },
2508
- "van-search/right-icon": {
2509
- "type": "string",
2510
- "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
2511
- },
2512
- "van-search/autocomplete": {
2513
- "type": "string",
2514
- "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
2515
- },
2516
- "van-radio/name": {
2517
- "type": "any",
2518
- "description": "标识符, 默认值: -"
2519
- },
2520
- "van-radio/shape": {
2521
- "type": "string",
2522
- "description": "形状,可选值为 `square`, 默认值: `round`"
2523
- },
2524
- "van-radio/disabled": {
2525
- "type": "boolean",
2526
- "description": "是否为禁用状态, 默认值: `false`"
2527
- },
2528
- "van-radio/label-disabled": {
2529
- "type": "boolean",
2530
- "description": "是否禁用文本内容点击, 默认值: `false`"
2531
- },
2532
- "van-radio/label-position": {
2533
- "type": "string",
2534
- "description": "文本位置,可选值为 `left`, 默认值: `right`"
2535
- },
2536
- "van-radio/icon-size": {
2537
- "type": "number | string",
2538
- "description": "图标大小,默认单位为`px`, 默认值: `20px`"
2539
- },
2540
- "van-radio/checked-color": {
2541
- "type": "string",
2542
- "description": "选中状态颜色, 默认值: `#1989fa`"
2543
- },
2544
- "van-radio-group/v-model": {
2545
- "type": "any",
2546
- "description": "当前选中项的标识符, 默认值: -"
2547
- },
2548
- "van-radio-group/disabled": {
2549
- "type": "boolean",
2550
- "description": "是否禁用所有单选框, 默认值: `false`"
2551
- },
2552
- "van-radio-group/direction": {
2553
- "type": "string",
2554
- "description": "排列方向,可选值为`horizontal`, 默认值: `vertical`"
2555
- },
2556
- "van-radio-group/icon-size": {
2557
- "type": "number | string",
2558
- "description": "所有单选框的图标大小,默认单位为`px`, 默认值: `20px`"
2559
- },
2560
- "van-radio-group/checked-color": {
2561
- "type": "string",
2562
- "description": "所有单选框的选中状态颜色, 默认值: `#1989fa`"
2563
- },
2564
- "van-rate/v-model": {
2565
- "type": "number",
2566
- "description": "当前分值, 默认值: -"
2567
- },
2568
- "van-rate/count": {
2569
- "type": "number | string",
2570
- "description": "图标总数, 默认值: `5`"
2580
+ "van-search/disabled": {
2581
+ "type": "boolean",
2582
+ "description": "是否禁用输入框, 默认值: `false`"
2571
2583
  },
2572
- "van-rate/size": {
2573
- "type": "number | string",
2574
- "description": "图标大小,默认单位为`px`, 默认值: `20px`"
2584
+ "van-search/readonly": {
2585
+ "type": "boolean",
2586
+ "description": "是否将输入框设为只读状态,只读状态下无法输入内容, 默认值: `false`"
2575
2587
  },
2576
- "van-rate/gutter": {
2577
- "type": "number | string",
2578
- "description": "图标间距,默认单位为`px`, 默认值: `4px`"
2588
+ "van-search/error": {
2589
+ "type": "boolean",
2590
+ "description": "是否将输入内容标红, 默认值: `false`"
2579
2591
  },
2580
- "van-rate/color": {
2592
+ "van-search/error-message": {
2581
2593
  "type": "string",
2582
- "description": "选中时的颜色, 默认值: `#ee0a24`"
2594
+ "description": "底部错误提示文案,为空时不展示, 默认值: -"
2583
2595
  },
2584
- "van-rate/void-color": {
2585
- "type": "string",
2586
- "description": "未选中时的颜色, 默认值: `#c8c9cc`"
2596
+ "van-search/formatter": {
2597
+ "type": "(val: string) => string",
2598
+ "description": "输入内容格式化函数, 默认值: -"
2587
2599
  },
2588
- "van-rate/disabled-color": {
2600
+ "van-search/format-trigger": {
2589
2601
  "type": "string",
2590
- "description": "禁用时的颜色, 默认值: `#c8c9cc`"
2602
+ "description": "格式化函数触发的时机,可选值为 `onBlur`, 默认值: `onChange`"
2591
2603
  },
2592
- "van-rate/icon": {
2604
+ "van-search/input-align": {
2593
2605
  "type": "string",
2594
- "description": "选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star`"
2606
+ "description": "输入框内容对齐方式,可选值为 `center` `right`, 默认值: `left`"
2595
2607
  },
2596
- "van-rate/void-icon": {
2608
+ "van-search/left-icon": {
2597
2609
  "type": "string",
2598
- "description": "未选中时的[图标名称](#/zh-CN/icon)或图片链接, 默认值: `star-o`"
2610
+ "description": "输入框左侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: `search`"
2599
2611
  },
2600
- "van-rate/icon-prefix": {
2612
+ "van-search/right-icon": {
2601
2613
  "type": "string",
2602
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
2603
- },
2604
- "van-rate/allow-half": {
2605
- "type": "boolean",
2606
- "description": "是否允许半选, 默认值: `false`"
2607
- },
2608
- "van-rate/readonly": {
2609
- "type": "boolean",
2610
- "description": "是否为只读状态,只读状态下无法修改评分, 默认值: `false`"
2611
- },
2612
- "van-rate/disabled": {
2613
- "type": "boolean",
2614
- "description": "是否禁用评分, 默认值: `false`"
2614
+ "description": "输入框右侧[图标名称](#/zh-CN/icon)或图片链接, 默认值: -"
2615
2615
  },
2616
- "van-rate/touchable": {
2617
- "type": "boolean",
2618
- "description": "是否可以通过滑动手势选择评分, 默认值: `true`"
2616
+ "van-search/autocomplete": {
2617
+ "type": "string",
2618
+ "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete), 默认值: -"
2619
2619
  },
2620
2620
  "van-share-sheet/v-model:show": {
2621
2621
  "type": "boolean",
@@ -2641,6 +2641,10 @@
2641
2641
  "type": "number | string",
2642
2642
  "description": "动画时长,单位秒,设置为 0 可以禁用动画, 默认值: `0.3`"
2643
2643
  },
2644
+ "van-share-sheet/round": {
2645
+ "type": "boolean",
2646
+ "description": "是否显示圆角, 默认值: `true`"
2647
+ },
2644
2648
  "van-share-sheet/overlay": {
2645
2649
  "type": "boolean",
2646
2650
  "description": "是否显示遮罩层, 默认值: `true`"
@@ -2716,6 +2720,49 @@
2716
2720
  "type": "boolean",
2717
2721
  "description": "是否在跳转时替换当前页面历史, 默认值: `false`"
2718
2722
  },
2723
+ "van-skeleton/row": {
2724
+ "type": "number | string",
2725
+ "description": "段落占位图行数, 默认值: `0`"
2726
+ },
2727
+ "van-skeleton/row-width": {
2728
+ "type": "number | string \\",
2729
+ "description": "段落占位图宽度,可传数组来设置每一行的宽度, 默认值: <br>(number \\",
2730
+ "options": [
2731
+ "string)[]_"
2732
+ ]
2733
+ },
2734
+ "van-skeleton/title": {
2735
+ "type": "boolean",
2736
+ "description": "是否显示标题占位图, 默认值: `false`"
2737
+ },
2738
+ "van-skeleton/avatar": {
2739
+ "type": "boolean",
2740
+ "description": "是否显示头像占位图, 默认值: `false`"
2741
+ },
2742
+ "van-skeleton/loading": {
2743
+ "type": "boolean",
2744
+ "description": "是否显示骨架屏,传 `false` 时会展示子组件内容, 默认值: `true`"
2745
+ },
2746
+ "van-skeleton/animate": {
2747
+ "type": "boolean",
2748
+ "description": "是否开启动画, 默认值: `true`"
2749
+ },
2750
+ "van-skeleton/round": {
2751
+ "type": "boolean",
2752
+ "description": "是否将标题和段落显示为圆角风格, 默认值: `false`"
2753
+ },
2754
+ "van-skeleton/title-width": {
2755
+ "type": "number | string",
2756
+ "description": "标题占位图宽度, 默认值: `40%`"
2757
+ },
2758
+ "van-skeleton/avatar-size": {
2759
+ "type": "number | string",
2760
+ "description": "头像占位图大小, 默认值: `32px`"
2761
+ },
2762
+ "van-skeleton/avatar-shape": {
2763
+ "type": "string",
2764
+ "description": "头像占位图形状,可选值为 `square`, 默认值: `round`"
2765
+ },
2719
2766
  "van-slider/v-model": {
2720
2767
  "type": "number | [number, number]",
2721
2768
  "description": "当前进度百分比,在双滑块模式下为数组格式, 默认值: `0`"
@@ -2768,49 +2815,6 @@
2768
2815
  "type": "boolean",
2769
2816
  "description": "是否垂直展示, 默认值: `false`"
2770
2817
  },
2771
- "van-skeleton/row": {
2772
- "type": "number | string",
2773
- "description": "段落占位图行数, 默认值: `0`"
2774
- },
2775
- "van-skeleton/row-width": {
2776
- "type": "number | string \\",
2777
- "description": "段落占位图宽度,可传数组来设置每一行的宽度, 默认值: <br>(number \\",
2778
- "options": [
2779
- "string)[]_"
2780
- ]
2781
- },
2782
- "van-skeleton/title": {
2783
- "type": "boolean",
2784
- "description": "是否显示标题占位图, 默认值: `false`"
2785
- },
2786
- "van-skeleton/avatar": {
2787
- "type": "boolean",
2788
- "description": "是否显示头像占位图, 默认值: `false`"
2789
- },
2790
- "van-skeleton/loading": {
2791
- "type": "boolean",
2792
- "description": "是否显示骨架屏,传 `false` 时会展示子组件内容, 默认值: `true`"
2793
- },
2794
- "van-skeleton/animate": {
2795
- "type": "boolean",
2796
- "description": "是否开启动画, 默认值: `true`"
2797
- },
2798
- "van-skeleton/round": {
2799
- "type": "boolean",
2800
- "description": "是否将标题和段落显示为圆角风格, 默认值: `false`"
2801
- },
2802
- "van-skeleton/title-width": {
2803
- "type": "number | string",
2804
- "description": "标题占位图宽度, 默认值: `40%`"
2805
- },
2806
- "van-skeleton/avatar-size": {
2807
- "type": "number | string",
2808
- "description": "头像占位图大小, 默认值: `32px`"
2809
- },
2810
- "van-skeleton/avatar-shape": {
2811
- "type": "string",
2812
- "description": "头像占位图形状,可选值为 `square`, 默认值: `round`"
2813
- },
2814
2818
  "van-stepper/v-model": {
2815
2819
  "type": "number | string",
2816
2820
  "description": "当前输入的值, 默认值: -"
@@ -2902,6 +2906,58 @@
2902
2906
  "type": "boolean",
2903
2907
  "description": "是否允许输入的值为空, 默认值: `false`"
2904
2908
  },
2909
+ "van-steps/active": {
2910
+ "type": "number | string",
2911
+ "description": "当前步骤对应的索引值, 默认值: `0`"
2912
+ },
2913
+ "van-steps/direction": {
2914
+ "type": "string",
2915
+ "description": "步骤条方向,可选值为 `vertical`, 默认值: `horizontal`"
2916
+ },
2917
+ "van-steps/active-icon": {
2918
+ "type": "string",
2919
+ "description": "当前步骤对应的底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: `checked`"
2920
+ },
2921
+ "van-steps/inactive-icon": {
2922
+ "type": "string",
2923
+ "description": "非当前步骤对应的底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
2924
+ },
2925
+ "van-steps/finish-icon": {
2926
+ "type": "string",
2927
+ "description": "已完成步骤对应的底部图标,优先级高于 `inactive-icon`,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
2928
+ },
2929
+ "van-steps/active-color": {
2930
+ "type": "string",
2931
+ "description": "当前步骤和已完成步骤的颜色, 默认值: `#07c160`"
2932
+ },
2933
+ "van-steps/inactive-color": {
2934
+ "type": "string",
2935
+ "description": "未激活步骤的颜色, 默认值: `#969799`"
2936
+ },
2937
+ "van-steps/icon-prefix": {
2938
+ "type": "string",
2939
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
2940
+ },
2941
+ "van-sticky/position": {
2942
+ "type": "string",
2943
+ "description": "吸附位置,可选值为 `bottom`, 默认值: `top`"
2944
+ },
2945
+ "van-sticky/offset-top": {
2946
+ "type": "number | string",
2947
+ "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
2948
+ },
2949
+ "van-sticky/offset-bottom": {
2950
+ "type": "number | string",
2951
+ "description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
2952
+ },
2953
+ "van-sticky/z-index": {
2954
+ "type": "number | string",
2955
+ "description": "吸顶时的 z-index, 默认值: `99`"
2956
+ },
2957
+ "van-sticky/container": {
2958
+ "type": "Element",
2959
+ "description": "容器对应的 HTML 节点, 默认值: -"
2960
+ },
2905
2961
  "van-submit-bar/price": {
2906
2962
  "type": "number",
2907
2963
  "description": "金额(单位分), 默认值: -"
@@ -2958,58 +3014,6 @@
2958
3014
  "type": "boolean",
2959
3015
  "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei), 默认值: `true`"
2960
3016
  },
2961
- "van-sticky/position": {
2962
- "type": "string",
2963
- "description": "吸附位置,可选值为 `bottom`, 默认值: `top`"
2964
- },
2965
- "van-sticky/offset-top": {
2966
- "type": "number | string",
2967
- "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
2968
- },
2969
- "van-sticky/offset-bottom": {
2970
- "type": "number | string",
2971
- "description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`, 默认值: `0`"
2972
- },
2973
- "van-sticky/z-index": {
2974
- "type": "number | string",
2975
- "description": "吸顶时的 z-index, 默认值: `99`"
2976
- },
2977
- "van-sticky/container": {
2978
- "type": "Element",
2979
- "description": "容器对应的 HTML 节点, 默认值: -"
2980
- },
2981
- "van-steps/active": {
2982
- "type": "number | string",
2983
- "description": "当前步骤对应的索引值, 默认值: `0`"
2984
- },
2985
- "van-steps/direction": {
2986
- "type": "string",
2987
- "description": "步骤条方向,可选值为 `vertical`, 默认值: `horizontal`"
2988
- },
2989
- "van-steps/active-icon": {
2990
- "type": "string",
2991
- "description": "当前步骤对应的底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: `checked`"
2992
- },
2993
- "van-steps/inactive-icon": {
2994
- "type": "string",
2995
- "description": "非当前步骤对应的底部图标,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
2996
- },
2997
- "van-steps/finish-icon": {
2998
- "type": "string",
2999
- "description": "已完成步骤对应的底部图标,优先级高于 `inactive-icon`,可选值见 [Icon 组件](#/zh-CN/icon), 默认值: -"
3000
- },
3001
- "van-steps/active-color": {
3002
- "type": "string",
3003
- "description": "当前步骤和已完成步骤的颜色, 默认值: `#07c160`"
3004
- },
3005
- "van-steps/inactive-color": {
3006
- "type": "string",
3007
- "description": "未激活步骤的颜色, 默认值: `#969799`"
3008
- },
3009
- "van-steps/icon-prefix": {
3010
- "type": "string",
3011
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props), 默认值: `van-icon`"
3012
- },
3013
3017
  "van-swipe-cell/name": {
3014
3018
  "type": "number | string",
3015
3019
  "description": "标识符,可以在事件参数中获取到, 默认值: `''`"
@@ -3453,12 +3457,12 @@
3453
3457
  "type": "number | string \\",
3454
3458
  "description": "文件大小限制,单位为 `byte`, 默认值: (file: File) => boolean_",
3455
3459
  "options": [
3456
- "-"
3460
+ "Infinity"
3457
3461
  ]
3458
3462
  },
3459
3463
  "van-uploader/max-count": {
3460
3464
  "type": "number | string",
3461
- "description": "文件上传数量限制, 默认值: -"
3465
+ "description": "文件上传数量限制, 默认值: `Infinity`"
3462
3466
  },
3463
3467
  "van-uploader/result-type": {
3464
3468
  "type": "string",