vant 3.4.5 → 4.0.0-alpha.1

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 (825) hide show
  1. package/changelog.generated.md +197 -0
  2. package/es/action-bar/index.css +1 -1
  3. package/es/action-bar/index.less +4 -6
  4. package/es/action-bar-button/index.css +1 -1
  5. package/es/action-bar-button/index.less +9 -11
  6. package/es/action-bar-icon/index.css +1 -1
  7. package/es/action-bar-icon/index.less +10 -12
  8. package/es/action-sheet/index.css +1 -1
  9. package/es/action-sheet/index.less +23 -24
  10. package/es/address-edit/AddressEdit.d.ts +6 -6
  11. package/es/address-edit/AddressEdit.js +29 -33
  12. package/es/address-edit/AddressEditDetail.d.ts +2 -2
  13. package/es/address-edit/AddressEditDetail.js +5 -14
  14. package/es/address-edit/index.css +1 -1
  15. package/es/address-edit/index.d.ts +6 -6
  16. package/es/address-edit/index.less +8 -15
  17. package/es/address-edit/types.d.ts +2 -4
  18. package/es/address-list/AddressList.d.ts +4 -4
  19. package/es/address-list/AddressList.js +5 -5
  20. package/es/address-list/AddressListItem.js +3 -3
  21. package/es/address-list/index.css +1 -1
  22. package/es/address-list/index.d.ts +4 -4
  23. package/es/address-list/index.less +20 -22
  24. package/es/area/Area.d.ts +13 -25
  25. package/es/area/Area.js +43 -208
  26. package/es/area/index.d.ts +11 -19
  27. package/es/area/types.d.ts +2 -17
  28. package/es/area/utils.d.ts +6 -0
  29. package/es/area/utils.js +85 -0
  30. package/es/badge/index.css +1 -1
  31. package/es/badge/index.less +15 -17
  32. package/es/button/index.css +1 -1
  33. package/es/button/index.less +55 -52
  34. package/es/calendar/Calendar.d.ts +10 -6
  35. package/es/calendar/Calendar.js +7 -5
  36. package/es/calendar/CalendarHeader.d.ts +2 -2
  37. package/es/calendar/CalendarHeader.js +2 -2
  38. package/es/calendar/CalendarMonth.d.ts +1 -2
  39. package/es/calendar/CalendarMonth.js +2 -2
  40. package/es/calendar/index.css +1 -1
  41. package/es/calendar/index.d.ts +9 -6
  42. package/es/calendar/index.less +41 -37
  43. package/es/card/Card.d.ts +2 -2
  44. package/es/card/Card.js +3 -3
  45. package/es/card/index.css +1 -1
  46. package/es/card/index.d.ts +2 -2
  47. package/es/card/index.less +23 -25
  48. package/es/cascader/Cascader.d.ts +2 -2
  49. package/es/cascader/Cascader.js +3 -3
  50. package/es/cascader/index.css +1 -1
  51. package/es/cascader/index.d.ts +2 -2
  52. package/es/cascader/index.less +17 -19
  53. package/es/cell/Cell.js +1 -4
  54. package/es/cell/index.css +1 -1
  55. package/es/cell/index.less +21 -27
  56. package/es/cell-group/index.css +1 -1
  57. package/es/cell-group/index.less +12 -13
  58. package/es/checkbox/index.css +1 -1
  59. package/es/checkbox/index.less +12 -14
  60. package/es/circle/index.css +1 -1
  61. package/es/circle/index.less +8 -10
  62. package/es/collapse-item/index.css +1 -1
  63. package/es/collapse-item/index.less +12 -12
  64. package/es/config-provider/ConfigProvider.d.ts +14 -0
  65. package/es/config-provider/ConfigProvider.js +11 -2
  66. package/es/config-provider/index.d.ts +10 -1
  67. package/es/contact-card/ContactCard.js +2 -2
  68. package/es/contact-card/index.css +1 -1
  69. package/es/contact-card/index.less +7 -9
  70. package/es/contact-edit/ContactEdit.d.ts +2 -2
  71. package/es/contact-edit/ContactEdit.js +3 -4
  72. package/es/contact-edit/index.css +1 -1
  73. package/es/contact-edit/index.d.ts +2 -2
  74. package/es/contact-edit/index.less +7 -9
  75. package/es/contact-list/ContactList.js +4 -4
  76. package/es/contact-list/index.css +1 -1
  77. package/es/contact-list/index.less +9 -11
  78. package/es/count-down/index.css +1 -1
  79. package/es/count-down/index.less +4 -6
  80. package/es/coupon/index.css +1 -1
  81. package/es/coupon/index.less +28 -31
  82. package/es/coupon-cell/index.css +1 -1
  83. package/es/coupon-cell/index.less +2 -4
  84. package/es/coupon-list/CouponList.js +2 -2
  85. package/es/coupon-list/index.css +1 -1
  86. package/es/coupon-list/index.less +15 -17
  87. package/es/date-picker/DatePicker.d.ts +168 -0
  88. package/es/date-picker/DatePicker.js +111 -0
  89. package/es/{datetime-picker/DatePicker.d.ts → date-picker/index.d.ts} +40 -28
  90. package/es/date-picker/index.js +8 -0
  91. package/es/{datetime-picker → date-picker}/style/index.d.ts +0 -0
  92. package/es/{datetime-picker → date-picker}/style/index.js +0 -0
  93. package/es/{datetime-picker → date-picker}/style/less.d.ts +0 -0
  94. package/es/{datetime-picker → date-picker}/style/less.js +0 -0
  95. package/es/{datetime-picker → date-picker}/utils.d.ts +15 -11
  96. package/es/date-picker/utils.js +40 -0
  97. package/es/dialog/index.css +1 -1
  98. package/es/dialog/index.less +24 -24
  99. package/es/divider/index.css +1 -1
  100. package/es/divider/index.less +10 -12
  101. package/es/dropdown-item/index.css +1 -1
  102. package/es/dropdown-item/index.less +2 -5
  103. package/es/dropdown-menu/index.css +1 -1
  104. package/es/dropdown-menu/index.less +14 -17
  105. package/es/empty/index.css +1 -1
  106. package/es/empty/index.less +9 -11
  107. package/es/field/Field.d.ts +4 -4
  108. package/es/field/Field.js +4 -4
  109. package/es/field/index.css +1 -1
  110. package/es/field/index.d.ts +4 -4
  111. package/es/field/index.less +20 -23
  112. package/es/grid-item/index.css +1 -1
  113. package/es/grid-item/index.less +10 -13
  114. package/es/image/index.css +1 -1
  115. package/es/image/index.less +10 -12
  116. package/es/image-preview/index.css +1 -1
  117. package/es/image-preview/index.less +11 -13
  118. package/es/index-anchor/index.css +1 -1
  119. package/es/index-anchor/index.less +12 -14
  120. package/es/index-bar/IndexBar.js +25 -4
  121. package/es/index-bar/index.css +1 -1
  122. package/es/index-bar/index.less +7 -8
  123. package/es/index.d.ts +3 -2
  124. package/es/index.js +7 -4
  125. package/es/list/index.css +1 -1
  126. package/es/list/index.less +5 -7
  127. package/es/loading/index.css +1 -1
  128. package/es/loading/index.less +7 -10
  129. package/es/locale/lang/la-LA.d.ts +64 -0
  130. package/es/locale/lang/la-LA.js +66 -0
  131. package/es/nav-bar/NavBar.d.ts +4 -4
  132. package/es/nav-bar/NavBar.js +6 -6
  133. package/es/nav-bar/index.css +1 -1
  134. package/es/nav-bar/index.d.ts +4 -4
  135. package/es/nav-bar/index.less +11 -13
  136. package/es/notice-bar/index.css +1 -1
  137. package/es/notice-bar/index.less +11 -13
  138. package/es/notify/index.css +1 -1
  139. package/es/notify/index.less +13 -15
  140. package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
  141. package/es/number-keyboard/index.css +1 -1
  142. package/es/number-keyboard/index.d.ts +1 -1
  143. package/es/number-keyboard/index.less +26 -22
  144. package/es/overlay/index.css +1 -1
  145. package/es/overlay/index.less +4 -6
  146. package/es/pagination/index.css +1 -1
  147. package/es/pagination/index.less +13 -15
  148. package/es/password-input/index.css +1 -1
  149. package/es/password-input/index.less +20 -22
  150. package/es/picker/Picker.d.ts +26 -28
  151. package/es/picker/Picker.js +91 -196
  152. package/es/picker/PickerColumn.d.ts +21 -30
  153. package/es/picker/PickerColumn.js +61 -111
  154. package/es/picker/index.css +1 -1
  155. package/es/picker/index.d.ts +19 -20
  156. package/es/picker/index.less +32 -19
  157. package/es/picker/types.d.ts +13 -19
  158. package/es/picker/utils.d.ts +10 -0
  159. package/es/picker/utils.js +73 -0
  160. package/es/popover/Popover.d.ts +1 -1
  161. package/es/popover/index.css +1 -1
  162. package/es/popover/index.d.ts +1 -1
  163. package/es/popover/index.less +21 -23
  164. package/es/popup/Popup.d.ts +7 -3
  165. package/es/popup/Popup.js +6 -3
  166. package/es/popup/index.css +1 -1
  167. package/es/popup/index.d.ts +6 -3
  168. package/es/popup/index.less +20 -22
  169. package/es/progress/index.css +1 -1
  170. package/es/progress/index.less +14 -18
  171. package/es/pull-refresh/index.css +1 -1
  172. package/es/pull-refresh/index.less +5 -7
  173. package/es/radio/index.css +1 -1
  174. package/es/radio/index.less +12 -14
  175. package/es/rate/index.css +1 -1
  176. package/es/rate/index.less +6 -8
  177. package/es/search/Search.d.ts +4 -4
  178. package/es/search/Search.js +7 -7
  179. package/es/search/index.css +1 -1
  180. package/es/search/index.d.ts +4 -4
  181. package/es/search/index.less +16 -18
  182. package/es/share-sheet/index.css +1 -1
  183. package/es/share-sheet/index.less +17 -18
  184. package/es/sidebar/index.css +1 -1
  185. package/es/sidebar/index.less +2 -4
  186. package/es/sidebar-item/index.css +1 -1
  187. package/es/sidebar-item/index.less +17 -19
  188. package/es/skeleton/Skeleton.js +6 -4
  189. package/es/skeleton/index.css +1 -1
  190. package/es/skeleton/index.less +14 -16
  191. package/es/slider/Slider.d.ts +4 -4
  192. package/es/slider/Slider.js +4 -5
  193. package/es/slider/index.css +1 -1
  194. package/es/slider/index.d.ts +4 -4
  195. package/es/slider/index.less +20 -18
  196. package/es/step/index.css +1 -1
  197. package/es/step/index.less +15 -17
  198. package/es/stepper/Stepper.d.ts +1 -1
  199. package/es/stepper/index.css +1 -1
  200. package/es/stepper/index.d.ts +1 -1
  201. package/es/stepper/index.less +20 -24
  202. package/es/steps/Steps.d.ts +2 -2
  203. package/es/steps/Steps.js +2 -2
  204. package/es/steps/index.css +1 -1
  205. package/es/steps/index.d.ts +2 -2
  206. package/es/steps/index.less +3 -5
  207. package/es/sticky/index.css +1 -1
  208. package/es/sticky/index.less +2 -4
  209. package/es/style/animation.css +1 -1
  210. package/es/style/animation.less +18 -22
  211. package/es/style/base.css +1 -1
  212. package/es/style/base.less +11 -7
  213. package/es/style/css-variables.css +1 -1
  214. package/es/style/css-variables.less +76 -61
  215. package/es/style/mixins/hairline.less +0 -2
  216. package/es/style/normalize.css +1 -1
  217. package/es/style/normalize.less +1 -3
  218. package/es/submit-bar/index.css +1 -1
  219. package/es/submit-bar/index.less +26 -28
  220. package/es/swipe/index.css +1 -1
  221. package/es/swipe/index.less +11 -13
  222. package/es/swipe-cell/SwipeCell.js +1 -1
  223. package/es/switch/index.css +1 -1
  224. package/es/switch/index.less +24 -24
  225. package/es/tabbar/index.css +1 -1
  226. package/es/tabbar/index.less +5 -7
  227. package/es/tabbar-item/index.css +1 -1
  228. package/es/tabbar-item/index.less +9 -11
  229. package/es/tabs/Tabs.d.ts +2 -4
  230. package/es/tabs/Tabs.js +14 -27
  231. package/es/tabs/index.css +1 -1
  232. package/es/tabs/index.d.ts +2 -4
  233. package/es/tabs/index.less +17 -20
  234. package/es/tag/index.css +1 -1
  235. package/es/tag/index.less +22 -25
  236. package/es/time-picker/TimePicker.d.ts +214 -0
  237. package/es/time-picker/TimePicker.js +71 -0
  238. package/{lib/datetime-picker/TimePicker.d.ts → es/time-picker/index.d.ts} +60 -20
  239. package/es/time-picker/index.js +8 -0
  240. package/{lib/datetime-picker → es/time-picker}/style/index.d.ts +0 -0
  241. package/es/time-picker/style/index.js +3 -0
  242. package/{lib/datetime-picker → es/time-picker}/style/less.d.ts +0 -0
  243. package/es/time-picker/style/less.js +3 -0
  244. package/es/toast/Toast.js +1 -0
  245. package/es/toast/index.css +1 -1
  246. package/es/toast/index.less +19 -21
  247. package/es/tree-select/TreeSelect.d.ts +3 -3
  248. package/es/tree-select/TreeSelect.js +3 -3
  249. package/es/tree-select/index.css +1 -1
  250. package/es/tree-select/index.d.ts +3 -3
  251. package/es/tree-select/index.less +12 -14
  252. package/es/uploader/Uploader.d.ts +4 -4
  253. package/es/uploader/Uploader.js +4 -4
  254. package/es/uploader/index.css +1 -1
  255. package/es/uploader/index.d.ts +4 -4
  256. package/es/uploader/index.less +31 -33
  257. package/es/utils/basic.d.ts +1 -0
  258. package/es/utils/basic.js +2 -0
  259. package/lib/action-bar/index.css +1 -1
  260. package/lib/action-bar/index.less +4 -6
  261. package/lib/action-bar-button/index.css +1 -1
  262. package/lib/action-bar-button/index.less +9 -11
  263. package/lib/action-bar-icon/index.css +1 -1
  264. package/lib/action-bar-icon/index.less +10 -12
  265. package/lib/action-sheet/index.css +1 -1
  266. package/lib/action-sheet/index.less +23 -24
  267. package/lib/address-edit/AddressEdit.d.ts +6 -6
  268. package/lib/address-edit/AddressEdit.js +29 -33
  269. package/lib/address-edit/AddressEditDetail.d.ts +2 -2
  270. package/lib/address-edit/AddressEditDetail.js +5 -14
  271. package/lib/address-edit/index.css +1 -1
  272. package/lib/address-edit/index.d.ts +6 -6
  273. package/lib/address-edit/index.less +8 -15
  274. package/lib/address-edit/types.d.ts +2 -4
  275. package/lib/address-list/AddressList.d.ts +4 -4
  276. package/lib/address-list/AddressList.js +5 -5
  277. package/lib/address-list/AddressListItem.js +3 -3
  278. package/lib/address-list/index.css +1 -1
  279. package/lib/address-list/index.d.ts +4 -4
  280. package/lib/address-list/index.less +20 -22
  281. package/lib/area/Area.d.ts +13 -25
  282. package/lib/area/Area.js +42 -207
  283. package/lib/area/index.d.ts +11 -19
  284. package/lib/area/types.d.ts +2 -17
  285. package/lib/area/utils.d.ts +6 -0
  286. package/lib/area/utils.js +109 -0
  287. package/lib/badge/index.css +1 -1
  288. package/lib/badge/index.less +15 -17
  289. package/lib/button/index.css +1 -1
  290. package/lib/button/index.less +55 -52
  291. package/lib/calendar/Calendar.d.ts +10 -6
  292. package/lib/calendar/Calendar.js +7 -5
  293. package/lib/calendar/CalendarHeader.d.ts +2 -2
  294. package/lib/calendar/CalendarHeader.js +2 -2
  295. package/lib/calendar/CalendarMonth.d.ts +1 -2
  296. package/lib/calendar/CalendarMonth.js +2 -2
  297. package/lib/calendar/index.css +1 -1
  298. package/lib/calendar/index.d.ts +9 -6
  299. package/lib/calendar/index.less +41 -37
  300. package/lib/card/Card.d.ts +2 -2
  301. package/lib/card/Card.js +3 -3
  302. package/lib/card/index.css +1 -1
  303. package/lib/card/index.d.ts +2 -2
  304. package/lib/card/index.less +23 -25
  305. package/lib/cascader/Cascader.d.ts +2 -2
  306. package/lib/cascader/Cascader.js +3 -3
  307. package/lib/cascader/index.css +1 -1
  308. package/lib/cascader/index.d.ts +2 -2
  309. package/lib/cascader/index.less +17 -19
  310. package/lib/cell/Cell.js +1 -4
  311. package/lib/cell/index.css +1 -1
  312. package/lib/cell/index.less +21 -27
  313. package/lib/cell-group/index.css +1 -1
  314. package/lib/cell-group/index.less +12 -13
  315. package/lib/checkbox/index.css +1 -1
  316. package/lib/checkbox/index.less +12 -14
  317. package/lib/circle/index.css +1 -1
  318. package/lib/circle/index.less +8 -10
  319. package/lib/collapse-item/index.css +1 -1
  320. package/lib/collapse-item/index.less +12 -12
  321. package/lib/config-provider/ConfigProvider.d.ts +14 -0
  322. package/lib/config-provider/ConfigProvider.js +9 -0
  323. package/lib/config-provider/index.d.ts +10 -1
  324. package/lib/contact-card/ContactCard.js +2 -2
  325. package/lib/contact-card/index.css +1 -1
  326. package/lib/contact-card/index.less +7 -9
  327. package/lib/contact-edit/ContactEdit.d.ts +2 -2
  328. package/lib/contact-edit/ContactEdit.js +3 -4
  329. package/lib/contact-edit/index.css +1 -1
  330. package/lib/contact-edit/index.d.ts +2 -2
  331. package/lib/contact-edit/index.less +7 -9
  332. package/lib/contact-list/ContactList.js +4 -4
  333. package/lib/contact-list/index.css +1 -1
  334. package/lib/contact-list/index.less +9 -11
  335. package/lib/count-down/index.css +1 -1
  336. package/lib/count-down/index.less +4 -6
  337. package/lib/coupon/index.css +1 -1
  338. package/lib/coupon/index.less +28 -31
  339. package/lib/coupon-cell/index.css +1 -1
  340. package/lib/coupon-cell/index.less +2 -4
  341. package/lib/coupon-list/CouponList.js +2 -2
  342. package/lib/coupon-list/index.css +1 -1
  343. package/lib/coupon-list/index.less +15 -17
  344. package/lib/date-picker/DatePicker.d.ts +168 -0
  345. package/lib/date-picker/DatePicker.js +135 -0
  346. package/lib/{datetime-picker/DatePicker.d.ts → date-picker/index.d.ts} +40 -28
  347. package/lib/{datetime-picker → date-picker}/index.js +4 -4
  348. package/lib/date-picker/style/index.d.ts +1 -0
  349. package/lib/{datetime-picker → date-picker}/style/index.js +0 -0
  350. package/lib/date-picker/style/less.d.ts +1 -0
  351. package/lib/{datetime-picker → date-picker}/style/less.js +0 -0
  352. package/lib/{datetime-picker → date-picker}/utils.d.ts +15 -11
  353. package/lib/{datetime-picker → date-picker}/utils.js +11 -34
  354. package/lib/dialog/index.css +1 -1
  355. package/lib/dialog/index.less +24 -24
  356. package/lib/divider/index.css +1 -1
  357. package/lib/divider/index.less +10 -12
  358. package/lib/dropdown-item/index.css +1 -1
  359. package/lib/dropdown-item/index.less +2 -5
  360. package/lib/dropdown-menu/index.css +1 -1
  361. package/lib/dropdown-menu/index.less +14 -17
  362. package/lib/empty/index.css +1 -1
  363. package/lib/empty/index.less +9 -11
  364. package/lib/field/Field.d.ts +4 -4
  365. package/lib/field/Field.js +4 -4
  366. package/lib/field/index.css +1 -1
  367. package/lib/field/index.d.ts +4 -4
  368. package/lib/field/index.less +20 -23
  369. package/lib/grid-item/index.css +1 -1
  370. package/lib/grid-item/index.less +10 -13
  371. package/lib/image/index.css +1 -1
  372. package/lib/image/index.less +10 -12
  373. package/lib/image-preview/index.css +1 -1
  374. package/lib/image-preview/index.less +11 -13
  375. package/lib/index-anchor/index.css +1 -1
  376. package/lib/index-anchor/index.less +12 -14
  377. package/lib/index-bar/IndexBar.js +25 -4
  378. package/lib/index-bar/index.css +1 -1
  379. package/lib/index-bar/index.less +7 -8
  380. package/lib/index.css +1 -1
  381. package/lib/index.d.ts +3 -2
  382. package/lib/index.js +7 -4
  383. package/lib/list/index.css +1 -1
  384. package/lib/list/index.less +5 -7
  385. package/lib/loading/index.css +1 -1
  386. package/lib/loading/index.less +7 -10
  387. package/lib/locale/lang/la-LA.d.ts +64 -0
  388. package/lib/locale/lang/la-LA.js +90 -0
  389. package/lib/nav-bar/NavBar.d.ts +4 -4
  390. package/lib/nav-bar/NavBar.js +6 -6
  391. package/lib/nav-bar/index.css +1 -1
  392. package/lib/nav-bar/index.d.ts +4 -4
  393. package/lib/nav-bar/index.less +11 -13
  394. package/lib/notice-bar/index.css +1 -1
  395. package/lib/notice-bar/index.less +11 -13
  396. package/lib/notify/index.css +1 -1
  397. package/lib/notify/index.less +13 -15
  398. package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
  399. package/lib/number-keyboard/index.css +1 -1
  400. package/lib/number-keyboard/index.d.ts +1 -1
  401. package/lib/number-keyboard/index.less +26 -22
  402. package/lib/overlay/index.css +1 -1
  403. package/lib/overlay/index.less +4 -6
  404. package/lib/pagination/index.css +1 -1
  405. package/lib/pagination/index.less +13 -15
  406. package/lib/password-input/index.css +1 -1
  407. package/lib/password-input/index.less +20 -22
  408. package/lib/picker/Picker.d.ts +26 -28
  409. package/lib/picker/Picker.js +90 -195
  410. package/lib/picker/PickerColumn.d.ts +21 -30
  411. package/lib/picker/PickerColumn.js +60 -110
  412. package/lib/picker/index.css +1 -1
  413. package/lib/picker/index.d.ts +19 -20
  414. package/lib/picker/index.less +32 -19
  415. package/lib/picker/types.d.ts +13 -19
  416. package/lib/picker/utils.d.ts +10 -0
  417. package/lib/picker/utils.js +97 -0
  418. package/lib/popover/Popover.d.ts +1 -1
  419. package/lib/popover/index.css +1 -1
  420. package/lib/popover/index.d.ts +1 -1
  421. package/lib/popover/index.less +21 -23
  422. package/lib/popup/Popup.d.ts +7 -3
  423. package/lib/popup/Popup.js +6 -3
  424. package/lib/popup/index.css +1 -1
  425. package/lib/popup/index.d.ts +6 -3
  426. package/lib/popup/index.less +20 -22
  427. package/lib/progress/index.css +1 -1
  428. package/lib/progress/index.less +14 -18
  429. package/lib/pull-refresh/index.css +1 -1
  430. package/lib/pull-refresh/index.less +5 -7
  431. package/lib/radio/index.css +1 -1
  432. package/lib/radio/index.less +12 -14
  433. package/lib/rate/index.css +1 -1
  434. package/lib/rate/index.less +6 -8
  435. package/lib/search/Search.d.ts +4 -4
  436. package/lib/search/Search.js +7 -7
  437. package/lib/search/index.css +1 -1
  438. package/lib/search/index.d.ts +4 -4
  439. package/lib/search/index.less +16 -18
  440. package/lib/share-sheet/index.css +1 -1
  441. package/lib/share-sheet/index.less +17 -18
  442. package/lib/sidebar/index.css +1 -1
  443. package/lib/sidebar/index.less +2 -4
  444. package/lib/sidebar-item/index.css +1 -1
  445. package/lib/sidebar-item/index.less +17 -19
  446. package/lib/skeleton/Skeleton.js +5 -3
  447. package/lib/skeleton/index.css +1 -1
  448. package/lib/skeleton/index.less +14 -16
  449. package/lib/slider/Slider.d.ts +4 -4
  450. package/lib/slider/Slider.js +5 -6
  451. package/lib/slider/index.css +1 -1
  452. package/lib/slider/index.d.ts +4 -4
  453. package/lib/slider/index.less +20 -18
  454. package/lib/step/index.css +1 -1
  455. package/lib/step/index.less +15 -17
  456. package/lib/stepper/Stepper.d.ts +1 -1
  457. package/lib/stepper/index.css +1 -1
  458. package/lib/stepper/index.d.ts +1 -1
  459. package/lib/stepper/index.less +20 -24
  460. package/lib/steps/Steps.d.ts +2 -2
  461. package/lib/steps/Steps.js +2 -2
  462. package/lib/steps/index.css +1 -1
  463. package/lib/steps/index.d.ts +2 -2
  464. package/lib/steps/index.less +3 -5
  465. package/lib/sticky/index.css +1 -1
  466. package/lib/sticky/index.less +2 -4
  467. package/lib/style/animation.css +1 -1
  468. package/lib/style/animation.less +18 -22
  469. package/lib/style/base.css +1 -1
  470. package/lib/style/base.less +11 -7
  471. package/lib/style/css-variables.css +1 -1
  472. package/lib/style/css-variables.less +76 -61
  473. package/lib/style/mixins/hairline.less +0 -2
  474. package/lib/style/normalize.css +1 -1
  475. package/lib/style/normalize.less +1 -3
  476. package/lib/submit-bar/index.css +1 -1
  477. package/lib/submit-bar/index.less +26 -28
  478. package/lib/swipe/index.css +1 -1
  479. package/lib/swipe/index.less +11 -13
  480. package/lib/swipe-cell/SwipeCell.js +1 -1
  481. package/lib/switch/index.css +1 -1
  482. package/lib/switch/index.less +24 -24
  483. package/lib/tabbar/index.css +1 -1
  484. package/lib/tabbar/index.less +5 -7
  485. package/lib/tabbar-item/index.css +1 -1
  486. package/lib/tabbar-item/index.less +9 -11
  487. package/lib/tabs/Tabs.d.ts +2 -4
  488. package/lib/tabs/Tabs.js +13 -26
  489. package/lib/tabs/index.css +1 -1
  490. package/lib/tabs/index.d.ts +2 -4
  491. package/lib/tabs/index.less +17 -20
  492. package/lib/tag/index.css +1 -1
  493. package/lib/tag/index.less +22 -25
  494. package/lib/time-picker/TimePicker.d.ts +214 -0
  495. package/lib/time-picker/TimePicker.js +95 -0
  496. package/{es/datetime-picker/TimePicker.d.ts → lib/time-picker/index.d.ts} +60 -20
  497. package/lib/{datetime-picker/types.js → time-picker/index.js} +17 -0
  498. package/lib/time-picker/style/index.d.ts +1 -0
  499. package/lib/time-picker/style/index.js +3 -0
  500. package/lib/time-picker/style/less.d.ts +1 -0
  501. package/lib/time-picker/style/less.js +3 -0
  502. package/lib/toast/Toast.js +1 -0
  503. package/lib/toast/index.css +1 -1
  504. package/lib/toast/index.less +19 -21
  505. package/lib/tree-select/TreeSelect.d.ts +3 -3
  506. package/lib/tree-select/TreeSelect.js +3 -3
  507. package/lib/tree-select/index.css +1 -1
  508. package/lib/tree-select/index.d.ts +3 -3
  509. package/lib/tree-select/index.less +12 -14
  510. package/lib/uploader/Uploader.d.ts +4 -4
  511. package/lib/uploader/Uploader.js +4 -4
  512. package/lib/uploader/index.css +1 -1
  513. package/lib/uploader/index.d.ts +4 -4
  514. package/lib/uploader/index.less +31 -33
  515. package/lib/utils/basic.d.ts +1 -0
  516. package/lib/utils/basic.js +2 -0
  517. package/lib/vant.cjs.js +1251 -1655
  518. package/lib/vant.cjs.min.js +1 -1
  519. package/lib/vant.es.js +1251 -1656
  520. package/lib/vant.es.min.js +1251 -1656
  521. package/lib/vant.js +1251 -1655
  522. package/lib/vant.min.js +1 -1
  523. package/package.json +5 -2
  524. package/vetur/attributes.json +430 -366
  525. package/vetur/tags.json +144 -132
  526. package/vetur/web-types.json +1495 -1300
  527. package/es/action-bar/var.css +0 -0
  528. package/es/action-bar/var.less +0 -4
  529. package/es/action-bar-button/var.css +0 -0
  530. package/es/action-bar-button/var.less +0 -5
  531. package/es/action-bar-icon/var.css +0 -0
  532. package/es/action-bar-icon/var.less +0 -10
  533. package/es/action-sheet/var.css +0 -0
  534. package/es/action-sheet/var.less +0 -23
  535. package/es/address-edit/var.css +0 -0
  536. package/es/address-edit/var.less +0 -6
  537. package/es/address-list/var.css +0 -0
  538. package/es/address-list/var.less +0 -16
  539. package/es/badge/var.css +0 -0
  540. package/es/badge/var.less +0 -12
  541. package/es/button/var.css +0 -0
  542. package/es/button/var.less +0 -36
  543. package/es/calendar/var.css +0 -0
  544. package/es/calendar/var.less +0 -27
  545. package/es/card/var.css +0 -0
  546. package/es/card/var.less +0 -18
  547. package/es/cascader/var.css +0 -0
  548. package/es/cascader/var.less +0 -15
  549. package/es/cell/var.css +0 -0
  550. package/es/cell/var.less +0 -21
  551. package/es/cell-group/var.css +0 -0
  552. package/es/cell-group/var.less +0 -12
  553. package/es/checkbox/var.css +0 -0
  554. package/es/checkbox/var.less +0 -11
  555. package/es/circle/var.css +0 -0
  556. package/es/circle/var.less +0 -9
  557. package/es/collapse-item/var.css +0 -0
  558. package/es/collapse-item/var.less +0 -9
  559. package/es/contact-card/var.css +0 -0
  560. package/es/contact-card/var.less +0 -6
  561. package/es/contact-edit/var.css +0 -0
  562. package/es/contact-edit/var.less +0 -8
  563. package/es/contact-list/var.css +0 -0
  564. package/es/contact-list/var.less +0 -6
  565. package/es/count-down/var.css +0 -0
  566. package/es/count-down/var.less +0 -5
  567. package/es/coupon/var.css +0 -0
  568. package/es/coupon/var.less +0 -19
  569. package/es/coupon-cell/var.css +0 -0
  570. package/es/coupon-cell/var.less +0 -3
  571. package/es/coupon-list/var.css +0 -0
  572. package/es/coupon-list/var.less +0 -10
  573. package/es/datetime-picker/DatePicker.js +0 -250
  574. package/es/datetime-picker/DatetimePicker.d.ts +0 -7
  575. package/es/datetime-picker/DatetimePicker.js +0 -40
  576. package/es/datetime-picker/TimePicker.js +0 -117
  577. package/es/datetime-picker/index.d.ts +0 -12
  578. package/es/datetime-picker/index.js +0 -8
  579. package/es/datetime-picker/types.d.ts +0 -9
  580. package/es/datetime-picker/types.js +0 -0
  581. package/es/datetime-picker/utils.js +0 -63
  582. package/es/dialog/var.css +0 -0
  583. package/es/dialog/var.less +0 -21
  584. package/es/divider/var.css +0 -0
  585. package/es/divider/var.less +0 -10
  586. package/es/dropdown-item/var.css +0 -0
  587. package/es/dropdown-item/var.less +0 -3
  588. package/es/dropdown-menu/var.css +0 -0
  589. package/es/dropdown-menu/var.less +0 -13
  590. package/es/empty/var.css +0 -0
  591. package/es/empty/var.less +0 -10
  592. package/es/field/var.css +0 -0
  593. package/es/field/var.less +0 -21
  594. package/es/grid-item/var.css +0 -0
  595. package/es/grid-item/var.less +0 -8
  596. package/es/image/var.css +0 -0
  597. package/es/image/var.less +0 -9
  598. package/es/image-preview/var.css +0 -0
  599. package/es/image-preview/var.less +0 -11
  600. package/es/index-anchor/var.css +0 -0
  601. package/es/index-anchor/var.less +0 -11
  602. package/es/index-bar/var.css +0 -0
  603. package/es/index-bar/var.less +0 -6
  604. package/es/list/var.css +0 -0
  605. package/es/list/var.less +0 -6
  606. package/es/loading/var.css +0 -0
  607. package/es/loading/var.less +0 -7
  608. package/es/nav-bar/var.css +0 -0
  609. package/es/nav-bar/var.less +0 -10
  610. package/es/notice-bar/var.css +0 -0
  611. package/es/notice-bar/var.less +0 -11
  612. package/es/notify/var.css +0 -0
  613. package/es/notify/var.less +0 -10
  614. package/es/number-keyboard/var.css +0 -0
  615. package/es/number-keyboard/var.less +0 -17
  616. package/es/overlay/var.css +0 -0
  617. package/es/overlay/var.less +0 -4
  618. package/es/pagination/var.css +0 -0
  619. package/es/pagination/var.less +0 -11
  620. package/es/password-input/var.css +0 -0
  621. package/es/password-input/var.less +0 -17
  622. package/es/picker/var.css +0 -0
  623. package/es/picker/var.less +0 -22
  624. package/es/popover/var.css +0 -0
  625. package/es/popover/var.less +0 -15
  626. package/es/popup/var.css +0 -0
  627. package/es/popup/var.less +0 -9
  628. package/es/progress/var.css +0 -0
  629. package/es/progress/var.less +0 -11
  630. package/es/pull-refresh/var.css +0 -0
  631. package/es/pull-refresh/var.less +0 -6
  632. package/es/radio/var.css +0 -0
  633. package/es/radio/var.less +0 -11
  634. package/es/rate/var.css +0 -0
  635. package/es/rate/var.less +0 -7
  636. package/es/search/var.css +0 -0
  637. package/es/search/var.less +0 -13
  638. package/es/share-sheet/var.css +0 -0
  639. package/es/share-sheet/var.less +0 -18
  640. package/es/sidebar/var.css +0 -0
  641. package/es/sidebar/var.less +0 -3
  642. package/es/sidebar-item/var.css +0 -0
  643. package/es/sidebar-item/var.less +0 -15
  644. package/es/skeleton/var.css +0 -0
  645. package/es/skeleton/var.less +0 -9
  646. package/es/slider/var.css +0 -0
  647. package/es/slider/var.less +0 -11
  648. package/es/step/var.css +0 -0
  649. package/es/step/var.less +0 -13
  650. package/es/stepper/var.css +0 -0
  651. package/es/stepper/var.less +0 -15
  652. package/es/steps/var.css +0 -0
  653. package/es/steps/var.less +0 -3
  654. package/es/sticky/var.css +0 -0
  655. package/es/sticky/var.less +0 -3
  656. package/es/style/var.css +0 -0
  657. package/es/style/var.less +0 -74
  658. package/es/submit-bar/var.css +0 -0
  659. package/es/submit-bar/var.less +0 -22
  660. package/es/swipe/var.css +0 -0
  661. package/es/swipe/var.less +0 -8
  662. package/es/switch/var.css +0 -0
  663. package/es/switch/var.less +0 -14
  664. package/es/tabbar/var.css +0 -0
  665. package/es/tabbar/var.less +0 -5
  666. package/es/tabbar-item/var.css +0 -0
  667. package/es/tabbar-item/var.less +0 -9
  668. package/es/tabs/var.css +0 -0
  669. package/es/tabs/var.less +0 -14
  670. package/es/tag/var.css +0 -0
  671. package/es/tag/var.less +0 -18
  672. package/es/toast/var.css +0 -0
  673. package/es/toast/var.less +0 -17
  674. package/es/tree-select/var.css +0 -0
  675. package/es/tree-select/var.less +0 -10
  676. package/es/uploader/var.css +0 -0
  677. package/es/uploader/var.less +0 -27
  678. package/lib/action-bar/var.css +0 -0
  679. package/lib/action-bar/var.less +0 -4
  680. package/lib/action-bar-button/var.css +0 -0
  681. package/lib/action-bar-button/var.less +0 -5
  682. package/lib/action-bar-icon/var.css +0 -0
  683. package/lib/action-bar-icon/var.less +0 -10
  684. package/lib/action-sheet/var.css +0 -0
  685. package/lib/action-sheet/var.less +0 -23
  686. package/lib/address-edit/var.css +0 -0
  687. package/lib/address-edit/var.less +0 -6
  688. package/lib/address-list/var.css +0 -0
  689. package/lib/address-list/var.less +0 -16
  690. package/lib/badge/var.css +0 -0
  691. package/lib/badge/var.less +0 -12
  692. package/lib/button/var.css +0 -0
  693. package/lib/button/var.less +0 -36
  694. package/lib/calendar/var.css +0 -0
  695. package/lib/calendar/var.less +0 -27
  696. package/lib/card/var.css +0 -0
  697. package/lib/card/var.less +0 -18
  698. package/lib/cascader/var.css +0 -0
  699. package/lib/cascader/var.less +0 -15
  700. package/lib/cell/var.css +0 -0
  701. package/lib/cell/var.less +0 -21
  702. package/lib/cell-group/var.css +0 -0
  703. package/lib/cell-group/var.less +0 -12
  704. package/lib/checkbox/var.css +0 -0
  705. package/lib/checkbox/var.less +0 -11
  706. package/lib/circle/var.css +0 -0
  707. package/lib/circle/var.less +0 -9
  708. package/lib/collapse-item/var.css +0 -0
  709. package/lib/collapse-item/var.less +0 -9
  710. package/lib/contact-card/var.css +0 -0
  711. package/lib/contact-card/var.less +0 -6
  712. package/lib/contact-edit/var.css +0 -0
  713. package/lib/contact-edit/var.less +0 -8
  714. package/lib/contact-list/var.css +0 -0
  715. package/lib/contact-list/var.less +0 -6
  716. package/lib/count-down/var.css +0 -0
  717. package/lib/count-down/var.less +0 -5
  718. package/lib/coupon/var.css +0 -0
  719. package/lib/coupon/var.less +0 -19
  720. package/lib/coupon-cell/var.css +0 -0
  721. package/lib/coupon-cell/var.less +0 -3
  722. package/lib/coupon-list/var.css +0 -0
  723. package/lib/coupon-list/var.less +0 -10
  724. package/lib/datetime-picker/DatePicker.js +0 -274
  725. package/lib/datetime-picker/DatetimePicker.d.ts +0 -7
  726. package/lib/datetime-picker/DatetimePicker.js +0 -69
  727. package/lib/datetime-picker/TimePicker.js +0 -141
  728. package/lib/datetime-picker/index.d.ts +0 -12
  729. package/lib/datetime-picker/types.d.ts +0 -9
  730. package/lib/dialog/var.css +0 -0
  731. package/lib/dialog/var.less +0 -21
  732. package/lib/divider/var.css +0 -0
  733. package/lib/divider/var.less +0 -10
  734. package/lib/dropdown-item/var.css +0 -0
  735. package/lib/dropdown-item/var.less +0 -3
  736. package/lib/dropdown-menu/var.css +0 -0
  737. package/lib/dropdown-menu/var.less +0 -13
  738. package/lib/empty/var.css +0 -0
  739. package/lib/empty/var.less +0 -10
  740. package/lib/field/var.css +0 -0
  741. package/lib/field/var.less +0 -21
  742. package/lib/grid-item/var.css +0 -0
  743. package/lib/grid-item/var.less +0 -8
  744. package/lib/image/var.css +0 -0
  745. package/lib/image/var.less +0 -9
  746. package/lib/image-preview/var.css +0 -0
  747. package/lib/image-preview/var.less +0 -11
  748. package/lib/index-anchor/var.css +0 -0
  749. package/lib/index-anchor/var.less +0 -11
  750. package/lib/index-bar/var.css +0 -0
  751. package/lib/index-bar/var.less +0 -6
  752. package/lib/list/var.css +0 -0
  753. package/lib/list/var.less +0 -6
  754. package/lib/loading/var.css +0 -0
  755. package/lib/loading/var.less +0 -7
  756. package/lib/nav-bar/var.css +0 -0
  757. package/lib/nav-bar/var.less +0 -10
  758. package/lib/notice-bar/var.css +0 -0
  759. package/lib/notice-bar/var.less +0 -11
  760. package/lib/notify/var.css +0 -0
  761. package/lib/notify/var.less +0 -10
  762. package/lib/number-keyboard/var.css +0 -0
  763. package/lib/number-keyboard/var.less +0 -17
  764. package/lib/overlay/var.css +0 -0
  765. package/lib/overlay/var.less +0 -4
  766. package/lib/pagination/var.css +0 -0
  767. package/lib/pagination/var.less +0 -11
  768. package/lib/password-input/var.css +0 -0
  769. package/lib/password-input/var.less +0 -17
  770. package/lib/picker/var.css +0 -0
  771. package/lib/picker/var.less +0 -22
  772. package/lib/popover/var.css +0 -0
  773. package/lib/popover/var.less +0 -15
  774. package/lib/popup/var.css +0 -0
  775. package/lib/popup/var.less +0 -9
  776. package/lib/progress/var.css +0 -0
  777. package/lib/progress/var.less +0 -11
  778. package/lib/pull-refresh/var.css +0 -0
  779. package/lib/pull-refresh/var.less +0 -6
  780. package/lib/radio/var.css +0 -0
  781. package/lib/radio/var.less +0 -11
  782. package/lib/rate/var.css +0 -0
  783. package/lib/rate/var.less +0 -7
  784. package/lib/search/var.css +0 -0
  785. package/lib/search/var.less +0 -13
  786. package/lib/share-sheet/var.css +0 -0
  787. package/lib/share-sheet/var.less +0 -18
  788. package/lib/sidebar/var.css +0 -0
  789. package/lib/sidebar/var.less +0 -3
  790. package/lib/sidebar-item/var.css +0 -0
  791. package/lib/sidebar-item/var.less +0 -15
  792. package/lib/skeleton/var.css +0 -0
  793. package/lib/skeleton/var.less +0 -9
  794. package/lib/slider/var.css +0 -0
  795. package/lib/slider/var.less +0 -11
  796. package/lib/step/var.css +0 -0
  797. package/lib/step/var.less +0 -13
  798. package/lib/stepper/var.css +0 -0
  799. package/lib/stepper/var.less +0 -15
  800. package/lib/steps/var.css +0 -0
  801. package/lib/steps/var.less +0 -3
  802. package/lib/sticky/var.css +0 -0
  803. package/lib/sticky/var.less +0 -3
  804. package/lib/style/var.css +0 -0
  805. package/lib/style/var.less +0 -74
  806. package/lib/submit-bar/var.css +0 -0
  807. package/lib/submit-bar/var.less +0 -22
  808. package/lib/swipe/var.css +0 -0
  809. package/lib/swipe/var.less +0 -8
  810. package/lib/switch/var.css +0 -0
  811. package/lib/switch/var.less +0 -14
  812. package/lib/tabbar/var.css +0 -0
  813. package/lib/tabbar/var.less +0 -5
  814. package/lib/tabbar-item/var.css +0 -0
  815. package/lib/tabbar-item/var.less +0 -9
  816. package/lib/tabs/var.css +0 -0
  817. package/lib/tabs/var.less +0 -14
  818. package/lib/tag/var.css +0 -0
  819. package/lib/tag/var.less +0 -18
  820. package/lib/toast/var.css +0 -0
  821. package/lib/toast/var.less +0 -17
  822. package/lib/tree-select/var.css +0 -0
  823. package/lib/tree-select/var.less +0 -10
  824. package/lib/uploader/var.css +0 -0
  825. package/lib/uploader/var.less +0 -27
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "vant",
5
- "version": "3.4.5",
5
+ "version": "4.0.0-alpha.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -253,261 +253,6 @@
253
253
  }
254
254
  ]
255
255
  },
256
- {
257
- "name": "van-action-sheet",
258
- "slots": [
259
- {
260
- "name": "default",
261
- "description": "Custom content"
262
- },
263
- {
264
- "name": "description",
265
- "description": "Custom description above the options"
266
- },
267
- {
268
- "name": "cancel",
269
- "description": "Custom the content of cancel button"
270
- },
271
- {
272
- "name": "action",
273
- "description": "Custom the content of action"
274
- }
275
- ],
276
- "events": [
277
- {
278
- "name": "select",
279
- "description": "Emitted when an option is clicked"
280
- },
281
- {
282
- "name": "cancel",
283
- "description": "Emitted when the cancel button is clicked"
284
- },
285
- {
286
- "name": "open",
287
- "description": "Emitted when opening ActionSheet"
288
- },
289
- {
290
- "name": "close",
291
- "description": "Emitted when closing ActionSheet"
292
- },
293
- {
294
- "name": "opened",
295
- "description": "Emitted when ActionSheet is opened"
296
- },
297
- {
298
- "name": "closed",
299
- "description": "Emitted when ActionSheet is closed"
300
- },
301
- {
302
- "name": "click-overlay",
303
- "description": "Emitted when overlay is clicked"
304
- }
305
- ],
306
- "attributes": [
307
- {
308
- "name": "v-model:show",
309
- "default": "`false`",
310
- "description": "Whether to show ActionSheet",
311
- "options": [],
312
- "value": {
313
- "type": "boolean",
314
- "kind": "expression"
315
- }
316
- },
317
- {
318
- "name": "actions",
319
- "default": "`[]`",
320
- "description": "Options",
321
- "options": [],
322
- "value": {
323
- "type": "ActionSheetAction[]",
324
- "kind": "expression"
325
- }
326
- },
327
- {
328
- "name": "title",
329
- "default": "-",
330
- "description": "Title",
331
- "options": [],
332
- "value": {
333
- "type": "string",
334
- "kind": "expression"
335
- }
336
- },
337
- {
338
- "name": "cancel-text",
339
- "default": "-",
340
- "description": "Text of cancel button",
341
- "options": [],
342
- "value": {
343
- "type": "string",
344
- "kind": "expression"
345
- }
346
- },
347
- {
348
- "name": "description",
349
- "default": "-",
350
- "description": "Description above the options",
351
- "options": [],
352
- "value": {
353
- "type": "string",
354
- "kind": "expression"
355
- }
356
- },
357
- {
358
- "name": "closeable",
359
- "default": "`true`",
360
- "description": "Whether to show close icon",
361
- "options": [],
362
- "value": {
363
- "type": "boolean",
364
- "kind": "expression"
365
- }
366
- },
367
- {
368
- "name": "close-icon",
369
- "default": "`cross`",
370
- "description": "Close icon name",
371
- "options": [],
372
- "value": {
373
- "type": "string",
374
- "kind": "expression"
375
- }
376
- },
377
- {
378
- "name": "duration",
379
- "default": "`0.3`",
380
- "description": "Transition duration, unit second",
381
- "options": [],
382
- "value": {
383
- "type": "number | string",
384
- "kind": "expression"
385
- }
386
- },
387
- {
388
- "name": "round",
389
- "default": "`true`",
390
- "description": "Whether to show round corner",
391
- "options": [],
392
- "value": {
393
- "type": "boolean",
394
- "kind": "expression"
395
- }
396
- },
397
- {
398
- "name": "overlay",
399
- "default": "`true`",
400
- "description": "Whether to show overlay",
401
- "options": [],
402
- "value": {
403
- "type": "boolean",
404
- "kind": "expression"
405
- }
406
- },
407
- {
408
- "name": "overlay-class",
409
- "default": "object_",
410
- "description": "Custom overlay class",
411
- "options": [
412
- "-"
413
- ],
414
- "value": {
415
- "type": "string | Array \\",
416
- "kind": "expression"
417
- }
418
- },
419
- {
420
- "name": "overlay-style",
421
- "default": "-",
422
- "description": "Custom overlay style",
423
- "options": [],
424
- "value": {
425
- "type": "object",
426
- "kind": "expression"
427
- }
428
- },
429
- {
430
- "name": "lock-scroll",
431
- "default": "`true`",
432
- "description": "Whether to lock background scroll",
433
- "options": [],
434
- "value": {
435
- "type": "boolean",
436
- "kind": "expression"
437
- }
438
- },
439
- {
440
- "name": "lazy-render",
441
- "default": "`true`",
442
- "description": "Whether to lazy render util appeared",
443
- "options": [],
444
- "value": {
445
- "type": "boolean",
446
- "kind": "expression"
447
- }
448
- },
449
- {
450
- "name": "close-on-popstate",
451
- "default": "`true`",
452
- "description": "Whether to close when popstate",
453
- "options": [],
454
- "value": {
455
- "type": "boolean",
456
- "kind": "expression"
457
- }
458
- },
459
- {
460
- "name": "close-on-click-action",
461
- "default": "`false`",
462
- "description": "Whether to close when an action is clicked",
463
- "options": [],
464
- "value": {
465
- "type": "boolean",
466
- "kind": "expression"
467
- }
468
- },
469
- {
470
- "name": "close-on-click-overlay",
471
- "default": "`true`",
472
- "description": "Whether to close when overlay is clicked",
473
- "options": [],
474
- "value": {
475
- "type": "boolean",
476
- "kind": "expression"
477
- }
478
- },
479
- {
480
- "name": "safe-area-inset-bottom",
481
- "default": "`true`",
482
- "description": "Whether to enable bottom safe area adaptation",
483
- "options": [],
484
- "value": {
485
- "type": "boolean",
486
- "kind": "expression"
487
- }
488
- },
489
- {
490
- "name": "teleport",
491
- "default": "-",
492
- "description": "Specifies a target element where ActionSheet will be mounted",
493
- "options": [],
494
- "value": {
495
- "type": "string | Element",
496
- "kind": "expression"
497
- }
498
- },
499
- {
500
- "name": "before-close",
501
- "default": "-",
502
- "description": "Callback function before close",
503
- "options": [],
504
- "value": {
505
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
506
- "kind": "expression"
507
- }
508
- }
509
- ]
510
- },
511
256
  {
512
257
  "name": "van-address-edit",
513
258
  "slots": [
@@ -774,7 +519,126 @@
774
519
  ]
775
520
  },
776
521
  {
777
- "name": "van-area",
522
+ "name": "van-address-list",
523
+ "slots": [
524
+ {
525
+ "name": "default",
526
+ "description": "Custom content after list"
527
+ },
528
+ {
529
+ "name": "top",
530
+ "description": "Custom content before list"
531
+ },
532
+ {
533
+ "name": "item-bottom",
534
+ "description": "Custom content after list item"
535
+ },
536
+ {
537
+ "name": "tag",
538
+ "description": "Custom tag of list item"
539
+ }
540
+ ],
541
+ "events": [
542
+ {
543
+ "name": "add",
544
+ "description": "Emitted when the add button is clicked"
545
+ },
546
+ {
547
+ "name": "edit",
548
+ "description": "Emitted when the edit icon of address is clicked"
549
+ },
550
+ {
551
+ "name": "select",
552
+ "description": "Emitted when an address is selected"
553
+ },
554
+ {
555
+ "name": "edit-disabled",
556
+ "description": "Emitted when the edit icon of disabled address is clicked"
557
+ },
558
+ {
559
+ "name": "select-disabled",
560
+ "description": "Emitted when a disabled address is selected"
561
+ },
562
+ {
563
+ "name": "click-item",
564
+ "description": "Emitted when an address item is clicked"
565
+ }
566
+ ],
567
+ "attributes": [
568
+ {
569
+ "name": "v-model",
570
+ "default": "-",
571
+ "description": "Id of chosen address",
572
+ "options": [],
573
+ "value": {
574
+ "type": "string",
575
+ "kind": "expression"
576
+ }
577
+ },
578
+ {
579
+ "name": "list",
580
+ "default": "`[]`",
581
+ "description": "Address list",
582
+ "options": [],
583
+ "value": {
584
+ "type": "Address[]",
585
+ "kind": "expression"
586
+ }
587
+ },
588
+ {
589
+ "name": "disabled-list",
590
+ "default": "`[]`",
591
+ "description": "Disabled address list",
592
+ "options": [],
593
+ "value": {
594
+ "type": "Address[]",
595
+ "kind": "expression"
596
+ }
597
+ },
598
+ {
599
+ "name": "disabled-text",
600
+ "default": "-",
601
+ "description": "Disabled text",
602
+ "options": [],
603
+ "value": {
604
+ "type": "string",
605
+ "kind": "expression"
606
+ }
607
+ },
608
+ {
609
+ "name": "switchable",
610
+ "default": "`true`",
611
+ "description": "Whether to allow switch address",
612
+ "options": [],
613
+ "value": {
614
+ "type": "boolean",
615
+ "kind": "expression"
616
+ }
617
+ },
618
+ {
619
+ "name": "add-button-text",
620
+ "default": "`Add new address`",
621
+ "description": "Add button text",
622
+ "options": [],
623
+ "value": {
624
+ "type": "string",
625
+ "kind": "expression"
626
+ }
627
+ },
628
+ {
629
+ "name": "default-tag-text",
630
+ "default": "-",
631
+ "description": "Default tag text",
632
+ "options": [],
633
+ "value": {
634
+ "type": "string",
635
+ "kind": "expression"
636
+ }
637
+ }
638
+ ]
639
+ },
640
+ {
641
+ "name": "van-area",
778
642
  "slots": [
779
643
  {
780
644
  "name": "toolbar",
@@ -812,12 +676,12 @@
812
676
  },
813
677
  {
814
678
  "name": "change",
815
- "description": "Emitted when current option changed"
679
+ "description": "Emitted when current option is changed"
816
680
  }
817
681
  ],
818
682
  "attributes": [
819
683
  {
820
- "name": "value",
684
+ "name": "v-model",
821
685
  "default": "-",
822
686
  "description": "the `code` of selected area",
823
687
  "options": [],
@@ -897,7 +761,7 @@
897
761
  }
898
762
  },
899
763
  {
900
- "name": "item-height",
764
+ "name": "option-height",
901
765
  "default": "`44`",
902
766
  "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
903
767
  "options": [],
@@ -917,7 +781,7 @@
917
781
  }
918
782
  },
919
783
  {
920
- "name": "visible-item-count",
784
+ "name": "visible-option-num",
921
785
  "default": "`6`",
922
786
  "description": "Count of visible columns",
923
787
  "options": [],
@@ -935,100 +799,94 @@
935
799
  "type": "number | string",
936
800
  "kind": "expression"
937
801
  }
938
- },
939
- {
940
- "name": "is-oversea-code",
941
- "default": "-",
942
- "description": "The method to validate oversea code",
943
- "options": [],
944
- "value": {
945
- "type": "() => boolean",
946
- "kind": "expression"
947
- }
948
802
  }
949
803
  ]
950
804
  },
951
805
  {
952
- "name": "van-address-list",
806
+ "name": "van-action-sheet",
953
807
  "slots": [
954
808
  {
955
809
  "name": "default",
956
- "description": "Custom content after list"
810
+ "description": "Custom content"
957
811
  },
958
812
  {
959
- "name": "top",
960
- "description": "Custom content before list"
813
+ "name": "description",
814
+ "description": "Custom description above the options"
961
815
  },
962
816
  {
963
- "name": "item-bottom",
964
- "description": "Custom content after list item"
817
+ "name": "cancel",
818
+ "description": "Custom the content of cancel button"
965
819
  },
966
820
  {
967
- "name": "tag",
968
- "description": "Custom tag of list item"
821
+ "name": "action",
822
+ "description": "Custom the content of action"
969
823
  }
970
824
  ],
971
825
  "events": [
972
826
  {
973
- "name": "add",
974
- "description": "Emitted when the add button is clicked"
827
+ "name": "select",
828
+ "description": "Emitted when an option is clicked"
975
829
  },
976
830
  {
977
- "name": "edit",
978
- "description": "Emitted when the edit icon of address is clicked"
831
+ "name": "cancel",
832
+ "description": "Emitted when the cancel button is clicked"
979
833
  },
980
834
  {
981
- "name": "select",
982
- "description": "Emitted when an address is selected"
835
+ "name": "open",
836
+ "description": "Emitted when opening ActionSheet"
983
837
  },
984
838
  {
985
- "name": "edit-disabled",
986
- "description": "Emitted when the edit icon of disabled address is clicked"
839
+ "name": "close",
840
+ "description": "Emitted when closing ActionSheet"
987
841
  },
988
842
  {
989
- "name": "select-disabled",
990
- "description": "Emitted when a disabled address is selected"
843
+ "name": "opened",
844
+ "description": "Emitted when ActionSheet is opened"
991
845
  },
992
846
  {
993
- "name": "click-item",
994
- "description": "Emitted when an address item is clicked"
847
+ "name": "closed",
848
+ "description": "Emitted when ActionSheet is closed"
849
+ },
850
+ {
851
+ "name": "click-overlay",
852
+ "description": "Emitted when overlay is clicked"
995
853
  }
996
854
  ],
997
855
  "attributes": [
998
856
  {
999
- "name": "v-model",
1000
- "default": "-",
1001
- "description": "Id of chosen address",
857
+ "name": "v-model:show",
858
+ "default": "`false`",
859
+ "description": "Whether to show ActionSheet",
1002
860
  "options": [],
1003
861
  "value": {
1004
- "type": "string",
862
+ "type": "boolean",
1005
863
  "kind": "expression"
1006
864
  }
1007
865
  },
1008
866
  {
1009
- "name": "list",
867
+ "name": "actions",
1010
868
  "default": "`[]`",
1011
- "description": "Address list",
869
+ "description": "Options",
1012
870
  "options": [],
1013
871
  "value": {
1014
- "type": "Address[]",
872
+ "type": "ActionSheetAction[]",
1015
873
  "kind": "expression"
1016
874
  }
1017
875
  },
1018
876
  {
1019
- "name": "disabled-list",
1020
- "default": "`[]`",
1021
- "description": "Disabled address list",
877
+ "name": "title",
878
+ "default": "-",
879
+ "description": "Title",
1022
880
  "options": [],
1023
881
  "value": {
1024
- "type": "Address[]",
882
+ "type": "string",
1025
883
  "kind": "expression"
1026
884
  }
1027
885
  },
1028
886
  {
1029
- "name": "disabled-text",
887
+ "name": "cancel-text",
1030
888
  "default": "-",
1031
- "description": "Disabled text",
889
+ "description": "Text of cancel button",
1032
890
  "options": [],
1033
891
  "value": {
1034
892
  "type": "string",
@@ -1036,55 +894,39 @@
1036
894
  }
1037
895
  },
1038
896
  {
1039
- "name": "switchable",
1040
- "default": "`true`",
1041
- "description": "Whether to allow switch address",
897
+ "name": "description",
898
+ "default": "-",
899
+ "description": "Description above the options",
1042
900
  "options": [],
1043
901
  "value": {
1044
- "type": "boolean",
902
+ "type": "string",
1045
903
  "kind": "expression"
1046
904
  }
1047
905
  },
1048
906
  {
1049
- "name": "add-button-text",
1050
- "default": "`Add new address`",
1051
- "description": "Add button text",
907
+ "name": "closeable",
908
+ "default": "`true`",
909
+ "description": "Whether to show close icon",
1052
910
  "options": [],
1053
911
  "value": {
1054
- "type": "string",
912
+ "type": "boolean",
1055
913
  "kind": "expression"
1056
914
  }
1057
915
  },
1058
916
  {
1059
- "name": "default-tag-text",
1060
- "default": "-",
1061
- "description": "Default tag text",
917
+ "name": "close-icon",
918
+ "default": "`cross`",
919
+ "description": "Close icon name",
1062
920
  "options": [],
1063
921
  "value": {
1064
922
  "type": "string",
1065
923
  "kind": "expression"
1066
924
  }
1067
- }
1068
- ]
1069
- },
1070
- {
1071
- "name": "van-badge",
1072
- "slots": [
1073
- {
1074
- "name": "default",
1075
- "description": "Default slot"
1076
925
  },
1077
926
  {
1078
- "name": "content",
1079
- "description": "Custom badge content"
1080
- }
1081
- ],
1082
- "events": [],
1083
- "attributes": [
1084
- {
1085
- "name": "content",
1086
- "default": "-",
1087
- "description": "Badge content",
927
+ "name": "duration",
928
+ "default": "`0.3`",
929
+ "description": "Transition duration, unit second",
1088
930
  "options": [],
1089
931
  "value": {
1090
932
  "type": "number | string",
@@ -1092,21 +934,169 @@
1092
934
  }
1093
935
  },
1094
936
  {
1095
- "name": "color",
1096
- "default": "`#ee0a24`",
1097
- "description": "Background color",
937
+ "name": "round",
938
+ "default": "`true`",
939
+ "description": "Whether to show round corner",
1098
940
  "options": [],
1099
941
  "value": {
1100
- "type": "string",
942
+ "type": "boolean",
1101
943
  "kind": "expression"
1102
944
  }
1103
945
  },
1104
946
  {
1105
- "name": "dot",
1106
- "default": "`false`",
1107
- "description": "Whether to show dot",
1108
- "options": [],
1109
- "value": {
947
+ "name": "overlay",
948
+ "default": "`true`",
949
+ "description": "Whether to show overlay",
950
+ "options": [],
951
+ "value": {
952
+ "type": "boolean",
953
+ "kind": "expression"
954
+ }
955
+ },
956
+ {
957
+ "name": "overlay-class",
958
+ "default": "object_",
959
+ "description": "Custom overlay class",
960
+ "options": [
961
+ "-"
962
+ ],
963
+ "value": {
964
+ "type": "string | Array \\",
965
+ "kind": "expression"
966
+ }
967
+ },
968
+ {
969
+ "name": "overlay-style",
970
+ "default": "-",
971
+ "description": "Custom overlay style",
972
+ "options": [],
973
+ "value": {
974
+ "type": "object",
975
+ "kind": "expression"
976
+ }
977
+ },
978
+ {
979
+ "name": "lock-scroll",
980
+ "default": "`true`",
981
+ "description": "Whether to lock background scroll",
982
+ "options": [],
983
+ "value": {
984
+ "type": "boolean",
985
+ "kind": "expression"
986
+ }
987
+ },
988
+ {
989
+ "name": "lazy-render",
990
+ "default": "`true`",
991
+ "description": "Whether to lazy render util appeared",
992
+ "options": [],
993
+ "value": {
994
+ "type": "boolean",
995
+ "kind": "expression"
996
+ }
997
+ },
998
+ {
999
+ "name": "close-on-popstate",
1000
+ "default": "`true`",
1001
+ "description": "Whether to close when popstate",
1002
+ "options": [],
1003
+ "value": {
1004
+ "type": "boolean",
1005
+ "kind": "expression"
1006
+ }
1007
+ },
1008
+ {
1009
+ "name": "close-on-click-action",
1010
+ "default": "`false`",
1011
+ "description": "Whether to close when an action is clicked",
1012
+ "options": [],
1013
+ "value": {
1014
+ "type": "boolean",
1015
+ "kind": "expression"
1016
+ }
1017
+ },
1018
+ {
1019
+ "name": "close-on-click-overlay",
1020
+ "default": "`true`",
1021
+ "description": "Whether to close when overlay is clicked",
1022
+ "options": [],
1023
+ "value": {
1024
+ "type": "boolean",
1025
+ "kind": "expression"
1026
+ }
1027
+ },
1028
+ {
1029
+ "name": "safe-area-inset-bottom",
1030
+ "default": "`true`",
1031
+ "description": "Whether to enable bottom safe area adaptation",
1032
+ "options": [],
1033
+ "value": {
1034
+ "type": "boolean",
1035
+ "kind": "expression"
1036
+ }
1037
+ },
1038
+ {
1039
+ "name": "teleport",
1040
+ "default": "-",
1041
+ "description": "Specifies a target element where ActionSheet will be mounted",
1042
+ "options": [],
1043
+ "value": {
1044
+ "type": "string | Element",
1045
+ "kind": "expression"
1046
+ }
1047
+ },
1048
+ {
1049
+ "name": "before-close",
1050
+ "default": "-",
1051
+ "description": "Callback function before close",
1052
+ "options": [],
1053
+ "value": {
1054
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
1055
+ "kind": "expression"
1056
+ }
1057
+ }
1058
+ ]
1059
+ },
1060
+ {
1061
+ "name": "van-badge",
1062
+ "slots": [
1063
+ {
1064
+ "name": "default",
1065
+ "description": "Default slot"
1066
+ },
1067
+ {
1068
+ "name": "content",
1069
+ "description": "Custom badge content"
1070
+ }
1071
+ ],
1072
+ "events": [],
1073
+ "attributes": [
1074
+ {
1075
+ "name": "content",
1076
+ "default": "-",
1077
+ "description": "Badge content",
1078
+ "options": [],
1079
+ "value": {
1080
+ "type": "number | string",
1081
+ "kind": "expression"
1082
+ }
1083
+ },
1084
+ {
1085
+ "name": "color",
1086
+ "default": "`#ee0a24`",
1087
+ "description": "Background color",
1088
+ "options": [],
1089
+ "value": {
1090
+ "type": "string",
1091
+ "kind": "expression"
1092
+ }
1093
+ },
1094
+ {
1095
+ "name": "dot",
1096
+ "default": "`false`",
1097
+ "description": "Whether to show dot",
1098
+ "options": [],
1099
+ "value": {
1110
1100
  "type": "boolean",
1111
1101
  "kind": "expression"
1112
1102
  }
@@ -1487,7 +1477,7 @@
1487
1477
  },
1488
1478
  {
1489
1479
  "name": "color",
1490
- "default": "`#ee0a24`",
1480
+ "default": "`#1989fa`",
1491
1481
  "description": "Color for the bottom button and selected date",
1492
1482
  "options": [],
1493
1483
  "value": {
@@ -1697,6 +1687,16 @@
1697
1687
  "kind": "expression"
1698
1688
  }
1699
1689
  },
1690
+ {
1691
+ "name": "safe-area-inset-top",
1692
+ "default": "`false`",
1693
+ "description": "Whether to enable top safe area adaptation",
1694
+ "options": [],
1695
+ "value": {
1696
+ "type": "boolean",
1697
+ "kind": "expression"
1698
+ }
1699
+ },
1700
1700
  {
1701
1701
  "name": "safe-area-inset-bottom",
1702
1702
  "default": "`true`",
@@ -2031,7 +2031,7 @@
2031
2031
  },
2032
2032
  {
2033
2033
  "name": "active-color",
2034
- "default": "`#ee0a24`",
2034
+ "default": "`#1989fa`",
2035
2035
  "description": "Active color",
2036
2036
  "options": [],
2037
2037
  "value": {
@@ -2795,43 +2795,6 @@
2795
2795
  }
2796
2796
  ]
2797
2797
  },
2798
- {
2799
- "name": "van-config-provider",
2800
- "slots": [],
2801
- "events": [],
2802
- "attributes": [
2803
- {
2804
- "name": "theme-vars",
2805
- "default": "-",
2806
- "description": "Theme variables",
2807
- "options": [],
2808
- "value": {
2809
- "type": "object",
2810
- "kind": "expression"
2811
- }
2812
- },
2813
- {
2814
- "name": "tag",
2815
- "default": "`div`",
2816
- "description": "HTML Tag of root element",
2817
- "options": [],
2818
- "value": {
2819
- "type": "string",
2820
- "kind": "expression"
2821
- }
2822
- },
2823
- {
2824
- "name": "icon-prefix",
2825
- "default": "`van-icon`",
2826
- "description": "Icon className prefix",
2827
- "options": [],
2828
- "value": {
2829
- "type": "string",
2830
- "kind": "expression"
2831
- }
2832
- }
2833
- ]
2834
- },
2835
2798
  {
2836
2799
  "name": "van-collapse",
2837
2800
  "slots": [],
@@ -3048,58 +3011,6 @@
3048
3011
  }
3049
3012
  ]
3050
3013
  },
3051
- {
3052
- "name": "van-contact-card",
3053
- "slots": [],
3054
- "events": [
3055
- {
3056
- "name": "click",
3057
- "description": "Emitted when component is clicked"
3058
- }
3059
- ],
3060
- "attributes": [
3061
- {
3062
- "name": "type",
3063
- "default": "`add`",
3064
- "description": "Can be set to `edit`",
3065
- "options": [],
3066
- "value": {
3067
- "type": "string",
3068
- "kind": "expression"
3069
- }
3070
- },
3071
- {
3072
- "name": "name",
3073
- "default": "-",
3074
- "description": "Name",
3075
- "options": [],
3076
- "value": {
3077
- "type": "string",
3078
- "kind": "expression"
3079
- }
3080
- },
3081
- {
3082
- "name": "tel",
3083
- "default": "-",
3084
- "description": "Phone",
3085
- "options": [],
3086
- "value": {
3087
- "type": "string",
3088
- "kind": "expression"
3089
- }
3090
- },
3091
- {
3092
- "name": "add-text",
3093
- "default": "`Add contact info`",
3094
- "description": "Add card text",
3095
- "options": [],
3096
- "value": {
3097
- "type": "string",
3098
- "kind": "expression"
3099
- }
3100
- }
3101
- ]
3102
- },
3103
3014
  {
3104
3015
  "name": "van-contact-edit",
3105
3016
  "slots": [],
@@ -3186,6 +3097,105 @@
3186
3097
  }
3187
3098
  ]
3188
3099
  },
3100
+ {
3101
+ "name": "van-contact-card",
3102
+ "slots": [],
3103
+ "events": [
3104
+ {
3105
+ "name": "click",
3106
+ "description": "Emitted when component is clicked"
3107
+ }
3108
+ ],
3109
+ "attributes": [
3110
+ {
3111
+ "name": "type",
3112
+ "default": "`add`",
3113
+ "description": "Can be set to `edit`",
3114
+ "options": [],
3115
+ "value": {
3116
+ "type": "string",
3117
+ "kind": "expression"
3118
+ }
3119
+ },
3120
+ {
3121
+ "name": "name",
3122
+ "default": "-",
3123
+ "description": "Name",
3124
+ "options": [],
3125
+ "value": {
3126
+ "type": "string",
3127
+ "kind": "expression"
3128
+ }
3129
+ },
3130
+ {
3131
+ "name": "tel",
3132
+ "default": "-",
3133
+ "description": "Phone",
3134
+ "options": [],
3135
+ "value": {
3136
+ "type": "string",
3137
+ "kind": "expression"
3138
+ }
3139
+ },
3140
+ {
3141
+ "name": "add-text",
3142
+ "default": "`Add contact info`",
3143
+ "description": "Add card text",
3144
+ "options": [],
3145
+ "value": {
3146
+ "type": "string",
3147
+ "kind": "expression"
3148
+ }
3149
+ }
3150
+ ]
3151
+ },
3152
+ {
3153
+ "name": "van-config-provider",
3154
+ "slots": [],
3155
+ "events": [],
3156
+ "attributes": [
3157
+ {
3158
+ "name": "theme",
3159
+ "default": "`light`",
3160
+ "description": "Theme mode, can be set to `dark`",
3161
+ "options": [],
3162
+ "value": {
3163
+ "type": "ConfigProviderTheme",
3164
+ "kind": "expression"
3165
+ }
3166
+ },
3167
+ {
3168
+ "name": "theme-vars",
3169
+ "default": "-",
3170
+ "description": "Theme variables",
3171
+ "options": [],
3172
+ "value": {
3173
+ "type": "object",
3174
+ "kind": "expression"
3175
+ }
3176
+ },
3177
+ {
3178
+ "name": "tag",
3179
+ "default": "`div`",
3180
+ "description": "HTML Tag of root element",
3181
+ "options": [],
3182
+ "value": {
3183
+ "type": "string",
3184
+ "kind": "expression"
3185
+ }
3186
+ },
3187
+ {
3188
+ "name": "icon-prefix",
3189
+ "default": "`van-icon`",
3190
+ "description": "Icon className prefix",
3191
+ "options": [],
3192
+ "value": {
3193
+ "type": "string",
3194
+ "kind": "expression"
3195
+ }
3196
+ }
3197
+ ]
3198
+ },
3189
3199
  {
3190
3200
  "name": "van-contact-list",
3191
3201
  "slots": [],
@@ -3560,7 +3570,7 @@
3560
3570
  ]
3561
3571
  },
3562
3572
  {
3563
- "name": "van-datetime-picker",
3573
+ "name": "van-date-picker",
3564
3574
  "slots": [
3565
3575
  {
3566
3576
  "name": "default",
@@ -3592,10 +3602,6 @@
3592
3602
  }
3593
3603
  ],
3594
3604
  "events": [
3595
- {
3596
- "name": "change",
3597
- "description": "Emitted when value changed"
3598
- },
3599
3605
  {
3600
3606
  "name": "confirm",
3601
3607
  "description": "Emitted when the confirm button is clicked"
@@ -3603,16 +3609,50 @@
3603
3609
  {
3604
3610
  "name": "cancel",
3605
3611
  "description": "Emitted when the cancel button is clicked"
3612
+ },
3613
+ {
3614
+ "name": "change",
3615
+ "description": "Emitted when current option is changed"
3606
3616
  }
3607
3617
  ],
3608
3618
  "attributes": [
3609
3619
  {
3610
- "name": "type",
3611
- "default": "`datetime`",
3612
- "description": "Can be set to `date` `time`<br> `year-month` `month-day` `datehour`",
3620
+ "name": "v-model",
3621
+ "default": "`[]`",
3622
+ "description": "Current date",
3613
3623
  "options": [],
3614
3624
  "value": {
3615
- "type": "string",
3625
+ "type": "string[]",
3626
+ "kind": "expression"
3627
+ }
3628
+ },
3629
+ {
3630
+ "name": "columns-type",
3631
+ "default": "`['year', 'month', 'day']`",
3632
+ "description": "Columns type",
3633
+ "options": [],
3634
+ "value": {
3635
+ "type": "string[]",
3636
+ "kind": "expression"
3637
+ }
3638
+ },
3639
+ {
3640
+ "name": "min-date",
3641
+ "default": "Ten years ago on January 1",
3642
+ "description": "Min date",
3643
+ "options": [],
3644
+ "value": {
3645
+ "type": "Date",
3646
+ "kind": "expression"
3647
+ }
3648
+ },
3649
+ {
3650
+ "name": "max-date",
3651
+ "default": "Ten years later on December 31",
3652
+ "description": "Max date",
3653
+ "options": [],
3654
+ "value": {
3655
+ "type": "Date",
3616
3656
  "kind": "expression"
3617
3657
  }
3618
3658
  },
@@ -3682,32 +3722,22 @@
3682
3722
  "description": "Option filter",
3683
3723
  "options": [],
3684
3724
  "value": {
3685
- "type": "(type: string, values: string[]) => string[]",
3725
+ "type": "(type: string, options: PickerOption[]) => PickerOption[]",
3686
3726
  "kind": "expression"
3687
3727
  }
3688
3728
  },
3689
3729
  {
3690
3730
  "name": "formatter",
3691
3731
  "default": "-",
3692
- "description": "Option text formatter",
3693
- "options": [],
3694
- "value": {
3695
- "type": "(type: string, value: string) => string",
3696
- "kind": "expression"
3697
- }
3698
- },
3699
- {
3700
- "name": "columns-order",
3701
- "default": "-",
3702
- "description": "Array for ordering columns, where item can be set to<br> `year`, `month`, `day`, `hour` and `minute`",
3732
+ "description": "Option formatter",
3703
3733
  "options": [],
3704
3734
  "value": {
3705
- "type": "string[]",
3735
+ "type": "(type: string, option: PickerOption) => PickerOption",
3706
3736
  "kind": "expression"
3707
3737
  }
3708
3738
  },
3709
3739
  {
3710
- "name": "item-height",
3740
+ "name": "option-height",
3711
3741
  "default": "`44`",
3712
3742
  "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
3713
3743
  "options": [],
@@ -3717,7 +3747,7 @@
3717
3747
  }
3718
3748
  },
3719
3749
  {
3720
- "name": "visible-item-count",
3750
+ "name": "visible-option-num",
3721
3751
  "default": "`6`",
3722
3752
  "description": "Count of visible columns",
3723
3753
  "options": [],
@@ -3738,80 +3768,6 @@
3738
3768
  }
3739
3769
  ]
3740
3770
  },
3741
- {
3742
- "name": "van-date-picker",
3743
- "slots": [],
3744
- "events": [],
3745
- "attributes": [
3746
- {
3747
- "name": "min-date",
3748
- "default": "Ten years ago on January 1",
3749
- "description": "Min date",
3750
- "options": [],
3751
- "value": {
3752
- "type": "Date",
3753
- "kind": "expression"
3754
- }
3755
- },
3756
- {
3757
- "name": "max-date",
3758
- "default": "Ten years later on December 31",
3759
- "description": "Max date",
3760
- "options": [],
3761
- "value": {
3762
- "type": "Date",
3763
- "kind": "expression"
3764
- }
3765
- }
3766
- ]
3767
- },
3768
- {
3769
- "name": "van-time-picker",
3770
- "slots": [],
3771
- "events": [],
3772
- "attributes": [
3773
- {
3774
- "name": "min-hour",
3775
- "default": "`0`",
3776
- "description": "Min hour for `time` type",
3777
- "options": [],
3778
- "value": {
3779
- "type": "number | string",
3780
- "kind": "expression"
3781
- }
3782
- },
3783
- {
3784
- "name": "max-hour",
3785
- "default": "`23`",
3786
- "description": "Max hour for `time` type",
3787
- "options": [],
3788
- "value": {
3789
- "type": "number | string",
3790
- "kind": "expression"
3791
- }
3792
- },
3793
- {
3794
- "name": "min-minute",
3795
- "default": "`0`",
3796
- "description": "Max minute for `time` type",
3797
- "options": [],
3798
- "value": {
3799
- "type": "number | string",
3800
- "kind": "expression"
3801
- }
3802
- },
3803
- {
3804
- "name": "max-minute",
3805
- "default": "`59`",
3806
- "description": "Max minute for `time` type",
3807
- "options": [],
3808
- "value": {
3809
- "type": "number | string",
3810
- "kind": "expression"
3811
- }
3812
- }
3813
- ]
3814
- },
3815
3771
  {
3816
3772
  "name": "van-dialog",
3817
3773
  "slots": [
@@ -4136,7 +4092,7 @@
4136
4092
  "attributes": [
4137
4093
  {
4138
4094
  "name": "active-color",
4139
- "default": "`#ee0a24`",
4095
+ "default": "`#1989fa`",
4140
4096
  "description": "Active color of title and option",
4141
4097
  "options": [],
4142
4098
  "value": {
@@ -4807,14 +4763,28 @@
4807
4763
  ]
4808
4764
  },
4809
4765
  {
4810
- "name": "van-grid",
4811
- "slots": [],
4812
- "events": [],
4766
+ "name": "van-form",
4767
+ "slots": [
4768
+ {
4769
+ "name": "default",
4770
+ "description": "Form content"
4771
+ }
4772
+ ],
4773
+ "events": [
4774
+ {
4775
+ "name": "submit",
4776
+ "description": "Emitted after submitting the form and validation passed"
4777
+ },
4778
+ {
4779
+ "name": "failed",
4780
+ "description": "Emitted after submitting the form and validation failed"
4781
+ }
4782
+ ],
4813
4783
  "attributes": [
4814
4784
  {
4815
- "name": "column-num",
4816
- "default": "`4`",
4817
- "description": "Column Num",
4785
+ "name": "label-width",
4786
+ "default": "`6.2em`",
4787
+ "description": "Field label width",
4818
4788
  "options": [],
4819
4789
  "value": {
4820
4790
  "type": "number | string",
@@ -4822,20 +4792,157 @@
4822
4792
  }
4823
4793
  },
4824
4794
  {
4825
- "name": "icon-size",
4826
- "default": "`28px`",
4827
- "description": "Icon size",
4795
+ "name": "label-align",
4796
+ "default": "`left`",
4797
+ "description": "Field label align, can be set to `center` `right`",
4828
4798
  "options": [],
4829
4799
  "value": {
4830
- "type": "number | string",
4800
+ "type": "string",
4831
4801
  "kind": "expression"
4832
4802
  }
4833
4803
  },
4834
4804
  {
4835
- "name": "gutter",
4836
- "default": "`0`",
4837
- "description": "Gutter",
4838
- "options": [],
4805
+ "name": "input-align",
4806
+ "default": "`left`",
4807
+ "description": "Field input align, can be set to `center` `right`",
4808
+ "options": [],
4809
+ "value": {
4810
+ "type": "string",
4811
+ "kind": "expression"
4812
+ }
4813
+ },
4814
+ {
4815
+ "name": "error-message-align",
4816
+ "default": "`left`",
4817
+ "description": "Error message align, can be set to `center` `right`",
4818
+ "options": [],
4819
+ "value": {
4820
+ "type": "string",
4821
+ "kind": "expression"
4822
+ }
4823
+ },
4824
+ {
4825
+ "name": "validate-trigger",
4826
+ "default": "`onBlur`",
4827
+ "description": "When to validate the form,can be set to `onChange`、`onSubmit`",
4828
+ "options": [],
4829
+ "value": {
4830
+ "type": "string",
4831
+ "kind": "expression"
4832
+ }
4833
+ },
4834
+ {
4835
+ "name": "colon",
4836
+ "default": "`false`",
4837
+ "description": "Whether to display colon after label",
4838
+ "options": [],
4839
+ "value": {
4840
+ "type": "boolean",
4841
+ "kind": "expression"
4842
+ }
4843
+ },
4844
+ {
4845
+ "name": "disabled",
4846
+ "default": "`false`",
4847
+ "description": "Whether to disable form",
4848
+ "options": [],
4849
+ "value": {
4850
+ "type": "boolean",
4851
+ "kind": "expression"
4852
+ }
4853
+ },
4854
+ {
4855
+ "name": "readonly",
4856
+ "default": "`false`",
4857
+ "description": "Whether to be readonly",
4858
+ "options": [],
4859
+ "value": {
4860
+ "type": "boolean",
4861
+ "kind": "expression"
4862
+ }
4863
+ },
4864
+ {
4865
+ "name": "validate-first",
4866
+ "default": "`false`",
4867
+ "description": "Whether to stop the validation when a rule fails",
4868
+ "options": [],
4869
+ "value": {
4870
+ "type": "boolean",
4871
+ "kind": "expression"
4872
+ }
4873
+ },
4874
+ {
4875
+ "name": "scroll-to-error",
4876
+ "default": "`false`",
4877
+ "description": "Whether to scroll to the error field when validation failed",
4878
+ "options": [],
4879
+ "value": {
4880
+ "type": "boolean",
4881
+ "kind": "expression"
4882
+ }
4883
+ },
4884
+ {
4885
+ "name": "show-error",
4886
+ "default": "`false`",
4887
+ "description": "Whether to highlight input when validation failed",
4888
+ "options": [],
4889
+ "value": {
4890
+ "type": "boolean",
4891
+ "kind": "expression"
4892
+ }
4893
+ },
4894
+ {
4895
+ "name": "show-error-message",
4896
+ "default": "`true`",
4897
+ "description": "Whether to show error message when validation failed",
4898
+ "options": [],
4899
+ "value": {
4900
+ "type": "boolean",
4901
+ "kind": "expression"
4902
+ }
4903
+ },
4904
+ {
4905
+ "name": "submit-on-enter",
4906
+ "default": "`true`",
4907
+ "description": "Whether to submit form on enter",
4908
+ "options": [],
4909
+ "value": {
4910
+ "type": "boolean",
4911
+ "kind": "expression"
4912
+ }
4913
+ }
4914
+ ]
4915
+ },
4916
+ {
4917
+ "name": "van-grid",
4918
+ "slots": [],
4919
+ "events": [],
4920
+ "attributes": [
4921
+ {
4922
+ "name": "column-num",
4923
+ "default": "`4`",
4924
+ "description": "Column Num",
4925
+ "options": [],
4926
+ "value": {
4927
+ "type": "number | string",
4928
+ "kind": "expression"
4929
+ }
4930
+ },
4931
+ {
4932
+ "name": "icon-size",
4933
+ "default": "`28px`",
4934
+ "description": "Icon size",
4935
+ "options": [],
4936
+ "value": {
4937
+ "type": "number | string",
4938
+ "kind": "expression"
4939
+ }
4940
+ },
4941
+ {
4942
+ "name": "gutter",
4943
+ "default": "`0`",
4944
+ "description": "Gutter",
4945
+ "options": [],
4839
4946
  "value": {
4840
4947
  "type": "number | string",
4841
4948
  "kind": "expression"
@@ -5531,68 +5638,63 @@
5531
5638
  ]
5532
5639
  },
5533
5640
  {
5534
- "name": "van-form",
5535
- "slots": [
5536
- {
5537
- "name": "default",
5538
- "description": "Form content"
5539
- }
5540
- ],
5641
+ "name": "van-index-bar",
5642
+ "slots": [],
5541
5643
  "events": [
5542
5644
  {
5543
- "name": "submit",
5544
- "description": "Emitted after submitting the form and validation passed"
5645
+ "name": "select",
5646
+ "description": "Emitted when an index is selected"
5545
5647
  },
5546
5648
  {
5547
- "name": "failed",
5548
- "description": "Emitted after submitting the form and validation failed"
5649
+ "name": "change",
5650
+ "description": "Emitted when active index changed"
5549
5651
  }
5550
5652
  ],
5551
5653
  "attributes": [
5552
5654
  {
5553
- "name": "label-width",
5554
- "default": "`6.2em`",
5555
- "description": "Field label width",
5655
+ "name": "index-list",
5656
+ "default": "`A-Z`",
5657
+ "description": "Index List",
5556
5658
  "options": [],
5557
5659
  "value": {
5558
- "type": "number | string",
5660
+ "type": "string[] | number[]",
5559
5661
  "kind": "expression"
5560
5662
  }
5561
5663
  },
5562
5664
  {
5563
- "name": "label-align",
5564
- "default": "`left`",
5565
- "description": "Field label align, can be set to `center` `right`",
5665
+ "name": "z-index",
5666
+ "default": "`1`",
5667
+ "description": "z-index",
5566
5668
  "options": [],
5567
5669
  "value": {
5568
- "type": "string",
5670
+ "type": "number | string",
5569
5671
  "kind": "expression"
5570
5672
  }
5571
5673
  },
5572
5674
  {
5573
- "name": "input-align",
5574
- "default": "`left`",
5575
- "description": "Field input align, can be set to `center` `right`",
5675
+ "name": "sticky",
5676
+ "default": "`true`",
5677
+ "description": "Whether to enable anchor sticky top",
5576
5678
  "options": [],
5577
5679
  "value": {
5578
- "type": "string",
5680
+ "type": "boolean",
5579
5681
  "kind": "expression"
5580
5682
  }
5581
5683
  },
5582
5684
  {
5583
- "name": "error-message-align",
5584
- "default": "`left`",
5585
- "description": "Error message align, can be set to `center` `right`",
5685
+ "name": "sticky-offset-top",
5686
+ "default": "`0`",
5687
+ "description": "Anchor offset top when sticky",
5586
5688
  "options": [],
5587
5689
  "value": {
5588
- "type": "string",
5690
+ "type": "number",
5589
5691
  "kind": "expression"
5590
5692
  }
5591
5693
  },
5592
5694
  {
5593
- "name": "validate-trigger",
5594
- "default": "`onBlur`",
5595
- "description": "When to validate the form,can be set to `onChange`、`onSubmit`",
5695
+ "name": "highlight-color",
5696
+ "default": "`#1989fa`",
5697
+ "description": "Index character highlight color",
5596
5698
  "options": [],
5597
5699
  "value": {
5598
5700
  "type": "string",
@@ -5600,199 +5702,53 @@
5600
5702
  }
5601
5703
  },
5602
5704
  {
5603
- "name": "colon",
5604
- "default": "`false`",
5605
- "description": "Whether to display colon after label",
5705
+ "name": "teleport",
5706
+ "default": "-",
5707
+ "description": "Specifies a target element where IndexBar will be mounted",
5606
5708
  "options": [],
5607
5709
  "value": {
5608
- "type": "boolean",
5710
+ "type": "string | Element",
5609
5711
  "kind": "expression"
5610
5712
  }
5611
- },
5713
+ }
5714
+ ]
5715
+ },
5716
+ {
5717
+ "name": "van-index-anchor",
5718
+ "slots": [
5612
5719
  {
5613
- "name": "disabled",
5614
- "default": "`false`",
5615
- "description": "Whether to disable form",
5720
+ "name": "default",
5721
+ "description": "Anchor content, show index by default"
5722
+ }
5723
+ ],
5724
+ "events": [],
5725
+ "attributes": [
5726
+ {
5727
+ "name": "index",
5728
+ "default": "-",
5729
+ "description": "Index",
5616
5730
  "options": [],
5617
5731
  "value": {
5618
- "type": "boolean",
5732
+ "type": "number | string",
5619
5733
  "kind": "expression"
5620
5734
  }
5735
+ }
5736
+ ]
5737
+ },
5738
+ {
5739
+ "name": "van-list",
5740
+ "slots": [
5741
+ {
5742
+ "name": "default",
5743
+ "description": "List content"
5621
5744
  },
5622
5745
  {
5623
- "name": "readonly",
5624
- "default": "`false`",
5625
- "description": "Whether to be readonly",
5626
- "options": [],
5627
- "value": {
5628
- "type": "boolean",
5629
- "kind": "expression"
5630
- }
5746
+ "name": "loading",
5747
+ "description": "Custom loading tips"
5631
5748
  },
5632
5749
  {
5633
- "name": "validate-first",
5634
- "default": "`false`",
5635
- "description": "Whether to stop the validation when a rule fails",
5636
- "options": [],
5637
- "value": {
5638
- "type": "boolean",
5639
- "kind": "expression"
5640
- }
5641
- },
5642
- {
5643
- "name": "scroll-to-error",
5644
- "default": "`false`",
5645
- "description": "Whether to scroll to the error field when validation failed",
5646
- "options": [],
5647
- "value": {
5648
- "type": "boolean",
5649
- "kind": "expression"
5650
- }
5651
- },
5652
- {
5653
- "name": "show-error",
5654
- "default": "`false`",
5655
- "description": "Whether to highlight input when validation failed",
5656
- "options": [],
5657
- "value": {
5658
- "type": "boolean",
5659
- "kind": "expression"
5660
- }
5661
- },
5662
- {
5663
- "name": "show-error-message",
5664
- "default": "`true`",
5665
- "description": "Whether to show error message when validation failed",
5666
- "options": [],
5667
- "value": {
5668
- "type": "boolean",
5669
- "kind": "expression"
5670
- }
5671
- },
5672
- {
5673
- "name": "submit-on-enter",
5674
- "default": "`true`",
5675
- "description": "Whether to submit form on enter",
5676
- "options": [],
5677
- "value": {
5678
- "type": "boolean",
5679
- "kind": "expression"
5680
- }
5681
- }
5682
- ]
5683
- },
5684
- {
5685
- "name": "van-index-bar",
5686
- "slots": [],
5687
- "events": [
5688
- {
5689
- "name": "select",
5690
- "description": "Emitted when an index is selected"
5691
- },
5692
- {
5693
- "name": "change",
5694
- "description": "Emitted when active index changed"
5695
- }
5696
- ],
5697
- "attributes": [
5698
- {
5699
- "name": "index-list",
5700
- "default": "`A-Z`",
5701
- "description": "Index List",
5702
- "options": [],
5703
- "value": {
5704
- "type": "string[] | number[]",
5705
- "kind": "expression"
5706
- }
5707
- },
5708
- {
5709
- "name": "z-index",
5710
- "default": "`1`",
5711
- "description": "z-index",
5712
- "options": [],
5713
- "value": {
5714
- "type": "number | string",
5715
- "kind": "expression"
5716
- }
5717
- },
5718
- {
5719
- "name": "sticky",
5720
- "default": "`true`",
5721
- "description": "Whether to enable anchor sticky top",
5722
- "options": [],
5723
- "value": {
5724
- "type": "boolean",
5725
- "kind": "expression"
5726
- }
5727
- },
5728
- {
5729
- "name": "sticky-offset-top",
5730
- "default": "`0`",
5731
- "description": "Anchor offset top when sticky",
5732
- "options": [],
5733
- "value": {
5734
- "type": "number",
5735
- "kind": "expression"
5736
- }
5737
- },
5738
- {
5739
- "name": "highlight-color",
5740
- "default": "`#ee0a24`",
5741
- "description": "Index character highlight color",
5742
- "options": [],
5743
- "value": {
5744
- "type": "string",
5745
- "kind": "expression"
5746
- }
5747
- },
5748
- {
5749
- "name": "teleport",
5750
- "default": "-",
5751
- "description": "Specifies a target element where IndexBar will be mounted",
5752
- "options": [],
5753
- "value": {
5754
- "type": "string | Element",
5755
- "kind": "expression"
5756
- }
5757
- }
5758
- ]
5759
- },
5760
- {
5761
- "name": "van-index-anchor",
5762
- "slots": [
5763
- {
5764
- "name": "default",
5765
- "description": "Anchor content, show index by default"
5766
- }
5767
- ],
5768
- "events": [],
5769
- "attributes": [
5770
- {
5771
- "name": "index",
5772
- "default": "-",
5773
- "description": "Index",
5774
- "options": [],
5775
- "value": {
5776
- "type": "number | string",
5777
- "kind": "expression"
5778
- }
5779
- }
5780
- ]
5781
- },
5782
- {
5783
- "name": "van-list",
5784
- "slots": [
5785
- {
5786
- "name": "default",
5787
- "description": "List content"
5788
- },
5789
- {
5790
- "name": "loading",
5791
- "description": "Custom loading tips"
5792
- },
5793
- {
5794
- "name": "finished",
5795
- "description": "Custom finished tips"
5750
+ "name": "finished",
5751
+ "description": "Custom finished tips"
5796
5752
  },
5797
5753
  {
5798
5754
  "name": "error",
@@ -6746,15 +6702,15 @@
6746
6702
  "events": [
6747
6703
  {
6748
6704
  "name": "confirm",
6749
- "description": "Emitted when click confirm button"
6705
+ "description": "Emitted when the confirm button is clicked"
6750
6706
  },
6751
6707
  {
6752
6708
  "name": "cancel",
6753
- "description": "Emitted when click cancel button"
6709
+ "description": "Emitted when the cancel button is clicked"
6754
6710
  },
6755
6711
  {
6756
6712
  "name": "change",
6757
- "description": "Emitted when current option changed"
6713
+ "description": "Emitted when current option is changed"
6758
6714
  }
6759
6715
  ],
6760
6716
  "attributes": [
@@ -6764,13 +6720,13 @@
6764
6720
  "description": "Columns data",
6765
6721
  "options": [],
6766
6722
  "value": {
6767
- "type": "Column[]",
6723
+ "type": "PickerOption[] | PickerOption[][]",
6768
6724
  "kind": "expression"
6769
6725
  }
6770
6726
  },
6771
6727
  {
6772
6728
  "name": "columns-field-names",
6773
- "default": "`{ text: 'text', values: 'values', children: 'children' }`",
6729
+ "default": "`{ text: 'text', value: 'value', children: 'children' }`",
6774
6730
  "description": "custom columns field",
6775
6731
  "options": [],
6776
6732
  "value": {
@@ -6849,17 +6805,7 @@
6849
6805
  }
6850
6806
  },
6851
6807
  {
6852
- "name": "default-index",
6853
- "default": "`0`",
6854
- "description": "Default value index of single column picker",
6855
- "options": [],
6856
- "value": {
6857
- "type": "number | string",
6858
- "kind": "expression"
6859
- }
6860
- },
6861
- {
6862
- "name": "item-height",
6808
+ "name": "option-height",
6863
6809
  "default": "`44`",
6864
6810
  "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
6865
6811
  "options": [],
@@ -6869,7 +6815,7 @@
6869
6815
  }
6870
6816
  },
6871
6817
  {
6872
- "name": "visible-item-count",
6818
+ "name": "visible-option-num",
6873
6819
  "default": "`6`",
6874
6820
  "description": "Count of visible columns",
6875
6821
  "options": [],
@@ -7332,6 +7278,16 @@
7332
7278
  "kind": "expression"
7333
7279
  }
7334
7280
  },
7281
+ {
7282
+ "name": "safe-area-inset-top",
7283
+ "default": "`false`",
7284
+ "description": "Whether to enable top safe area adaptation",
7285
+ "options": [],
7286
+ "value": {
7287
+ "type": "boolean",
7288
+ "kind": "expression"
7289
+ }
7290
+ },
7335
7291
  {
7336
7292
  "name": "safe-area-inset-bottom",
7337
7293
  "default": "`false`",
@@ -9408,28 +9364,40 @@
9408
9364
  ]
9409
9365
  },
9410
9366
  {
9411
- "name": "van-swipe",
9367
+ "name": "van-swipe-cell",
9412
9368
  "slots": [
9413
9369
  {
9414
9370
  "name": "default",
9415
- "description": "Content"
9371
+ "description": "custom content"
9416
9372
  },
9417
9373
  {
9418
- "name": "indicator",
9419
- "description": "Custom indicator"
9374
+ "name": "left",
9375
+ "description": "content of left scrollable area"
9376
+ },
9377
+ {
9378
+ "name": "right",
9379
+ "description": "content of right scrollable area"
9420
9380
  }
9421
9381
  ],
9422
9382
  "events": [
9423
9383
  {
9424
- "name": "change",
9425
- "description": "Emitted when current swipe changed"
9384
+ "name": "click",
9385
+ "description": "Emitted when SwipeCell is clicked"
9386
+ },
9387
+ {
9388
+ "name": "open",
9389
+ "description": "Emitted when SwipeCell is opened"
9390
+ },
9391
+ {
9392
+ "name": "close",
9393
+ "description": "Emitted when SwipeCell is closed"
9426
9394
  }
9427
9395
  ],
9428
9396
  "attributes": [
9429
9397
  {
9430
- "name": "autoplay",
9398
+ "name": "name",
9431
9399
  "default": "-",
9432
- "description": "Autoplay interval (ms)",
9400
+ "description": "Identifier of SwipeCell",
9433
9401
  "options": [],
9434
9402
  "value": {
9435
9403
  "type": "number | string",
@@ -9437,9 +9405,9 @@
9437
9405
  }
9438
9406
  },
9439
9407
  {
9440
- "name": "duration",
9441
- "default": "`500`",
9442
- "description": "Animation duration (ms)",
9408
+ "name": "left-width",
9409
+ "default": "`auto`",
9410
+ "description": "Width of the left swipe area",
9443
9411
  "options": [],
9444
9412
  "value": {
9445
9413
  "type": "number | string",
@@ -9447,9 +9415,9 @@
9447
9415
  }
9448
9416
  },
9449
9417
  {
9450
- "name": "initial-swipe",
9451
- "default": "`0`",
9452
- "description": "Index of initial swipe, start from 0",
9418
+ "name": "right-width",
9419
+ "default": "`auto`",
9420
+ "description": "Width of the right swipe area",
9453
9421
  "options": [],
9454
9422
  "value": {
9455
9423
  "type": "number | string",
@@ -9457,143 +9425,136 @@
9457
9425
  }
9458
9426
  },
9459
9427
  {
9460
- "name": "width",
9461
- "default": "`0`",
9462
- "description": "Width of swipe item",
9428
+ "name": "before-close",
9429
+ "default": "-",
9430
+ "description": "Callback function before close",
9463
9431
  "options": [],
9464
9432
  "value": {
9465
- "type": "number | string",
9433
+ "type": "(args) => boolean | Promise\\<boolean\\>",
9466
9434
  "kind": "expression"
9467
9435
  }
9468
9436
  },
9469
9437
  {
9470
- "name": "height",
9471
- "default": "`0`",
9472
- "description": "Height of swipe item",
9438
+ "name": "disabled",
9439
+ "default": "`false`",
9440
+ "description": "Whether to disabled swipe",
9473
9441
  "options": [],
9474
9442
  "value": {
9475
- "type": "number | string",
9443
+ "type": "boolean",
9476
9444
  "kind": "expression"
9477
9445
  }
9478
9446
  },
9479
9447
  {
9480
- "name": "loop",
9481
- "default": "`true`",
9482
- "description": "Whether to enable loop",
9448
+ "name": "stop-propagation",
9449
+ "default": "`false`",
9450
+ "description": "Whether to stop touchmove event propagation",
9483
9451
  "options": [],
9484
9452
  "value": {
9485
9453
  "type": "boolean",
9486
9454
  "kind": "expression"
9487
9455
  }
9456
+ }
9457
+ ]
9458
+ },
9459
+ {
9460
+ "name": "van-tabs",
9461
+ "slots": [
9462
+ {
9463
+ "name": "nav-left",
9464
+ "description": "Custom nav left content"
9488
9465
  },
9489
9466
  {
9490
- "name": "show-indicators",
9491
- "default": "`true`",
9492
- "description": "Whether to show indicators",
9493
- "options": [],
9494
- "value": {
9495
- "type": "boolean",
9496
- "kind": "expression"
9497
- }
9467
+ "name": "nav-right",
9468
+ "description": "Custom nav right content"
9498
9469
  },
9499
9470
  {
9500
- "name": "vertical",
9501
- "default": "`false`",
9502
- "description": "Whether to be vertical Scrolling",
9471
+ "name": "nav-bottom",
9472
+ "description": "Custom nav bottom content"
9473
+ }
9474
+ ],
9475
+ "events": [
9476
+ {
9477
+ "name": "click-tab",
9478
+ "description": "Emitted when a tab is clicked"
9479
+ },
9480
+ {
9481
+ "name": "change",
9482
+ "description": "Emitted when active tab changed"
9483
+ },
9484
+ {
9485
+ "name": "rendered",
9486
+ "description": "Emitted when content first rendered in lazy-render mode"
9487
+ },
9488
+ {
9489
+ "name": "scroll",
9490
+ "description": "Emitted when tab scrolling in sticky mode"
9491
+ }
9492
+ ],
9493
+ "attributes": [
9494
+ {
9495
+ "name": "v-model:active",
9496
+ "default": "`0`",
9497
+ "description": "Index of active tab",
9503
9498
  "options": [],
9504
9499
  "value": {
9505
- "type": "boolean",
9500
+ "type": "number | string",
9506
9501
  "kind": "expression"
9507
9502
  }
9508
9503
  },
9509
9504
  {
9510
- "name": "touchable",
9511
- "default": "`true`",
9512
- "description": "Whether to allow swipe by touch gesture",
9505
+ "name": "type",
9506
+ "default": "`line`",
9507
+ "description": "Can be set to `line` `card`",
9513
9508
  "options": [],
9514
9509
  "value": {
9515
- "type": "boolean",
9510
+ "type": "string",
9516
9511
  "kind": "expression"
9517
9512
  }
9518
9513
  },
9519
9514
  {
9520
- "name": "stop-propagation",
9521
- "default": "`false`",
9522
- "description": "Whether to stop touchmove event propagation",
9515
+ "name": "color",
9516
+ "default": "`#1989fa`",
9517
+ "description": "Tab color",
9523
9518
  "options": [],
9524
9519
  "value": {
9525
- "type": "boolean",
9520
+ "type": "string",
9526
9521
  "kind": "expression"
9527
9522
  }
9528
9523
  },
9529
9524
  {
9530
- "name": "lazy-render",
9531
- "default": "`false`",
9532
- "description": "Whether to enable lazy render",
9525
+ "name": "background",
9526
+ "default": "`white`",
9527
+ "description": "Background color",
9533
9528
  "options": [],
9534
9529
  "value": {
9535
- "type": "boolean",
9530
+ "type": "string",
9536
9531
  "kind": "expression"
9537
9532
  }
9538
9533
  },
9539
9534
  {
9540
- "name": "indicator-color",
9541
- "default": "`#1989fa`",
9542
- "description": "Indicator color",
9535
+ "name": "duration",
9536
+ "default": "`0.3`",
9537
+ "description": "Toggle tab's animation time",
9543
9538
  "options": [],
9544
9539
  "value": {
9545
- "type": "string",
9540
+ "type": "number | string",
9546
9541
  "kind": "expression"
9547
9542
  }
9548
- }
9549
- ]
9550
- },
9551
- {
9552
- "name": "van-swipe-item",
9553
- "slots": [],
9554
- "events": [
9555
- {
9556
- "name": "click",
9557
- "description": "Emitted when component is clicked"
9558
- }
9559
- ],
9560
- "attributes": []
9561
- },
9562
- {
9563
- "name": "van-swipe-cell",
9564
- "slots": [
9565
- {
9566
- "name": "default",
9567
- "description": "custom content"
9568
- },
9569
- {
9570
- "name": "left",
9571
- "description": "content of left scrollable area"
9572
- },
9573
- {
9574
- "name": "right",
9575
- "description": "content of right scrollable area"
9576
- }
9577
- ],
9578
- "events": [
9579
- {
9580
- "name": "click",
9581
- "description": "Emitted when SwipeCell is clicked"
9582
9543
  },
9583
9544
  {
9584
- "name": "open",
9585
- "description": "Emitted when SwipeCell is opened"
9545
+ "name": "line-width",
9546
+ "default": "`40px`",
9547
+ "description": "Width of tab line",
9548
+ "options": [],
9549
+ "value": {
9550
+ "type": "number | string",
9551
+ "kind": "expression"
9552
+ }
9586
9553
  },
9587
9554
  {
9588
- "name": "close",
9589
- "description": "Emitted when SwipeCell is closed"
9590
- }
9591
- ],
9592
- "attributes": [
9593
- {
9594
- "name": "name",
9595
- "default": "-",
9596
- "description": "Identifier of SwipeCell",
9555
+ "name": "line-height",
9556
+ "default": "`3px`",
9557
+ "description": "Height of tab line",
9597
9558
  "options": [],
9598
9559
  "value": {
9599
9560
  "type": "number | string",
@@ -9601,39 +9562,39 @@
9601
9562
  }
9602
9563
  },
9603
9564
  {
9604
- "name": "left-width",
9605
- "default": "`auto`",
9606
- "description": "Width of the left swipe area",
9565
+ "name": "animated",
9566
+ "default": "`false`",
9567
+ "description": "Whether to change tabs with animation",
9607
9568
  "options": [],
9608
9569
  "value": {
9609
- "type": "number | string",
9570
+ "type": "boolean",
9610
9571
  "kind": "expression"
9611
9572
  }
9612
9573
  },
9613
9574
  {
9614
- "name": "right-width",
9615
- "default": "`auto`",
9616
- "description": "Width of the right swipe area",
9575
+ "name": "border",
9576
+ "default": "`false`",
9577
+ "description": "Whether to show border when `type=\"line\"`",
9617
9578
  "options": [],
9618
9579
  "value": {
9619
- "type": "number | string",
9580
+ "type": "boolean",
9620
9581
  "kind": "expression"
9621
9582
  }
9622
9583
  },
9623
9584
  {
9624
- "name": "before-close",
9625
- "default": "-",
9626
- "description": "Callback function before close",
9585
+ "name": "ellipsis",
9586
+ "default": "`true`",
9587
+ "description": "Whether to ellipsis too long title",
9627
9588
  "options": [],
9628
9589
  "value": {
9629
- "type": "(args) => boolean | Promise\\<boolean\\>",
9590
+ "type": "boolean",
9630
9591
  "kind": "expression"
9631
9592
  }
9632
9593
  },
9633
9594
  {
9634
- "name": "disabled",
9595
+ "name": "sticky",
9635
9596
  "default": "`false`",
9636
- "description": "Whether to disabled swipe",
9597
+ "description": "Whether to use sticky mode",
9637
9598
  "options": [],
9638
9599
  "value": {
9639
9600
  "type": "boolean",
@@ -9641,45 +9602,29 @@
9641
9602
  }
9642
9603
  },
9643
9604
  {
9644
- "name": "stop-propagation",
9605
+ "name": "shrink",
9645
9606
  "default": "`false`",
9646
- "description": "Whether to stop touchmove event propagation",
9607
+ "description": "Whether to shrink the the tabs to the left",
9647
9608
  "options": [],
9648
9609
  "value": {
9649
9610
  "type": "boolean",
9650
9611
  "kind": "expression"
9651
9612
  }
9652
- }
9653
- ]
9654
- },
9655
- {
9656
- "name": "van-switch",
9657
- "slots": [],
9658
- "events": [
9659
- {
9660
- "name": "change",
9661
- "description": "Emitted when check status changed"
9662
9613
  },
9663
9614
  {
9664
- "name": "click",
9665
- "description": "Emitted when component is clicked"
9666
- }
9667
- ],
9668
- "attributes": [
9669
- {
9670
- "name": "v-model",
9615
+ "name": "swipeable",
9671
9616
  "default": "`false`",
9672
- "description": "Check status of Switch",
9617
+ "description": "Whether to enable gestures to slide left and right",
9673
9618
  "options": [],
9674
9619
  "value": {
9675
- "type": "ActiveValue | InactiveValue",
9620
+ "type": "boolean",
9676
9621
  "kind": "expression"
9677
9622
  }
9678
9623
  },
9679
9624
  {
9680
- "name": "loading",
9681
- "default": "`false`",
9682
- "description": "Whether to show loading icon",
9625
+ "name": "lazy-render",
9626
+ "default": "`true`",
9627
+ "description": "Whether to enable tab content lazy render",
9683
9628
  "options": [],
9684
9629
  "value": {
9685
9630
  "type": "boolean",
@@ -9687,9 +9632,9 @@
9687
9632
  }
9688
9633
  },
9689
9634
  {
9690
- "name": "disabled",
9635
+ "name": "scrollspy",
9691
9636
  "default": "`false`",
9692
- "description": "Whether to disable switch",
9637
+ "description": "Whether to use scrollspy mode",
9693
9638
  "options": [],
9694
9639
  "value": {
9695
9640
  "type": "boolean",
@@ -9697,9 +9642,9 @@
9697
9642
  }
9698
9643
  },
9699
9644
  {
9700
- "name": "size",
9701
- "default": "`30px`",
9702
- "description": "Size of switch",
9645
+ "name": "offset-top",
9646
+ "default": "`0`",
9647
+ "description": "Sticky offset top , supports `px` `vw` `vh` `rem` unit, default `px`",
9703
9648
  "options": [],
9704
9649
  "value": {
9705
9650
  "type": "number | string",
@@ -9707,19 +9652,19 @@
9707
9652
  }
9708
9653
  },
9709
9654
  {
9710
- "name": "active-color",
9711
- "default": "`#1989fa`",
9712
- "description": "Background color when active",
9655
+ "name": "swipe-threshold",
9656
+ "default": "`5`",
9657
+ "description": "Set swipe tabs threshold",
9713
9658
  "options": [],
9714
9659
  "value": {
9715
- "type": "string",
9660
+ "type": "number | string",
9716
9661
  "kind": "expression"
9717
9662
  }
9718
9663
  },
9719
9664
  {
9720
- "name": "inactive-color",
9721
- "default": "`white`",
9722
- "description": "Background color when inactive",
9665
+ "name": "title-active-color",
9666
+ "default": "-",
9667
+ "description": "Title active color",
9723
9668
  "options": [],
9724
9669
  "value": {
9725
9670
  "type": "string",
@@ -9727,106 +9672,77 @@
9727
9672
  }
9728
9673
  },
9729
9674
  {
9730
- "name": "active-value",
9731
- "default": "`true`",
9732
- "description": "Value when active",
9675
+ "name": "title-inactive-color",
9676
+ "default": "-",
9677
+ "description": "Title inactive color",
9733
9678
  "options": [],
9734
9679
  "value": {
9735
- "type": "any",
9680
+ "type": "string",
9736
9681
  "kind": "expression"
9737
9682
  }
9738
9683
  },
9739
9684
  {
9740
- "name": "inactive-value",
9741
- "default": "`false`",
9742
- "description": "Value when inactive",
9743
- "options": [],
9685
+ "name": "before-change",
9686
+ "default": "Promise\\<boolean\\>_",
9687
+ "description": "Callback function before changing tabs,return `false` to prevent change,support return Promise",
9688
+ "options": [
9689
+ "-"
9690
+ ],
9744
9691
  "value": {
9745
- "type": "any",
9692
+ "type": "(name: number | string) => boolean \\",
9746
9693
  "kind": "expression"
9747
9694
  }
9748
9695
  }
9749
9696
  ]
9750
9697
  },
9751
9698
  {
9752
- "name": "van-tabs",
9699
+ "name": "van-tab",
9753
9700
  "slots": [
9754
9701
  {
9755
- "name": "nav-left",
9756
- "description": "Custom nav left content"
9757
- },
9758
- {
9759
- "name": "nav-right",
9760
- "description": "Custom nav right content"
9702
+ "name": "default",
9703
+ "description": "Content of tab"
9761
9704
  },
9762
9705
  {
9763
- "name": "nav-bottom",
9764
- "description": "Custom nav bottom content"
9706
+ "name": "title",
9707
+ "description": "Custom tab title"
9765
9708
  }
9766
9709
  ],
9767
- "events": [
9768
- {
9769
- "name": "click-tab",
9770
- "description": "Emitted when a tab is clicked"
9771
- },
9710
+ "events": [],
9711
+ "attributes": [
9772
9712
  {
9773
- "name": "change",
9774
- "description": "Emitted when active tab changed"
9713
+ "name": "title",
9714
+ "default": "-",
9715
+ "description": "Title",
9716
+ "options": [],
9717
+ "value": {
9718
+ "type": "string",
9719
+ "kind": "expression"
9720
+ }
9775
9721
  },
9776
9722
  {
9777
- "name": "rendered",
9778
- "description": "Emitted when content first rendered in lazy-render mode"
9779
- },
9780
- {
9781
- "name": "scroll",
9782
- "description": "Emitted when tab scrolling in sticky mode"
9783
- }
9784
- ],
9785
- "attributes": [
9786
- {
9787
- "name": "v-model:active",
9788
- "default": "`0`",
9789
- "description": "Index of active tab",
9790
- "options": [],
9791
- "value": {
9792
- "type": "number | string",
9793
- "kind": "expression"
9794
- }
9795
- },
9796
- {
9797
- "name": "type",
9798
- "default": "`line`",
9799
- "description": "Can be set to `line` `card`",
9800
- "options": [],
9801
- "value": {
9802
- "type": "string",
9803
- "kind": "expression"
9804
- }
9805
- },
9806
- {
9807
- "name": "color",
9808
- "default": "`#ee0a24`",
9809
- "description": "Tab color",
9723
+ "name": "disabled",
9724
+ "default": "`false`",
9725
+ "description": "Whether to disable tab",
9810
9726
  "options": [],
9811
9727
  "value": {
9812
- "type": "string",
9728
+ "type": "boolean",
9813
9729
  "kind": "expression"
9814
9730
  }
9815
9731
  },
9816
9732
  {
9817
- "name": "background",
9818
- "default": "`white`",
9819
- "description": "Background color",
9733
+ "name": "dot",
9734
+ "default": "`false`",
9735
+ "description": "Whether to show red dot on the title",
9820
9736
  "options": [],
9821
9737
  "value": {
9822
- "type": "string",
9738
+ "type": "boolean",
9823
9739
  "kind": "expression"
9824
9740
  }
9825
9741
  },
9826
9742
  {
9827
- "name": "duration",
9828
- "default": "`0.3`",
9829
- "description": "Toggle tab's animation time",
9743
+ "name": "badge",
9744
+ "default": "-",
9745
+ "description": "Content of the badge on the title",
9830
9746
  "options": [],
9831
9747
  "value": {
9832
9748
  "type": "number | string",
@@ -9834,9 +9750,9 @@
9834
9750
  }
9835
9751
  },
9836
9752
  {
9837
- "name": "line-width",
9838
- "default": "`40px`",
9839
- "description": "Width of tab line",
9753
+ "name": "name",
9754
+ "default": "Index of tab",
9755
+ "description": "Identifier",
9840
9756
  "options": [],
9841
9757
  "value": {
9842
9758
  "type": "number | string",
@@ -9844,29 +9760,29 @@
9844
9760
  }
9845
9761
  },
9846
9762
  {
9847
- "name": "line-height",
9848
- "default": "`3px`",
9849
- "description": "Height of tab line",
9763
+ "name": "url",
9764
+ "default": "-",
9765
+ "description": "Link",
9850
9766
  "options": [],
9851
9767
  "value": {
9852
- "type": "number | string",
9768
+ "type": "string",
9853
9769
  "kind": "expression"
9854
9770
  }
9855
9771
  },
9856
9772
  {
9857
- "name": "animated",
9858
- "default": "`false`",
9859
- "description": "Whether to change tabs with animation",
9773
+ "name": "to",
9774
+ "default": "-",
9775
+ "description": "Target route of the link, same as to of vue-router",
9860
9776
  "options": [],
9861
9777
  "value": {
9862
- "type": "boolean",
9778
+ "type": "string | object",
9863
9779
  "kind": "expression"
9864
9780
  }
9865
9781
  },
9866
9782
  {
9867
- "name": "border",
9783
+ "name": "replace",
9868
9784
  "default": "`false`",
9869
- "description": "Whether to show border when `type=\"line\"`",
9785
+ "description": "If true, the navigation will not leave a history record",
9870
9786
  "options": [],
9871
9787
  "value": {
9872
9788
  "type": "boolean",
@@ -9874,49 +9790,69 @@
9874
9790
  }
9875
9791
  },
9876
9792
  {
9877
- "name": "ellipsis",
9878
- "default": "`true`",
9879
- "description": "Whether to ellipsis too long title",
9880
- "options": [],
9793
+ "name": "title-style",
9794
+ "default": "object_",
9795
+ "description": "Custom title style",
9796
+ "options": [
9797
+ "-"
9798
+ ],
9881
9799
  "value": {
9882
- "type": "boolean",
9800
+ "type": "string | Array \\",
9883
9801
  "kind": "expression"
9884
9802
  }
9885
9803
  },
9886
9804
  {
9887
- "name": "sticky",
9888
- "default": "`false`",
9889
- "description": "Whether to use sticky mode",
9890
- "options": [],
9805
+ "name": "title-class",
9806
+ "default": "object_",
9807
+ "description": "Custom title class name",
9808
+ "options": [
9809
+ "-"
9810
+ ],
9891
9811
  "value": {
9892
- "type": "boolean",
9812
+ "type": "string | Array \\",
9893
9813
  "kind": "expression"
9894
9814
  }
9895
9815
  },
9896
9816
  {
9897
- "name": "shrink",
9898
- "default": "`false`",
9899
- "description": "Whether to shrink the the tabs to the left",
9817
+ "name": "show-zero-badge",
9818
+ "default": "`true`",
9819
+ "description": "Whether to show badge when the value is zero",
9900
9820
  "options": [],
9901
9821
  "value": {
9902
9822
  "type": "boolean",
9903
9823
  "kind": "expression"
9904
9824
  }
9825
+ }
9826
+ ]
9827
+ },
9828
+ {
9829
+ "name": "van-switch",
9830
+ "slots": [],
9831
+ "events": [
9832
+ {
9833
+ "name": "change",
9834
+ "description": "Emitted when check status changed"
9905
9835
  },
9906
9836
  {
9907
- "name": "swipeable",
9837
+ "name": "click",
9838
+ "description": "Emitted when component is clicked"
9839
+ }
9840
+ ],
9841
+ "attributes": [
9842
+ {
9843
+ "name": "v-model",
9908
9844
  "default": "`false`",
9909
- "description": "Whether to enable gestures to slide left and right",
9845
+ "description": "Check status of Switch",
9910
9846
  "options": [],
9911
9847
  "value": {
9912
- "type": "boolean",
9848
+ "type": "ActiveValue | InactiveValue",
9913
9849
  "kind": "expression"
9914
9850
  }
9915
9851
  },
9916
9852
  {
9917
- "name": "lazy-render",
9918
- "default": "`true`",
9919
- "description": "Whether to enable tab content lazy render",
9853
+ "name": "loading",
9854
+ "default": "`false`",
9855
+ "description": "Whether to show loading icon",
9920
9856
  "options": [],
9921
9857
  "value": {
9922
9858
  "type": "boolean",
@@ -9924,9 +9860,9 @@
9924
9860
  }
9925
9861
  },
9926
9862
  {
9927
- "name": "scrollspy",
9863
+ "name": "disabled",
9928
9864
  "default": "`false`",
9929
- "description": "Whether to use scrollspy mode",
9865
+ "description": "Whether to disable switch",
9930
9866
  "options": [],
9931
9867
  "value": {
9932
9868
  "type": "boolean",
@@ -9934,9 +9870,9 @@
9934
9870
  }
9935
9871
  },
9936
9872
  {
9937
- "name": "offset-top",
9938
- "default": "`0`",
9939
- "description": "Sticky offset top , supports `px` `vw` `vh` `rem` unit, default `px`",
9873
+ "name": "size",
9874
+ "default": "`26px`",
9875
+ "description": "Size of switch button",
9940
9876
  "options": [],
9941
9877
  "value": {
9942
9878
  "type": "number | string",
@@ -9944,19 +9880,19 @@
9944
9880
  }
9945
9881
  },
9946
9882
  {
9947
- "name": "swipe-threshold",
9948
- "default": "`5`",
9949
- "description": "Set swipe tabs threshold",
9883
+ "name": "active-color",
9884
+ "default": "`#1989fa`",
9885
+ "description": "Background color when active",
9950
9886
  "options": [],
9951
9887
  "value": {
9952
- "type": "number | string",
9888
+ "type": "string",
9953
9889
  "kind": "expression"
9954
9890
  }
9955
9891
  },
9956
9892
  {
9957
- "name": "title-active-color",
9958
- "default": "-",
9959
- "description": "Title active color",
9893
+ "name": "inactive-color",
9894
+ "default": "`rgba(120, 120, 128, 0.16)`",
9895
+ "description": "Background color when inactive",
9960
9896
  "options": [],
9961
9897
  "value": {
9962
9898
  "type": "string",
@@ -9964,57 +9900,51 @@
9964
9900
  }
9965
9901
  },
9966
9902
  {
9967
- "name": "title-inactive-color",
9968
- "default": "-",
9969
- "description": "Title inactive color",
9903
+ "name": "active-value",
9904
+ "default": "`true`",
9905
+ "description": "Value when active",
9970
9906
  "options": [],
9971
9907
  "value": {
9972
- "type": "string",
9908
+ "type": "any",
9973
9909
  "kind": "expression"
9974
9910
  }
9975
9911
  },
9976
9912
  {
9977
- "name": "before-change",
9978
- "default": "Promise\\<boolean\\>_",
9979
- "description": "Callback function before changing tabs,return `false` to prevent change,support return Promise",
9980
- "options": [
9981
- "-"
9982
- ],
9913
+ "name": "inactive-value",
9914
+ "default": "`false`",
9915
+ "description": "Value when inactive",
9916
+ "options": [],
9983
9917
  "value": {
9984
- "type": "(name: number | string) => boolean \\",
9918
+ "type": "any",
9985
9919
  "kind": "expression"
9986
9920
  }
9987
9921
  }
9988
9922
  ]
9989
9923
  },
9990
9924
  {
9991
- "name": "van-tab",
9992
- "slots": [
9993
- {
9994
- "name": "default",
9995
- "description": "Content of tab"
9996
- },
9925
+ "name": "van-tabbar",
9926
+ "slots": [],
9927
+ "events": [
9997
9928
  {
9998
- "name": "title",
9999
- "description": "Custom tab title"
9929
+ "name": "change",
9930
+ "description": "Emitted when changing active tab"
10000
9931
  }
10001
9932
  ],
10002
- "events": [],
10003
9933
  "attributes": [
10004
9934
  {
10005
- "name": "title",
10006
- "default": "-",
10007
- "description": "Title",
9935
+ "name": "v-model",
9936
+ "default": "`0`",
9937
+ "description": "Identifier of current tab",
10008
9938
  "options": [],
10009
9939
  "value": {
10010
- "type": "string",
9940
+ "type": "number | string",
10011
9941
  "kind": "expression"
10012
9942
  }
10013
9943
  },
10014
9944
  {
10015
- "name": "disabled",
10016
- "default": "`false`",
10017
- "description": "Whether to disable tab",
9945
+ "name": "fixed",
9946
+ "default": "`true`",
9947
+ "description": "Whether to fixed bottom",
10018
9948
  "options": [],
10019
9949
  "value": {
10020
9950
  "type": "boolean",
@@ -10022,9 +9952,9 @@
10022
9952
  }
10023
9953
  },
10024
9954
  {
10025
- "name": "dot",
10026
- "default": "`false`",
10027
- "description": "Whether to show red dot on the title",
9955
+ "name": "border",
9956
+ "default": "`true`",
9957
+ "description": "Whether to show border",
10028
9958
  "options": [],
10029
9959
  "value": {
10030
9960
  "type": "boolean",
@@ -10032,9 +9962,9 @@
10032
9962
  }
10033
9963
  },
10034
9964
  {
10035
- "name": "badge",
10036
- "default": "-",
10037
- "description": "Content of the badge on the title",
9965
+ "name": "z-index",
9966
+ "default": "`1`",
9967
+ "description": "Z-index",
10038
9968
  "options": [],
10039
9969
  "value": {
10040
9970
  "type": "number | string",
@@ -10042,19 +9972,19 @@
10042
9972
  }
10043
9973
  },
10044
9974
  {
10045
- "name": "name",
10046
- "default": "Index of tab",
10047
- "description": "Identifier",
9975
+ "name": "active-color",
9976
+ "default": "`#1989fa`",
9977
+ "description": "Color of active tab item",
10048
9978
  "options": [],
10049
9979
  "value": {
10050
- "type": "number | string",
9980
+ "type": "string",
10051
9981
  "kind": "expression"
10052
9982
  }
10053
9983
  },
10054
9984
  {
10055
- "name": "url",
10056
- "default": "-",
10057
- "description": "Link",
9985
+ "name": "inactive-color",
9986
+ "default": "`#7d7e80`",
9987
+ "description": "Color of inactive tab item",
10058
9988
  "options": [],
10059
9989
  "value": {
10060
9990
  "type": "string",
@@ -10062,19 +9992,19 @@
10062
9992
  }
10063
9993
  },
10064
9994
  {
10065
- "name": "to",
10066
- "default": "-",
10067
- "description": "Target route of the link, same as to of vue-router",
9995
+ "name": "route",
9996
+ "default": "`false`",
9997
+ "description": "Whether to enable route mode",
10068
9998
  "options": [],
10069
9999
  "value": {
10070
- "type": "string | object",
10000
+ "type": "boolean",
10071
10001
  "kind": "expression"
10072
10002
  }
10073
10003
  },
10074
10004
  {
10075
- "name": "replace",
10005
+ "name": "placeholder",
10076
10006
  "default": "`false`",
10077
- "description": "If true, the navigation will not leave a history record",
10007
+ "description": "Whether to generate a placeholder element when fixed",
10078
10008
  "options": [],
10079
10009
  "value": {
10080
10010
  "type": "boolean",
@@ -10082,33 +10012,123 @@
10082
10012
  }
10083
10013
  },
10084
10014
  {
10085
- "name": "title-style",
10086
- "default": "object_",
10087
- "description": "Custom title style",
10088
- "options": [
10089
- "-"
10090
- ],
10015
+ "name": "safe-area-inset-bottom",
10016
+ "default": "`false`",
10017
+ "description": "Whether to enable bottom safe area adaptation",
10018
+ "options": [],
10091
10019
  "value": {
10092
- "type": "string | Array \\",
10020
+ "type": "boolean",
10093
10021
  "kind": "expression"
10094
10022
  }
10095
10023
  },
10096
10024
  {
10097
- "name": "title-class",
10098
- "default": "object_",
10099
- "description": "Custom title class name",
10025
+ "name": "before-change",
10026
+ "default": "Promise\\<boolean\\>_",
10027
+ "description": "Callback function before changing tab,return `false` to prevent change,support return Promise",
10100
10028
  "options": [
10101
10029
  "-"
10102
10030
  ],
10103
10031
  "value": {
10104
- "type": "string | Array \\",
10032
+ "type": "(name: number | string) => boolean \\",
10033
+ "kind": "expression"
10034
+ }
10035
+ }
10036
+ ]
10037
+ },
10038
+ {
10039
+ "name": "van-tabbar-item",
10040
+ "slots": [
10041
+ {
10042
+ "name": "icon",
10043
+ "description": "Custom icon"
10044
+ }
10045
+ ],
10046
+ "events": [],
10047
+ "attributes": [
10048
+ {
10049
+ "name": "name",
10050
+ "default": "Item index",
10051
+ "description": "Identifier",
10052
+ "options": [],
10053
+ "value": {
10054
+ "type": "number | string",
10105
10055
  "kind": "expression"
10106
10056
  }
10107
10057
  },
10108
10058
  {
10109
- "name": "show-zero-badge",
10110
- "default": "`true`",
10111
- "description": "Whether to show badge when the value is zero",
10059
+ "name": "icon",
10060
+ "default": "-",
10061
+ "description": "Icon name",
10062
+ "options": [],
10063
+ "value": {
10064
+ "type": "string",
10065
+ "kind": "expression"
10066
+ }
10067
+ },
10068
+ {
10069
+ "name": "icon-prefix",
10070
+ "default": "`van-icon`",
10071
+ "description": "Icon className prefix",
10072
+ "options": [],
10073
+ "value": {
10074
+ "type": "string",
10075
+ "kind": "expression"
10076
+ }
10077
+ },
10078
+ {
10079
+ "name": "dot",
10080
+ "default": "-",
10081
+ "description": "Whether to show red dot",
10082
+ "options": [],
10083
+ "value": {
10084
+ "type": "boolean",
10085
+ "kind": "expression"
10086
+ }
10087
+ },
10088
+ {
10089
+ "name": "badge",
10090
+ "default": "`''`",
10091
+ "description": "Content of the badge",
10092
+ "options": [],
10093
+ "value": {
10094
+ "type": "number | string",
10095
+ "kind": "expression"
10096
+ }
10097
+ },
10098
+ {
10099
+ "name": "badge-props",
10100
+ "default": "-",
10101
+ "description": "Props of Badge,see [Badge - props](#/en-US/badge#props)",
10102
+ "options": [],
10103
+ "value": {
10104
+ "type": "BadgeProps",
10105
+ "kind": "expression"
10106
+ }
10107
+ },
10108
+ {
10109
+ "name": "url",
10110
+ "default": "-",
10111
+ "description": "Link",
10112
+ "options": [],
10113
+ "value": {
10114
+ "type": "string",
10115
+ "kind": "expression"
10116
+ }
10117
+ },
10118
+ {
10119
+ "name": "to",
10120
+ "default": "-",
10121
+ "description": "Target route of the link, same as to of vue-router",
10122
+ "options": [],
10123
+ "value": {
10124
+ "type": "string | object",
10125
+ "kind": "expression"
10126
+ }
10127
+ },
10128
+ {
10129
+ "name": "replace",
10130
+ "default": "`false`",
10131
+ "description": "If true, the navigation will not leave a history record",
10112
10132
  "options": [],
10113
10133
  "value": {
10114
10134
  "type": "boolean",
@@ -10118,19 +10138,48 @@
10118
10138
  ]
10119
10139
  },
10120
10140
  {
10121
- "name": "van-tabbar",
10122
- "slots": [],
10141
+ "name": "van-swipe",
10142
+ "slots": [
10143
+ {
10144
+ "name": "default",
10145
+ "description": "Content"
10146
+ },
10147
+ {
10148
+ "name": "indicator",
10149
+ "description": "Custom indicator"
10150
+ }
10151
+ ],
10123
10152
  "events": [
10124
10153
  {
10125
10154
  "name": "change",
10126
- "description": "Emitted when changing active tab"
10155
+ "description": "Emitted when current swipe changed"
10127
10156
  }
10128
10157
  ],
10129
10158
  "attributes": [
10130
10159
  {
10131
- "name": "v-model",
10160
+ "name": "autoplay",
10161
+ "default": "-",
10162
+ "description": "Autoplay interval (ms)",
10163
+ "options": [],
10164
+ "value": {
10165
+ "type": "number | string",
10166
+ "kind": "expression"
10167
+ }
10168
+ },
10169
+ {
10170
+ "name": "duration",
10171
+ "default": "`500`",
10172
+ "description": "Animation duration (ms)",
10173
+ "options": [],
10174
+ "value": {
10175
+ "type": "number | string",
10176
+ "kind": "expression"
10177
+ }
10178
+ },
10179
+ {
10180
+ "name": "initial-swipe",
10132
10181
  "default": "`0`",
10133
- "description": "Identifier of current tab",
10182
+ "description": "Index of initial swipe, start from 0",
10134
10183
  "options": [],
10135
10184
  "value": {
10136
10185
  "type": "number | string",
@@ -10138,9 +10187,29 @@
10138
10187
  }
10139
10188
  },
10140
10189
  {
10141
- "name": "fixed",
10190
+ "name": "width",
10191
+ "default": "`0`",
10192
+ "description": "Width of swipe item",
10193
+ "options": [],
10194
+ "value": {
10195
+ "type": "number | string",
10196
+ "kind": "expression"
10197
+ }
10198
+ },
10199
+ {
10200
+ "name": "height",
10201
+ "default": "`0`",
10202
+ "description": "Height of swipe item",
10203
+ "options": [],
10204
+ "value": {
10205
+ "type": "number | string",
10206
+ "kind": "expression"
10207
+ }
10208
+ },
10209
+ {
10210
+ "name": "loop",
10142
10211
  "default": "`true`",
10143
- "description": "Whether to fixed bottom",
10212
+ "description": "Whether to enable loop",
10144
10213
  "options": [],
10145
10214
  "value": {
10146
10215
  "type": "boolean",
@@ -10148,9 +10217,9 @@
10148
10217
  }
10149
10218
  },
10150
10219
  {
10151
- "name": "border",
10220
+ "name": "show-indicators",
10152
10221
  "default": "`true`",
10153
- "description": "Whether to show border",
10222
+ "description": "Whether to show indicators",
10154
10223
  "options": [],
10155
10224
  "value": {
10156
10225
  "type": "boolean",
@@ -10158,29 +10227,91 @@
10158
10227
  }
10159
10228
  },
10160
10229
  {
10161
- "name": "z-index",
10162
- "default": "`1`",
10163
- "description": "Z-index",
10230
+ "name": "vertical",
10231
+ "default": "`false`",
10232
+ "description": "Whether to be vertical Scrolling",
10164
10233
  "options": [],
10165
10234
  "value": {
10166
- "type": "number | string",
10235
+ "type": "boolean",
10167
10236
  "kind": "expression"
10168
10237
  }
10169
10238
  },
10170
10239
  {
10171
- "name": "active-color",
10240
+ "name": "touchable",
10241
+ "default": "`true`",
10242
+ "description": "Whether to allow swipe by touch gesture",
10243
+ "options": [],
10244
+ "value": {
10245
+ "type": "boolean",
10246
+ "kind": "expression"
10247
+ }
10248
+ },
10249
+ {
10250
+ "name": "stop-propagation",
10251
+ "default": "`false`",
10252
+ "description": "Whether to stop touchmove event propagation",
10253
+ "options": [],
10254
+ "value": {
10255
+ "type": "boolean",
10256
+ "kind": "expression"
10257
+ }
10258
+ },
10259
+ {
10260
+ "name": "lazy-render",
10261
+ "default": "`false`",
10262
+ "description": "Whether to enable lazy render",
10263
+ "options": [],
10264
+ "value": {
10265
+ "type": "boolean",
10266
+ "kind": "expression"
10267
+ }
10268
+ },
10269
+ {
10270
+ "name": "indicator-color",
10172
10271
  "default": "`#1989fa`",
10173
- "description": "Color of active tab item",
10272
+ "description": "Indicator color",
10174
10273
  "options": [],
10175
10274
  "value": {
10176
10275
  "type": "string",
10177
10276
  "kind": "expression"
10178
10277
  }
10278
+ }
10279
+ ]
10280
+ },
10281
+ {
10282
+ "name": "van-swipe-item",
10283
+ "slots": [],
10284
+ "events": [
10285
+ {
10286
+ "name": "click",
10287
+ "description": "Emitted when component is clicked"
10288
+ }
10289
+ ],
10290
+ "attributes": []
10291
+ },
10292
+ {
10293
+ "name": "van-tag",
10294
+ "slots": [
10295
+ {
10296
+ "name": "default",
10297
+ "description": "Default slot"
10298
+ }
10299
+ ],
10300
+ "events": [
10301
+ {
10302
+ "name": "click",
10303
+ "description": "Emitted when component is clicked"
10179
10304
  },
10180
10305
  {
10181
- "name": "inactive-color",
10182
- "default": "`#7d7e80`",
10183
- "description": "Color of inactive tab item",
10306
+ "name": "close",
10307
+ "description": "Emitted when close icon is clicked"
10308
+ }
10309
+ ],
10310
+ "attributes": [
10311
+ {
10312
+ "name": "type",
10313
+ "default": "`default`",
10314
+ "description": "Type, can be set to `primary` `success` `danger` `warning`",
10184
10315
  "options": [],
10185
10316
  "value": {
10186
10317
  "type": "string",
@@ -10188,9 +10319,39 @@
10188
10319
  }
10189
10320
  },
10190
10321
  {
10191
- "name": "route",
10322
+ "name": "size",
10323
+ "default": "-",
10324
+ "description": "Size, can be set to `large` `medium`",
10325
+ "options": [],
10326
+ "value": {
10327
+ "type": "string",
10328
+ "kind": "expression"
10329
+ }
10330
+ },
10331
+ {
10332
+ "name": "color",
10333
+ "default": "-",
10334
+ "description": "Custom color",
10335
+ "options": [],
10336
+ "value": {
10337
+ "type": "string",
10338
+ "kind": "expression"
10339
+ }
10340
+ },
10341
+ {
10342
+ "name": "show",
10343
+ "default": "`true`",
10344
+ "description": "Whether to show tag",
10345
+ "options": [],
10346
+ "value": {
10347
+ "type": "boolean",
10348
+ "kind": "expression"
10349
+ }
10350
+ },
10351
+ {
10352
+ "name": "plain",
10192
10353
  "default": "`false`",
10193
- "description": "Whether to enable route mode",
10354
+ "description": "Whether to be plain style",
10194
10355
  "options": [],
10195
10356
  "value": {
10196
10357
  "type": "boolean",
@@ -10198,9 +10359,9 @@
10198
10359
  }
10199
10360
  },
10200
10361
  {
10201
- "name": "placeholder",
10362
+ "name": "round",
10202
10363
  "default": "`false`",
10203
- "description": "Whether to generate a placeholder element when fixed",
10364
+ "description": "Whether to be round style",
10204
10365
  "options": [],
10205
10366
  "value": {
10206
10367
  "type": "boolean",
@@ -10208,9 +10369,9 @@
10208
10369
  }
10209
10370
  },
10210
10371
  {
10211
- "name": "safe-area-inset-bottom",
10372
+ "name": "mark",
10212
10373
  "default": "`false`",
10213
- "description": "Whether to enable bottom safe area adaptation",
10374
+ "description": "Whether to be mark style",
10214
10375
  "options": [],
10215
10376
  "value": {
10216
10377
  "type": "boolean",
@@ -10218,33 +10379,148 @@
10218
10379
  }
10219
10380
  },
10220
10381
  {
10221
- "name": "before-change",
10222
- "default": "Promise\\<boolean\\>_",
10223
- "description": "Callback function before changing tab,return `false` to prevent change,support return Promise",
10224
- "options": [
10225
- "-"
10226
- ],
10382
+ "name": "text-color",
10383
+ "default": "`white`",
10384
+ "description": "Text color",
10385
+ "options": [],
10227
10386
  "value": {
10228
- "type": "(name: number | string) => boolean \\",
10387
+ "type": "string",
10388
+ "kind": "expression"
10389
+ }
10390
+ },
10391
+ {
10392
+ "name": "closeable",
10393
+ "default": "`false`",
10394
+ "description": "Whether to be closeable",
10395
+ "options": [],
10396
+ "value": {
10397
+ "type": "boolean",
10229
10398
  "kind": "expression"
10230
10399
  }
10231
10400
  }
10232
10401
  ]
10233
10402
  },
10234
10403
  {
10235
- "name": "van-tabbar-item",
10404
+ "name": "van-time-picker",
10236
10405
  "slots": [
10237
10406
  {
10238
- "name": "icon",
10239
- "description": "Custom icon"
10407
+ "name": "default",
10408
+ "description": "Custom toolbar content"
10409
+ },
10410
+ {
10411
+ "name": "title",
10412
+ "description": "Custom title"
10413
+ },
10414
+ {
10415
+ "name": "confirm",
10416
+ "description": "Custom confirm button text"
10417
+ },
10418
+ {
10419
+ "name": "cancel",
10420
+ "description": "Custom cancel button text"
10421
+ },
10422
+ {
10423
+ "name": "option",
10424
+ "description": "Custom option content"
10425
+ },
10426
+ {
10427
+ "name": "columns-top",
10428
+ "description": "Custom content above columns"
10429
+ },
10430
+ {
10431
+ "name": "columns-bottom",
10432
+ "description": "Custom content below columns"
10433
+ }
10434
+ ],
10435
+ "events": [
10436
+ {
10437
+ "name": "confirm",
10438
+ "description": "Emitted when the confirm button is clicked"
10439
+ },
10440
+ {
10441
+ "name": "cancel",
10442
+ "description": "Emitted when the cancel button is clicked"
10443
+ },
10444
+ {
10445
+ "name": "change",
10446
+ "description": "Emitted when current option is changed"
10240
10447
  }
10241
10448
  ],
10242
- "events": [],
10243
10449
  "attributes": [
10244
10450
  {
10245
- "name": "name",
10246
- "default": "Item index",
10247
- "description": "Identifier",
10451
+ "name": "v-model",
10452
+ "default": "-",
10453
+ "description": "Current time",
10454
+ "options": [],
10455
+ "value": {
10456
+ "type": "string[]",
10457
+ "kind": "expression"
10458
+ }
10459
+ },
10460
+ {
10461
+ "name": "columns-type",
10462
+ "default": "`['hour', 'minute']`",
10463
+ "description": "Columns type",
10464
+ "options": [],
10465
+ "value": {
10466
+ "type": "string[]",
10467
+ "kind": "expression"
10468
+ }
10469
+ },
10470
+ {
10471
+ "name": "min-hour",
10472
+ "default": "`0`",
10473
+ "description": "Min hour",
10474
+ "options": [],
10475
+ "value": {
10476
+ "type": "number | string",
10477
+ "kind": "expression"
10478
+ }
10479
+ },
10480
+ {
10481
+ "name": "max-hour",
10482
+ "default": "`23`",
10483
+ "description": "Max hour",
10484
+ "options": [],
10485
+ "value": {
10486
+ "type": "number | string",
10487
+ "kind": "expression"
10488
+ }
10489
+ },
10490
+ {
10491
+ "name": "min-minute",
10492
+ "default": "`0`",
10493
+ "description": "Min minute",
10494
+ "options": [],
10495
+ "value": {
10496
+ "type": "number | string",
10497
+ "kind": "expression"
10498
+ }
10499
+ },
10500
+ {
10501
+ "name": "max-minute",
10502
+ "default": "`59`",
10503
+ "description": "Max minute",
10504
+ "options": [],
10505
+ "value": {
10506
+ "type": "number | string",
10507
+ "kind": "expression"
10508
+ }
10509
+ },
10510
+ {
10511
+ "name": "min-second",
10512
+ "default": "`0`",
10513
+ "description": "Min second",
10514
+ "options": [],
10515
+ "value": {
10516
+ "type": "number | string",
10517
+ "kind": "expression"
10518
+ }
10519
+ },
10520
+ {
10521
+ "name": "max-second",
10522
+ "default": "`59`",
10523
+ "description": "Max second",
10248
10524
  "options": [],
10249
10525
  "value": {
10250
10526
  "type": "number | string",
@@ -10252,9 +10528,9 @@
10252
10528
  }
10253
10529
  },
10254
10530
  {
10255
- "name": "icon",
10256
- "default": "-",
10257
- "description": "Icon name",
10531
+ "name": "title",
10532
+ "default": "`''`",
10533
+ "description": "Toolbar title",
10258
10534
  "options": [],
10259
10535
  "value": {
10260
10536
  "type": "string",
@@ -10262,9 +10538,9 @@
10262
10538
  }
10263
10539
  },
10264
10540
  {
10265
- "name": "icon-prefix",
10266
- "default": "`van-icon`",
10267
- "description": "Icon className prefix",
10541
+ "name": "confirm-button-text",
10542
+ "default": "`Confirm`",
10543
+ "description": "Text of confirm button",
10268
10544
  "options": [],
10269
10545
  "value": {
10270
10546
  "type": "string",
@@ -10272,173 +10548,175 @@
10272
10548
  }
10273
10549
  },
10274
10550
  {
10275
- "name": "dot",
10276
- "default": "-",
10277
- "description": "Whether to show red dot",
10551
+ "name": "cancel-button-text",
10552
+ "default": "`Cancel`",
10553
+ "description": "Text of cancel button",
10278
10554
  "options": [],
10279
10555
  "value": {
10280
- "type": "boolean",
10556
+ "type": "string",
10281
10557
  "kind": "expression"
10282
10558
  }
10283
10559
  },
10284
10560
  {
10285
- "name": "badge",
10286
- "default": "`''`",
10287
- "description": "Content of the badge",
10561
+ "name": "show-toolbar",
10562
+ "default": "`true`",
10563
+ "description": "Whether to show toolbar",
10288
10564
  "options": [],
10289
10565
  "value": {
10290
- "type": "number | string",
10566
+ "type": "boolean",
10291
10567
  "kind": "expression"
10292
10568
  }
10293
10569
  },
10294
10570
  {
10295
- "name": "badge-props",
10296
- "default": "-",
10297
- "description": "Props of Badge,see [Badge - props](#/en-US/badge#props)",
10571
+ "name": "loading",
10572
+ "default": "`false`",
10573
+ "description": "Whether to show loading prompt",
10298
10574
  "options": [],
10299
10575
  "value": {
10300
- "type": "BadgeProps",
10576
+ "type": "boolean",
10301
10577
  "kind": "expression"
10302
10578
  }
10303
10579
  },
10304
10580
  {
10305
- "name": "url",
10306
- "default": "-",
10307
- "description": "Link",
10581
+ "name": "readonly",
10582
+ "default": "`false`",
10583
+ "description": "Whether to be readonly",
10308
10584
  "options": [],
10309
10585
  "value": {
10310
- "type": "string",
10586
+ "type": "boolean",
10311
10587
  "kind": "expression"
10312
10588
  }
10313
10589
  },
10314
10590
  {
10315
- "name": "to",
10591
+ "name": "filter",
10316
10592
  "default": "-",
10317
- "description": "Target route of the link, same as to of vue-router",
10593
+ "description": "Option filter",
10318
10594
  "options": [],
10319
10595
  "value": {
10320
- "type": "string | object",
10596
+ "type": "(type: string, options: PickerOption[]) => PickerOption[]",
10321
10597
  "kind": "expression"
10322
10598
  }
10323
10599
  },
10324
10600
  {
10325
- "name": "replace",
10326
- "default": "`false`",
10327
- "description": "If true, the navigation will not leave a history record",
10601
+ "name": "formatter",
10602
+ "default": "-",
10603
+ "description": "Option text formatter",
10328
10604
  "options": [],
10329
10605
  "value": {
10330
- "type": "boolean",
10606
+ "type": "(type: string, option: PickerOption) => PickerOption",
10331
10607
  "kind": "expression"
10332
10608
  }
10333
- }
10334
- ]
10335
- },
10336
- {
10337
- "name": "van-tag",
10338
- "slots": [
10339
- {
10340
- "name": "default",
10341
- "description": "Default slot"
10342
- }
10343
- ],
10344
- "events": [
10345
- {
10346
- "name": "click",
10347
- "description": "Emitted when component is clicked"
10348
10609
  },
10349
10610
  {
10350
- "name": "close",
10351
- "description": "Emitted when close icon is clicked"
10352
- }
10353
- ],
10354
- "attributes": [
10355
- {
10356
- "name": "type",
10357
- "default": "`default`",
10358
- "description": "Type, can be set to `primary` `success` `danger` `warning`",
10611
+ "name": "option-height",
10612
+ "default": "`44`",
10613
+ "description": "Option height, supports `px` `vw` `vh` `rem` unit, default `px`",
10359
10614
  "options": [],
10360
10615
  "value": {
10361
- "type": "string",
10616
+ "type": "number | string",
10362
10617
  "kind": "expression"
10363
10618
  }
10364
10619
  },
10365
10620
  {
10366
- "name": "size",
10367
- "default": "-",
10368
- "description": "Size, can be set to `large` `medium`",
10621
+ "name": "visible-option-num",
10622
+ "default": "`6`",
10623
+ "description": "Count of visible columns",
10369
10624
  "options": [],
10370
10625
  "value": {
10371
- "type": "string",
10626
+ "type": "number | string",
10372
10627
  "kind": "expression"
10373
10628
  }
10374
10629
  },
10375
10630
  {
10376
- "name": "color",
10377
- "default": "-",
10378
- "description": "Custom color",
10631
+ "name": "swipe-duration",
10632
+ "default": "`1000`",
10633
+ "description": "Duration of the momentum animation,unit `ms`",
10379
10634
  "options": [],
10380
10635
  "value": {
10381
- "type": "string",
10636
+ "type": "number | string",
10382
10637
  "kind": "expression"
10383
10638
  }
10639
+ }
10640
+ ]
10641
+ },
10642
+ {
10643
+ "name": "van-tree-select",
10644
+ "slots": [
10645
+ {
10646
+ "name": "content",
10647
+ "description": "Custom right content"
10648
+ }
10649
+ ],
10650
+ "events": [
10651
+ {
10652
+ "name": "click-nav",
10653
+ "description": "Emitted when parent node is selected"
10384
10654
  },
10385
10655
  {
10386
- "name": "show",
10387
- "default": "`true`",
10388
- "description": "Whether to show tag",
10656
+ "name": "click-item",
10657
+ "description": "Emitted when item is selected"
10658
+ }
10659
+ ],
10660
+ "attributes": [
10661
+ {
10662
+ "name": "items",
10663
+ "default": "`[]`",
10664
+ "description": "Required datasets for the component",
10389
10665
  "options": [],
10390
10666
  "value": {
10391
- "type": "boolean",
10667
+ "type": "TreeSelectItem[]",
10392
10668
  "kind": "expression"
10393
10669
  }
10394
10670
  },
10395
10671
  {
10396
- "name": "plain",
10397
- "default": "`false`",
10398
- "description": "Whether to be plain style",
10672
+ "name": "height",
10673
+ "default": "`300`",
10674
+ "description": "Height",
10399
10675
  "options": [],
10400
10676
  "value": {
10401
- "type": "boolean",
10677
+ "type": "number | string",
10402
10678
  "kind": "expression"
10403
10679
  }
10404
10680
  },
10405
10681
  {
10406
- "name": "round",
10407
- "default": "`false`",
10408
- "description": "Whether to be round style",
10682
+ "name": "main-active-index",
10683
+ "default": "`0`",
10684
+ "description": "The index of selected parent node",
10409
10685
  "options": [],
10410
10686
  "value": {
10411
- "type": "boolean",
10687
+ "type": "number | string",
10412
10688
  "kind": "expression"
10413
10689
  }
10414
10690
  },
10415
10691
  {
10416
- "name": "mark",
10417
- "default": "`false`",
10418
- "description": "Whether to be mark style",
10419
- "options": [],
10692
+ "name": "active-id",
10693
+ "default": "<br>(number \\",
10694
+ "description": "Id of selected item",
10695
+ "options": [
10696
+ "string)[]_"
10697
+ ],
10420
10698
  "value": {
10421
- "type": "boolean",
10699
+ "type": "number | string \\",
10422
10700
  "kind": "expression"
10423
10701
  }
10424
10702
  },
10425
10703
  {
10426
- "name": "text-color",
10427
- "default": "`white`",
10428
- "description": "Text color",
10704
+ "name": "max",
10705
+ "default": "`Infinity`",
10706
+ "description": "Maximum number of selected items",
10429
10707
  "options": [],
10430
10708
  "value": {
10431
- "type": "string",
10709
+ "type": "number | string",
10432
10710
  "kind": "expression"
10433
10711
  }
10434
10712
  },
10435
10713
  {
10436
- "name": "closeable",
10437
- "default": "`false`",
10438
- "description": "Whether to be closeable",
10714
+ "name": "selected-icon",
10715
+ "default": "`success`",
10716
+ "description": "Selected icon",
10439
10717
  "options": [],
10440
10718
  "value": {
10441
- "type": "boolean",
10719
+ "type": "string",
10442
10720
  "kind": "expression"
10443
10721
  }
10444
10722
  }
@@ -10712,89 +10990,6 @@
10712
10990
  }
10713
10991
  }
10714
10992
  ]
10715
- },
10716
- {
10717
- "name": "van-tree-select",
10718
- "slots": [
10719
- {
10720
- "name": "content",
10721
- "description": "Custom right content"
10722
- }
10723
- ],
10724
- "events": [
10725
- {
10726
- "name": "click-nav",
10727
- "description": "Emitted when parent node is selected"
10728
- },
10729
- {
10730
- "name": "click-item",
10731
- "description": "Emitted when item is selected"
10732
- }
10733
- ],
10734
- "attributes": [
10735
- {
10736
- "name": "items",
10737
- "default": "`[]`",
10738
- "description": "Required datasets for the component",
10739
- "options": [],
10740
- "value": {
10741
- "type": "TreeSelectItem[]",
10742
- "kind": "expression"
10743
- }
10744
- },
10745
- {
10746
- "name": "height",
10747
- "default": "`300`",
10748
- "description": "Height",
10749
- "options": [],
10750
- "value": {
10751
- "type": "number | string",
10752
- "kind": "expression"
10753
- }
10754
- },
10755
- {
10756
- "name": "main-active-index",
10757
- "default": "`0`",
10758
- "description": "The index of selected parent node",
10759
- "options": [],
10760
- "value": {
10761
- "type": "number | string",
10762
- "kind": "expression"
10763
- }
10764
- },
10765
- {
10766
- "name": "active-id",
10767
- "default": "<br>(number \\",
10768
- "description": "Id of selected item",
10769
- "options": [
10770
- "string)[]_"
10771
- ],
10772
- "value": {
10773
- "type": "number | string \\",
10774
- "kind": "expression"
10775
- }
10776
- },
10777
- {
10778
- "name": "max",
10779
- "default": "`Infinity`",
10780
- "description": "Maximum number of selected items",
10781
- "options": [],
10782
- "value": {
10783
- "type": "number | string",
10784
- "kind": "expression"
10785
- }
10786
- },
10787
- {
10788
- "name": "selected-icon",
10789
- "default": "`success`",
10790
- "description": "Selected icon",
10791
- "options": [],
10792
- "value": {
10793
- "type": "string",
10794
- "kind": "expression"
10795
- }
10796
- }
10797
- ]
10798
10993
  }
10799
10994
  ],
10800
10995
  "attributes": [],