vant 3.2.2 → 3.2.6

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 (900) hide show
  1. package/es/action-bar/ActionBar.d.ts +1 -1
  2. package/es/action-bar/index.css +1 -1
  3. package/es/action-bar/index.d.ts +1 -1
  4. package/es/action-bar/index.less +1 -1
  5. package/es/action-bar-button/ActionBarButton.d.ts +1 -1
  6. package/es/action-bar-button/index.d.ts +1 -1
  7. package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
  8. package/es/action-bar-icon/ActionBarIcon.js +4 -4
  9. package/es/action-bar-icon/index.css +1 -1
  10. package/es/action-bar-icon/index.d.ts +1 -1
  11. package/es/action-bar-icon/index.less +1 -1
  12. package/es/action-sheet/ActionSheet.d.ts +22 -16
  13. package/es/action-sheet/ActionSheet.js +9 -20
  14. package/es/action-sheet/index.css +1 -1
  15. package/es/action-sheet/index.d.ts +18 -11
  16. package/es/action-sheet/index.less +2 -2
  17. package/es/address-edit/AddressEdit.d.ts +14 -16
  18. package/es/address-edit/AddressEdit.js +9 -25
  19. package/es/address-edit/AddressEditDetail.js +8 -9
  20. package/es/address-edit/index.css +1 -1
  21. package/es/address-edit/index.d.ts +10 -9
  22. package/es/address-edit/index.less +2 -2
  23. package/es/address-edit/style/index.js +0 -3
  24. package/es/address-edit/style/less.js +0 -3
  25. package/es/address-list/AddressList.d.ts +9 -10
  26. package/es/address-list/AddressList.js +7 -17
  27. package/es/address-list/AddressListItem.d.ts +4 -4
  28. package/es/address-list/AddressListItem.js +3 -6
  29. package/es/address-list/index.d.ts +8 -8
  30. package/es/area/Area.d.ts +44 -45
  31. package/es/area/Area.js +4 -12
  32. package/es/area/index.d.ts +30 -28
  33. package/es/badge/Badge.d.ts +9 -9
  34. package/es/badge/Badge.js +5 -8
  35. package/es/badge/index.css +1 -1
  36. package/es/badge/index.d.ts +9 -9
  37. package/es/badge/index.less +4 -2
  38. package/es/button/Button.d.ts +31 -29
  39. package/es/button/Button.js +7 -22
  40. package/es/button/index.css +1 -1
  41. package/es/button/index.d.ts +29 -29
  42. package/es/button/index.less +7 -7
  43. package/es/calendar/Calendar.d.ts +46 -47
  44. package/es/calendar/Calendar.js +43 -35
  45. package/es/calendar/CalendarDay.d.ts +7 -7
  46. package/es/calendar/CalendarDay.js +4 -10
  47. package/es/calendar/CalendarMonth.d.ts +19 -19
  48. package/es/calendar/CalendarMonth.js +11 -18
  49. package/es/calendar/index.css +1 -1
  50. package/es/calendar/index.d.ts +30 -28
  51. package/es/calendar/index.less +3 -3
  52. package/es/calendar/types.d.ts +2 -1
  53. package/es/calendar/utils.d.ts +2 -2
  54. package/es/calendar/utils.js +1 -3
  55. package/es/card/Card.d.ts +4 -4
  56. package/es/card/Card.js +5 -8
  57. package/es/card/index.css +1 -1
  58. package/es/card/index.d.ts +4 -4
  59. package/es/card/index.less +1 -1
  60. package/es/cascader/Cascader.d.ts +33 -22
  61. package/es/cascader/Cascader.js +59 -62
  62. package/es/cascader/index.d.ts +20 -18
  63. package/es/cascader/types.d.ts +18 -0
  64. package/es/cascader/types.js +1 -0
  65. package/es/cell/Cell.d.ts +2 -2
  66. package/es/cell/Cell.js +4 -4
  67. package/es/cell/index.css +1 -1
  68. package/es/cell/index.d.ts +2 -2
  69. package/es/cell/index.less +1 -1
  70. package/es/cell-group/CellGroup.d.ts +1 -1
  71. package/es/cell-group/index.css +1 -1
  72. package/es/cell-group/index.d.ts +1 -1
  73. package/es/cell-group/index.less +1 -1
  74. package/es/checkbox/Checkbox.d.ts +11 -11
  75. package/es/checkbox/Checker.d.ts +18 -18
  76. package/es/checkbox/Checker.js +8 -21
  77. package/es/checkbox/index.d.ts +10 -8
  78. package/es/checkbox/types.d.ts +3 -0
  79. package/es/checkbox-group/CheckboxGroup.d.ts +6 -6
  80. package/es/checkbox-group/CheckboxGroup.js +5 -8
  81. package/es/checkbox-group/index.d.ts +7 -5
  82. package/es/checkbox-group/types.d.ts +2 -1
  83. package/es/circle/Circle.d.ts +22 -22
  84. package/es/circle/Circle.js +9 -29
  85. package/es/circle/index.d.ts +22 -22
  86. package/es/col/Col.d.ts +5 -6
  87. package/es/col/Col.js +4 -10
  88. package/es/col/index.d.ts +4 -4
  89. package/es/collapse-item/CollapseItem.d.ts +4 -4
  90. package/es/collapse-item/CollapseItem.js +5 -3
  91. package/es/collapse-item/index.css +1 -1
  92. package/es/collapse-item/index.d.ts +6 -4
  93. package/es/collapse-item/index.less +1 -1
  94. package/es/composables/use-lock-scroll.js +3 -3
  95. package/es/composables/use-placeholder.d.ts +1 -1
  96. package/es/config-provider/ConfigProvider.d.ts +6 -6
  97. package/es/config-provider/ConfigProvider.js +3 -6
  98. package/es/config-provider/index.d.ts +6 -6
  99. package/es/contact-card/ContactCard.d.ts +5 -6
  100. package/es/contact-card/ContactCard.js +3 -6
  101. package/es/contact-card/index.d.ts +5 -5
  102. package/es/contact-edit/ContactEdit.js +1 -4
  103. package/es/contact-edit/style/index.js +0 -5
  104. package/es/contact-edit/style/less.js +0 -5
  105. package/es/count-down/CountDown.d.ts +15 -23
  106. package/es/count-down/CountDown.js +4 -10
  107. package/es/count-down/index.d.ts +13 -11
  108. package/es/count-down/types.d.ts +11 -0
  109. package/es/count-down/types.js +1 -0
  110. package/es/coupon/Coupon.d.ts +4 -4
  111. package/es/coupon/Coupon.js +5 -15
  112. package/es/coupon/index.css +1 -1
  113. package/es/coupon/index.d.ts +4 -4
  114. package/es/coupon/index.less +1 -1
  115. package/es/coupon-cell/CouponCell.d.ts +3 -4
  116. package/es/coupon-cell/CouponCell.js +4 -13
  117. package/es/coupon-cell/index.d.ts +2 -2
  118. package/es/coupon-list/CouponList.d.ts +43 -44
  119. package/es/coupon-list/CouponList.js +15 -46
  120. package/es/coupon-list/index.css +1 -1
  121. package/es/coupon-list/index.d.ts +43 -43
  122. package/es/coupon-list/index.less +7 -2
  123. package/es/datetime-picker/DatePicker.d.ts +24 -26
  124. package/es/datetime-picker/DatePicker.js +2 -5
  125. package/es/datetime-picker/DatetimePicker.d.ts +1 -9
  126. package/es/datetime-picker/TimePicker.d.ts +17 -17
  127. package/es/datetime-picker/TimePicker.js +6 -18
  128. package/es/datetime-picker/index.d.ts +3 -9
  129. package/es/datetime-picker/utils.d.ts +9 -9
  130. package/es/datetime-picker/utils.js +1 -3
  131. package/es/dialog/Dialog.d.ts +8 -11
  132. package/es/dialog/Dialog.js +11 -18
  133. package/es/dialog/function-call.d.ts +21 -46
  134. package/es/dialog/function-call.js +2 -2
  135. package/es/dialog/index.css +1 -1
  136. package/es/dialog/index.d.ts +2 -3
  137. package/es/dialog/index.less +1 -1
  138. package/es/dialog/types.d.ts +36 -0
  139. package/es/dialog/types.js +1 -0
  140. package/es/divider/Divider.d.ts +3 -4
  141. package/es/divider/Divider.js +2 -5
  142. package/es/divider/index.d.ts +2 -2
  143. package/es/dropdown-item/DropdownItem.d.ts +10 -10
  144. package/es/dropdown-item/DropdownItem.js +4 -7
  145. package/es/dropdown-item/index.d.ts +8 -6
  146. package/es/dropdown-menu/DropdownMenu.d.ts +20 -20
  147. package/es/dropdown-menu/DropdownMenu.js +5 -11
  148. package/es/dropdown-menu/index.css +1 -1
  149. package/es/dropdown-menu/index.d.ts +13 -11
  150. package/es/dropdown-menu/index.less +1 -1
  151. package/es/empty/Empty.d.ts +5 -5
  152. package/es/empty/Empty.js +4 -7
  153. package/es/empty/Network.js +8 -27
  154. package/es/empty/index.d.ts +5 -5
  155. package/es/field/Field.d.ts +84 -82
  156. package/es/field/Field.js +16 -28
  157. package/es/field/index.css +1 -1
  158. package/es/field/index.d.ts +44 -42
  159. package/es/field/index.less +4 -2
  160. package/es/field/var.less +1 -1
  161. package/es/form/Form.d.ts +11 -11
  162. package/es/form/Form.js +4 -7
  163. package/es/form/index.d.ts +9 -7
  164. package/es/grid/Grid.d.ts +3 -3
  165. package/es/grid/Grid.js +4 -7
  166. package/es/grid/index.d.ts +3 -3
  167. package/es/grid-item/GridItem.d.ts +3 -3
  168. package/es/grid-item/GridItem.js +6 -6
  169. package/es/grid-item/index.css +1 -1
  170. package/es/grid-item/index.d.ts +3 -3
  171. package/es/grid-item/index.less +1 -1
  172. package/es/icon/Icon.d.ts +6 -7
  173. package/es/icon/Icon.js +6 -11
  174. package/es/icon/index.css +1 -1
  175. package/es/icon/index.d.ts +6 -6
  176. package/es/icon/index.less +1 -1
  177. package/es/image/Image.d.ts +13 -13
  178. package/es/image/Image.js +15 -35
  179. package/es/image/index.css +1 -1
  180. package/es/image/index.d.ts +13 -13
  181. package/es/image/index.less +1 -1
  182. package/es/image-preview/ImagePreview.d.ts +54 -54
  183. package/es/image-preview/ImagePreview.js +15 -37
  184. package/es/image-preview/ImagePreviewItem.d.ts +1 -1
  185. package/es/image-preview/ImagePreviewItem.js +6 -20
  186. package/es/image-preview/function-call.d.ts +34 -34
  187. package/es/image-preview/function-call.js +6 -6
  188. package/es/image-preview/index.css +1 -1
  189. package/es/image-preview/index.d.ts +2 -0
  190. package/es/image-preview/index.less +1 -1
  191. package/es/index-anchor/IndexAnchor.d.ts +1 -1
  192. package/es/index-anchor/IndexAnchor.js +3 -3
  193. package/es/index-anchor/index.css +1 -1
  194. package/es/index-anchor/index.d.ts +1 -1
  195. package/es/index-anchor/index.less +2 -2
  196. package/es/index-bar/IndexBar.js +4 -18
  197. package/es/index-bar/index.d.ts +2 -0
  198. package/es/index.d.ts +1 -1
  199. package/es/index.js +1 -1
  200. package/es/list/List.d.ts +19 -19
  201. package/es/list/List.js +4 -10
  202. package/es/list/index.d.ts +12 -10
  203. package/es/loading/Loading.d.ts +6 -7
  204. package/es/loading/Loading.js +5 -8
  205. package/es/loading/index.d.ts +6 -6
  206. package/es/locale/lang/de-DE-formal.d.ts +0 -1
  207. package/es/locale/lang/de-DE-formal.js +0 -1
  208. package/es/locale/lang/de-DE.d.ts +0 -1
  209. package/es/locale/lang/de-DE.js +0 -1
  210. package/es/locale/lang/en-US.d.ts +0 -1
  211. package/es/locale/lang/en-US.js +0 -1
  212. package/es/locale/lang/es-ES.d.ts +0 -1
  213. package/es/locale/lang/es-ES.js +0 -1
  214. package/es/locale/lang/fr-FR.d.ts +0 -1
  215. package/es/locale/lang/fr-FR.js +0 -1
  216. package/es/locale/lang/ja-JP.d.ts +0 -1
  217. package/es/locale/lang/ja-JP.js +0 -1
  218. package/es/locale/lang/nb-NO.d.ts +0 -1
  219. package/es/locale/lang/nb-NO.js +0 -1
  220. package/es/locale/lang/ro-RO.d.ts +0 -1
  221. package/es/locale/lang/ro-RO.js +0 -1
  222. package/es/locale/lang/ru-RU.d.ts +0 -1
  223. package/es/locale/lang/ru-RU.js +0 -1
  224. package/es/locale/lang/th-TH.d.ts +0 -1
  225. package/es/locale/lang/th-TH.js +0 -1
  226. package/es/locale/lang/tr-TR.d.ts +0 -1
  227. package/es/locale/lang/tr-TR.js +0 -1
  228. package/es/locale/lang/zh-CN.d.ts +0 -1
  229. package/es/locale/lang/zh-CN.js +0 -1
  230. package/es/locale/lang/zh-HK.d.ts +0 -1
  231. package/es/locale/lang/zh-HK.js +0 -1
  232. package/es/locale/lang/zh-TW.d.ts +0 -1
  233. package/es/locale/lang/zh-TW.js +0 -1
  234. package/es/nav-bar/NavBar.js +2 -2
  235. package/es/nav-bar/index.css +1 -1
  236. package/es/nav-bar/index.less +1 -1
  237. package/es/notice-bar/NoticeBar.d.ts +18 -18
  238. package/es/notice-bar/NoticeBar.js +3 -9
  239. package/es/notice-bar/index.css +1 -1
  240. package/es/notice-bar/index.d.ts +14 -12
  241. package/es/notice-bar/index.less +1 -1
  242. package/es/notify/Notify.d.ts +15 -14
  243. package/es/notify/Notify.js +10 -8
  244. package/es/notify/function-call.d.ts +12 -23
  245. package/es/notify/function-call.js +18 -22
  246. package/es/notify/index.css +1 -1
  247. package/es/notify/index.d.ts +2 -3
  248. package/es/notify/index.less +4 -4
  249. package/es/notify/types.d.ts +20 -0
  250. package/es/notify/types.js +1 -0
  251. package/es/number-keyboard/NumberKeyboard.d.ts +15 -15
  252. package/es/number-keyboard/NumberKeyboard.js +5 -14
  253. package/es/number-keyboard/NumberKeyboardKey.js +2 -2
  254. package/es/number-keyboard/index.css +1 -1
  255. package/es/number-keyboard/index.d.ts +15 -15
  256. package/es/number-keyboard/index.less +3 -3
  257. package/es/overlay/Overlay.d.ts +1 -1
  258. package/es/overlay/Overlay.js +7 -6
  259. package/es/overlay/index.css +1 -1
  260. package/es/overlay/index.d.ts +1 -1
  261. package/es/overlay/index.less +1 -1
  262. package/es/pagination/Pagination.d.ts +18 -19
  263. package/es/pagination/Pagination.js +13 -33
  264. package/es/pagination/index.css +1 -1
  265. package/es/pagination/index.d.ts +18 -18
  266. package/es/pagination/index.less +1 -1
  267. package/es/password-input/PasswordInput.d.ts +6 -6
  268. package/es/password-input/PasswordInput.js +5 -11
  269. package/es/password-input/index.css +1 -1
  270. package/es/password-input/index.d.ts +6 -6
  271. package/es/password-input/index.less +3 -3
  272. package/es/picker/Picker.d.ts +32 -32
  273. package/es/picker/Picker.js +9 -27
  274. package/es/picker/PickerColumn.d.ts +17 -18
  275. package/es/picker/PickerColumn.js +25 -49
  276. package/es/picker/index.css +1 -1
  277. package/es/picker/index.d.ts +27 -25
  278. package/es/picker/index.less +2 -2
  279. package/es/picker/types.d.ts +2 -2
  280. package/es/popover/Popover.d.ts +28 -27
  281. package/es/popover/Popover.js +10 -26
  282. package/es/popover/index.css +1 -1
  283. package/es/popover/index.d.ts +27 -27
  284. package/es/popover/index.less +2 -2
  285. package/es/popup/Popup.d.ts +22 -22
  286. package/es/popup/Popup.js +7 -18
  287. package/es/popup/index.css +1 -1
  288. package/es/popup/index.d.ts +15 -15
  289. package/es/popup/index.less +1 -1
  290. package/es/popup/shared.js +3 -3
  291. package/es/progress/Progress.d.ts +1 -1
  292. package/es/progress/Progress.js +10 -6
  293. package/es/progress/index.css +1 -1
  294. package/es/progress/index.d.ts +3 -1
  295. package/es/progress/index.less +10 -1
  296. package/es/progress/var.less +1 -0
  297. package/es/pull-refresh/PullRefresh.d.ts +9 -12
  298. package/es/pull-refresh/PullRefresh.js +8 -20
  299. package/es/pull-refresh/index.d.ts +9 -12
  300. package/es/radio/Radio.d.ts +12 -9
  301. package/es/radio/index.d.ts +9 -7
  302. package/es/radio-group/RadioGroup.d.ts +1 -0
  303. package/es/radio-group/RadioGroup.js +2 -2
  304. package/es/radio-group/index.d.ts +2 -0
  305. package/es/rate/Rate.d.ts +23 -23
  306. package/es/rate/Rate.js +10 -22
  307. package/es/rate/index.d.ts +23 -23
  308. package/es/row/Row.d.ts +9 -9
  309. package/es/row/Row.js +4 -10
  310. package/es/row/index.d.ts +9 -9
  311. package/es/search/Search.d.ts +76 -68
  312. package/es/search/Search.js +7 -14
  313. package/es/search/index.css +1 -1
  314. package/es/search/index.d.ts +49 -41
  315. package/es/search/index.less +2 -2
  316. package/es/share-sheet/ShareSheet.d.ts +19 -13
  317. package/es/share-sheet/ShareSheet.js +8 -12
  318. package/es/share-sheet/index.d.ts +15 -8
  319. package/es/sidebar/Sidebar.js +2 -5
  320. package/es/sidebar-item/SidebarItem.js +2 -2
  321. package/es/sidebar-item/index.css +1 -1
  322. package/es/sidebar-item/index.less +1 -1
  323. package/es/skeleton/Skeleton.d.ts +11 -10
  324. package/es/skeleton/Skeleton.js +5 -11
  325. package/es/skeleton/index.css +1 -1
  326. package/es/skeleton/index.d.ts +12 -10
  327. package/es/skeleton/index.less +2 -2
  328. package/es/slider/Slider.d.ts +16 -16
  329. package/es/slider/Slider.js +26 -34
  330. package/es/slider/index.css +1 -1
  331. package/es/slider/index.d.ts +16 -16
  332. package/es/slider/index.less +3 -3
  333. package/es/step/Step.d.ts +1 -1
  334. package/es/step/index.d.ts +1 -1
  335. package/es/stepper/Stepper.d.ts +24 -24
  336. package/es/stepper/Stepper.js +16 -34
  337. package/es/stepper/index.css +1 -1
  338. package/es/stepper/index.d.ts +24 -24
  339. package/es/stepper/index.less +3 -3
  340. package/es/steps/Steps.d.ts +20 -20
  341. package/es/steps/Steps.js +5 -14
  342. package/es/steps/index.d.ts +15 -13
  343. package/es/sticky/Sticky.d.ts +5 -5
  344. package/es/sticky/Sticky.js +5 -14
  345. package/es/sticky/index.d.ts +5 -5
  346. package/es/submit-bar/SubmitBar.d.ts +14 -14
  347. package/es/submit-bar/SubmitBar.js +5 -14
  348. package/es/submit-bar/index.css +1 -1
  349. package/es/submit-bar/index.d.ts +14 -14
  350. package/es/submit-bar/index.less +5 -6
  351. package/es/swipe/Swipe.d.ts +33 -33
  352. package/es/swipe/Swipe.js +9 -17
  353. package/es/swipe/index.d.ts +23 -21
  354. package/es/swipe-cell/SwipeCell.d.ts +8 -8
  355. package/es/swipe-cell/SwipeCell.js +6 -10
  356. package/es/swipe-cell/index.d.ts +7 -5
  357. package/es/swipe-item/SwipeItem.d.ts +1 -1
  358. package/es/swipe-item/index.d.ts +1 -1
  359. package/es/switch/Switch.js +2 -2
  360. package/es/switch/index.css +1 -1
  361. package/es/switch/index.less +3 -3
  362. package/es/tab/Tab.d.ts +1 -1
  363. package/es/tab/Tab.js +3 -3
  364. package/es/tab/index.d.ts +1 -1
  365. package/es/tabbar/Tabbar.d.ts +2 -2
  366. package/es/tabbar/Tabbar.js +4 -8
  367. package/es/tabbar/index.css +1 -1
  368. package/es/tabbar/index.d.ts +2 -2
  369. package/es/tabbar/index.less +1 -1
  370. package/es/tabbar-item/TabbarItem.js +5 -5
  371. package/es/tabs/Tabs.d.ts +39 -39
  372. package/es/tabs/Tabs.js +20 -32
  373. package/es/tabs/TabsContent.d.ts +7 -7
  374. package/es/tabs/TabsContent.js +4 -13
  375. package/es/tabs/TabsTitle.d.ts +1 -1
  376. package/es/tabs/TabsTitle.js +2 -2
  377. package/es/tabs/index.css +1 -1
  378. package/es/tabs/index.d.ts +25 -23
  379. package/es/tabs/index.less +2 -2
  380. package/es/tabs/utils.js +2 -4
  381. package/es/tag/Tag.d.ts +5 -6
  382. package/es/tag/Tag.js +3 -6
  383. package/es/tag/index.css +1 -1
  384. package/es/tag/index.d.ts +5 -5
  385. package/es/tag/index.less +6 -6
  386. package/es/toast/Toast.d.ts +21 -22
  387. package/es/toast/Toast.js +14 -31
  388. package/es/toast/function-call.d.ts +2 -25
  389. package/es/toast/index.css +1 -1
  390. package/es/toast/index.d.ts +2 -3
  391. package/es/toast/index.less +1 -1
  392. package/es/toast/types.d.ts +32 -0
  393. package/es/toast/types.js +1 -0
  394. package/es/tree-select/TreeSelect.d.ts +10 -10
  395. package/es/tree-select/TreeSelect.js +6 -21
  396. package/es/tree-select/index.css +1 -1
  397. package/es/tree-select/index.d.ts +10 -10
  398. package/es/tree-select/index.less +2 -2
  399. package/es/uploader/Uploader.d.ts +68 -68
  400. package/es/uploader/Uploader.js +10 -31
  401. package/es/uploader/UploaderPreviewItem.d.ts +6 -6
  402. package/es/uploader/UploaderPreviewItem.js +8 -12
  403. package/es/uploader/index.css +1 -1
  404. package/es/uploader/index.d.ts +50 -48
  405. package/es/uploader/index.less +8 -9
  406. package/es/uploader/utils.d.ts +3 -3
  407. package/es/uploader/utils.js +2 -10
  408. package/es/utils/{base.d.ts → basic.d.ts} +1 -6
  409. package/es/utils/{base.js → basic.js} +1 -7
  410. package/{lib/utils/create/bem.d.ts → es/utils/create.d.ts} +7 -4
  411. package/es/utils/create.js +53 -0
  412. package/es/utils/{dom/scroll.d.ts → dom.d.ts} +5 -2
  413. package/es/utils/dom.js +70 -0
  414. package/es/utils/format.d.ts +12 -0
  415. package/es/utils/format.js +127 -0
  416. package/es/utils/index.d.ts +4 -7
  417. package/es/utils/index.js +5 -8
  418. package/es/utils/interceptor.d.ts +1 -2
  419. package/es/utils/interceptor.js +8 -10
  420. package/es/utils/mount-component.js +5 -3
  421. package/es/utils/props.d.ts +31 -0
  422. package/es/utils/props.js +30 -0
  423. package/es/utils/validate.d.ts +7 -7
  424. package/es/utils/validate.js +8 -22
  425. package/es/utils/with-install.js +1 -1
  426. package/lib/action-bar/ActionBar.d.ts +1 -1
  427. package/lib/action-bar/index.css +1 -1
  428. package/lib/action-bar/index.d.ts +1 -1
  429. package/lib/action-bar/index.less +1 -1
  430. package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
  431. package/lib/action-bar-button/index.d.ts +1 -1
  432. package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
  433. package/lib/action-bar-icon/ActionBarIcon.js +2 -2
  434. package/lib/action-bar-icon/index.css +1 -1
  435. package/lib/action-bar-icon/index.d.ts +1 -1
  436. package/lib/action-bar-icon/index.less +1 -1
  437. package/lib/action-sheet/ActionSheet.d.ts +22 -16
  438. package/lib/action-sheet/ActionSheet.js +8 -19
  439. package/lib/action-sheet/index.css +1 -1
  440. package/lib/action-sheet/index.d.ts +18 -11
  441. package/lib/action-sheet/index.less +2 -2
  442. package/lib/address-edit/AddressEdit.d.ts +14 -16
  443. package/lib/address-edit/AddressEdit.js +8 -25
  444. package/lib/address-edit/AddressEditDetail.js +6 -7
  445. package/lib/address-edit/index.css +1 -1
  446. package/lib/address-edit/index.d.ts +10 -9
  447. package/lib/address-edit/index.less +2 -2
  448. package/lib/address-edit/style/index.js +0 -6
  449. package/lib/address-edit/style/less.js +0 -6
  450. package/lib/address-list/AddressList.d.ts +9 -10
  451. package/lib/address-list/AddressList.js +6 -16
  452. package/lib/address-list/AddressListItem.d.ts +4 -4
  453. package/lib/address-list/AddressListItem.js +2 -5
  454. package/lib/address-list/index.d.ts +8 -8
  455. package/lib/area/Area.d.ts +44 -45
  456. package/lib/area/Area.js +3 -11
  457. package/lib/area/index.d.ts +30 -28
  458. package/lib/badge/Badge.d.ts +9 -9
  459. package/lib/badge/Badge.js +4 -7
  460. package/lib/badge/index.css +1 -1
  461. package/lib/badge/index.d.ts +9 -9
  462. package/lib/badge/index.less +4 -2
  463. package/lib/button/Button.d.ts +31 -29
  464. package/lib/button/Button.js +6 -21
  465. package/lib/button/index.css +1 -1
  466. package/lib/button/index.d.ts +29 -29
  467. package/lib/button/index.less +7 -7
  468. package/lib/calendar/Calendar.d.ts +46 -47
  469. package/lib/calendar/Calendar.js +42 -34
  470. package/lib/calendar/CalendarDay.d.ts +7 -7
  471. package/lib/calendar/CalendarDay.js +3 -9
  472. package/lib/calendar/CalendarMonth.d.ts +19 -19
  473. package/lib/calendar/CalendarMonth.js +9 -16
  474. package/lib/calendar/index.css +1 -1
  475. package/lib/calendar/index.d.ts +30 -28
  476. package/lib/calendar/index.less +3 -3
  477. package/lib/calendar/types.d.ts +2 -1
  478. package/lib/calendar/utils.d.ts +2 -2
  479. package/lib/calendar/utils.js +9 -7
  480. package/lib/card/Card.d.ts +4 -4
  481. package/lib/card/Card.js +4 -7
  482. package/lib/card/index.css +1 -1
  483. package/lib/card/index.d.ts +4 -4
  484. package/lib/card/index.less +1 -1
  485. package/lib/cascader/Cascader.d.ts +33 -22
  486. package/lib/cascader/Cascader.js +57 -60
  487. package/lib/cascader/index.d.ts +20 -18
  488. package/lib/cascader/types.d.ts +18 -0
  489. package/lib/cascader/types.js +3 -0
  490. package/lib/cell/Cell.d.ts +2 -2
  491. package/lib/cell/Cell.js +3 -3
  492. package/lib/cell/index.css +1 -1
  493. package/lib/cell/index.d.ts +2 -2
  494. package/lib/cell/index.less +1 -1
  495. package/lib/cell-group/CellGroup.d.ts +1 -1
  496. package/lib/cell-group/index.css +1 -1
  497. package/lib/cell-group/index.d.ts +1 -1
  498. package/lib/cell-group/index.less +1 -1
  499. package/lib/checkbox/Checkbox.d.ts +11 -11
  500. package/lib/checkbox/Checker.d.ts +18 -18
  501. package/lib/checkbox/Checker.js +7 -20
  502. package/lib/checkbox/index.d.ts +10 -8
  503. package/lib/checkbox/types.d.ts +3 -0
  504. package/lib/checkbox-group/CheckboxGroup.d.ts +6 -6
  505. package/lib/checkbox-group/CheckboxGroup.js +4 -7
  506. package/lib/checkbox-group/index.d.ts +7 -5
  507. package/lib/checkbox-group/types.d.ts +2 -1
  508. package/lib/circle/Circle.d.ts +22 -22
  509. package/lib/circle/Circle.js +8 -28
  510. package/lib/circle/index.d.ts +22 -22
  511. package/lib/col/Col.d.ts +5 -6
  512. package/lib/col/Col.js +3 -9
  513. package/lib/col/index.d.ts +4 -4
  514. package/lib/collapse-item/CollapseItem.d.ts +4 -4
  515. package/lib/collapse-item/CollapseItem.js +4 -2
  516. package/lib/collapse-item/index.css +1 -1
  517. package/lib/collapse-item/index.d.ts +6 -4
  518. package/lib/collapse-item/index.less +1 -1
  519. package/lib/composables/on-popup-reopen.js +1 -1
  520. package/lib/composables/use-lock-scroll.js +2 -2
  521. package/lib/composables/use-placeholder.d.ts +1 -1
  522. package/lib/composables/use-route.js +1 -1
  523. package/lib/config-provider/ConfigProvider.d.ts +6 -6
  524. package/lib/config-provider/ConfigProvider.js +2 -5
  525. package/lib/config-provider/index.d.ts +6 -6
  526. package/lib/contact-card/ContactCard.d.ts +5 -6
  527. package/lib/contact-card/ContactCard.js +2 -5
  528. package/lib/contact-card/index.d.ts +5 -5
  529. package/lib/contact-edit/ContactEdit.js +1 -5
  530. package/lib/contact-edit/style/index.js +0 -10
  531. package/lib/contact-edit/style/less.js +0 -10
  532. package/lib/count-down/CountDown.d.ts +15 -23
  533. package/lib/count-down/CountDown.js +3 -9
  534. package/lib/count-down/index.d.ts +13 -11
  535. package/lib/count-down/types.d.ts +11 -0
  536. package/lib/count-down/types.js +3 -0
  537. package/lib/coupon/Coupon.d.ts +4 -4
  538. package/lib/coupon/Coupon.js +4 -14
  539. package/lib/coupon/index.css +1 -1
  540. package/lib/coupon/index.d.ts +4 -4
  541. package/lib/coupon/index.less +1 -1
  542. package/lib/coupon-cell/CouponCell.d.ts +3 -4
  543. package/lib/coupon-cell/CouponCell.js +3 -12
  544. package/lib/coupon-cell/index.d.ts +2 -2
  545. package/lib/coupon-list/CouponList.d.ts +43 -44
  546. package/lib/coupon-list/CouponList.js +14 -46
  547. package/lib/coupon-list/index.css +1 -1
  548. package/lib/coupon-list/index.d.ts +43 -43
  549. package/lib/coupon-list/index.less +7 -2
  550. package/lib/datetime-picker/DatePicker.d.ts +24 -26
  551. package/lib/datetime-picker/DatePicker.js +1 -4
  552. package/lib/datetime-picker/DatetimePicker.d.ts +1 -9
  553. package/lib/datetime-picker/TimePicker.d.ts +17 -17
  554. package/lib/datetime-picker/TimePicker.js +5 -17
  555. package/lib/datetime-picker/index.d.ts +3 -9
  556. package/lib/datetime-picker/utils.d.ts +9 -9
  557. package/lib/datetime-picker/utils.js +6 -6
  558. package/lib/dialog/Dialog.d.ts +8 -11
  559. package/lib/dialog/Dialog.js +8 -16
  560. package/lib/dialog/function-call.d.ts +21 -46
  561. package/lib/dialog/function-call.js +2 -2
  562. package/lib/dialog/index.css +1 -1
  563. package/lib/dialog/index.d.ts +2 -3
  564. package/lib/dialog/index.less +1 -1
  565. package/lib/dialog/types.d.ts +36 -0
  566. package/lib/dialog/types.js +3 -0
  567. package/lib/divider/Divider.d.ts +3 -4
  568. package/lib/divider/Divider.js +1 -4
  569. package/lib/divider/index.d.ts +2 -2
  570. package/lib/dropdown-item/DropdownItem.d.ts +10 -10
  571. package/lib/dropdown-item/DropdownItem.js +3 -6
  572. package/lib/dropdown-item/index.d.ts +8 -6
  573. package/lib/dropdown-menu/DropdownMenu.d.ts +20 -20
  574. package/lib/dropdown-menu/DropdownMenu.js +4 -10
  575. package/lib/dropdown-menu/index.css +1 -1
  576. package/lib/dropdown-menu/index.d.ts +13 -11
  577. package/lib/dropdown-menu/index.less +1 -1
  578. package/lib/empty/Empty.d.ts +5 -5
  579. package/lib/empty/Empty.js +3 -6
  580. package/lib/empty/Network.js +8 -27
  581. package/lib/empty/index.d.ts +5 -5
  582. package/lib/field/Field.d.ts +84 -82
  583. package/lib/field/Field.js +16 -28
  584. package/lib/field/index.css +1 -1
  585. package/lib/field/index.d.ts +44 -42
  586. package/lib/field/index.less +4 -2
  587. package/lib/field/utils.js +5 -5
  588. package/lib/field/var.less +1 -1
  589. package/lib/form/Form.d.ts +11 -11
  590. package/lib/form/Form.js +3 -6
  591. package/lib/form/index.d.ts +9 -7
  592. package/lib/grid/Grid.d.ts +3 -3
  593. package/lib/grid/Grid.js +3 -6
  594. package/lib/grid/index.d.ts +3 -3
  595. package/lib/grid-item/GridItem.d.ts +3 -3
  596. package/lib/grid-item/GridItem.js +4 -4
  597. package/lib/grid-item/index.css +1 -1
  598. package/lib/grid-item/index.d.ts +3 -3
  599. package/lib/grid-item/index.less +1 -1
  600. package/lib/icon/Icon.d.ts +6 -7
  601. package/lib/icon/Icon.js +5 -10
  602. package/lib/icon/index.css +1 -1
  603. package/lib/icon/index.d.ts +6 -6
  604. package/lib/icon/index.less +1 -1
  605. package/lib/image/Image.d.ts +13 -13
  606. package/lib/image/Image.js +14 -34
  607. package/lib/image/index.css +1 -1
  608. package/lib/image/index.d.ts +13 -13
  609. package/lib/image/index.less +1 -1
  610. package/lib/image-preview/ImagePreview.d.ts +54 -54
  611. package/lib/image-preview/ImagePreview.js +13 -35
  612. package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
  613. package/lib/image-preview/ImagePreviewItem.js +5 -19
  614. package/lib/image-preview/function-call.d.ts +34 -34
  615. package/lib/image-preview/function-call.js +6 -6
  616. package/lib/image-preview/index.css +1 -1
  617. package/lib/image-preview/index.d.ts +2 -0
  618. package/lib/image-preview/index.less +1 -1
  619. package/lib/index-anchor/IndexAnchor.d.ts +1 -1
  620. package/lib/index-anchor/IndexAnchor.js +4 -4
  621. package/lib/index-anchor/index.css +1 -1
  622. package/lib/index-anchor/index.d.ts +1 -1
  623. package/lib/index-anchor/index.less +2 -2
  624. package/lib/index-bar/IndexBar.js +3 -17
  625. package/lib/index-bar/index.d.ts +2 -0
  626. package/lib/index.css +1 -1
  627. package/lib/index.d.ts +1 -1
  628. package/lib/index.js +3 -2
  629. package/lib/index.less +1 -1
  630. package/lib/list/List.d.ts +19 -19
  631. package/lib/list/List.js +3 -9
  632. package/lib/list/index.d.ts +12 -10
  633. package/lib/loading/Loading.d.ts +6 -7
  634. package/lib/loading/Loading.js +4 -7
  635. package/lib/loading/index.d.ts +6 -6
  636. package/lib/locale/lang/de-DE-formal.d.ts +0 -1
  637. package/lib/locale/lang/de-DE-formal.js +0 -1
  638. package/lib/locale/lang/de-DE.d.ts +0 -1
  639. package/lib/locale/lang/de-DE.js +0 -1
  640. package/lib/locale/lang/en-US.d.ts +0 -1
  641. package/lib/locale/lang/en-US.js +0 -1
  642. package/lib/locale/lang/es-ES.d.ts +0 -1
  643. package/lib/locale/lang/es-ES.js +0 -1
  644. package/lib/locale/lang/fr-FR.d.ts +0 -1
  645. package/lib/locale/lang/fr-FR.js +0 -1
  646. package/lib/locale/lang/ja-JP.d.ts +0 -1
  647. package/lib/locale/lang/ja-JP.js +0 -1
  648. package/lib/locale/lang/nb-NO.d.ts +0 -1
  649. package/lib/locale/lang/nb-NO.js +0 -1
  650. package/lib/locale/lang/ro-RO.d.ts +0 -1
  651. package/lib/locale/lang/ro-RO.js +0 -1
  652. package/lib/locale/lang/ru-RU.d.ts +0 -1
  653. package/lib/locale/lang/ru-RU.js +0 -1
  654. package/lib/locale/lang/th-TH.d.ts +0 -1
  655. package/lib/locale/lang/th-TH.js +0 -1
  656. package/lib/locale/lang/tr-TR.d.ts +0 -1
  657. package/lib/locale/lang/tr-TR.js +0 -1
  658. package/lib/locale/lang/zh-CN.d.ts +0 -1
  659. package/lib/locale/lang/zh-CN.js +0 -1
  660. package/lib/locale/lang/zh-HK.d.ts +0 -1
  661. package/lib/locale/lang/zh-HK.js +0 -1
  662. package/lib/locale/lang/zh-TW.d.ts +0 -1
  663. package/lib/locale/lang/zh-TW.js +0 -1
  664. package/lib/nav-bar/NavBar.js +1 -1
  665. package/lib/nav-bar/index.css +1 -1
  666. package/lib/nav-bar/index.less +1 -1
  667. package/lib/notice-bar/NoticeBar.d.ts +18 -18
  668. package/lib/notice-bar/NoticeBar.js +2 -8
  669. package/lib/notice-bar/index.css +1 -1
  670. package/lib/notice-bar/index.d.ts +14 -12
  671. package/lib/notice-bar/index.less +1 -1
  672. package/lib/notify/Notify.d.ts +15 -14
  673. package/lib/notify/Notify.js +9 -7
  674. package/lib/notify/function-call.d.ts +12 -23
  675. package/lib/notify/function-call.js +18 -22
  676. package/lib/notify/index.css +1 -1
  677. package/lib/notify/index.d.ts +2 -3
  678. package/lib/notify/index.less +4 -4
  679. package/lib/notify/types.d.ts +20 -0
  680. package/lib/notify/types.js +3 -0
  681. package/lib/number-keyboard/NumberKeyboard.d.ts +15 -15
  682. package/lib/number-keyboard/NumberKeyboard.js +4 -13
  683. package/lib/number-keyboard/NumberKeyboardKey.js +1 -1
  684. package/lib/number-keyboard/index.css +1 -1
  685. package/lib/number-keyboard/index.d.ts +15 -15
  686. package/lib/number-keyboard/index.less +3 -3
  687. package/lib/overlay/Overlay.d.ts +1 -1
  688. package/lib/overlay/Overlay.js +5 -4
  689. package/lib/overlay/index.css +1 -1
  690. package/lib/overlay/index.d.ts +1 -1
  691. package/lib/overlay/index.less +1 -1
  692. package/lib/pagination/Pagination.d.ts +18 -19
  693. package/lib/pagination/Pagination.js +12 -32
  694. package/lib/pagination/index.css +1 -1
  695. package/lib/pagination/index.d.ts +18 -18
  696. package/lib/pagination/index.less +1 -1
  697. package/lib/password-input/PasswordInput.d.ts +6 -6
  698. package/lib/password-input/PasswordInput.js +4 -10
  699. package/lib/password-input/index.css +1 -1
  700. package/lib/password-input/index.d.ts +6 -6
  701. package/lib/password-input/index.less +3 -3
  702. package/lib/picker/Picker.d.ts +32 -32
  703. package/lib/picker/Picker.js +9 -27
  704. package/lib/picker/PickerColumn.d.ts +17 -18
  705. package/lib/picker/PickerColumn.js +24 -48
  706. package/lib/picker/index.css +1 -1
  707. package/lib/picker/index.d.ts +27 -25
  708. package/lib/picker/index.less +2 -2
  709. package/lib/picker/types.d.ts +2 -2
  710. package/lib/popover/Popover.d.ts +28 -27
  711. package/lib/popover/Popover.js +9 -25
  712. package/lib/popover/index.css +1 -1
  713. package/lib/popover/index.d.ts +27 -27
  714. package/lib/popover/index.less +2 -2
  715. package/lib/popup/Popup.d.ts +22 -22
  716. package/lib/popup/Popup.js +6 -17
  717. package/lib/popup/index.css +1 -1
  718. package/lib/popup/index.d.ts +15 -15
  719. package/lib/popup/index.less +1 -1
  720. package/lib/popup/shared.js +3 -3
  721. package/lib/progress/Progress.d.ts +1 -1
  722. package/lib/progress/Progress.js +9 -5
  723. package/lib/progress/index.css +1 -1
  724. package/lib/progress/index.d.ts +3 -1
  725. package/lib/progress/index.less +10 -1
  726. package/lib/progress/var.less +1 -0
  727. package/lib/pull-refresh/PullRefresh.d.ts +9 -12
  728. package/lib/pull-refresh/PullRefresh.js +6 -18
  729. package/lib/pull-refresh/index.d.ts +9 -12
  730. package/lib/radio/Radio.d.ts +12 -9
  731. package/lib/radio/index.d.ts +9 -7
  732. package/lib/radio-group/RadioGroup.d.ts +1 -0
  733. package/lib/radio-group/RadioGroup.js +1 -1
  734. package/lib/radio-group/index.d.ts +2 -0
  735. package/lib/rate/Rate.d.ts +23 -23
  736. package/lib/rate/Rate.js +8 -20
  737. package/lib/rate/index.d.ts +23 -23
  738. package/lib/row/Row.d.ts +9 -9
  739. package/lib/row/Row.js +3 -9
  740. package/lib/row/index.d.ts +9 -9
  741. package/lib/search/Search.d.ts +76 -68
  742. package/lib/search/Search.js +6 -13
  743. package/lib/search/index.css +1 -1
  744. package/lib/search/index.d.ts +49 -41
  745. package/lib/search/index.less +2 -2
  746. package/lib/share-sheet/ShareSheet.d.ts +19 -13
  747. package/lib/share-sheet/ShareSheet.js +7 -11
  748. package/lib/share-sheet/index.d.ts +15 -8
  749. package/lib/sidebar/Sidebar.js +1 -4
  750. package/lib/sidebar-item/SidebarItem.js +1 -1
  751. package/lib/sidebar-item/index.css +1 -1
  752. package/lib/sidebar-item/index.less +1 -1
  753. package/lib/skeleton/Skeleton.d.ts +11 -10
  754. package/lib/skeleton/Skeleton.js +4 -10
  755. package/lib/skeleton/index.css +1 -1
  756. package/lib/skeleton/index.d.ts +12 -10
  757. package/lib/skeleton/index.less +2 -2
  758. package/lib/slider/Slider.d.ts +16 -16
  759. package/lib/slider/Slider.js +25 -33
  760. package/lib/slider/index.css +1 -1
  761. package/lib/slider/index.d.ts +16 -16
  762. package/lib/slider/index.less +3 -3
  763. package/lib/step/Step.d.ts +1 -1
  764. package/lib/step/index.d.ts +1 -1
  765. package/lib/stepper/Stepper.d.ts +24 -24
  766. package/lib/stepper/Stepper.js +15 -33
  767. package/lib/stepper/index.css +1 -1
  768. package/lib/stepper/index.d.ts +24 -24
  769. package/lib/stepper/index.less +3 -3
  770. package/lib/steps/Steps.d.ts +20 -20
  771. package/lib/steps/Steps.js +4 -13
  772. package/lib/steps/index.d.ts +15 -13
  773. package/lib/sticky/Sticky.d.ts +5 -5
  774. package/lib/sticky/Sticky.js +4 -13
  775. package/lib/sticky/index.d.ts +5 -5
  776. package/lib/submit-bar/SubmitBar.d.ts +14 -14
  777. package/lib/submit-bar/SubmitBar.js +4 -13
  778. package/lib/submit-bar/index.css +1 -1
  779. package/lib/submit-bar/index.d.ts +14 -14
  780. package/lib/submit-bar/index.less +5 -6
  781. package/lib/swipe/Swipe.d.ts +33 -33
  782. package/lib/swipe/Swipe.js +8 -16
  783. package/lib/swipe/index.d.ts +23 -21
  784. package/lib/swipe-cell/SwipeCell.d.ts +8 -8
  785. package/lib/swipe-cell/SwipeCell.js +5 -9
  786. package/lib/swipe-cell/index.d.ts +7 -5
  787. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  788. package/lib/swipe-item/index.d.ts +1 -1
  789. package/lib/switch/Switch.js +1 -1
  790. package/lib/switch/index.css +1 -1
  791. package/lib/switch/index.less +3 -3
  792. package/lib/tab/Tab.d.ts +1 -1
  793. package/lib/tab/Tab.js +2 -2
  794. package/lib/tab/index.d.ts +1 -1
  795. package/lib/tabbar/Tabbar.d.ts +2 -2
  796. package/lib/tabbar/Tabbar.js +3 -7
  797. package/lib/tabbar/index.css +1 -1
  798. package/lib/tabbar/index.d.ts +2 -2
  799. package/lib/tabbar/index.less +1 -1
  800. package/lib/tabbar-item/TabbarItem.js +3 -3
  801. package/lib/tabs/Tabs.d.ts +39 -39
  802. package/lib/tabs/Tabs.js +18 -30
  803. package/lib/tabs/TabsContent.d.ts +7 -7
  804. package/lib/tabs/TabsContent.js +3 -12
  805. package/lib/tabs/TabsTitle.d.ts +1 -1
  806. package/lib/tabs/TabsTitle.js +1 -1
  807. package/lib/tabs/index.css +1 -1
  808. package/lib/tabs/index.d.ts +25 -23
  809. package/lib/tabs/index.less +2 -2
  810. package/lib/tabs/utils.js +1 -4
  811. package/lib/tag/Tag.d.ts +5 -6
  812. package/lib/tag/Tag.js +2 -5
  813. package/lib/tag/index.css +1 -1
  814. package/lib/tag/index.d.ts +5 -5
  815. package/lib/tag/index.less +6 -6
  816. package/lib/toast/Toast.d.ts +21 -22
  817. package/lib/toast/Toast.js +11 -29
  818. package/lib/toast/function-call.d.ts +2 -25
  819. package/lib/toast/index.css +1 -1
  820. package/lib/toast/index.d.ts +2 -3
  821. package/lib/toast/index.less +1 -1
  822. package/lib/toast/types.d.ts +32 -0
  823. package/lib/toast/types.js +3 -0
  824. package/lib/tree-select/TreeSelect.d.ts +10 -10
  825. package/lib/tree-select/TreeSelect.js +5 -20
  826. package/lib/tree-select/index.css +1 -1
  827. package/lib/tree-select/index.d.ts +10 -10
  828. package/lib/tree-select/index.less +2 -2
  829. package/lib/uploader/Uploader.d.ts +68 -68
  830. package/lib/uploader/Uploader.js +9 -30
  831. package/lib/uploader/UploaderPreviewItem.d.ts +6 -6
  832. package/lib/uploader/UploaderPreviewItem.js +6 -10
  833. package/lib/uploader/index.css +1 -1
  834. package/lib/uploader/index.d.ts +50 -48
  835. package/lib/uploader/index.less +8 -9
  836. package/lib/uploader/utils.d.ts +3 -3
  837. package/lib/uploader/utils.js +11 -14
  838. package/lib/utils/{base.d.ts → basic.d.ts} +1 -6
  839. package/lib/utils/{base.js → basic.js} +4 -11
  840. package/lib/utils/constant.js +1 -1
  841. package/{es/utils/create/bem.d.ts → lib/utils/create.d.ts} +7 -4
  842. package/lib/utils/create.js +68 -0
  843. package/lib/utils/{dom/scroll.d.ts → dom.d.ts} +5 -2
  844. package/lib/utils/dom.js +98 -0
  845. package/lib/utils/format.d.ts +12 -0
  846. package/lib/utils/format.js +157 -0
  847. package/lib/utils/index.d.ts +4 -7
  848. package/lib/utils/index.js +28 -52
  849. package/lib/utils/interceptor.d.ts +1 -2
  850. package/lib/utils/interceptor.js +10 -11
  851. package/lib/utils/mount-component.js +5 -3
  852. package/lib/utils/props.d.ts +31 -0
  853. package/lib/utils/props.js +53 -0
  854. package/lib/utils/validate.d.ts +7 -7
  855. package/lib/utils/validate.js +24 -29
  856. package/lib/utils/with-install.js +2 -2
  857. package/lib/vant.es.js +15044 -0
  858. package/lib/vant.es.min.js +15044 -0
  859. package/lib/vant.js +14463 -19786
  860. package/lib/vant.min.js +1 -1
  861. package/package.json +10 -16
  862. package/vetur/attributes.json +225 -209
  863. package/vetur/tags.json +75 -71
  864. package/vetur/web-types.json +794 -746
  865. package/LICENSE +0 -7
  866. package/README.md +0 -107
  867. package/README.zh-CN.md +0 -117
  868. package/changelog.generated.md +0 -89
  869. package/es/utils/create/bem.js +0 -35
  870. package/es/utils/create/index.d.ts +0 -1
  871. package/es/utils/create/index.js +0 -6
  872. package/es/utils/create/translate.d.ts +0 -2
  873. package/es/utils/create/translate.js +0 -12
  874. package/es/utils/dom/event.d.ts +0 -3
  875. package/es/utils/dom/event.js +0 -18
  876. package/es/utils/dom/scroll.js +0 -56
  877. package/es/utils/dom/style.d.ts +0 -2
  878. package/es/utils/dom/style.js +0 -16
  879. package/es/utils/format/number.d.ts +0 -4
  880. package/es/utils/format/number.js +0 -40
  881. package/es/utils/format/string.d.ts +0 -3
  882. package/es/utils/format/string.js +0 -16
  883. package/es/utils/format/unit.d.ts +0 -5
  884. package/es/utils/format/unit.js +0 -76
  885. package/lib/utils/create/bem.js +0 -40
  886. package/lib/utils/create/index.d.ts +0 -1
  887. package/lib/utils/create/index.js +0 -13
  888. package/lib/utils/create/translate.d.ts +0 -2
  889. package/lib/utils/create/translate.js +0 -24
  890. package/lib/utils/dom/event.d.ts +0 -3
  891. package/lib/utils/dom/event.js +0 -27
  892. package/lib/utils/dom/scroll.js +0 -75
  893. package/lib/utils/dom/style.d.ts +0 -2
  894. package/lib/utils/dom/style.js +0 -22
  895. package/lib/utils/format/number.d.ts +0 -4
  896. package/lib/utils/format/number.js +0 -48
  897. package/lib/utils/format/string.d.ts +0 -3
  898. package/lib/utils/format/string.js +0 -25
  899. package/lib/utils/format/unit.d.ts +0 -5
  900. package/lib/utils/format/unit.js +0 -89
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "vant",
5
- "version": "3.2.2",
5
+ "version": "3.2.6",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -243,125 +243,6 @@
243
243
  }
244
244
  ]
245
245
  },
246
- {
247
- "name": "van-address-list",
248
- "slots": [
249
- {
250
- "name": "default",
251
- "description": "在列表下方插入内容"
252
- },
253
- {
254
- "name": "top",
255
- "description": "在顶部插入内容"
256
- },
257
- {
258
- "name": "item-bottom",
259
- "description": "在列表项底部插入内容"
260
- },
261
- {
262
- "name": "tag",
263
- "description": "自定义列表项标签内容"
264
- }
265
- ],
266
- "events": [
267
- {
268
- "name": "add",
269
- "description": "点击新增按钮时触发"
270
- },
271
- {
272
- "name": "edit",
273
- "description": "点击编辑按钮时触发"
274
- },
275
- {
276
- "name": "select",
277
- "description": "切换选中的地址时触发"
278
- },
279
- {
280
- "name": "edit-disabled",
281
- "description": "编辑不可配送的地址时触发"
282
- },
283
- {
284
- "name": "select-disabled",
285
- "description": "选中不可配送的地址时触发"
286
- },
287
- {
288
- "name": "click-item",
289
- "description": "点击任意地址时触发"
290
- }
291
- ],
292
- "attributes": [
293
- {
294
- "name": "v-model",
295
- "default": "-",
296
- "description": "当前选中地址的 id",
297
- "options": [],
298
- "value": {
299
- "type": "string",
300
- "kind": "expression"
301
- }
302
- },
303
- {
304
- "name": "list",
305
- "default": "`[]`",
306
- "description": "地址列表",
307
- "options": [],
308
- "value": {
309
- "type": "AddressListAddress[]",
310
- "kind": "expression"
311
- }
312
- },
313
- {
314
- "name": "disabled-list",
315
- "default": "`[]`",
316
- "description": "不可配送地址列表",
317
- "options": [],
318
- "value": {
319
- "type": "AddressListAddress[]",
320
- "kind": "expression"
321
- }
322
- },
323
- {
324
- "name": "disabled-text",
325
- "default": "-",
326
- "description": "不可配送提示文案",
327
- "options": [],
328
- "value": {
329
- "type": "string",
330
- "kind": "expression"
331
- }
332
- },
333
- {
334
- "name": "switchable",
335
- "default": "`true`",
336
- "description": "是否允许切换地址",
337
- "options": [],
338
- "value": {
339
- "type": "boolean",
340
- "kind": "expression"
341
- }
342
- },
343
- {
344
- "name": "add-button-text",
345
- "default": "`新增地址`",
346
- "description": "底部按钮文字",
347
- "options": [],
348
- "value": {
349
- "type": "string",
350
- "kind": "expression"
351
- }
352
- },
353
- {
354
- "name": "default-tag-text",
355
- "default": "-",
356
- "description": "默认地址标签文字",
357
- "options": [],
358
- "value": {
359
- "type": "string",
360
- "kind": "expression"
361
- }
362
- }
363
- ]
364
- },
365
246
  {
366
247
  "name": "van-action-sheet",
367
248
  "slots": [
@@ -553,7 +434,7 @@
553
434
  },
554
435
  {
555
436
  "name": "close-on-popstate",
556
- "default": "`false`",
437
+ "default": "`true`",
557
438
  "description": "是否在页面回退时自动关闭",
558
439
  "options": [],
559
440
  "value": {
@@ -614,106 +495,96 @@
614
495
  ]
615
496
  },
616
497
  {
617
- "name": "van-address-edit",
498
+ "name": "van-address-list",
618
499
  "slots": [
619
500
  {
620
501
  "name": "default",
621
- "description": "在邮政编码下方插入内容"
622
- }
623
- ],
624
- "events": [
625
- {
626
- "name": "save",
627
- "description": "点击保存按钮时触发"
502
+ "description": "在列表下方插入内容"
628
503
  },
629
504
  {
630
- "name": "focus",
631
- "description": "输入框聚焦时触发"
505
+ "name": "top",
506
+ "description": "在顶部插入内容"
632
507
  },
633
508
  {
634
- "name": "delete",
635
- "description": "确认删除地址时触发"
509
+ "name": "item-bottom",
510
+ "description": "在列表项底部插入内容"
636
511
  },
637
512
  {
638
- "name": "cancel-delete",
639
- "description": "取消删除地址时触发"
513
+ "name": "tag",
514
+ "description": "自定义列表项标签内容"
515
+ }
516
+ ],
517
+ "events": [
518
+ {
519
+ "name": "add",
520
+ "description": "点击新增按钮时触发"
640
521
  },
641
522
  {
642
- "name": "select-search",
643
- "description": "选中搜索结果时触发"
523
+ "name": "edit",
524
+ "description": "点击编辑按钮时触发"
644
525
  },
645
526
  {
646
- "name": "click-area",
647
- "description": "点击收件地区时触发"
527
+ "name": "select",
528
+ "description": "切换选中的地址时触发"
648
529
  },
649
530
  {
650
- "name": "change-area",
651
- "description": "修改收件地区时触发"
531
+ "name": "edit-disabled",
532
+ "description": "编辑不可配送的地址时触发"
652
533
  },
653
534
  {
654
- "name": "change-detail",
655
- "description": "修改详细地址时触发"
535
+ "name": "select-disabled",
536
+ "description": "选中不可配送的地址时触发"
656
537
  },
657
538
  {
658
- "name": "change-default",
659
- "description": "切换是否使用默认地址时触发"
539
+ "name": "click-item",
540
+ "description": "点击任意地址时触发"
660
541
  }
661
542
  ],
662
543
  "attributes": [
663
544
  {
664
- "name": "area-list",
545
+ "name": "v-model",
665
546
  "default": "-",
666
- "description": "地区列表",
547
+ "description": "当前选中地址的 id",
667
548
  "options": [],
668
549
  "value": {
669
- "type": "object",
550
+ "type": "string",
670
551
  "kind": "expression"
671
552
  }
672
553
  },
673
554
  {
674
- "name": "area-columns-placeholder",
555
+ "name": "list",
675
556
  "default": "`[]`",
676
- "description": "地区选择列占位提示文字",
677
- "options": [],
678
- "value": {
679
- "type": "string[]",
680
- "kind": "expression"
681
- }
682
- },
683
- {
684
- "name": "area-placeholder",
685
- "default": "`选择省 / 市 / 区`",
686
- "description": "地区输入框占位提示文字",
557
+ "description": "地址列表",
687
558
  "options": [],
688
559
  "value": {
689
- "type": "string",
560
+ "type": "AddressListAddress[]",
690
561
  "kind": "expression"
691
562
  }
692
563
  },
693
564
  {
694
- "name": "address-info",
695
- "default": "`{}`",
696
- "description": "地址信息初始值",
565
+ "name": "disabled-list",
566
+ "default": "`[]`",
567
+ "description": "不可配送地址列表",
697
568
  "options": [],
698
569
  "value": {
699
- "type": "AddressEditInfo",
570
+ "type": "AddressListAddress[]",
700
571
  "kind": "expression"
701
572
  }
702
573
  },
703
574
  {
704
- "name": "search-result",
705
- "default": "`[]`",
706
- "description": "详细地址搜索结果",
575
+ "name": "disabled-text",
576
+ "default": "-",
577
+ "description": "不可配送提示文案",
707
578
  "options": [],
708
579
  "value": {
709
- "type": "AddressEditSearchItem[]",
580
+ "type": "string",
710
581
  "kind": "expression"
711
582
  }
712
583
  },
713
584
  {
714
- "name": "show-postal",
715
- "default": "`false`",
716
- "description": "是否显示邮政编码",
585
+ "name": "switchable",
586
+ "default": "`true`",
587
+ "description": "是否允许切换地址",
717
588
  "options": [],
718
589
  "value": {
719
590
  "type": "boolean",
@@ -721,181 +592,41 @@
721
592
  }
722
593
  },
723
594
  {
724
- "name": "show-delete",
725
- "default": "`false`",
726
- "description": "是否显示删除按钮",
595
+ "name": "add-button-text",
596
+ "default": "`新增地址`",
597
+ "description": "底部按钮文字",
727
598
  "options": [],
728
599
  "value": {
729
- "type": "boolean",
600
+ "type": "string",
730
601
  "kind": "expression"
731
602
  }
732
603
  },
733
604
  {
734
- "name": "show-set-default",
735
- "default": "`false`",
736
- "description": "是否显示默认地址栏",
605
+ "name": "default-tag-text",
606
+ "default": "-",
607
+ "description": "默认地址标签文字",
737
608
  "options": [],
738
609
  "value": {
739
- "type": "boolean",
610
+ "type": "string",
740
611
  "kind": "expression"
741
612
  }
613
+ }
614
+ ]
615
+ },
616
+ {
617
+ "name": "van-area",
618
+ "slots": [
619
+ {
620
+ "name": "toolbar",
621
+ "description": "自定义整个顶部栏的内容"
742
622
  },
743
623
  {
744
- "name": "show-search-result",
745
- "default": "`false`",
746
- "description": "是否显示搜索结果",
747
- "options": [],
748
- "value": {
749
- "type": "boolean",
750
- "kind": "expression"
751
- }
624
+ "name": "title",
625
+ "description": "自定义标题内容"
752
626
  },
753
627
  {
754
- "name": "show-area",
755
- "default": "`true`",
756
- "description": "是否显示地区",
757
- "options": [],
758
- "value": {
759
- "type": "boolean",
760
- "kind": "expression"
761
- }
762
- },
763
- {
764
- "name": "show-detail",
765
- "default": "`true`",
766
- "description": "是否显示详细地址",
767
- "options": [],
768
- "value": {
769
- "type": "boolean",
770
- "kind": "expression"
771
- }
772
- },
773
- {
774
- "name": "disable-area",
775
- "default": "`false`",
776
- "description": "是否禁用地区选择",
777
- "options": [],
778
- "value": {
779
- "type": "boolean",
780
- "kind": "expression"
781
- }
782
- },
783
- {
784
- "name": "save-button-text",
785
- "default": "`保存`",
786
- "description": "保存按钮文字",
787
- "options": [],
788
- "value": {
789
- "type": "string",
790
- "kind": "expression"
791
- }
792
- },
793
- {
794
- "name": "delete-button-text",
795
- "default": "`删除`",
796
- "description": "删除按钮文字",
797
- "options": [],
798
- "value": {
799
- "type": "string",
800
- "kind": "expression"
801
- }
802
- },
803
- {
804
- "name": "detail-rows",
805
- "default": "`1`",
806
- "description": "详细地址输入框行数",
807
- "options": [],
808
- "value": {
809
- "type": "number | string",
810
- "kind": "expression"
811
- }
812
- },
813
- {
814
- "name": "detail-maxlength",
815
- "default": "`200`",
816
- "description": "详细地址最大长度",
817
- "options": [],
818
- "value": {
819
- "type": "number | string",
820
- "kind": "expression"
821
- }
822
- },
823
- {
824
- "name": "is-saving",
825
- "default": "`false`",
826
- "description": "是否显示保存按钮加载动画",
827
- "options": [],
828
- "value": {
829
- "type": "boolean",
830
- "kind": "expression"
831
- }
832
- },
833
- {
834
- "name": "is-deleting",
835
- "default": "`false`",
836
- "description": "是否显示删除按钮加载动画",
837
- "options": [],
838
- "value": {
839
- "type": "boolean",
840
- "kind": "expression"
841
- }
842
- },
843
- {
844
- "name": "tel-validator",
845
- "default": "-",
846
- "description": "手机号格式校验函数",
847
- "options": [],
848
- "value": {
849
- "type": "string => boolean",
850
- "kind": "expression"
851
- }
852
- },
853
- {
854
- "name": "tel-maxlength",
855
- "default": "-",
856
- "description": "手机号最大长度",
857
- "options": [],
858
- "value": {
859
- "type": "number | string",
860
- "kind": "expression"
861
- }
862
- },
863
- {
864
- "name": "postal-validator",
865
- "default": "-",
866
- "description": "邮政编码格式校验函数",
867
- "options": [],
868
- "value": {
869
- "type": "string => boolean",
870
- "kind": "expression"
871
- }
872
- },
873
- {
874
- "name": "validator",
875
- "default": "-",
876
- "description": "自定义校验函数",
877
- "options": [],
878
- "value": {
879
- "type": "(key, val) => string",
880
- "kind": "expression"
881
- }
882
- }
883
- ]
884
- },
885
- {
886
- "name": "van-area",
887
- "slots": [
888
- {
889
- "name": "toolbar",
890
- "description": "自定义整个顶部栏的内容"
891
- },
892
- {
893
- "name": "title",
894
- "description": "自定义标题内容"
895
- },
896
- {
897
- "name": "confirm",
898
- "description": "自定义确认按钮内容"
628
+ "name": "confirm",
629
+ "description": "自定义确认按钮内容"
899
630
  },
900
631
  {
901
632
  "name": "cancel",
@@ -1058,174 +789,298 @@
1058
789
  ]
1059
790
  },
1060
791
  {
1061
- "name": "van-badge",
792
+ "name": "van-address-edit",
1062
793
  "slots": [
1063
794
  {
1064
795
  "name": "default",
1065
- "description": "徽标包裹的子元素"
796
+ "description": "在邮政编码下方插入内容"
797
+ }
798
+ ],
799
+ "events": [
800
+ {
801
+ "name": "save",
802
+ "description": "点击保存按钮时触发"
1066
803
  },
1067
804
  {
1068
- "name": "content",
1069
- "description": "自定义徽标内容"
805
+ "name": "focus",
806
+ "description": "输入框聚焦时触发"
807
+ },
808
+ {
809
+ "name": "delete",
810
+ "description": "确认删除地址时触发"
811
+ },
812
+ {
813
+ "name": "select-search",
814
+ "description": "选中搜索结果时触发"
815
+ },
816
+ {
817
+ "name": "click-area",
818
+ "description": "点击收件地区时触发"
819
+ },
820
+ {
821
+ "name": "change-area",
822
+ "description": "修改收件地区时触发"
823
+ },
824
+ {
825
+ "name": "change-detail",
826
+ "description": "修改详细地址时触发"
827
+ },
828
+ {
829
+ "name": "change-default",
830
+ "description": "切换是否使用默认地址时触发"
1070
831
  }
1071
832
  ],
1072
- "events": [],
1073
833
  "attributes": [
1074
834
  {
1075
- "name": "content",
835
+ "name": "area-list",
1076
836
  "default": "-",
1077
- "description": "徽标内容",
837
+ "description": "地区列表",
1078
838
  "options": [],
1079
839
  "value": {
1080
- "type": "number | string",
840
+ "type": "object",
1081
841
  "kind": "expression"
1082
842
  }
1083
843
  },
1084
844
  {
1085
- "name": "color",
1086
- "default": "`#ee0a24`",
1087
- "description": "徽标背景颜色",
845
+ "name": "area-columns-placeholder",
846
+ "default": "`[]`",
847
+ "description": "地区选择列占位提示文字",
1088
848
  "options": [],
1089
849
  "value": {
1090
- "type": "string",
850
+ "type": "string[]",
1091
851
  "kind": "expression"
1092
852
  }
1093
853
  },
1094
854
  {
1095
- "name": "dot",
1096
- "default": "`false`",
1097
- "description": "是否展示为小红点",
855
+ "name": "area-placeholder",
856
+ "default": "`选择省 / 市 / 区`",
857
+ "description": "地区输入框占位提示文字",
1098
858
  "options": [],
1099
859
  "value": {
1100
- "type": "boolean",
860
+ "type": "string",
1101
861
  "kind": "expression"
1102
862
  }
1103
863
  },
1104
864
  {
1105
- "name": "max",
1106
- "default": "-",
1107
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
865
+ "name": "address-info",
866
+ "default": "`{}`",
867
+ "description": "地址信息初始值",
1108
868
  "options": [],
1109
869
  "value": {
1110
- "type": "number | string",
870
+ "type": "AddressEditInfo",
1111
871
  "kind": "expression"
1112
872
  }
1113
873
  },
1114
874
  {
1115
- "name": "offset",
1116
- "default": "string]_",
1117
- "description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`",
1118
- "options": [
1119
- "-"
1120
- ],
875
+ "name": "search-result",
876
+ "default": "`[]`",
877
+ "description": "详细地址搜索结果",
878
+ "options": [],
1121
879
  "value": {
1122
- "type": "[number | string, number \\",
880
+ "type": "AddressEditSearchItem[]",
1123
881
  "kind": "expression"
1124
882
  }
1125
883
  },
1126
884
  {
1127
- "name": "show-zero",
1128
- "default": "`true`",
1129
- "description": "当 content 为数字 0 时,是否展示徽标",
885
+ "name": "show-postal",
886
+ "default": "`false`",
887
+ "description": "是否显示邮政编码",
1130
888
  "options": [],
1131
889
  "value": {
1132
890
  "type": "boolean",
1133
891
  "kind": "expression"
1134
892
  }
1135
- }
1136
- ]
1137
- },
1138
- {
1139
- "name": "van-calendar",
1140
- "slots": [
1141
- {
1142
- "name": "title",
1143
- "description": "自定义标题"
1144
893
  },
1145
894
  {
1146
- "name": "subtitle",
1147
- "description": "自定义日历副标题"
895
+ "name": "show-delete",
896
+ "default": "`false`",
897
+ "description": "是否显示删除按钮",
898
+ "options": [],
899
+ "value": {
900
+ "type": "boolean",
901
+ "kind": "expression"
902
+ }
1148
903
  },
1149
904
  {
1150
- "name": "footer",
1151
- "description": "自定义底部区域内容"
905
+ "name": "show-set-default",
906
+ "default": "`false`",
907
+ "description": "是否显示默认地址栏",
908
+ "options": [],
909
+ "value": {
910
+ "type": "boolean",
911
+ "kind": "expression"
912
+ }
1152
913
  },
1153
914
  {
1154
- "name": "top-info",
1155
- "description": "自定义日期上方的提示信息"
1156
- },
915
+ "name": "show-search-result",
916
+ "default": "`false`",
917
+ "description": "是否显示搜索结果",
918
+ "options": [],
919
+ "value": {
920
+ "type": "boolean",
921
+ "kind": "expression"
922
+ }
923
+ },
1157
924
  {
1158
- "name": "bottom-info",
1159
- "description": "自定义日期下方的提示信息"
1160
- }
1161
- ],
1162
- "events": [
925
+ "name": "show-area",
926
+ "default": "`true`",
927
+ "description": "是否显示地区",
928
+ "options": [],
929
+ "value": {
930
+ "type": "boolean",
931
+ "kind": "expression"
932
+ }
933
+ },
1163
934
  {
1164
- "name": "select",
1165
- "description": "点击并选中任意日期时触发"
935
+ "name": "show-detail",
936
+ "default": "`true`",
937
+ "description": "是否显示详细地址",
938
+ "options": [],
939
+ "value": {
940
+ "type": "boolean",
941
+ "kind": "expression"
942
+ }
1166
943
  },
1167
944
  {
1168
- "name": "confirm",
1169
- "description": "日期选择完成后触发,若 `show-confirm` 为 `true`,则点击确认按钮后触发"
945
+ "name": "disable-area",
946
+ "default": "`false`",
947
+ "description": "是否禁用地区选择",
948
+ "options": [],
949
+ "value": {
950
+ "type": "boolean",
951
+ "kind": "expression"
952
+ }
1170
953
  },
1171
954
  {
1172
- "name": "open",
1173
- "description": "打开弹出层时触发"
955
+ "name": "save-button-text",
956
+ "default": "`保存`",
957
+ "description": "保存按钮文字",
958
+ "options": [],
959
+ "value": {
960
+ "type": "string",
961
+ "kind": "expression"
962
+ }
1174
963
  },
1175
964
  {
1176
- "name": "close",
1177
- "description": "关闭弹出层时触发"
965
+ "name": "delete-button-text",
966
+ "default": "`删除`",
967
+ "description": "删除按钮文字",
968
+ "options": [],
969
+ "value": {
970
+ "type": "string",
971
+ "kind": "expression"
972
+ }
1178
973
  },
1179
974
  {
1180
- "name": "opened",
1181
- "description": "打开弹出层且动画结束后触发"
975
+ "name": "detail-rows",
976
+ "default": "`1`",
977
+ "description": "详细地址输入框行数",
978
+ "options": [],
979
+ "value": {
980
+ "type": "number | string",
981
+ "kind": "expression"
982
+ }
1182
983
  },
1183
984
  {
1184
- "name": "closed",
1185
- "description": "关闭弹出层且动画结束后触发"
985
+ "name": "detail-maxlength",
986
+ "default": "`200`",
987
+ "description": "详细地址最大长度",
988
+ "options": [],
989
+ "value": {
990
+ "type": "number | string",
991
+ "kind": "expression"
992
+ }
1186
993
  },
1187
994
  {
1188
- "name": "unselect",
1189
- "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
995
+ "name": "is-saving",
996
+ "default": "`false`",
997
+ "description": "是否显示保存按钮加载动画",
998
+ "options": [],
999
+ "value": {
1000
+ "type": "boolean",
1001
+ "kind": "expression"
1002
+ }
1190
1003
  },
1191
1004
  {
1192
- "name": "month-show",
1193
- "description": "当某个月份进入可视区域时触发"
1005
+ "name": "is-deleting",
1006
+ "default": "`false`",
1007
+ "description": "是否显示删除按钮加载动画",
1008
+ "options": [],
1009
+ "value": {
1010
+ "type": "boolean",
1011
+ "kind": "expression"
1012
+ }
1194
1013
  },
1195
1014
  {
1196
- "name": "over-range",
1197
- "description": "范围选择超过最多可选天数时触发"
1015
+ "name": "tel-validator",
1016
+ "default": "-",
1017
+ "description": "手机号格式校验函数",
1018
+ "options": [],
1019
+ "value": {
1020
+ "type": "string => boolean",
1021
+ "kind": "expression"
1022
+ }
1198
1023
  },
1199
1024
  {
1200
- "name": "click-subtitle",
1201
- "description": "点击日历副标题时触发"
1202
- }
1203
- ],
1204
- "attributes": [
1025
+ "name": "tel-maxlength",
1026
+ "default": "-",
1027
+ "description": "手机号最大长度",
1028
+ "options": [],
1029
+ "value": {
1030
+ "type": "number | string",
1031
+ "kind": "expression"
1032
+ }
1033
+ },
1205
1034
  {
1206
- "name": "type",
1207
- "default": "`single`",
1208
- "description": "选择类型:<br>`single` 表示选择单个日期,<br>`multiple` 表示选择多个日期,<br>`range` 表示选择日期区间",
1035
+ "name": "postal-validator",
1036
+ "default": "-",
1037
+ "description": "邮政编码格式校验函数",
1209
1038
  "options": [],
1210
1039
  "value": {
1211
- "type": "string",
1040
+ "type": "string => boolean",
1212
1041
  "kind": "expression"
1213
1042
  }
1214
1043
  },
1215
1044
  {
1216
- "name": "title",
1217
- "default": "`日期选择`",
1218
- "description": "日历标题",
1045
+ "name": "validator",
1046
+ "default": "-",
1047
+ "description": "自定义校验函数",
1219
1048
  "options": [],
1220
1049
  "value": {
1221
- "type": "string",
1050
+ "type": "(key, val) => string",
1051
+ "kind": "expression"
1052
+ }
1053
+ }
1054
+ ]
1055
+ },
1056
+ {
1057
+ "name": "van-badge",
1058
+ "slots": [
1059
+ {
1060
+ "name": "default",
1061
+ "description": "徽标包裹的子元素"
1062
+ },
1063
+ {
1064
+ "name": "content",
1065
+ "description": "自定义徽标内容"
1066
+ }
1067
+ ],
1068
+ "events": [],
1069
+ "attributes": [
1070
+ {
1071
+ "name": "content",
1072
+ "default": "-",
1073
+ "description": "徽标内容",
1074
+ "options": [],
1075
+ "value": {
1076
+ "type": "number | string",
1222
1077
  "kind": "expression"
1223
1078
  }
1224
1079
  },
1225
1080
  {
1226
1081
  "name": "color",
1227
1082
  "default": "`#ee0a24`",
1228
- "description": "主题色,对底部按钮和选中日期生效",
1083
+ "description": "徽标背景颜色",
1229
1084
  "options": [],
1230
1085
  "value": {
1231
1086
  "type": "string",
@@ -1233,101 +1088,170 @@
1233
1088
  }
1234
1089
  },
1235
1090
  {
1236
- "name": "min-date",
1237
- "default": "当前日期",
1238
- "description": "可选择的最小日期",
1091
+ "name": "dot",
1092
+ "default": "`false`",
1093
+ "description": "是否展示为小红点",
1239
1094
  "options": [],
1240
1095
  "value": {
1241
- "type": "Date",
1096
+ "type": "boolean",
1242
1097
  "kind": "expression"
1243
1098
  }
1244
1099
  },
1245
1100
  {
1246
- "name": "max-date",
1247
- "default": "当前日期的六个月后",
1248
- "description": "可选择的最大日期",
1101
+ "name": "max",
1102
+ "default": "-",
1103
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
1249
1104
  "options": [],
1250
1105
  "value": {
1251
- "type": "Date",
1106
+ "type": "number | string",
1252
1107
  "kind": "expression"
1253
1108
  }
1254
1109
  },
1255
1110
  {
1256
- "name": "default-date",
1257
- "default": "null_",
1258
- "description": "默认选中的日期,`type` `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
1111
+ "name": "offset",
1112
+ "default": "string]_",
1113
+ "description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`",
1259
1114
  "options": [
1260
- "今天"
1115
+ "-"
1261
1116
  ],
1262
1117
  "value": {
1263
- "type": "Date | Date[] \\",
1118
+ "type": "[number | string, number \\",
1264
1119
  "kind": "expression"
1265
1120
  }
1266
1121
  },
1267
1122
  {
1268
- "name": "row-height",
1269
- "default": "`64`",
1270
- "description": "日期行高",
1123
+ "name": "show-zero",
1124
+ "default": "`true`",
1125
+ "description": "当 content 为数字 0 时,是否展示徽标",
1271
1126
  "options": [],
1272
1127
  "value": {
1273
- "type": "number | string",
1128
+ "type": "boolean",
1274
1129
  "kind": "expression"
1275
1130
  }
1131
+ }
1132
+ ]
1133
+ },
1134
+ {
1135
+ "name": "van-button",
1136
+ "slots": [
1137
+ {
1138
+ "name": "default",
1139
+ "description": "按钮内容"
1276
1140
  },
1277
1141
  {
1278
- "name": "formatter",
1142
+ "name": "icon",
1143
+ "description": "自定义图标"
1144
+ },
1145
+ {
1146
+ "name": "loading",
1147
+ "description": "自定义加载图标"
1148
+ }
1149
+ ],
1150
+ "events": [
1151
+ {
1152
+ "name": "click",
1153
+ "description": "点击按钮,且按钮状态不为加载或禁用时触发"
1154
+ },
1155
+ {
1156
+ "name": "touchstart",
1157
+ "description": "开始触摸按钮时触发"
1158
+ }
1159
+ ],
1160
+ "attributes": [
1161
+ {
1162
+ "name": "type",
1163
+ "default": "`default`",
1164
+ "description": "类型,可选值为 `primary` `success` `warning` `danger`",
1165
+ "options": [],
1166
+ "value": {
1167
+ "type": "string",
1168
+ "kind": "expression"
1169
+ }
1170
+ },
1171
+ {
1172
+ "name": "size",
1173
+ "default": "`normal`",
1174
+ "description": "尺寸,可选值为 `large` `small` `mini`",
1175
+ "options": [],
1176
+ "value": {
1177
+ "type": "string",
1178
+ "kind": "expression"
1179
+ }
1180
+ },
1181
+ {
1182
+ "name": "text",
1279
1183
  "default": "-",
1280
- "description": "日期格式化函数",
1184
+ "description": "按钮文字",
1281
1185
  "options": [],
1282
1186
  "value": {
1283
- "type": "(day: Day) => Day",
1187
+ "type": "string",
1284
1188
  "kind": "expression"
1285
1189
  }
1286
1190
  },
1287
1191
  {
1288
- "name": "poppable",
1289
- "default": "`true`",
1290
- "description": "是否以弹层的形式展示日历",
1192
+ "name": "color",
1193
+ "default": "-",
1194
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
1291
1195
  "options": [],
1292
1196
  "value": {
1293
- "type": "boolean",
1197
+ "type": "string",
1294
1198
  "kind": "expression"
1295
1199
  }
1296
1200
  },
1297
1201
  {
1298
- "name": "lazy-render",
1299
- "default": "`true`",
1300
- "description": "是否只渲染可视区域的内容",
1202
+ "name": "icon",
1203
+ "default": "-",
1204
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
1301
1205
  "options": [],
1302
1206
  "value": {
1303
- "type": "boolean",
1207
+ "type": "string",
1304
1208
  "kind": "expression"
1305
1209
  }
1306
1210
  },
1307
1211
  {
1308
- "name": "show-mark",
1309
- "default": "`true`",
1310
- "description": "是否显示月份背景水印",
1212
+ "name": "icon-prefix",
1213
+ "default": "`van-icon`",
1214
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
1311
1215
  "options": [],
1312
1216
  "value": {
1313
- "type": "boolean",
1217
+ "type": "string",
1314
1218
  "kind": "expression"
1315
1219
  }
1316
1220
  },
1317
1221
  {
1318
- "name": "show-title",
1319
- "default": "`true`",
1320
- "description": "是否展示日历标题",
1222
+ "name": "icon-position",
1223
+ "default": "`left`",
1224
+ "description": "图标展示位置,可选值为 `right`",
1321
1225
  "options": [],
1322
1226
  "value": {
1323
- "type": "boolean",
1227
+ "type": "string",
1324
1228
  "kind": "expression"
1325
1229
  }
1326
1230
  },
1327
1231
  {
1328
- "name": "show-subtitle",
1329
- "default": "`true`",
1330
- "description": "是否展示日历副标题(年月)",
1232
+ "name": "tag",
1233
+ "default": "`button`",
1234
+ "description": "按钮根节点的 HTML 标签",
1235
+ "options": [],
1236
+ "value": {
1237
+ "type": "string",
1238
+ "kind": "expression"
1239
+ }
1240
+ },
1241
+ {
1242
+ "name": "native-type",
1243
+ "default": "`button`",
1244
+ "description": "原生 button 标签的 type 属性",
1245
+ "options": [],
1246
+ "value": {
1247
+ "type": "string",
1248
+ "kind": "expression"
1249
+ }
1250
+ },
1251
+ {
1252
+ "name": "block",
1253
+ "default": "`false`",
1254
+ "description": "是否为块级元素",
1331
1255
  "options": [],
1332
1256
  "value": {
1333
1257
  "type": "boolean",
@@ -1335,9 +1259,9 @@
1335
1259
  }
1336
1260
  },
1337
1261
  {
1338
- "name": "show-confirm",
1339
- "default": "`true`",
1340
- "description": "是否展示确认按钮",
1262
+ "name": "plain",
1263
+ "default": "`false`",
1264
+ "description": "是否为朴素按钮",
1341
1265
  "options": [],
1342
1266
  "value": {
1343
1267
  "type": "boolean",
@@ -1345,9 +1269,9 @@
1345
1269
  }
1346
1270
  },
1347
1271
  {
1348
- "name": "readonly",
1272
+ "name": "square",
1349
1273
  "default": "`false`",
1350
- "description": "是否为只读状态,只读状态下不能选择日期",
1274
+ "description": "是否为方形按钮",
1351
1275
  "options": [],
1352
1276
  "value": {
1353
1277
  "type": "boolean",
@@ -1355,39 +1279,39 @@
1355
1279
  }
1356
1280
  },
1357
1281
  {
1358
- "name": "confirm-text",
1359
- "default": "`确定`",
1360
- "description": "确认按钮的文字",
1282
+ "name": "round",
1283
+ "default": "`false`",
1284
+ "description": "是否为圆形按钮",
1361
1285
  "options": [],
1362
1286
  "value": {
1363
- "type": "string",
1287
+ "type": "boolean",
1364
1288
  "kind": "expression"
1365
1289
  }
1366
1290
  },
1367
1291
  {
1368
- "name": "confirm-disabled-text",
1369
- "default": "`确定`",
1370
- "description": "确认按钮处于禁用状态时的文字",
1292
+ "name": "disabled",
1293
+ "default": "`false`",
1294
+ "description": "是否禁用按钮",
1371
1295
  "options": [],
1372
1296
  "value": {
1373
- "type": "string",
1297
+ "type": "boolean",
1374
1298
  "kind": "expression"
1375
1299
  }
1376
1300
  },
1377
1301
  {
1378
- "name": "first-day-of-week",
1379
- "default": "`0`",
1380
- "description": "设置周起始日",
1302
+ "name": "hairline",
1303
+ "default": "`false`",
1304
+ "description": "是否使用 0.5px 边框",
1381
1305
  "options": [],
1382
1306
  "value": {
1383
- "type": "0-6",
1307
+ "type": "boolean",
1384
1308
  "kind": "expression"
1385
1309
  }
1386
1310
  },
1387
1311
  {
1388
- "name": "v-model:show",
1312
+ "name": "loading",
1389
1313
  "default": "`false`",
1390
- "description": "是否显示日历弹窗",
1314
+ "description": "是否显示为加载状态",
1391
1315
  "options": [],
1392
1316
  "value": {
1393
1317
  "type": "boolean",
@@ -1395,9 +1319,9 @@
1395
1319
  }
1396
1320
  },
1397
1321
  {
1398
- "name": "position",
1399
- "default": "`bottom`",
1400
- "description": "弹出位置,可选值为 `top` `right` `left`",
1322
+ "name": "loading-text",
1323
+ "default": "-",
1324
+ "description": "加载状态提示文字",
1401
1325
  "options": [],
1402
1326
  "value": {
1403
1327
  "type": "string",
@@ -1405,99 +1329,194 @@
1405
1329
  }
1406
1330
  },
1407
1331
  {
1408
- "name": "round",
1409
- "default": "`true`",
1410
- "description": "是否显示圆角弹窗",
1332
+ "name": "loading-type",
1333
+ "default": "`circular`",
1334
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
1411
1335
  "options": [],
1412
1336
  "value": {
1413
- "type": "boolean",
1337
+ "type": "string",
1414
1338
  "kind": "expression"
1415
1339
  }
1416
1340
  },
1417
1341
  {
1418
- "name": "close-on-popstate",
1419
- "default": "`true`",
1420
- "description": "是否在页面回退时自动关闭",
1342
+ "name": "loading-size",
1343
+ "default": "`20px`",
1344
+ "description": "加载图标大小,默认单位为 `px`",
1421
1345
  "options": [],
1422
1346
  "value": {
1423
- "type": "boolean",
1347
+ "type": "number | string",
1424
1348
  "kind": "expression"
1425
1349
  }
1426
1350
  },
1427
1351
  {
1428
- "name": "close-on-click-overlay",
1429
- "default": "`true`",
1430
- "description": "是否在点击遮罩层后关闭",
1352
+ "name": "url",
1353
+ "default": "-",
1354
+ "description": "点击后跳转的链接地址",
1431
1355
  "options": [],
1432
1356
  "value": {
1433
- "type": "boolean",
1357
+ "type": "string",
1434
1358
  "kind": "expression"
1435
1359
  }
1436
1360
  },
1437
1361
  {
1438
- "name": "safe-area-inset-bottom",
1439
- "default": "`true`",
1440
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1362
+ "name": "to",
1363
+ "default": "-",
1364
+ "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1365
+ "options": [],
1366
+ "value": {
1367
+ "type": "string | object",
1368
+ "kind": "expression"
1369
+ }
1370
+ },
1371
+ {
1372
+ "name": "replace",
1373
+ "default": "`false`",
1374
+ "description": "是否在跳转时替换当前页面历史",
1441
1375
  "options": [],
1442
1376
  "value": {
1443
1377
  "type": "boolean",
1444
1378
  "kind": "expression"
1445
1379
  }
1380
+ }
1381
+ ]
1382
+ },
1383
+ {
1384
+ "name": "van-calendar",
1385
+ "slots": [
1386
+ {
1387
+ "name": "title",
1388
+ "description": "自定义标题"
1446
1389
  },
1447
1390
  {
1448
- "name": "teleport",
1449
- "default": "-",
1450
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
1391
+ "name": "subtitle",
1392
+ "description": "自定义日历副标题"
1393
+ },
1394
+ {
1395
+ "name": "footer",
1396
+ "description": "自定义底部区域内容"
1397
+ },
1398
+ {
1399
+ "name": "confirm-text",
1400
+ "description": "自定义确认按钮的内容"
1401
+ },
1402
+ {
1403
+ "name": "top-info",
1404
+ "description": "自定义日期上方的提示信息"
1405
+ },
1406
+ {
1407
+ "name": "bottom-info",
1408
+ "description": "自定义日期下方的提示信息"
1409
+ }
1410
+ ],
1411
+ "events": [
1412
+ {
1413
+ "name": "select",
1414
+ "description": "点击并选中任意日期时触发"
1415
+ },
1416
+ {
1417
+ "name": "confirm",
1418
+ "description": "日期选择完成后触发,若 `show-confirm` 为 `true`,则点击确认按钮后触发"
1419
+ },
1420
+ {
1421
+ "name": "open",
1422
+ "description": "打开弹出层时触发"
1423
+ },
1424
+ {
1425
+ "name": "close",
1426
+ "description": "关闭弹出层时触发"
1427
+ },
1428
+ {
1429
+ "name": "opened",
1430
+ "description": "打开弹出层且动画结束后触发"
1431
+ },
1432
+ {
1433
+ "name": "closed",
1434
+ "description": "关闭弹出层且动画结束后触发"
1435
+ },
1436
+ {
1437
+ "name": "unselect",
1438
+ "description": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发"
1439
+ },
1440
+ {
1441
+ "name": "month-show",
1442
+ "description": "当某个月份进入可视区域时触发"
1443
+ },
1444
+ {
1445
+ "name": "over-range",
1446
+ "description": "范围选择超过最多可选天数时触发"
1447
+ },
1448
+ {
1449
+ "name": "click-subtitle",
1450
+ "description": "点击日历副标题时触发"
1451
+ }
1452
+ ],
1453
+ "attributes": [
1454
+ {
1455
+ "name": "type",
1456
+ "default": "`single`",
1457
+ "description": "选择类型:<br>`single` 表示选择单个日期,<br>`multiple` 表示选择多个日期,<br>`range` 表示选择日期区间",
1451
1458
  "options": [],
1452
1459
  "value": {
1453
- "type": "string | Element",
1460
+ "type": "string",
1454
1461
  "kind": "expression"
1455
1462
  }
1456
1463
  },
1457
1464
  {
1458
- "name": "max-range",
1459
- "default": "无限制",
1460
- "description": "日期区间最多可选天数",
1465
+ "name": "title",
1466
+ "default": "`日期选择`",
1467
+ "description": "日历标题",
1461
1468
  "options": [],
1462
1469
  "value": {
1463
- "type": "number | string",
1470
+ "type": "string",
1471
+ "kind": "expression"
1472
+ }
1473
+ },
1474
+ {
1475
+ "name": "color",
1476
+ "default": "`#ee0a24`",
1477
+ "description": "主题色,对底部按钮和选中日期生效",
1478
+ "options": [],
1479
+ "value": {
1480
+ "type": "string",
1464
1481
  "kind": "expression"
1465
1482
  }
1466
1483
  },
1467
1484
  {
1468
- "name": "range-prompt",
1469
- "default": "`最多选择 xx 天`",
1470
- "description": "范围选择超过最多可选天数时的提示文案",
1485
+ "name": "min-date",
1486
+ "default": "当前日期",
1487
+ "description": "可选择的最小日期",
1471
1488
  "options": [],
1472
1489
  "value": {
1473
- "type": "string",
1490
+ "type": "Date",
1474
1491
  "kind": "expression"
1475
1492
  }
1476
1493
  },
1477
1494
  {
1478
- "name": "show-range-prompt",
1479
- "default": "`true`",
1480
- "description": "范围选择超过最多可选天数时,是否展示提示文案",
1495
+ "name": "max-date",
1496
+ "default": "当前日期的六个月后",
1497
+ "description": "可选择的最大日期",
1481
1498
  "options": [],
1482
1499
  "value": {
1483
- "type": "boolean",
1500
+ "type": "Date",
1484
1501
  "kind": "expression"
1485
1502
  }
1486
1503
  },
1487
1504
  {
1488
- "name": "allow-same-day",
1489
- "default": "`false`",
1490
- "description": "是否允许日期范围的起止时间为同一天",
1491
- "options": [],
1505
+ "name": "default-date",
1506
+ "default": "null_",
1507
+ "description": "默认选中的日期,`type` 为 `multiple` 或 `range` 时为数组,传入 `null` 表示默认不选择",
1508
+ "options": [
1509
+ "今天"
1510
+ ],
1492
1511
  "value": {
1493
- "type": "boolean",
1512
+ "type": "Date | Date[] \\",
1494
1513
  "kind": "expression"
1495
1514
  }
1496
1515
  },
1497
1516
  {
1498
- "name": "max-range",
1499
- "default": "无限制",
1500
- "description": "日期最多可选天数",
1517
+ "name": "row-height",
1518
+ "default": "`64`",
1519
+ "description": "日期行高",
1501
1520
  "options": [],
1502
1521
  "value": {
1503
1522
  "type": "number | string",
@@ -1505,118 +1524,89 @@
1505
1524
  }
1506
1525
  },
1507
1526
  {
1508
- "name": "range-prompt",
1509
- "default": "`最多选择 xx 天`",
1510
- "description": "选择超过最多可选天数时的提示文案",
1527
+ "name": "formatter",
1528
+ "default": "-",
1529
+ "description": "日期格式化函数",
1511
1530
  "options": [],
1512
1531
  "value": {
1513
- "type": "string",
1532
+ "type": "(day: Day) => Day",
1514
1533
  "kind": "expression"
1515
1534
  }
1516
- }
1517
- ]
1518
- },
1519
- {
1520
- "name": "van-button",
1521
- "slots": [
1522
- {
1523
- "name": "default",
1524
- "description": "按钮内容"
1525
- },
1526
- {
1527
- "name": "icon",
1528
- "description": "自定义图标"
1529
- },
1530
- {
1531
- "name": "loading",
1532
- "description": "自定义加载图标"
1533
- }
1534
- ],
1535
- "events": [
1536
- {
1537
- "name": "click",
1538
- "description": "点击按钮,且按钮状态不为加载或禁用时触发"
1539
1535
  },
1540
1536
  {
1541
- "name": "touchstart",
1542
- "description": "开始触摸按钮时触发"
1543
- }
1544
- ],
1545
- "attributes": [
1546
- {
1547
- "name": "type",
1548
- "default": "`default`",
1549
- "description": "类型,可选值为 `primary` `success` `warning` `danger`",
1537
+ "name": "poppable",
1538
+ "default": "`true`",
1539
+ "description": "是否以弹层的形式展示日历",
1550
1540
  "options": [],
1551
1541
  "value": {
1552
- "type": "string",
1542
+ "type": "boolean",
1553
1543
  "kind": "expression"
1554
1544
  }
1555
1545
  },
1556
1546
  {
1557
- "name": "size",
1558
- "default": "`normal`",
1559
- "description": "尺寸,可选值为 `large` `small` `mini`",
1547
+ "name": "lazy-render",
1548
+ "default": "`true`",
1549
+ "description": "是否只渲染可视区域的内容",
1560
1550
  "options": [],
1561
1551
  "value": {
1562
- "type": "string",
1552
+ "type": "boolean",
1563
1553
  "kind": "expression"
1564
1554
  }
1565
1555
  },
1566
1556
  {
1567
- "name": "text",
1568
- "default": "-",
1569
- "description": "按钮文字",
1557
+ "name": "show-mark",
1558
+ "default": "`true`",
1559
+ "description": "是否显示月份背景水印",
1570
1560
  "options": [],
1571
1561
  "value": {
1572
- "type": "string",
1562
+ "type": "boolean",
1573
1563
  "kind": "expression"
1574
1564
  }
1575
1565
  },
1576
1566
  {
1577
- "name": "color",
1578
- "default": "-",
1579
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
1567
+ "name": "show-title",
1568
+ "default": "`true`",
1569
+ "description": "是否展示日历标题",
1580
1570
  "options": [],
1581
1571
  "value": {
1582
- "type": "string",
1572
+ "type": "boolean",
1583
1573
  "kind": "expression"
1584
1574
  }
1585
1575
  },
1586
1576
  {
1587
- "name": "icon",
1588
- "default": "-",
1589
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
1577
+ "name": "show-subtitle",
1578
+ "default": "`true`",
1579
+ "description": "是否展示日历副标题(年月)",
1590
1580
  "options": [],
1591
1581
  "value": {
1592
- "type": "string",
1582
+ "type": "boolean",
1593
1583
  "kind": "expression"
1594
1584
  }
1595
1585
  },
1596
1586
  {
1597
- "name": "icon-prefix",
1598
- "default": "`van-icon`",
1599
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
1587
+ "name": "show-confirm",
1588
+ "default": "`true`",
1589
+ "description": "是否展示确认按钮",
1600
1590
  "options": [],
1601
1591
  "value": {
1602
- "type": "string",
1592
+ "type": "boolean",
1603
1593
  "kind": "expression"
1604
1594
  }
1605
1595
  },
1606
1596
  {
1607
- "name": "icon-position",
1608
- "default": "`left`",
1609
- "description": "图标展示位置,可选值为 `right`",
1597
+ "name": "readonly",
1598
+ "default": "`false`",
1599
+ "description": "是否为只读状态,只读状态下不能选择日期",
1610
1600
  "options": [],
1611
1601
  "value": {
1612
- "type": "string",
1602
+ "type": "boolean",
1613
1603
  "kind": "expression"
1614
1604
  }
1615
1605
  },
1616
1606
  {
1617
- "name": "tag",
1618
- "default": "`button`",
1619
- "description": "按钮根节点的 HTML 标签",
1607
+ "name": "confirm-text",
1608
+ "default": "`确定`",
1609
+ "description": "确认按钮的文字",
1620
1610
  "options": [],
1621
1611
  "value": {
1622
1612
  "type": "string",
@@ -1624,9 +1614,9 @@
1624
1614
  }
1625
1615
  },
1626
1616
  {
1627
- "name": "native-type",
1628
- "default": "`button`",
1629
- "description": "原生 button 标签的 type 属性",
1617
+ "name": "confirm-disabled-text",
1618
+ "default": "`确定`",
1619
+ "description": "确认按钮处于禁用状态时的文字",
1630
1620
  "options": [],
1631
1621
  "value": {
1632
1622
  "type": "string",
@@ -1634,19 +1624,19 @@
1634
1624
  }
1635
1625
  },
1636
1626
  {
1637
- "name": "block",
1638
- "default": "`false`",
1639
- "description": "是否为块级元素",
1627
+ "name": "first-day-of-week",
1628
+ "default": "`0`",
1629
+ "description": "设置周起始日",
1640
1630
  "options": [],
1641
1631
  "value": {
1642
- "type": "boolean",
1632
+ "type": "0-6",
1643
1633
  "kind": "expression"
1644
1634
  }
1645
1635
  },
1646
1636
  {
1647
- "name": "plain",
1637
+ "name": "v-model:show",
1648
1638
  "default": "`false`",
1649
- "description": "是否为朴素按钮",
1639
+ "description": "是否显示日历弹窗",
1650
1640
  "options": [],
1651
1641
  "value": {
1652
1642
  "type": "boolean",
@@ -1654,19 +1644,19 @@
1654
1644
  }
1655
1645
  },
1656
1646
  {
1657
- "name": "square",
1658
- "default": "`false`",
1659
- "description": "是否为方形按钮",
1647
+ "name": "position",
1648
+ "default": "`bottom`",
1649
+ "description": "弹出位置,可选值为 `top` `right` `left`",
1660
1650
  "options": [],
1661
1651
  "value": {
1662
- "type": "boolean",
1652
+ "type": "string",
1663
1653
  "kind": "expression"
1664
1654
  }
1665
1655
  },
1666
1656
  {
1667
1657
  "name": "round",
1668
- "default": "`false`",
1669
- "description": "是否为圆形按钮",
1658
+ "default": "`true`",
1659
+ "description": "是否显示圆角弹窗",
1670
1660
  "options": [],
1671
1661
  "value": {
1672
1662
  "type": "boolean",
@@ -1674,9 +1664,9 @@
1674
1664
  }
1675
1665
  },
1676
1666
  {
1677
- "name": "disabled",
1678
- "default": "`false`",
1679
- "description": "是否禁用按钮",
1667
+ "name": "close-on-popstate",
1668
+ "default": "`true`",
1669
+ "description": "是否在页面回退时自动关闭",
1680
1670
  "options": [],
1681
1671
  "value": {
1682
1672
  "type": "boolean",
@@ -1684,9 +1674,9 @@
1684
1674
  }
1685
1675
  },
1686
1676
  {
1687
- "name": "hairline",
1688
- "default": "`false`",
1689
- "description": "是否使用 0.5px 边框",
1677
+ "name": "close-on-click-overlay",
1678
+ "default": "`true`",
1679
+ "description": "是否在点击遮罩层后关闭",
1690
1680
  "options": [],
1691
1681
  "value": {
1692
1682
  "type": "boolean",
@@ -1694,9 +1684,9 @@
1694
1684
  }
1695
1685
  },
1696
1686
  {
1697
- "name": "loading",
1698
- "default": "`false`",
1699
- "description": "是否显示为加载状态",
1687
+ "name": "safe-area-inset-bottom",
1688
+ "default": "`true`",
1689
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1700
1690
  "options": [],
1701
1691
  "value": {
1702
1692
  "type": "boolean",
@@ -1704,19 +1694,29 @@
1704
1694
  }
1705
1695
  },
1706
1696
  {
1707
- "name": "loading-text",
1697
+ "name": "teleport",
1708
1698
  "default": "-",
1709
- "description": "加载状态提示文字",
1699
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
1710
1700
  "options": [],
1711
1701
  "value": {
1712
- "type": "string",
1702
+ "type": "string | Element",
1713
1703
  "kind": "expression"
1714
1704
  }
1715
1705
  },
1716
1706
  {
1717
- "name": "loading-type",
1718
- "default": "`circular`",
1719
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
1707
+ "name": "max-range",
1708
+ "default": "无限制",
1709
+ "description": "日期区间最多可选天数",
1710
+ "options": [],
1711
+ "value": {
1712
+ "type": "number | string",
1713
+ "kind": "expression"
1714
+ }
1715
+ },
1716
+ {
1717
+ "name": "range-prompt",
1718
+ "default": "`最多选择 xx 天`",
1719
+ "description": "范围选择超过最多可选天数时的提示文案",
1720
1720
  "options": [],
1721
1721
  "value": {
1722
1722
  "type": "string",
@@ -1724,42 +1724,42 @@
1724
1724
  }
1725
1725
  },
1726
1726
  {
1727
- "name": "loading-size",
1728
- "default": "`20px`",
1729
- "description": "加载图标大小,默认单位为 `px`",
1727
+ "name": "show-range-prompt",
1728
+ "default": "`true`",
1729
+ "description": "范围选择超过最多可选天数时,是否展示提示文案",
1730
1730
  "options": [],
1731
1731
  "value": {
1732
- "type": "number | string",
1732
+ "type": "boolean",
1733
1733
  "kind": "expression"
1734
1734
  }
1735
1735
  },
1736
1736
  {
1737
- "name": "url",
1738
- "default": "-",
1739
- "description": "点击后跳转的链接地址",
1737
+ "name": "allow-same-day",
1738
+ "default": "`false`",
1739
+ "description": "是否允许日期范围的起止时间为同一天",
1740
1740
  "options": [],
1741
1741
  "value": {
1742
- "type": "string",
1742
+ "type": "boolean",
1743
1743
  "kind": "expression"
1744
1744
  }
1745
1745
  },
1746
1746
  {
1747
- "name": "to",
1748
- "default": "-",
1749
- "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1747
+ "name": "max-range",
1748
+ "default": "无限制",
1749
+ "description": "日期最多可选天数",
1750
1750
  "options": [],
1751
1751
  "value": {
1752
- "type": "string | object",
1752
+ "type": "number | string",
1753
1753
  "kind": "expression"
1754
1754
  }
1755
1755
  },
1756
1756
  {
1757
- "name": "replace",
1758
- "default": "`false`",
1759
- "description": "是否在跳转时替换当前页面历史",
1757
+ "name": "range-prompt",
1758
+ "default": "`最多选择 xx 天`",
1759
+ "description": "选择超过最多可选天数时的提示文案",
1760
1760
  "options": [],
1761
1761
  "value": {
1762
- "type": "boolean",
1762
+ "type": "string",
1763
1763
  "kind": "expression"
1764
1764
  }
1765
1765
  }
@@ -2938,19 +2938,56 @@
2938
2938
  }
2939
2939
  },
2940
2940
  {
2941
- "name": "title-class",
2941
+ "name": "title-class",
2942
+ "default": "-",
2943
+ "description": "左侧标题额外类名",
2944
+ "options": [],
2945
+ "value": {
2946
+ "type": "string",
2947
+ "kind": "expression"
2948
+ }
2949
+ },
2950
+ {
2951
+ "name": "value-class",
2952
+ "default": "-",
2953
+ "description": "右侧内容额外类名",
2954
+ "options": [],
2955
+ "value": {
2956
+ "type": "string",
2957
+ "kind": "expression"
2958
+ }
2959
+ },
2960
+ {
2961
+ "name": "label-class",
2942
2962
  "default": "-",
2943
- "description": "左侧标题额外类名",
2963
+ "description": "描述信息额外类名",
2944
2964
  "options": [],
2945
2965
  "value": {
2946
2966
  "type": "string",
2947
2967
  "kind": "expression"
2948
2968
  }
2949
- },
2969
+ }
2970
+ ]
2971
+ },
2972
+ {
2973
+ "name": "van-config-provider",
2974
+ "slots": [],
2975
+ "events": [],
2976
+ "attributes": [
2950
2977
  {
2951
- "name": "value-class",
2978
+ "name": "theme-vars",
2952
2979
  "default": "-",
2953
- "description": "右侧内容额外类名",
2980
+ "description": "自定义主题变量",
2981
+ "options": [],
2982
+ "value": {
2983
+ "type": "object",
2984
+ "kind": "expression"
2985
+ }
2986
+ },
2987
+ {
2988
+ "name": "tag",
2989
+ "default": "`div`",
2990
+ "description": "根节点对应的 HTML 标签名",
2954
2991
  "options": [],
2955
2992
  "value": {
2956
2993
  "type": "string",
@@ -2958,9 +2995,9 @@
2958
2995
  }
2959
2996
  },
2960
2997
  {
2961
- "name": "label-class",
2962
- "default": "-",
2963
- "description": "描述信息额外类名",
2998
+ "name": "icon-prefix",
2999
+ "default": "`van-icon`",
3000
+ "description": "所有图标的类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
2964
3001
  "options": [],
2965
3002
  "value": {
2966
3003
  "type": "string",
@@ -3107,43 +3144,6 @@
3107
3144
  }
3108
3145
  ]
3109
3146
  },
3110
- {
3111
- "name": "van-config-provider",
3112
- "slots": [],
3113
- "events": [],
3114
- "attributes": [
3115
- {
3116
- "name": "theme-vars",
3117
- "default": "-",
3118
- "description": "自定义主题变量",
3119
- "options": [],
3120
- "value": {
3121
- "type": "object",
3122
- "kind": "expression"
3123
- }
3124
- },
3125
- {
3126
- "name": "tag",
3127
- "default": "`div`",
3128
- "description": "根节点对应的 HTML 标签名",
3129
- "options": [],
3130
- "value": {
3131
- "type": "string",
3132
- "kind": "expression"
3133
- }
3134
- },
3135
- {
3136
- "name": "icon-prefix",
3137
- "default": "`van-icon`",
3138
- "description": "所有图标的类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
3139
- "options": [],
3140
- "value": {
3141
- "type": "string",
3142
- "kind": "expression"
3143
- }
3144
- }
3145
- ]
3146
- },
3147
3147
  {
3148
3148
  "name": "van-contact-list",
3149
3149
  "slots": [],
@@ -4352,7 +4352,7 @@
4352
4352
  },
4353
4353
  {
4354
4354
  "name": "input",
4355
- "description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
4355
+ "description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效"
4356
4356
  },
4357
4357
  {
4358
4358
  "name": "left-icon",
@@ -4366,6 +4366,10 @@
4366
4366
  "name": "button",
4367
4367
  "description": "自定义输入框尾部按钮"
4368
4368
  },
4369
+ {
4370
+ "name": "error-message",
4371
+ "description": "自定义底部错误提示文案"
4372
+ },
4369
4373
  {
4370
4374
  "name": "extra",
4371
4375
  "description": "自定义输入框最右侧的额外内容"
@@ -6229,7 +6233,7 @@
6229
6233
  },
6230
6234
  {
6231
6235
  "name": "maxlength",
6232
- "default": "-",
6236
+ "default": "`Infinity`",
6233
6237
  "description": "输入值最大长度",
6234
6238
  "options": [],
6235
6239
  "value": {
@@ -7568,7 +7572,7 @@
7568
7572
  {
7569
7573
  "name": "icon-size",
7570
7574
  "default": "`20px`",
7571
- "description": "图标大小,默认单位为`px`",
7575
+ "description": "图标大小,默认单位为 `px`",
7572
7576
  "options": [],
7573
7577
  "value": {
7574
7578
  "type": "number | string",
@@ -7620,7 +7624,7 @@
7620
7624
  {
7621
7625
  "name": "direction",
7622
7626
  "default": "`vertical`",
7623
- "description": "排列方向,可选值为`horizontal`",
7627
+ "description": "排列方向,可选值为 `horizontal`",
7624
7628
  "options": [],
7625
7629
  "value": {
7626
7630
  "type": "string",
@@ -7630,7 +7634,7 @@
7630
7634
  {
7631
7635
  "name": "icon-size",
7632
7636
  "default": "`20px`",
7633
- "description": "所有单选框的图标大小,默认单位为`px`",
7637
+ "description": "所有单选框的图标大小,默认单位为 `px`",
7634
7638
  "options": [],
7635
7639
  "value": {
7636
7640
  "type": "number | string",
@@ -7856,6 +7860,16 @@
7856
7860
  }
7857
7861
  ],
7858
7862
  "attributes": [
7863
+ {
7864
+ "name": "v-model",
7865
+ "default": "-",
7866
+ "description": "当前输入的值",
7867
+ "options": [],
7868
+ "value": {
7869
+ "type": "number | string",
7870
+ "kind": "expression"
7871
+ }
7872
+ },
7859
7873
  {
7860
7874
  "name": "label",
7861
7875
  "default": "-",
@@ -7866,6 +7880,16 @@
7866
7880
  "kind": "expression"
7867
7881
  }
7868
7882
  },
7883
+ {
7884
+ "name": "name",
7885
+ "default": "-",
7886
+ "description": "名称,作为提交表单时的标识符",
7887
+ "options": [],
7888
+ "value": {
7889
+ "type": "string",
7890
+ "kind": "expression"
7891
+ }
7892
+ },
7869
7893
  {
7870
7894
  "name": "shape",
7871
7895
  "default": "`square`",
@@ -8065,6 +8089,16 @@
8065
8089
  "type": "string",
8066
8090
  "kind": "expression"
8067
8091
  }
8092
+ },
8093
+ {
8094
+ "name": "autocomplete",
8095
+ "default": "-",
8096
+ "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
8097
+ "options": [],
8098
+ "value": {
8099
+ "type": "string",
8100
+ "kind": "expression"
8101
+ }
8068
8102
  }
8069
8103
  ]
8070
8104
  },
@@ -8175,6 +8209,16 @@
8175
8209
  "kind": "expression"
8176
8210
  }
8177
8211
  },
8212
+ {
8213
+ "name": "round",
8214
+ "default": "`true`",
8215
+ "description": "是否显示圆角",
8216
+ "options": [],
8217
+ "value": {
8218
+ "type": "boolean",
8219
+ "kind": "expression"
8220
+ }
8221
+ },
8178
8222
  {
8179
8223
  "name": "overlay",
8180
8224
  "default": "`true`",
@@ -8917,72 +8961,6 @@
8917
8961
  }
8918
8962
  ]
8919
8963
  },
8920
- {
8921
- "name": "van-sticky",
8922
- "slots": [],
8923
- "events": [
8924
- {
8925
- "name": "change",
8926
- "description": "当吸顶状态改变时触发"
8927
- },
8928
- {
8929
- "name": "scroll",
8930
- "description": "滚动时触发"
8931
- }
8932
- ],
8933
- "attributes": [
8934
- {
8935
- "name": "position",
8936
- "default": "`top`",
8937
- "description": "吸附位置,可选值为 `bottom`",
8938
- "options": [],
8939
- "value": {
8940
- "type": "string",
8941
- "kind": "expression"
8942
- }
8943
- },
8944
- {
8945
- "name": "offset-top",
8946
- "default": "`0`",
8947
- "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
8948
- "options": [],
8949
- "value": {
8950
- "type": "number | string",
8951
- "kind": "expression"
8952
- }
8953
- },
8954
- {
8955
- "name": "offset-bottom",
8956
- "default": "`0`",
8957
- "description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
8958
- "options": [],
8959
- "value": {
8960
- "type": "number | string",
8961
- "kind": "expression"
8962
- }
8963
- },
8964
- {
8965
- "name": "z-index",
8966
- "default": "`99`",
8967
- "description": "吸顶时的 z-index",
8968
- "options": [],
8969
- "value": {
8970
- "type": "number | string",
8971
- "kind": "expression"
8972
- }
8973
- },
8974
- {
8975
- "name": "container",
8976
- "default": "-",
8977
- "description": "容器对应的 HTML 节点",
8978
- "options": [],
8979
- "value": {
8980
- "type": "Element",
8981
- "kind": "expression"
8982
- }
8983
- }
8984
- ]
8985
- },
8986
8964
  {
8987
8965
  "name": "van-steps",
8988
8966
  "slots": [],
@@ -9078,6 +9056,10 @@
9078
9056
  {
9079
9057
  "name": "van-step",
9080
9058
  "slots": [
9059
+ {
9060
+ "name": "default",
9061
+ "description": "步骤内容"
9062
+ },
9081
9063
  {
9082
9064
  "name": "active-icon",
9083
9065
  "description": "自定义激活状态图标"
@@ -9094,6 +9076,72 @@
9094
9076
  "events": [],
9095
9077
  "attributes": []
9096
9078
  },
9079
+ {
9080
+ "name": "van-sticky",
9081
+ "slots": [],
9082
+ "events": [
9083
+ {
9084
+ "name": "change",
9085
+ "description": "当吸顶状态改变时触发"
9086
+ },
9087
+ {
9088
+ "name": "scroll",
9089
+ "description": "滚动时触发"
9090
+ }
9091
+ ],
9092
+ "attributes": [
9093
+ {
9094
+ "name": "position",
9095
+ "default": "`top`",
9096
+ "description": "吸附位置,可选值为 `bottom`",
9097
+ "options": [],
9098
+ "value": {
9099
+ "type": "string",
9100
+ "kind": "expression"
9101
+ }
9102
+ },
9103
+ {
9104
+ "name": "offset-top",
9105
+ "default": "`0`",
9106
+ "description": "吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
9107
+ "options": [],
9108
+ "value": {
9109
+ "type": "number | string",
9110
+ "kind": "expression"
9111
+ }
9112
+ },
9113
+ {
9114
+ "name": "offset-bottom",
9115
+ "default": "`0`",
9116
+ "description": "吸底时与底部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
9117
+ "options": [],
9118
+ "value": {
9119
+ "type": "number | string",
9120
+ "kind": "expression"
9121
+ }
9122
+ },
9123
+ {
9124
+ "name": "z-index",
9125
+ "default": "`99`",
9126
+ "description": "吸顶时的 z-index",
9127
+ "options": [],
9128
+ "value": {
9129
+ "type": "number | string",
9130
+ "kind": "expression"
9131
+ }
9132
+ },
9133
+ {
9134
+ "name": "container",
9135
+ "default": "-",
9136
+ "description": "容器对应的 HTML 节点",
9137
+ "options": [],
9138
+ "value": {
9139
+ "type": "Element",
9140
+ "kind": "expression"
9141
+ }
9142
+ }
9143
+ ]
9144
+ },
9097
9145
  {
9098
9146
  "name": "van-submit-bar",
9099
9147
  "slots": [
@@ -9742,7 +9790,7 @@
9742
9790
  {
9743
9791
  "name": "sticky",
9744
9792
  "default": "`false`",
9745
- "description": "是否使用粘性定位布局",
9793
+ "description": "是否使用粘性布局",
9746
9794
  "options": [],
9747
9795
  "value": {
9748
9796
  "type": "boolean",
@@ -9782,7 +9830,7 @@
9782
9830
  {
9783
9831
  "name": "offset-top",
9784
9832
  "default": "`0`",
9785
- "description": "粘性定位布局下与顶部的最小距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
9833
+ "description": "粘性布局下吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
9786
9834
  "options": [],
9787
9835
  "value": {
9788
9836
  "type": "number | string",
@@ -10573,7 +10621,7 @@
10573
10621
  "default": "(file: File) => boolean_",
10574
10622
  "description": "文件大小限制,单位为 `byte`",
10575
10623
  "options": [
10576
- "-"
10624
+ "Infinity"
10577
10625
  ],
10578
10626
  "value": {
10579
10627
  "type": "number | string \\",
@@ -10582,7 +10630,7 @@
10582
10630
  },
10583
10631
  {
10584
10632
  "name": "max-count",
10585
- "default": "-",
10633
+ "default": "`Infinity`",
10586
10634
  "description": "文件上传数量限制",
10587
10635
  "options": [],
10588
10636
  "value": {