vant 4.0.0-alpha.1 → 4.0.0-alpha.2

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 (531) hide show
  1. package/README.md +141 -0
  2. package/changelog.generated.md +39 -42
  3. package/es/address-edit/AddressEdit.d.ts +0 -17
  4. package/es/address-edit/AddressEdit.js +3 -24
  5. package/es/address-edit/index.d.ts +0 -12
  6. package/es/address-edit/types.d.ts +0 -1
  7. package/es/address-list/AddressListItem.d.ts +3 -2
  8. package/es/address-list/AddressListItem.js +1 -1
  9. package/es/badge/Badge.d.ts +4 -3
  10. package/es/badge/index.d.ts +2 -2
  11. package/es/calendar/Calendar.js +1 -1
  12. package/es/calendar/CalendarDay.js +4 -0
  13. package/es/calendar/index.css +1 -1
  14. package/es/calendar/index.less +2 -0
  15. package/es/calendar/types.d.ts +2 -1
  16. package/es/cascader/types.d.ts +2 -1
  17. package/es/checkbox/Checker.d.ts +2 -1
  18. package/es/collapse/Collapse.d.ts +7 -6
  19. package/es/collapse/index.d.ts +3 -3
  20. package/es/composables/use-touch.js +1 -1
  21. package/es/config-provider/ConfigProvider.d.ts +4 -3
  22. package/es/config-provider/index.d.ts +2 -2
  23. package/es/contact-list/ContactList.d.ts +3 -2
  24. package/es/coupon/Coupon.d.ts +2 -1
  25. package/es/coupon-list/CouponList.d.ts +3 -13
  26. package/es/coupon-list/CouponList.js +9 -7
  27. package/es/coupon-list/index.css +1 -1
  28. package/es/coupon-list/index.d.ts +2 -9
  29. package/es/coupon-list/index.less +4 -16
  30. package/es/coupon-list/style/index.js +1 -0
  31. package/es/coupon-list/style/less.js +1 -0
  32. package/es/dialog/index.css +1 -1
  33. package/es/dialog/types.d.ts +2 -2
  34. package/es/dropdown-item/types.d.ts +2 -1
  35. package/es/empty/Empty.d.ts +8 -7
  36. package/es/empty/Empty.js +2 -2
  37. package/es/empty/index.d.ts +2 -2
  38. package/es/field/Field.d.ts +4 -0
  39. package/es/field/Field.js +2 -0
  40. package/es/field/index.d.ts +2 -0
  41. package/es/form/Form.js +1 -0
  42. package/es/form/types.d.ts +1 -0
  43. package/es/icon/index.css +1 -1
  44. package/es/index-bar/IndexBar.d.ts +5 -4
  45. package/es/index-bar/index.d.ts +3 -3
  46. package/es/index-bar/types.d.ts +2 -1
  47. package/es/index.d.ts +1 -1
  48. package/es/index.js +1 -1
  49. package/es/locale/lang/bn-BD.d.ts +0 -2
  50. package/es/locale/lang/bn-BD.js +0 -2
  51. package/es/locale/lang/da-DK.d.ts +64 -0
  52. package/es/locale/lang/da-DK.js +66 -0
  53. package/es/locale/lang/de-DE-formal.d.ts +0 -2
  54. package/es/locale/lang/de-DE-formal.js +0 -2
  55. package/es/locale/lang/de-DE.d.ts +0 -2
  56. package/es/locale/lang/de-DE.js +0 -2
  57. package/es/locale/lang/en-US.d.ts +0 -2
  58. package/es/locale/lang/en-US.js +0 -2
  59. package/es/locale/lang/es-ES.d.ts +0 -2
  60. package/es/locale/lang/es-ES.js +0 -2
  61. package/es/locale/lang/fr-FR.d.ts +0 -2
  62. package/es/locale/lang/fr-FR.js +0 -2
  63. package/es/locale/lang/hi-IN.d.ts +0 -2
  64. package/es/locale/lang/hi-IN.js +0 -2
  65. package/es/locale/lang/id-ID.d.ts +0 -2
  66. package/es/locale/lang/id-ID.js +0 -2
  67. package/es/locale/lang/is-IS.d.ts +62 -0
  68. package/es/locale/lang/is-IS.js +72 -0
  69. package/es/locale/lang/it-IT.d.ts +0 -2
  70. package/es/locale/lang/it-IT.js +0 -2
  71. package/es/locale/lang/ja-JP.d.ts +0 -2
  72. package/es/locale/lang/ja-JP.js +0 -2
  73. package/es/locale/lang/ko-KR.d.ts +0 -2
  74. package/es/locale/lang/ko-KR.js +0 -2
  75. package/es/locale/lang/la-LA.d.ts +0 -2
  76. package/es/locale/lang/la-LA.js +0 -2
  77. package/es/locale/lang/nb-NO.d.ts +0 -2
  78. package/es/locale/lang/nb-NO.js +0 -2
  79. package/es/locale/lang/pt-BR.d.ts +0 -2
  80. package/es/locale/lang/pt-BR.js +0 -2
  81. package/es/locale/lang/ro-RO.d.ts +0 -2
  82. package/es/locale/lang/ro-RO.js +0 -2
  83. package/es/locale/lang/ru-RU.d.ts +0 -2
  84. package/es/locale/lang/ru-RU.js +0 -2
  85. package/es/locale/lang/sv-SE.d.ts +62 -0
  86. package/es/locale/lang/sv-SE.js +64 -0
  87. package/es/locale/lang/th-TH.d.ts +0 -2
  88. package/es/locale/lang/th-TH.js +0 -2
  89. package/es/locale/lang/tr-TR.d.ts +0 -2
  90. package/es/locale/lang/tr-TR.js +0 -2
  91. package/es/locale/lang/uk-UA.d.ts +0 -2
  92. package/es/locale/lang/uk-UA.js +0 -2
  93. package/es/locale/lang/vi-VN.d.ts +0 -2
  94. package/es/locale/lang/vi-VN.js +0 -2
  95. package/es/locale/lang/zh-CN.d.ts +0 -2
  96. package/es/locale/lang/zh-CN.js +0 -2
  97. package/es/locale/lang/zh-HK.d.ts +0 -2
  98. package/es/locale/lang/zh-HK.js +0 -2
  99. package/es/locale/lang/zh-TW.d.ts +0 -2
  100. package/es/locale/lang/zh-TW.js +0 -2
  101. package/es/notify/types.d.ts +2 -1
  102. package/es/number-keyboard/NumberKeyboard.js +10 -1
  103. package/es/picker/Picker.d.ts +5 -4
  104. package/es/picker/index.d.ts +3 -3
  105. package/es/picker/types.d.ts +4 -3
  106. package/es/picker/utils.d.ts +4 -3
  107. package/es/popup/index.css +1 -1
  108. package/es/progress/Progress.d.ts +4 -3
  109. package/es/progress/index.d.ts +2 -2
  110. package/es/rate/Rate.js +32 -10
  111. package/es/search/Search.d.ts +3 -0
  112. package/es/search/index.d.ts +2 -0
  113. package/es/share-sheet/ShareSheet.js +25 -11
  114. package/es/share-sheet/index.css +1 -1
  115. package/es/share-sheet/index.less +45 -1
  116. package/es/skeleton/Skeleton.d.ts +5 -4
  117. package/es/skeleton/index.d.ts +3 -3
  118. package/es/slider/index.css +1 -1
  119. package/es/style/animation.css +1 -1
  120. package/es/style/base.css +1 -1
  121. package/es/swipe-cell/index.css +1 -1
  122. package/es/tabbar/Tabbar.d.ts +2 -2
  123. package/es/tabs/Tabs.d.ts +1 -1
  124. package/es/tabs/Tabs.js +1 -0
  125. package/es/tabs/types.d.ts +5 -4
  126. package/es/toast/types.d.ts +3 -2
  127. package/es/tree-select/TreeSelect.d.ts +7 -6
  128. package/es/tree-select/index.d.ts +3 -3
  129. package/es/uploader/Uploader.d.ts +4 -4
  130. package/es/uploader/Uploader.js +2 -2
  131. package/es/uploader/UploaderPreviewItem.d.ts +3 -3
  132. package/es/uploader/UploaderPreviewItem.js +9 -6
  133. package/es/uploader/index.d.ts +2 -2
  134. package/es/uploader/types.d.ts +5 -5
  135. package/es/utils/basic.d.ts +1 -0
  136. package/es/utils/format.d.ts +7 -6
  137. package/es/utils/format.js +6 -0
  138. package/es/utils/validate.d.ts +2 -1
  139. package/lib/action-bar/ActionBar.js +8 -13
  140. package/lib/action-bar/index.js +9 -16
  141. package/lib/action-bar-button/ActionBarButton.js +8 -13
  142. package/lib/action-bar-button/index.js +9 -16
  143. package/lib/action-bar-icon/ActionBarIcon.js +8 -13
  144. package/lib/action-bar-icon/index.js +9 -16
  145. package/lib/action-sheet/ActionSheet.js +8 -13
  146. package/lib/action-sheet/index.js +9 -16
  147. package/lib/address-edit/AddressEdit.d.ts +0 -17
  148. package/lib/address-edit/AddressEdit.js +12 -40
  149. package/lib/address-edit/AddressEditDetail.js +8 -13
  150. package/lib/address-edit/index.d.ts +0 -12
  151. package/lib/address-edit/index.js +9 -16
  152. package/lib/address-edit/types.d.ts +0 -1
  153. package/lib/address-edit/types.js +7 -12
  154. package/lib/address-list/AddressList.js +9 -16
  155. package/lib/address-list/AddressListItem.d.ts +3 -2
  156. package/lib/address-list/AddressListItem.js +8 -13
  157. package/lib/address-list/index.js +9 -16
  158. package/lib/area/Area.js +8 -13
  159. package/lib/area/index.js +9 -16
  160. package/lib/area/types.js +7 -12
  161. package/lib/area/utils.js +8 -13
  162. package/lib/badge/Badge.d.ts +4 -3
  163. package/lib/badge/Badge.js +8 -13
  164. package/lib/badge/index.d.ts +2 -2
  165. package/lib/badge/index.js +9 -16
  166. package/lib/button/Button.js +8 -13
  167. package/lib/button/index.js +9 -16
  168. package/lib/button/types.js +7 -12
  169. package/lib/calendar/Calendar.js +10 -17
  170. package/lib/calendar/CalendarDay.js +12 -13
  171. package/lib/calendar/CalendarHeader.js +8 -13
  172. package/lib/calendar/CalendarMonth.js +9 -16
  173. package/lib/calendar/index.css +1 -1
  174. package/lib/calendar/index.js +9 -16
  175. package/lib/calendar/index.less +2 -0
  176. package/lib/calendar/types.d.ts +2 -1
  177. package/lib/calendar/types.js +7 -12
  178. package/lib/calendar/utils.js +8 -13
  179. package/lib/card/Card.js +8 -13
  180. package/lib/card/index.js +9 -16
  181. package/lib/cascader/Cascader.js +8 -13
  182. package/lib/cascader/index.js +9 -16
  183. package/lib/cascader/types.d.ts +2 -1
  184. package/lib/cascader/types.js +7 -12
  185. package/lib/cell/Cell.js +8 -13
  186. package/lib/cell/index.js +9 -16
  187. package/lib/cell-group/CellGroup.js +8 -13
  188. package/lib/cell-group/index.js +9 -16
  189. package/lib/checkbox/Checkbox.js +9 -16
  190. package/lib/checkbox/Checker.d.ts +2 -1
  191. package/lib/checkbox/Checker.js +8 -13
  192. package/lib/checkbox/index.js +9 -16
  193. package/lib/checkbox/types.js +7 -12
  194. package/lib/checkbox-group/CheckboxGroup.js +8 -13
  195. package/lib/checkbox-group/index.js +9 -16
  196. package/lib/checkbox-group/types.js +7 -12
  197. package/lib/circle/Circle.js +8 -13
  198. package/lib/circle/index.js +9 -16
  199. package/lib/col/Col.js +8 -13
  200. package/lib/col/index.js +9 -16
  201. package/lib/collapse/Collapse.d.ts +7 -6
  202. package/lib/collapse/Collapse.js +8 -13
  203. package/lib/collapse/index.d.ts +3 -3
  204. package/lib/collapse/index.js +9 -16
  205. package/lib/collapse-item/CollapseItem.js +8 -13
  206. package/lib/collapse-item/index.js +9 -16
  207. package/lib/collapse-item/types.js +7 -12
  208. package/lib/composables/on-popup-reopen.js +8 -13
  209. package/lib/composables/use-expose.js +8 -13
  210. package/lib/composables/use-height.js +8 -13
  211. package/lib/composables/use-id.js +8 -13
  212. package/lib/composables/use-lazy-render.js +8 -13
  213. package/lib/composables/use-lock-scroll.js +8 -13
  214. package/lib/composables/use-placeholder.js +8 -13
  215. package/lib/composables/use-refs.js +8 -13
  216. package/lib/composables/use-route.js +8 -13
  217. package/lib/composables/use-tab-status.js +8 -13
  218. package/lib/composables/use-touch.js +9 -14
  219. package/lib/composables/use-visibility-change.js +8 -13
  220. package/lib/config-provider/ConfigProvider.d.ts +4 -3
  221. package/lib/config-provider/ConfigProvider.js +8 -13
  222. package/lib/config-provider/index.d.ts +2 -2
  223. package/lib/config-provider/index.js +9 -16
  224. package/lib/contact-card/ContactCard.js +8 -13
  225. package/lib/contact-card/index.js +9 -16
  226. package/lib/contact-edit/ContactEdit.js +8 -13
  227. package/lib/contact-edit/index.js +9 -16
  228. package/lib/contact-list/ContactList.d.ts +3 -2
  229. package/lib/contact-list/ContactList.js +8 -13
  230. package/lib/contact-list/index.js +9 -16
  231. package/lib/count-down/CountDown.js +8 -13
  232. package/lib/count-down/index.js +9 -16
  233. package/lib/count-down/types.js +7 -12
  234. package/lib/count-down/utils.js +8 -13
  235. package/lib/coupon/Coupon.d.ts +2 -1
  236. package/lib/coupon/Coupon.js +8 -13
  237. package/lib/coupon/index.js +9 -16
  238. package/lib/coupon/utils.js +8 -13
  239. package/lib/coupon-cell/CouponCell.js +8 -13
  240. package/lib/coupon-cell/index.js +9 -16
  241. package/lib/coupon-list/CouponList.d.ts +3 -13
  242. package/lib/coupon-list/CouponList.js +17 -20
  243. package/lib/coupon-list/index.css +1 -1
  244. package/lib/coupon-list/index.d.ts +2 -9
  245. package/lib/coupon-list/index.js +9 -16
  246. package/lib/coupon-list/index.less +4 -16
  247. package/lib/coupon-list/style/index.js +1 -0
  248. package/lib/coupon-list/style/less.js +1 -0
  249. package/lib/date-picker/DatePicker.js +8 -13
  250. package/lib/date-picker/index.js +9 -16
  251. package/lib/date-picker/utils.js +8 -13
  252. package/lib/dialog/Dialog.js +8 -13
  253. package/lib/dialog/function-call.js +9 -16
  254. package/lib/dialog/index.css +1 -1
  255. package/lib/dialog/index.js +8 -13
  256. package/lib/dialog/types.d.ts +2 -2
  257. package/lib/dialog/types.js +7 -12
  258. package/lib/divider/Divider.js +8 -13
  259. package/lib/divider/index.js +9 -16
  260. package/lib/dropdown-item/DropdownItem.js +8 -13
  261. package/lib/dropdown-item/index.js +9 -16
  262. package/lib/dropdown-item/types.d.ts +2 -1
  263. package/lib/dropdown-item/types.js +7 -12
  264. package/lib/dropdown-menu/DropdownMenu.js +8 -13
  265. package/lib/dropdown-menu/index.js +9 -16
  266. package/lib/dropdown-menu/types.js +7 -12
  267. package/lib/empty/Empty.d.ts +8 -7
  268. package/lib/empty/Empty.js +9 -14
  269. package/lib/empty/Network.js +8 -13
  270. package/lib/empty/index.d.ts +2 -2
  271. package/lib/empty/index.js +9 -16
  272. package/lib/field/Field.d.ts +4 -0
  273. package/lib/field/Field.js +10 -13
  274. package/lib/field/index.d.ts +2 -0
  275. package/lib/field/index.js +9 -16
  276. package/lib/field/types.js +7 -12
  277. package/lib/field/utils.js +8 -13
  278. package/lib/form/Form.js +9 -13
  279. package/lib/form/index.js +9 -16
  280. package/lib/form/types.d.ts +1 -0
  281. package/lib/form/types.js +7 -12
  282. package/lib/grid/Grid.js +8 -13
  283. package/lib/grid/index.js +9 -16
  284. package/lib/grid-item/GridItem.js +8 -13
  285. package/lib/grid-item/index.js +9 -16
  286. package/lib/icon/Icon.js +8 -13
  287. package/lib/icon/index.css +1 -1
  288. package/lib/icon/index.js +9 -16
  289. package/lib/image/Image.js +8 -13
  290. package/lib/image/index.js +9 -16
  291. package/lib/image-preview/ImagePreview.js +9 -16
  292. package/lib/image-preview/ImagePreviewItem.js +8 -13
  293. package/lib/image-preview/function-call.js +9 -16
  294. package/lib/image-preview/index.js +8 -13
  295. package/lib/image-preview/types.js +7 -12
  296. package/lib/index-anchor/IndexAnchor.js +8 -13
  297. package/lib/index-anchor/index.js +9 -16
  298. package/lib/index-bar/IndexBar.d.ts +5 -4
  299. package/lib/index-bar/IndexBar.js +8 -13
  300. package/lib/index-bar/index.d.ts +3 -3
  301. package/lib/index-bar/index.js +9 -16
  302. package/lib/index-bar/types.d.ts +2 -1
  303. package/lib/index-bar/types.js +7 -12
  304. package/lib/index.css +1 -1
  305. package/lib/index.d.ts +1 -1
  306. package/lib/index.js +97 -101
  307. package/lib/index.less +2 -2
  308. package/lib/lazyload/index.js +8 -13
  309. package/lib/lazyload/vue-lazyload/index.js +9 -16
  310. package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
  311. package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
  312. package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
  313. package/lib/lazyload/vue-lazyload/lazy.js +9 -16
  314. package/lib/lazyload/vue-lazyload/listener.js +8 -13
  315. package/lib/lazyload/vue-lazyload/util.js +8 -13
  316. package/lib/list/List.js +8 -13
  317. package/lib/list/index.js +9 -16
  318. package/lib/list/types.js +7 -12
  319. package/lib/loading/Loading.js +8 -13
  320. package/lib/loading/index.js +9 -16
  321. package/lib/locale/index.js +9 -16
  322. package/lib/locale/lang/bn-BD.d.ts +0 -2
  323. package/lib/locale/lang/bn-BD.js +8 -15
  324. package/lib/locale/lang/da-DK.d.ts +64 -0
  325. package/lib/locale/lang/da-DK.js +85 -0
  326. package/lib/locale/lang/de-DE-formal.d.ts +0 -2
  327. package/lib/locale/lang/de-DE-formal.js +8 -15
  328. package/lib/locale/lang/de-DE.d.ts +0 -2
  329. package/lib/locale/lang/de-DE.js +8 -15
  330. package/lib/locale/lang/en-US.d.ts +0 -2
  331. package/lib/locale/lang/en-US.js +8 -15
  332. package/lib/locale/lang/es-ES.d.ts +0 -2
  333. package/lib/locale/lang/es-ES.js +8 -15
  334. package/lib/locale/lang/fr-FR.d.ts +0 -2
  335. package/lib/locale/lang/fr-FR.js +8 -15
  336. package/lib/locale/lang/hi-IN.d.ts +0 -2
  337. package/lib/locale/lang/hi-IN.js +8 -15
  338. package/lib/locale/lang/id-ID.d.ts +0 -2
  339. package/lib/locale/lang/id-ID.js +8 -15
  340. package/lib/locale/lang/is-IS.d.ts +62 -0
  341. package/lib/locale/lang/is-IS.js +91 -0
  342. package/lib/locale/lang/it-IT.d.ts +0 -2
  343. package/lib/locale/lang/it-IT.js +8 -15
  344. package/lib/locale/lang/ja-JP.d.ts +0 -2
  345. package/lib/locale/lang/ja-JP.js +8 -15
  346. package/lib/locale/lang/ko-KR.d.ts +0 -2
  347. package/lib/locale/lang/ko-KR.js +8 -15
  348. package/lib/locale/lang/la-LA.d.ts +0 -2
  349. package/lib/locale/lang/la-LA.js +8 -15
  350. package/lib/locale/lang/nb-NO.d.ts +0 -2
  351. package/lib/locale/lang/nb-NO.js +8 -15
  352. package/lib/locale/lang/pt-BR.d.ts +0 -2
  353. package/lib/locale/lang/pt-BR.js +8 -15
  354. package/lib/locale/lang/ro-RO.d.ts +0 -2
  355. package/lib/locale/lang/ro-RO.js +8 -15
  356. package/lib/locale/lang/ru-RU.d.ts +0 -2
  357. package/lib/locale/lang/ru-RU.js +8 -15
  358. package/lib/locale/lang/sv-SE.d.ts +62 -0
  359. package/lib/locale/lang/sv-SE.js +83 -0
  360. package/lib/locale/lang/th-TH.d.ts +0 -2
  361. package/lib/locale/lang/th-TH.js +8 -15
  362. package/lib/locale/lang/tr-TR.d.ts +0 -2
  363. package/lib/locale/lang/tr-TR.js +8 -15
  364. package/lib/locale/lang/uk-UA.d.ts +0 -2
  365. package/lib/locale/lang/uk-UA.js +8 -15
  366. package/lib/locale/lang/vi-VN.d.ts +0 -2
  367. package/lib/locale/lang/vi-VN.js +8 -15
  368. package/lib/locale/lang/zh-CN.d.ts +0 -2
  369. package/lib/locale/lang/zh-CN.js +8 -15
  370. package/lib/locale/lang/zh-HK.d.ts +0 -2
  371. package/lib/locale/lang/zh-HK.js +8 -15
  372. package/lib/locale/lang/zh-TW.d.ts +0 -2
  373. package/lib/locale/lang/zh-TW.js +8 -15
  374. package/lib/nav-bar/NavBar.js +8 -13
  375. package/lib/nav-bar/index.js +9 -16
  376. package/lib/notice-bar/NoticeBar.js +8 -13
  377. package/lib/notice-bar/index.js +9 -16
  378. package/lib/notice-bar/types.js +7 -12
  379. package/lib/notify/Notify.js +8 -13
  380. package/lib/notify/function-call.js +9 -16
  381. package/lib/notify/index.js +8 -13
  382. package/lib/notify/types.d.ts +2 -1
  383. package/lib/notify/types.js +7 -12
  384. package/lib/number-keyboard/NumberKeyboard.js +19 -17
  385. package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
  386. package/lib/number-keyboard/index.js +9 -16
  387. package/lib/overlay/Overlay.js +8 -13
  388. package/lib/overlay/index.js +9 -16
  389. package/lib/pagination/Pagination.js +8 -13
  390. package/lib/pagination/index.js +9 -16
  391. package/lib/password-input/PasswordInput.js +8 -13
  392. package/lib/password-input/index.js +9 -16
  393. package/lib/picker/Picker.d.ts +5 -4
  394. package/lib/picker/Picker.js +9 -16
  395. package/lib/picker/PickerColumn.js +8 -13
  396. package/lib/picker/index.d.ts +3 -3
  397. package/lib/picker/index.js +9 -16
  398. package/lib/picker/types.d.ts +4 -3
  399. package/lib/picker/types.js +7 -12
  400. package/lib/picker/utils.d.ts +4 -3
  401. package/lib/picker/utils.js +8 -13
  402. package/lib/popover/Popover.js +8 -13
  403. package/lib/popover/index.js +9 -16
  404. package/lib/popover/types.js +7 -12
  405. package/lib/popup/Popup.js +8 -13
  406. package/lib/popup/index.css +1 -1
  407. package/lib/popup/index.js +9 -16
  408. package/lib/popup/shared.js +8 -13
  409. package/lib/popup/types.js +7 -12
  410. package/lib/progress/Progress.d.ts +4 -3
  411. package/lib/progress/Progress.js +8 -13
  412. package/lib/progress/index.d.ts +2 -2
  413. package/lib/progress/index.js +9 -16
  414. package/lib/progress/types.js +7 -12
  415. package/lib/pull-refresh/PullRefresh.js +8 -13
  416. package/lib/pull-refresh/index.js +9 -16
  417. package/lib/radio/Radio.js +9 -16
  418. package/lib/radio/index.js +9 -16
  419. package/lib/radio-group/RadioGroup.js +8 -13
  420. package/lib/radio-group/index.js +9 -16
  421. package/lib/rate/Rate.js +39 -22
  422. package/lib/rate/index.js +9 -16
  423. package/lib/row/Row.js +8 -13
  424. package/lib/row/index.js +9 -16
  425. package/lib/search/Search.d.ts +3 -0
  426. package/lib/search/Search.js +8 -13
  427. package/lib/search/index.d.ts +2 -0
  428. package/lib/search/index.js +9 -16
  429. package/lib/search/types.js +7 -12
  430. package/lib/share-sheet/ShareSheet.js +33 -24
  431. package/lib/share-sheet/index.css +1 -1
  432. package/lib/share-sheet/index.js +9 -16
  433. package/lib/share-sheet/index.less +45 -1
  434. package/lib/sidebar/Sidebar.js +8 -13
  435. package/lib/sidebar/index.js +9 -16
  436. package/lib/sidebar-item/SidebarItem.js +8 -13
  437. package/lib/sidebar-item/index.js +9 -16
  438. package/lib/skeleton/Skeleton.d.ts +5 -4
  439. package/lib/skeleton/Skeleton.js +8 -13
  440. package/lib/skeleton/index.d.ts +3 -3
  441. package/lib/skeleton/index.js +9 -16
  442. package/lib/slider/Slider.js +8 -13
  443. package/lib/slider/index.css +1 -1
  444. package/lib/slider/index.js +9 -16
  445. package/lib/step/Step.js +8 -13
  446. package/lib/step/index.js +9 -16
  447. package/lib/stepper/Stepper.js +8 -13
  448. package/lib/stepper/index.js +9 -16
  449. package/lib/steps/Steps.js +8 -13
  450. package/lib/steps/index.js +9 -16
  451. package/lib/sticky/Sticky.js +8 -13
  452. package/lib/sticky/index.js +9 -16
  453. package/lib/style/animation.css +1 -1
  454. package/lib/style/base.css +1 -1
  455. package/lib/submit-bar/SubmitBar.js +8 -13
  456. package/lib/submit-bar/index.js +9 -16
  457. package/lib/swipe/Swipe.js +8 -13
  458. package/lib/swipe/index.js +9 -16
  459. package/lib/swipe/types.js +7 -12
  460. package/lib/swipe-cell/SwipeCell.js +8 -13
  461. package/lib/swipe-cell/index.css +1 -1
  462. package/lib/swipe-cell/index.js +9 -16
  463. package/lib/swipe-cell/types.js +7 -12
  464. package/lib/swipe-item/SwipeItem.js +8 -13
  465. package/lib/swipe-item/index.js +9 -16
  466. package/lib/switch/Switch.js +8 -13
  467. package/lib/switch/index.js +9 -16
  468. package/lib/tab/Tab.js +8 -13
  469. package/lib/tab/index.js +9 -16
  470. package/lib/tabbar/Tabbar.d.ts +2 -2
  471. package/lib/tabbar/Tabbar.js +8 -13
  472. package/lib/tabbar/index.js +9 -16
  473. package/lib/tabbar-item/TabbarItem.js +8 -13
  474. package/lib/tabbar-item/index.js +9 -16
  475. package/lib/tabs/Tabs.d.ts +1 -1
  476. package/lib/tabs/Tabs.js +10 -16
  477. package/lib/tabs/TabsContent.js +8 -13
  478. package/lib/tabs/TabsTitle.js +8 -13
  479. package/lib/tabs/index.js +9 -16
  480. package/lib/tabs/types.d.ts +5 -4
  481. package/lib/tabs/types.js +7 -12
  482. package/lib/tabs/utils.js +8 -13
  483. package/lib/tag/Tag.js +8 -13
  484. package/lib/tag/index.js +9 -16
  485. package/lib/time-picker/TimePicker.js +8 -13
  486. package/lib/time-picker/index.js +9 -16
  487. package/lib/toast/Toast.js +8 -13
  488. package/lib/toast/function-call.js +9 -16
  489. package/lib/toast/index.js +8 -13
  490. package/lib/toast/lock-click.js +8 -13
  491. package/lib/toast/types.d.ts +3 -2
  492. package/lib/toast/types.js +7 -12
  493. package/lib/tree-select/TreeSelect.d.ts +7 -6
  494. package/lib/tree-select/TreeSelect.js +8 -13
  495. package/lib/tree-select/index.d.ts +3 -3
  496. package/lib/tree-select/index.js +9 -16
  497. package/lib/uploader/Uploader.d.ts +4 -4
  498. package/lib/uploader/Uploader.js +10 -17
  499. package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
  500. package/lib/uploader/UploaderPreviewItem.js +17 -19
  501. package/lib/uploader/index.d.ts +2 -2
  502. package/lib/uploader/index.js +9 -16
  503. package/lib/uploader/types.d.ts +5 -5
  504. package/lib/uploader/types.js +7 -12
  505. package/lib/uploader/utils.js +8 -13
  506. package/lib/utils/basic.d.ts +1 -0
  507. package/lib/utils/basic.js +8 -13
  508. package/lib/utils/constant.js +8 -13
  509. package/lib/utils/create.js +9 -16
  510. package/lib/utils/deep-assign.js +8 -13
  511. package/lib/utils/deep-clone.js +8 -13
  512. package/lib/utils/dom.js +8 -13
  513. package/lib/utils/format.d.ts +7 -6
  514. package/lib/utils/format.js +14 -13
  515. package/lib/utils/index.js +17 -21
  516. package/lib/utils/interceptor.js +8 -13
  517. package/lib/utils/mount-component.js +8 -13
  518. package/lib/utils/props.js +8 -13
  519. package/lib/utils/validate.d.ts +2 -1
  520. package/lib/utils/validate.js +8 -13
  521. package/lib/utils/with-install.js +8 -13
  522. package/lib/vant.cjs.js +297 -258
  523. package/lib/vant.cjs.min.js +1 -1
  524. package/lib/vant.es.js +297 -258
  525. package/lib/vant.es.min.js +297 -258
  526. package/lib/vant.js +297 -258
  527. package/lib/vant.min.js +1 -1
  528. package/package.json +3 -3
  529. package/vetur/attributes.json +564 -636
  530. package/vetur/tags.json +178 -178
  531. package/vetur/web-types.json +2595 -1760
package/README.md ADDED
@@ -0,0 +1,141 @@
1
+ <p align="center">
2
+ <img alt="logo" src="https://cdn.jsdelivr.net/npm/@vant/assets/logo.png" width="120" height="120" style="margin-bottom: 10px;">
3
+ </p>
4
+
5
+ <h1 align="center">Vant</h1>
6
+
7
+ <p align="center">Mobile UI Components built on Vue</p>
8
+
9
+ <p align="center">
10
+ <img src="https://img.shields.io/npm/v/vant?style=flat-square" alt="npm version" />
11
+ <img src="https://img.shields.io/github/workflow/status/youzan/vant/CI/dev?style=flat-square" alt="CI Status" />
12
+ <img src="https://img.shields.io/codecov/c/github/youzan/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
13
+ <img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
14
+ <img src="https://img.shields.io/jsdelivr/npm/hm/vant?style=flat-square" alt="Jsdelivr Hits">
15
+ <img src="https://img.badgesize.io/https://unpkg.com/vant@3/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
16
+ </p>
17
+
18
+ <p align="center">
19
+ 🔥 <a href="https://vant-contrib.gitee.io/vant">文档网站(国内)</a>
20
+ &nbsp;
21
+ 🌈 <a href="https://youzan.github.io/vant">文档网站(GitHub)</a>
22
+ &nbsp;
23
+ 🇨🇳 <a href="./README.zh-CN.md">中文版介绍</a>
24
+ </p>
25
+
26
+ ---
27
+
28
+ ## Features
29
+
30
+ - 🚀 1KB Component average size (min+gzip)
31
+ - 🚀 70+ High quality components
32
+ - 💪 90%+ Unit test coverage
33
+ - 💪 Written in TypeScript
34
+ - 📖 Extensive documentation and demos
35
+ - 📖 Provide Sketch and Axure design resources
36
+ - 🍭 Support Vue 2 & Vue 3
37
+ - 🍭 Support Tree Shaking
38
+ - 🍭 Support Custom Theme
39
+ - 🍭 Support Accessibility (still improving)
40
+ - 🍭 Support Dark Mode (Requires upgrade to [Vant 4](https://vant-contrib.gitee.io/vant/v4/#/en-US/config-provider))
41
+ - 🍭 Support SSR
42
+ - 🌍 Support i18n, built-in 20+ languages
43
+
44
+ ## Install
45
+
46
+ Using `npm` to install:
47
+
48
+ ```bash
49
+ # install latest Vant for Vue 3 project
50
+ npm i vant
51
+
52
+ # install Vant 2 for Vue 2 project
53
+ npm i vant@latest-v2
54
+ ```
55
+
56
+ Using `yarn` or `pnpm`:
57
+
58
+ ```bash
59
+ # with yarn
60
+ yarn add vant
61
+
62
+ # with pnpm
63
+ pnpm add vant
64
+ ```
65
+
66
+ ## Quickstart
67
+
68
+ ```js
69
+ import { createApp } from 'vue';
70
+ import { Button } from 'vant';
71
+ import 'vant/lib/index.css';
72
+
73
+ const app = createApp();
74
+ app.use(Button);
75
+ ```
76
+
77
+ See more in [Quickstart](https://youzan.github.io/vant#/en-US/quickstart).
78
+
79
+ ## Browser Support
80
+
81
+ Vant 2 supports modern browsers and Android >= 4.0、iOS >= 8.0.
82
+
83
+ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3).
84
+
85
+ ## Official Ecosystem
86
+
87
+ | Project | Description |
88
+ | --- | --- |
89
+ | [vant-weapp](https://github.com/youzan/vant-weapp) | WeChat MiniProgram UI |
90
+ | [vant-demo](https://github.com/youzan/vant-demo) | Collection of Vant demos |
91
+ | [vant-cli](https://github.com/youzan/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
92
+ | [vant-icons](https://github.com/youzan/vant/tree/dev/packages/vant-icons) | Vant icons |
93
+ | [vant-touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
94
+
95
+ ## Community Ecosystem
96
+
97
+ | Project | Description |
98
+ | --- | --- |
99
+ | [3lang3/react-vant](https://github.com/3lang3/react-vant) | React mobile UI Components based on Vant |
100
+ | [rc-ui-lib](https://github.com/rancui/rc-ui-lib) | React mobile UI Components based on Vant |
101
+ | [vant-aliapp](https://github.com/ant-move/Vant-Aliapp) | Alipay MiniProgram UI |
102
+ | [taroify](https://gitee.com/mallfoundry/taroify) | Vant Taro |
103
+ | [vant-theme](https://github.com/Aisen60/vant-theme) | Online theme preview built on Vant UI |
104
+ | [@antmjs/vantui](https://github.com/antmjs/vantui) | Mobile UI Components based on Vant, supporting Taro and React |
105
+ | [sfc-playground-vant](https://github.com/zhixiaoqiang/sfc-playground-vant) | Try Vant in the Playground. Currently only Vant 3+ is supported |
106
+
107
+ ## Links
108
+
109
+ - [Documentation](https://youzan.github.io/vant)
110
+ - [Changelog](https://youzan.github.io/vant#/en-US/changelog)
111
+ - [Gitter](https://gitter.im/vant-contrib/discuss?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
112
+
113
+ ## Preview
114
+
115
+ You can scan the following QR code to access the demo:
116
+
117
+ <img src="https://cdn.jsdelivr.net/npm/@vant/assets/preview-qrcode.png" width="220" height="220" >
118
+
119
+ ## Core Team
120
+
121
+ Core contributors of Vant and Vant Weapp:
122
+
123
+ | [![chenjiahan](https://avatars.githubusercontent.com/u/7237365?s=80&v=4)](https://github.com/chenjiahan/) | [![cookfront](https://avatars.githubusercontent.com/u/4829465?s=80&v=4)](https://github.com/cookfront/) | [![w91](https://avatars.githubusercontent.com/u/2599455?s=80&v=4)](https://github.com/w91/) | [![pangxie1991](https://avatars.githubusercontent.com/u/5961240?s=80&v=4)](https://github.com/pangxie1991/) | [![rex-zsd](https://avatars.githubusercontent.com/u/8767877?s=80&v=4)](https://github.com/rex-zsd/) | [![nemo-shen](https://avatars.githubusercontent.com/u/13480805?s=80&v=4)](https://github.com/nemo-shen/) | [![Lindysen](https://avatars.githubusercontent.com/u/33708359?s=80&v=4)](https://github.com/Lindysen/) | [![nemo-shen](https://avatars.githubusercontent.com/u/16181940?s=80&v=4)](https://github.com/JakeLaoyu/) |
124
+ | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
125
+ | [chenjiahan](https://github.com/chenjiahan/) | [cookfront](https://github.com/cookfront/) | [wangnaiyi](https://github.com/w91/) | [pangxie](https://github.com/pangxie1991/) | [rex-zsd](https://github.com/rex-zsd/) | [nemo-shen](https://github.com/nemo-shen/) | [Lindysen](https://github.com/Lindysen/) | [JakeLaoyu](https://github.com/JakeLaoyu/) |
126
+
127
+ ## All Contributors
128
+
129
+ Thanks to the following friends for their contributions to Vant:
130
+
131
+ <a href="https://github.com/youzan/vant/graphs/contributors">
132
+ <img src="https://opencollective.com/vant/contributors.svg?width=890&button=false" alt="contributors">
133
+ </a>
134
+
135
+ ## Contribution Guide
136
+
137
+ Please make sure to read the [Contributing Guide](./.github/CONTRIBUTING.md) before making a pull request.
138
+
139
+ ## LICENSE
140
+
141
+ [MIT](https://en.wikipedia.org/wiki/MIT_License)
@@ -1,3 +1,13 @@
1
+ ### [v4.0.0-alpha.2](https://github.com/youzan/vant/compare/v3.4.8...v4.0.0-alpha.2)
2
+
3
+ `2022-04-16`
4
+
5
+ **Document**
6
+
7
+ - changelog: 3.4.8 [666089](https://github.com/youzan/vant/commit/666089edbb2b894fec5e8f023c0037ca5c7dbe41)
8
+ - changelog: 4.0.0-alpha.1 [5bff9e](https://github.com/youzan/vant/commit/5bff9e8c5ff4716740c7555ef185163569f7576c)
9
+
10
+ - breaking change(AddressEdit): remove postal [e08e98](https://github.com/youzan/vant/commit/e08e9845a29b8d5587f02eff84368e32157678f4)
1
11
  ### [v4.0.0-alpha.1](https://github.com/youzan/vant/compare/v3.4.6...v4.0.0-alpha.1)
2
12
 
3
13
  `2022-03-19`
@@ -8,7 +18,6 @@
8
18
  - ConfigProvider: dark mode not work as default value [#10413](https://github.com/youzan/vant/issues/10413)
9
19
  - DatePicker: failed to update model value [#10415](https://github.com/youzan/vant/issues/10415)
10
20
  - Dialog: Fix dialog title and message color in dark mode [#10379](https://github.com/youzan/vant/issues/10379)
11
- - IndexBar: allow active bottom anchor [#10404](https://github.com/youzan/vant/issues/10404)
12
21
 
13
22
  **build**
14
23
 
@@ -17,26 +26,15 @@
17
26
 
18
27
  **Document**
19
28
 
20
- - add area data update tips [#10400](https://github.com/youzan/vant/issues/10400)
21
- - add dark mode to features [#10398](https://github.com/youzan/vant/issues/10398)
22
- - add Select component faq [#10397](https://github.com/youzan/vant/issues/10397)
23
- - changelog: 3.4.6 [0dc490](https://github.com/youzan/vant/commit/0dc490c9bca4206b4050824bf707094027ed5872)
24
29
  - DatePicker: fix formatter usage [#10416](https://github.com/youzan/vant/issues/10416)
25
- - DatetimePicker: add select second faq [#10399](https://github.com/youzan/vant/issues/10399)
26
30
  - fix publicPath [db2e6c](https://github.com/youzan/vant/commit/db2e6ca12f75ee0db3b25cd1f9766f9e74e285f6)
27
- - Locale: add Lao to document [#10389](https://github.com/youzan/vant/issues/10389)
28
31
  - Picker: add v-model usage [#10417](https://github.com/youzan/vant/issues/10417)
29
32
  - update [3a1e79](https://github.com/youzan/vant/commit/3a1e792e3151861e0ed780baa67823729db6a8a6)
30
33
  - update 4.0.0-alpha changelog [#10339](https://github.com/youzan/vant/issues/10339)
31
34
 
32
- **Feature**
33
-
34
- - area-data: update counties of NanJing [#10410](https://github.com/youzan/vant/issues/10410)
35
- - Locale: add la-LA.ts [#10388](https://github.com/youzan/vant/issues/10388)
36
-
37
35
  **release**
38
36
 
39
- - @vant/area-data 1.2.3 [029c93](https://github.com/youzan/vant/commit/029c93a4669ff3ee4d88615adb000668535f46d0)
37
+ - 4.0.0-alpha.1 [475d10](https://github.com/youzan/vant/commit/475d108ccb0f09dc09269751bd1bc15d1ea2ed0a)
40
38
  ### [v4.0.0-alpha.0](https://github.com/youzan/vant/compare/v3.4.5...v4.0.0-alpha.0)
41
39
 
42
40
  `2022-02-21`
@@ -153,45 +151,44 @@
153
151
  - Picker: fix columns prop typing [6c64bc](https://github.com/youzan/vant/commit/6c64bc33c1ba537b7951dcbc02d6deec3aaab093)
154
152
  - Picker: fix return type of getSelectedOptions [967cb5](https://github.com/youzan/vant/commit/967cb56c181cc145189a868f49c4666a75f85b00)
155
153
  - TimePicker: export TimePickerColumnType [b608fb](https://github.com/youzan/vant/commit/b608fb23f031cf09a474039cd9cd23f8bc7811d3)
156
- ### [v3.4.6](https://github.com/youzan/vant/compare/v4.0.0-alpha.0...v3.4.6)
154
+ ### [v3.4.8](https://github.com/youzan/vant/compare/v3.4.7...v3.4.8)
157
155
 
158
- `2022-03-13`
156
+ `2022-04-16`
159
157
 
160
158
  **Bug Fixes**
161
159
 
162
- - 🐛 修复官网更新日志的版本链接及 issue 链接异常的问题 [#10329](https://github.com/youzan/vant/issues/10329)
163
- - cli: issue link in generated changelog [#10337](https://github.com/youzan/vant/issues/10337)
164
- - Skeleton: fix non-props attributes warning [#10384](https://github.com/youzan/vant/issues/10384)
165
- - SwipeCell: cell should stopPropagation when lockClick is true [#10319](https://github.com/youzan/vant/issues/10319)
166
- - Toast: failed to render message after changing type [#10311](https://github.com/youzan/vant/issues/10311)
167
- - vant-cli: decamelize ReDoS [#10351](https://github.com/youzan/vant/issues/10351)
160
+ - datetime-picker: modeValue is inconsistent with the selected data. [#10448](https://github.com/youzan/vant/issues/10448)
161
+ - Rate: support precisely selected [#10500](https://github.com/youzan/vant/issues/10500)
168
162
 
169
- **Document**
163
+ **doc**
170
164
 
171
- - @vant/use: changelog 1.3.6 [f95239](https://github.com/youzan/vant/commit/f95239006cf23665593c8316258f4cec4237f29a)
172
- - add mirror repo description [#10382](https://github.com/youzan/vant/issues/10382)
173
- - add Vant 4 link [#10340](https://github.com/youzan/vant/issues/10340)
174
- - Calendar: add formatter async usage [#10385](https://github.com/youzan/vant/issues/10385)
175
- - changelog: fix link mistake [#10328](https://github.com/youzan/vant/issues/10328)
176
- - Field: add v-model type guide [#10383](https://github.com/youzan/vant/issues/10383)
177
- - modify JSX.ELement to JSX.Element [#10344](https://github.com/youzan/vant/issues/10344)
178
- - update react-vant address [#10305](https://github.com/youzan/vant/issues/10305)
179
- - update vite-plugin-style-import version [#10303](https://github.com/youzan/vant/issues/10303)
165
+ - update readme add sfc-playground-vant to Community Ecosystem [#10475](https://github.com/youzan/vant/issues/10475)
166
+
167
+ **Document**
180
168
 
181
- - Update contribution.zh-CN.md (#10314) [#10314](https://github.com/youzan/vant/issues/10314)
169
+ - @vant/cli: changelog v4.0.1 [#10473](https://github.com/youzan/vant/issues/10473)
170
+ - @vant/icons: changelog v1.8.0 [#10472](https://github.com/youzan/vant/issues/10472)
171
+ - Badge: add show-zero tip [#10506](https://github.com/youzan/vant/issues/10506)
172
+ - changelog: 3.4.7 [99876c](https://github.com/youzan/vant/commit/99876cfb7c203b5a37fcef1220eeee55d02772cd)
173
+ - ContactCard: fix missing editable prop [#10507](https://github.com/youzan/vant/issues/10507)
174
+ - fix ContactCard return error [#10460](https://github.com/youzan/vant/issues/10460)
175
+ - fix Lazyload register multilple times [#10456](https://github.com/youzan/vant/issues/10456)
176
+ - Icons: update contribution guide [#10471](https://github.com/youzan/vant/issues/10471)
177
+ - List: add en FAQ [#10508](https://github.com/youzan/vant/issues/10508)
182
178
 
183
179
  **Feature**
184
180
 
185
- - add van-safe-area-top class [#10356](https://github.com/youzan/vant/issues/10356)
186
- - Calendar: add safe-area-inset-top prop [#10358](https://github.com/youzan/vant/issues/10358)
187
- - Popup: add safe-area-inset-top prop [#10357](https://github.com/youzan/vant/issues/10357)
181
+ - CalendarDay: add default margin-bottom [#10441](https://github.com/youzan/vant/issues/10441)
182
+ - Empty: support set the image size separately [#10465](https://github.com/youzan/vant/issues/10465)
183
+ - Field: add enterkeyhint prop [#10478](https://github.com/youzan/vant/issues/10478)
184
+ - Form: add getValues method [#10511](https://github.com/youzan/vant/issues/10511)
185
+ - Icon: add some icons for ShareSheet [#10468](https://github.com/youzan/vant/issues/10468)
186
+ - Locale: add Danish lang [#10513](https://github.com/youzan/vant/issues/10513)
187
+ - ShareSheet: no longer rely on CDN images [#10469](https://github.com/youzan/vant/issues/10469)
188
+ - VantMarkdownVetur: support arguments of events [#10474](https://github.com/youzan/vant/issues/10474)
188
189
 
189
190
  **release**
190
191
 
191
- - @vant/cli 4.0.1 [202efb](https://github.com/youzan/vant/commit/202efbbf85ec94f7d804075d1ecbfb71c6824cb4)
192
- - @vant/use 1.3.6 [1040af](https://github.com/youzan/vant/commit/1040afdda6e6f8bb98ea36cbc9212b65ecb8c49b)
193
- - 3.4.6 [1cfa46](https://github.com/youzan/vant/commit/1cfa46e9219b2d0dac04e3657395c306df90a87a)
194
-
195
- **Types**
196
-
197
- - fix missing VisibilityState after typescript 4.6.0 [#10370](https://github.com/youzan/vant/issues/10370)
192
+ - @vant/icons 1.8.0 [e461ab](https://github.com/youzan/vant/commit/e461abaafaea45ee6ba5eb06145618867a3ff7cf)
193
+ - @vant/markdown-vetur v2.3.0 [#10480](https://github.com/youzan/vant/issues/10480)
194
+ - 3.4.8 [f525be](https://github.com/youzan/vant/commit/f525be1e0db180bda4da4245f48f74b1e4b1ed78)
@@ -16,7 +16,6 @@ declare const addressEditProps: {
16
16
  default: true;
17
17
  };
18
18
  showDelete: BooleanConstructor;
19
- showPostal: BooleanConstructor;
20
19
  disableArea: BooleanConstructor;
21
20
  searchResult: PropType<AddressEditSearchItem[]>;
22
21
  telMaxlength: (NumberConstructor | StringConstructor)[];
@@ -45,10 +44,6 @@ declare const addressEditProps: {
45
44
  type: PropType<(val: string) => boolean>;
46
45
  default: typeof isMobile;
47
46
  };
48
- postalValidator: {
49
- type: PropType<(val: string) => boolean>;
50
- default: (value: string) => boolean;
51
- };
52
47
  };
53
48
  export declare type AddressEditProps = ExtractPropTypes<typeof addressEditProps>;
54
49
  declare const _default: import("vue").DefineComponent<{
@@ -65,7 +60,6 @@ declare const _default: import("vue").DefineComponent<{
65
60
  default: true;
66
61
  };
67
62
  showDelete: BooleanConstructor;
68
- showPostal: BooleanConstructor;
69
63
  disableArea: BooleanConstructor;
70
64
  searchResult: PropType<AddressEditSearchItem[]>;
71
65
  telMaxlength: (NumberConstructor | StringConstructor)[];
@@ -94,10 +88,6 @@ declare const _default: import("vue").DefineComponent<{
94
88
  type: PropType<(val: string) => boolean>;
95
89
  default: typeof isMobile;
96
90
  };
97
- postalValidator: {
98
- type: PropType<(val: string) => boolean>;
99
- default: (value: string) => boolean;
100
- };
101
91
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault")[], "focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
102
92
  areaList: PropType<AreaList>;
103
93
  isSaving: BooleanConstructor;
@@ -112,7 +102,6 @@ declare const _default: import("vue").DefineComponent<{
112
102
  default: true;
113
103
  };
114
104
  showDelete: BooleanConstructor;
115
- showPostal: BooleanConstructor;
116
105
  disableArea: BooleanConstructor;
117
106
  searchResult: PropType<AddressEditSearchItem[]>;
118
107
  telMaxlength: (NumberConstructor | StringConstructor)[];
@@ -141,10 +130,6 @@ declare const _default: import("vue").DefineComponent<{
141
130
  type: PropType<(val: string) => boolean>;
142
131
  default: typeof isMobile;
143
132
  };
144
- postalValidator: {
145
- type: PropType<(val: string) => boolean>;
146
- default: (value: string) => boolean;
147
- };
148
133
  }>> & {
149
134
  onFocus?: ((...args: any[]) => any) | undefined;
150
135
  onSelectSearch?: ((...args: any[]) => any) | undefined;
@@ -160,7 +145,6 @@ declare const _default: import("vue").DefineComponent<{
160
145
  showArea: boolean;
161
146
  showDetail: boolean;
162
147
  showDelete: boolean;
163
- showPostal: boolean;
164
148
  disableArea: boolean;
165
149
  showSetDefault: boolean;
166
150
  showSearchResult: boolean;
@@ -169,6 +153,5 @@ declare const _default: import("vue").DefineComponent<{
169
153
  areaColumnsPlaceholder: string[];
170
154
  addressInfo: Partial<AddressEditInfo>;
171
155
  telValidator: (val: string) => boolean;
172
- postalValidator: (val: string) => boolean;
173
156
  }>;
174
157
  export default _default;
@@ -22,10 +22,8 @@ const DEFAULT_DATA = {
22
22
  province: "",
23
23
  areaCode: "",
24
24
  isDefault: false,
25
- postalCode: "",
26
25
  addressDetail: ""
27
26
  };
28
- const isPostal = (value) => /^\d{6}$/.test(value);
29
27
  const addressEditProps = {
30
28
  areaList: Object,
31
29
  isSaving: Boolean,
@@ -34,7 +32,6 @@ const addressEditProps = {
34
32
  showArea: truthProp,
35
33
  showDetail: truthProp,
36
34
  showDelete: Boolean,
37
- showPostal: Boolean,
38
35
  disableArea: Boolean,
39
36
  searchResult: Array,
40
37
  telMaxlength: numericProp,
@@ -53,10 +50,6 @@ const addressEditProps = {
53
50
  telValidator: {
54
51
  type: Function,
55
52
  default: isMobile
56
- },
57
- postalValidator: {
58
- type: Function,
59
- default: isPostal
60
53
  }
61
54
  };
62
55
  var stdin_default = defineComponent({
@@ -99,8 +92,7 @@ var stdin_default = defineComponent({
99
92
  const rules = computed(() => {
100
93
  const {
101
94
  validator,
102
- telValidator,
103
- postalValidator
95
+ telValidator
104
96
  } = props;
105
97
  const makeRule = (name2, emptyMessage) => ({
106
98
  validator: (value) => {
@@ -123,11 +115,7 @@ var stdin_default = defineComponent({
123
115
  message: t("telInvalid")
124
116
  }],
125
117
  areaCode: [makeRule("areaCode", t("areaEmpty"))],
126
- addressDetail: [makeRule("addressDetail", t("addressEmpty"))],
127
- postalCode: [makeRule("addressDetail", t("postalEmpty")), {
128
- validator: postalValidator,
129
- message: t("postalEmpty")
130
- }]
118
+ addressDetail: [makeRule("addressDetail", t("addressEmpty"))]
131
119
  };
132
120
  });
133
121
  const onSave = () => emit("save", data);
@@ -252,16 +240,7 @@ var stdin_default = defineComponent({
252
240
  "onFocus": () => onFocus("addressDetail"),
253
241
  "onInput": onChangeDetail,
254
242
  "onSelectSearch": (event) => emit("selectSearch", event)
255
- }, null), props.showPostal && _withDirectives(_createVNode(Field, {
256
- "modelValue": data.postalCode,
257
- "onUpdate:modelValue": ($event) => data.postalCode = $event,
258
- "type": "tel",
259
- "rules": rules.value.postalCode,
260
- "label": t("postal"),
261
- "maxlength": "6",
262
- "placeholder": t("postal"),
263
- "onFocus": () => onFocus("postalCode")
264
- }, null), [[_vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), _withDirectives(_createVNode("div", {
243
+ }, null), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), _withDirectives(_createVNode("div", {
265
244
  "class": bem("buttons")
266
245
  }, [_createVNode(Button, {
267
246
  "block": true,
@@ -13,7 +13,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
13
13
  default: true;
14
14
  };
15
15
  showDelete: BooleanConstructor;
16
- showPostal: BooleanConstructor;
17
16
  disableArea: BooleanConstructor;
18
17
  searchResult: import("vue").PropType<import("./types").AddressEditSearchItem[]>;
19
18
  telMaxlength: (NumberConstructor | StringConstructor)[];
@@ -42,10 +41,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
42
41
  type: import("vue").PropType<(val: string) => boolean>;
43
42
  default: typeof import("../utils").isMobile;
44
43
  };
45
- postalValidator: {
46
- type: import("vue").PropType<(val: string) => boolean>;
47
- default: (value: string) => boolean;
48
- };
49
44
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault")[], "focus" | "selectSearch" | "save" | "delete" | "clickArea" | "changeArea" | "changeDetail" | "changeDefault", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
45
  areaList: import("vue").PropType<import("..").AreaList>;
51
46
  isSaving: BooleanConstructor;
@@ -60,7 +55,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
60
55
  default: true;
61
56
  };
62
57
  showDelete: BooleanConstructor;
63
- showPostal: BooleanConstructor;
64
58
  disableArea: BooleanConstructor;
65
59
  searchResult: import("vue").PropType<import("./types").AddressEditSearchItem[]>;
66
60
  telMaxlength: (NumberConstructor | StringConstructor)[];
@@ -89,10 +83,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
89
83
  type: import("vue").PropType<(val: string) => boolean>;
90
84
  default: typeof import("../utils").isMobile;
91
85
  };
92
- postalValidator: {
93
- type: import("vue").PropType<(val: string) => boolean>;
94
- default: (value: string) => boolean;
95
- };
96
86
  }>> & {
97
87
  onFocus?: ((...args: any[]) => any) | undefined;
98
88
  onSelectSearch?: ((...args: any[]) => any) | undefined;
@@ -108,7 +98,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
108
98
  showArea: boolean;
109
99
  showDetail: boolean;
110
100
  showDelete: boolean;
111
- showPostal: boolean;
112
101
  disableArea: boolean;
113
102
  showSetDefault: boolean;
114
103
  showSearchResult: boolean;
@@ -117,7 +106,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
117
106
  areaColumnsPlaceholder: string[];
118
107
  addressInfo: Partial<import("./types").AddressEditInfo>;
119
108
  telValidator: (val: string) => boolean;
120
- postalValidator: (val: string) => boolean;
121
109
  }>>;
122
110
  export default AddressEdit;
123
111
  export type { AddressEditProps };
@@ -13,7 +13,6 @@ export declare type AddressEditInfo = {
13
13
  province: string;
14
14
  areaCode: string;
15
15
  isDefault?: boolean;
16
- postalCode?: string;
17
16
  addressDetail: string;
18
17
  };
19
18
  export declare type AddressEditExpose = {
@@ -1,7 +1,8 @@
1
1
  import { type PropType } from 'vue';
2
+ import { type Numeric } from '../utils';
2
3
  export declare type AddressListAddress = {
3
- id: number | string;
4
- tel: number | string;
4
+ id: Numeric;
5
+ tel: Numeric;
5
6
  name: string;
6
7
  address: string;
7
8
  isDefault?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "vue";
3
- import { createNamespace, extend, makeRequiredProp } from "../utils";
3
+ import { extend, createNamespace, makeRequiredProp } from "../utils";
4
4
  import { Tag } from "../tag";
5
5
  import { Icon } from "../icon";
6
6
  import { Cell } from "../cell";
@@ -1,4 +1,5 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
+ import { type Numeric } from '../utils';
2
3
  export declare type BadgePosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
3
4
  declare const badgeProps: {
4
5
  dot: BooleanConstructor;
@@ -8,7 +9,7 @@ declare const badgeProps: {
8
9
  default: keyof HTMLElementTagNameMap;
9
10
  };
10
11
  color: StringConstructor;
11
- offset: PropType<[string | number, string | number]>;
12
+ offset: PropType<[Numeric, Numeric]>;
12
13
  content: (NumberConstructor | StringConstructor)[];
13
14
  showZero: {
14
15
  type: BooleanConstructor;
@@ -28,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
28
29
  default: keyof HTMLElementTagNameMap;
29
30
  };
30
31
  color: StringConstructor;
31
- offset: PropType<[string | number, string | number]>;
32
+ offset: PropType<[Numeric, Numeric]>;
32
33
  content: (NumberConstructor | StringConstructor)[];
33
34
  showZero: {
34
35
  type: BooleanConstructor;
@@ -46,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
46
47
  default: keyof HTMLElementTagNameMap;
47
48
  };
48
49
  color: StringConstructor;
49
- offset: PropType<[string | number, string | number]>;
50
+ offset: PropType<[Numeric, Numeric]>;
50
51
  content: (NumberConstructor | StringConstructor)[];
51
52
  showZero: {
52
53
  type: BooleanConstructor;
@@ -6,7 +6,7 @@ export declare const Badge: import("../utils").WithInstall<import("vue").DefineC
6
6
  default: keyof HTMLElementTagNameMap;
7
7
  };
8
8
  color: StringConstructor;
9
- offset: import("vue").PropType<[string | number, string | number]>;
9
+ offset: import("vue").PropType<[import("../utils").Numeric, import("../utils").Numeric]>;
10
10
  content: (NumberConstructor | StringConstructor)[];
11
11
  showZero: {
12
12
  type: BooleanConstructor;
@@ -24,7 +24,7 @@ export declare const Badge: import("../utils").WithInstall<import("vue").DefineC
24
24
  default: keyof HTMLElementTagNameMap;
25
25
  };
26
26
  color: StringConstructor;
27
- offset: import("vue").PropType<[string | number, string | number]>;
27
+ offset: import("vue").PropType<[import("../utils").Numeric, import("../utils").Numeric]>;
28
28
  content: (NumberConstructor | StringConstructor)[];
29
29
  showZero: {
30
30
  type: BooleanConstructor;
@@ -199,8 +199,8 @@ var stdin_default = defineComponent({
199
199
  }
200
200
  raf(() => {
201
201
  bodyHeight = Math.floor(useRect(bodyRef).height);
202
- scrollToCurrentDate();
203
202
  });
203
+ scrollToCurrentDate();
204
204
  };
205
205
  const reset = (date = getInitialDate()) => {
206
206
  currentDate.value = date;
@@ -18,6 +18,7 @@ var stdin_default = defineComponent({
18
18
  slots
19
19
  }) {
20
20
  const style = computed(() => {
21
+ var _a;
21
22
  const {
22
23
  item,
23
24
  index,
@@ -49,6 +50,9 @@ var stdin_default = defineComponent({
49
50
  break;
50
51
  }
51
52
  }
53
+ if (offset + (((_a = item.date) == null ? void 0 : _a.getDate()) || 1) > 28) {
54
+ style2.marginBottom = 0;
55
+ }
52
56
  return style2;
53
57
  });
54
58
  const onClick = () => {
@@ -1 +1 @@
1
- body{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-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: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-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: var(--van-primary-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-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.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-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-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)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-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);border-radius:var(--van-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
+ body{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-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: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-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: var(--van-primary-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-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.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-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-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)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-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);border-radius:var(--van-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)}
@@ -12,6 +12,7 @@ body {
12
12
  --van-calendar-month-mark-font-size: 160px;
13
13
  --van-calendar-day-height: 64px;
14
14
  --van-calendar-day-font-size: var(--van-font-size-lg);
15
+ --van-calendar-day-margin-bottom: 4px;
15
16
  --van-calendar-range-edge-color: var(--van-white);
16
17
  --van-calendar-range-edge-background: var(--van-primary-color);
17
18
  --van-calendar-range-middle-color: var(--van-primary-color);
@@ -128,6 +129,7 @@ body {
128
129
  width: 14.285%;
129
130
  height: var(--van-calendar-day-height);
130
131
  font-size: var(--van-calendar-day-font-size);
132
+ margin-bottom: var(--van-calendar-day-margin-bottom);
131
133
  cursor: pointer;
132
134
 
133
135
  &--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;
@@ -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[];