vant 3.2.3 → 3.2.7

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 (1109) hide show
  1. package/es/action-bar/ActionBar.d.ts +8 -0
  2. package/es/action-bar/ActionBar.js +8 -6
  3. package/es/action-bar/index.css +1 -1
  4. package/es/action-bar/index.d.ts +1 -0
  5. package/es/action-bar/index.less +1 -1
  6. package/es/action-bar/var.less +1 -1
  7. package/es/action-bar-button/ActionBarButton.d.ts +14 -1
  8. package/es/action-bar-button/ActionBarButton.js +13 -11
  9. package/es/action-bar-button/index.d.ts +1 -0
  10. package/es/action-bar-icon/ActionBarIcon.d.ts +15 -0
  11. package/es/action-bar-icon/ActionBarIcon.js +17 -15
  12. package/es/action-bar-icon/index.css +1 -1
  13. package/es/action-bar-icon/index.d.ts +1 -0
  14. package/es/action-bar-icon/index.less +1 -1
  15. package/es/action-bar-icon/var.less +1 -1
  16. package/es/action-sheet/ActionSheet.d.ts +76 -13
  17. package/es/action-sheet/ActionSheet.js +25 -33
  18. package/es/action-sheet/index.css +1 -1
  19. package/es/action-sheet/index.d.ts +18 -11
  20. package/es/action-sheet/index.less +2 -7
  21. package/es/action-sheet/var.less +4 -5
  22. package/es/address-edit/AddressEdit.d.ts +16 -18
  23. package/es/address-edit/AddressEdit.js +17 -32
  24. package/es/address-edit/AddressEditDetail.js +12 -12
  25. package/es/address-edit/index.css +1 -1
  26. package/es/address-edit/index.d.ts +10 -9
  27. package/es/address-edit/index.less +2 -2
  28. package/es/address-edit/style/index.js +0 -3
  29. package/es/address-edit/style/less.js +0 -3
  30. package/es/address-list/AddressList.d.ts +25 -6
  31. package/es/address-list/AddressList.js +19 -26
  32. package/es/address-list/AddressListItem.d.ts +4 -4
  33. package/es/address-list/AddressListItem.js +9 -10
  34. package/es/address-list/index.css +1 -1
  35. package/es/address-list/index.d.ts +9 -8
  36. package/es/address-list/index.less +2 -2
  37. package/es/address-list/var.less +2 -2
  38. package/es/area/Area.d.ts +45 -46
  39. package/es/area/Area.js +24 -21
  40. package/es/area/index.d.ts +28 -27
  41. package/es/badge/Badge.d.ts +23 -7
  42. package/es/badge/Badge.js +18 -18
  43. package/es/badge/index.css +1 -1
  44. package/es/badge/index.d.ts +9 -8
  45. package/es/badge/index.less +5 -3
  46. package/es/button/Button.d.ts +59 -19
  47. package/es/button/Button.js +30 -42
  48. package/es/button/index.css +1 -1
  49. package/es/button/index.d.ts +32 -31
  50. package/es/button/types.d.ts +5 -0
  51. package/es/button/types.js +1 -0
  52. package/es/button/var.less +1 -1
  53. package/es/calendar/Calendar.d.ts +48 -49
  54. package/es/calendar/Calendar.js +53 -45
  55. package/es/calendar/CalendarDay.d.ts +7 -7
  56. package/es/calendar/CalendarDay.js +9 -14
  57. package/es/calendar/CalendarHeader.js +6 -4
  58. package/es/calendar/CalendarMonth.d.ts +20 -20
  59. package/es/calendar/CalendarMonth.js +15 -23
  60. package/es/calendar/index.css +1 -1
  61. package/es/calendar/index.d.ts +29 -28
  62. package/es/calendar/index.less +3 -3
  63. package/es/calendar/types.d.ts +1 -1
  64. package/es/calendar/utils.d.ts +2 -2
  65. package/es/calendar/utils.js +1 -3
  66. package/es/calendar/var.less +2 -2
  67. package/es/card/Card.d.ts +21 -3
  68. package/es/card/Card.js +21 -21
  69. package/es/card/index.css +1 -1
  70. package/es/card/index.d.ts +5 -4
  71. package/es/card/index.less +1 -1
  72. package/es/card/var.less +3 -3
  73. package/es/cascader/Cascader.d.ts +33 -22
  74. package/es/cascader/Cascader.js +75 -72
  75. package/es/cascader/index.css +1 -1
  76. package/es/cascader/index.d.ts +19 -18
  77. package/es/cascader/index.less +0 -5
  78. package/es/cascader/types.d.ts +18 -0
  79. package/es/cascader/types.js +1 -0
  80. package/es/cascader/var.less +2 -3
  81. package/es/cell/Cell.d.ts +35 -5
  82. package/es/cell/Cell.js +12 -17
  83. package/es/cell/index.css +1 -1
  84. package/es/cell/index.d.ts +3 -3
  85. package/es/cell/index.less +1 -1
  86. package/es/cell/var.less +3 -3
  87. package/es/cell-group/CellGroup.d.ts +10 -0
  88. package/es/cell-group/CellGroup.js +12 -9
  89. package/es/cell-group/index.css +1 -1
  90. package/es/cell-group/index.d.ts +1 -0
  91. package/es/cell-group/index.less +1 -1
  92. package/es/cell-group/var.less +2 -2
  93. package/es/checkbox/Checkbox.d.ts +11 -11
  94. package/es/checkbox/Checkbox.js +12 -7
  95. package/es/checkbox/Checker.d.ts +14 -14
  96. package/es/checkbox/Checker.js +13 -25
  97. package/es/checkbox/index.css +1 -1
  98. package/es/checkbox/index.d.ts +7 -6
  99. package/es/checkbox/types.d.ts +3 -0
  100. package/es/checkbox/var.less +1 -1
  101. package/es/checkbox-group/CheckboxGroup.d.ts +8 -8
  102. package/es/checkbox-group/CheckboxGroup.js +17 -15
  103. package/es/checkbox-group/index.d.ts +6 -5
  104. package/es/checkbox-group/types.d.ts +2 -1
  105. package/es/circle/Circle.d.ts +50 -14
  106. package/es/circle/Circle.js +22 -40
  107. package/es/circle/index.d.ts +23 -23
  108. package/es/col/Col.d.ts +17 -5
  109. package/es/col/Col.js +11 -15
  110. package/es/col/index.d.ts +4 -3
  111. package/es/collapse/Collapse.d.ts +13 -1
  112. package/es/collapse/Collapse.js +14 -12
  113. package/es/collapse/index.d.ts +1 -0
  114. package/es/collapse-item/CollapseItem.d.ts +5 -5
  115. package/es/collapse-item/CollapseItem.js +18 -11
  116. package/es/collapse-item/index.css +1 -1
  117. package/es/collapse-item/index.d.ts +3 -2
  118. package/es/collapse-item/index.less +1 -1
  119. package/es/collapse-item/var.less +3 -3
  120. package/es/composables/use-lock-scroll.js +3 -3
  121. package/es/composables/use-placeholder.d.ts +1 -1
  122. package/es/config-provider/ConfigProvider.d.ts +14 -5
  123. package/es/config-provider/ConfigProvider.js +11 -12
  124. package/es/config-provider/index.d.ts +6 -5
  125. package/es/contact-card/ContactCard.d.ts +19 -5
  126. package/es/contact-card/ContactCard.js +14 -14
  127. package/es/contact-card/index.css +1 -1
  128. package/es/contact-card/index.d.ts +6 -6
  129. package/es/contact-card/index.less +2 -2
  130. package/es/contact-edit/ContactEdit.d.ts +17 -1
  131. package/es/contact-edit/ContactEdit.js +21 -22
  132. package/es/contact-edit/index.d.ts +1 -1
  133. package/es/contact-edit/style/index.js +0 -5
  134. package/es/contact-edit/style/less.js +0 -5
  135. package/es/contact-list/ContactList.d.ts +8 -1
  136. package/es/contact-list/ContactList.js +12 -9
  137. package/es/contact-list/index.css +1 -1
  138. package/es/contact-list/index.d.ts +1 -1
  139. package/es/contact-list/index.less +1 -1
  140. package/es/count-down/CountDown.d.ts +16 -24
  141. package/es/count-down/CountDown.js +11 -16
  142. package/es/count-down/index.d.ts +12 -11
  143. package/es/count-down/types.d.ts +11 -0
  144. package/es/count-down/types.js +1 -0
  145. package/es/coupon/Coupon.d.ts +3 -3
  146. package/es/coupon/Coupon.js +4 -23
  147. package/es/coupon/index.css +1 -1
  148. package/es/coupon/index.d.ts +3 -3
  149. package/es/coupon/index.less +3 -2
  150. package/es/coupon/utils.d.ts +3 -0
  151. package/es/coupon/utils.js +7 -0
  152. package/es/coupon/var.less +3 -2
  153. package/es/coupon-cell/CouponCell.d.ts +27 -3
  154. package/es/coupon-cell/CouponCell.js +18 -22
  155. package/es/coupon-cell/index.d.ts +2 -1
  156. package/es/coupon-list/CouponList.d.ts +89 -35
  157. package/es/coupon-list/CouponList.js +32 -61
  158. package/es/coupon-list/index.css +1 -1
  159. package/es/coupon-list/index.d.ts +44 -43
  160. package/es/coupon-list/index.less +10 -5
  161. package/es/coupon-list/var.less +1 -1
  162. package/es/datetime-picker/DatePicker.d.ts +23 -25
  163. package/es/datetime-picker/DatePicker.js +15 -15
  164. package/es/datetime-picker/DatetimePicker.d.ts +3 -12
  165. package/es/datetime-picker/DatetimePicker.js +10 -9
  166. package/es/datetime-picker/TimePicker.d.ts +16 -16
  167. package/es/datetime-picker/TimePicker.js +19 -28
  168. package/es/datetime-picker/index.d.ts +3 -10
  169. package/es/datetime-picker/utils.d.ts +9 -9
  170. package/es/datetime-picker/utils.js +4 -6
  171. package/es/dialog/Dialog.d.ts +60 -9
  172. package/es/dialog/Dialog.js +34 -39
  173. package/es/dialog/function-call.d.ts +20 -45
  174. package/es/dialog/function-call.js +2 -2
  175. package/es/dialog/index.css +1 -1
  176. package/es/dialog/index.d.ts +3 -3
  177. package/es/dialog/index.less +1 -1
  178. package/es/dialog/types.d.ts +36 -0
  179. package/es/dialog/types.js +1 -0
  180. package/es/dialog/var.less +1 -1
  181. package/es/divider/Divider.d.ts +15 -3
  182. package/es/divider/Divider.js +11 -12
  183. package/es/divider/index.css +1 -1
  184. package/es/divider/index.d.ts +2 -2
  185. package/es/divider/var.less +1 -1
  186. package/es/dropdown-item/DropdownItem.d.ts +10 -10
  187. package/es/dropdown-item/DropdownItem.js +20 -14
  188. package/es/dropdown-item/index.d.ts +7 -5
  189. package/es/dropdown-menu/DropdownMenu.d.ts +21 -21
  190. package/es/dropdown-menu/DropdownMenu.js +15 -18
  191. package/es/dropdown-menu/index.css +1 -1
  192. package/es/dropdown-menu/index.d.ts +12 -10
  193. package/es/dropdown-menu/index.less +1 -9
  194. package/es/dropdown-menu/var.less +2 -2
  195. package/es/empty/Empty.d.ts +13 -3
  196. package/es/empty/Empty.js +12 -12
  197. package/es/empty/Network.js +8 -27
  198. package/es/empty/index.css +1 -1
  199. package/es/empty/index.d.ts +5 -4
  200. package/es/empty/var.less +1 -1
  201. package/es/field/Field.d.ts +83 -81
  202. package/es/field/Field.js +64 -63
  203. package/es/field/index.css +1 -1
  204. package/es/field/index.d.ts +40 -38
  205. package/es/field/utils.d.ts +2 -2
  206. package/es/field/utils.js +9 -6
  207. package/es/field/var.less +3 -3
  208. package/es/form/Form.d.ts +13 -13
  209. package/es/form/Form.js +11 -13
  210. package/es/form/index.d.ts +9 -7
  211. package/es/grid/Grid.d.ts +3 -2
  212. package/es/grid/Grid.js +10 -12
  213. package/es/grid/index.d.ts +1 -1
  214. package/es/grid-item/GridItem.d.ts +16 -2
  215. package/es/grid-item/GridItem.js +17 -15
  216. package/es/grid-item/index.css +1 -1
  217. package/es/grid-item/index.d.ts +3 -2
  218. package/es/grid-item/index.less +1 -1
  219. package/es/grid-item/var.less +1 -1
  220. package/es/icon/Icon.d.ts +18 -5
  221. package/es/icon/Icon.js +16 -19
  222. package/es/icon/index.css +1 -1
  223. package/es/icon/index.d.ts +6 -5
  224. package/es/image/Image.d.ts +39 -10
  225. package/es/image/Image.js +41 -55
  226. package/es/image/index.css +1 -1
  227. package/es/image/index.d.ts +12 -12
  228. package/es/image/index.less +1 -1
  229. package/es/image/var.less +1 -1
  230. package/es/image-preview/ImagePreview.d.ts +54 -54
  231. package/es/image-preview/ImagePreview.js +23 -44
  232. package/es/image-preview/ImagePreviewItem.js +10 -23
  233. package/es/image-preview/function-call.d.ts +31 -31
  234. package/es/image-preview/function-call.js +7 -3
  235. package/es/image-preview/index.css +1 -1
  236. package/es/image-preview/index.d.ts +2 -0
  237. package/es/image-preview/index.less +1 -6
  238. package/es/image-preview/var.less +0 -1
  239. package/es/index-anchor/IndexAnchor.d.ts +5 -0
  240. package/es/index-anchor/IndexAnchor.js +10 -8
  241. package/es/index-anchor/index.css +1 -1
  242. package/es/index-anchor/index.d.ts +1 -0
  243. package/es/index-anchor/index.less +2 -2
  244. package/es/index-anchor/var.less +1 -1
  245. package/es/index-bar/IndexBar.d.ts +2 -2
  246. package/es/index-bar/IndexBar.js +11 -24
  247. package/es/index-bar/index.d.ts +2 -0
  248. package/es/index.d.ts +1 -1
  249. package/es/index.js +1 -1
  250. package/es/list/List.d.ts +20 -20
  251. package/es/list/List.js +11 -16
  252. package/es/list/index.css +1 -1
  253. package/es/list/index.d.ts +12 -10
  254. package/es/list/var.less +1 -1
  255. package/es/loading/Loading.d.ts +17 -5
  256. package/es/loading/Loading.js +14 -15
  257. package/es/loading/index.css +1 -1
  258. package/es/loading/index.d.ts +6 -6
  259. package/es/loading/var.less +1 -1
  260. package/es/locale/index.js +5 -1
  261. package/es/locale/lang/de-DE-formal.d.ts +0 -1
  262. package/es/locale/lang/de-DE-formal.js +0 -1
  263. package/es/locale/lang/de-DE.d.ts +0 -1
  264. package/es/locale/lang/de-DE.js +0 -1
  265. package/es/locale/lang/en-US.d.ts +0 -1
  266. package/es/locale/lang/en-US.js +0 -1
  267. package/es/locale/lang/es-ES.d.ts +0 -1
  268. package/es/locale/lang/es-ES.js +0 -1
  269. package/es/locale/lang/fr-FR.d.ts +0 -1
  270. package/es/locale/lang/fr-FR.js +0 -1
  271. package/es/locale/lang/ja-JP.d.ts +0 -1
  272. package/es/locale/lang/ja-JP.js +0 -1
  273. package/es/locale/lang/nb-NO.d.ts +0 -1
  274. package/es/locale/lang/nb-NO.js +0 -1
  275. package/es/locale/lang/ro-RO.d.ts +0 -1
  276. package/es/locale/lang/ro-RO.js +0 -1
  277. package/es/locale/lang/ru-RU.d.ts +0 -1
  278. package/es/locale/lang/ru-RU.js +0 -1
  279. package/es/locale/lang/th-TH.d.ts +0 -1
  280. package/es/locale/lang/th-TH.js +0 -1
  281. package/es/locale/lang/tr-TR.d.ts +0 -1
  282. package/es/locale/lang/tr-TR.js +0 -1
  283. package/es/locale/lang/zh-CN.d.ts +0 -1
  284. package/es/locale/lang/zh-CN.js +0 -1
  285. package/es/locale/lang/zh-HK.d.ts +0 -1
  286. package/es/locale/lang/zh-HK.js +0 -1
  287. package/es/locale/lang/zh-TW.d.ts +0 -1
  288. package/es/locale/lang/zh-TW.js +0 -1
  289. package/es/nav-bar/NavBar.d.ts +16 -0
  290. package/es/nav-bar/NavBar.js +20 -18
  291. package/es/nav-bar/index.css +1 -1
  292. package/es/nav-bar/index.d.ts +1 -0
  293. package/es/nav-bar/index.less +1 -5
  294. package/es/nav-bar/var.less +1 -1
  295. package/es/notice-bar/NoticeBar.d.ts +19 -19
  296. package/es/notice-bar/NoticeBar.js +10 -15
  297. package/es/notice-bar/index.css +1 -1
  298. package/es/notice-bar/index.d.ts +14 -12
  299. package/es/notice-bar/index.less +1 -1
  300. package/es/notify/Notify.d.ts +52 -13
  301. package/es/notify/Notify.js +21 -16
  302. package/es/notify/function-call.d.ts +12 -23
  303. package/es/notify/function-call.js +18 -22
  304. package/es/notify/index.css +1 -1
  305. package/es/notify/index.d.ts +3 -3
  306. package/es/notify/index.less +4 -4
  307. package/es/notify/types.d.ts +20 -0
  308. package/es/notify/types.js +1 -0
  309. package/es/number-keyboard/NumberKeyboard.d.ts +58 -11
  310. package/es/number-keyboard/NumberKeyboard.js +30 -37
  311. package/es/number-keyboard/NumberKeyboardKey.js +7 -6
  312. package/es/number-keyboard/index.css +1 -1
  313. package/es/number-keyboard/index.d.ts +16 -16
  314. package/es/number-keyboard/index.less +3 -7
  315. package/es/number-keyboard/var.less +1 -1
  316. package/es/overlay/Overlay.d.ts +13 -1
  317. package/es/overlay/Overlay.js +18 -15
  318. package/es/overlay/index.css +1 -1
  319. package/es/overlay/index.d.ts +1 -0
  320. package/es/overlay/index.less +1 -1
  321. package/es/pagination/Pagination.d.ts +46 -16
  322. package/es/pagination/Pagination.js +24 -42
  323. package/es/pagination/index.css +1 -1
  324. package/es/pagination/index.d.ts +19 -19
  325. package/es/pagination/index.less +1 -1
  326. package/es/pagination/var.less +1 -1
  327. package/es/password-input/PasswordInput.d.ts +6 -6
  328. package/es/password-input/PasswordInput.js +10 -14
  329. package/es/password-input/index.css +1 -1
  330. package/es/password-input/index.d.ts +6 -6
  331. package/es/password-input/index.less +3 -3
  332. package/es/password-input/var.less +3 -3
  333. package/es/picker/Picker.d.ts +63 -24
  334. package/es/picker/Picker.js +24 -39
  335. package/es/picker/PickerColumn.d.ts +15 -16
  336. package/es/picker/PickerColumn.js +30 -53
  337. package/es/picker/index.css +1 -1
  338. package/es/picker/index.d.ts +24 -22
  339. package/es/picker/index.less +4 -12
  340. package/es/picker/types.d.ts +2 -2
  341. package/es/picker/var.less +9 -3
  342. package/es/popover/Popover.d.ts +69 -29
  343. package/es/popover/Popover.js +37 -50
  344. package/es/popover/index.css +1 -1
  345. package/es/popover/index.d.ts +35 -34
  346. package/es/popover/index.less +2 -2
  347. package/es/popover/types.d.ts +11 -0
  348. package/es/popover/types.js +1 -0
  349. package/es/popover/var.less +3 -3
  350. package/es/popup/Popup.d.ts +64 -18
  351. package/es/popup/Popup.js +22 -31
  352. package/es/popup/index.css +1 -1
  353. package/es/popup/index.d.ts +16 -16
  354. package/es/popup/index.less +1 -6
  355. package/es/popup/shared.js +3 -3
  356. package/es/popup/var.less +1 -2
  357. package/es/progress/Progress.d.ts +2 -2
  358. package/es/progress/Progress.js +12 -8
  359. package/es/progress/index.css +1 -1
  360. package/es/progress/index.d.ts +2 -0
  361. package/es/progress/index.less +10 -1
  362. package/es/progress/var.less +1 -0
  363. package/es/pull-refresh/PullRefresh.d.ts +29 -9
  364. package/es/pull-refresh/PullRefresh.js +21 -31
  365. package/es/pull-refresh/index.css +1 -1
  366. package/es/pull-refresh/index.d.ts +10 -12
  367. package/es/pull-refresh/var.less +1 -1
  368. package/es/radio/Radio.d.ts +14 -9
  369. package/es/radio/Radio.js +5 -4
  370. package/es/radio/index.css +1 -1
  371. package/es/radio/index.d.ts +6 -5
  372. package/es/radio/var.less +1 -1
  373. package/es/radio-group/RadioGroup.d.ts +4 -2
  374. package/es/radio-group/RadioGroup.js +9 -8
  375. package/es/radio-group/index.d.ts +1 -0
  376. package/es/rate/Rate.d.ts +47 -14
  377. package/es/rate/Rate.js +24 -34
  378. package/es/rate/index.d.ts +22 -21
  379. package/es/row/Row.d.ts +22 -5
  380. package/es/row/Row.js +13 -17
  381. package/es/row/index.d.ts +8 -8
  382. package/es/search/Search.d.ts +72 -64
  383. package/es/search/Search.js +15 -21
  384. package/es/search/index.css +1 -1
  385. package/es/search/index.d.ts +43 -35
  386. package/es/search/index.less +2 -2
  387. package/es/search/var.less +1 -1
  388. package/es/share-sheet/ShareSheet.d.ts +64 -10
  389. package/es/share-sheet/ShareSheet.js +22 -23
  390. package/es/share-sheet/index.css +1 -1
  391. package/es/share-sheet/index.d.ts +15 -8
  392. package/es/share-sheet/index.less +0 -4
  393. package/es/share-sheet/var.less +3 -3
  394. package/es/sidebar/Sidebar.d.ts +8 -1
  395. package/es/sidebar/Sidebar.js +10 -11
  396. package/es/sidebar/index.d.ts +1 -0
  397. package/es/sidebar-item/SidebarItem.d.ts +12 -0
  398. package/es/sidebar-item/SidebarItem.js +13 -11
  399. package/es/sidebar-item/index.css +1 -1
  400. package/es/sidebar-item/index.d.ts +1 -0
  401. package/es/sidebar-item/index.less +1 -1
  402. package/es/sidebar-item/var.less +2 -2
  403. package/es/skeleton/Skeleton.d.ts +36 -7
  404. package/es/skeleton/Skeleton.js +22 -25
  405. package/es/skeleton/index.css +1 -1
  406. package/es/skeleton/index.d.ts +10 -9
  407. package/es/skeleton/index.less +2 -2
  408. package/es/slider/Slider.d.ts +37 -9
  409. package/es/slider/Slider.js +37 -44
  410. package/es/slider/index.css +1 -1
  411. package/es/slider/index.d.ts +17 -16
  412. package/es/slider/index.less +3 -3
  413. package/es/step/Step.js +4 -3
  414. package/es/step/index.css +1 -1
  415. package/es/step/index.less +1 -1
  416. package/es/step/var.less +1 -1
  417. package/es/stepper/Stepper.d.ts +64 -12
  418. package/es/stepper/Stepper.js +47 -58
  419. package/es/stepper/index.css +1 -1
  420. package/es/stepper/index.d.ts +26 -27
  421. package/es/stepper/index.less +6 -21
  422. package/es/stepper/var.less +1 -2
  423. package/es/steps/Steps.d.ts +23 -22
  424. package/es/steps/Steps.js +12 -20
  425. package/es/steps/index.css +1 -1
  426. package/es/steps/index.d.ts +11 -10
  427. package/es/steps/var.less +1 -1
  428. package/es/sticky/Sticky.d.ts +21 -4
  429. package/es/sticky/Sticky.js +14 -21
  430. package/es/sticky/index.d.ts +6 -6
  431. package/es/style/base.css +1 -1
  432. package/es/style/base.less +4 -0
  433. package/es/style/css-variables.css +1 -1
  434. package/es/style/css-variables.less +3 -1
  435. package/es/style/mixins/hairline.less +3 -3
  436. package/es/style/var.less +5 -3
  437. package/es/submit-bar/SubmitBar.d.ts +40 -11
  438. package/es/submit-bar/SubmitBar.js +24 -30
  439. package/es/submit-bar/index.css +1 -1
  440. package/es/submit-bar/index.d.ts +14 -14
  441. package/es/submit-bar/index.less +3 -3
  442. package/es/submit-bar/var.less +3 -3
  443. package/es/swipe/Swipe.d.ts +32 -32
  444. package/es/swipe/Swipe.js +36 -30
  445. package/es/swipe/index.d.ts +20 -18
  446. package/es/swipe-cell/SwipeCell.d.ts +9 -9
  447. package/es/swipe-cell/SwipeCell.js +18 -17
  448. package/es/swipe-cell/index.d.ts +7 -5
  449. package/es/swipe-item/SwipeItem.js +4 -3
  450. package/es/switch/Switch.d.ts +18 -0
  451. package/es/switch/Switch.js +23 -20
  452. package/es/switch/index.css +1 -1
  453. package/es/switch/index.d.ts +1 -0
  454. package/es/switch/index.less +3 -3
  455. package/es/switch/var.less +1 -1
  456. package/es/tab/Tab.d.ts +19 -1
  457. package/es/tab/Tab.js +17 -15
  458. package/es/tab/index.d.ts +1 -0
  459. package/es/tabbar/Tabbar.d.ts +5 -4
  460. package/es/tabbar/Tabbar.js +11 -14
  461. package/es/tabbar/index.css +1 -1
  462. package/es/tabbar/index.d.ts +3 -2
  463. package/es/tabbar/index.less +1 -1
  464. package/es/tabbar/var.less +1 -1
  465. package/es/tabbar-item/TabbarItem.d.ts +13 -0
  466. package/es/tabbar-item/TabbarItem.js +17 -15
  467. package/es/tabbar-item/index.css +1 -1
  468. package/es/tabbar-item/index.d.ts +1 -0
  469. package/es/tabbar-item/var.less +1 -1
  470. package/es/tabs/Tabs.d.ts +40 -40
  471. package/es/tabs/Tabs.js +33 -39
  472. package/es/tabs/TabsContent.d.ts +7 -7
  473. package/es/tabs/TabsContent.js +9 -17
  474. package/es/tabs/TabsTitle.js +2 -2
  475. package/es/tabs/index.css +1 -1
  476. package/es/tabs/index.d.ts +25 -23
  477. package/es/tabs/index.less +2 -2
  478. package/es/tabs/utils.js +2 -4
  479. package/es/tabs/var.less +2 -2
  480. package/es/tag/Tag.d.ts +25 -6
  481. package/es/tag/Tag.js +19 -19
  482. package/es/tag/index.css +1 -1
  483. package/es/tag/index.d.ts +8 -7
  484. package/es/tag/index.less +6 -6
  485. package/es/tag/var.less +1 -1
  486. package/es/toast/Toast.d.ts +44 -13
  487. package/es/toast/Toast.js +31 -46
  488. package/es/toast/function-call.d.ts +2 -25
  489. package/es/toast/function-call.js +10 -2
  490. package/es/toast/index.css +1 -1
  491. package/es/toast/index.d.ts +3 -3
  492. package/es/toast/index.less +1 -1
  493. package/es/toast/types.d.ts +32 -0
  494. package/es/toast/types.js +1 -0
  495. package/es/tree-select/TreeSelect.d.ts +35 -8
  496. package/es/tree-select/TreeSelect.js +19 -31
  497. package/es/tree-select/index.css +1 -1
  498. package/es/tree-select/index.d.ts +11 -11
  499. package/es/tree-select/index.less +2 -2
  500. package/es/tree-select/var.less +1 -1
  501. package/es/uploader/Uploader.d.ts +66 -66
  502. package/es/uploader/Uploader.js +27 -41
  503. package/es/uploader/UploaderPreviewItem.d.ts +6 -6
  504. package/es/uploader/UploaderPreviewItem.js +14 -16
  505. package/es/uploader/index.css +1 -1
  506. package/es/uploader/index.d.ts +47 -45
  507. package/es/uploader/index.less +4 -5
  508. package/es/uploader/utils.d.ts +3 -3
  509. package/es/uploader/utils.js +2 -10
  510. package/es/uploader/var.less +1 -1
  511. package/{lib/utils/base.d.ts → es/utils/basic.d.ts} +1 -6
  512. package/es/utils/{base.js → basic.js} +1 -7
  513. package/es/utils/constant.d.ts +1 -0
  514. package/es/utils/constant.js +1 -0
  515. package/{lib/utils/create/bem.d.ts → es/utils/create.d.ts} +7 -4
  516. package/es/utils/create.js +58 -0
  517. package/es/utils/deep-assign.d.ts +1 -1
  518. package/es/utils/deep-assign.js +1 -1
  519. package/es/utils/deep-clone.js +2 -2
  520. package/{lib/utils/dom/scroll.d.ts → es/utils/dom.d.ts} +4 -2
  521. package/es/utils/{dom/scroll.js → dom.js} +31 -22
  522. package/es/utils/format.d.ts +12 -0
  523. package/es/utils/format.js +139 -0
  524. package/es/utils/index.d.ts +4 -7
  525. package/es/utils/index.js +5 -8
  526. package/es/utils/interceptor.d.ts +3 -4
  527. package/es/utils/interceptor.js +6 -6
  528. package/es/utils/mount-component.js +5 -3
  529. package/es/utils/props.d.ts +31 -0
  530. package/es/utils/props.js +30 -0
  531. package/es/utils/validate.d.ts +7 -7
  532. package/es/utils/validate.js +8 -22
  533. package/es/utils/with-install.js +1 -1
  534. package/lib/action-bar/ActionBar.d.ts +8 -0
  535. package/lib/action-bar/ActionBar.js +8 -6
  536. package/lib/action-bar/index.css +1 -1
  537. package/lib/action-bar/index.d.ts +1 -0
  538. package/lib/action-bar/index.less +1 -1
  539. package/lib/action-bar/var.less +1 -1
  540. package/lib/action-bar-button/ActionBarButton.d.ts +14 -1
  541. package/lib/action-bar-button/ActionBarButton.js +13 -11
  542. package/lib/action-bar-button/index.d.ts +1 -0
  543. package/lib/action-bar-icon/ActionBarIcon.d.ts +15 -0
  544. package/lib/action-bar-icon/ActionBarIcon.js +16 -14
  545. package/lib/action-bar-icon/index.css +1 -1
  546. package/lib/action-bar-icon/index.d.ts +1 -0
  547. package/lib/action-bar-icon/index.less +1 -1
  548. package/lib/action-bar-icon/var.less +1 -1
  549. package/lib/action-sheet/ActionSheet.d.ts +76 -13
  550. package/lib/action-sheet/ActionSheet.js +24 -32
  551. package/lib/action-sheet/index.css +1 -1
  552. package/lib/action-sheet/index.d.ts +18 -11
  553. package/lib/action-sheet/index.less +2 -7
  554. package/lib/action-sheet/var.less +4 -5
  555. package/lib/address-edit/AddressEdit.d.ts +16 -18
  556. package/lib/address-edit/AddressEdit.js +16 -32
  557. package/lib/address-edit/AddressEditDetail.js +10 -10
  558. package/lib/address-edit/index.css +1 -1
  559. package/lib/address-edit/index.d.ts +10 -9
  560. package/lib/address-edit/index.less +2 -2
  561. package/lib/address-edit/style/index.js +0 -6
  562. package/lib/address-edit/style/less.js +0 -6
  563. package/lib/address-list/AddressList.d.ts +25 -6
  564. package/lib/address-list/AddressList.js +18 -25
  565. package/lib/address-list/AddressListItem.d.ts +4 -4
  566. package/lib/address-list/AddressListItem.js +8 -9
  567. package/lib/address-list/index.css +1 -1
  568. package/lib/address-list/index.d.ts +9 -8
  569. package/lib/address-list/index.less +2 -2
  570. package/lib/address-list/var.less +2 -2
  571. package/lib/area/Area.d.ts +45 -46
  572. package/lib/area/Area.js +22 -19
  573. package/lib/area/index.d.ts +28 -27
  574. package/lib/badge/Badge.d.ts +23 -7
  575. package/lib/badge/Badge.js +16 -16
  576. package/lib/badge/index.css +1 -1
  577. package/lib/badge/index.d.ts +9 -8
  578. package/lib/badge/index.less +5 -3
  579. package/lib/button/Button.d.ts +59 -19
  580. package/lib/button/Button.js +27 -40
  581. package/lib/button/index.css +1 -1
  582. package/lib/button/index.d.ts +32 -31
  583. package/lib/button/types.d.ts +5 -0
  584. package/lib/button/types.js +3 -0
  585. package/lib/button/var.less +1 -1
  586. package/lib/calendar/Calendar.d.ts +48 -49
  587. package/lib/calendar/Calendar.js +52 -44
  588. package/lib/calendar/CalendarDay.d.ts +7 -7
  589. package/lib/calendar/CalendarDay.js +8 -13
  590. package/lib/calendar/CalendarHeader.js +6 -4
  591. package/lib/calendar/CalendarMonth.d.ts +20 -20
  592. package/lib/calendar/CalendarMonth.js +13 -21
  593. package/lib/calendar/index.css +1 -1
  594. package/lib/calendar/index.d.ts +29 -28
  595. package/lib/calendar/index.less +3 -3
  596. package/lib/calendar/types.d.ts +1 -1
  597. package/lib/calendar/utils.d.ts +2 -2
  598. package/lib/calendar/utils.js +9 -7
  599. package/lib/calendar/var.less +2 -2
  600. package/lib/card/Card.d.ts +21 -3
  601. package/lib/card/Card.js +20 -20
  602. package/lib/card/index.css +1 -1
  603. package/lib/card/index.d.ts +5 -4
  604. package/lib/card/index.less +1 -1
  605. package/lib/card/var.less +3 -3
  606. package/lib/cascader/Cascader.d.ts +33 -22
  607. package/lib/cascader/Cascader.js +73 -70
  608. package/lib/cascader/index.css +1 -1
  609. package/lib/cascader/index.d.ts +19 -18
  610. package/lib/cascader/index.less +0 -5
  611. package/lib/cascader/types.d.ts +18 -0
  612. package/lib/cascader/types.js +3 -0
  613. package/lib/cascader/var.less +2 -3
  614. package/lib/cell/Cell.d.ts +35 -5
  615. package/lib/cell/Cell.js +13 -18
  616. package/lib/cell/index.css +1 -1
  617. package/lib/cell/index.d.ts +3 -3
  618. package/lib/cell/index.less +1 -1
  619. package/lib/cell/var.less +3 -3
  620. package/lib/cell-group/CellGroup.d.ts +10 -0
  621. package/lib/cell-group/CellGroup.js +13 -10
  622. package/lib/cell-group/index.css +1 -1
  623. package/lib/cell-group/index.d.ts +1 -0
  624. package/lib/cell-group/index.less +1 -1
  625. package/lib/cell-group/var.less +2 -2
  626. package/lib/checkbox/Checkbox.d.ts +11 -11
  627. package/lib/checkbox/Checkbox.js +12 -7
  628. package/lib/checkbox/Checker.d.ts +14 -14
  629. package/lib/checkbox/Checker.js +12 -24
  630. package/lib/checkbox/index.css +1 -1
  631. package/lib/checkbox/index.d.ts +7 -6
  632. package/lib/checkbox/types.d.ts +3 -0
  633. package/lib/checkbox/var.less +1 -1
  634. package/lib/checkbox-group/CheckboxGroup.d.ts +8 -8
  635. package/lib/checkbox-group/CheckboxGroup.js +16 -14
  636. package/lib/checkbox-group/index.d.ts +6 -5
  637. package/lib/checkbox-group/types.d.ts +2 -1
  638. package/lib/circle/Circle.d.ts +50 -14
  639. package/lib/circle/Circle.js +22 -39
  640. package/lib/circle/index.d.ts +23 -23
  641. package/lib/col/Col.d.ts +17 -5
  642. package/lib/col/Col.js +10 -14
  643. package/lib/col/index.d.ts +4 -3
  644. package/lib/collapse/Collapse.d.ts +13 -1
  645. package/lib/collapse/Collapse.js +14 -12
  646. package/lib/collapse/index.d.ts +1 -0
  647. package/lib/collapse-item/CollapseItem.d.ts +5 -5
  648. package/lib/collapse-item/CollapseItem.js +16 -9
  649. package/lib/collapse-item/index.css +1 -1
  650. package/lib/collapse-item/index.d.ts +3 -2
  651. package/lib/collapse-item/index.less +1 -1
  652. package/lib/collapse-item/var.less +3 -3
  653. package/lib/composables/on-popup-reopen.js +1 -1
  654. package/lib/composables/use-lock-scroll.js +2 -2
  655. package/lib/composables/use-placeholder.d.ts +1 -1
  656. package/lib/composables/use-route.js +1 -1
  657. package/lib/config-provider/ConfigProvider.d.ts +14 -5
  658. package/lib/config-provider/ConfigProvider.js +11 -12
  659. package/lib/config-provider/index.d.ts +6 -5
  660. package/lib/contact-card/ContactCard.d.ts +19 -5
  661. package/lib/contact-card/ContactCard.js +13 -13
  662. package/lib/contact-card/index.css +1 -1
  663. package/lib/contact-card/index.d.ts +6 -6
  664. package/lib/contact-card/index.less +2 -2
  665. package/lib/contact-edit/ContactEdit.d.ts +17 -1
  666. package/lib/contact-edit/ContactEdit.js +21 -23
  667. package/lib/contact-edit/index.d.ts +1 -1
  668. package/lib/contact-edit/style/index.js +0 -10
  669. package/lib/contact-edit/style/less.js +0 -10
  670. package/lib/contact-list/ContactList.d.ts +8 -1
  671. package/lib/contact-list/ContactList.js +12 -9
  672. package/lib/contact-list/index.css +1 -1
  673. package/lib/contact-list/index.d.ts +1 -1
  674. package/lib/contact-list/index.less +1 -1
  675. package/lib/count-down/CountDown.d.ts +16 -24
  676. package/lib/count-down/CountDown.js +10 -15
  677. package/lib/count-down/index.d.ts +12 -11
  678. package/lib/count-down/types.d.ts +11 -0
  679. package/lib/count-down/types.js +3 -0
  680. package/lib/coupon/Coupon.d.ts +3 -3
  681. package/lib/coupon/Coupon.js +8 -25
  682. package/lib/coupon/index.css +1 -1
  683. package/lib/coupon/index.d.ts +3 -3
  684. package/lib/coupon/index.less +3 -2
  685. package/lib/coupon/utils.d.ts +3 -0
  686. package/lib/coupon/utils.js +20 -0
  687. package/lib/coupon/var.less +3 -2
  688. package/lib/coupon-cell/CouponCell.d.ts +27 -3
  689. package/lib/coupon-cell/CouponCell.js +16 -20
  690. package/lib/coupon-cell/index.d.ts +2 -1
  691. package/lib/coupon-list/CouponList.d.ts +89 -35
  692. package/lib/coupon-list/CouponList.js +31 -61
  693. package/lib/coupon-list/index.css +1 -1
  694. package/lib/coupon-list/index.d.ts +44 -43
  695. package/lib/coupon-list/index.less +10 -5
  696. package/lib/coupon-list/var.less +1 -1
  697. package/lib/datetime-picker/DatePicker.d.ts +23 -25
  698. package/lib/datetime-picker/DatePicker.js +13 -13
  699. package/lib/datetime-picker/DatetimePicker.d.ts +3 -12
  700. package/lib/datetime-picker/DatetimePicker.js +10 -9
  701. package/lib/datetime-picker/TimePicker.d.ts +16 -16
  702. package/lib/datetime-picker/TimePicker.js +17 -26
  703. package/lib/datetime-picker/index.d.ts +3 -10
  704. package/lib/datetime-picker/utils.d.ts +9 -9
  705. package/lib/datetime-picker/utils.js +9 -9
  706. package/lib/dialog/Dialog.d.ts +60 -9
  707. package/lib/dialog/Dialog.js +31 -37
  708. package/lib/dialog/function-call.d.ts +20 -45
  709. package/lib/dialog/function-call.js +2 -2
  710. package/lib/dialog/index.css +1 -1
  711. package/lib/dialog/index.d.ts +3 -3
  712. package/lib/dialog/index.less +1 -1
  713. package/lib/dialog/types.d.ts +36 -0
  714. package/lib/dialog/types.js +3 -0
  715. package/lib/dialog/var.less +1 -1
  716. package/lib/divider/Divider.d.ts +15 -3
  717. package/lib/divider/Divider.js +11 -12
  718. package/lib/divider/index.css +1 -1
  719. package/lib/divider/index.d.ts +2 -2
  720. package/lib/divider/var.less +1 -1
  721. package/lib/dropdown-item/DropdownItem.d.ts +10 -10
  722. package/lib/dropdown-item/DropdownItem.js +19 -13
  723. package/lib/dropdown-item/index.d.ts +7 -5
  724. package/lib/dropdown-menu/DropdownMenu.d.ts +21 -21
  725. package/lib/dropdown-menu/DropdownMenu.js +14 -17
  726. package/lib/dropdown-menu/index.css +1 -1
  727. package/lib/dropdown-menu/index.d.ts +12 -10
  728. package/lib/dropdown-menu/index.less +1 -9
  729. package/lib/dropdown-menu/var.less +2 -2
  730. package/lib/empty/Empty.d.ts +13 -3
  731. package/lib/empty/Empty.js +12 -12
  732. package/lib/empty/Network.js +8 -27
  733. package/lib/empty/index.css +1 -1
  734. package/lib/empty/index.d.ts +5 -4
  735. package/lib/empty/var.less +1 -1
  736. package/lib/field/Field.d.ts +83 -81
  737. package/lib/field/Field.js +63 -62
  738. package/lib/field/index.css +1 -1
  739. package/lib/field/index.d.ts +40 -38
  740. package/lib/field/utils.d.ts +2 -2
  741. package/lib/field/utils.js +13 -10
  742. package/lib/field/var.less +3 -3
  743. package/lib/form/Form.d.ts +13 -13
  744. package/lib/form/Form.js +10 -12
  745. package/lib/form/index.d.ts +9 -7
  746. package/lib/grid/Grid.d.ts +3 -2
  747. package/lib/grid/Grid.js +9 -11
  748. package/lib/grid/index.d.ts +1 -1
  749. package/lib/grid-item/GridItem.d.ts +16 -2
  750. package/lib/grid-item/GridItem.js +15 -13
  751. package/lib/grid-item/index.css +1 -1
  752. package/lib/grid-item/index.d.ts +3 -2
  753. package/lib/grid-item/index.less +1 -1
  754. package/lib/grid-item/var.less +1 -1
  755. package/lib/icon/Icon.d.ts +18 -5
  756. package/lib/icon/Icon.js +16 -18
  757. package/lib/icon/index.css +1 -1
  758. package/lib/icon/index.d.ts +6 -5
  759. package/lib/image/Image.d.ts +39 -10
  760. package/lib/image/Image.js +40 -54
  761. package/lib/image/index.css +1 -1
  762. package/lib/image/index.d.ts +12 -12
  763. package/lib/image/index.less +1 -1
  764. package/lib/image/var.less +1 -1
  765. package/lib/image-preview/ImagePreview.d.ts +54 -54
  766. package/lib/image-preview/ImagePreview.js +21 -42
  767. package/lib/image-preview/ImagePreviewItem.js +9 -22
  768. package/lib/image-preview/function-call.d.ts +31 -31
  769. package/lib/image-preview/function-call.js +7 -3
  770. package/lib/image-preview/index.css +1 -1
  771. package/lib/image-preview/index.d.ts +2 -0
  772. package/lib/image-preview/index.less +1 -6
  773. package/lib/image-preview/var.less +0 -1
  774. package/lib/index-anchor/IndexAnchor.d.ts +5 -0
  775. package/lib/index-anchor/IndexAnchor.js +11 -9
  776. package/lib/index-anchor/index.css +1 -1
  777. package/lib/index-anchor/index.d.ts +1 -0
  778. package/lib/index-anchor/index.less +2 -2
  779. package/lib/index-anchor/var.less +1 -1
  780. package/lib/index-bar/IndexBar.d.ts +2 -2
  781. package/lib/index-bar/IndexBar.js +10 -23
  782. package/lib/index-bar/index.d.ts +2 -0
  783. package/lib/index.css +1 -1
  784. package/lib/index.d.ts +1 -1
  785. package/lib/index.js +3 -2
  786. package/lib/index.less +1 -1
  787. package/lib/list/List.d.ts +20 -20
  788. package/lib/list/List.js +10 -15
  789. package/lib/list/index.css +1 -1
  790. package/lib/list/index.d.ts +12 -10
  791. package/lib/list/var.less +1 -1
  792. package/lib/loading/Loading.d.ts +17 -5
  793. package/lib/loading/Loading.js +13 -14
  794. package/lib/loading/index.css +1 -1
  795. package/lib/loading/index.d.ts +6 -6
  796. package/lib/loading/var.less +1 -1
  797. package/lib/locale/index.js +5 -1
  798. package/lib/locale/lang/de-DE-formal.d.ts +0 -1
  799. package/lib/locale/lang/de-DE-formal.js +0 -1
  800. package/lib/locale/lang/de-DE.d.ts +0 -1
  801. package/lib/locale/lang/de-DE.js +0 -1
  802. package/lib/locale/lang/en-US.d.ts +0 -1
  803. package/lib/locale/lang/en-US.js +0 -1
  804. package/lib/locale/lang/es-ES.d.ts +0 -1
  805. package/lib/locale/lang/es-ES.js +0 -1
  806. package/lib/locale/lang/fr-FR.d.ts +0 -1
  807. package/lib/locale/lang/fr-FR.js +0 -1
  808. package/lib/locale/lang/ja-JP.d.ts +0 -1
  809. package/lib/locale/lang/ja-JP.js +0 -1
  810. package/lib/locale/lang/nb-NO.d.ts +0 -1
  811. package/lib/locale/lang/nb-NO.js +0 -1
  812. package/lib/locale/lang/ro-RO.d.ts +0 -1
  813. package/lib/locale/lang/ro-RO.js +0 -1
  814. package/lib/locale/lang/ru-RU.d.ts +0 -1
  815. package/lib/locale/lang/ru-RU.js +0 -1
  816. package/lib/locale/lang/th-TH.d.ts +0 -1
  817. package/lib/locale/lang/th-TH.js +0 -1
  818. package/lib/locale/lang/tr-TR.d.ts +0 -1
  819. package/lib/locale/lang/tr-TR.js +0 -1
  820. package/lib/locale/lang/zh-CN.d.ts +0 -1
  821. package/lib/locale/lang/zh-CN.js +0 -1
  822. package/lib/locale/lang/zh-HK.d.ts +0 -1
  823. package/lib/locale/lang/zh-HK.js +0 -1
  824. package/lib/locale/lang/zh-TW.d.ts +0 -1
  825. package/lib/locale/lang/zh-TW.js +0 -1
  826. package/lib/nav-bar/NavBar.d.ts +16 -0
  827. package/lib/nav-bar/NavBar.js +19 -17
  828. package/lib/nav-bar/index.css +1 -1
  829. package/lib/nav-bar/index.d.ts +1 -0
  830. package/lib/nav-bar/index.less +1 -5
  831. package/lib/nav-bar/var.less +1 -1
  832. package/lib/notice-bar/NoticeBar.d.ts +19 -19
  833. package/lib/notice-bar/NoticeBar.js +9 -14
  834. package/lib/notice-bar/index.css +1 -1
  835. package/lib/notice-bar/index.d.ts +14 -12
  836. package/lib/notice-bar/index.less +1 -1
  837. package/lib/notify/Notify.d.ts +52 -13
  838. package/lib/notify/Notify.js +21 -16
  839. package/lib/notify/function-call.d.ts +12 -23
  840. package/lib/notify/function-call.js +18 -22
  841. package/lib/notify/index.css +1 -1
  842. package/lib/notify/index.d.ts +3 -3
  843. package/lib/notify/index.less +4 -4
  844. package/lib/notify/types.d.ts +20 -0
  845. package/lib/notify/types.js +3 -0
  846. package/lib/number-keyboard/NumberKeyboard.d.ts +58 -11
  847. package/lib/number-keyboard/NumberKeyboard.js +29 -36
  848. package/lib/number-keyboard/NumberKeyboardKey.js +6 -5
  849. package/lib/number-keyboard/index.css +1 -1
  850. package/lib/number-keyboard/index.d.ts +16 -16
  851. package/lib/number-keyboard/index.less +3 -7
  852. package/lib/number-keyboard/var.less +1 -1
  853. package/lib/overlay/Overlay.d.ts +13 -1
  854. package/lib/overlay/Overlay.js +17 -14
  855. package/lib/overlay/index.css +1 -1
  856. package/lib/overlay/index.d.ts +1 -0
  857. package/lib/overlay/index.less +1 -1
  858. package/lib/pagination/Pagination.d.ts +46 -16
  859. package/lib/pagination/Pagination.js +23 -40
  860. package/lib/pagination/index.css +1 -1
  861. package/lib/pagination/index.d.ts +19 -19
  862. package/lib/pagination/index.less +1 -1
  863. package/lib/pagination/var.less +1 -1
  864. package/lib/password-input/PasswordInput.d.ts +6 -6
  865. package/lib/password-input/PasswordInput.js +9 -13
  866. package/lib/password-input/index.css +1 -1
  867. package/lib/password-input/index.d.ts +6 -6
  868. package/lib/password-input/index.less +3 -3
  869. package/lib/password-input/var.less +3 -3
  870. package/lib/picker/Picker.d.ts +63 -24
  871. package/lib/picker/Picker.js +25 -40
  872. package/lib/picker/PickerColumn.d.ts +15 -16
  873. package/lib/picker/PickerColumn.js +29 -52
  874. package/lib/picker/index.css +1 -1
  875. package/lib/picker/index.d.ts +24 -22
  876. package/lib/picker/index.less +4 -12
  877. package/lib/picker/types.d.ts +2 -2
  878. package/lib/picker/var.less +9 -3
  879. package/lib/popover/Popover.d.ts +69 -29
  880. package/lib/popover/Popover.js +34 -48
  881. package/lib/popover/index.css +1 -1
  882. package/lib/popover/index.d.ts +35 -34
  883. package/lib/popover/index.less +2 -2
  884. package/lib/popover/types.d.ts +11 -0
  885. package/lib/popover/types.js +3 -0
  886. package/lib/popover/var.less +3 -3
  887. package/lib/popup/Popup.d.ts +64 -18
  888. package/lib/popup/Popup.js +21 -30
  889. package/lib/popup/index.css +1 -1
  890. package/lib/popup/index.d.ts +16 -16
  891. package/lib/popup/index.less +1 -6
  892. package/lib/popup/shared.js +3 -3
  893. package/lib/popup/var.less +1 -2
  894. package/lib/progress/Progress.d.ts +2 -2
  895. package/lib/progress/Progress.js +11 -7
  896. package/lib/progress/index.css +1 -1
  897. package/lib/progress/index.d.ts +2 -0
  898. package/lib/progress/index.less +10 -1
  899. package/lib/progress/var.less +1 -0
  900. package/lib/pull-refresh/PullRefresh.d.ts +29 -9
  901. package/lib/pull-refresh/PullRefresh.js +19 -29
  902. package/lib/pull-refresh/index.css +1 -1
  903. package/lib/pull-refresh/index.d.ts +10 -12
  904. package/lib/pull-refresh/var.less +1 -1
  905. package/lib/radio/Radio.d.ts +14 -9
  906. package/lib/radio/Radio.js +5 -4
  907. package/lib/radio/index.css +1 -1
  908. package/lib/radio/index.d.ts +6 -5
  909. package/lib/radio/var.less +1 -1
  910. package/lib/radio-group/RadioGroup.d.ts +4 -2
  911. package/lib/radio-group/RadioGroup.js +8 -7
  912. package/lib/radio-group/index.d.ts +1 -0
  913. package/lib/rate/Rate.d.ts +47 -14
  914. package/lib/rate/Rate.js +23 -32
  915. package/lib/rate/index.d.ts +22 -21
  916. package/lib/row/Row.d.ts +22 -5
  917. package/lib/row/Row.js +12 -16
  918. package/lib/row/index.d.ts +8 -8
  919. package/lib/search/Search.d.ts +72 -64
  920. package/lib/search/Search.js +14 -20
  921. package/lib/search/index.css +1 -1
  922. package/lib/search/index.d.ts +43 -35
  923. package/lib/search/index.less +2 -2
  924. package/lib/search/var.less +1 -1
  925. package/lib/share-sheet/ShareSheet.d.ts +64 -10
  926. package/lib/share-sheet/ShareSheet.js +21 -22
  927. package/lib/share-sheet/index.css +1 -1
  928. package/lib/share-sheet/index.d.ts +15 -8
  929. package/lib/share-sheet/index.less +0 -4
  930. package/lib/share-sheet/var.less +3 -3
  931. package/lib/sidebar/Sidebar.d.ts +8 -1
  932. package/lib/sidebar/Sidebar.js +9 -10
  933. package/lib/sidebar/index.d.ts +1 -0
  934. package/lib/sidebar-item/SidebarItem.d.ts +12 -0
  935. package/lib/sidebar-item/SidebarItem.js +12 -10
  936. package/lib/sidebar-item/index.css +1 -1
  937. package/lib/sidebar-item/index.d.ts +1 -0
  938. package/lib/sidebar-item/index.less +1 -1
  939. package/lib/sidebar-item/var.less +2 -2
  940. package/lib/skeleton/Skeleton.d.ts +36 -7
  941. package/lib/skeleton/Skeleton.js +22 -25
  942. package/lib/skeleton/index.css +1 -1
  943. package/lib/skeleton/index.d.ts +10 -9
  944. package/lib/skeleton/index.less +2 -2
  945. package/lib/slider/Slider.d.ts +37 -9
  946. package/lib/slider/Slider.js +36 -43
  947. package/lib/slider/index.css +1 -1
  948. package/lib/slider/index.d.ts +17 -16
  949. package/lib/slider/index.less +3 -3
  950. package/lib/step/Step.js +4 -3
  951. package/lib/step/index.css +1 -1
  952. package/lib/step/index.less +1 -1
  953. package/lib/step/var.less +1 -1
  954. package/lib/stepper/Stepper.d.ts +64 -12
  955. package/lib/stepper/Stepper.js +45 -55
  956. package/lib/stepper/index.css +1 -1
  957. package/lib/stepper/index.d.ts +26 -27
  958. package/lib/stepper/index.less +6 -21
  959. package/lib/stepper/var.less +1 -2
  960. package/lib/steps/Steps.d.ts +23 -22
  961. package/lib/steps/Steps.js +11 -19
  962. package/lib/steps/index.css +1 -1
  963. package/lib/steps/index.d.ts +11 -10
  964. package/lib/steps/var.less +1 -1
  965. package/lib/sticky/Sticky.d.ts +21 -4
  966. package/lib/sticky/Sticky.js +13 -20
  967. package/lib/sticky/index.d.ts +6 -6
  968. package/lib/style/base.css +1 -1
  969. package/lib/style/base.less +4 -0
  970. package/lib/style/css-variables.css +1 -1
  971. package/lib/style/css-variables.less +3 -1
  972. package/lib/style/mixins/hairline.less +3 -3
  973. package/lib/style/var.less +5 -3
  974. package/lib/submit-bar/SubmitBar.d.ts +40 -11
  975. package/lib/submit-bar/SubmitBar.js +23 -29
  976. package/lib/submit-bar/index.css +1 -1
  977. package/lib/submit-bar/index.d.ts +14 -14
  978. package/lib/submit-bar/index.less +3 -3
  979. package/lib/submit-bar/var.less +3 -3
  980. package/lib/swipe/Swipe.d.ts +32 -32
  981. package/lib/swipe/Swipe.js +35 -29
  982. package/lib/swipe/index.d.ts +20 -18
  983. package/lib/swipe-cell/SwipeCell.d.ts +9 -9
  984. package/lib/swipe-cell/SwipeCell.js +17 -16
  985. package/lib/swipe-cell/index.d.ts +7 -5
  986. package/lib/swipe-item/SwipeItem.js +4 -3
  987. package/lib/switch/Switch.d.ts +18 -0
  988. package/lib/switch/Switch.js +22 -19
  989. package/lib/switch/index.css +1 -1
  990. package/lib/switch/index.d.ts +1 -0
  991. package/lib/switch/index.less +3 -3
  992. package/lib/switch/var.less +1 -1
  993. package/lib/tab/Tab.d.ts +19 -1
  994. package/lib/tab/Tab.js +16 -14
  995. package/lib/tab/index.d.ts +1 -0
  996. package/lib/tabbar/Tabbar.d.ts +5 -4
  997. package/lib/tabbar/Tabbar.js +10 -13
  998. package/lib/tabbar/index.css +1 -1
  999. package/lib/tabbar/index.d.ts +3 -2
  1000. package/lib/tabbar/index.less +1 -1
  1001. package/lib/tabbar/var.less +1 -1
  1002. package/lib/tabbar-item/TabbarItem.d.ts +13 -0
  1003. package/lib/tabbar-item/TabbarItem.js +14 -12
  1004. package/lib/tabbar-item/index.css +1 -1
  1005. package/lib/tabbar-item/index.d.ts +1 -0
  1006. package/lib/tabbar-item/var.less +1 -1
  1007. package/lib/tabs/Tabs.d.ts +40 -40
  1008. package/lib/tabs/Tabs.js +31 -37
  1009. package/lib/tabs/TabsContent.d.ts +7 -7
  1010. package/lib/tabs/TabsContent.js +8 -16
  1011. package/lib/tabs/TabsTitle.js +1 -1
  1012. package/lib/tabs/index.css +1 -1
  1013. package/lib/tabs/index.d.ts +25 -23
  1014. package/lib/tabs/index.less +2 -2
  1015. package/lib/tabs/utils.js +1 -4
  1016. package/lib/tabs/var.less +2 -2
  1017. package/lib/tag/Tag.d.ts +25 -6
  1018. package/lib/tag/Tag.js +18 -18
  1019. package/lib/tag/index.css +1 -1
  1020. package/lib/tag/index.d.ts +8 -7
  1021. package/lib/tag/index.less +6 -6
  1022. package/lib/tag/var.less +1 -1
  1023. package/lib/toast/Toast.d.ts +44 -13
  1024. package/lib/toast/Toast.js +28 -44
  1025. package/lib/toast/function-call.d.ts +2 -25
  1026. package/lib/toast/function-call.js +10 -2
  1027. package/lib/toast/index.css +1 -1
  1028. package/lib/toast/index.d.ts +3 -3
  1029. package/lib/toast/index.less +1 -1
  1030. package/lib/toast/types.d.ts +32 -0
  1031. package/lib/toast/types.js +3 -0
  1032. package/lib/tree-select/TreeSelect.d.ts +35 -8
  1033. package/lib/tree-select/TreeSelect.js +18 -30
  1034. package/lib/tree-select/index.css +1 -1
  1035. package/lib/tree-select/index.d.ts +11 -11
  1036. package/lib/tree-select/index.less +2 -2
  1037. package/lib/tree-select/var.less +1 -1
  1038. package/lib/uploader/Uploader.d.ts +66 -66
  1039. package/lib/uploader/Uploader.js +26 -40
  1040. package/lib/uploader/UploaderPreviewItem.d.ts +6 -6
  1041. package/lib/uploader/UploaderPreviewItem.js +12 -14
  1042. package/lib/uploader/index.css +1 -1
  1043. package/lib/uploader/index.d.ts +47 -45
  1044. package/lib/uploader/index.less +4 -5
  1045. package/lib/uploader/utils.d.ts +3 -3
  1046. package/lib/uploader/utils.js +11 -14
  1047. package/lib/uploader/var.less +1 -1
  1048. package/{es/utils/base.d.ts → lib/utils/basic.d.ts} +1 -6
  1049. package/lib/utils/{base.js → basic.js} +4 -11
  1050. package/lib/utils/constant.d.ts +1 -0
  1051. package/lib/utils/constant.js +3 -1
  1052. package/{es/utils/create/bem.d.ts → lib/utils/create.d.ts} +7 -4
  1053. package/lib/utils/create.js +73 -0
  1054. package/lib/utils/deep-assign.d.ts +1 -1
  1055. package/lib/utils/deep-assign.js +1 -1
  1056. package/lib/utils/deep-clone.js +1 -1
  1057. package/{es/utils/dom/scroll.d.ts → lib/utils/dom.d.ts} +4 -2
  1058. package/lib/utils/{dom/scroll.js → dom.js} +42 -26
  1059. package/lib/utils/format.d.ts +12 -0
  1060. package/lib/utils/format.js +169 -0
  1061. package/lib/utils/index.d.ts +4 -7
  1062. package/lib/utils/index.js +28 -52
  1063. package/lib/utils/interceptor.d.ts +3 -4
  1064. package/lib/utils/interceptor.js +9 -8
  1065. package/lib/utils/mount-component.js +5 -3
  1066. package/lib/utils/props.d.ts +31 -0
  1067. package/lib/utils/props.js +53 -0
  1068. package/lib/utils/validate.d.ts +7 -7
  1069. package/lib/utils/validate.js +24 -29
  1070. package/lib/utils/with-install.js +2 -2
  1071. package/lib/vant.es.js +4123 -4691
  1072. package/lib/vant.es.min.js +15302 -1
  1073. package/lib/vant.js +4124 -4692
  1074. package/lib/vant.min.js +1 -1
  1075. package/package.json +7 -7
  1076. package/vetur/attributes.json +469 -453
  1077. package/vetur/tags.json +167 -163
  1078. package/vetur/web-types.json +1589 -1537
  1079. package/changelog.generated.md +0 -107
  1080. package/es/utils/create/bem.js +0 -35
  1081. package/es/utils/create/index.d.ts +0 -1
  1082. package/es/utils/create/index.js +0 -6
  1083. package/es/utils/create/translate.d.ts +0 -2
  1084. package/es/utils/create/translate.js +0 -12
  1085. package/es/utils/dom/event.d.ts +0 -3
  1086. package/es/utils/dom/event.js +0 -18
  1087. package/es/utils/dom/style.d.ts +0 -2
  1088. package/es/utils/dom/style.js +0 -16
  1089. package/es/utils/format/number.d.ts +0 -4
  1090. package/es/utils/format/number.js +0 -40
  1091. package/es/utils/format/string.d.ts +0 -3
  1092. package/es/utils/format/string.js +0 -16
  1093. package/es/utils/format/unit.d.ts +0 -5
  1094. package/es/utils/format/unit.js +0 -76
  1095. package/lib/utils/create/bem.js +0 -40
  1096. package/lib/utils/create/index.d.ts +0 -1
  1097. package/lib/utils/create/index.js +0 -13
  1098. package/lib/utils/create/translate.d.ts +0 -2
  1099. package/lib/utils/create/translate.js +0 -24
  1100. package/lib/utils/dom/event.d.ts +0 -3
  1101. package/lib/utils/dom/event.js +0 -27
  1102. package/lib/utils/dom/style.d.ts +0 -2
  1103. package/lib/utils/dom/style.js +0 -22
  1104. package/lib/utils/format/number.d.ts +0 -4
  1105. package/lib/utils/format/number.js +0 -48
  1106. package/lib/utils/format/string.d.ts +0 -3
  1107. package/lib/utils/format/string.js +0 -25
  1108. package/lib/utils/format/unit.d.ts +0 -5
  1109. package/lib/utils/format/unit.js +0 -89
@@ -2,10 +2,247 @@
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.3",
5
+ "version": "3.2.7",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
9
+ {
10
+ "name": "van-action-bar",
11
+ "slots": [],
12
+ "events": [],
13
+ "attributes": [
14
+ {
15
+ "name": "safe-area-inset-bottom",
16
+ "default": "`true`",
17
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
18
+ "options": [],
19
+ "value": {
20
+ "type": "boolean",
21
+ "kind": "expression"
22
+ }
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "name": "van-action-bar-icon",
28
+ "slots": [
29
+ {
30
+ "name": "default",
31
+ "description": "文本内容"
32
+ },
33
+ {
34
+ "name": "icon",
35
+ "description": "自定义图标"
36
+ }
37
+ ],
38
+ "events": [],
39
+ "attributes": [
40
+ {
41
+ "name": "text",
42
+ "default": "-",
43
+ "description": "按钮文字",
44
+ "options": [],
45
+ "value": {
46
+ "type": "string",
47
+ "kind": "expression"
48
+ }
49
+ },
50
+ {
51
+ "name": "icon",
52
+ "default": "-",
53
+ "description": "图标",
54
+ "options": [],
55
+ "value": {
56
+ "type": "string",
57
+ "kind": "expression"
58
+ }
59
+ },
60
+ {
61
+ "name": "color",
62
+ "default": "`#323233`",
63
+ "description": "图标颜色",
64
+ "options": [],
65
+ "value": {
66
+ "type": "string",
67
+ "kind": "expression"
68
+ }
69
+ },
70
+ {
71
+ "name": "icon-class",
72
+ "default": "object_",
73
+ "description": "图标额外类名",
74
+ "options": [
75
+ "-"
76
+ ],
77
+ "value": {
78
+ "type": "string | Array \\",
79
+ "kind": "expression"
80
+ }
81
+ },
82
+ {
83
+ "name": "icon-prefix",
84
+ "default": "`van-icon`",
85
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
86
+ "options": [],
87
+ "value": {
88
+ "type": "string",
89
+ "kind": "expression"
90
+ }
91
+ },
92
+ {
93
+ "name": "dot",
94
+ "default": "`false`",
95
+ "description": "是否显示图标右上角小红点",
96
+ "options": [],
97
+ "value": {
98
+ "type": "boolean",
99
+ "kind": "expression"
100
+ }
101
+ },
102
+ {
103
+ "name": "badge",
104
+ "default": "-",
105
+ "description": "图标右上角徽标的内容",
106
+ "options": [],
107
+ "value": {
108
+ "type": "number | string",
109
+ "kind": "expression"
110
+ }
111
+ },
112
+ {
113
+ "name": "url",
114
+ "default": "-",
115
+ "description": "点击后跳转的链接地址",
116
+ "options": [],
117
+ "value": {
118
+ "type": "string",
119
+ "kind": "expression"
120
+ }
121
+ },
122
+ {
123
+ "name": "to",
124
+ "default": "-",
125
+ "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
126
+ "options": [],
127
+ "value": {
128
+ "type": "string | object",
129
+ "kind": "expression"
130
+ }
131
+ },
132
+ {
133
+ "name": "replace",
134
+ "default": "`false`",
135
+ "description": "是否在跳转时替换当前页面历史",
136
+ "options": [],
137
+ "value": {
138
+ "type": "boolean",
139
+ "kind": "expression"
140
+ }
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "name": "van-action-bar-button",
146
+ "slots": [
147
+ {
148
+ "name": "default",
149
+ "description": "按钮显示内容"
150
+ }
151
+ ],
152
+ "events": [],
153
+ "attributes": [
154
+ {
155
+ "name": "text",
156
+ "default": "-",
157
+ "description": "按钮文字",
158
+ "options": [],
159
+ "value": {
160
+ "type": "string",
161
+ "kind": "expression"
162
+ }
163
+ },
164
+ {
165
+ "name": "type",
166
+ "default": "`default`",
167
+ "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
168
+ "options": [],
169
+ "value": {
170
+ "type": "string",
171
+ "kind": "expression"
172
+ }
173
+ },
174
+ {
175
+ "name": "color",
176
+ "default": "-",
177
+ "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
178
+ "options": [],
179
+ "value": {
180
+ "type": "string",
181
+ "kind": "expression"
182
+ }
183
+ },
184
+ {
185
+ "name": "icon",
186
+ "default": "-",
187
+ "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
188
+ "options": [],
189
+ "value": {
190
+ "type": "string",
191
+ "kind": "expression"
192
+ }
193
+ },
194
+ {
195
+ "name": "disabled",
196
+ "default": "`false`",
197
+ "description": "是否禁用按钮",
198
+ "options": [],
199
+ "value": {
200
+ "type": "boolean",
201
+ "kind": "expression"
202
+ }
203
+ },
204
+ {
205
+ "name": "loading",
206
+ "default": "`false`",
207
+ "description": "是否显示为加载状态",
208
+ "options": [],
209
+ "value": {
210
+ "type": "boolean",
211
+ "kind": "expression"
212
+ }
213
+ },
214
+ {
215
+ "name": "url",
216
+ "default": "-",
217
+ "description": "点击后跳转的链接地址",
218
+ "options": [],
219
+ "value": {
220
+ "type": "string",
221
+ "kind": "expression"
222
+ }
223
+ },
224
+ {
225
+ "name": "to",
226
+ "default": "-",
227
+ "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
228
+ "options": [],
229
+ "value": {
230
+ "type": "string | object",
231
+ "kind": "expression"
232
+ }
233
+ },
234
+ {
235
+ "name": "replace",
236
+ "default": "`false`",
237
+ "description": "是否在跳转时替换当前页面历史",
238
+ "options": [],
239
+ "value": {
240
+ "type": "boolean",
241
+ "kind": "expression"
242
+ }
243
+ }
244
+ ]
245
+ },
9
246
  {
10
247
  "name": "van-action-sheet",
11
248
  "slots": [
@@ -197,7 +434,7 @@
197
434
  },
198
435
  {
199
436
  "name": "close-on-popstate",
200
- "default": "`false`",
437
+ "default": "`true`",
201
438
  "description": "是否在页面回退时自动关闭",
202
439
  "options": [],
203
440
  "value": {
@@ -258,412 +495,119 @@
258
495
  ]
259
496
  },
260
497
  {
261
- "name": "van-action-bar",
262
- "slots": [],
263
- "events": [],
264
- "attributes": [
265
- {
266
- "name": "safe-area-inset-bottom",
267
- "default": "`true`",
268
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
269
- "options": [],
270
- "value": {
271
- "type": "boolean",
272
- "kind": "expression"
273
- }
274
- }
275
- ]
276
- },
277
- {
278
- "name": "van-action-bar-icon",
279
- "slots": [
498
+ "name": "van-address-list",
499
+ "slots": [
280
500
  {
281
501
  "name": "default",
282
- "description": "文本内容"
283
- },
284
- {
285
- "name": "icon",
286
- "description": "自定义图标"
287
- }
288
- ],
289
- "events": [],
290
- "attributes": [
291
- {
292
- "name": "text",
293
- "default": "-",
294
- "description": "按钮文字",
295
- "options": [],
296
- "value": {
297
- "type": "string",
298
- "kind": "expression"
299
- }
300
- },
301
- {
302
- "name": "icon",
303
- "default": "-",
304
- "description": "图标",
305
- "options": [],
306
- "value": {
307
- "type": "string",
308
- "kind": "expression"
309
- }
310
- },
311
- {
312
- "name": "color",
313
- "default": "`#323233`",
314
- "description": "图标颜色",
315
- "options": [],
316
- "value": {
317
- "type": "string",
318
- "kind": "expression"
319
- }
320
- },
321
- {
322
- "name": "icon-class",
323
- "default": "object_",
324
- "description": "图标额外类名",
325
- "options": [
326
- "-"
327
- ],
328
- "value": {
329
- "type": "string | Array \\",
330
- "kind": "expression"
331
- }
332
- },
333
- {
334
- "name": "icon-prefix",
335
- "default": "`van-icon`",
336
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
337
- "options": [],
338
- "value": {
339
- "type": "string",
340
- "kind": "expression"
341
- }
342
- },
343
- {
344
- "name": "dot",
345
- "default": "`false`",
346
- "description": "是否显示图标右上角小红点",
347
- "options": [],
348
- "value": {
349
- "type": "boolean",
350
- "kind": "expression"
351
- }
352
- },
353
- {
354
- "name": "badge",
355
- "default": "-",
356
- "description": "图标右上角徽标的内容",
357
- "options": [],
358
- "value": {
359
- "type": "number | string",
360
- "kind": "expression"
361
- }
362
- },
363
- {
364
- "name": "url",
365
- "default": "-",
366
- "description": "点击后跳转的链接地址",
367
- "options": [],
368
- "value": {
369
- "type": "string",
370
- "kind": "expression"
371
- }
372
- },
373
- {
374
- "name": "to",
375
- "default": "-",
376
- "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
377
- "options": [],
378
- "value": {
379
- "type": "string | object",
380
- "kind": "expression"
381
- }
382
- },
383
- {
384
- "name": "replace",
385
- "default": "`false`",
386
- "description": "是否在跳转时替换当前页面历史",
387
- "options": [],
388
- "value": {
389
- "type": "boolean",
390
- "kind": "expression"
391
- }
392
- }
393
- ]
394
- },
395
- {
396
- "name": "van-action-bar-button",
397
- "slots": [
398
- {
399
- "name": "default",
400
- "description": "按钮显示内容"
401
- }
402
- ],
403
- "events": [],
404
- "attributes": [
405
- {
406
- "name": "text",
407
- "default": "-",
408
- "description": "按钮文字",
409
- "options": [],
410
- "value": {
411
- "type": "string",
412
- "kind": "expression"
413
- }
414
- },
415
- {
416
- "name": "type",
417
- "default": "`default`",
418
- "description": "按钮类型,可选值为 `primary` `info` `warning` `danger`",
419
- "options": [],
420
- "value": {
421
- "type": "string",
422
- "kind": "expression"
423
- }
424
- },
425
- {
426
- "name": "color",
427
- "default": "-",
428
- "description": "按钮颜色,支持传入 `linear-gradient` 渐变色",
429
- "options": [],
430
- "value": {
431
- "type": "string",
432
- "kind": "expression"
433
- }
434
- },
435
- {
436
- "name": "icon",
437
- "default": "-",
438
- "description": "左侧[图标名称](#/zh-CN/icon)或图片链接",
439
- "options": [],
440
- "value": {
441
- "type": "string",
442
- "kind": "expression"
443
- }
444
- },
445
- {
446
- "name": "disabled",
447
- "default": "`false`",
448
- "description": "是否禁用按钮",
449
- "options": [],
450
- "value": {
451
- "type": "boolean",
452
- "kind": "expression"
453
- }
454
- },
455
- {
456
- "name": "loading",
457
- "default": "`false`",
458
- "description": "是否显示为加载状态",
459
- "options": [],
460
- "value": {
461
- "type": "boolean",
462
- "kind": "expression"
463
- }
464
- },
465
- {
466
- "name": "url",
467
- "default": "-",
468
- "description": "点击后跳转的链接地址",
469
- "options": [],
470
- "value": {
471
- "type": "string",
472
- "kind": "expression"
473
- }
474
- },
475
- {
476
- "name": "to",
477
- "default": "-",
478
- "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
479
- "options": [],
480
- "value": {
481
- "type": "string | object",
482
- "kind": "expression"
483
- }
484
- },
485
- {
486
- "name": "replace",
487
- "default": "`false`",
488
- "description": "是否在跳转时替换当前页面历史",
489
- "options": [],
490
- "value": {
491
- "type": "boolean",
492
- "kind": "expression"
493
- }
494
- }
495
- ]
496
- },
497
- {
498
- "name": "van-area",
499
- "slots": [
500
- {
501
- "name": "toolbar",
502
- "description": "自定义整个顶部栏的内容"
503
- },
504
- {
505
- "name": "title",
506
- "description": "自定义标题内容"
507
- },
508
- {
509
- "name": "confirm",
510
- "description": "自定义确认按钮内容"
502
+ "description": "在列表下方插入内容"
511
503
  },
512
504
  {
513
- "name": "cancel",
514
- "description": "自定义取消按钮内容"
505
+ "name": "top",
506
+ "description": "在顶部插入内容"
515
507
  },
516
508
  {
517
- "name": "columns-top",
518
- "description": "自定义选项上方内容"
509
+ "name": "item-bottom",
510
+ "description": "在列表项底部插入内容"
519
511
  },
520
512
  {
521
- "name": "columns-bottom",
522
- "description": "自定义选项下方内容"
513
+ "name": "tag",
514
+ "description": "自定义列表项标签内容"
523
515
  }
524
516
  ],
525
517
  "events": [
526
518
  {
527
- "name": "confirm",
528
- "description": "点击完成按钮时触发"
529
- },
530
- {
531
- "name": "cancel",
532
- "description": "点击取消按钮时触发"
533
- },
534
- {
535
- "name": "change",
536
- "description": "选项改变时触发"
537
- }
538
- ],
539
- "attributes": [
540
- {
541
- "name": "value",
542
- "default": "-",
543
- "description": "当前选中项对应的地区码",
544
- "options": [],
545
- "value": {
546
- "type": "string",
547
- "kind": "expression"
548
- }
519
+ "name": "add",
520
+ "description": "点击新增按钮时触发"
549
521
  },
550
522
  {
551
- "name": "title",
552
- "default": "-",
553
- "description": "顶部栏标题",
554
- "options": [],
555
- "value": {
556
- "type": "string",
557
- "kind": "expression"
558
- }
523
+ "name": "edit",
524
+ "description": "点击编辑按钮时触发"
559
525
  },
560
526
  {
561
- "name": "confirm-button-text",
562
- "default": "`确认`",
563
- "description": "确认按钮文字",
564
- "options": [],
565
- "value": {
566
- "type": "string",
567
- "kind": "expression"
568
- }
527
+ "name": "select",
528
+ "description": "切换选中的地址时触发"
569
529
  },
570
530
  {
571
- "name": "cancel-button-text",
572
- "default": "`取消`",
573
- "description": "取消按钮文字",
574
- "options": [],
575
- "value": {
576
- "type": "string",
577
- "kind": "expression"
578
- }
531
+ "name": "edit-disabled",
532
+ "description": "编辑不可配送的地址时触发"
579
533
  },
580
534
  {
581
- "name": "area-list",
582
- "default": "-",
583
- "description": "省市区数据,格式见下方",
584
- "options": [],
585
- "value": {
586
- "type": "object",
587
- "kind": "expression"
588
- }
535
+ "name": "select-disabled",
536
+ "description": "选中不可配送的地址时触发"
589
537
  },
590
538
  {
591
- "name": "columns-placeholder",
592
- "default": "`[]`",
593
- "description": "列占位提示文字",
594
- "options": [],
595
- "value": {
596
- "type": "string[]",
597
- "kind": "expression"
598
- }
599
- },
539
+ "name": "click-item",
540
+ "description": "点击任意地址时触发"
541
+ }
542
+ ],
543
+ "attributes": [
600
544
  {
601
- "name": "loading",
602
- "default": "`false`",
603
- "description": "是否显示加载状态",
545
+ "name": "v-model",
546
+ "default": "-",
547
+ "description": "当前选中地址的 id",
604
548
  "options": [],
605
549
  "value": {
606
- "type": "boolean",
550
+ "type": "string",
607
551
  "kind": "expression"
608
552
  }
609
553
  },
610
554
  {
611
- "name": "readonly",
612
- "default": "`false`",
613
- "description": "是否为只读状态,只读状态下无法切换选项",
555
+ "name": "list",
556
+ "default": "`[]`",
557
+ "description": "地址列表",
614
558
  "options": [],
615
559
  "value": {
616
- "type": "boolean",
560
+ "type": "AddressListAddress[]",
617
561
  "kind": "expression"
618
562
  }
619
563
  },
620
564
  {
621
- "name": "item-height",
622
- "default": "`44`",
623
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
565
+ "name": "disabled-list",
566
+ "default": "`[]`",
567
+ "description": "不可配送地址列表",
624
568
  "options": [],
625
569
  "value": {
626
- "type": "number | string",
570
+ "type": "AddressListAddress[]",
627
571
  "kind": "expression"
628
572
  }
629
573
  },
630
574
  {
631
- "name": "columns-num",
632
- "default": "`3`",
633
- "description": "显示列数,3-省市区,2-省市,1-省",
575
+ "name": "disabled-text",
576
+ "default": "-",
577
+ "description": "不可配送提示文案",
634
578
  "options": [],
635
579
  "value": {
636
- "type": "number | string",
580
+ "type": "string",
637
581
  "kind": "expression"
638
582
  }
639
583
  },
640
584
  {
641
- "name": "visible-item-count",
642
- "default": "`6`",
643
- "description": "可见的选项个数",
585
+ "name": "switchable",
586
+ "default": "`true`",
587
+ "description": "是否允许切换地址",
644
588
  "options": [],
645
589
  "value": {
646
- "type": "number | string",
590
+ "type": "boolean",
647
591
  "kind": "expression"
648
592
  }
649
593
  },
650
594
  {
651
- "name": "swipe-duration",
652
- "default": "`1000`",
653
- "description": "快速滑动时惯性滚动的时长,单位 `ms`",
595
+ "name": "add-button-text",
596
+ "default": "`新增地址`",
597
+ "description": "底部按钮文字",
654
598
  "options": [],
655
599
  "value": {
656
- "type": "number | string",
600
+ "type": "string",
657
601
  "kind": "expression"
658
602
  }
659
603
  },
660
604
  {
661
- "name": "is-oversea-code",
605
+ "name": "default-tag-text",
662
606
  "default": "-",
663
- "description": "根据地区码校验海外地址,海外地址会划分至单独的分类",
607
+ "description": "默认地址标签文字",
664
608
  "options": [],
665
609
  "value": {
666
- "type": "() => boolean",
610
+ "type": "string",
667
611
  "kind": "expression"
668
612
  }
669
613
  }
@@ -690,10 +634,6 @@
690
634
  "name": "delete",
691
635
  "description": "确认删除地址时触发"
692
636
  },
693
- {
694
- "name": "cancel-delete",
695
- "description": "取消删除地址时触发"
696
- },
697
637
  {
698
638
  "name": "select-search",
699
639
  "description": "选中搜索结果时触发"
@@ -837,9 +777,174 @@
837
777
  }
838
778
  },
839
779
  {
840
- "name": "save-button-text",
841
- "default": "`保存`",
842
- "description": "保存按钮文字",
780
+ "name": "save-button-text",
781
+ "default": "`保存`",
782
+ "description": "保存按钮文字",
783
+ "options": [],
784
+ "value": {
785
+ "type": "string",
786
+ "kind": "expression"
787
+ }
788
+ },
789
+ {
790
+ "name": "delete-button-text",
791
+ "default": "`删除`",
792
+ "description": "删除按钮文字",
793
+ "options": [],
794
+ "value": {
795
+ "type": "string",
796
+ "kind": "expression"
797
+ }
798
+ },
799
+ {
800
+ "name": "detail-rows",
801
+ "default": "`1`",
802
+ "description": "详细地址输入框行数",
803
+ "options": [],
804
+ "value": {
805
+ "type": "number | string",
806
+ "kind": "expression"
807
+ }
808
+ },
809
+ {
810
+ "name": "detail-maxlength",
811
+ "default": "`200`",
812
+ "description": "详细地址最大长度",
813
+ "options": [],
814
+ "value": {
815
+ "type": "number | string",
816
+ "kind": "expression"
817
+ }
818
+ },
819
+ {
820
+ "name": "is-saving",
821
+ "default": "`false`",
822
+ "description": "是否显示保存按钮加载动画",
823
+ "options": [],
824
+ "value": {
825
+ "type": "boolean",
826
+ "kind": "expression"
827
+ }
828
+ },
829
+ {
830
+ "name": "is-deleting",
831
+ "default": "`false`",
832
+ "description": "是否显示删除按钮加载动画",
833
+ "options": [],
834
+ "value": {
835
+ "type": "boolean",
836
+ "kind": "expression"
837
+ }
838
+ },
839
+ {
840
+ "name": "tel-validator",
841
+ "default": "-",
842
+ "description": "手机号格式校验函数",
843
+ "options": [],
844
+ "value": {
845
+ "type": "string => boolean",
846
+ "kind": "expression"
847
+ }
848
+ },
849
+ {
850
+ "name": "tel-maxlength",
851
+ "default": "-",
852
+ "description": "手机号最大长度",
853
+ "options": [],
854
+ "value": {
855
+ "type": "number | string",
856
+ "kind": "expression"
857
+ }
858
+ },
859
+ {
860
+ "name": "postal-validator",
861
+ "default": "-",
862
+ "description": "邮政编码格式校验函数",
863
+ "options": [],
864
+ "value": {
865
+ "type": "string => boolean",
866
+ "kind": "expression"
867
+ }
868
+ },
869
+ {
870
+ "name": "validator",
871
+ "default": "-",
872
+ "description": "自定义校验函数",
873
+ "options": [],
874
+ "value": {
875
+ "type": "(key, val) => string",
876
+ "kind": "expression"
877
+ }
878
+ }
879
+ ]
880
+ },
881
+ {
882
+ "name": "van-area",
883
+ "slots": [
884
+ {
885
+ "name": "toolbar",
886
+ "description": "自定义整个顶部栏的内容"
887
+ },
888
+ {
889
+ "name": "title",
890
+ "description": "自定义标题内容"
891
+ },
892
+ {
893
+ "name": "confirm",
894
+ "description": "自定义确认按钮内容"
895
+ },
896
+ {
897
+ "name": "cancel",
898
+ "description": "自定义取消按钮内容"
899
+ },
900
+ {
901
+ "name": "columns-top",
902
+ "description": "自定义选项上方内容"
903
+ },
904
+ {
905
+ "name": "columns-bottom",
906
+ "description": "自定义选项下方内容"
907
+ }
908
+ ],
909
+ "events": [
910
+ {
911
+ "name": "confirm",
912
+ "description": "点击完成按钮时触发"
913
+ },
914
+ {
915
+ "name": "cancel",
916
+ "description": "点击取消按钮时触发"
917
+ },
918
+ {
919
+ "name": "change",
920
+ "description": "选项改变时触发"
921
+ }
922
+ ],
923
+ "attributes": [
924
+ {
925
+ "name": "value",
926
+ "default": "-",
927
+ "description": "当前选中项对应的地区码",
928
+ "options": [],
929
+ "value": {
930
+ "type": "string",
931
+ "kind": "expression"
932
+ }
933
+ },
934
+ {
935
+ "name": "title",
936
+ "default": "-",
937
+ "description": "顶部栏标题",
938
+ "options": [],
939
+ "value": {
940
+ "type": "string",
941
+ "kind": "expression"
942
+ }
943
+ },
944
+ {
945
+ "name": "confirm-button-text",
946
+ "default": "`确认`",
947
+ "description": "确认按钮文字",
843
948
  "options": [],
844
949
  "value": {
845
950
  "type": "string",
@@ -847,9 +952,9 @@
847
952
  }
848
953
  },
849
954
  {
850
- "name": "delete-button-text",
851
- "default": "`删除`",
852
- "description": "删除按钮文字",
955
+ "name": "cancel-button-text",
956
+ "default": "`取消`",
957
+ "description": "取消按钮文字",
853
958
  "options": [],
854
959
  "value": {
855
960
  "type": "string",
@@ -857,29 +962,29 @@
857
962
  }
858
963
  },
859
964
  {
860
- "name": "detail-rows",
861
- "default": "`1`",
862
- "description": "详细地址输入框行数",
965
+ "name": "area-list",
966
+ "default": "-",
967
+ "description": "省市区数据,格式见下方",
863
968
  "options": [],
864
969
  "value": {
865
- "type": "number | string",
970
+ "type": "object",
866
971
  "kind": "expression"
867
972
  }
868
973
  },
869
974
  {
870
- "name": "detail-maxlength",
871
- "default": "`200`",
872
- "description": "详细地址最大长度",
975
+ "name": "columns-placeholder",
976
+ "default": "`[]`",
977
+ "description": "列占位提示文字",
873
978
  "options": [],
874
979
  "value": {
875
- "type": "number | string",
980
+ "type": "string[]",
876
981
  "kind": "expression"
877
982
  }
878
983
  },
879
984
  {
880
- "name": "is-saving",
985
+ "name": "loading",
881
986
  "default": "`false`",
882
- "description": "是否显示保存按钮加载动画",
987
+ "description": "是否显示加载状态",
883
988
  "options": [],
884
989
  "value": {
885
990
  "type": "boolean",
@@ -887,9 +992,9 @@
887
992
  }
888
993
  },
889
994
  {
890
- "name": "is-deleting",
995
+ "name": "readonly",
891
996
  "default": "`false`",
892
- "description": "是否显示删除按钮加载动画",
997
+ "description": "是否为只读状态,只读状态下无法切换选项",
893
998
  "options": [],
894
999
  "value": {
895
1000
  "type": "boolean",
@@ -897,19 +1002,19 @@
897
1002
  }
898
1003
  },
899
1004
  {
900
- "name": "tel-validator",
901
- "default": "-",
902
- "description": "手机号格式校验函数",
1005
+ "name": "item-height",
1006
+ "default": "`44`",
1007
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
903
1008
  "options": [],
904
1009
  "value": {
905
- "type": "string => boolean",
1010
+ "type": "number | string",
906
1011
  "kind": "expression"
907
1012
  }
908
1013
  },
909
1014
  {
910
- "name": "tel-maxlength",
911
- "default": "-",
912
- "description": "手机号最大长度",
1015
+ "name": "columns-num",
1016
+ "default": "`3`",
1017
+ "description": "显示列数,3-省市区,2-省市,1-省",
913
1018
  "options": [],
914
1019
  "value": {
915
1020
  "type": "number | string",
@@ -917,141 +1022,110 @@
917
1022
  }
918
1023
  },
919
1024
  {
920
- "name": "postal-validator",
921
- "default": "-",
922
- "description": "邮政编码格式校验函数",
1025
+ "name": "visible-item-count",
1026
+ "default": "`6`",
1027
+ "description": "可见的选项个数",
923
1028
  "options": [],
924
1029
  "value": {
925
- "type": "string => boolean",
1030
+ "type": "number | string",
926
1031
  "kind": "expression"
927
1032
  }
928
1033
  },
929
1034
  {
930
- "name": "validator",
1035
+ "name": "swipe-duration",
1036
+ "default": "`1000`",
1037
+ "description": "快速滑动时惯性滚动的时长,单位 `ms`",
1038
+ "options": [],
1039
+ "value": {
1040
+ "type": "number | string",
1041
+ "kind": "expression"
1042
+ }
1043
+ },
1044
+ {
1045
+ "name": "is-oversea-code",
931
1046
  "default": "-",
932
- "description": "自定义校验函数",
1047
+ "description": "根据地区码校验海外地址,海外地址会划分至单独的分类",
933
1048
  "options": [],
934
1049
  "value": {
935
- "type": "(key, val) => string",
1050
+ "type": "() => boolean",
936
1051
  "kind": "expression"
937
1052
  }
938
1053
  }
939
1054
  ]
940
1055
  },
941
1056
  {
942
- "name": "van-address-list",
1057
+ "name": "van-badge",
943
1058
  "slots": [
944
1059
  {
945
1060
  "name": "default",
946
- "description": "在列表下方插入内容"
947
- },
948
- {
949
- "name": "top",
950
- "description": "在顶部插入内容"
951
- },
952
- {
953
- "name": "item-bottom",
954
- "description": "在列表项底部插入内容"
955
- },
956
- {
957
- "name": "tag",
958
- "description": "自定义列表项标签内容"
959
- }
960
- ],
961
- "events": [
962
- {
963
- "name": "add",
964
- "description": "点击新增按钮时触发"
965
- },
966
- {
967
- "name": "edit",
968
- "description": "点击编辑按钮时触发"
969
- },
970
- {
971
- "name": "select",
972
- "description": "切换选中的地址时触发"
973
- },
974
- {
975
- "name": "edit-disabled",
976
- "description": "编辑不可配送的地址时触发"
977
- },
978
- {
979
- "name": "select-disabled",
980
- "description": "选中不可配送的地址时触发"
1061
+ "description": "徽标包裹的子元素"
981
1062
  },
982
1063
  {
983
- "name": "click-item",
984
- "description": "点击任意地址时触发"
1064
+ "name": "content",
1065
+ "description": "自定义徽标内容"
985
1066
  }
986
1067
  ],
1068
+ "events": [],
987
1069
  "attributes": [
988
1070
  {
989
- "name": "v-model",
1071
+ "name": "content",
990
1072
  "default": "-",
991
- "description": "当前选中地址的 id",
1073
+ "description": "徽标内容",
992
1074
  "options": [],
993
1075
  "value": {
994
- "type": "string",
1076
+ "type": "number | string",
995
1077
  "kind": "expression"
996
1078
  }
997
1079
  },
998
1080
  {
999
- "name": "list",
1000
- "default": "`[]`",
1001
- "description": "地址列表",
1081
+ "name": "color",
1082
+ "default": "`#ee0a24`",
1083
+ "description": "徽标背景颜色",
1002
1084
  "options": [],
1003
1085
  "value": {
1004
- "type": "AddressListAddress[]",
1086
+ "type": "string",
1005
1087
  "kind": "expression"
1006
1088
  }
1007
1089
  },
1008
1090
  {
1009
- "name": "disabled-list",
1010
- "default": "`[]`",
1011
- "description": "不可配送地址列表",
1091
+ "name": "dot",
1092
+ "default": "`false`",
1093
+ "description": "是否展示为小红点",
1012
1094
  "options": [],
1013
1095
  "value": {
1014
- "type": "AddressListAddress[]",
1096
+ "type": "boolean",
1015
1097
  "kind": "expression"
1016
1098
  }
1017
1099
  },
1018
1100
  {
1019
- "name": "disabled-text",
1101
+ "name": "max",
1020
1102
  "default": "-",
1021
- "description": "不可配送提示文案",
1022
- "options": [],
1023
- "value": {
1024
- "type": "string",
1025
- "kind": "expression"
1026
- }
1027
- },
1028
- {
1029
- "name": "switchable",
1030
- "default": "`true`",
1031
- "description": "是否允许切换地址",
1103
+ "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
1032
1104
  "options": [],
1033
1105
  "value": {
1034
- "type": "boolean",
1106
+ "type": "number | string",
1035
1107
  "kind": "expression"
1036
1108
  }
1037
1109
  },
1038
1110
  {
1039
- "name": "add-button-text",
1040
- "default": "`新增地址`",
1041
- "description": "底部按钮文字",
1042
- "options": [],
1111
+ "name": "offset",
1112
+ "default": "string]_",
1113
+ "description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`",
1114
+ "options": [
1115
+ "-"
1116
+ ],
1043
1117
  "value": {
1044
- "type": "string",
1118
+ "type": "[number | string, number \\",
1045
1119
  "kind": "expression"
1046
1120
  }
1047
1121
  },
1048
1122
  {
1049
- "name": "default-tag-text",
1050
- "default": "-",
1051
- "description": "默认地址标签文字",
1123
+ "name": "show-zero",
1124
+ "default": "`true`",
1125
+ "description": "当 content 为数字 0 时,是否展示徽标",
1052
1126
  "options": [],
1053
1127
  "value": {
1054
- "type": "string",
1128
+ "type": "boolean",
1055
1129
  "kind": "expression"
1056
1130
  }
1057
1131
  }
@@ -1306,84 +1380,6 @@
1306
1380
  }
1307
1381
  ]
1308
1382
  },
1309
- {
1310
- "name": "van-badge",
1311
- "slots": [
1312
- {
1313
- "name": "default",
1314
- "description": "徽标包裹的子元素"
1315
- },
1316
- {
1317
- "name": "content",
1318
- "description": "自定义徽标内容"
1319
- }
1320
- ],
1321
- "events": [],
1322
- "attributes": [
1323
- {
1324
- "name": "content",
1325
- "default": "-",
1326
- "description": "徽标内容",
1327
- "options": [],
1328
- "value": {
1329
- "type": "number | string",
1330
- "kind": "expression"
1331
- }
1332
- },
1333
- {
1334
- "name": "color",
1335
- "default": "`#ee0a24`",
1336
- "description": "徽标背景颜色",
1337
- "options": [],
1338
- "value": {
1339
- "type": "string",
1340
- "kind": "expression"
1341
- }
1342
- },
1343
- {
1344
- "name": "dot",
1345
- "default": "`false`",
1346
- "description": "是否展示为小红点",
1347
- "options": [],
1348
- "value": {
1349
- "type": "boolean",
1350
- "kind": "expression"
1351
- }
1352
- },
1353
- {
1354
- "name": "max",
1355
- "default": "-",
1356
- "description": "最大值,超过最大值会显示 `{max}+`,仅当 content 为数字时有效",
1357
- "options": [],
1358
- "value": {
1359
- "type": "number | string",
1360
- "kind": "expression"
1361
- }
1362
- },
1363
- {
1364
- "name": "offset",
1365
- "default": "string]_",
1366
- "description": "设置徽标的偏移量,数组的两项分别对应水平和垂直方向的偏移量,默认单位为 `px`",
1367
- "options": [
1368
- "-"
1369
- ],
1370
- "value": {
1371
- "type": "[number | string, number \\",
1372
- "kind": "expression"
1373
- }
1374
- },
1375
- {
1376
- "name": "show-zero",
1377
- "default": "`true`",
1378
- "description": "当 content 为数字 0 时,是否展示徽标",
1379
- "options": [],
1380
- "value": {
1381
- "type": "boolean",
1382
- "kind": "expression"
1383
- }
1384
- }
1385
- ]
1386
- },
1387
1383
  {
1388
1384
  "name": "van-calendar",
1389
1385
  "slots": [
@@ -1399,6 +1395,10 @@
1399
1395
  "name": "footer",
1400
1396
  "description": "自定义底部区域内容"
1401
1397
  },
1398
+ {
1399
+ "name": "confirm-text",
1400
+ "description": "自定义确认按钮的内容"
1401
+ },
1402
1402
  {
1403
1403
  "name": "top-info",
1404
1404
  "description": "自定义日期上方的提示信息"
@@ -1946,6 +1946,10 @@
1946
1946
  {
1947
1947
  "name": "option",
1948
1948
  "description": "自定义选项文字"
1949
+ },
1950
+ {
1951
+ "name": "options-top",
1952
+ "description": "自定义选项上方的内容"
1949
1953
  }
1950
1954
  ],
1951
1955
  "events": [
@@ -3239,280 +3243,27 @@
3239
3243
  "description": "时间格式",
3240
3244
  "options": [],
3241
3245
  "value": {
3242
- "type": "string",
3243
- "kind": "expression"
3244
- }
3245
- },
3246
- {
3247
- "name": "auto-start",
3248
- "default": "`true`",
3249
- "description": "是否自动开始倒计时",
3250
- "options": [],
3251
- "value": {
3252
- "type": "boolean",
3253
- "kind": "expression"
3254
- }
3255
- },
3256
- {
3257
- "name": "millisecond",
3258
- "default": "`false`",
3259
- "description": "是否开启毫秒级渲染",
3260
- "options": [],
3261
- "value": {
3262
- "type": "boolean",
3263
- "kind": "expression"
3264
- }
3265
- }
3266
- ]
3267
- },
3268
- {
3269
- "name": "van-datetime-picker",
3270
- "slots": [
3271
- {
3272
- "name": "default",
3273
- "description": "自定义整个顶部栏的内容"
3274
- },
3275
- {
3276
- "name": "title",
3277
- "description": "自定义标题内容"
3278
- },
3279
- {
3280
- "name": "confirm",
3281
- "description": "自定义确认按钮内容"
3282
- },
3283
- {
3284
- "name": "cancel",
3285
- "description": "自定义取消按钮内容"
3286
- },
3287
- {
3288
- "name": "option",
3289
- "description": "自定义选项内容"
3290
- },
3291
- {
3292
- "name": "columns-top",
3293
- "description": "自定义选项上方内容"
3294
- },
3295
- {
3296
- "name": "columns-bottom",
3297
- "description": "自定义选项下方内容"
3298
- }
3299
- ],
3300
- "events": [
3301
- {
3302
- "name": "change",
3303
- "description": "当值变化时触发的事件"
3304
- },
3305
- {
3306
- "name": "confirm",
3307
- "description": "点击完成按钮时触发的事件"
3308
- },
3309
- {
3310
- "name": "cancel",
3311
- "description": "点击取消按钮时触发的事件"
3312
- }
3313
- ],
3314
- "attributes": [
3315
- {
3316
- "name": "type",
3317
- "default": "`datetime`",
3318
- "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
3319
- "options": [],
3320
- "value": {
3321
- "type": "string",
3322
- "kind": "expression"
3323
- }
3324
- },
3325
- {
3326
- "name": "title",
3327
- "default": "`''`",
3328
- "description": "顶部栏标题",
3329
- "options": [],
3330
- "value": {
3331
- "type": "string",
3332
- "kind": "expression"
3333
- }
3334
- },
3335
- {
3336
- "name": "confirm-button-text",
3337
- "default": "`确认`",
3338
- "description": "确认按钮文字",
3339
- "options": [],
3340
- "value": {
3341
- "type": "string",
3342
- "kind": "expression"
3343
- }
3344
- },
3345
- {
3346
- "name": "cancel-button-text",
3347
- "default": "`取消`",
3348
- "description": "取消按钮文字",
3349
- "options": [],
3350
- "value": {
3351
- "type": "string",
3352
- "kind": "expression"
3353
- }
3354
- },
3355
- {
3356
- "name": "show-toolbar",
3357
- "default": "`true`",
3358
- "description": "是否显示顶部栏",
3359
- "options": [],
3360
- "value": {
3361
- "type": "boolean",
3362
- "kind": "expression"
3363
- }
3364
- },
3365
- {
3366
- "name": "loading",
3367
- "default": "`false`",
3368
- "description": "是否显示加载状态",
3369
- "options": [],
3370
- "value": {
3371
- "type": "boolean",
3372
- "kind": "expression"
3373
- }
3374
- },
3375
- {
3376
- "name": "readonly",
3377
- "default": "`false`",
3378
- "description": "是否为只读状态,只读状态下无法切换选项",
3379
- "options": [],
3380
- "value": {
3381
- "type": "boolean",
3382
- "kind": "expression"
3383
- }
3384
- },
3385
- {
3386
- "name": "filter",
3387
- "default": "-",
3388
- "description": "选项过滤函数",
3389
- "options": [],
3390
- "value": {
3391
- "type": "(type: string, values: string[]) => string[]",
3392
- "kind": "expression"
3393
- }
3394
- },
3395
- {
3396
- "name": "formatter",
3397
- "default": "-",
3398
- "description": "选项格式化函数",
3399
- "options": [],
3400
- "value": {
3401
- "type": "(type: string, value: string) => string",
3402
- "kind": "expression"
3403
- }
3404
- },
3405
- {
3406
- "name": "columns-order",
3407
- "default": "-",
3408
- "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
3409
- "options": [],
3410
- "value": {
3411
- "type": "string[]",
3412
- "kind": "expression"
3413
- }
3414
- },
3415
- {
3416
- "name": "item-height",
3417
- "default": "`44`",
3418
- "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
3419
- "options": [],
3420
- "value": {
3421
- "type": "number | string",
3422
- "kind": "expression"
3423
- }
3424
- },
3425
- {
3426
- "name": "visible-item-count",
3427
- "default": "`6`",
3428
- "description": "可见的选项个数",
3429
- "options": [],
3430
- "value": {
3431
- "type": "number | string",
3432
- "kind": "expression"
3433
- }
3434
- },
3435
- {
3436
- "name": "swipe-duration",
3437
- "default": "`1000`",
3438
- "description": "快速滑动时惯性滚动的时长,单位`ms`",
3439
- "options": [],
3440
- "value": {
3441
- "type": "number | string",
3442
- "kind": "expression"
3443
- }
3444
- }
3445
- ]
3446
- },
3447
- {
3448
- "name": "van-date-picker",
3449
- "slots": [],
3450
- "events": [],
3451
- "attributes": [
3452
- {
3453
- "name": "min-date",
3454
- "default": "十年前",
3455
- "description": "可选的最小时间,精确到分钟",
3456
- "options": [],
3457
- "value": {
3458
- "type": "Date",
3459
- "kind": "expression"
3460
- }
3461
- },
3462
- {
3463
- "name": "max-date",
3464
- "default": "十年后",
3465
- "description": "可选的最大时间,精确到分钟",
3466
- "options": [],
3467
- "value": {
3468
- "type": "Date",
3469
- "kind": "expression"
3470
- }
3471
- }
3472
- ]
3473
- },
3474
- {
3475
- "name": "van-time-picker",
3476
- "slots": [],
3477
- "events": [],
3478
- "attributes": [
3479
- {
3480
- "name": "min-hour",
3481
- "default": "`0`",
3482
- "description": "可选的最小小时",
3483
- "options": [],
3484
- "value": {
3485
- "type": "number | string",
3486
- "kind": "expression"
3487
- }
3488
- },
3489
- {
3490
- "name": "max-hour",
3491
- "default": "`23`",
3492
- "description": "可选的最大小时",
3493
- "options": [],
3494
- "value": {
3495
- "type": "number | string",
3246
+ "type": "string",
3496
3247
  "kind": "expression"
3497
3248
  }
3498
3249
  },
3499
3250
  {
3500
- "name": "min-minute",
3501
- "default": "`0`",
3502
- "description": "可选的最小分钟",
3251
+ "name": "auto-start",
3252
+ "default": "`true`",
3253
+ "description": "是否自动开始倒计时",
3503
3254
  "options": [],
3504
3255
  "value": {
3505
- "type": "number | string",
3256
+ "type": "boolean",
3506
3257
  "kind": "expression"
3507
3258
  }
3508
3259
  },
3509
3260
  {
3510
- "name": "max-minute",
3511
- "default": "`59`",
3512
- "description": "可选的最大分钟",
3261
+ "name": "millisecond",
3262
+ "default": "`false`",
3263
+ "description": "是否开启毫秒级渲染",
3513
3264
  "options": [],
3514
3265
  "value": {
3515
- "type": "number | string",
3266
+ "type": "boolean",
3516
3267
  "kind": "expression"
3517
3268
  }
3518
3269
  }
@@ -3659,132 +3410,385 @@
3659
3410
  }
3660
3411
  },
3661
3412
  {
3662
- "name": "disabled-title",
3663
- "default": "`不可使用优惠券`",
3664
- "description": "不可用优惠券列表标题",
3413
+ "name": "disabled-title",
3414
+ "default": "`不可使用优惠券`",
3415
+ "description": "不可用优惠券列表标题",
3416
+ "options": [],
3417
+ "value": {
3418
+ "type": "string",
3419
+ "kind": "expression"
3420
+ }
3421
+ },
3422
+ {
3423
+ "name": "exchange-button-text",
3424
+ "default": "`兑换`",
3425
+ "description": "兑换按钮文字",
3426
+ "options": [],
3427
+ "value": {
3428
+ "type": "string",
3429
+ "kind": "expression"
3430
+ }
3431
+ },
3432
+ {
3433
+ "name": "exchange-button-loading",
3434
+ "default": "`false`",
3435
+ "description": "是否显示兑换按钮加载动画",
3436
+ "options": [],
3437
+ "value": {
3438
+ "type": "boolean",
3439
+ "kind": "expression"
3440
+ }
3441
+ },
3442
+ {
3443
+ "name": "exchange-button-disabled",
3444
+ "default": "`false`",
3445
+ "description": "是否禁用兑换按钮",
3446
+ "options": [],
3447
+ "value": {
3448
+ "type": "boolean",
3449
+ "kind": "expression"
3450
+ }
3451
+ },
3452
+ {
3453
+ "name": "exchange-min-length",
3454
+ "default": "`1`",
3455
+ "description": "兑换码最小长度",
3456
+ "options": [],
3457
+ "value": {
3458
+ "type": "number",
3459
+ "kind": "expression"
3460
+ }
3461
+ },
3462
+ {
3463
+ "name": "displayed-coupon-index",
3464
+ "default": "-",
3465
+ "description": "滚动至特定优惠券位置",
3466
+ "options": [],
3467
+ "value": {
3468
+ "type": "number",
3469
+ "kind": "expression"
3470
+ }
3471
+ },
3472
+ {
3473
+ "name": "show-close-button",
3474
+ "default": "`true`",
3475
+ "description": "是否显示列表底部按钮",
3476
+ "options": [],
3477
+ "value": {
3478
+ "type": "boolean",
3479
+ "kind": "expression"
3480
+ }
3481
+ },
3482
+ {
3483
+ "name": "close-button-text",
3484
+ "default": "`不使用优惠`",
3485
+ "description": "列表底部按钮文字",
3486
+ "options": [],
3487
+ "value": {
3488
+ "type": "string",
3489
+ "kind": "expression"
3490
+ }
3491
+ },
3492
+ {
3493
+ "name": "input-placeholder",
3494
+ "default": "`请输入优惠码`",
3495
+ "description": "输入框文字提示",
3496
+ "options": [],
3497
+ "value": {
3498
+ "type": "string",
3499
+ "kind": "expression"
3500
+ }
3501
+ },
3502
+ {
3503
+ "name": "show-exchange-bar",
3504
+ "default": "`true`",
3505
+ "description": "是否展示兑换栏",
3506
+ "options": [],
3507
+ "value": {
3508
+ "type": "boolean",
3509
+ "kind": "expression"
3510
+ }
3511
+ },
3512
+ {
3513
+ "name": "currency",
3514
+ "default": "`¥`",
3515
+ "description": "货币符号",
3516
+ "options": [],
3517
+ "value": {
3518
+ "type": "string",
3519
+ "kind": "expression"
3520
+ }
3521
+ },
3522
+ {
3523
+ "name": "empty-image",
3524
+ "default": "`https://img.yzcdn.cn/vant/coupon-empty.png`",
3525
+ "description": "列表为空时的占位图",
3526
+ "options": [],
3527
+ "value": {
3528
+ "type": "string",
3529
+ "kind": "expression"
3530
+ }
3531
+ },
3532
+ {
3533
+ "name": "show-count",
3534
+ "default": "`true`",
3535
+ "description": "是否展示可用 / 不可用数量",
3536
+ "options": [],
3537
+ "value": {
3538
+ "type": "boolean",
3539
+ "kind": "expression"
3540
+ }
3541
+ }
3542
+ ]
3543
+ },
3544
+ {
3545
+ "name": "van-datetime-picker",
3546
+ "slots": [
3547
+ {
3548
+ "name": "default",
3549
+ "description": "自定义整个顶部栏的内容"
3550
+ },
3551
+ {
3552
+ "name": "title",
3553
+ "description": "自定义标题内容"
3554
+ },
3555
+ {
3556
+ "name": "confirm",
3557
+ "description": "自定义确认按钮内容"
3558
+ },
3559
+ {
3560
+ "name": "cancel",
3561
+ "description": "自定义取消按钮内容"
3562
+ },
3563
+ {
3564
+ "name": "option",
3565
+ "description": "自定义选项内容"
3566
+ },
3567
+ {
3568
+ "name": "columns-top",
3569
+ "description": "自定义选项上方内容"
3570
+ },
3571
+ {
3572
+ "name": "columns-bottom",
3573
+ "description": "自定义选项下方内容"
3574
+ }
3575
+ ],
3576
+ "events": [
3577
+ {
3578
+ "name": "change",
3579
+ "description": "当值变化时触发的事件"
3580
+ },
3581
+ {
3582
+ "name": "confirm",
3583
+ "description": "点击完成按钮时触发的事件"
3584
+ },
3585
+ {
3586
+ "name": "cancel",
3587
+ "description": "点击取消按钮时触发的事件"
3588
+ }
3589
+ ],
3590
+ "attributes": [
3591
+ {
3592
+ "name": "type",
3593
+ "default": "`datetime`",
3594
+ "description": "时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour`",
3595
+ "options": [],
3596
+ "value": {
3597
+ "type": "string",
3598
+ "kind": "expression"
3599
+ }
3600
+ },
3601
+ {
3602
+ "name": "title",
3603
+ "default": "`''`",
3604
+ "description": "顶部栏标题",
3605
+ "options": [],
3606
+ "value": {
3607
+ "type": "string",
3608
+ "kind": "expression"
3609
+ }
3610
+ },
3611
+ {
3612
+ "name": "confirm-button-text",
3613
+ "default": "`确认`",
3614
+ "description": "确认按钮文字",
3615
+ "options": [],
3616
+ "value": {
3617
+ "type": "string",
3618
+ "kind": "expression"
3619
+ }
3620
+ },
3621
+ {
3622
+ "name": "cancel-button-text",
3623
+ "default": "`取消`",
3624
+ "description": "取消按钮文字",
3625
+ "options": [],
3626
+ "value": {
3627
+ "type": "string",
3628
+ "kind": "expression"
3629
+ }
3630
+ },
3631
+ {
3632
+ "name": "show-toolbar",
3633
+ "default": "`true`",
3634
+ "description": "是否显示顶部栏",
3635
+ "options": [],
3636
+ "value": {
3637
+ "type": "boolean",
3638
+ "kind": "expression"
3639
+ }
3640
+ },
3641
+ {
3642
+ "name": "loading",
3643
+ "default": "`false`",
3644
+ "description": "是否显示加载状态",
3645
+ "options": [],
3646
+ "value": {
3647
+ "type": "boolean",
3648
+ "kind": "expression"
3649
+ }
3650
+ },
3651
+ {
3652
+ "name": "readonly",
3653
+ "default": "`false`",
3654
+ "description": "是否为只读状态,只读状态下无法切换选项",
3665
3655
  "options": [],
3666
3656
  "value": {
3667
- "type": "string",
3657
+ "type": "boolean",
3668
3658
  "kind": "expression"
3669
3659
  }
3670
3660
  },
3671
3661
  {
3672
- "name": "exchange-button-text",
3673
- "default": "`兑换`",
3674
- "description": "兑换按钮文字",
3662
+ "name": "filter",
3663
+ "default": "-",
3664
+ "description": "选项过滤函数",
3675
3665
  "options": [],
3676
3666
  "value": {
3677
- "type": "string",
3667
+ "type": "(type: string, values: string[]) => string[]",
3678
3668
  "kind": "expression"
3679
3669
  }
3680
3670
  },
3681
3671
  {
3682
- "name": "exchange-button-loading",
3683
- "default": "`false`",
3684
- "description": "是否显示兑换按钮加载动画",
3672
+ "name": "formatter",
3673
+ "default": "-",
3674
+ "description": "选项格式化函数",
3685
3675
  "options": [],
3686
3676
  "value": {
3687
- "type": "boolean",
3677
+ "type": "(type: string, value: string) => string",
3688
3678
  "kind": "expression"
3689
3679
  }
3690
3680
  },
3691
3681
  {
3692
- "name": "exchange-button-disabled",
3693
- "default": "`false`",
3694
- "description": "是否禁用兑换按钮",
3682
+ "name": "columns-order",
3683
+ "default": "-",
3684
+ "description": "自定义列排序数组, 子项可选值为<br> `year`、`month`、`day`、`hour`、`minute`",
3695
3685
  "options": [],
3696
3686
  "value": {
3697
- "type": "boolean",
3687
+ "type": "string[]",
3698
3688
  "kind": "expression"
3699
3689
  }
3700
3690
  },
3701
3691
  {
3702
- "name": "exchange-min-length",
3703
- "default": "`1`",
3704
- "description": "兑换码最小长度",
3692
+ "name": "item-height",
3693
+ "default": "`44`",
3694
+ "description": "选项高度,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
3705
3695
  "options": [],
3706
3696
  "value": {
3707
- "type": "number",
3697
+ "type": "number | string",
3708
3698
  "kind": "expression"
3709
3699
  }
3710
3700
  },
3711
3701
  {
3712
- "name": "displayed-coupon-index",
3713
- "default": "-",
3714
- "description": "滚动至特定优惠券位置",
3702
+ "name": "visible-item-count",
3703
+ "default": "`6`",
3704
+ "description": "可见的选项个数",
3715
3705
  "options": [],
3716
3706
  "value": {
3717
- "type": "number",
3707
+ "type": "number | string",
3718
3708
  "kind": "expression"
3719
3709
  }
3720
3710
  },
3721
3711
  {
3722
- "name": "show-close-button",
3723
- "default": "`true`",
3724
- "description": "是否显示列表底部按钮",
3712
+ "name": "swipe-duration",
3713
+ "default": "`1000`",
3714
+ "description": "快速滑动时惯性滚动的时长,单位`ms`",
3725
3715
  "options": [],
3726
3716
  "value": {
3727
- "type": "boolean",
3717
+ "type": "number | string",
3728
3718
  "kind": "expression"
3729
3719
  }
3730
- },
3720
+ }
3721
+ ]
3722
+ },
3723
+ {
3724
+ "name": "van-date-picker",
3725
+ "slots": [],
3726
+ "events": [],
3727
+ "attributes": [
3731
3728
  {
3732
- "name": "close-button-text",
3733
- "default": "`不使用优惠`",
3734
- "description": "列表底部按钮文字",
3729
+ "name": "min-date",
3730
+ "default": "十年前",
3731
+ "description": "可选的最小时间,精确到分钟",
3735
3732
  "options": [],
3736
3733
  "value": {
3737
- "type": "string",
3734
+ "type": "Date",
3738
3735
  "kind": "expression"
3739
3736
  }
3740
3737
  },
3741
3738
  {
3742
- "name": "input-placeholder",
3743
- "default": "`请输入优惠码`",
3744
- "description": "输入框文字提示",
3739
+ "name": "max-date",
3740
+ "default": "十年后",
3741
+ "description": "可选的最大时间,精确到分钟",
3745
3742
  "options": [],
3746
3743
  "value": {
3747
- "type": "string",
3744
+ "type": "Date",
3748
3745
  "kind": "expression"
3749
3746
  }
3750
- },
3747
+ }
3748
+ ]
3749
+ },
3750
+ {
3751
+ "name": "van-time-picker",
3752
+ "slots": [],
3753
+ "events": [],
3754
+ "attributes": [
3751
3755
  {
3752
- "name": "show-exchange-bar",
3753
- "default": "`true`",
3754
- "description": "是否展示兑换栏",
3756
+ "name": "min-hour",
3757
+ "default": "`0`",
3758
+ "description": "可选的最小小时",
3755
3759
  "options": [],
3756
3760
  "value": {
3757
- "type": "boolean",
3761
+ "type": "number | string",
3758
3762
  "kind": "expression"
3759
3763
  }
3760
3764
  },
3761
3765
  {
3762
- "name": "currency",
3763
- "default": "`¥`",
3764
- "description": "货币符号",
3766
+ "name": "max-hour",
3767
+ "default": "`23`",
3768
+ "description": "可选的最大小时",
3765
3769
  "options": [],
3766
3770
  "value": {
3767
- "type": "string",
3771
+ "type": "number | string",
3768
3772
  "kind": "expression"
3769
3773
  }
3770
3774
  },
3771
3775
  {
3772
- "name": "empty-image",
3773
- "default": "`https://img.yzcdn.cn/vant/coupon-empty.png`",
3774
- "description": "列表为空时的占位图",
3776
+ "name": "min-minute",
3777
+ "default": "`0`",
3778
+ "description": "可选的最小分钟",
3775
3779
  "options": [],
3776
3780
  "value": {
3777
- "type": "string",
3781
+ "type": "number | string",
3778
3782
  "kind": "expression"
3779
3783
  }
3780
3784
  },
3781
3785
  {
3782
- "name": "show-count",
3783
- "default": "`true`",
3784
- "description": "是否展示可用 / 不可用数量",
3786
+ "name": "max-minute",
3787
+ "default": "`59`",
3788
+ "description": "可选的最大分钟",
3785
3789
  "options": [],
3786
3790
  "value": {
3787
- "type": "boolean",
3791
+ "type": "number | string",
3788
3792
  "kind": "expression"
3789
3793
  }
3790
3794
  }
@@ -4352,7 +4356,7 @@
4352
4356
  },
4353
4357
  {
4354
4358
  "name": "input",
4355
- "description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效。<br>在 Form 组件进行表单校验时,会使用 input 插槽中子组件的 `value`,而不是 Field 组件的 `value`。"
4359
+ "description": "自定义输入框,使用此插槽后,与输入框相关的属性和事件将失效"
4356
4360
  },
4357
4361
  {
4358
4362
  "name": "left-icon",
@@ -4366,6 +4370,10 @@
4366
4370
  "name": "button",
4367
4371
  "description": "自定义输入框尾部按钮"
4368
4372
  },
4373
+ {
4374
+ "name": "error-message",
4375
+ "description": "自定义底部错误提示文案"
4376
+ },
4369
4377
  {
4370
4378
  "name": "extra",
4371
4379
  "description": "自定义输入框最右侧的额外内容"
@@ -4931,88 +4939,6 @@
4931
4939
  }
4932
4940
  ]
4933
4941
  },
4934
- {
4935
- "name": "van-icon",
4936
- "slots": [],
4937
- "events": [
4938
- {
4939
- "name": "click",
4940
- "description": "点击图标时触发"
4941
- }
4942
- ],
4943
- "attributes": [
4944
- {
4945
- "name": "name",
4946
- "default": "-",
4947
- "description": "图标名称或图片链接",
4948
- "options": [],
4949
- "value": {
4950
- "type": "string",
4951
- "kind": "expression"
4952
- }
4953
- },
4954
- {
4955
- "name": "dot",
4956
- "default": "`false`",
4957
- "description": "是否显示图标右上角小红点",
4958
- "options": [],
4959
- "value": {
4960
- "type": "boolean",
4961
- "kind": "expression"
4962
- }
4963
- },
4964
- {
4965
- "name": "badge",
4966
- "default": "-",
4967
- "description": "图标右上角徽标的内容",
4968
- "options": [],
4969
- "value": {
4970
- "type": "number | string",
4971
- "kind": "expression"
4972
- }
4973
- },
4974
- {
4975
- "name": "color",
4976
- "default": "`inherit`",
4977
- "description": "图标颜色",
4978
- "options": [],
4979
- "value": {
4980
- "type": "string",
4981
- "kind": "expression"
4982
- }
4983
- },
4984
- {
4985
- "name": "size",
4986
- "default": "`inherit`",
4987
- "description": "图标大小,如 `20px` `2em`,默认单位为 `px`",
4988
- "options": [],
4989
- "value": {
4990
- "type": "number | string",
4991
- "kind": "expression"
4992
- }
4993
- },
4994
- {
4995
- "name": "class-prefix",
4996
- "default": "`van-icon`",
4997
- "description": "类名前缀,用于使用自定义图标",
4998
- "options": [],
4999
- "value": {
5000
- "type": "string",
5001
- "kind": "expression"
5002
- }
5003
- },
5004
- {
5005
- "name": "tag",
5006
- "default": "`i`",
5007
- "description": "根节点对应的 HTML 标签名",
5008
- "options": [],
5009
- "value": {
5010
- "type": "string",
5011
- "kind": "expression"
5012
- }
5013
- }
5014
- ]
5015
- },
5016
4942
  {
5017
4943
  "name": "van-grid",
5018
4944
  "slots": [],
@@ -5164,14 +5090,86 @@
5164
5090
  }
5165
5091
  },
5166
5092
  {
5167
- "name": "reverse",
5093
+ "name": "reverse",
5094
+ "default": "`false`",
5095
+ "description": "是否调换图标和文本的位置",
5096
+ "options": [],
5097
+ "value": {
5098
+ "type": "boolean",
5099
+ "kind": "expression"
5100
+ }
5101
+ },
5102
+ {
5103
+ "name": "dot",
5104
+ "default": "`false`",
5105
+ "description": "是否显示图标右上角小红点",
5106
+ "options": [],
5107
+ "value": {
5108
+ "type": "boolean",
5109
+ "kind": "expression"
5110
+ }
5111
+ },
5112
+ {
5113
+ "name": "badge",
5114
+ "default": "-",
5115
+ "description": "图标右上角徽标的内容",
5116
+ "options": [],
5117
+ "value": {
5118
+ "type": "number | string",
5119
+ "kind": "expression"
5120
+ }
5121
+ },
5122
+ {
5123
+ "name": "url",
5124
+ "default": "-",
5125
+ "description": "点击后跳转的链接地址",
5126
+ "options": [],
5127
+ "value": {
5128
+ "type": "string",
5129
+ "kind": "expression"
5130
+ }
5131
+ },
5132
+ {
5133
+ "name": "to",
5134
+ "default": "-",
5135
+ "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
5136
+ "options": [],
5137
+ "value": {
5138
+ "type": "string | object",
5139
+ "kind": "expression"
5140
+ }
5141
+ },
5142
+ {
5143
+ "name": "replace",
5168
5144
  "default": "`false`",
5169
- "description": "是否调换图标和文本的位置",
5145
+ "description": "是否在跳转时替换当前页面历史",
5170
5146
  "options": [],
5171
5147
  "value": {
5172
5148
  "type": "boolean",
5173
5149
  "kind": "expression"
5174
5150
  }
5151
+ }
5152
+ ]
5153
+ },
5154
+ {
5155
+ "name": "van-icon",
5156
+ "slots": [],
5157
+ "events": [
5158
+ {
5159
+ "name": "click",
5160
+ "description": "点击图标时触发"
5161
+ }
5162
+ ],
5163
+ "attributes": [
5164
+ {
5165
+ "name": "name",
5166
+ "default": "-",
5167
+ "description": "图标名称或图片链接",
5168
+ "options": [],
5169
+ "value": {
5170
+ "type": "string",
5171
+ "kind": "expression"
5172
+ }
5175
5173
  },
5176
5174
  {
5177
5175
  "name": "dot",
@@ -5194,9 +5192,9 @@
5194
5192
  }
5195
5193
  },
5196
5194
  {
5197
- "name": "url",
5198
- "default": "-",
5199
- "description": "点击后跳转的链接地址",
5195
+ "name": "color",
5196
+ "default": "`inherit`",
5197
+ "description": "图标颜色",
5200
5198
  "options": [],
5201
5199
  "value": {
5202
5200
  "type": "string",
@@ -5204,22 +5202,32 @@
5204
5202
  }
5205
5203
  },
5206
5204
  {
5207
- "name": "to",
5208
- "default": "-",
5209
- "description": "点击后跳转的目标路由对象,等同于 vue-router [to 属性](https://router.vuejs.org/zh/api/#to)",
5205
+ "name": "size",
5206
+ "default": "`inherit`",
5207
+ "description": "图标大小,如 `20px` `2em`,默认单位为 `px`",
5210
5208
  "options": [],
5211
5209
  "value": {
5212
- "type": "string | object",
5210
+ "type": "number | string",
5213
5211
  "kind": "expression"
5214
5212
  }
5215
5213
  },
5216
5214
  {
5217
- "name": "replace",
5218
- "default": "`false`",
5219
- "description": "是否在跳转时替换当前页面历史",
5215
+ "name": "class-prefix",
5216
+ "default": "`van-icon`",
5217
+ "description": "类名前缀,用于使用自定义图标",
5220
5218
  "options": [],
5221
5219
  "value": {
5222
- "type": "boolean",
5220
+ "type": "string",
5221
+ "kind": "expression"
5222
+ }
5223
+ },
5224
+ {
5225
+ "name": "tag",
5226
+ "default": "`i`",
5227
+ "description": "根节点对应的 HTML 标签名",
5228
+ "options": [],
5229
+ "value": {
5230
+ "type": "string",
5223
5231
  "kind": "expression"
5224
5232
  }
5225
5233
  }
@@ -5613,6 +5621,104 @@
5613
5621
  }
5614
5622
  ]
5615
5623
  },
5624
+ {
5625
+ "name": "van-index-bar",
5626
+ "slots": [],
5627
+ "events": [
5628
+ {
5629
+ "name": "select",
5630
+ "description": "点击索引栏的字符时触发"
5631
+ },
5632
+ {
5633
+ "name": "change",
5634
+ "description": "当前高亮的索引字符变化时触发"
5635
+ }
5636
+ ],
5637
+ "attributes": [
5638
+ {
5639
+ "name": "index-list",
5640
+ "default": "`A-Z`",
5641
+ "description": "索引字符列表",
5642
+ "options": [],
5643
+ "value": {
5644
+ "type": "string[] | number[]",
5645
+ "kind": "expression"
5646
+ }
5647
+ },
5648
+ {
5649
+ "name": "z-index",
5650
+ "default": "`1`",
5651
+ "description": "z-index 层级",
5652
+ "options": [],
5653
+ "value": {
5654
+ "type": "number | string",
5655
+ "kind": "expression"
5656
+ }
5657
+ },
5658
+ {
5659
+ "name": "sticky",
5660
+ "default": "`true`",
5661
+ "description": "是否开启锚点自动吸顶",
5662
+ "options": [],
5663
+ "value": {
5664
+ "type": "boolean",
5665
+ "kind": "expression"
5666
+ }
5667
+ },
5668
+ {
5669
+ "name": "sticky-offset-top",
5670
+ "default": "`0`",
5671
+ "description": "锚点自动吸顶时与顶部的距离",
5672
+ "options": [],
5673
+ "value": {
5674
+ "type": "number",
5675
+ "kind": "expression"
5676
+ }
5677
+ },
5678
+ {
5679
+ "name": "highlight-color",
5680
+ "default": "`#ee0a24`",
5681
+ "description": "索引字符高亮颜色",
5682
+ "options": [],
5683
+ "value": {
5684
+ "type": "string",
5685
+ "kind": "expression"
5686
+ }
5687
+ },
5688
+ {
5689
+ "name": "teleport",
5690
+ "default": "-",
5691
+ "description": "指定索引栏挂载的节点",
5692
+ "options": [],
5693
+ "value": {
5694
+ "type": "string | Element",
5695
+ "kind": "expression"
5696
+ }
5697
+ }
5698
+ ]
5699
+ },
5700
+ {
5701
+ "name": "van-index-anchor",
5702
+ "slots": [
5703
+ {
5704
+ "name": "default",
5705
+ "description": "锚点位置显示内容,默认为索引字符"
5706
+ }
5707
+ ],
5708
+ "events": [],
5709
+ "attributes": [
5710
+ {
5711
+ "name": "index",
5712
+ "default": "-",
5713
+ "description": "索引字符",
5714
+ "options": [],
5715
+ "value": {
5716
+ "type": "number | string",
5717
+ "kind": "expression"
5718
+ }
5719
+ }
5720
+ ]
5721
+ },
5616
5722
  {
5617
5723
  "name": "van-list",
5618
5724
  "slots": [
@@ -5726,105 +5832,7 @@
5726
5832
  "description": "滚动触发加载的方向,可选值为 `up`",
5727
5833
  "options": [],
5728
5834
  "value": {
5729
- "type": "string",
5730
- "kind": "expression"
5731
- }
5732
- }
5733
- ]
5734
- },
5735
- {
5736
- "name": "van-index-bar",
5737
- "slots": [],
5738
- "events": [
5739
- {
5740
- "name": "select",
5741
- "description": "点击索引栏的字符时触发"
5742
- },
5743
- {
5744
- "name": "change",
5745
- "description": "当前高亮的索引字符变化时触发"
5746
- }
5747
- ],
5748
- "attributes": [
5749
- {
5750
- "name": "index-list",
5751
- "default": "`A-Z`",
5752
- "description": "索引字符列表",
5753
- "options": [],
5754
- "value": {
5755
- "type": "string[] | number[]",
5756
- "kind": "expression"
5757
- }
5758
- },
5759
- {
5760
- "name": "z-index",
5761
- "default": "`1`",
5762
- "description": "z-index 层级",
5763
- "options": [],
5764
- "value": {
5765
- "type": "number | string",
5766
- "kind": "expression"
5767
- }
5768
- },
5769
- {
5770
- "name": "sticky",
5771
- "default": "`true`",
5772
- "description": "是否开启锚点自动吸顶",
5773
- "options": [],
5774
- "value": {
5775
- "type": "boolean",
5776
- "kind": "expression"
5777
- }
5778
- },
5779
- {
5780
- "name": "sticky-offset-top",
5781
- "default": "`0`",
5782
- "description": "锚点自动吸顶时与顶部的距离",
5783
- "options": [],
5784
- "value": {
5785
- "type": "number",
5786
- "kind": "expression"
5787
- }
5788
- },
5789
- {
5790
- "name": "highlight-color",
5791
- "default": "`#ee0a24`",
5792
- "description": "索引字符高亮颜色",
5793
- "options": [],
5794
- "value": {
5795
- "type": "string",
5796
- "kind": "expression"
5797
- }
5798
- },
5799
- {
5800
- "name": "teleport",
5801
- "default": "-",
5802
- "description": "指定索引栏挂载的节点",
5803
- "options": [],
5804
- "value": {
5805
- "type": "string | Element",
5806
- "kind": "expression"
5807
- }
5808
- }
5809
- ]
5810
- },
5811
- {
5812
- "name": "van-index-anchor",
5813
- "slots": [
5814
- {
5815
- "name": "default",
5816
- "description": "锚点位置显示内容,默认为索引字符"
5817
- }
5818
- ],
5819
- "events": [],
5820
- "attributes": [
5821
- {
5822
- "name": "index",
5823
- "default": "-",
5824
- "description": "索引字符",
5825
- "options": [],
5826
- "value": {
5827
- "type": "number | string",
5835
+ "type": "string",
5828
5836
  "kind": "expression"
5829
5837
  }
5830
5838
  }
@@ -6145,54 +6153,82 @@
6145
6153
  ]
6146
6154
  },
6147
6155
  {
6148
- "name": "van-overlay",
6156
+ "name": "van-number-keyboard",
6149
6157
  "slots": [
6150
6158
  {
6151
- "name": "default",
6152
- "description": "默认插槽,用于在遮罩层上方嵌入内容"
6159
+ "name": "delete",
6160
+ "description": "自定义删除按键内容"
6161
+ },
6162
+ {
6163
+ "name": "extra-key",
6164
+ "description": "自定义左下角按键内容"
6165
+ },
6166
+ {
6167
+ "name": "title-left",
6168
+ "description": "自定义标题栏左侧内容"
6153
6169
  }
6154
6170
  ],
6155
6171
  "events": [
6156
6172
  {
6157
- "name": "click",
6158
- "description": "点击时触发"
6173
+ "name": "input",
6174
+ "description": "点击按键时触发"
6175
+ },
6176
+ {
6177
+ "name": "delete",
6178
+ "description": "点击删除键时触发"
6179
+ },
6180
+ {
6181
+ "name": "close",
6182
+ "description": "点击关闭按钮时触发"
6183
+ },
6184
+ {
6185
+ "name": "blur",
6186
+ "description": "点击关闭按钮或非键盘区域时触发"
6187
+ },
6188
+ {
6189
+ "name": "show",
6190
+ "description": "键盘完全弹出时触发"
6191
+ },
6192
+ {
6193
+ "name": "hide",
6194
+ "description": "键盘完全收起时触发"
6159
6195
  }
6160
6196
  ],
6161
6197
  "attributes": [
6162
6198
  {
6163
- "name": "show",
6164
- "default": "`false`",
6165
- "description": "是否展示遮罩层",
6199
+ "name": "v-model",
6200
+ "default": "-",
6201
+ "description": "当前输入值",
6166
6202
  "options": [],
6167
6203
  "value": {
6168
- "type": "boolean",
6204
+ "type": "string",
6169
6205
  "kind": "expression"
6170
6206
  }
6171
6207
  },
6172
6208
  {
6173
- "name": "z-index",
6174
- "default": "`1`",
6175
- "description": "z-index 层级",
6209
+ "name": "show",
6210
+ "default": "-",
6211
+ "description": "是否显示键盘",
6176
6212
  "options": [],
6177
6213
  "value": {
6178
- "type": "number | string",
6214
+ "type": "boolean",
6179
6215
  "kind": "expression"
6180
6216
  }
6181
6217
  },
6182
6218
  {
6183
- "name": "duration",
6184
- "default": "`0.3`",
6185
- "description": "动画时长,单位秒,设置为 0 可以禁用动画",
6219
+ "name": "title",
6220
+ "default": "-",
6221
+ "description": "键盘标题",
6186
6222
  "options": [],
6187
6223
  "value": {
6188
- "type": "number | string",
6224
+ "type": "string",
6189
6225
  "kind": "expression"
6190
6226
  }
6191
6227
  },
6192
6228
  {
6193
- "name": "class-name",
6194
- "default": "-",
6195
- "description": "自定义类名",
6229
+ "name": "theme",
6230
+ "default": "`default`",
6231
+ "description": "样式风格,可选值为 `custom`",
6196
6232
  "options": [],
6197
6233
  "value": {
6198
6234
  "type": "string",
@@ -6200,64 +6236,59 @@
6200
6236
  }
6201
6237
  },
6202
6238
  {
6203
- "name": "custom-style",
6204
- "default": "-",
6205
- "description": "自定义样式",
6239
+ "name": "maxlength",
6240
+ "default": "`Infinity`",
6241
+ "description": "输入值最大长度",
6206
6242
  "options": [],
6207
6243
  "value": {
6208
- "type": "object",
6244
+ "type": "number | string",
6209
6245
  "kind": "expression"
6210
6246
  }
6211
6247
  },
6212
6248
  {
6213
- "name": "lock-scroll",
6249
+ "name": "transition",
6214
6250
  "default": "`true`",
6215
- "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动",
6251
+ "description": "是否开启过场动画",
6216
6252
  "options": [],
6217
6253
  "value": {
6218
6254
  "type": "boolean",
6219
6255
  "kind": "expression"
6220
6256
  }
6221
- }
6222
- ]
6223
- },
6224
- {
6225
- "name": "van-pagination",
6226
- "slots": [
6227
- {
6228
- "name": "page",
6229
- "description": "自定义页码"
6230
6257
  },
6231
6258
  {
6232
- "name": "prev-text",
6233
- "description": "自定义上一页按钮文字"
6259
+ "name": "z-index",
6260
+ "default": "`100`",
6261
+ "description": "键盘 z-index 层级",
6262
+ "options": [],
6263
+ "value": {
6264
+ "type": "number | string",
6265
+ "kind": "expression"
6266
+ }
6234
6267
  },
6235
6268
  {
6236
- "name": "next-text",
6237
- "description": "自定义下一页按钮文字"
6238
- }
6239
- ],
6240
- "events": [
6241
- {
6242
- "name": "change",
6243
- "description": "页码改变时触发"
6244
- }
6245
- ],
6246
- "attributes": [
6269
+ "name": "extra-key",
6270
+ "default": "`''`",
6271
+ "description": "底部额外按键的内容",
6272
+ "options": [],
6273
+ "value": {
6274
+ "type": "string | string[]",
6275
+ "kind": "expression"
6276
+ }
6277
+ },
6247
6278
  {
6248
- "name": "v-model",
6279
+ "name": "close-button-text",
6249
6280
  "default": "-",
6250
- "description": "当前页码",
6281
+ "description": "关闭按钮文字,空则不展示",
6251
6282
  "options": [],
6252
6283
  "value": {
6253
- "type": "number",
6284
+ "type": "string",
6254
6285
  "kind": "expression"
6255
6286
  }
6256
6287
  },
6257
6288
  {
6258
- "name": "mode",
6259
- "default": "`multi`",
6260
- "description": "显示模式,可选值为 `simple`",
6289
+ "name": "delete-button-text",
6290
+ "default": "-",
6291
+ "description": "删除按钮文字,空则展示删除图标",
6261
6292
  "options": [],
6262
6293
  "value": {
6263
6294
  "type": "string",
@@ -6265,69 +6296,69 @@
6265
6296
  }
6266
6297
  },
6267
6298
  {
6268
- "name": "prev-text",
6269
- "default": "`上一页`",
6270
- "description": "上一页按钮文字",
6299
+ "name": "close-button-loading",
6300
+ "default": "`false`",
6301
+ "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效",
6271
6302
  "options": [],
6272
6303
  "value": {
6273
- "type": "string",
6304
+ "type": "boolean",
6274
6305
  "kind": "expression"
6275
6306
  }
6276
6307
  },
6277
6308
  {
6278
- "name": "next-text",
6279
- "default": "`下一页`",
6280
- "description": "下一页按钮文字",
6309
+ "name": "show-delete-key",
6310
+ "default": "`true`",
6311
+ "description": "是否展示删除图标",
6281
6312
  "options": [],
6282
6313
  "value": {
6283
- "type": "string",
6314
+ "type": "boolean",
6284
6315
  "kind": "expression"
6285
6316
  }
6286
6317
  },
6287
6318
  {
6288
- "name": "page-count",
6289
- "default": "根据页数计算",
6290
- "description": "总页数",
6319
+ "name": "blur-on-close",
6320
+ "default": "`true`",
6321
+ "description": "是否在点击关闭按钮时触发 blur 事件",
6291
6322
  "options": [],
6292
6323
  "value": {
6293
- "type": "number | string",
6324
+ "type": "boolean",
6294
6325
  "kind": "expression"
6295
6326
  }
6296
6327
  },
6297
6328
  {
6298
- "name": "total-items",
6299
- "default": "`0`",
6300
- "description": "总记录数",
6329
+ "name": "hide-on-click-outside",
6330
+ "default": "`true`",
6331
+ "description": "是否在点击外部时收起键盘",
6301
6332
  "options": [],
6302
6333
  "value": {
6303
- "type": "number | string",
6334
+ "type": "boolean",
6304
6335
  "kind": "expression"
6305
6336
  }
6306
6337
  },
6307
6338
  {
6308
- "name": "items-per-page",
6309
- "default": "`10`",
6310
- "description": "每页记录数",
6339
+ "name": "teleport",
6340
+ "default": "-",
6341
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
6311
6342
  "options": [],
6312
6343
  "value": {
6313
- "type": "number | string",
6344
+ "type": "string | Element",
6314
6345
  "kind": "expression"
6315
6346
  }
6316
6347
  },
6317
6348
  {
6318
- "name": "show-page-size",
6319
- "default": "`5`",
6320
- "description": "显示的页码个数",
6349
+ "name": "safe-area-inset-bottom",
6350
+ "default": "`true`",
6351
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
6321
6352
  "options": [],
6322
6353
  "value": {
6323
- "type": "number | string",
6354
+ "type": "boolean",
6324
6355
  "kind": "expression"
6325
6356
  }
6326
6357
  },
6327
6358
  {
6328
- "name": "force-ellipses",
6359
+ "name": "random-key-order",
6329
6360
  "default": "`false`",
6330
- "description": "是否显示省略号",
6361
+ "description": "是否将通过随机顺序展示按键",
6331
6362
  "options": [],
6332
6363
  "value": {
6333
6364
  "type": "boolean",
@@ -6337,72 +6368,129 @@
6337
6368
  ]
6338
6369
  },
6339
6370
  {
6340
- "name": "van-number-keyboard",
6371
+ "name": "van-overlay",
6341
6372
  "slots": [
6342
6373
  {
6343
- "name": "delete",
6344
- "description": "自定义删除按键内容"
6374
+ "name": "default",
6375
+ "description": "默认插槽,用于在遮罩层上方嵌入内容"
6376
+ }
6377
+ ],
6378
+ "events": [
6379
+ {
6380
+ "name": "click",
6381
+ "description": "点击时触发"
6382
+ }
6383
+ ],
6384
+ "attributes": [
6385
+ {
6386
+ "name": "show",
6387
+ "default": "`false`",
6388
+ "description": "是否展示遮罩层",
6389
+ "options": [],
6390
+ "value": {
6391
+ "type": "boolean",
6392
+ "kind": "expression"
6393
+ }
6345
6394
  },
6346
6395
  {
6347
- "name": "extra-key",
6348
- "description": "自定义左下角按键内容"
6396
+ "name": "z-index",
6397
+ "default": "`1`",
6398
+ "description": "z-index 层级",
6399
+ "options": [],
6400
+ "value": {
6401
+ "type": "number | string",
6402
+ "kind": "expression"
6403
+ }
6349
6404
  },
6350
6405
  {
6351
- "name": "title-left",
6352
- "description": "自定义标题栏左侧内容"
6353
- }
6354
- ],
6355
- "events": [
6406
+ "name": "duration",
6407
+ "default": "`0.3`",
6408
+ "description": "动画时长,单位秒,设置为 0 可以禁用动画",
6409
+ "options": [],
6410
+ "value": {
6411
+ "type": "number | string",
6412
+ "kind": "expression"
6413
+ }
6414
+ },
6356
6415
  {
6357
- "name": "input",
6358
- "description": "点击按键时触发"
6416
+ "name": "class-name",
6417
+ "default": "-",
6418
+ "description": "自定义类名",
6419
+ "options": [],
6420
+ "value": {
6421
+ "type": "string",
6422
+ "kind": "expression"
6423
+ }
6359
6424
  },
6360
6425
  {
6361
- "name": "delete",
6362
- "description": "点击删除键时触发"
6426
+ "name": "custom-style",
6427
+ "default": "-",
6428
+ "description": "自定义样式",
6429
+ "options": [],
6430
+ "value": {
6431
+ "type": "object",
6432
+ "kind": "expression"
6433
+ }
6363
6434
  },
6364
6435
  {
6365
- "name": "close",
6366
- "description": "点击关闭按钮时触发"
6436
+ "name": "lock-scroll",
6437
+ "default": "`true`",
6438
+ "description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动",
6439
+ "options": [],
6440
+ "value": {
6441
+ "type": "boolean",
6442
+ "kind": "expression"
6443
+ }
6444
+ }
6445
+ ]
6446
+ },
6447
+ {
6448
+ "name": "van-pagination",
6449
+ "slots": [
6450
+ {
6451
+ "name": "page",
6452
+ "description": "自定义页码"
6367
6453
  },
6368
6454
  {
6369
- "name": "blur",
6370
- "description": "点击关闭按钮或非键盘区域时触发"
6455
+ "name": "prev-text",
6456
+ "description": "自定义上一页按钮文字"
6371
6457
  },
6372
6458
  {
6373
- "name": "show",
6374
- "description": "键盘完全弹出时触发"
6375
- },
6459
+ "name": "next-text",
6460
+ "description": "自定义下一页按钮文字"
6461
+ }
6462
+ ],
6463
+ "events": [
6376
6464
  {
6377
- "name": "hide",
6378
- "description": "键盘完全收起时触发"
6465
+ "name": "change",
6466
+ "description": "页码改变时触发"
6379
6467
  }
6380
6468
  ],
6381
6469
  "attributes": [
6382
6470
  {
6383
6471
  "name": "v-model",
6384
6472
  "default": "-",
6385
- "description": "当前输入值",
6473
+ "description": "当前页码",
6386
6474
  "options": [],
6387
6475
  "value": {
6388
- "type": "string",
6476
+ "type": "number",
6389
6477
  "kind": "expression"
6390
6478
  }
6391
6479
  },
6392
6480
  {
6393
- "name": "show",
6394
- "default": "-",
6395
- "description": "是否显示键盘",
6481
+ "name": "mode",
6482
+ "default": "`multi`",
6483
+ "description": "显示模式,可选值为 `simple`",
6396
6484
  "options": [],
6397
6485
  "value": {
6398
- "type": "boolean",
6486
+ "type": "string",
6399
6487
  "kind": "expression"
6400
6488
  }
6401
6489
  },
6402
6490
  {
6403
- "name": "title",
6404
- "default": "-",
6405
- "description": "键盘标题",
6491
+ "name": "prev-text",
6492
+ "default": "`上一页`",
6493
+ "description": "上一页按钮文字",
6406
6494
  "options": [],
6407
6495
  "value": {
6408
6496
  "type": "string",
@@ -6410,9 +6498,9 @@
6410
6498
  }
6411
6499
  },
6412
6500
  {
6413
- "name": "theme",
6414
- "default": "`default`",
6415
- "description": "样式风格,可选值为 `custom`",
6501
+ "name": "next-text",
6502
+ "default": "`下一页`",
6503
+ "description": "下一页按钮文字",
6416
6504
  "options": [],
6417
6505
  "value": {
6418
6506
  "type": "string",
@@ -6420,9 +6508,9 @@
6420
6508
  }
6421
6509
  },
6422
6510
  {
6423
- "name": "maxlength",
6424
- "default": "-",
6425
- "description": "输入值最大长度",
6511
+ "name": "page-count",
6512
+ "default": "根据页数计算",
6513
+ "description": "总页数",
6426
6514
  "options": [],
6427
6515
  "value": {
6428
6516
  "type": "number | string",
@@ -6430,19 +6518,19 @@
6430
6518
  }
6431
6519
  },
6432
6520
  {
6433
- "name": "transition",
6434
- "default": "`true`",
6435
- "description": "是否开启过场动画",
6521
+ "name": "total-items",
6522
+ "default": "`0`",
6523
+ "description": "总记录数",
6436
6524
  "options": [],
6437
6525
  "value": {
6438
- "type": "boolean",
6526
+ "type": "number | string",
6439
6527
  "kind": "expression"
6440
6528
  }
6441
6529
  },
6442
6530
  {
6443
- "name": "z-index",
6444
- "default": "`100`",
6445
- "description": "键盘 z-index 层级",
6531
+ "name": "items-per-page",
6532
+ "default": "`10`",
6533
+ "description": "每页记录数",
6446
6534
  "options": [],
6447
6535
  "value": {
6448
6536
  "type": "number | string",
@@ -6450,89 +6538,91 @@
6450
6538
  }
6451
6539
  },
6452
6540
  {
6453
- "name": "extra-key",
6454
- "default": "`''`",
6455
- "description": "底部额外按键的内容",
6541
+ "name": "show-page-size",
6542
+ "default": "`5`",
6543
+ "description": "显示的页码个数",
6456
6544
  "options": [],
6457
6545
  "value": {
6458
- "type": "string | string[]",
6546
+ "type": "number | string",
6459
6547
  "kind": "expression"
6460
6548
  }
6461
6549
  },
6462
6550
  {
6463
- "name": "close-button-text",
6464
- "default": "-",
6465
- "description": "关闭按钮文字,空则不展示",
6551
+ "name": "force-ellipses",
6552
+ "default": "`false`",
6553
+ "description": "是否显示省略号",
6466
6554
  "options": [],
6467
6555
  "value": {
6468
- "type": "string",
6556
+ "type": "boolean",
6469
6557
  "kind": "expression"
6470
6558
  }
6471
- },
6559
+ }
6560
+ ]
6561
+ },
6562
+ {
6563
+ "name": "van-password-input",
6564
+ "slots": [],
6565
+ "events": [
6472
6566
  {
6473
- "name": "delete-button-text",
6474
- "default": "-",
6475
- "description": "删除按钮文字,空则展示删除图标",
6476
- "options": [],
6477
- "value": {
6478
- "type": "string",
6479
- "kind": "expression"
6480
- }
6481
- },
6567
+ "name": "focus",
6568
+ "description": "输入框聚焦时触发"
6569
+ }
6570
+ ],
6571
+ "attributes": [
6482
6572
  {
6483
- "name": "close-button-loading",
6484
- "default": "`false`",
6485
- "description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"` 时有效",
6573
+ "name": "value",
6574
+ "default": "`''`",
6575
+ "description": "密码值",
6486
6576
  "options": [],
6487
6577
  "value": {
6488
- "type": "boolean",
6578
+ "type": "string",
6489
6579
  "kind": "expression"
6490
6580
  }
6491
6581
  },
6492
6582
  {
6493
- "name": "show-delete-key",
6494
- "default": "`true`",
6495
- "description": "是否展示删除图标",
6583
+ "name": "info",
6584
+ "default": "-",
6585
+ "description": "输入框下方文字提示",
6496
6586
  "options": [],
6497
6587
  "value": {
6498
- "type": "boolean",
6588
+ "type": "string",
6499
6589
  "kind": "expression"
6500
6590
  }
6501
6591
  },
6502
6592
  {
6503
- "name": "blur-on-close",
6504
- "default": "`true`",
6505
- "description": "是否在点击关闭按钮时触发 blur 事件",
6593
+ "name": "error-info",
6594
+ "default": "-",
6595
+ "description": "输入框下方错误提示",
6506
6596
  "options": [],
6507
6597
  "value": {
6508
- "type": "boolean",
6598
+ "type": "string",
6509
6599
  "kind": "expression"
6510
6600
  }
6511
6601
  },
6512
6602
  {
6513
- "name": "hide-on-click-outside",
6514
- "default": "`true`",
6515
- "description": "是否在点击外部时收起键盘",
6603
+ "name": "length",
6604
+ "default": "`6`",
6605
+ "description": "密码最大长度",
6516
6606
  "options": [],
6517
6607
  "value": {
6518
- "type": "boolean",
6608
+ "type": "number | string",
6519
6609
  "kind": "expression"
6520
6610
  }
6521
6611
  },
6522
6612
  {
6523
- "name": "teleport",
6524
- "default": "-",
6525
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
6613
+ "name": "gutter",
6614
+ "default": "`0`",
6615
+ "description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`",
6526
6616
  "options": [],
6527
6617
  "value": {
6528
- "type": "string | Element",
6618
+ "type": "number | string",
6529
6619
  "kind": "expression"
6530
6620
  }
6531
6621
  },
6532
6622
  {
6533
- "name": "safe-area-inset-bottom",
6623
+ "name": "mask",
6534
6624
  "default": "`true`",
6535
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
6625
+ "description": "是否隐藏密码内容",
6536
6626
  "options": [],
6537
6627
  "value": {
6538
6628
  "type": "boolean",
@@ -6540,9 +6630,9 @@
6540
6630
  }
6541
6631
  },
6542
6632
  {
6543
- "name": "random-key-order",
6633
+ "name": "focused",
6544
6634
  "default": "`false`",
6545
- "description": "是否将通过随机顺序展示按键",
6635
+ "description": "是否已聚焦,聚焦时会显示光标",
6546
6636
  "options": [],
6547
6637
  "value": {
6548
6638
  "type": "boolean",
@@ -6853,150 +6943,58 @@
6853
6943
  "name": "overlay-class",
6854
6944
  "default": "object_",
6855
6945
  "description": "自定义遮罩层类名",
6856
- "options": [
6857
- "-"
6858
- ],
6859
- "value": {
6860
- "type": "string | Array \\",
6861
- "kind": "expression"
6862
- }
6863
- },
6864
- {
6865
- "name": "overlay-style",
6866
- "default": "-",
6867
- "description": "自定义遮罩层样式",
6868
- "options": [],
6869
- "value": {
6870
- "type": "object",
6871
- "kind": "expression"
6872
- }
6873
- },
6874
- {
6875
- "name": "show-arrow",
6876
- "default": "`true`",
6877
- "description": "是否展示小箭头",
6878
- "options": [],
6879
- "value": {
6880
- "type": "boolean",
6881
- "kind": "expression"
6882
- }
6883
- },
6884
- {
6885
- "name": "close-on-click-action",
6886
- "default": "`true`",
6887
- "description": "是否在点击选项后关闭",
6888
- "options": [],
6889
- "value": {
6890
- "type": "boolean",
6891
- "kind": "expression"
6892
- }
6893
- },
6894
- {
6895
- "name": "close-on-click-outside",
6896
- "default": "`true`",
6897
- "description": "是否在点击外部元素后关闭菜单",
6898
- "options": [],
6899
- "value": {
6900
- "type": "boolean",
6901
- "kind": "expression"
6902
- }
6903
- },
6904
- {
6905
- "name": "close-on-click-overlay",
6906
- "default": "`true`",
6907
- "description": "是否在点击遮罩层后关闭菜单",
6908
- "options": [],
6909
- "value": {
6910
- "type": "boolean",
6911
- "kind": "expression"
6912
- }
6913
- },
6914
- {
6915
- "name": "teleport",
6916
- "default": "`body`",
6917
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
6918
- "options": [],
6919
- "value": {
6920
- "type": "string | Element",
6921
- "kind": "expression"
6922
- }
6923
- },
6924
- {
6925
- "name": "icon-prefix",
6926
- "default": "`van-icon`",
6927
- "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
6928
- "options": [],
6929
- "value": {
6930
- "type": "string",
6931
- "kind": "expression"
6932
- }
6933
- }
6934
- ]
6935
- },
6936
- {
6937
- "name": "van-password-input",
6938
- "slots": [],
6939
- "events": [
6940
- {
6941
- "name": "focus",
6942
- "description": "输入框聚焦时触发"
6943
- }
6944
- ],
6945
- "attributes": [
6946
- {
6947
- "name": "value",
6948
- "default": "`''`",
6949
- "description": "密码值",
6950
- "options": [],
6946
+ "options": [
6947
+ "-"
6948
+ ],
6951
6949
  "value": {
6952
- "type": "string",
6950
+ "type": "string | Array \\",
6953
6951
  "kind": "expression"
6954
6952
  }
6955
6953
  },
6956
6954
  {
6957
- "name": "info",
6955
+ "name": "overlay-style",
6958
6956
  "default": "-",
6959
- "description": "输入框下方文字提示",
6957
+ "description": "自定义遮罩层样式",
6960
6958
  "options": [],
6961
6959
  "value": {
6962
- "type": "string",
6960
+ "type": "object",
6963
6961
  "kind": "expression"
6964
6962
  }
6965
6963
  },
6966
6964
  {
6967
- "name": "error-info",
6968
- "default": "-",
6969
- "description": "输入框下方错误提示",
6965
+ "name": "show-arrow",
6966
+ "default": "`true`",
6967
+ "description": "是否展示小箭头",
6970
6968
  "options": [],
6971
6969
  "value": {
6972
- "type": "string",
6970
+ "type": "boolean",
6973
6971
  "kind": "expression"
6974
6972
  }
6975
6973
  },
6976
6974
  {
6977
- "name": "length",
6978
- "default": "`6`",
6979
- "description": "密码最大长度",
6975
+ "name": "close-on-click-action",
6976
+ "default": "`true`",
6977
+ "description": "是否在点击选项后关闭",
6980
6978
  "options": [],
6981
6979
  "value": {
6982
- "type": "number | string",
6980
+ "type": "boolean",
6983
6981
  "kind": "expression"
6984
6982
  }
6985
6983
  },
6986
6984
  {
6987
- "name": "gutter",
6988
- "default": "`0`",
6989
- "description": "输入框格子之间的间距,如 `20px` `2em`,默认单位为`px`",
6985
+ "name": "close-on-click-outside",
6986
+ "default": "`true`",
6987
+ "description": "是否在点击外部元素后关闭菜单",
6990
6988
  "options": [],
6991
6989
  "value": {
6992
- "type": "number | string",
6990
+ "type": "boolean",
6993
6991
  "kind": "expression"
6994
6992
  }
6995
6993
  },
6996
6994
  {
6997
- "name": "mask",
6995
+ "name": "close-on-click-overlay",
6998
6996
  "default": "`true`",
6999
- "description": "是否隐藏密码内容",
6997
+ "description": "是否在点击遮罩层后关闭菜单",
7000
6998
  "options": [],
7001
6999
  "value": {
7002
7000
  "type": "boolean",
@@ -7004,12 +7002,22 @@
7004
7002
  }
7005
7003
  },
7006
7004
  {
7007
- "name": "focused",
7008
- "default": "`false`",
7009
- "description": "是否已聚焦,聚焦时会显示光标",
7005
+ "name": "teleport",
7006
+ "default": "`body`",
7007
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
7010
7008
  "options": [],
7011
7009
  "value": {
7012
- "type": "boolean",
7010
+ "type": "string | Element",
7011
+ "kind": "expression"
7012
+ }
7013
+ },
7014
+ {
7015
+ "name": "icon-prefix",
7016
+ "default": "`van-icon`",
7017
+ "description": "图标类名前缀,等同于 Icon 组件的 [class-prefix 属性](#/zh-CN/icon#props)",
7018
+ "options": [],
7019
+ "value": {
7020
+ "type": "string",
7013
7021
  "kind": "expression"
7014
7022
  }
7015
7023
  }
@@ -7263,64 +7271,34 @@
7263
7271
  ]
7264
7272
  },
7265
7273
  {
7266
- "name": "van-pull-refresh",
7267
- "slots": [
7268
- {
7269
- "name": "default",
7270
- "description": "自定义内容"
7271
- },
7272
- {
7273
- "name": "normal",
7274
- "description": "非下拉状态时顶部内容"
7275
- },
7276
- {
7277
- "name": "pulling",
7278
- "description": "下拉过程中顶部内容"
7279
- },
7280
- {
7281
- "name": "loosing",
7282
- "description": "释放过程中顶部内容"
7283
- },
7284
- {
7285
- "name": "loading",
7286
- "description": "加载过程中顶部内容"
7287
- },
7288
- {
7289
- "name": "success",
7290
- "description": "刷新成功提示内容"
7291
- }
7292
- ],
7293
- "events": [
7294
- {
7295
- "name": "refresh",
7296
- "description": "下拉刷新时触发"
7297
- }
7298
- ],
7274
+ "name": "van-progress",
7275
+ "slots": [],
7276
+ "events": [],
7299
7277
  "attributes": [
7300
7278
  {
7301
- "name": "v-model",
7302
- "default": "-",
7303
- "description": "是否处于加载中状态",
7279
+ "name": "percentage",
7280
+ "default": "`0`",
7281
+ "description": "进度百分比",
7304
7282
  "options": [],
7305
7283
  "value": {
7306
- "type": "boolean",
7284
+ "type": "number | string",
7307
7285
  "kind": "expression"
7308
7286
  }
7309
7287
  },
7310
7288
  {
7311
- "name": "pulling-text",
7312
- "default": "`下拉即可刷新...`",
7313
- "description": "下拉过程提示文案",
7289
+ "name": "stroke-width",
7290
+ "default": "`4px`",
7291
+ "description": "进度条粗细,默认单位为`px`",
7314
7292
  "options": [],
7315
7293
  "value": {
7316
- "type": "string",
7294
+ "type": "number | string",
7317
7295
  "kind": "expression"
7318
7296
  }
7319
7297
  },
7320
7298
  {
7321
- "name": "loosing-text",
7322
- "default": "`释放即可刷新...`",
7323
- "description": "释放过程提示文案",
7299
+ "name": "color",
7300
+ "default": "`#1989fa`",
7301
+ "description": "进度条颜色",
7324
7302
  "options": [],
7325
7303
  "value": {
7326
7304
  "type": "string",
@@ -7328,9 +7306,9 @@
7328
7306
  }
7329
7307
  },
7330
7308
  {
7331
- "name": "loading-text",
7332
- "default": "`加载中...`",
7333
- "description": "加载过程提示文案",
7309
+ "name": "track-color",
7310
+ "default": "`#e5e5e5`",
7311
+ "description": "轨道颜色",
7334
7312
  "options": [],
7335
7313
  "value": {
7336
7314
  "type": "string",
@@ -7338,9 +7316,9 @@
7338
7316
  }
7339
7317
  },
7340
7318
  {
7341
- "name": "success-text",
7342
- "default": "-",
7343
- "description": "刷新成功提示文案",
7319
+ "name": "pivot-text",
7320
+ "default": "百分比",
7321
+ "description": "进度文字内容",
7344
7322
  "options": [],
7345
7323
  "value": {
7346
7324
  "type": "string",
@@ -7348,49 +7326,39 @@
7348
7326
  }
7349
7327
  },
7350
7328
  {
7351
- "name": "success-duration",
7352
- "default": "`500`",
7353
- "description": "刷新成功提示展示时长(ms)",
7354
- "options": [],
7355
- "value": {
7356
- "type": "number | string",
7357
- "kind": "expression"
7358
- }
7359
- },
7360
- {
7361
- "name": "animation-duration",
7362
- "default": "`300`",
7363
- "description": "动画时长",
7329
+ "name": "pivot-color",
7330
+ "default": "同进度条颜色",
7331
+ "description": "进度文字背景色",
7364
7332
  "options": [],
7365
7333
  "value": {
7366
- "type": "number | string",
7334
+ "type": "string",
7367
7335
  "kind": "expression"
7368
7336
  }
7369
7337
  },
7370
7338
  {
7371
- "name": "head-height",
7372
- "default": "`50`",
7373
- "description": "顶部内容高度",
7339
+ "name": "text-color",
7340
+ "default": "`white`",
7341
+ "description": "进度文字颜色",
7374
7342
  "options": [],
7375
7343
  "value": {
7376
- "type": "number | string",
7344
+ "type": "string",
7377
7345
  "kind": "expression"
7378
7346
  }
7379
7347
  },
7380
7348
  {
7381
- "name": "pull-distance",
7382
- "default": "`head-height` 一致",
7383
- "description": "触发下拉刷新的距离",
7349
+ "name": "inactive",
7350
+ "default": "`false`",
7351
+ "description": "是否置灰",
7384
7352
  "options": [],
7385
7353
  "value": {
7386
- "type": "number | string",
7354
+ "type": "boolean",
7387
7355
  "kind": "expression"
7388
7356
  }
7389
7357
  },
7390
7358
  {
7391
- "name": "disabled",
7392
- "default": "`false`",
7393
- "description": "是否禁用下拉刷新",
7359
+ "name": "show-pivot",
7360
+ "default": "`true`",
7361
+ "description": "是否显示进度文字",
7394
7362
  "options": [],
7395
7363
  "value": {
7396
7364
  "type": "boolean",
@@ -7400,34 +7368,64 @@
7400
7368
  ]
7401
7369
  },
7402
7370
  {
7403
- "name": "van-progress",
7404
- "slots": [],
7405
- "events": [],
7371
+ "name": "van-pull-refresh",
7372
+ "slots": [
7373
+ {
7374
+ "name": "default",
7375
+ "description": "自定义内容"
7376
+ },
7377
+ {
7378
+ "name": "normal",
7379
+ "description": "非下拉状态时顶部内容"
7380
+ },
7381
+ {
7382
+ "name": "pulling",
7383
+ "description": "下拉过程中顶部内容"
7384
+ },
7385
+ {
7386
+ "name": "loosing",
7387
+ "description": "释放过程中顶部内容"
7388
+ },
7389
+ {
7390
+ "name": "loading",
7391
+ "description": "加载过程中顶部内容"
7392
+ },
7393
+ {
7394
+ "name": "success",
7395
+ "description": "刷新成功提示内容"
7396
+ }
7397
+ ],
7398
+ "events": [
7399
+ {
7400
+ "name": "refresh",
7401
+ "description": "下拉刷新时触发"
7402
+ }
7403
+ ],
7406
7404
  "attributes": [
7407
7405
  {
7408
- "name": "percentage",
7409
- "default": "`0`",
7410
- "description": "进度百分比",
7406
+ "name": "v-model",
7407
+ "default": "-",
7408
+ "description": "是否处于加载中状态",
7411
7409
  "options": [],
7412
7410
  "value": {
7413
- "type": "number | string",
7411
+ "type": "boolean",
7414
7412
  "kind": "expression"
7415
7413
  }
7416
7414
  },
7417
7415
  {
7418
- "name": "stroke-width",
7419
- "default": "`4px`",
7420
- "description": "进度条粗细,默认单位为`px`",
7416
+ "name": "pulling-text",
7417
+ "default": "`下拉即可刷新...`",
7418
+ "description": "下拉过程提示文案",
7421
7419
  "options": [],
7422
7420
  "value": {
7423
- "type": "number | string",
7421
+ "type": "string",
7424
7422
  "kind": "expression"
7425
7423
  }
7426
7424
  },
7427
7425
  {
7428
- "name": "color",
7429
- "default": "`#1989fa`",
7430
- "description": "进度条颜色",
7426
+ "name": "loosing-text",
7427
+ "default": "`释放即可刷新...`",
7428
+ "description": "释放过程提示文案",
7431
7429
  "options": [],
7432
7430
  "value": {
7433
7431
  "type": "string",
@@ -7435,9 +7433,9 @@
7435
7433
  }
7436
7434
  },
7437
7435
  {
7438
- "name": "track-color",
7439
- "default": "`#e5e5e5`",
7440
- "description": "轨道颜色",
7436
+ "name": "loading-text",
7437
+ "default": "`加载中...`",
7438
+ "description": "加载过程提示文案",
7441
7439
  "options": [],
7442
7440
  "value": {
7443
7441
  "type": "string",
@@ -7445,9 +7443,9 @@
7445
7443
  }
7446
7444
  },
7447
7445
  {
7448
- "name": "pivot-text",
7449
- "default": "百分比",
7450
- "description": "进度文字内容",
7446
+ "name": "success-text",
7447
+ "default": "-",
7448
+ "description": "刷新成功提示文案",
7451
7449
  "options": [],
7452
7450
  "value": {
7453
7451
  "type": "string",
@@ -7455,39 +7453,49 @@
7455
7453
  }
7456
7454
  },
7457
7455
  {
7458
- "name": "pivot-color",
7459
- "default": "同进度条颜色",
7460
- "description": "进度文字背景色",
7456
+ "name": "success-duration",
7457
+ "default": "`500`",
7458
+ "description": "刷新成功提示展示时长(ms)",
7461
7459
  "options": [],
7462
7460
  "value": {
7463
- "type": "string",
7461
+ "type": "number | string",
7464
7462
  "kind": "expression"
7465
7463
  }
7466
7464
  },
7467
7465
  {
7468
- "name": "text-color",
7469
- "default": "`white`",
7470
- "description": "进度文字颜色",
7466
+ "name": "animation-duration",
7467
+ "default": "`300`",
7468
+ "description": "动画时长",
7469
+ "options": [],
7470
+ "value": {
7471
+ "type": "number | string",
7472
+ "kind": "expression"
7473
+ }
7474
+ },
7475
+ {
7476
+ "name": "head-height",
7477
+ "default": "`50`",
7478
+ "description": "顶部内容高度",
7471
7479
  "options": [],
7472
7480
  "value": {
7473
- "type": "string",
7481
+ "type": "number | string",
7474
7482
  "kind": "expression"
7475
7483
  }
7476
7484
  },
7477
7485
  {
7478
- "name": "inactive",
7479
- "default": "`false`",
7480
- "description": "是否置灰",
7486
+ "name": "pull-distance",
7487
+ "default": "`head-height` 一致",
7488
+ "description": "触发下拉刷新的距离",
7481
7489
  "options": [],
7482
7490
  "value": {
7483
- "type": "boolean",
7491
+ "type": "number | string",
7484
7492
  "kind": "expression"
7485
7493
  }
7486
7494
  },
7487
7495
  {
7488
- "name": "show-pivot",
7489
- "default": "`true`",
7490
- "description": "是否显示进度文字",
7496
+ "name": "disabled",
7497
+ "default": "`false`",
7498
+ "description": "是否禁用下拉刷新",
7491
7499
  "options": [],
7492
7500
  "value": {
7493
7501
  "type": "boolean",
@@ -7568,7 +7576,7 @@
7568
7576
  {
7569
7577
  "name": "icon-size",
7570
7578
  "default": "`20px`",
7571
- "description": "图标大小,默认单位为`px`",
7579
+ "description": "图标大小,默认单位为 `px`",
7572
7580
  "options": [],
7573
7581
  "value": {
7574
7582
  "type": "number | string",
@@ -7620,7 +7628,7 @@
7620
7628
  {
7621
7629
  "name": "direction",
7622
7630
  "default": "`vertical`",
7623
- "description": "排列方向,可选值为`horizontal`",
7631
+ "description": "排列方向,可选值为 `horizontal`",
7624
7632
  "options": [],
7625
7633
  "value": {
7626
7634
  "type": "string",
@@ -7630,7 +7638,7 @@
7630
7638
  {
7631
7639
  "name": "icon-size",
7632
7640
  "default": "`20px`",
7633
- "description": "所有单选框的图标大小,默认单位为`px`",
7641
+ "description": "所有单选框的图标大小,默认单位为 `px`",
7634
7642
  "options": [],
7635
7643
  "value": {
7636
7644
  "type": "number | string",
@@ -7856,6 +7864,16 @@
7856
7864
  }
7857
7865
  ],
7858
7866
  "attributes": [
7867
+ {
7868
+ "name": "v-model",
7869
+ "default": "-",
7870
+ "description": "当前输入的值",
7871
+ "options": [],
7872
+ "value": {
7873
+ "type": "number | string",
7874
+ "kind": "expression"
7875
+ }
7876
+ },
7859
7877
  {
7860
7878
  "name": "label",
7861
7879
  "default": "-",
@@ -7866,6 +7884,16 @@
7866
7884
  "kind": "expression"
7867
7885
  }
7868
7886
  },
7887
+ {
7888
+ "name": "name",
7889
+ "default": "-",
7890
+ "description": "名称,作为提交表单时的标识符",
7891
+ "options": [],
7892
+ "value": {
7893
+ "type": "string",
7894
+ "kind": "expression"
7895
+ }
7896
+ },
7869
7897
  {
7870
7898
  "name": "shape",
7871
7899
  "default": "`square`",
@@ -8065,6 +8093,16 @@
8065
8093
  "type": "string",
8066
8094
  "kind": "expression"
8067
8095
  }
8096
+ },
8097
+ {
8098
+ "name": "autocomplete",
8099
+ "default": "-",
8100
+ "description": "input 标签原生的[自动完成属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)",
8101
+ "options": [],
8102
+ "value": {
8103
+ "type": "string",
8104
+ "kind": "expression"
8105
+ }
8068
8106
  }
8069
8107
  ]
8070
8108
  },
@@ -8175,6 +8213,16 @@
8175
8213
  "kind": "expression"
8176
8214
  }
8177
8215
  },
8216
+ {
8217
+ "name": "round",
8218
+ "default": "`true`",
8219
+ "description": "是否显示圆角",
8220
+ "options": [],
8221
+ "value": {
8222
+ "type": "boolean",
8223
+ "kind": "expression"
8224
+ }
8225
+ },
8178
8226
  {
8179
8227
  "name": "overlay",
8180
8228
  "default": "`true`",
@@ -8510,7 +8558,7 @@
8510
8558
  },
8511
8559
  {
8512
8560
  "name": "right-button",
8513
- "description": "自定义右侧滑块按钮 (双滑块模式下)"
8561
+ "description": "自定义右侧滑块按钮(双滑块模式下)"
8514
8562
  }
8515
8563
  ],
8516
8564
  "events": [
@@ -9012,6 +9060,10 @@
9012
9060
  {
9013
9061
  "name": "van-step",
9014
9062
  "slots": [
9063
+ {
9064
+ "name": "default",
9065
+ "description": "步骤内容"
9066
+ },
9015
9067
  {
9016
9068
  "name": "active-icon",
9017
9069
  "description": "自定义激活状态图标"
@@ -9263,99 +9315,6 @@
9263
9315
  }
9264
9316
  ]
9265
9317
  },
9266
- {
9267
- "name": "van-swipe-cell",
9268
- "slots": [
9269
- {
9270
- "name": "default",
9271
- "description": "默认显示的内容"
9272
- },
9273
- {
9274
- "name": "left",
9275
- "description": "左侧滑动区域的内容"
9276
- },
9277
- {
9278
- "name": "right",
9279
- "description": "右侧滑动区域的内容"
9280
- }
9281
- ],
9282
- "events": [
9283
- {
9284
- "name": "click",
9285
- "description": "点击时触发"
9286
- },
9287
- {
9288
- "name": "open",
9289
- "description": "打开时触发"
9290
- },
9291
- {
9292
- "name": "close",
9293
- "description": "关闭时触发"
9294
- }
9295
- ],
9296
- "attributes": [
9297
- {
9298
- "name": "name",
9299
- "default": "`''`",
9300
- "description": "标识符,可以在事件参数中获取到",
9301
- "options": [],
9302
- "value": {
9303
- "type": "number | string",
9304
- "kind": "expression"
9305
- }
9306
- },
9307
- {
9308
- "name": "left-width",
9309
- "default": "`auto`",
9310
- "description": "指定左侧滑动区域宽度,单位为 `px`",
9311
- "options": [],
9312
- "value": {
9313
- "type": "number | string",
9314
- "kind": "expression"
9315
- }
9316
- },
9317
- {
9318
- "name": "right-width",
9319
- "default": "`auto`",
9320
- "description": "指定右侧滑动区域宽度,单位为 `px`",
9321
- "options": [],
9322
- "value": {
9323
- "type": "number | string",
9324
- "kind": "expression"
9325
- }
9326
- },
9327
- {
9328
- "name": "before-close",
9329
- "default": "-",
9330
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
9331
- "options": [],
9332
- "value": {
9333
- "type": "(args) => boolean | Promise\\<boolean\\>",
9334
- "kind": "expression"
9335
- }
9336
- },
9337
- {
9338
- "name": "disabled",
9339
- "default": "`false`",
9340
- "description": "是否禁用滑动",
9341
- "options": [],
9342
- "value": {
9343
- "type": "boolean",
9344
- "kind": "expression"
9345
- }
9346
- },
9347
- {
9348
- "name": "stop-propagation",
9349
- "default": "`false`",
9350
- "description": "是否阻止滑动事件冒泡",
9351
- "options": [],
9352
- "value": {
9353
- "type": "boolean",
9354
- "kind": "expression"
9355
- }
9356
- }
9357
- ]
9358
- },
9359
9318
  {
9360
9319
  "name": "van-swipe",
9361
9320
  "slots": [
@@ -9508,6 +9467,99 @@
9508
9467
  ],
9509
9468
  "attributes": []
9510
9469
  },
9470
+ {
9471
+ "name": "van-swipe-cell",
9472
+ "slots": [
9473
+ {
9474
+ "name": "default",
9475
+ "description": "默认显示的内容"
9476
+ },
9477
+ {
9478
+ "name": "left",
9479
+ "description": "左侧滑动区域的内容"
9480
+ },
9481
+ {
9482
+ "name": "right",
9483
+ "description": "右侧滑动区域的内容"
9484
+ }
9485
+ ],
9486
+ "events": [
9487
+ {
9488
+ "name": "click",
9489
+ "description": "点击时触发"
9490
+ },
9491
+ {
9492
+ "name": "open",
9493
+ "description": "打开时触发"
9494
+ },
9495
+ {
9496
+ "name": "close",
9497
+ "description": "关闭时触发"
9498
+ }
9499
+ ],
9500
+ "attributes": [
9501
+ {
9502
+ "name": "name",
9503
+ "default": "`''`",
9504
+ "description": "标识符,可以在事件参数中获取到",
9505
+ "options": [],
9506
+ "value": {
9507
+ "type": "number | string",
9508
+ "kind": "expression"
9509
+ }
9510
+ },
9511
+ {
9512
+ "name": "left-width",
9513
+ "default": "`auto`",
9514
+ "description": "指定左侧滑动区域宽度,单位为 `px`",
9515
+ "options": [],
9516
+ "value": {
9517
+ "type": "number | string",
9518
+ "kind": "expression"
9519
+ }
9520
+ },
9521
+ {
9522
+ "name": "right-width",
9523
+ "default": "`auto`",
9524
+ "description": "指定右侧滑动区域宽度,单位为 `px`",
9525
+ "options": [],
9526
+ "value": {
9527
+ "type": "number | string",
9528
+ "kind": "expression"
9529
+ }
9530
+ },
9531
+ {
9532
+ "name": "before-close",
9533
+ "default": "-",
9534
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
9535
+ "options": [],
9536
+ "value": {
9537
+ "type": "(args) => boolean | Promise\\<boolean\\>",
9538
+ "kind": "expression"
9539
+ }
9540
+ },
9541
+ {
9542
+ "name": "disabled",
9543
+ "default": "`false`",
9544
+ "description": "是否禁用滑动",
9545
+ "options": [],
9546
+ "value": {
9547
+ "type": "boolean",
9548
+ "kind": "expression"
9549
+ }
9550
+ },
9551
+ {
9552
+ "name": "stop-propagation",
9553
+ "default": "`false`",
9554
+ "description": "是否阻止滑动事件冒泡",
9555
+ "options": [],
9556
+ "value": {
9557
+ "type": "boolean",
9558
+ "kind": "expression"
9559
+ }
9560
+ }
9561
+ ]
9562
+ },
9511
9563
  {
9512
9564
  "name": "van-switch",
9513
9565
  "slots": [],
@@ -9742,7 +9794,7 @@
9742
9794
  {
9743
9795
  "name": "sticky",
9744
9796
  "default": "`false`",
9745
- "description": "是否使用粘性定位布局",
9797
+ "description": "是否使用粘性布局",
9746
9798
  "options": [],
9747
9799
  "value": {
9748
9800
  "type": "boolean",
@@ -9782,7 +9834,7 @@
9782
9834
  {
9783
9835
  "name": "offset-top",
9784
9836
  "default": "`0`",
9785
- "description": "粘性定位布局下与顶部的最小距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
9837
+ "description": "粘性布局下吸顶时与顶部的距离,支持 `px` `vw` `vh` `rem` 单位,默认 `px`",
9786
9838
  "options": [],
9787
9839
  "value": {
9788
9840
  "type": "number | string",
@@ -10573,7 +10625,7 @@
10573
10625
  "default": "(file: File) => boolean_",
10574
10626
  "description": "文件大小限制,单位为 `byte`",
10575
10627
  "options": [
10576
- "-"
10628
+ "Infinity"
10577
10629
  ],
10578
10630
  "value": {
10579
10631
  "type": "number | string \\",
@@ -10582,7 +10634,7 @@
10582
10634
  },
10583
10635
  {
10584
10636
  "name": "max-count",
10585
- "default": "-",
10637
+ "default": "`Infinity`",
10586
10638
  "description": "文件上传数量限制",
10587
10639
  "options": [],
10588
10640
  "value": {