vant 3.4.0 → 3.4.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 (917) hide show
  1. package/es/action-bar/ActionBar.js +24 -20
  2. package/es/action-bar/index.js +8 -4
  3. package/es/action-bar/style/index.js +2 -2
  4. package/es/action-bar/style/less.js +2 -2
  5. package/es/action-bar-button/ActionBarButton.js +26 -28
  6. package/es/action-bar-button/index.js +8 -4
  7. package/es/action-bar-button/style/index.js +7 -7
  8. package/es/action-bar-button/style/less.js +7 -7
  9. package/es/action-bar-icon/ActionBarIcon.js +23 -29
  10. package/es/action-bar-icon/index.js +8 -4
  11. package/es/action-bar-icon/style/index.js +5 -5
  12. package/es/action-bar-icon/style/less.js +5 -5
  13. package/es/action-sheet/ActionSheet.js +47 -61
  14. package/es/action-sheet/index.js +8 -4
  15. package/es/action-sheet/style/index.js +7 -7
  16. package/es/action-sheet/style/less.js +7 -7
  17. package/es/address-edit/AddressEdit.js +186 -219
  18. package/es/address-edit/AddressEditDetail.js +31 -43
  19. package/es/address-edit/index.js +8 -4
  20. package/es/address-edit/style/index.js +13 -13
  21. package/es/address-edit/style/less.js +13 -13
  22. package/es/address-edit/types.js +0 -1
  23. package/es/address-list/AddressList.js +38 -49
  24. package/es/address-list/AddressListItem.js +39 -49
  25. package/es/address-list/index.js +8 -4
  26. package/es/address-list/style/index.js +11 -11
  27. package/es/address-list/style/less.js +11 -11
  28. package/es/area/Area.js +99 -161
  29. package/es/area/index.js +8 -4
  30. package/es/area/style/index.js +3 -3
  31. package/es/area/style/less.js +3 -3
  32. package/es/area/types.js +0 -1
  33. package/es/badge/Badge.js +33 -47
  34. package/es/badge/index.js +8 -4
  35. package/es/badge/style/index.js +2 -2
  36. package/es/badge/style/less.js +2 -2
  37. package/es/button/Button.js +43 -63
  38. package/es/button/index.js +8 -4
  39. package/es/button/style/index.js +5 -5
  40. package/es/button/style/less.js +5 -5
  41. package/es/button/types.js +0 -1
  42. package/es/calendar/Calendar.js +123 -221
  43. package/es/calendar/CalendarDay.js +54 -70
  44. package/es/calendar/CalendarHeader.js +30 -35
  45. package/es/calendar/CalendarMonth.js +97 -140
  46. package/es/calendar/index.js +8 -4
  47. package/es/calendar/style/index.js +10 -10
  48. package/es/calendar/style/less.js +10 -10
  49. package/es/calendar/types.js +0 -1
  50. package/es/calendar/utils.js +40 -30
  51. package/es/card/Card.js +53 -72
  52. package/es/card/index.js +8 -4
  53. package/es/card/style/index.js +6 -6
  54. package/es/card/style/less.js +6 -6
  55. package/es/cascader/Cascader.js +84 -118
  56. package/es/cascader/index.js +8 -4
  57. package/es/cascader/style/index.js +9 -9
  58. package/es/cascader/style/less.js +9 -9
  59. package/es/cascader/types.js +0 -1
  60. package/es/cell/Cell.js +42 -59
  61. package/es/cell/index.js +8 -4
  62. package/es/cell/style/index.js +4 -4
  63. package/es/cell/style/less.js +4 -4
  64. package/es/cell-group/CellGroup.js +25 -26
  65. package/es/cell-group/index.js +8 -4
  66. package/es/cell-group/style/index.js +2 -2
  67. package/es/cell-group/style/less.js +2 -2
  68. package/es/checkbox/Checkbox.js +35 -53
  69. package/es/checkbox/Checker.js +37 -45
  70. package/es/checkbox/index.js +8 -4
  71. package/es/checkbox/style/index.js +5 -5
  72. package/es/checkbox/style/less.js +5 -5
  73. package/es/checkbox/types.js +0 -1
  74. package/es/checkbox-group/CheckboxGroup.js +32 -41
  75. package/es/checkbox-group/index.js +8 -4
  76. package/es/checkbox-group/style/index.js +2 -2
  77. package/es/checkbox-group/style/less.js +2 -2
  78. package/es/checkbox-group/types.js +0 -1
  79. package/es/circle/Circle.js +60 -76
  80. package/es/circle/index.js +8 -4
  81. package/es/circle/style/index.js +2 -2
  82. package/es/circle/style/less.js +2 -2
  83. package/es/col/Col.js +27 -26
  84. package/es/col/index.js +8 -4
  85. package/es/col/style/index.js +3 -3
  86. package/es/col/style/less.js +3 -3
  87. package/es/collapse/Collapse.js +39 -46
  88. package/es/collapse/index.js +8 -4
  89. package/es/collapse/style/index.js +1 -1
  90. package/es/collapse/style/less.js +1 -1
  91. package/es/collapse-item/CollapseItem.js +57 -81
  92. package/es/collapse-item/index.js +8 -4
  93. package/es/collapse-item/style/index.js +5 -5
  94. package/es/collapse-item/style/less.js +5 -5
  95. package/es/collapse-item/types.js +0 -1
  96. package/es/composables/on-popup-reopen.js +10 -8
  97. package/es/composables/use-expose.js +8 -7
  98. package/es/composables/use-height.js +8 -5
  99. package/es/composables/use-id.js +11 -12
  100. package/es/composables/use-lazy-render.js +10 -9
  101. package/es/composables/use-lock-scroll.js +29 -43
  102. package/es/composables/use-placeholder.js +10 -7
  103. package/es/composables/use-refs.js +10 -10
  104. package/es/composables/use-route.js +19 -17
  105. package/es/composables/use-tab-status.js +7 -4
  106. package/es/composables/use-touch.js +25 -35
  107. package/es/composables/use-visibility-change.js +12 -18
  108. package/es/config-provider/ConfigProvider.js +23 -21
  109. package/es/config-provider/index.js +8 -4
  110. package/es/config-provider/style/index.js +1 -1
  111. package/es/config-provider/style/less.js +1 -1
  112. package/es/contact-card/ContactCard.js +24 -28
  113. package/es/contact-card/index.js +8 -4
  114. package/es/contact-card/style/index.js +5 -5
  115. package/es/contact-card/style/less.js +5 -5
  116. package/es/contact-edit/ContactEdit.js +48 -56
  117. package/es/contact-edit/index.js +8 -4
  118. package/es/contact-edit/style/index.js +9 -9
  119. package/es/contact-edit/style/less.js +9 -9
  120. package/es/contact-list/ContactList.js +41 -51
  121. package/es/contact-list/index.js +8 -4
  122. package/es/contact-list/style/index.js +11 -11
  123. package/es/contact-list/style/less.js +11 -11
  124. package/es/count-down/CountDown.js +23 -28
  125. package/es/count-down/index.js +8 -4
  126. package/es/count-down/style/index.js +2 -2
  127. package/es/count-down/style/less.js +2 -2
  128. package/es/count-down/types.js +0 -1
  129. package/es/count-down/utils.js +24 -35
  130. package/es/coupon/Coupon.js +35 -38
  131. package/es/coupon/index.js +8 -4
  132. package/es/coupon/style/index.js +6 -6
  133. package/es/coupon/style/less.js +6 -6
  134. package/es/coupon/utils.js +11 -6
  135. package/es/coupon-cell/CouponCell.js +23 -32
  136. package/es/coupon-cell/index.js +8 -4
  137. package/es/coupon-cell/style/index.js +5 -5
  138. package/es/coupon-cell/style/less.js +5 -5
  139. package/es/coupon-list/CouponList.js +101 -112
  140. package/es/coupon-list/index.js +8 -4
  141. package/es/coupon-list/style/index.js +16 -16
  142. package/es/coupon-list/style/less.js +16 -16
  143. package/es/datetime-picker/DatePicker.js +112 -157
  144. package/es/datetime-picker/DatetimePicker.js +25 -26
  145. package/es/datetime-picker/TimePicker.js +51 -69
  146. package/es/datetime-picker/index.js +8 -4
  147. package/es/datetime-picker/style/index.js +3 -3
  148. package/es/datetime-picker/style/less.js +3 -3
  149. package/es/datetime-picker/types.js +0 -1
  150. package/es/datetime-picker/utils.js +30 -20
  151. package/es/dialog/Dialog.js +58 -83
  152. package/es/dialog/function-call.js +25 -37
  153. package/es/dialog/index.js +6 -3
  154. package/es/dialog/style/index.js +10 -10
  155. package/es/dialog/style/less.js +10 -10
  156. package/es/dialog/types.js +0 -1
  157. package/es/divider/Divider.js +24 -21
  158. package/es/divider/index.js +8 -4
  159. package/es/divider/style/index.js +2 -2
  160. package/es/divider/style/less.js +2 -2
  161. package/es/dropdown-item/DropdownItem.js +62 -94
  162. package/es/dropdown-item/index.js +8 -4
  163. package/es/dropdown-item/style/index.js +8 -8
  164. package/es/dropdown-item/style/less.js +8 -8
  165. package/es/dropdown-item/types.js +0 -1
  166. package/es/dropdown-menu/DropdownMenu.js +55 -61
  167. package/es/dropdown-menu/index.js +8 -4
  168. package/es/dropdown-menu/style/index.js +2 -2
  169. package/es/dropdown-menu/style/less.js +2 -2
  170. package/es/dropdown-menu/types.js +0 -1
  171. package/es/empty/Empty.js +25 -34
  172. package/es/empty/Network.js +24 -23
  173. package/es/empty/index.js +8 -4
  174. package/es/empty/style/index.js +2 -2
  175. package/es/empty/style/less.js +2 -2
  176. package/es/field/Field.js +154 -243
  177. package/es/field/index.js +8 -4
  178. package/es/field/style/index.js +5 -5
  179. package/es/field/style/less.js +5 -5
  180. package/es/field/types.js +0 -1
  181. package/es/field/utils.js +50 -69
  182. package/es/form/Form.js +55 -74
  183. package/es/form/index.js +8 -4
  184. package/es/form/style/index.js +1 -1
  185. package/es/form/style/less.js +1 -1
  186. package/es/form/types.js +0 -1
  187. package/es/grid/Grid.js +28 -24
  188. package/es/grid/index.js +8 -4
  189. package/es/grid/style/index.js +2 -2
  190. package/es/grid/style/less.js +2 -2
  191. package/es/grid-item/GridItem.js +40 -57
  192. package/es/grid-item/index.js +8 -4
  193. package/es/grid-item/style/index.js +5 -5
  194. package/es/grid-item/style/less.js +5 -5
  195. package/es/icon/Icon.js +29 -28
  196. package/es/icon/index.js +8 -4
  197. package/es/icon/style/index.js +3 -3
  198. package/es/icon/style/less.js +3 -3
  199. package/es/image/Image.js +59 -78
  200. package/es/image/index.js +8 -4
  201. package/es/image/style/index.js +4 -4
  202. package/es/image/style/less.js +4 -4
  203. package/es/image-preview/ImagePreview.js +51 -69
  204. package/es/image-preview/ImagePreviewItem.js +72 -105
  205. package/es/image-preview/function-call.js +23 -36
  206. package/es/image-preview/index.js +6 -3
  207. package/es/image-preview/style/index.js +10 -10
  208. package/es/image-preview/style/less.js +10 -10
  209. package/es/image-preview/types.js +0 -1
  210. package/es/index-anchor/IndexAnchor.js +31 -42
  211. package/es/index-anchor/index.js +8 -4
  212. package/es/index-anchor/style/index.js +3 -3
  213. package/es/index-anchor/style/less.js +3 -3
  214. package/es/index-bar/IndexBar.js +73 -98
  215. package/es/index-bar/index.js +8 -4
  216. package/es/index-bar/style/index.js +2 -2
  217. package/es/index-bar/style/less.js +2 -2
  218. package/es/index-bar/types.js +0 -1
  219. package/es/index.d.ts +1 -1
  220. package/es/index.js +267 -180
  221. package/es/lazyload/index.js +6 -3
  222. package/es/lazyload/style/index.js +1 -1
  223. package/es/lazyload/style/less.js +1 -1
  224. package/es/lazyload/vue-lazyload/index.js +17 -32
  225. package/es/lazyload/vue-lazyload/lazy-component.js +11 -16
  226. package/es/lazyload/vue-lazyload/lazy-container.js +28 -56
  227. package/es/lazyload/vue-lazyload/lazy-image.js +21 -46
  228. package/es/lazyload/vue-lazyload/lazy.js +113 -264
  229. package/es/lazyload/vue-lazyload/listener.js +50 -130
  230. package/es/lazyload/vue-lazyload/util.js +67 -87
  231. package/es/list/List.js +52 -74
  232. package/es/list/index.js +8 -4
  233. package/es/list/style/index.js +3 -3
  234. package/es/list/style/less.js +3 -3
  235. package/es/list/types.js +0 -1
  236. package/es/loading/Loading.js +25 -30
  237. package/es/loading/index.js +8 -4
  238. package/es/loading/style/index.js +2 -2
  239. package/es/loading/style/less.js +2 -2
  240. package/es/locale/index.js +14 -19
  241. package/es/locale/lang/de-DE-formal.js +49 -46
  242. package/es/locale/lang/de-DE.js +49 -46
  243. package/es/locale/lang/en-US.js +49 -46
  244. package/es/locale/lang/es-ES.js +49 -46
  245. package/es/locale/lang/fr-FR.js +49 -46
  246. package/es/locale/lang/ja-JP.js +50 -47
  247. package/es/locale/lang/nb-NO.js +49 -46
  248. package/es/locale/lang/pt-BR.js +49 -46
  249. package/es/locale/lang/ro-RO.js +49 -46
  250. package/es/locale/lang/ru-RU.js +49 -46
  251. package/es/locale/lang/th-TH.js +50 -47
  252. package/es/locale/lang/tr-TR.js +49 -46
  253. package/es/locale/lang/zh-CN.js +50 -47
  254. package/es/locale/lang/zh-HK.js +50 -47
  255. package/es/locale/lang/zh-TW.js +50 -47
  256. package/es/locale/style/index.js +1 -1
  257. package/es/locale/style/less.js +1 -1
  258. package/es/nav-bar/NavBar.js +35 -47
  259. package/es/nav-bar/index.js +8 -4
  260. package/es/nav-bar/style/index.js +4 -4
  261. package/es/nav-bar/style/less.js +4 -4
  262. package/es/notice-bar/NoticeBar.js +62 -85
  263. package/es/notice-bar/index.js +8 -4
  264. package/es/notice-bar/style/index.js +4 -4
  265. package/es/notice-bar/style/less.js +4 -4
  266. package/es/notice-bar/types.js +0 -1
  267. package/es/notify/Notify.js +19 -21
  268. package/es/notify/function-call.js +23 -37
  269. package/es/notify/index.js +6 -3
  270. package/es/notify/style/index.js +6 -6
  271. package/es/notify/style/less.js +6 -6
  272. package/es/notify/types.js +0 -1
  273. package/es/number-keyboard/NumberKeyboard.js +81 -114
  274. package/es/number-keyboard/NumberKeyboardKey.js +32 -48
  275. package/es/number-keyboard/index.js +8 -4
  276. package/es/number-keyboard/style/index.js +3 -3
  277. package/es/number-keyboard/style/less.js +3 -3
  278. package/es/overlay/Overlay.js +21 -24
  279. package/es/overlay/index.js +8 -4
  280. package/es/overlay/style/index.js +2 -2
  281. package/es/overlay/style/less.js +2 -2
  282. package/es/pagination/Pagination.js +62 -84
  283. package/es/pagination/index.js +8 -4
  284. package/es/pagination/style/index.js +2 -2
  285. package/es/pagination/style/less.js +2 -2
  286. package/es/password-input/PasswordInput.js +30 -37
  287. package/es/password-input/index.js +8 -4
  288. package/es/password-input/style/index.js +2 -2
  289. package/es/password-input/style/less.js +2 -2
  290. package/es/picker/Picker.js +126 -196
  291. package/es/picker/PickerColumn.d.ts +3 -2
  292. package/es/picker/PickerColumn.js +86 -133
  293. package/es/picker/index.js +8 -4
  294. package/es/picker/style/index.js +3 -3
  295. package/es/picker/style/less.js +3 -3
  296. package/es/picker/types.d.ts +13 -0
  297. package/es/picker/types.js +0 -1
  298. package/es/popover/Popover.js +71 -87
  299. package/es/popover/index.css +1 -1
  300. package/es/popover/index.js +8 -4
  301. package/es/popover/index.less +8 -4
  302. package/es/popover/style/index.js +6 -6
  303. package/es/popover/style/less.js +6 -6
  304. package/es/popover/types.js +0 -1
  305. package/es/popup/Popup.js +67 -88
  306. package/es/popup/index.js +8 -4
  307. package/es/popup/shared.js +7 -15
  308. package/es/popup/style/index.js +5 -5
  309. package/es/popup/style/less.js +5 -5
  310. package/es/popup/types.js +0 -1
  311. package/es/progress/Progress.js +23 -25
  312. package/es/progress/index.js +8 -4
  313. package/es/progress/style/index.js +2 -2
  314. package/es/progress/style/less.js +2 -2
  315. package/es/progress/types.js +0 -1
  316. package/es/pull-refresh/PullRefresh.js +66 -96
  317. package/es/pull-refresh/index.js +8 -4
  318. package/es/pull-refresh/style/index.js +3 -3
  319. package/es/pull-refresh/style/less.js +3 -3
  320. package/es/radio/Radio.js +23 -29
  321. package/es/radio/index.js +8 -4
  322. package/es/radio/style/index.js +6 -6
  323. package/es/radio/style/less.js +6 -6
  324. package/es/radio-group/RadioGroup.js +27 -25
  325. package/es/radio-group/index.js +8 -4
  326. package/es/radio-group/style/index.js +2 -2
  327. package/es/radio-group/style/less.js +2 -2
  328. package/es/rate/Rate.js +53 -77
  329. package/es/rate/index.js +8 -4
  330. package/es/rate/style/index.js +4 -4
  331. package/es/rate/style/less.js +4 -4
  332. package/es/row/Row.js +41 -40
  333. package/es/row/index.js +8 -4
  334. package/es/row/style/index.js +2 -2
  335. package/es/row/style/less.js +2 -2
  336. package/es/search/Search.js +67 -89
  337. package/es/search/index.js +8 -4
  338. package/es/search/style/index.js +6 -6
  339. package/es/search/style/less.js +6 -6
  340. package/es/search/types.js +0 -1
  341. package/es/share-sheet/ShareSheet.js +46 -65
  342. package/es/share-sheet/index.js +8 -4
  343. package/es/share-sheet/style/index.js +6 -6
  344. package/es/share-sheet/style/less.js +6 -6
  345. package/es/sidebar/Sidebar.js +29 -28
  346. package/es/sidebar/index.js +8 -4
  347. package/es/sidebar/style/index.js +2 -2
  348. package/es/sidebar/style/less.js +2 -2
  349. package/es/sidebar-item/SidebarItem.js +28 -36
  350. package/es/sidebar-item/index.js +8 -4
  351. package/es/sidebar-item/style/index.js +4 -4
  352. package/es/sidebar-item/style/less.js +4 -4
  353. package/es/skeleton/Skeleton.js +26 -34
  354. package/es/skeleton/index.js +8 -4
  355. package/es/skeleton/style/index.js +2 -2
  356. package/es/skeleton/style/less.js +2 -2
  357. package/es/slider/Slider.js +99 -158
  358. package/es/slider/index.js +8 -4
  359. package/es/slider/style/index.js +2 -2
  360. package/es/slider/style/less.js +2 -2
  361. package/es/step/Step.js +47 -68
  362. package/es/step/index.js +8 -4
  363. package/es/step/style/index.js +5 -5
  364. package/es/step/style/less.js +5 -5
  365. package/es/stepper/Stepper.js +82 -123
  366. package/es/stepper/index.js +8 -4
  367. package/es/stepper/style/index.js +2 -2
  368. package/es/stepper/style/less.js +2 -2
  369. package/es/steps/Steps.js +29 -27
  370. package/es/steps/index.js +8 -4
  371. package/es/steps/style/index.js +2 -2
  372. package/es/steps/style/less.js +2 -2
  373. package/es/sticky/Sticky.js +58 -73
  374. package/es/sticky/index.js +8 -4
  375. package/es/sticky/style/index.js +2 -2
  376. package/es/sticky/style/less.js +2 -2
  377. package/es/submit-bar/SubmitBar.js +48 -53
  378. package/es/submit-bar/index.js +8 -4
  379. package/es/submit-bar/style/index.js +6 -6
  380. package/es/submit-bar/style/less.js +6 -6
  381. package/es/swipe/Swipe.js +117 -184
  382. package/es/swipe/index.js +8 -4
  383. package/es/swipe/style/index.js +2 -2
  384. package/es/swipe/style/less.js +2 -2
  385. package/es/swipe/types.js +0 -1
  386. package/es/swipe-cell/SwipeCell.js +60 -89
  387. package/es/swipe-cell/index.js +8 -4
  388. package/es/swipe-cell/style/index.js +2 -2
  389. package/es/swipe-cell/style/less.js +2 -2
  390. package/es/swipe-cell/types.js +0 -1
  391. package/es/swipe-item/SwipeItem.js +40 -51
  392. package/es/swipe-item/index.js +8 -4
  393. package/es/swipe-item/style/index.js +3 -3
  394. package/es/swipe-item/style/less.js +3 -3
  395. package/es/switch/Switch.js +28 -32
  396. package/es/switch/index.js +8 -4
  397. package/es/switch/style/index.js +3 -3
  398. package/es/switch/style/less.js +3 -3
  399. package/es/tab/Tab.js +44 -56
  400. package/es/tab/index.js +8 -4
  401. package/es/tab/style/index.js +7 -7
  402. package/es/tab/style/less.js +7 -7
  403. package/es/tabbar/Tabbar.js +32 -40
  404. package/es/tabbar/index.js +8 -4
  405. package/es/tabbar/style/index.js +2 -2
  406. package/es/tabbar/style/less.js +2 -2
  407. package/es/tabbar-item/TabbarItem.js +49 -63
  408. package/es/tabbar-item/index.js +8 -4
  409. package/es/tabbar-item/style/index.js +5 -5
  410. package/es/tabbar-item/style/less.js +5 -5
  411. package/es/tabs/Tabs.js +137 -197
  412. package/es/tabs/TabsContent.js +24 -30
  413. package/es/tabs/TabsTitle.js +28 -37
  414. package/es/tabs/index.js +8 -4
  415. package/es/tabs/style/index.js +5 -5
  416. package/es/tabs/style/less.js +5 -5
  417. package/es/tabs/types.js +0 -1
  418. package/es/tabs/utils.js +16 -20
  419. package/es/tag/Tag.js +27 -34
  420. package/es/tag/index.js +8 -4
  421. package/es/tag/style/index.js +4 -4
  422. package/es/tag/style/less.js +4 -4
  423. package/es/toast/Toast.js +41 -56
  424. package/es/toast/function-call.js +55 -85
  425. package/es/toast/index.js +6 -3
  426. package/es/toast/lock-click.js +8 -7
  427. package/es/toast/style/index.js +7 -7
  428. package/es/toast/style/less.js +7 -7
  429. package/es/toast/types.js +0 -1
  430. package/es/tree-select/TreeSelect.js +37 -52
  431. package/es/tree-select/index.js +8 -4
  432. package/es/tree-select/style/index.js +6 -6
  433. package/es/tree-select/style/less.js +6 -6
  434. package/es/uploader/Uploader.js +87 -134
  435. package/es/uploader/UploaderPreviewItem.js +47 -60
  436. package/es/uploader/index.js +8 -4
  437. package/es/uploader/style/index.js +11 -11
  438. package/es/uploader/style/less.js +11 -11
  439. package/es/uploader/types.js +0 -1
  440. package/es/uploader/utils.js +35 -39
  441. package/es/utils/basic.js +20 -15
  442. package/es/utils/constant.js +20 -9
  443. package/es/utils/create.js +32 -43
  444. package/es/utils/deep-assign.js +9 -13
  445. package/es/utils/deep-clone.js +9 -9
  446. package/es/utils/dom.js +36 -38
  447. package/es/utils/format.js +56 -82
  448. package/es/utils/index.js +9 -9
  449. package/es/utils/interceptor.js +13 -14
  450. package/es/utils/mount-component.js +18 -26
  451. package/es/utils/props.js +19 -13
  452. package/es/utils/validate.js +20 -11
  453. package/es/utils/with-install.js +9 -10
  454. package/lib/action-bar/ActionBar.js +49 -33
  455. package/lib/action-bar/index.js +31 -15
  456. package/lib/action-bar/style/index.js +2 -5
  457. package/lib/action-bar/style/less.js +2 -5
  458. package/lib/action-bar-button/ActionBarButton.js +52 -45
  459. package/lib/action-bar-button/index.js +31 -15
  460. package/lib/action-bar-button/style/index.js +7 -15
  461. package/lib/action-bar-button/style/less.js +7 -15
  462. package/lib/action-bar-icon/ActionBarIcon.js +51 -48
  463. package/lib/action-bar-icon/index.js +31 -15
  464. package/lib/action-bar-icon/style/index.js +5 -11
  465. package/lib/action-bar-icon/style/less.js +5 -11
  466. package/lib/action-sheet/ActionSheet.js +86 -90
  467. package/lib/action-sheet/index.js +31 -15
  468. package/lib/action-sheet/style/index.js +7 -15
  469. package/lib/action-sheet/style/less.js +7 -15
  470. package/lib/address-edit/AddressEdit.js +223 -253
  471. package/lib/address-edit/AddressEditDetail.js +57 -56
  472. package/lib/address-edit/index.js +31 -15
  473. package/lib/address-edit/style/index.js +13 -27
  474. package/lib/address-edit/style/less.js +13 -27
  475. package/lib/address-edit/types.js +3 -3
  476. package/lib/address-list/AddressList.js +67 -67
  477. package/lib/address-list/AddressListItem.js +66 -66
  478. package/lib/address-list/index.js +31 -15
  479. package/lib/address-list/style/index.js +11 -23
  480. package/lib/address-list/style/less.js +11 -23
  481. package/lib/area/Area.js +130 -181
  482. package/lib/area/index.js +31 -15
  483. package/lib/area/style/index.js +3 -7
  484. package/lib/area/style/less.js +3 -7
  485. package/lib/area/types.js +3 -3
  486. package/lib/badge/Badge.js +62 -62
  487. package/lib/badge/index.js +31 -15
  488. package/lib/badge/style/index.js +2 -5
  489. package/lib/badge/style/less.js +2 -5
  490. package/lib/button/Button.js +75 -83
  491. package/lib/button/index.js +31 -15
  492. package/lib/button/style/index.js +5 -11
  493. package/lib/button/style/less.js +5 -11
  494. package/lib/button/types.js +3 -3
  495. package/lib/calendar/Calendar.js +183 -277
  496. package/lib/calendar/CalendarDay.js +84 -87
  497. package/lib/calendar/CalendarHeader.js +57 -49
  498. package/lib/calendar/CalendarMonth.js +130 -166
  499. package/lib/calendar/index.js +31 -15
  500. package/lib/calendar/style/index.js +10 -21
  501. package/lib/calendar/style/less.js +10 -21
  502. package/lib/calendar/types.js +3 -3
  503. package/lib/calendar/utils.js +59 -63
  504. package/lib/card/Card.js +91 -92
  505. package/lib/card/index.js +31 -15
  506. package/lib/card/style/index.js +6 -13
  507. package/lib/card/style/less.js +6 -13
  508. package/lib/cascader/Cascader.js +122 -144
  509. package/lib/cascader/index.js +31 -15
  510. package/lib/cascader/style/index.js +9 -19
  511. package/lib/cascader/style/less.js +9 -19
  512. package/lib/cascader/types.js +3 -3
  513. package/lib/cell/Cell.js +81 -87
  514. package/lib/cell/index.js +31 -15
  515. package/lib/cell/style/index.js +4 -9
  516. package/lib/cell/style/less.js +4 -9
  517. package/lib/cell-group/CellGroup.js +50 -37
  518. package/lib/cell-group/index.js +31 -15
  519. package/lib/cell-group/style/index.js +2 -5
  520. package/lib/cell-group/style/less.js +2 -5
  521. package/lib/checkbox/Checkbox.js +62 -73
  522. package/lib/checkbox/Checker.js +71 -67
  523. package/lib/checkbox/index.js +31 -15
  524. package/lib/checkbox/style/index.js +5 -11
  525. package/lib/checkbox/style/less.js +5 -11
  526. package/lib/checkbox/types.js +3 -3
  527. package/lib/checkbox-group/CheckboxGroup.js +61 -58
  528. package/lib/checkbox-group/index.js +31 -15
  529. package/lib/checkbox-group/style/index.js +2 -5
  530. package/lib/checkbox-group/style/less.js +2 -5
  531. package/lib/checkbox-group/types.js +3 -3
  532. package/lib/circle/Circle.js +100 -103
  533. package/lib/circle/index.js +31 -15
  534. package/lib/circle/style/index.js +2 -5
  535. package/lib/circle/style/less.js +2 -5
  536. package/lib/col/Col.js +54 -41
  537. package/lib/col/index.js +31 -15
  538. package/lib/col/style/index.js +3 -7
  539. package/lib/col/style/less.js +3 -7
  540. package/lib/collapse/Collapse.js +64 -58
  541. package/lib/collapse/index.js +31 -15
  542. package/lib/collapse/style/index.js +1 -3
  543. package/lib/collapse/style/less.js +1 -3
  544. package/lib/collapse-item/CollapseItem.js +88 -104
  545. package/lib/collapse-item/index.js +31 -15
  546. package/lib/collapse-item/style/index.js +5 -11
  547. package/lib/collapse-item/style/less.js +5 -11
  548. package/lib/collapse-item/types.js +3 -3
  549. package/lib/composables/on-popup-reopen.js +32 -16
  550. package/lib/composables/use-expose.js +31 -14
  551. package/lib/composables/use-height.js +32 -15
  552. package/lib/composables/use-id.js +33 -18
  553. package/lib/composables/use-lazy-render.js +32 -14
  554. package/lib/composables/use-lock-scroll.js +55 -56
  555. package/lib/composables/use-placeholder.js +33 -14
  556. package/lib/composables/use-refs.js +33 -16
  557. package/lib/composables/use-route.js +39 -27
  558. package/lib/composables/use-tab-status.js +30 -14
  559. package/lib/composables/use-touch.js +47 -39
  560. package/lib/composables/use-visibility-change.js +38 -29
  561. package/lib/config-provider/ConfigProvider.js +48 -32
  562. package/lib/config-provider/index.js +31 -15
  563. package/lib/config-provider/style/index.js +1 -3
  564. package/lib/config-provider/style/less.js +1 -3
  565. package/lib/contact-card/ContactCard.js +48 -39
  566. package/lib/contact-card/index.js +31 -15
  567. package/lib/contact-card/style/index.js +5 -11
  568. package/lib/contact-card/style/less.js +5 -11
  569. package/lib/contact-edit/ContactEdit.js +79 -78
  570. package/lib/contact-edit/index.js +31 -15
  571. package/lib/contact-edit/style/index.js +9 -19
  572. package/lib/contact-edit/style/less.js +9 -19
  573. package/lib/contact-list/ContactList.js +70 -72
  574. package/lib/contact-list/index.js +31 -15
  575. package/lib/contact-list/style/index.js +11 -23
  576. package/lib/contact-list/style/less.js +11 -23
  577. package/lib/count-down/CountDown.js +52 -46
  578. package/lib/count-down/index.js +31 -15
  579. package/lib/count-down/style/index.js +2 -5
  580. package/lib/count-down/style/less.js +2 -5
  581. package/lib/count-down/types.js +3 -3
  582. package/lib/count-down/utils.js +46 -40
  583. package/lib/coupon/Coupon.js +69 -60
  584. package/lib/coupon/index.js +31 -15
  585. package/lib/coupon/style/index.js +6 -13
  586. package/lib/coupon/style/less.js +6 -13
  587. package/lib/coupon/utils.js +33 -18
  588. package/lib/coupon-cell/CouponCell.js +53 -47
  589. package/lib/coupon-cell/index.js +31 -15
  590. package/lib/coupon-cell/style/index.js +5 -11
  591. package/lib/coupon-cell/style/less.js +5 -11
  592. package/lib/coupon-list/CouponList.js +149 -153
  593. package/lib/coupon-list/index.js +31 -15
  594. package/lib/coupon-list/style/index.js +16 -33
  595. package/lib/coupon-list/style/less.js +16 -33
  596. package/lib/datetime-picker/DatePicker.js +152 -185
  597. package/lib/datetime-picker/DatetimePicker.js +49 -41
  598. package/lib/datetime-picker/TimePicker.js +92 -99
  599. package/lib/datetime-picker/index.js +31 -15
  600. package/lib/datetime-picker/style/index.js +3 -7
  601. package/lib/datetime-picker/style/less.js +3 -7
  602. package/lib/datetime-picker/types.js +3 -3
  603. package/lib/datetime-picker/utils.js +50 -37
  604. package/lib/dialog/Dialog.js +99 -114
  605. package/lib/dialog/function-call.js +59 -57
  606. package/lib/dialog/index.js +29 -10
  607. package/lib/dialog/style/index.js +10 -21
  608. package/lib/dialog/style/less.js +10 -21
  609. package/lib/dialog/types.js +3 -3
  610. package/lib/divider/Divider.js +48 -31
  611. package/lib/divider/index.js +31 -15
  612. package/lib/divider/style/index.js +2 -5
  613. package/lib/divider/style/less.js +2 -5
  614. package/lib/dropdown-item/DropdownItem.js +96 -119
  615. package/lib/dropdown-item/index.js +31 -15
  616. package/lib/dropdown-item/style/index.js +8 -17
  617. package/lib/dropdown-item/style/less.js +8 -17
  618. package/lib/dropdown-item/types.js +3 -3
  619. package/lib/dropdown-menu/DropdownMenu.js +91 -85
  620. package/lib/dropdown-menu/index.js +31 -15
  621. package/lib/dropdown-menu/style/index.js +2 -5
  622. package/lib/dropdown-menu/style/less.js +2 -5
  623. package/lib/dropdown-menu/types.js +3 -3
  624. package/lib/empty/Empty.js +56 -52
  625. package/lib/empty/Network.js +62 -45
  626. package/lib/empty/index.js +31 -15
  627. package/lib/empty/style/index.js +2 -5
  628. package/lib/empty/style/less.js +2 -5
  629. package/lib/field/Field.js +220 -302
  630. package/lib/field/index.js +31 -15
  631. package/lib/field/style/index.js +5 -11
  632. package/lib/field/style/less.js +5 -11
  633. package/lib/field/types.js +3 -3
  634. package/lib/field/utils.js +64 -87
  635. package/lib/form/Form.js +84 -90
  636. package/lib/form/index.js +31 -15
  637. package/lib/form/style/index.js +1 -3
  638. package/lib/form/style/less.js +1 -3
  639. package/lib/form/types.js +3 -3
  640. package/lib/grid/Grid.js +57 -42
  641. package/lib/grid/index.js +31 -15
  642. package/lib/grid/style/index.js +2 -5
  643. package/lib/grid/style/less.js +2 -5
  644. package/lib/grid-item/GridItem.js +70 -78
  645. package/lib/grid-item/index.js +31 -15
  646. package/lib/grid-item/style/index.js +5 -11
  647. package/lib/grid-item/style/less.js +5 -11
  648. package/lib/icon/Icon.js +56 -43
  649. package/lib/icon/index.js +31 -15
  650. package/lib/icon/style/index.js +3 -7
  651. package/lib/icon/style/less.js +3 -7
  652. package/lib/image/Image.js +101 -107
  653. package/lib/image/index.js +31 -15
  654. package/lib/image/style/index.js +4 -9
  655. package/lib/image/style/less.js +4 -9
  656. package/lib/image-preview/ImagePreview.js +95 -106
  657. package/lib/image-preview/ImagePreviewItem.js +109 -131
  658. package/lib/image-preview/function-call.js +54 -54
  659. package/lib/image-preview/index.js +29 -10
  660. package/lib/image-preview/style/index.js +10 -21
  661. package/lib/image-preview/style/less.js +10 -21
  662. package/lib/image-preview/types.js +3 -3
  663. package/lib/index-anchor/IndexAnchor.js +63 -64
  664. package/lib/index-anchor/index.js +31 -15
  665. package/lib/index-anchor/style/index.js +3 -7
  666. package/lib/index-anchor/style/less.js +3 -7
  667. package/lib/index-bar/IndexBar.js +108 -122
  668. package/lib/index-bar/index.js +31 -15
  669. package/lib/index-bar/style/index.js +2 -5
  670. package/lib/index-bar/style/less.js +2 -5
  671. package/lib/index-bar/types.js +3 -3
  672. package/lib/index.css +1 -1
  673. package/lib/index.d.ts +1 -1
  674. package/lib/index.js +288 -791
  675. package/lib/lazyload/index.js +29 -10
  676. package/lib/lazyload/style/index.js +1 -3
  677. package/lib/lazyload/style/less.js +1 -3
  678. package/lib/lazyload/vue-lazyload/index.js +39 -43
  679. package/lib/lazyload/vue-lazyload/lazy-component.js +35 -26
  680. package/lib/lazyload/vue-lazyload/lazy-container.js +50 -63
  681. package/lib/lazyload/vue-lazyload/lazy-image.js +43 -55
  682. package/lib/lazyload/vue-lazyload/lazy.js +149 -301
  683. package/lib/lazyload/vue-lazyload/listener.js +73 -140
  684. package/lib/lazyload/vue-lazyload/util.js +82 -109
  685. package/lib/list/List.js +88 -97
  686. package/lib/list/index.js +31 -15
  687. package/lib/list/style/index.js +3 -7
  688. package/lib/list/style/less.js +3 -7
  689. package/lib/list/types.js +3 -3
  690. package/lib/loading/Loading.js +56 -45
  691. package/lib/loading/index.js +31 -15
  692. package/lib/loading/style/index.js +2 -5
  693. package/lib/loading/style/less.js +2 -5
  694. package/lib/locale/index.js +38 -32
  695. package/lib/locale/lang/de-DE-formal.js +55 -50
  696. package/lib/locale/lang/de-DE.js +55 -50
  697. package/lib/locale/lang/en-US.js +55 -50
  698. package/lib/locale/lang/es-ES.js +55 -50
  699. package/lib/locale/lang/fr-FR.js +55 -50
  700. package/lib/locale/lang/ja-JP.js +56 -51
  701. package/lib/locale/lang/nb-NO.js +55 -50
  702. package/lib/locale/lang/pt-BR.js +55 -50
  703. package/lib/locale/lang/ro-RO.js +55 -50
  704. package/lib/locale/lang/ru-RU.js +55 -50
  705. package/lib/locale/lang/th-TH.js +56 -51
  706. package/lib/locale/lang/tr-TR.js +55 -50
  707. package/lib/locale/lang/zh-CN.js +56 -51
  708. package/lib/locale/lang/zh-HK.js +56 -51
  709. package/lib/locale/lang/zh-TW.js +56 -51
  710. package/lib/locale/style/index.js +1 -3
  711. package/lib/locale/style/less.js +1 -3
  712. package/lib/nav-bar/NavBar.js +69 -69
  713. package/lib/nav-bar/index.js +31 -15
  714. package/lib/nav-bar/style/index.js +4 -9
  715. package/lib/nav-bar/style/less.js +4 -9
  716. package/lib/notice-bar/NoticeBar.js +99 -111
  717. package/lib/notice-bar/index.js +31 -15
  718. package/lib/notice-bar/style/index.js +4 -9
  719. package/lib/notice-bar/style/less.js +4 -9
  720. package/lib/notice-bar/types.js +3 -3
  721. package/lib/notify/Notify.js +45 -35
  722. package/lib/notify/function-call.js +55 -55
  723. package/lib/notify/index.js +29 -10
  724. package/lib/notify/style/index.js +6 -13
  725. package/lib/notify/style/less.js +6 -13
  726. package/lib/notify/types.js +3 -3
  727. package/lib/number-keyboard/NumberKeyboard.js +126 -148
  728. package/lib/number-keyboard/NumberKeyboardKey.js +62 -63
  729. package/lib/number-keyboard/index.js +31 -15
  730. package/lib/number-keyboard/style/index.js +3 -7
  731. package/lib/number-keyboard/style/less.js +3 -7
  732. package/lib/overlay/Overlay.js +52 -42
  733. package/lib/overlay/index.js +31 -15
  734. package/lib/overlay/style/index.js +2 -5
  735. package/lib/overlay/style/less.js +2 -5
  736. package/lib/pagination/Pagination.js +102 -110
  737. package/lib/pagination/index.js +31 -15
  738. package/lib/pagination/style/index.js +2 -5
  739. package/lib/pagination/style/less.js +2 -5
  740. package/lib/password-input/PasswordInput.js +65 -58
  741. package/lib/password-input/index.js +31 -15
  742. package/lib/password-input/style/index.js +2 -5
  743. package/lib/password-input/style/less.js +2 -5
  744. package/lib/picker/Picker.js +167 -231
  745. package/lib/picker/PickerColumn.d.ts +3 -2
  746. package/lib/picker/PickerColumn.js +128 -164
  747. package/lib/picker/index.js +31 -15
  748. package/lib/picker/style/index.js +3 -7
  749. package/lib/picker/style/less.js +3 -7
  750. package/lib/picker/types.d.ts +13 -0
  751. package/lib/picker/types.js +3 -3
  752. package/lib/popover/Popover.js +111 -116
  753. package/lib/popover/index.css +1 -1
  754. package/lib/popover/index.js +31 -15
  755. package/lib/popover/index.less +8 -4
  756. package/lib/popover/style/index.js +6 -13
  757. package/lib/popover/style/less.js +6 -13
  758. package/lib/popover/types.js +3 -3
  759. package/lib/popup/Popup.js +103 -117
  760. package/lib/popup/index.js +31 -15
  761. package/lib/popup/shared.js +37 -30
  762. package/lib/popup/style/index.js +5 -11
  763. package/lib/popup/style/less.js +5 -11
  764. package/lib/popup/types.js +3 -3
  765. package/lib/progress/Progress.js +53 -41
  766. package/lib/progress/index.js +31 -15
  767. package/lib/progress/style/index.js +2 -5
  768. package/lib/progress/style/less.js +2 -5
  769. package/lib/progress/types.js +3 -3
  770. package/lib/pull-refresh/PullRefresh.js +99 -118
  771. package/lib/pull-refresh/index.js +31 -15
  772. package/lib/pull-refresh/style/index.js +3 -7
  773. package/lib/pull-refresh/style/less.js +3 -7
  774. package/lib/radio/Radio.js +48 -47
  775. package/lib/radio/index.js +31 -15
  776. package/lib/radio/style/index.js +6 -13
  777. package/lib/radio/style/less.js +6 -13
  778. package/lib/radio-group/RadioGroup.js +54 -40
  779. package/lib/radio-group/index.js +31 -15
  780. package/lib/radio-group/style/index.js +2 -5
  781. package/lib/radio-group/style/less.js +2 -5
  782. package/lib/rate/Rate.js +88 -102
  783. package/lib/rate/index.js +31 -15
  784. package/lib/rate/style/index.js +4 -9
  785. package/lib/rate/style/less.js +4 -9
  786. package/lib/row/Row.js +68 -55
  787. package/lib/row/index.js +31 -15
  788. package/lib/row/style/index.js +2 -5
  789. package/lib/row/style/less.js +2 -5
  790. package/lib/search/Search.js +95 -106
  791. package/lib/search/index.js +31 -15
  792. package/lib/search/style/index.js +6 -13
  793. package/lib/search/style/less.js +6 -13
  794. package/lib/search/types.js +3 -3
  795. package/lib/share-sheet/ShareSheet.js +81 -88
  796. package/lib/share-sheet/index.js +31 -15
  797. package/lib/share-sheet/style/index.js +6 -13
  798. package/lib/share-sheet/style/less.js +6 -13
  799. package/lib/sidebar/Sidebar.js +54 -41
  800. package/lib/sidebar/index.js +31 -15
  801. package/lib/sidebar/style/index.js +2 -5
  802. package/lib/sidebar/style/less.js +2 -5
  803. package/lib/sidebar-item/SidebarItem.js +55 -53
  804. package/lib/sidebar-item/index.js +31 -15
  805. package/lib/sidebar-item/style/index.js +4 -9
  806. package/lib/sidebar-item/style/less.js +4 -9
  807. package/lib/skeleton/Skeleton.js +61 -55
  808. package/lib/skeleton/index.js +31 -15
  809. package/lib/skeleton/style/index.js +2 -5
  810. package/lib/skeleton/style/less.js +2 -5
  811. package/lib/slider/Slider.js +138 -185
  812. package/lib/slider/index.js +31 -15
  813. package/lib/slider/style/index.js +2 -5
  814. package/lib/slider/style/less.js +2 -5
  815. package/lib/step/Step.js +79 -89
  816. package/lib/step/index.js +31 -15
  817. package/lib/step/style/index.js +5 -11
  818. package/lib/step/style/less.js +5 -11
  819. package/lib/stepper/Stepper.js +134 -162
  820. package/lib/stepper/index.js +31 -15
  821. package/lib/stepper/style/index.js +2 -5
  822. package/lib/stepper/style/less.js +2 -5
  823. package/lib/steps/Steps.js +54 -40
  824. package/lib/steps/index.js +31 -15
  825. package/lib/steps/style/index.js +2 -5
  826. package/lib/steps/style/less.js +2 -5
  827. package/lib/sticky/Sticky.js +86 -89
  828. package/lib/sticky/index.js +31 -15
  829. package/lib/sticky/style/index.js +2 -5
  830. package/lib/sticky/style/less.js +2 -5
  831. package/lib/submit-bar/SubmitBar.js +80 -73
  832. package/lib/submit-bar/index.js +31 -15
  833. package/lib/submit-bar/style/index.js +6 -13
  834. package/lib/submit-bar/style/less.js +6 -13
  835. package/lib/swipe/Swipe.js +172 -229
  836. package/lib/swipe/index.js +31 -15
  837. package/lib/swipe/style/index.js +2 -5
  838. package/lib/swipe/style/less.js +2 -5
  839. package/lib/swipe/types.js +3 -3
  840. package/lib/swipe-cell/SwipeCell.js +92 -109
  841. package/lib/swipe-cell/index.js +31 -15
  842. package/lib/swipe-cell/style/index.js +2 -5
  843. package/lib/swipe-cell/style/less.js +2 -5
  844. package/lib/swipe-cell/types.js +3 -3
  845. package/lib/swipe-item/SwipeItem.js +67 -67
  846. package/lib/swipe-item/index.js +31 -15
  847. package/lib/swipe-item/style/index.js +3 -7
  848. package/lib/swipe-item/style/less.js +3 -7
  849. package/lib/switch/Switch.js +60 -52
  850. package/lib/switch/index.js +31 -15
  851. package/lib/switch/style/index.js +3 -7
  852. package/lib/switch/style/less.js +3 -7
  853. package/lib/tab/Tab.js +79 -84
  854. package/lib/tab/index.js +31 -15
  855. package/lib/tab/style/index.js +7 -15
  856. package/lib/tab/style/less.js +7 -15
  857. package/lib/tabbar/Tabbar.js +64 -61
  858. package/lib/tabbar/index.js +31 -15
  859. package/lib/tabbar/style/index.js +2 -5
  860. package/lib/tabbar/style/less.js +2 -5
  861. package/lib/tabbar-item/TabbarItem.js +78 -83
  862. package/lib/tabbar-item/index.js +31 -15
  863. package/lib/tabbar-item/style/index.js +5 -11
  864. package/lib/tabbar-item/style/less.js +5 -11
  865. package/lib/tabs/Tabs.js +194 -252
  866. package/lib/tabs/TabsContent.js +54 -47
  867. package/lib/tabs/TabsTitle.js +55 -51
  868. package/lib/tabs/index.js +31 -15
  869. package/lib/tabs/style/index.js +5 -11
  870. package/lib/tabs/style/less.js +5 -11
  871. package/lib/tabs/types.js +3 -3
  872. package/lib/tabs/utils.js +41 -31
  873. package/lib/tag/Tag.js +53 -46
  874. package/lib/tag/index.js +31 -15
  875. package/lib/tag/style/index.js +4 -9
  876. package/lib/tag/style/less.js +4 -9
  877. package/lib/toast/Toast.js +78 -82
  878. package/lib/toast/function-call.js +90 -105
  879. package/lib/toast/index.js +29 -10
  880. package/lib/toast/lock-click.js +14 -11
  881. package/lib/toast/style/index.js +7 -15
  882. package/lib/toast/style/less.js +7 -15
  883. package/lib/toast/types.js +3 -3
  884. package/lib/tree-select/TreeSelect.js +70 -74
  885. package/lib/tree-select/index.js +31 -15
  886. package/lib/tree-select/style/index.js +6 -13
  887. package/lib/tree-select/style/less.js +6 -13
  888. package/lib/uploader/Uploader.js +133 -173
  889. package/lib/uploader/UploaderPreviewItem.js +86 -87
  890. package/lib/uploader/index.js +31 -15
  891. package/lib/uploader/style/index.js +11 -23
  892. package/lib/uploader/style/less.js +11 -23
  893. package/lib/uploader/types.js +3 -3
  894. package/lib/uploader/utils.js +55 -62
  895. package/lib/utils/basic.js +25 -27
  896. package/lib/utils/constant.js +27 -22
  897. package/lib/utils/create.js +53 -56
  898. package/lib/utils/deep-assign.js +33 -20
  899. package/lib/utils/deep-clone.js +33 -16
  900. package/lib/utils/dom.js +52 -60
  901. package/lib/utils/format.js +79 -113
  902. package/lib/utils/index.js +28 -75
  903. package/lib/utils/interceptor.js +38 -23
  904. package/lib/utils/mount-component.js +39 -34
  905. package/lib/utils/props.js +25 -35
  906. package/lib/utils/validate.js +42 -39
  907. package/lib/utils/with-install.js +31 -14
  908. package/lib/vant.cjs.js +5635 -5743
  909. package/lib/vant.cjs.min.js +1 -1
  910. package/lib/vant.es.js +5635 -5743
  911. package/lib/vant.es.min.js +5635 -5743
  912. package/lib/vant.js +5518 -5626
  913. package/lib/vant.min.js +1 -1
  914. package/package.json +3 -4
  915. package/vetur/attributes.json +163 -163
  916. package/vetur/tags.json +52 -52
  917. package/vetur/web-types.json +595 -595
@@ -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.0",
5
+ "version": "3.4.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -253,6 +253,261 @@
253
253
  }
254
254
  ]
255
255
  },
256
+ {
257
+ "name": "van-action-sheet",
258
+ "slots": [
259
+ {
260
+ "name": "default",
261
+ "description": "自定义面板的展示内容"
262
+ },
263
+ {
264
+ "name": "description",
265
+ "description": "自定义描述文案"
266
+ },
267
+ {
268
+ "name": "cancel",
269
+ "description": "自定义取消按钮内容"
270
+ },
271
+ {
272
+ "name": "action",
273
+ "description": "自定义选项内容"
274
+ }
275
+ ],
276
+ "events": [
277
+ {
278
+ "name": "select",
279
+ "description": "点击选项时触发,禁用或加载状态下不会触发"
280
+ },
281
+ {
282
+ "name": "cancel",
283
+ "description": "点击取消按钮时触发"
284
+ },
285
+ {
286
+ "name": "open",
287
+ "description": "打开面板时触发"
288
+ },
289
+ {
290
+ "name": "close",
291
+ "description": "关闭面板时触发"
292
+ },
293
+ {
294
+ "name": "opened",
295
+ "description": "打开面板且动画结束后触发"
296
+ },
297
+ {
298
+ "name": "closed",
299
+ "description": "关闭面板且动画结束后触发"
300
+ },
301
+ {
302
+ "name": "click-overlay",
303
+ "description": "点击遮罩层时触发"
304
+ }
305
+ ],
306
+ "attributes": [
307
+ {
308
+ "name": "v-model:show",
309
+ "default": "`false`",
310
+ "description": "是否显示动作面板",
311
+ "options": [],
312
+ "value": {
313
+ "type": "boolean",
314
+ "kind": "expression"
315
+ }
316
+ },
317
+ {
318
+ "name": "actions",
319
+ "default": "`[]`",
320
+ "description": "面板选项列表",
321
+ "options": [],
322
+ "value": {
323
+ "type": "ActionSheetAction[]",
324
+ "kind": "expression"
325
+ }
326
+ },
327
+ {
328
+ "name": "title",
329
+ "default": "-",
330
+ "description": "顶部标题",
331
+ "options": [],
332
+ "value": {
333
+ "type": "string",
334
+ "kind": "expression"
335
+ }
336
+ },
337
+ {
338
+ "name": "cancel-text",
339
+ "default": "-",
340
+ "description": "取消按钮文字",
341
+ "options": [],
342
+ "value": {
343
+ "type": "string",
344
+ "kind": "expression"
345
+ }
346
+ },
347
+ {
348
+ "name": "description",
349
+ "default": "-",
350
+ "description": "选项上方的描述信息",
351
+ "options": [],
352
+ "value": {
353
+ "type": "string",
354
+ "kind": "expression"
355
+ }
356
+ },
357
+ {
358
+ "name": "closeable",
359
+ "default": "`true`",
360
+ "description": "是否显示关闭图标",
361
+ "options": [],
362
+ "value": {
363
+ "type": "boolean",
364
+ "kind": "expression"
365
+ }
366
+ },
367
+ {
368
+ "name": "close-icon",
369
+ "default": "`cross`",
370
+ "description": "关闭图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props)",
371
+ "options": [],
372
+ "value": {
373
+ "type": "string",
374
+ "kind": "expression"
375
+ }
376
+ },
377
+ {
378
+ "name": "duration",
379
+ "default": "`0.3`",
380
+ "description": "动画时长,单位秒,设置为 0 可以禁用动画",
381
+ "options": [],
382
+ "value": {
383
+ "type": "number | string",
384
+ "kind": "expression"
385
+ }
386
+ },
387
+ {
388
+ "name": "round",
389
+ "default": "`true`",
390
+ "description": "是否显示圆角",
391
+ "options": [],
392
+ "value": {
393
+ "type": "boolean",
394
+ "kind": "expression"
395
+ }
396
+ },
397
+ {
398
+ "name": "overlay",
399
+ "default": "`true`",
400
+ "description": "是否显示遮罩层",
401
+ "options": [],
402
+ "value": {
403
+ "type": "boolean",
404
+ "kind": "expression"
405
+ }
406
+ },
407
+ {
408
+ "name": "overlay-class",
409
+ "default": "object_",
410
+ "description": "自定义遮罩层类名",
411
+ "options": [
412
+ "-"
413
+ ],
414
+ "value": {
415
+ "type": "string | Array \\",
416
+ "kind": "expression"
417
+ }
418
+ },
419
+ {
420
+ "name": "overlay-style",
421
+ "default": "-",
422
+ "description": "自定义遮罩层样式",
423
+ "options": [],
424
+ "value": {
425
+ "type": "object",
426
+ "kind": "expression"
427
+ }
428
+ },
429
+ {
430
+ "name": "lock-scroll",
431
+ "default": "`true`",
432
+ "description": "是否锁定背景滚动",
433
+ "options": [],
434
+ "value": {
435
+ "type": "boolean",
436
+ "kind": "expression"
437
+ }
438
+ },
439
+ {
440
+ "name": "lazy-render",
441
+ "default": "`true`",
442
+ "description": "是否在显示弹层时才渲染节点",
443
+ "options": [],
444
+ "value": {
445
+ "type": "boolean",
446
+ "kind": "expression"
447
+ }
448
+ },
449
+ {
450
+ "name": "close-on-popstate",
451
+ "default": "`true`",
452
+ "description": "是否在页面回退时自动关闭",
453
+ "options": [],
454
+ "value": {
455
+ "type": "boolean",
456
+ "kind": "expression"
457
+ }
458
+ },
459
+ {
460
+ "name": "close-on-click-action",
461
+ "default": "`false`",
462
+ "description": "是否在点击选项后关闭",
463
+ "options": [],
464
+ "value": {
465
+ "type": "boolean",
466
+ "kind": "expression"
467
+ }
468
+ },
469
+ {
470
+ "name": "close-on-click-overlay",
471
+ "default": "`true`",
472
+ "description": "是否在点击遮罩层后关闭",
473
+ "options": [],
474
+ "value": {
475
+ "type": "boolean",
476
+ "kind": "expression"
477
+ }
478
+ },
479
+ {
480
+ "name": "safe-area-inset-bottom",
481
+ "default": "`true`",
482
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
483
+ "options": [],
484
+ "value": {
485
+ "type": "boolean",
486
+ "kind": "expression"
487
+ }
488
+ },
489
+ {
490
+ "name": "teleport",
491
+ "default": "-",
492
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
493
+ "options": [],
494
+ "value": {
495
+ "type": "string | Element",
496
+ "kind": "expression"
497
+ }
498
+ },
499
+ {
500
+ "name": "before-close",
501
+ "default": "-",
502
+ "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
503
+ "options": [],
504
+ "value": {
505
+ "type": "(action: string) => boolean | Promise\\<boolean\\>",
506
+ "kind": "expression"
507
+ }
508
+ }
509
+ ]
510
+ },
256
511
  {
257
512
  "name": "van-address-list",
258
513
  "slots": [
@@ -812,261 +1067,6 @@
812
1067
  }
813
1068
  ]
814
1069
  },
815
- {
816
- "name": "van-action-sheet",
817
- "slots": [
818
- {
819
- "name": "default",
820
- "description": "自定义面板的展示内容"
821
- },
822
- {
823
- "name": "description",
824
- "description": "自定义描述文案"
825
- },
826
- {
827
- "name": "cancel",
828
- "description": "自定义取消按钮内容"
829
- },
830
- {
831
- "name": "action",
832
- "description": "自定义选项内容"
833
- }
834
- ],
835
- "events": [
836
- {
837
- "name": "select",
838
- "description": "点击选项时触发,禁用或加载状态下不会触发"
839
- },
840
- {
841
- "name": "cancel",
842
- "description": "点击取消按钮时触发"
843
- },
844
- {
845
- "name": "open",
846
- "description": "打开面板时触发"
847
- },
848
- {
849
- "name": "close",
850
- "description": "关闭面板时触发"
851
- },
852
- {
853
- "name": "opened",
854
- "description": "打开面板且动画结束后触发"
855
- },
856
- {
857
- "name": "closed",
858
- "description": "关闭面板且动画结束后触发"
859
- },
860
- {
861
- "name": "click-overlay",
862
- "description": "点击遮罩层时触发"
863
- }
864
- ],
865
- "attributes": [
866
- {
867
- "name": "v-model:show",
868
- "default": "`false`",
869
- "description": "是否显示动作面板",
870
- "options": [],
871
- "value": {
872
- "type": "boolean",
873
- "kind": "expression"
874
- }
875
- },
876
- {
877
- "name": "actions",
878
- "default": "`[]`",
879
- "description": "面板选项列表",
880
- "options": [],
881
- "value": {
882
- "type": "ActionSheetAction[]",
883
- "kind": "expression"
884
- }
885
- },
886
- {
887
- "name": "title",
888
- "default": "-",
889
- "description": "顶部标题",
890
- "options": [],
891
- "value": {
892
- "type": "string",
893
- "kind": "expression"
894
- }
895
- },
896
- {
897
- "name": "cancel-text",
898
- "default": "-",
899
- "description": "取消按钮文字",
900
- "options": [],
901
- "value": {
902
- "type": "string",
903
- "kind": "expression"
904
- }
905
- },
906
- {
907
- "name": "description",
908
- "default": "-",
909
- "description": "选项上方的描述信息",
910
- "options": [],
911
- "value": {
912
- "type": "string",
913
- "kind": "expression"
914
- }
915
- },
916
- {
917
- "name": "closeable",
918
- "default": "`true`",
919
- "description": "是否显示关闭图标",
920
- "options": [],
921
- "value": {
922
- "type": "boolean",
923
- "kind": "expression"
924
- }
925
- },
926
- {
927
- "name": "close-icon",
928
- "default": "`cross`",
929
- "description": "关闭图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props)",
930
- "options": [],
931
- "value": {
932
- "type": "string",
933
- "kind": "expression"
934
- }
935
- },
936
- {
937
- "name": "duration",
938
- "default": "`0.3`",
939
- "description": "动画时长,单位秒,设置为 0 可以禁用动画",
940
- "options": [],
941
- "value": {
942
- "type": "number | string",
943
- "kind": "expression"
944
- }
945
- },
946
- {
947
- "name": "round",
948
- "default": "`true`",
949
- "description": "是否显示圆角",
950
- "options": [],
951
- "value": {
952
- "type": "boolean",
953
- "kind": "expression"
954
- }
955
- },
956
- {
957
- "name": "overlay",
958
- "default": "`true`",
959
- "description": "是否显示遮罩层",
960
- "options": [],
961
- "value": {
962
- "type": "boolean",
963
- "kind": "expression"
964
- }
965
- },
966
- {
967
- "name": "overlay-class",
968
- "default": "object_",
969
- "description": "自定义遮罩层类名",
970
- "options": [
971
- "-"
972
- ],
973
- "value": {
974
- "type": "string | Array \\",
975
- "kind": "expression"
976
- }
977
- },
978
- {
979
- "name": "overlay-style",
980
- "default": "-",
981
- "description": "自定义遮罩层样式",
982
- "options": [],
983
- "value": {
984
- "type": "object",
985
- "kind": "expression"
986
- }
987
- },
988
- {
989
- "name": "lock-scroll",
990
- "default": "`true`",
991
- "description": "是否锁定背景滚动",
992
- "options": [],
993
- "value": {
994
- "type": "boolean",
995
- "kind": "expression"
996
- }
997
- },
998
- {
999
- "name": "lazy-render",
1000
- "default": "`true`",
1001
- "description": "是否在显示弹层时才渲染节点",
1002
- "options": [],
1003
- "value": {
1004
- "type": "boolean",
1005
- "kind": "expression"
1006
- }
1007
- },
1008
- {
1009
- "name": "close-on-popstate",
1010
- "default": "`true`",
1011
- "description": "是否在页面回退时自动关闭",
1012
- "options": [],
1013
- "value": {
1014
- "type": "boolean",
1015
- "kind": "expression"
1016
- }
1017
- },
1018
- {
1019
- "name": "close-on-click-action",
1020
- "default": "`false`",
1021
- "description": "是否在点击选项后关闭",
1022
- "options": [],
1023
- "value": {
1024
- "type": "boolean",
1025
- "kind": "expression"
1026
- }
1027
- },
1028
- {
1029
- "name": "close-on-click-overlay",
1030
- "default": "`true`",
1031
- "description": "是否在点击遮罩层后关闭",
1032
- "options": [],
1033
- "value": {
1034
- "type": "boolean",
1035
- "kind": "expression"
1036
- }
1037
- },
1038
- {
1039
- "name": "safe-area-inset-bottom",
1040
- "default": "`true`",
1041
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1042
- "options": [],
1043
- "value": {
1044
- "type": "boolean",
1045
- "kind": "expression"
1046
- }
1047
- },
1048
- {
1049
- "name": "teleport",
1050
- "default": "-",
1051
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
1052
- "options": [],
1053
- "value": {
1054
- "type": "string | Element",
1055
- "kind": "expression"
1056
- }
1057
- },
1058
- {
1059
- "name": "before-close",
1060
- "default": "-",
1061
- "description": "关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise",
1062
- "options": [],
1063
- "value": {
1064
- "type": "(action: string) => boolean | Promise\\<boolean\\>",
1065
- "kind": "expression"
1066
- }
1067
- }
1068
- ]
1069
- },
1070
1070
  {
1071
1071
  "name": "van-badge",
1072
1072
  "slots": [
@@ -1293,89 +1293,260 @@
1293
1293
  }
1294
1294
  },
1295
1295
  {
1296
- "name": "square",
1297
- "default": "`false`",
1298
- "description": "是否为方形按钮",
1296
+ "name": "square",
1297
+ "default": "`false`",
1298
+ "description": "是否为方形按钮",
1299
+ "options": [],
1300
+ "value": {
1301
+ "type": "boolean",
1302
+ "kind": "expression"
1303
+ }
1304
+ },
1305
+ {
1306
+ "name": "round",
1307
+ "default": "`false`",
1308
+ "description": "是否为圆形按钮",
1309
+ "options": [],
1310
+ "value": {
1311
+ "type": "boolean",
1312
+ "kind": "expression"
1313
+ }
1314
+ },
1315
+ {
1316
+ "name": "disabled",
1317
+ "default": "`false`",
1318
+ "description": "是否禁用按钮",
1319
+ "options": [],
1320
+ "value": {
1321
+ "type": "boolean",
1322
+ "kind": "expression"
1323
+ }
1324
+ },
1325
+ {
1326
+ "name": "hairline",
1327
+ "default": "`false`",
1328
+ "description": "是否使用 0.5px 边框",
1329
+ "options": [],
1330
+ "value": {
1331
+ "type": "boolean",
1332
+ "kind": "expression"
1333
+ }
1334
+ },
1335
+ {
1336
+ "name": "loading",
1337
+ "default": "`false`",
1338
+ "description": "是否显示为加载状态",
1339
+ "options": [],
1340
+ "value": {
1341
+ "type": "boolean",
1342
+ "kind": "expression"
1343
+ }
1344
+ },
1345
+ {
1346
+ "name": "loading-text",
1347
+ "default": "-",
1348
+ "description": "加载状态提示文字",
1349
+ "options": [],
1350
+ "value": {
1351
+ "type": "string",
1352
+ "kind": "expression"
1353
+ }
1354
+ },
1355
+ {
1356
+ "name": "loading-type",
1357
+ "default": "`circular`",
1358
+ "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
1359
+ "options": [],
1360
+ "value": {
1361
+ "type": "string",
1362
+ "kind": "expression"
1363
+ }
1364
+ },
1365
+ {
1366
+ "name": "loading-size",
1367
+ "default": "`20px`",
1368
+ "description": "加载图标大小,默认单位为 `px`",
1369
+ "options": [],
1370
+ "value": {
1371
+ "type": "number | string",
1372
+ "kind": "expression"
1373
+ }
1374
+ },
1375
+ {
1376
+ "name": "url",
1377
+ "default": "-",
1378
+ "description": "点击后跳转的链接地址",
1379
+ "options": [],
1380
+ "value": {
1381
+ "type": "string",
1382
+ "kind": "expression"
1383
+ }
1384
+ },
1385
+ {
1386
+ "name": "to",
1387
+ "default": "-",
1388
+ "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1389
+ "options": [],
1390
+ "value": {
1391
+ "type": "string | object",
1392
+ "kind": "expression"
1393
+ }
1394
+ },
1395
+ {
1396
+ "name": "replace",
1397
+ "default": "`false`",
1398
+ "description": "是否在跳转时替换当前页面历史",
1399
+ "options": [],
1400
+ "value": {
1401
+ "type": "boolean",
1402
+ "kind": "expression"
1403
+ }
1404
+ }
1405
+ ]
1406
+ },
1407
+ {
1408
+ "name": "van-card",
1409
+ "slots": [
1410
+ {
1411
+ "name": "title",
1412
+ "description": "自定义标题"
1413
+ },
1414
+ {
1415
+ "name": "desc",
1416
+ "description": "自定义描述"
1417
+ },
1418
+ {
1419
+ "name": "num",
1420
+ "description": "自定义数量"
1421
+ },
1422
+ {
1423
+ "name": "price",
1424
+ "description": "自定义价格"
1425
+ },
1426
+ {
1427
+ "name": "origin-price",
1428
+ "description": "自定义商品原价"
1429
+ },
1430
+ {
1431
+ "name": "price-top",
1432
+ "description": "自定义价格上方区域"
1433
+ },
1434
+ {
1435
+ "name": "bottom",
1436
+ "description": "自定义价格下方区域"
1437
+ },
1438
+ {
1439
+ "name": "thumb",
1440
+ "description": "自定义图片"
1441
+ },
1442
+ {
1443
+ "name": "tag",
1444
+ "description": "自定义图片角标"
1445
+ },
1446
+ {
1447
+ "name": "tags",
1448
+ "description": "自定义描述下方标签区域"
1449
+ },
1450
+ {
1451
+ "name": "footer",
1452
+ "description": "自定义右下角内容"
1453
+ }
1454
+ ],
1455
+ "events": [
1456
+ {
1457
+ "name": "click",
1458
+ "description": "点击时触发"
1459
+ },
1460
+ {
1461
+ "name": "click-thumb",
1462
+ "description": "点击自定义图片时触发"
1463
+ }
1464
+ ],
1465
+ "attributes": [
1466
+ {
1467
+ "name": "thumb",
1468
+ "default": "-",
1469
+ "description": "左侧图片 URL",
1299
1470
  "options": [],
1300
1471
  "value": {
1301
- "type": "boolean",
1472
+ "type": "string",
1302
1473
  "kind": "expression"
1303
1474
  }
1304
1475
  },
1305
1476
  {
1306
- "name": "round",
1307
- "default": "`false`",
1308
- "description": "是否为圆形按钮",
1477
+ "name": "title",
1478
+ "default": "-",
1479
+ "description": "标题",
1309
1480
  "options": [],
1310
1481
  "value": {
1311
- "type": "boolean",
1482
+ "type": "string",
1312
1483
  "kind": "expression"
1313
1484
  }
1314
1485
  },
1315
1486
  {
1316
- "name": "disabled",
1317
- "default": "`false`",
1318
- "description": "是否禁用按钮",
1487
+ "name": "desc",
1488
+ "default": "-",
1489
+ "description": "描述",
1319
1490
  "options": [],
1320
1491
  "value": {
1321
- "type": "boolean",
1492
+ "type": "string",
1322
1493
  "kind": "expression"
1323
1494
  }
1324
1495
  },
1325
1496
  {
1326
- "name": "hairline",
1327
- "default": "`false`",
1328
- "description": "是否使用 0.5px 边框",
1497
+ "name": "tag",
1498
+ "default": "-",
1499
+ "description": "图片角标",
1329
1500
  "options": [],
1330
1501
  "value": {
1331
- "type": "boolean",
1502
+ "type": "string",
1332
1503
  "kind": "expression"
1333
1504
  }
1334
1505
  },
1335
1506
  {
1336
- "name": "loading",
1337
- "default": "`false`",
1338
- "description": "是否显示为加载状态",
1507
+ "name": "num",
1508
+ "default": "-",
1509
+ "description": "商品数量",
1339
1510
  "options": [],
1340
1511
  "value": {
1341
- "type": "boolean",
1512
+ "type": "number | string",
1342
1513
  "kind": "expression"
1343
1514
  }
1344
1515
  },
1345
1516
  {
1346
- "name": "loading-text",
1517
+ "name": "price",
1347
1518
  "default": "-",
1348
- "description": "加载状态提示文字",
1519
+ "description": "商品价格",
1349
1520
  "options": [],
1350
1521
  "value": {
1351
- "type": "string",
1522
+ "type": "number | string",
1352
1523
  "kind": "expression"
1353
1524
  }
1354
1525
  },
1355
1526
  {
1356
- "name": "loading-type",
1357
- "default": "`circular`",
1358
- "description": "[加载图标类型](#/zh-CN/loading),可选值为 `spinner`",
1527
+ "name": "origin-price",
1528
+ "default": "-",
1529
+ "description": "商品划线原价",
1359
1530
  "options": [],
1360
1531
  "value": {
1361
- "type": "string",
1532
+ "type": "number | string",
1362
1533
  "kind": "expression"
1363
1534
  }
1364
1535
  },
1365
1536
  {
1366
- "name": "loading-size",
1367
- "default": "`20px`",
1368
- "description": "加载图标大小,默认单位为 `px`",
1537
+ "name": "centered",
1538
+ "default": "`false`",
1539
+ "description": "内容是否垂直居中",
1369
1540
  "options": [],
1370
1541
  "value": {
1371
- "type": "number | string",
1542
+ "type": "boolean",
1372
1543
  "kind": "expression"
1373
1544
  }
1374
1545
  },
1375
1546
  {
1376
- "name": "url",
1377
- "default": "-",
1378
- "description": "点击后跳转的链接地址",
1547
+ "name": "currency",
1548
+ "default": "`¥`",
1549
+ "description": "货币符号",
1379
1550
  "options": [],
1380
1551
  "value": {
1381
1552
  "type": "string",
@@ -1383,19 +1554,19 @@
1383
1554
  }
1384
1555
  },
1385
1556
  {
1386
- "name": "to",
1557
+ "name": "thumb-link",
1387
1558
  "default": "-",
1388
- "description": "点击后跳转的目标路由对象,等同于 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to)",
1559
+ "description": "点击左侧图片后跳转的链接地址",
1389
1560
  "options": [],
1390
1561
  "value": {
1391
- "type": "string | object",
1562
+ "type": "string",
1392
1563
  "kind": "expression"
1393
1564
  }
1394
1565
  },
1395
1566
  {
1396
- "name": "replace",
1567
+ "name": "lazy-load",
1397
1568
  "default": "`false`",
1398
- "description": "是否在跳转时替换当前页面历史",
1569
+ "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1399
1570
  "options": [],
1400
1571
  "value": {
1401
1572
  "type": "boolean",
@@ -1699,209 +1870,38 @@
1699
1870
  },
1700
1871
  {
1701
1872
  "name": "close-on-click-overlay",
1702
- "default": "`true`",
1703
- "description": "是否在点击遮罩层后关闭",
1704
- "options": [],
1705
- "value": {
1706
- "type": "boolean",
1707
- "kind": "expression"
1708
- }
1709
- },
1710
- {
1711
- "name": "safe-area-inset-bottom",
1712
- "default": "`true`",
1713
- "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1714
- "options": [],
1715
- "value": {
1716
- "type": "boolean",
1717
- "kind": "expression"
1718
- }
1719
- },
1720
- {
1721
- "name": "teleport",
1722
- "default": "-",
1723
- "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
1724
- "options": [],
1725
- "value": {
1726
- "type": "string | Element",
1727
- "kind": "expression"
1728
- }
1729
- },
1730
- {
1731
- "name": "max-range",
1732
- "default": "无限制",
1733
- "description": "日期区间最多可选天数",
1734
- "options": [],
1735
- "value": {
1736
- "type": "number | string",
1737
- "kind": "expression"
1738
- }
1739
- },
1740
- {
1741
- "name": "range-prompt",
1742
- "default": "`最多选择 xx 天`",
1743
- "description": "范围选择超过最多可选天数时的提示文案",
1744
- "options": [],
1745
- "value": {
1746
- "type": "string",
1747
- "kind": "expression"
1748
- }
1749
- },
1750
- {
1751
- "name": "show-range-prompt",
1752
- "default": "`true`",
1753
- "description": "范围选择超过最多可选天数时,是否展示提示文案",
1754
- "options": [],
1755
- "value": {
1756
- "type": "boolean",
1757
- "kind": "expression"
1758
- }
1759
- },
1760
- {
1761
- "name": "allow-same-day",
1762
- "default": "`false`",
1763
- "description": "是否允许日期范围的起止时间为同一天",
1764
- "options": [],
1765
- "value": {
1766
- "type": "boolean",
1767
- "kind": "expression"
1768
- }
1769
- },
1770
- {
1771
- "name": "max-range",
1772
- "default": "无限制",
1773
- "description": "日期最多可选天数",
1774
- "options": [],
1775
- "value": {
1776
- "type": "number | string",
1777
- "kind": "expression"
1778
- }
1779
- },
1780
- {
1781
- "name": "range-prompt",
1782
- "default": "`最多选择 xx 天`",
1783
- "description": "选择超过最多可选天数时的提示文案",
1784
- "options": [],
1785
- "value": {
1786
- "type": "string",
1787
- "kind": "expression"
1788
- }
1789
- }
1790
- ]
1791
- },
1792
- {
1793
- "name": "van-card",
1794
- "slots": [
1795
- {
1796
- "name": "title",
1797
- "description": "自定义标题"
1798
- },
1799
- {
1800
- "name": "desc",
1801
- "description": "自定义描述"
1802
- },
1803
- {
1804
- "name": "num",
1805
- "description": "自定义数量"
1806
- },
1807
- {
1808
- "name": "price",
1809
- "description": "自定义价格"
1810
- },
1811
- {
1812
- "name": "origin-price",
1813
- "description": "自定义商品原价"
1814
- },
1815
- {
1816
- "name": "price-top",
1817
- "description": "自定义价格上方区域"
1818
- },
1819
- {
1820
- "name": "bottom",
1821
- "description": "自定义价格下方区域"
1822
- },
1823
- {
1824
- "name": "thumb",
1825
- "description": "自定义图片"
1826
- },
1827
- {
1828
- "name": "tag",
1829
- "description": "自定义图片角标"
1830
- },
1831
- {
1832
- "name": "tags",
1833
- "description": "自定义描述下方标签区域"
1834
- },
1835
- {
1836
- "name": "footer",
1837
- "description": "自定义右下角内容"
1838
- }
1839
- ],
1840
- "events": [
1841
- {
1842
- "name": "click",
1843
- "description": "点击时触发"
1844
- },
1845
- {
1846
- "name": "click-thumb",
1847
- "description": "点击自定义图片时触发"
1848
- }
1849
- ],
1850
- "attributes": [
1851
- {
1852
- "name": "thumb",
1853
- "default": "-",
1854
- "description": "左侧图片 URL",
1855
- "options": [],
1856
- "value": {
1857
- "type": "string",
1858
- "kind": "expression"
1859
- }
1860
- },
1861
- {
1862
- "name": "title",
1863
- "default": "-",
1864
- "description": "标题",
1865
- "options": [],
1866
- "value": {
1867
- "type": "string",
1868
- "kind": "expression"
1869
- }
1870
- },
1871
- {
1872
- "name": "desc",
1873
- "default": "-",
1874
- "description": "描述",
1873
+ "default": "`true`",
1874
+ "description": "是否在点击遮罩层后关闭",
1875
1875
  "options": [],
1876
1876
  "value": {
1877
- "type": "string",
1877
+ "type": "boolean",
1878
1878
  "kind": "expression"
1879
1879
  }
1880
1880
  },
1881
1881
  {
1882
- "name": "tag",
1883
- "default": "-",
1884
- "description": "图片角标",
1882
+ "name": "safe-area-inset-bottom",
1883
+ "default": "`true`",
1884
+ "description": "是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei)",
1885
1885
  "options": [],
1886
1886
  "value": {
1887
- "type": "string",
1887
+ "type": "boolean",
1888
1888
  "kind": "expression"
1889
1889
  }
1890
1890
  },
1891
1891
  {
1892
- "name": "num",
1892
+ "name": "teleport",
1893
1893
  "default": "-",
1894
- "description": "商品数量",
1894
+ "description": "指定挂载的节点,等同于 Teleport 组件的 [to 属性](https://v3.cn.vuejs.org/api/built-in-components.html#teleport)",
1895
1895
  "options": [],
1896
1896
  "value": {
1897
- "type": "number | string",
1897
+ "type": "string | Element",
1898
1898
  "kind": "expression"
1899
1899
  }
1900
1900
  },
1901
1901
  {
1902
- "name": "price",
1903
- "default": "-",
1904
- "description": "商品价格",
1902
+ "name": "max-range",
1903
+ "default": "无限制",
1904
+ "description": "日期区间最多可选天数",
1905
1905
  "options": [],
1906
1906
  "value": {
1907
1907
  "type": "number | string",
@@ -1909,19 +1909,19 @@
1909
1909
  }
1910
1910
  },
1911
1911
  {
1912
- "name": "origin-price",
1913
- "default": "-",
1914
- "description": "商品划线原价",
1912
+ "name": "range-prompt",
1913
+ "default": "`最多选择 xx 天`",
1914
+ "description": "范围选择超过最多可选天数时的提示文案",
1915
1915
  "options": [],
1916
1916
  "value": {
1917
- "type": "number | string",
1917
+ "type": "string",
1918
1918
  "kind": "expression"
1919
1919
  }
1920
1920
  },
1921
1921
  {
1922
- "name": "centered",
1923
- "default": "`false`",
1924
- "description": "内容是否垂直居中",
1922
+ "name": "show-range-prompt",
1923
+ "default": "`true`",
1924
+ "description": "范围选择超过最多可选天数时,是否展示提示文案",
1925
1925
  "options": [],
1926
1926
  "value": {
1927
1927
  "type": "boolean",
@@ -1929,32 +1929,32 @@
1929
1929
  }
1930
1930
  },
1931
1931
  {
1932
- "name": "currency",
1933
- "default": "`¥`",
1934
- "description": "货币符号",
1932
+ "name": "allow-same-day",
1933
+ "default": "`false`",
1934
+ "description": "是否允许日期范围的起止时间为同一天",
1935
1935
  "options": [],
1936
1936
  "value": {
1937
- "type": "string",
1937
+ "type": "boolean",
1938
1938
  "kind": "expression"
1939
1939
  }
1940
1940
  },
1941
1941
  {
1942
- "name": "thumb-link",
1943
- "default": "-",
1944
- "description": "点击左侧图片后跳转的链接地址",
1942
+ "name": "max-range",
1943
+ "default": "无限制",
1944
+ "description": "日期最多可选天数",
1945
1945
  "options": [],
1946
1946
  "value": {
1947
- "type": "string",
1947
+ "type": "number | string",
1948
1948
  "kind": "expression"
1949
1949
  }
1950
1950
  },
1951
1951
  {
1952
- "name": "lazy-load",
1953
- "default": "`false`",
1954
- "description": "是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用",
1952
+ "name": "range-prompt",
1953
+ "default": "`最多选择 xx 天`",
1954
+ "description": "选择超过最多可选天数时的提示文案",
1955
1955
  "options": [],
1956
1956
  "value": {
1957
- "type": "boolean",
1957
+ "type": "string",
1958
1958
  "kind": "expression"
1959
1959
  }
1960
1960
  }
@@ -7334,6 +7334,103 @@
7334
7334
  }
7335
7335
  ]
7336
7336
  },
7337
+ {
7338
+ "name": "van-progress",
7339
+ "slots": [],
7340
+ "events": [],
7341
+ "attributes": [
7342
+ {
7343
+ "name": "percentage",
7344
+ "default": "`0`",
7345
+ "description": "进度百分比",
7346
+ "options": [],
7347
+ "value": {
7348
+ "type": "number | string",
7349
+ "kind": "expression"
7350
+ }
7351
+ },
7352
+ {
7353
+ "name": "stroke-width",
7354
+ "default": "`4px`",
7355
+ "description": "进度条粗细,默认单位为`px`",
7356
+ "options": [],
7357
+ "value": {
7358
+ "type": "number | string",
7359
+ "kind": "expression"
7360
+ }
7361
+ },
7362
+ {
7363
+ "name": "color",
7364
+ "default": "`#1989fa`",
7365
+ "description": "进度条颜色",
7366
+ "options": [],
7367
+ "value": {
7368
+ "type": "string",
7369
+ "kind": "expression"
7370
+ }
7371
+ },
7372
+ {
7373
+ "name": "track-color",
7374
+ "default": "`#e5e5e5`",
7375
+ "description": "轨道颜色",
7376
+ "options": [],
7377
+ "value": {
7378
+ "type": "string",
7379
+ "kind": "expression"
7380
+ }
7381
+ },
7382
+ {
7383
+ "name": "pivot-text",
7384
+ "default": "百分比",
7385
+ "description": "进度文字内容",
7386
+ "options": [],
7387
+ "value": {
7388
+ "type": "string",
7389
+ "kind": "expression"
7390
+ }
7391
+ },
7392
+ {
7393
+ "name": "pivot-color",
7394
+ "default": "同进度条颜色",
7395
+ "description": "进度文字背景色",
7396
+ "options": [],
7397
+ "value": {
7398
+ "type": "string",
7399
+ "kind": "expression"
7400
+ }
7401
+ },
7402
+ {
7403
+ "name": "text-color",
7404
+ "default": "`white`",
7405
+ "description": "进度文字颜色",
7406
+ "options": [],
7407
+ "value": {
7408
+ "type": "string",
7409
+ "kind": "expression"
7410
+ }
7411
+ },
7412
+ {
7413
+ "name": "inactive",
7414
+ "default": "`false`",
7415
+ "description": "是否置灰",
7416
+ "options": [],
7417
+ "value": {
7418
+ "type": "boolean",
7419
+ "kind": "expression"
7420
+ }
7421
+ },
7422
+ {
7423
+ "name": "show-pivot",
7424
+ "default": "`true`",
7425
+ "description": "是否显示进度文字",
7426
+ "options": [],
7427
+ "value": {
7428
+ "type": "boolean",
7429
+ "kind": "expression"
7430
+ }
7431
+ }
7432
+ ]
7433
+ },
7337
7434
  {
7338
7435
  "name": "van-pull-refresh",
7339
7436
  "slots": [
@@ -7471,103 +7568,6 @@
7471
7568
  }
7472
7569
  ]
7473
7570
  },
7474
- {
7475
- "name": "van-progress",
7476
- "slots": [],
7477
- "events": [],
7478
- "attributes": [
7479
- {
7480
- "name": "percentage",
7481
- "default": "`0`",
7482
- "description": "进度百分比",
7483
- "options": [],
7484
- "value": {
7485
- "type": "number | string",
7486
- "kind": "expression"
7487
- }
7488
- },
7489
- {
7490
- "name": "stroke-width",
7491
- "default": "`4px`",
7492
- "description": "进度条粗细,默认单位为`px`",
7493
- "options": [],
7494
- "value": {
7495
- "type": "number | string",
7496
- "kind": "expression"
7497
- }
7498
- },
7499
- {
7500
- "name": "color",
7501
- "default": "`#1989fa`",
7502
- "description": "进度条颜色",
7503
- "options": [],
7504
- "value": {
7505
- "type": "string",
7506
- "kind": "expression"
7507
- }
7508
- },
7509
- {
7510
- "name": "track-color",
7511
- "default": "`#e5e5e5`",
7512
- "description": "轨道颜色",
7513
- "options": [],
7514
- "value": {
7515
- "type": "string",
7516
- "kind": "expression"
7517
- }
7518
- },
7519
- {
7520
- "name": "pivot-text",
7521
- "default": "百分比",
7522
- "description": "进度文字内容",
7523
- "options": [],
7524
- "value": {
7525
- "type": "string",
7526
- "kind": "expression"
7527
- }
7528
- },
7529
- {
7530
- "name": "pivot-color",
7531
- "default": "同进度条颜色",
7532
- "description": "进度文字背景色",
7533
- "options": [],
7534
- "value": {
7535
- "type": "string",
7536
- "kind": "expression"
7537
- }
7538
- },
7539
- {
7540
- "name": "text-color",
7541
- "default": "`white`",
7542
- "description": "进度文字颜色",
7543
- "options": [],
7544
- "value": {
7545
- "type": "string",
7546
- "kind": "expression"
7547
- }
7548
- },
7549
- {
7550
- "name": "inactive",
7551
- "default": "`false`",
7552
- "description": "是否置灰",
7553
- "options": [],
7554
- "value": {
7555
- "type": "boolean",
7556
- "kind": "expression"
7557
- }
7558
- },
7559
- {
7560
- "name": "show-pivot",
7561
- "default": "`true`",
7562
- "description": "是否显示进度文字",
7563
- "options": [],
7564
- "value": {
7565
- "type": "boolean",
7566
- "kind": "expression"
7567
- }
7568
- }
7569
- ]
7570
- },
7571
7571
  {
7572
7572
  "name": "van-radio",
7573
7573
  "slots": [