vant 3.4.6 → 3.4.9

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 (475) hide show
  1. package/README.md +141 -0
  2. package/changelog.generated.md +44 -65
  3. package/es/address-list/AddressListItem.d.ts +3 -2
  4. package/es/address-list/AddressListItem.js +1 -1
  5. package/es/badge/Badge.d.ts +4 -3
  6. package/es/badge/index.d.ts +2 -2
  7. package/es/calendar/Calendar.js +1 -1
  8. package/es/calendar/CalendarDay.js +4 -0
  9. package/es/calendar/index.css +1 -1
  10. package/es/calendar/index.less +2 -0
  11. package/es/calendar/types.d.ts +2 -1
  12. package/es/calendar/var.less +1 -0
  13. package/es/cascader/types.d.ts +2 -1
  14. package/es/checkbox/Checker.d.ts +2 -1
  15. package/es/collapse/Collapse.d.ts +7 -6
  16. package/es/collapse/index.d.ts +3 -3
  17. package/es/composables/use-touch.js +1 -1
  18. package/es/config-provider/ConfigProvider.d.ts +4 -3
  19. package/es/config-provider/index.d.ts +2 -2
  20. package/es/contact-list/ContactList.d.ts +3 -2
  21. package/es/coupon/Coupon.d.ts +2 -1
  22. package/es/coupon-list/CouponList.d.ts +3 -13
  23. package/es/coupon-list/CouponList.js +9 -7
  24. package/es/coupon-list/index.css +1 -1
  25. package/es/coupon-list/index.d.ts +2 -9
  26. package/es/coupon-list/index.less +4 -16
  27. package/es/coupon-list/style/index.js +1 -0
  28. package/es/coupon-list/style/less.js +1 -0
  29. package/es/coupon-list/var.less +0 -1
  30. package/es/datetime-picker/DatePicker.js +2 -2
  31. package/es/dialog/index.css +1 -1
  32. package/es/dialog/types.d.ts +2 -2
  33. package/es/dropdown-item/types.d.ts +2 -1
  34. package/es/empty/Empty.d.ts +8 -7
  35. package/es/empty/Empty.js +12 -15
  36. package/es/empty/Images.d.ts +4 -0
  37. package/es/empty/Images.js +271 -0
  38. package/es/empty/index.d.ts +2 -2
  39. package/es/field/Field.d.ts +4 -0
  40. package/es/field/Field.js +8 -3
  41. package/es/field/index.d.ts +2 -0
  42. package/es/field/types.d.ts +1 -1
  43. package/es/form/Form.d.ts +13 -13
  44. package/es/form/Form.js +7 -3
  45. package/es/form/index.d.ts +9 -9
  46. package/es/form/types.d.ts +1 -0
  47. package/es/icon/index.css +1 -1
  48. package/es/index-bar/IndexBar.d.ts +5 -4
  49. package/es/index-bar/IndexBar.js +25 -4
  50. package/es/index-bar/index.d.ts +3 -3
  51. package/es/index-bar/types.d.ts +2 -1
  52. package/es/index.d.ts +1 -1
  53. package/es/index.js +1 -1
  54. package/es/loading/Loading.js +3 -1
  55. package/es/locale/lang/da-DK.d.ts +64 -0
  56. package/es/locale/lang/da-DK.js +66 -0
  57. package/es/locale/lang/is-IS.d.ts +64 -0
  58. package/es/locale/lang/is-IS.js +74 -0
  59. package/es/locale/lang/la-LA.d.ts +64 -0
  60. package/es/locale/lang/la-LA.js +66 -0
  61. package/es/locale/lang/sv-SE.d.ts +64 -0
  62. package/es/locale/lang/sv-SE.js +66 -0
  63. package/es/notify/types.d.ts +2 -1
  64. package/es/number-keyboard/NumberKeyboard.js +10 -1
  65. package/es/picker/types.d.ts +3 -2
  66. package/es/popup/index.css +1 -1
  67. package/es/progress/Progress.d.ts +4 -3
  68. package/es/progress/index.d.ts +2 -2
  69. package/es/rate/Rate.js +32 -10
  70. package/es/search/Search.d.ts +3 -0
  71. package/es/search/index.d.ts +2 -0
  72. package/es/share-sheet/ShareSheet.js +25 -11
  73. package/es/share-sheet/index.css +1 -1
  74. package/es/share-sheet/index.less +45 -1
  75. package/es/skeleton/Skeleton.d.ts +5 -4
  76. package/es/skeleton/index.d.ts +3 -3
  77. package/es/slider/index.css +1 -1
  78. package/es/style/animation.css +1 -1
  79. package/es/style/base.css +1 -1
  80. package/es/swipe-cell/index.css +1 -1
  81. package/es/tabbar/Tabbar.d.ts +2 -2
  82. package/es/tabs/Tabs.d.ts +1 -1
  83. package/es/tabs/Tabs.js +1 -0
  84. package/es/tabs/types.d.ts +5 -4
  85. package/es/toast/types.d.ts +3 -2
  86. package/es/tree-select/TreeSelect.d.ts +7 -6
  87. package/es/tree-select/index.d.ts +3 -3
  88. package/es/uploader/Uploader.d.ts +4 -4
  89. package/es/uploader/Uploader.js +3 -3
  90. package/es/uploader/UploaderPreviewItem.d.ts +3 -3
  91. package/es/uploader/UploaderPreviewItem.js +9 -6
  92. package/es/uploader/index.d.ts +2 -2
  93. package/es/uploader/types.d.ts +5 -5
  94. package/es/uploader/utils.d.ts +0 -1
  95. package/es/uploader/utils.js +2 -4
  96. package/es/utils/basic.d.ts +2 -0
  97. package/es/utils/basic.js +3 -1
  98. package/es/utils/format.d.ts +7 -6
  99. package/es/utils/format.js +6 -0
  100. package/es/utils/validate.d.ts +2 -1
  101. package/lib/action-bar/ActionBar.js +8 -13
  102. package/lib/action-bar/index.js +9 -16
  103. package/lib/action-bar-button/ActionBarButton.js +8 -13
  104. package/lib/action-bar-button/index.js +9 -16
  105. package/lib/action-bar-icon/ActionBarIcon.js +8 -13
  106. package/lib/action-bar-icon/index.js +9 -16
  107. package/lib/action-sheet/ActionSheet.js +8 -13
  108. package/lib/action-sheet/index.js +9 -16
  109. package/lib/address-edit/AddressEdit.js +9 -16
  110. package/lib/address-edit/AddressEditDetail.js +8 -13
  111. package/lib/address-edit/index.js +9 -16
  112. package/lib/address-edit/types.js +7 -12
  113. package/lib/address-list/AddressList.js +9 -16
  114. package/lib/address-list/AddressListItem.d.ts +3 -2
  115. package/lib/address-list/AddressListItem.js +8 -13
  116. package/lib/address-list/index.js +9 -16
  117. package/lib/area/Area.js +8 -13
  118. package/lib/area/index.js +9 -16
  119. package/lib/area/types.js +7 -12
  120. package/lib/badge/Badge.d.ts +4 -3
  121. package/lib/badge/Badge.js +8 -13
  122. package/lib/badge/index.d.ts +2 -2
  123. package/lib/badge/index.js +9 -16
  124. package/lib/button/Button.js +8 -13
  125. package/lib/button/index.js +9 -16
  126. package/lib/button/types.js +7 -12
  127. package/lib/calendar/Calendar.js +10 -17
  128. package/lib/calendar/CalendarDay.js +12 -13
  129. package/lib/calendar/CalendarHeader.js +8 -13
  130. package/lib/calendar/CalendarMonth.js +9 -16
  131. package/lib/calendar/index.css +1 -1
  132. package/lib/calendar/index.js +9 -16
  133. package/lib/calendar/index.less +2 -0
  134. package/lib/calendar/types.d.ts +2 -1
  135. package/lib/calendar/types.js +7 -12
  136. package/lib/calendar/utils.js +8 -13
  137. package/lib/calendar/var.less +1 -0
  138. package/lib/card/Card.js +8 -13
  139. package/lib/card/index.js +9 -16
  140. package/lib/cascader/Cascader.js +8 -13
  141. package/lib/cascader/index.js +9 -16
  142. package/lib/cascader/types.d.ts +2 -1
  143. package/lib/cascader/types.js +7 -12
  144. package/lib/cell/Cell.js +8 -13
  145. package/lib/cell/index.js +9 -16
  146. package/lib/cell-group/CellGroup.js +8 -13
  147. package/lib/cell-group/index.js +9 -16
  148. package/lib/checkbox/Checkbox.js +9 -16
  149. package/lib/checkbox/Checker.d.ts +2 -1
  150. package/lib/checkbox/Checker.js +8 -13
  151. package/lib/checkbox/index.js +9 -16
  152. package/lib/checkbox/types.js +7 -12
  153. package/lib/checkbox-group/CheckboxGroup.js +8 -13
  154. package/lib/checkbox-group/index.js +9 -16
  155. package/lib/checkbox-group/types.js +7 -12
  156. package/lib/circle/Circle.js +8 -13
  157. package/lib/circle/index.js +9 -16
  158. package/lib/col/Col.js +8 -13
  159. package/lib/col/index.js +9 -16
  160. package/lib/collapse/Collapse.d.ts +7 -6
  161. package/lib/collapse/Collapse.js +8 -13
  162. package/lib/collapse/index.d.ts +3 -3
  163. package/lib/collapse/index.js +9 -16
  164. package/lib/collapse-item/CollapseItem.js +8 -13
  165. package/lib/collapse-item/index.js +9 -16
  166. package/lib/collapse-item/types.js +7 -12
  167. package/lib/composables/on-popup-reopen.js +8 -13
  168. package/lib/composables/use-expose.js +8 -13
  169. package/lib/composables/use-height.js +8 -13
  170. package/lib/composables/use-id.js +8 -13
  171. package/lib/composables/use-lazy-render.js +8 -13
  172. package/lib/composables/use-lock-scroll.js +8 -13
  173. package/lib/composables/use-placeholder.js +8 -13
  174. package/lib/composables/use-refs.js +8 -13
  175. package/lib/composables/use-route.js +8 -13
  176. package/lib/composables/use-tab-status.js +8 -13
  177. package/lib/composables/use-touch.js +9 -14
  178. package/lib/composables/use-visibility-change.js +8 -13
  179. package/lib/config-provider/ConfigProvider.d.ts +4 -3
  180. package/lib/config-provider/ConfigProvider.js +8 -13
  181. package/lib/config-provider/index.d.ts +2 -2
  182. package/lib/config-provider/index.js +9 -16
  183. package/lib/contact-card/ContactCard.js +8 -13
  184. package/lib/contact-card/index.js +9 -16
  185. package/lib/contact-edit/ContactEdit.js +8 -13
  186. package/lib/contact-edit/index.js +9 -16
  187. package/lib/contact-list/ContactList.d.ts +3 -2
  188. package/lib/contact-list/ContactList.js +8 -13
  189. package/lib/contact-list/index.js +9 -16
  190. package/lib/count-down/CountDown.js +8 -13
  191. package/lib/count-down/index.js +9 -16
  192. package/lib/count-down/types.js +7 -12
  193. package/lib/count-down/utils.js +8 -13
  194. package/lib/coupon/Coupon.d.ts +2 -1
  195. package/lib/coupon/Coupon.js +8 -13
  196. package/lib/coupon/index.js +9 -16
  197. package/lib/coupon/utils.js +8 -13
  198. package/lib/coupon-cell/CouponCell.js +8 -13
  199. package/lib/coupon-cell/index.js +9 -16
  200. package/lib/coupon-list/CouponList.d.ts +3 -13
  201. package/lib/coupon-list/CouponList.js +17 -20
  202. package/lib/coupon-list/index.css +1 -1
  203. package/lib/coupon-list/index.d.ts +2 -9
  204. package/lib/coupon-list/index.js +9 -16
  205. package/lib/coupon-list/index.less +4 -16
  206. package/lib/coupon-list/style/index.js +1 -0
  207. package/lib/coupon-list/style/less.js +1 -0
  208. package/lib/coupon-list/var.less +0 -1
  209. package/lib/datetime-picker/DatePicker.js +10 -15
  210. package/lib/datetime-picker/DatetimePicker.js +9 -16
  211. package/lib/datetime-picker/TimePicker.js +8 -13
  212. package/lib/datetime-picker/index.js +9 -16
  213. package/lib/datetime-picker/types.js +7 -12
  214. package/lib/datetime-picker/utils.js +8 -13
  215. package/lib/dialog/Dialog.js +8 -13
  216. package/lib/dialog/function-call.js +9 -16
  217. package/lib/dialog/index.css +1 -1
  218. package/lib/dialog/index.js +8 -13
  219. package/lib/dialog/types.d.ts +2 -2
  220. package/lib/dialog/types.js +7 -12
  221. package/lib/divider/Divider.js +8 -13
  222. package/lib/divider/index.js +9 -16
  223. package/lib/dropdown-item/DropdownItem.js +8 -13
  224. package/lib/dropdown-item/index.js +9 -16
  225. package/lib/dropdown-item/types.d.ts +2 -1
  226. package/lib/dropdown-item/types.js +7 -12
  227. package/lib/dropdown-menu/DropdownMenu.js +8 -13
  228. package/lib/dropdown-menu/index.js +9 -16
  229. package/lib/dropdown-menu/types.js +7 -12
  230. package/lib/empty/Empty.d.ts +8 -7
  231. package/lib/empty/Empty.js +19 -27
  232. package/lib/empty/Images.d.ts +4 -0
  233. package/lib/empty/Images.js +290 -0
  234. package/lib/empty/index.d.ts +2 -2
  235. package/lib/empty/index.js +9 -16
  236. package/lib/field/Field.d.ts +4 -0
  237. package/lib/field/Field.js +15 -15
  238. package/lib/field/index.d.ts +2 -0
  239. package/lib/field/index.js +9 -16
  240. package/lib/field/types.d.ts +1 -1
  241. package/lib/field/types.js +7 -12
  242. package/lib/field/utils.js +8 -13
  243. package/lib/form/Form.d.ts +13 -13
  244. package/lib/form/Form.js +14 -15
  245. package/lib/form/index.d.ts +9 -9
  246. package/lib/form/index.js +9 -16
  247. package/lib/form/types.d.ts +1 -0
  248. package/lib/form/types.js +7 -12
  249. package/lib/grid/Grid.js +8 -13
  250. package/lib/grid/index.js +9 -16
  251. package/lib/grid-item/GridItem.js +8 -13
  252. package/lib/grid-item/index.js +9 -16
  253. package/lib/icon/Icon.js +8 -13
  254. package/lib/icon/index.css +1 -1
  255. package/lib/icon/index.js +9 -16
  256. package/lib/image/Image.js +8 -13
  257. package/lib/image/index.js +9 -16
  258. package/lib/image-preview/ImagePreview.js +9 -16
  259. package/lib/image-preview/ImagePreviewItem.js +8 -13
  260. package/lib/image-preview/function-call.js +9 -16
  261. package/lib/image-preview/index.js +8 -13
  262. package/lib/image-preview/types.js +7 -12
  263. package/lib/index-anchor/IndexAnchor.js +8 -13
  264. package/lib/index-anchor/index.js +9 -16
  265. package/lib/index-bar/IndexBar.d.ts +5 -4
  266. package/lib/index-bar/IndexBar.js +33 -17
  267. package/lib/index-bar/index.d.ts +3 -3
  268. package/lib/index-bar/index.js +9 -16
  269. package/lib/index-bar/types.d.ts +2 -1
  270. package/lib/index-bar/types.js +7 -12
  271. package/lib/index.css +1 -1
  272. package/lib/index.d.ts +1 -1
  273. package/lib/index.js +96 -100
  274. package/lib/index.less +2 -2
  275. package/lib/lazyload/index.js +8 -13
  276. package/lib/lazyload/vue-lazyload/index.js +9 -16
  277. package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
  278. package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
  279. package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
  280. package/lib/lazyload/vue-lazyload/lazy.js +9 -16
  281. package/lib/lazyload/vue-lazyload/listener.js +8 -13
  282. package/lib/lazyload/vue-lazyload/util.js +8 -13
  283. package/lib/list/List.js +8 -13
  284. package/lib/list/index.js +9 -16
  285. package/lib/list/types.js +7 -12
  286. package/lib/loading/Loading.js +11 -14
  287. package/lib/loading/index.js +9 -16
  288. package/lib/locale/index.js +9 -16
  289. package/lib/locale/lang/bn-BD.js +8 -13
  290. package/lib/locale/lang/da-DK.d.ts +64 -0
  291. package/lib/locale/lang/da-DK.js +85 -0
  292. package/lib/locale/lang/de-DE-formal.js +8 -13
  293. package/lib/locale/lang/de-DE.js +8 -13
  294. package/lib/locale/lang/en-US.js +8 -13
  295. package/lib/locale/lang/es-ES.js +8 -13
  296. package/lib/locale/lang/fr-FR.js +8 -13
  297. package/lib/locale/lang/hi-IN.js +8 -13
  298. package/lib/locale/lang/id-ID.js +8 -13
  299. package/lib/locale/lang/is-IS.d.ts +64 -0
  300. package/lib/locale/lang/is-IS.js +93 -0
  301. package/lib/locale/lang/it-IT.js +8 -13
  302. package/lib/locale/lang/ja-JP.js +8 -13
  303. package/lib/locale/lang/ko-KR.js +8 -13
  304. package/lib/locale/lang/la-LA.d.ts +64 -0
  305. package/lib/locale/lang/la-LA.js +85 -0
  306. package/lib/locale/lang/nb-NO.js +8 -13
  307. package/lib/locale/lang/pt-BR.js +8 -13
  308. package/lib/locale/lang/ro-RO.js +8 -13
  309. package/lib/locale/lang/ru-RU.js +8 -13
  310. package/lib/locale/lang/sv-SE.d.ts +64 -0
  311. package/lib/locale/lang/sv-SE.js +85 -0
  312. package/lib/locale/lang/th-TH.js +8 -13
  313. package/lib/locale/lang/tr-TR.js +8 -13
  314. package/lib/locale/lang/uk-UA.js +8 -13
  315. package/lib/locale/lang/vi-VN.js +8 -13
  316. package/lib/locale/lang/zh-CN.js +8 -13
  317. package/lib/locale/lang/zh-HK.js +8 -13
  318. package/lib/locale/lang/zh-TW.js +8 -13
  319. package/lib/nav-bar/NavBar.js +8 -13
  320. package/lib/nav-bar/index.js +9 -16
  321. package/lib/notice-bar/NoticeBar.js +8 -13
  322. package/lib/notice-bar/index.js +9 -16
  323. package/lib/notice-bar/types.js +7 -12
  324. package/lib/notify/Notify.js +8 -13
  325. package/lib/notify/function-call.js +9 -16
  326. package/lib/notify/index.js +8 -13
  327. package/lib/notify/types.d.ts +2 -1
  328. package/lib/notify/types.js +7 -12
  329. package/lib/number-keyboard/NumberKeyboard.js +19 -17
  330. package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
  331. package/lib/number-keyboard/index.js +9 -16
  332. package/lib/overlay/Overlay.js +8 -13
  333. package/lib/overlay/index.js +9 -16
  334. package/lib/pagination/Pagination.js +8 -13
  335. package/lib/pagination/index.js +9 -16
  336. package/lib/password-input/PasswordInput.js +8 -13
  337. package/lib/password-input/index.js +9 -16
  338. package/lib/picker/Picker.js +9 -16
  339. package/lib/picker/PickerColumn.js +8 -13
  340. package/lib/picker/index.js +9 -16
  341. package/lib/picker/types.d.ts +3 -2
  342. package/lib/picker/types.js +7 -12
  343. package/lib/popover/Popover.js +8 -13
  344. package/lib/popover/index.js +9 -16
  345. package/lib/popover/types.js +7 -12
  346. package/lib/popup/Popup.js +8 -13
  347. package/lib/popup/index.css +1 -1
  348. package/lib/popup/index.js +9 -16
  349. package/lib/popup/shared.js +8 -13
  350. package/lib/popup/types.js +7 -12
  351. package/lib/progress/Progress.d.ts +4 -3
  352. package/lib/progress/Progress.js +8 -13
  353. package/lib/progress/index.d.ts +2 -2
  354. package/lib/progress/index.js +9 -16
  355. package/lib/progress/types.js +7 -12
  356. package/lib/pull-refresh/PullRefresh.js +8 -13
  357. package/lib/pull-refresh/index.js +9 -16
  358. package/lib/radio/Radio.js +9 -16
  359. package/lib/radio/index.js +9 -16
  360. package/lib/radio-group/RadioGroup.js +8 -13
  361. package/lib/radio-group/index.js +9 -16
  362. package/lib/rate/Rate.js +39 -22
  363. package/lib/rate/index.js +9 -16
  364. package/lib/row/Row.js +8 -13
  365. package/lib/row/index.js +9 -16
  366. package/lib/search/Search.d.ts +3 -0
  367. package/lib/search/Search.js +8 -13
  368. package/lib/search/index.d.ts +2 -0
  369. package/lib/search/index.js +9 -16
  370. package/lib/search/types.js +7 -12
  371. package/lib/share-sheet/ShareSheet.js +33 -24
  372. package/lib/share-sheet/index.css +1 -1
  373. package/lib/share-sheet/index.js +9 -16
  374. package/lib/share-sheet/index.less +45 -1
  375. package/lib/sidebar/Sidebar.js +8 -13
  376. package/lib/sidebar/index.js +9 -16
  377. package/lib/sidebar-item/SidebarItem.js +8 -13
  378. package/lib/sidebar-item/index.js +9 -16
  379. package/lib/skeleton/Skeleton.d.ts +5 -4
  380. package/lib/skeleton/Skeleton.js +8 -13
  381. package/lib/skeleton/index.d.ts +3 -3
  382. package/lib/skeleton/index.js +9 -16
  383. package/lib/slider/Slider.js +8 -13
  384. package/lib/slider/index.css +1 -1
  385. package/lib/slider/index.js +9 -16
  386. package/lib/step/Step.js +8 -13
  387. package/lib/step/index.js +9 -16
  388. package/lib/stepper/Stepper.js +8 -13
  389. package/lib/stepper/index.js +9 -16
  390. package/lib/steps/Steps.js +8 -13
  391. package/lib/steps/index.js +9 -16
  392. package/lib/sticky/Sticky.js +8 -13
  393. package/lib/sticky/index.js +9 -16
  394. package/lib/style/animation.css +1 -1
  395. package/lib/style/base.css +1 -1
  396. package/lib/submit-bar/SubmitBar.js +8 -13
  397. package/lib/submit-bar/index.js +9 -16
  398. package/lib/swipe/Swipe.js +8 -13
  399. package/lib/swipe/index.js +9 -16
  400. package/lib/swipe/types.js +7 -12
  401. package/lib/swipe-cell/SwipeCell.js +8 -13
  402. package/lib/swipe-cell/index.css +1 -1
  403. package/lib/swipe-cell/index.js +9 -16
  404. package/lib/swipe-cell/types.js +7 -12
  405. package/lib/swipe-item/SwipeItem.js +8 -13
  406. package/lib/swipe-item/index.js +9 -16
  407. package/lib/switch/Switch.js +8 -13
  408. package/lib/switch/index.js +9 -16
  409. package/lib/tab/Tab.js +8 -13
  410. package/lib/tab/index.js +9 -16
  411. package/lib/tabbar/Tabbar.d.ts +2 -2
  412. package/lib/tabbar/Tabbar.js +8 -13
  413. package/lib/tabbar/index.js +9 -16
  414. package/lib/tabbar-item/TabbarItem.js +8 -13
  415. package/lib/tabbar-item/index.js +9 -16
  416. package/lib/tabs/Tabs.d.ts +1 -1
  417. package/lib/tabs/Tabs.js +10 -16
  418. package/lib/tabs/TabsContent.js +8 -13
  419. package/lib/tabs/TabsTitle.js +8 -13
  420. package/lib/tabs/index.js +9 -16
  421. package/lib/tabs/types.d.ts +5 -4
  422. package/lib/tabs/types.js +7 -12
  423. package/lib/tabs/utils.js +8 -13
  424. package/lib/tag/Tag.js +8 -13
  425. package/lib/tag/index.js +9 -16
  426. package/lib/toast/Toast.js +8 -13
  427. package/lib/toast/function-call.js +9 -16
  428. package/lib/toast/index.js +8 -13
  429. package/lib/toast/lock-click.js +8 -13
  430. package/lib/toast/types.d.ts +3 -2
  431. package/lib/toast/types.js +7 -12
  432. package/lib/tree-select/TreeSelect.d.ts +7 -6
  433. package/lib/tree-select/TreeSelect.js +8 -13
  434. package/lib/tree-select/index.d.ts +3 -3
  435. package/lib/tree-select/index.js +9 -16
  436. package/lib/uploader/Uploader.d.ts +4 -4
  437. package/lib/uploader/Uploader.js +11 -18
  438. package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
  439. package/lib/uploader/UploaderPreviewItem.js +17 -19
  440. package/lib/uploader/index.d.ts +2 -2
  441. package/lib/uploader/index.js +9 -16
  442. package/lib/uploader/types.d.ts +5 -5
  443. package/lib/uploader/types.js +7 -12
  444. package/lib/uploader/utils.d.ts +0 -1
  445. package/lib/uploader/utils.js +10 -17
  446. package/lib/utils/basic.d.ts +2 -0
  447. package/lib/utils/basic.js +11 -14
  448. package/lib/utils/constant.js +8 -13
  449. package/lib/utils/create.js +9 -16
  450. package/lib/utils/deep-assign.js +8 -13
  451. package/lib/utils/deep-clone.js +8 -13
  452. package/lib/utils/dom.js +8 -13
  453. package/lib/utils/format.d.ts +7 -6
  454. package/lib/utils/format.js +14 -13
  455. package/lib/utils/index.js +17 -21
  456. package/lib/utils/interceptor.js +8 -13
  457. package/lib/utils/mount-component.js +8 -13
  458. package/lib/utils/props.js +8 -13
  459. package/lib/utils/validate.d.ts +2 -1
  460. package/lib/utils/validate.js +8 -13
  461. package/lib/utils/with-install.js +8 -13
  462. package/lib/vant.cjs.js +530 -263
  463. package/lib/vant.cjs.min.js +1 -1
  464. package/lib/vant.es.js +530 -263
  465. package/lib/vant.es.min.js +530 -263
  466. package/lib/vant.js +530 -263
  467. package/lib/vant.min.js +1 -1
  468. package/package.json +3 -3
  469. package/vetur/attributes.json +423 -487
  470. package/vetur/tags.json +112 -110
  471. package/vetur/web-types.json +2200 -1345
  472. package/es/empty/Network.d.ts +0 -1
  473. package/es/empty/Network.js +0 -89
  474. package/lib/empty/Network.d.ts +0 -1
  475. package/lib/empty/Network.js +0 -113
@@ -4,31 +4,25 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name2 in all)
10
9
  __defProp(target, name2, { get: all[name2], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  default: () => stdin_default
31
24
  });
25
+ module.exports = __toCommonJS(stdin_exports);
32
26
  var import_vue = require("vue");
33
27
  var import_vue2 = require("vue");
34
28
  var import_utils = require("../utils");
@@ -230,8 +224,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
230
224
  }
231
225
  (0, import_use.raf)(() => {
232
226
  bodyHeight = Math.floor((0, import_use.useRect)(bodyRef).height);
233
- scrollToCurrentDate();
234
227
  });
228
+ scrollToCurrentDate();
235
229
  };
236
230
  const reset = (date = getInitialDate()) => {
237
231
  currentDate.value = date;
@@ -427,4 +421,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
427
421
  };
428
422
  }
429
423
  });
430
- module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  default: () => stdin_default
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_vue = require("vue");
28
24
  var import_vue2 = require("vue");
29
25
  var import_utils = require("../utils");
@@ -44,6 +40,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
44
40
  slots
45
41
  }) {
46
42
  const style = (0, import_vue2.computed)(() => {
43
+ var _a;
47
44
  const {
48
45
  item,
49
46
  index,
@@ -75,6 +72,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
75
72
  break;
76
73
  }
77
74
  }
75
+ if (offset + (((_a = item.date) == null ? void 0 : _a.getDate()) || 1) > 28) {
76
+ style2.marginBottom = 0;
77
+ }
78
78
  return style2;
79
79
  });
80
80
  const onClick = () => {
@@ -146,4 +146,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
146
146
  };
147
147
  }
148
148
  });
149
- module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  default: () => stdin_default
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_vue = require("vue");
28
24
  var import_vue2 = require("vue");
29
25
  var import_utils = require("../utils");
@@ -79,4 +75,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
79
75
  }, [renderTitle(), renderSubtitle(), renderWeekDays()]);
80
76
  }
81
77
  });
82
- module.exports = __toCommonJS(stdin_exports);
@@ -4,31 +4,25 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name2 in all)
10
9
  __defProp(target, name2, { get: all[name2], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  default: () => stdin_default
31
24
  });
25
+ module.exports = __toCommonJS(stdin_exports);
32
26
  var import_vue = require("vue");
33
27
  var import_vue2 = require("vue");
34
28
  var import_utils = require("../utils");
@@ -234,4 +228,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
234
228
  }, [renderTitle(), renderDays()]);
235
229
  }
236
230
  });
237
- module.exports = __toCommonJS(stdin_exports);
@@ -1 +1 @@
1
- :root{--van-calendar-background-color: var(--van-background-color-light);--van-calendar-popup-height: 80%;--van-calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, .16);--van-calendar-header-title-height: 44px;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-weekdays-height: 30px;--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: 160px;--van-calendar-day-height: 64px;--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background-color: var(--van-danger-color);--van-calendar-range-middle-color: var(--van-danger-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-selected-day-background-color: var(--van-danger-color);--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-confirm-button-height: 36px;--van-calendar-confirm-button-margin: 7px 0}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background-color)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-box-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{height:var(--van-calendar-header-title-height);font-weight:var(--van-font-weight-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background-color)}.van-calendar__day--start{border-radius:var(--van-border-radius-md) 0 0 var(--van-border-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-border-radius-md) var(--van-border-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-border-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width: 350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background-color);border-radius:var(--van-border-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
1
+ :root{--van-calendar-background-color: var(--van-background-color-light);--van-calendar-popup-height: 80%;--van-calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, .16);--van-calendar-header-title-height: 44px;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-weekdays-height: 30px;--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: 160px;--van-calendar-day-height: 64px;--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: 4px;--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background-color: var(--van-danger-color);--van-calendar-range-middle-color: var(--van-danger-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 54px;--van-calendar-selected-day-color: var(--van-white);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-selected-day-background-color: var(--van-danger-color);--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-confirm-button-height: 36px;--van-calendar-confirm-button-margin: 7px 0}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background-color)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-box-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{height:var(--van-calendar-header-title-height);font-weight:var(--van-font-weight-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background-color)}.van-calendar__day--start{border-radius:var(--van-border-radius-md) 0 0 var(--van-border-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-border-radius-md) var(--van-border-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-border-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width: 350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background-color);border-radius:var(--van-border-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  Calendar: () => Calendar,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_Calendar = __toESM(require("./Calendar"));
35
29
  const Calendar = (0, import_utils.withInstall)(import_Calendar.default);
36
30
  var stdin_default = Calendar;
37
- module.exports = __toCommonJS(stdin_exports);
@@ -14,6 +14,7 @@
14
14
  --van-calendar-month-mark-font-size: @calendar-month-mark-font-size;
15
15
  --van-calendar-day-height: @calendar-day-height;
16
16
  --van-calendar-day-font-size: @calendar-day-font-size;
17
+ --van-calendar-day-margin-bottom: @calendar-day-margin-bottom;
17
18
  --van-calendar-range-edge-color: @calendar-range-edge-color;
18
19
  --van-calendar-range-edge-background-color: @calendar-range-edge-background-color;
19
20
  --van-calendar-range-middle-color: @calendar-range-middle-color;
@@ -124,6 +125,7 @@
124
125
  width: 14.285%;
125
126
  height: var(--van-calendar-day-height);
126
127
  font-size: var(--van-calendar-day-font-size);
128
+ margin-bottom: var(--van-calendar-day-margin-bottom);
127
129
  cursor: pointer;
128
130
 
129
131
  &--end,
@@ -1,11 +1,12 @@
1
1
  import type { ComponentPublicInstance, ComputedRef, Ref } from 'vue';
2
+ import type { Numeric } from '../utils';
2
3
  import type { CalendarProps } from './Calendar';
3
4
  import type { CalendarMonthProps } from './CalendarMonth';
4
5
  export declare type CalendarType = 'single' | 'range' | 'multiple';
5
6
  export declare type CalendarDayType = '' | 'start' | 'start-end' | 'middle' | 'end' | 'selected' | 'multiple-middle' | 'multiple-selected' | 'disabled' | 'placeholder';
6
7
  export declare type CalendarDayItem = {
7
8
  date?: Date;
8
- text?: string | number;
9
+ text?: Numeric;
9
10
  type?: CalendarDayType;
10
11
  topInfo?: string;
11
12
  className?: unknown;
@@ -2,19 +2,14 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
- var __reExport = (target, module2, copyDefault, desc) => {
7
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
8
- for (let key of __getOwnPropNames(module2))
9
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
10
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
10
  }
12
- return target;
11
+ return to;
13
12
  };
14
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
15
- return (module2, temp) => {
16
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
17
- };
18
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
14
  var stdin_exports = {};
20
15
  module.exports = __toCommonJS(stdin_exports);
@@ -2,24 +2,19 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  bem: () => bem,
@@ -36,6 +31,7 @@ __export(stdin_exports, {
36
31
  name: () => name,
37
32
  t: () => t
38
33
  });
34
+ module.exports = __toCommonJS(stdin_exports);
39
35
  var import_utils = require("../utils");
40
36
  const [name, bem, t] = (0, import_utils.createNamespace)("calendar");
41
37
  const formatMonthTitle = (date) => t("monthTitle", date.getFullYear(), date.getMonth() + 1);
@@ -77,4 +73,3 @@ function calcDateNum(date) {
77
73
  const day2 = date[1].getTime();
78
74
  return (day2 - day1) / (1e3 * 60 * 60 * 24) + 1;
79
75
  }
80
- module.exports = __toCommonJS(stdin_exports);
@@ -13,6 +13,7 @@
13
13
  @calendar-month-mark-font-size: 160px;
14
14
  @calendar-day-height: 64px;
15
15
  @calendar-day-font-size: var(--van-font-size-lg);
16
+ @calendar-day-margin-bottom: 4px;
16
17
  @calendar-range-edge-color: var(--van-white);
17
18
  @calendar-range-edge-background-color: var(--van-danger-color);
18
19
  @calendar-range-middle-color: var(--van-danger-color);
package/lib/card/Card.js CHANGED
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  default: () => stdin_default
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_vue = require("vue");
28
24
  var import_vue2 = require("vue");
29
25
  var import_utils = require("../utils");
@@ -147,4 +143,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
147
143
  };
148
144
  }
149
145
  });
150
- module.exports = __toCommonJS(stdin_exports);
package/lib/card/index.js CHANGED
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  Card: () => Card,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_Card = __toESM(require("./Card"));
35
29
  const Card = (0, import_utils.withInstall)(import_Card.default);
36
30
  var stdin_default = Card;
37
- module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  default: () => stdin_default
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_vue = require("vue");
28
24
  var import_vue2 = require("vue");
29
25
  var import_utils = require("../utils");
@@ -248,4 +244,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
248
244
  }, [renderHeader(), renderTabs()]);
249
245
  }
250
246
  });
251
- module.exports = __toCommonJS(stdin_exports);
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  Cascader: () => Cascader,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_Cascader = __toESM(require("./Cascader"));
35
29
  const Cascader = (0, import_utils.withInstall)(import_Cascader.default);
36
30
  var stdin_default = Cascader;
37
- module.exports = __toCommonJS(stdin_exports);
@@ -1,6 +1,7 @@
1
+ import type { Numeric } from '../utils';
1
2
  export declare type CascaderOption = {
2
3
  text?: string;
3
- value?: string | number;
4
+ value?: Numeric;
4
5
  color?: string;
5
6
  disabled?: boolean;
6
7
  children?: CascaderOption[];
@@ -2,19 +2,14 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
- var __reExport = (target, module2, copyDefault, desc) => {
7
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
8
- for (let key of __getOwnPropNames(module2))
9
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
10
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
10
  }
12
- return target;
11
+ return to;
13
12
  };
14
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
15
- return (module2, temp) => {
16
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
17
- };
18
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
14
  var stdin_exports = {};
20
15
  module.exports = __toCommonJS(stdin_exports);