vant 3.4.2 → 4.0.0-alpha.0

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 (1159) hide show
  1. package/es/action-bar/index.css +1 -1
  2. package/es/action-bar/index.less +4 -6
  3. package/es/action-bar-button/index.css +1 -1
  4. package/es/action-bar-button/index.less +9 -11
  5. package/es/action-bar-icon/index.css +1 -1
  6. package/es/action-bar-icon/index.less +10 -12
  7. package/es/action-sheet/index.css +1 -1
  8. package/es/action-sheet/index.less +23 -24
  9. package/es/address-edit/AddressEdit.d.ts +6 -6
  10. package/es/address-edit/AddressEdit.js +29 -33
  11. package/es/address-edit/AddressEditDetail.d.ts +2 -2
  12. package/es/address-edit/AddressEditDetail.js +9 -17
  13. package/es/address-edit/index.css +1 -1
  14. package/es/address-edit/index.d.ts +6 -6
  15. package/es/address-edit/index.less +8 -15
  16. package/es/address-edit/types.d.ts +2 -4
  17. package/es/address-list/AddressList.d.ts +4 -4
  18. package/es/address-list/AddressList.js +5 -5
  19. package/es/address-list/AddressListItem.js +3 -3
  20. package/es/address-list/index.css +1 -1
  21. package/es/address-list/index.d.ts +4 -4
  22. package/es/address-list/index.less +20 -22
  23. package/es/area/Area.d.ts +13 -25
  24. package/es/area/Area.js +43 -206
  25. package/es/area/index.d.ts +11 -19
  26. package/es/area/types.d.ts +2 -17
  27. package/es/area/utils.d.ts +6 -0
  28. package/es/area/utils.js +85 -0
  29. package/es/badge/index.css +1 -1
  30. package/es/badge/index.less +15 -17
  31. package/es/button/index.css +1 -1
  32. package/es/button/index.less +55 -52
  33. package/es/calendar/Calendar.d.ts +6 -6
  34. package/es/calendar/Calendar.js +5 -5
  35. package/es/calendar/CalendarHeader.d.ts +2 -2
  36. package/es/calendar/CalendarHeader.js +2 -2
  37. package/es/calendar/CalendarMonth.d.ts +1 -2
  38. package/es/calendar/CalendarMonth.js +3 -3
  39. package/es/calendar/index.css +1 -1
  40. package/es/calendar/index.d.ts +6 -6
  41. package/es/calendar/index.less +40 -37
  42. package/es/card/Card.d.ts +2 -2
  43. package/es/card/Card.js +3 -3
  44. package/es/card/index.css +1 -1
  45. package/es/card/index.d.ts +2 -2
  46. package/es/card/index.less +23 -25
  47. package/es/cascader/Cascader.d.ts +2 -2
  48. package/es/cascader/Cascader.js +3 -3
  49. package/es/cascader/index.css +1 -1
  50. package/es/cascader/index.d.ts +2 -2
  51. package/es/cascader/index.less +17 -19
  52. package/es/cell/Cell.js +1 -4
  53. package/es/cell/index.css +1 -1
  54. package/es/cell/index.less +21 -27
  55. package/es/cell-group/index.css +1 -1
  56. package/es/cell-group/index.less +12 -13
  57. package/es/checkbox/index.css +1 -1
  58. package/es/checkbox/index.less +12 -14
  59. package/es/circle/index.css +1 -1
  60. package/es/circle/index.less +8 -10
  61. package/es/collapse-item/CollapseItem.d.ts +13 -0
  62. package/es/collapse-item/CollapseItem.js +3 -2
  63. package/es/collapse-item/index.css +1 -1
  64. package/es/collapse-item/index.d.ts +9 -0
  65. package/es/collapse-item/index.less +12 -12
  66. package/es/config-provider/ConfigProvider.d.ts +14 -0
  67. package/es/config-provider/ConfigProvider.js +9 -2
  68. package/es/config-provider/index.d.ts +10 -1
  69. package/es/contact-card/ContactCard.js +3 -3
  70. package/es/contact-card/index.css +1 -1
  71. package/es/contact-card/index.less +7 -9
  72. package/es/contact-edit/ContactEdit.d.ts +2 -2
  73. package/es/contact-edit/ContactEdit.js +3 -4
  74. package/es/contact-edit/index.css +1 -1
  75. package/es/contact-edit/index.d.ts +2 -2
  76. package/es/contact-edit/index.less +7 -9
  77. package/es/contact-list/ContactList.js +5 -5
  78. package/es/contact-list/index.css +1 -1
  79. package/es/contact-list/index.less +9 -11
  80. package/es/count-down/index.css +1 -1
  81. package/es/count-down/index.less +4 -6
  82. package/es/coupon/index.css +1 -1
  83. package/es/coupon/index.less +28 -31
  84. package/es/coupon-cell/index.css +1 -1
  85. package/es/coupon-cell/index.less +2 -4
  86. package/es/coupon-list/CouponList.js +2 -2
  87. package/es/coupon-list/index.css +1 -1
  88. package/es/coupon-list/index.less +15 -17
  89. package/es/date-picker/DatePicker.d.ts +168 -0
  90. package/es/date-picker/DatePicker.js +111 -0
  91. package/es/{datetime-picker/DatePicker.d.ts → date-picker/index.d.ts} +40 -28
  92. package/es/date-picker/index.js +8 -0
  93. package/es/{datetime-picker → date-picker}/style/index.d.ts +0 -0
  94. package/es/{datetime-picker → date-picker}/style/index.js +0 -0
  95. package/es/{datetime-picker → date-picker}/style/less.d.ts +0 -0
  96. package/es/{datetime-picker → date-picker}/style/less.js +0 -0
  97. package/es/{datetime-picker → date-picker}/utils.d.ts +15 -11
  98. package/es/date-picker/utils.js +40 -0
  99. package/es/dialog/Dialog.d.ts +2 -1
  100. package/es/dialog/Dialog.js +19 -3
  101. package/es/dialog/function-call.d.ts +2 -1
  102. package/es/dialog/index.css +1 -1
  103. package/es/dialog/index.less +22 -24
  104. package/es/divider/index.css +1 -1
  105. package/es/divider/index.less +10 -12
  106. package/es/dropdown-item/index.css +1 -1
  107. package/es/dropdown-item/index.less +2 -5
  108. package/es/dropdown-menu/index.css +1 -1
  109. package/es/dropdown-menu/index.less +14 -18
  110. package/es/empty/index.css +1 -1
  111. package/es/empty/index.less +9 -11
  112. package/es/field/Field.d.ts +4 -4
  113. package/es/field/Field.js +4 -4
  114. package/es/field/index.css +1 -1
  115. package/es/field/index.d.ts +4 -4
  116. package/es/field/index.less +20 -23
  117. package/es/field/utils.js +2 -1
  118. package/es/grid-item/index.css +1 -1
  119. package/es/grid-item/index.less +10 -13
  120. package/es/icon/index.css +1 -1
  121. package/es/icon/index.less +1 -0
  122. package/es/image/index.css +1 -1
  123. package/es/image/index.less +10 -12
  124. package/es/image-preview/index.css +1 -1
  125. package/es/image-preview/index.less +11 -14
  126. package/es/index-anchor/index.css +1 -1
  127. package/es/index-anchor/index.less +12 -14
  128. package/es/index-bar/IndexBar.d.ts +4 -4
  129. package/es/index-bar/IndexBar.js +3 -1
  130. package/es/index-bar/index.css +1 -1
  131. package/es/index-bar/index.d.ts +3 -3
  132. package/es/index-bar/index.less +7 -8
  133. package/es/index.d.ts +3 -2
  134. package/es/index.js +7 -4
  135. package/es/list/index.css +1 -1
  136. package/es/list/index.less +5 -7
  137. package/es/loading/index.css +1 -1
  138. package/es/loading/index.less +7 -10
  139. package/es/locale/lang/bn-BD.d.ts +64 -0
  140. package/es/locale/lang/bn-BD.js +74 -0
  141. package/es/locale/lang/de-DE-formal.d.ts +2 -11
  142. package/es/locale/lang/de-DE-formal.js +3 -12
  143. package/es/locale/lang/de-DE.d.ts +2 -11
  144. package/es/locale/lang/de-DE.js +3 -12
  145. package/es/locale/lang/en-US.d.ts +2 -11
  146. package/es/locale/lang/en-US.js +3 -12
  147. package/es/locale/lang/es-ES.d.ts +2 -11
  148. package/es/locale/lang/es-ES.js +3 -12
  149. package/es/locale/lang/fr-FR.d.ts +2 -11
  150. package/es/locale/lang/fr-FR.js +3 -12
  151. package/es/locale/lang/hi-IN.d.ts +64 -0
  152. package/es/locale/lang/hi-IN.js +74 -0
  153. package/es/locale/lang/id-ID.d.ts +64 -0
  154. package/es/locale/lang/id-ID.js +66 -0
  155. package/es/locale/lang/it-IT.d.ts +64 -0
  156. package/es/locale/lang/it-IT.js +74 -0
  157. package/es/locale/lang/ja-JP.d.ts +2 -12
  158. package/es/locale/lang/ja-JP.js +5 -15
  159. package/es/locale/lang/ko-KR.d.ts +64 -0
  160. package/es/locale/lang/ko-KR.js +74 -0
  161. package/es/locale/lang/nb-NO.d.ts +2 -11
  162. package/es/locale/lang/nb-NO.js +3 -12
  163. package/es/locale/lang/pt-BR.d.ts +2 -11
  164. package/es/locale/lang/pt-BR.js +3 -12
  165. package/es/locale/lang/ro-RO.d.ts +2 -11
  166. package/es/locale/lang/ro-RO.js +3 -12
  167. package/es/locale/lang/ru-RU.d.ts +2 -11
  168. package/es/locale/lang/ru-RU.js +3 -12
  169. package/es/locale/lang/th-TH.d.ts +2 -12
  170. package/es/locale/lang/th-TH.js +5 -15
  171. package/es/locale/lang/tr-TR.d.ts +2 -11
  172. package/es/locale/lang/tr-TR.js +2 -11
  173. package/es/locale/lang/uk-UA.d.ts +64 -0
  174. package/es/locale/lang/uk-UA.js +74 -0
  175. package/es/locale/lang/vi-VN.d.ts +64 -0
  176. package/es/locale/lang/vi-VN.js +74 -0
  177. package/es/locale/lang/zh-CN.d.ts +2 -12
  178. package/es/locale/lang/zh-CN.js +6 -16
  179. package/es/locale/lang/zh-HK.d.ts +2 -12
  180. package/es/locale/lang/zh-HK.js +6 -16
  181. package/es/locale/lang/zh-TW.d.ts +2 -12
  182. package/es/locale/lang/zh-TW.js +6 -16
  183. package/es/nav-bar/NavBar.d.ts +3 -3
  184. package/es/nav-bar/NavBar.js +3 -3
  185. package/es/nav-bar/index.css +1 -1
  186. package/es/nav-bar/index.d.ts +3 -3
  187. package/es/nav-bar/index.less +11 -14
  188. package/es/notice-bar/index.css +1 -1
  189. package/es/notice-bar/index.less +11 -13
  190. package/es/notify/index.css +1 -1
  191. package/es/notify/index.less +13 -15
  192. package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
  193. package/es/number-keyboard/index.css +1 -1
  194. package/es/number-keyboard/index.d.ts +1 -1
  195. package/es/number-keyboard/index.less +26 -23
  196. package/es/overlay/index.css +1 -1
  197. package/es/overlay/index.less +4 -6
  198. package/es/pagination/index.css +1 -1
  199. package/es/pagination/index.less +13 -15
  200. package/es/password-input/index.css +1 -1
  201. package/es/password-input/index.less +20 -22
  202. package/es/picker/Picker.d.ts +26 -28
  203. package/es/picker/Picker.js +91 -196
  204. package/es/picker/PickerColumn.d.ts +21 -30
  205. package/es/picker/PickerColumn.js +61 -111
  206. package/es/picker/index.css +1 -1
  207. package/es/picker/index.d.ts +19 -20
  208. package/es/picker/index.less +31 -20
  209. package/es/picker/types.d.ts +13 -19
  210. package/es/picker/utils.d.ts +10 -0
  211. package/es/picker/utils.js +73 -0
  212. package/es/popover/Popover.d.ts +1 -1
  213. package/es/popover/index.css +1 -1
  214. package/es/popover/index.d.ts +1 -1
  215. package/es/popover/index.less +21 -23
  216. package/es/popup/Popup.d.ts +4 -3
  217. package/es/popup/Popup.js +13 -5
  218. package/es/popup/index.css +1 -1
  219. package/es/popup/index.d.ts +4 -3
  220. package/es/popup/index.less +20 -23
  221. package/es/popup/types.d.ts +5 -2
  222. package/es/progress/index.css +1 -1
  223. package/es/progress/index.less +14 -18
  224. package/es/pull-refresh/index.css +1 -1
  225. package/es/pull-refresh/index.less +5 -7
  226. package/es/radio/index.css +1 -1
  227. package/es/radio/index.less +12 -14
  228. package/es/rate/index.css +1 -1
  229. package/es/rate/index.less +6 -8
  230. package/es/search/Search.d.ts +4 -4
  231. package/es/search/Search.js +7 -7
  232. package/es/search/index.css +1 -1
  233. package/es/search/index.d.ts +4 -4
  234. package/es/search/index.less +16 -18
  235. package/es/share-sheet/index.css +1 -1
  236. package/es/share-sheet/index.less +17 -19
  237. package/es/sidebar/index.css +1 -1
  238. package/es/sidebar/index.less +2 -4
  239. package/es/sidebar-item/index.css +1 -1
  240. package/es/sidebar-item/index.less +17 -19
  241. package/es/skeleton/index.css +1 -1
  242. package/es/skeleton/index.less +14 -16
  243. package/es/slider/Slider.d.ts +4 -4
  244. package/es/slider/Slider.js +4 -5
  245. package/es/slider/index.css +1 -1
  246. package/es/slider/index.d.ts +4 -4
  247. package/es/slider/index.less +20 -18
  248. package/es/step/index.css +1 -1
  249. package/es/step/index.less +15 -17
  250. package/es/stepper/Stepper.d.ts +1 -1
  251. package/es/stepper/index.css +1 -1
  252. package/es/stepper/index.d.ts +1 -1
  253. package/es/stepper/index.less +20 -25
  254. package/es/steps/Steps.d.ts +2 -2
  255. package/es/steps/Steps.js +2 -2
  256. package/es/steps/index.css +1 -1
  257. package/es/steps/index.d.ts +2 -2
  258. package/es/steps/index.less +3 -5
  259. package/es/sticky/index.css +1 -1
  260. package/es/sticky/index.less +2 -4
  261. package/es/style/animation.css +1 -1
  262. package/es/style/animation.less +18 -22
  263. package/es/style/base.css +1 -1
  264. package/es/style/base.less +12 -9
  265. package/es/style/css-variables.css +1 -1
  266. package/es/style/css-variables.less +76 -61
  267. package/es/style/mixins/hairline.less +0 -2
  268. package/es/style/normalize.css +1 -1
  269. package/es/style/normalize.less +1 -3
  270. package/es/submit-bar/index.css +1 -1
  271. package/es/submit-bar/index.less +27 -28
  272. package/es/swipe/index.css +1 -1
  273. package/es/swipe/index.less +11 -13
  274. package/es/switch/index.css +1 -1
  275. package/es/switch/index.less +24 -24
  276. package/es/tabbar/index.css +1 -1
  277. package/es/tabbar/index.less +5 -7
  278. package/es/tabbar-item/index.css +1 -1
  279. package/es/tabbar-item/index.less +9 -11
  280. package/es/tabs/Tabs.d.ts +2 -4
  281. package/es/tabs/Tabs.js +14 -27
  282. package/es/tabs/index.css +1 -1
  283. package/es/tabs/index.d.ts +2 -4
  284. package/es/tabs/index.less +17 -20
  285. package/es/tag/Tag.js +2 -2
  286. package/es/tag/index.css +1 -1
  287. package/es/tag/index.less +22 -26
  288. package/es/time-picker/TimePicker.d.ts +214 -0
  289. package/es/time-picker/TimePicker.js +71 -0
  290. package/{lib/datetime-picker/TimePicker.d.ts → es/time-picker/index.d.ts} +60 -20
  291. package/es/time-picker/index.js +8 -0
  292. package/{lib/datetime-picker → es/time-picker}/style/index.d.ts +0 -0
  293. package/es/time-picker/style/index.js +3 -0
  294. package/{lib/datetime-picker → es/time-picker}/style/less.d.ts +0 -0
  295. package/es/time-picker/style/less.js +3 -0
  296. package/es/toast/Toast.d.ts +3 -0
  297. package/es/toast/Toast.js +2 -1
  298. package/es/toast/index.css +1 -1
  299. package/es/toast/index.less +19 -21
  300. package/es/tree-select/TreeSelect.d.ts +3 -3
  301. package/es/tree-select/TreeSelect.js +5 -4
  302. package/es/tree-select/index.css +1 -1
  303. package/es/tree-select/index.d.ts +3 -3
  304. package/es/tree-select/index.less +12 -14
  305. package/es/uploader/Uploader.d.ts +4 -4
  306. package/es/uploader/Uploader.js +4 -4
  307. package/es/uploader/index.css +1 -1
  308. package/es/uploader/index.d.ts +4 -4
  309. package/es/uploader/index.less +31 -33
  310. package/es/uploader/types.d.ts +1 -3
  311. package/es/utils/basic.d.ts +1 -0
  312. package/es/utils/basic.js +2 -0
  313. package/es/utils/interceptor.d.ts +1 -1
  314. package/lib/action-bar/ActionBar.js +14 -13
  315. package/lib/action-bar/index.css +1 -1
  316. package/lib/action-bar/index.js +14 -8
  317. package/lib/action-bar/index.less +4 -6
  318. package/lib/action-bar-button/ActionBarButton.js +18 -17
  319. package/lib/action-bar-button/index.css +1 -1
  320. package/lib/action-bar-button/index.js +14 -8
  321. package/lib/action-bar-button/index.less +9 -11
  322. package/lib/action-bar-icon/ActionBarIcon.js +18 -17
  323. package/lib/action-bar-icon/index.css +1 -1
  324. package/lib/action-bar-icon/index.js +14 -8
  325. package/lib/action-bar-icon/index.less +10 -12
  326. package/lib/action-sheet/ActionSheet.js +17 -16
  327. package/lib/action-sheet/index.css +1 -1
  328. package/lib/action-sheet/index.js +14 -8
  329. package/lib/action-sheet/index.less +23 -24
  330. package/lib/address-edit/AddressEdit.d.ts +6 -6
  331. package/lib/address-edit/AddressEdit.js +54 -52
  332. package/lib/address-edit/AddressEditDetail.d.ts +2 -2
  333. package/lib/address-edit/AddressEditDetail.js +24 -31
  334. package/lib/address-edit/index.css +1 -1
  335. package/lib/address-edit/index.d.ts +6 -6
  336. package/lib/address-edit/index.js +14 -8
  337. package/lib/address-edit/index.less +8 -15
  338. package/lib/address-edit/types.d.ts +2 -4
  339. package/lib/address-edit/types.js +18 -1
  340. package/lib/address-list/AddressList.d.ts +4 -4
  341. package/lib/address-list/AddressList.js +23 -17
  342. package/lib/address-list/AddressListItem.js +20 -19
  343. package/lib/address-list/index.css +1 -1
  344. package/lib/address-list/index.d.ts +4 -4
  345. package/lib/address-list/index.js +14 -8
  346. package/lib/address-list/index.less +20 -22
  347. package/lib/area/Area.d.ts +13 -25
  348. package/lib/area/Area.js +58 -220
  349. package/lib/area/index.d.ts +11 -19
  350. package/lib/area/index.js +14 -8
  351. package/lib/area/types.d.ts +2 -17
  352. package/lib/area/types.js +18 -1
  353. package/lib/area/utils.d.ts +6 -0
  354. package/lib/area/utils.js +109 -0
  355. package/lib/badge/Badge.js +13 -12
  356. package/lib/badge/index.css +1 -1
  357. package/lib/badge/index.js +14 -8
  358. package/lib/badge/index.less +15 -17
  359. package/lib/button/Button.js +16 -15
  360. package/lib/button/index.css +1 -1
  361. package/lib/button/index.js +14 -8
  362. package/lib/button/index.less +55 -52
  363. package/lib/button/types.js +18 -1
  364. package/lib/calendar/Calendar.d.ts +6 -6
  365. package/lib/calendar/Calendar.js +29 -23
  366. package/lib/calendar/CalendarDay.js +14 -13
  367. package/lib/calendar/CalendarHeader.d.ts +2 -2
  368. package/lib/calendar/CalendarHeader.js +16 -15
  369. package/lib/calendar/CalendarMonth.d.ts +1 -2
  370. package/lib/calendar/CalendarMonth.js +23 -17
  371. package/lib/calendar/index.css +1 -1
  372. package/lib/calendar/index.d.ts +6 -6
  373. package/lib/calendar/index.js +14 -8
  374. package/lib/calendar/index.less +40 -37
  375. package/lib/calendar/types.js +18 -1
  376. package/lib/calendar/utils.js +11 -10
  377. package/lib/card/Card.d.ts +2 -2
  378. package/lib/card/Card.js +18 -17
  379. package/lib/card/index.css +1 -1
  380. package/lib/card/index.d.ts +2 -2
  381. package/lib/card/index.js +14 -8
  382. package/lib/card/index.less +23 -25
  383. package/lib/cascader/Cascader.d.ts +2 -2
  384. package/lib/cascader/Cascader.js +19 -18
  385. package/lib/cascader/index.css +1 -1
  386. package/lib/cascader/index.d.ts +2 -2
  387. package/lib/cascader/index.js +14 -8
  388. package/lib/cascader/index.less +17 -19
  389. package/lib/cascader/types.js +18 -1
  390. package/lib/cell/Cell.js +16 -18
  391. package/lib/cell/index.css +1 -1
  392. package/lib/cell/index.js +14 -8
  393. package/lib/cell/index.less +21 -27
  394. package/lib/cell-group/CellGroup.js +13 -12
  395. package/lib/cell-group/index.css +1 -1
  396. package/lib/cell-group/index.js +14 -8
  397. package/lib/cell-group/index.less +12 -13
  398. package/lib/checkbox/Checkbox.js +19 -13
  399. package/lib/checkbox/Checker.js +14 -13
  400. package/lib/checkbox/index.css +1 -1
  401. package/lib/checkbox/index.js +14 -8
  402. package/lib/checkbox/index.less +12 -14
  403. package/lib/checkbox/types.js +18 -1
  404. package/lib/checkbox-group/CheckboxGroup.js +15 -14
  405. package/lib/checkbox-group/index.js +14 -8
  406. package/lib/checkbox-group/types.js +18 -1
  407. package/lib/circle/Circle.js +14 -13
  408. package/lib/circle/index.css +1 -1
  409. package/lib/circle/index.js +14 -8
  410. package/lib/circle/index.less +8 -10
  411. package/lib/col/Col.js +15 -14
  412. package/lib/col/index.js +14 -8
  413. package/lib/collapse/Collapse.js +14 -13
  414. package/lib/collapse/index.js +14 -8
  415. package/lib/collapse-item/CollapseItem.d.ts +13 -0
  416. package/lib/collapse-item/CollapseItem.js +22 -20
  417. package/lib/collapse-item/index.css +1 -1
  418. package/lib/collapse-item/index.d.ts +9 -0
  419. package/lib/collapse-item/index.js +14 -8
  420. package/lib/collapse-item/index.less +12 -12
  421. package/lib/collapse-item/types.js +18 -1
  422. package/lib/composables/on-popup-reopen.js +11 -10
  423. package/lib/composables/use-expose.js +12 -11
  424. package/lib/composables/use-height.js +12 -11
  425. package/lib/composables/use-id.js +11 -10
  426. package/lib/composables/use-lazy-render.js +11 -10
  427. package/lib/composables/use-lock-scroll.js +14 -13
  428. package/lib/composables/use-placeholder.js +12 -11
  429. package/lib/composables/use-refs.js +11 -10
  430. package/lib/composables/use-route.js +11 -10
  431. package/lib/composables/use-tab-status.js +11 -10
  432. package/lib/composables/use-touch.js +11 -10
  433. package/lib/composables/use-visibility-change.js +13 -12
  434. package/lib/config-provider/ConfigProvider.d.ts +14 -0
  435. package/lib/config-provider/ConfigProvider.js +20 -12
  436. package/lib/config-provider/index.d.ts +10 -1
  437. package/lib/config-provider/index.js +14 -8
  438. package/lib/contact-card/ContactCard.js +17 -16
  439. package/lib/contact-card/index.css +1 -1
  440. package/lib/contact-card/index.js +14 -8
  441. package/lib/contact-card/index.less +7 -9
  442. package/lib/contact-edit/ContactEdit.d.ts +2 -2
  443. package/lib/contact-edit/ContactEdit.js +21 -21
  444. package/lib/contact-edit/index.css +1 -1
  445. package/lib/contact-edit/index.d.ts +2 -2
  446. package/lib/contact-edit/index.js +14 -8
  447. package/lib/contact-edit/index.less +7 -9
  448. package/lib/contact-list/ContactList.js +24 -23
  449. package/lib/contact-list/index.css +1 -1
  450. package/lib/contact-list/index.js +14 -8
  451. package/lib/contact-list/index.less +9 -11
  452. package/lib/count-down/CountDown.js +16 -15
  453. package/lib/count-down/index.css +1 -1
  454. package/lib/count-down/index.js +14 -8
  455. package/lib/count-down/index.less +4 -6
  456. package/lib/count-down/types.js +18 -1
  457. package/lib/count-down/utils.js +11 -10
  458. package/lib/coupon/Coupon.js +15 -14
  459. package/lib/coupon/index.css +1 -1
  460. package/lib/coupon/index.js +14 -8
  461. package/lib/coupon/index.less +28 -31
  462. package/lib/coupon/utils.js +11 -10
  463. package/lib/coupon-cell/CouponCell.js +14 -13
  464. package/lib/coupon-cell/index.css +1 -1
  465. package/lib/coupon-cell/index.js +14 -8
  466. package/lib/coupon-cell/index.less +2 -4
  467. package/lib/coupon-list/CouponList.js +22 -21
  468. package/lib/coupon-list/index.css +1 -1
  469. package/lib/coupon-list/index.js +14 -8
  470. package/lib/coupon-list/index.less +15 -17
  471. package/lib/date-picker/DatePicker.d.ts +168 -0
  472. package/lib/date-picker/DatePicker.js +135 -0
  473. package/lib/{datetime-picker/DatePicker.d.ts → date-picker/index.d.ts} +40 -28
  474. package/lib/date-picker/index.js +37 -0
  475. package/lib/date-picker/style/index.d.ts +1 -0
  476. package/lib/{datetime-picker → date-picker}/style/index.js +0 -0
  477. package/lib/date-picker/style/less.d.ts +1 -0
  478. package/lib/{datetime-picker → date-picker}/style/less.js +0 -0
  479. package/lib/{datetime-picker → date-picker}/utils.d.ts +15 -11
  480. package/lib/date-picker/utils.js +64 -0
  481. package/lib/dialog/Dialog.d.ts +2 -1
  482. package/lib/dialog/Dialog.js +35 -18
  483. package/lib/dialog/function-call.d.ts +2 -1
  484. package/lib/dialog/function-call.js +16 -10
  485. package/lib/dialog/index.css +1 -1
  486. package/lib/dialog/index.js +11 -10
  487. package/lib/dialog/index.less +22 -24
  488. package/lib/dialog/types.js +18 -1
  489. package/lib/divider/Divider.js +13 -12
  490. package/lib/divider/index.css +1 -1
  491. package/lib/divider/index.js +14 -8
  492. package/lib/divider/index.less +10 -12
  493. package/lib/dropdown-item/DropdownItem.js +19 -18
  494. package/lib/dropdown-item/index.css +1 -1
  495. package/lib/dropdown-item/index.js +14 -8
  496. package/lib/dropdown-item/index.less +2 -5
  497. package/lib/dropdown-item/types.js +18 -1
  498. package/lib/dropdown-menu/DropdownMenu.js +15 -14
  499. package/lib/dropdown-menu/index.css +1 -1
  500. package/lib/dropdown-menu/index.js +14 -8
  501. package/lib/dropdown-menu/index.less +14 -18
  502. package/lib/dropdown-menu/types.js +18 -1
  503. package/lib/empty/Empty.js +14 -13
  504. package/lib/empty/Network.js +11 -10
  505. package/lib/empty/index.css +1 -1
  506. package/lib/empty/index.js +14 -8
  507. package/lib/empty/index.less +9 -11
  508. package/lib/field/Field.d.ts +4 -4
  509. package/lib/field/Field.js +24 -23
  510. package/lib/field/index.css +1 -1
  511. package/lib/field/index.d.ts +4 -4
  512. package/lib/field/index.js +14 -8
  513. package/lib/field/index.less +20 -23
  514. package/lib/field/types.js +18 -1
  515. package/lib/field/utils.js +13 -11
  516. package/lib/form/Form.js +15 -14
  517. package/lib/form/index.js +14 -8
  518. package/lib/form/types.js +18 -1
  519. package/lib/grid/Grid.js +15 -14
  520. package/lib/grid/index.js +14 -8
  521. package/lib/grid-item/GridItem.js +18 -17
  522. package/lib/grid-item/index.css +1 -1
  523. package/lib/grid-item/index.js +14 -8
  524. package/lib/grid-item/index.less +10 -13
  525. package/lib/icon/Icon.js +15 -14
  526. package/lib/icon/index.css +1 -1
  527. package/lib/icon/index.js +14 -8
  528. package/lib/icon/index.less +1 -0
  529. package/lib/image/Image.js +14 -13
  530. package/lib/image/index.css +1 -1
  531. package/lib/image/index.js +14 -8
  532. package/lib/image/index.less +10 -12
  533. package/lib/image-preview/ImagePreview.js +21 -15
  534. package/lib/image-preview/ImagePreviewItem.js +17 -16
  535. package/lib/image-preview/function-call.js +16 -10
  536. package/lib/image-preview/index.css +1 -1
  537. package/lib/image-preview/index.js +11 -10
  538. package/lib/image-preview/index.less +11 -14
  539. package/lib/image-preview/types.js +18 -1
  540. package/lib/index-anchor/IndexAnchor.js +17 -16
  541. package/lib/index-anchor/index.css +1 -1
  542. package/lib/index-anchor/index.js +14 -8
  543. package/lib/index-anchor/index.less +12 -14
  544. package/lib/index-bar/IndexBar.d.ts +4 -4
  545. package/lib/index-bar/IndexBar.js +19 -16
  546. package/lib/index-bar/index.css +1 -1
  547. package/lib/index-bar/index.d.ts +3 -3
  548. package/lib/index-bar/index.js +14 -8
  549. package/lib/index-bar/index.less +7 -8
  550. package/lib/index-bar/types.js +18 -1
  551. package/lib/index.css +1 -1
  552. package/lib/index.d.ts +3 -2
  553. package/lib/index.js +186 -182
  554. package/lib/lazyload/index.js +11 -10
  555. package/lib/lazyload/vue-lazyload/index.js +16 -10
  556. package/lib/lazyload/vue-lazyload/lazy-component.js +12 -11
  557. package/lib/lazyload/vue-lazyload/lazy-container.js +11 -10
  558. package/lib/lazyload/vue-lazyload/lazy-image.js +13 -12
  559. package/lib/lazyload/vue-lazyload/lazy.js +17 -11
  560. package/lib/lazyload/vue-lazyload/listener.js +13 -12
  561. package/lib/lazyload/vue-lazyload/util.js +11 -10
  562. package/lib/list/List.js +17 -16
  563. package/lib/list/index.css +1 -1
  564. package/lib/list/index.js +14 -8
  565. package/lib/list/index.less +5 -7
  566. package/lib/list/types.js +18 -1
  567. package/lib/loading/Loading.js +13 -12
  568. package/lib/loading/index.css +1 -1
  569. package/lib/loading/index.js +14 -8
  570. package/lib/loading/index.less +7 -10
  571. package/lib/locale/index.js +15 -9
  572. package/lib/locale/lang/bn-BD.d.ts +64 -0
  573. package/lib/locale/lang/bn-BD.js +98 -0
  574. package/lib/locale/lang/de-DE-formal.d.ts +2 -11
  575. package/lib/locale/lang/de-DE-formal.js +22 -14
  576. package/lib/locale/lang/de-DE.d.ts +2 -11
  577. package/lib/locale/lang/de-DE.js +22 -14
  578. package/lib/locale/lang/en-US.d.ts +2 -11
  579. package/lib/locale/lang/en-US.js +22 -14
  580. package/lib/locale/lang/es-ES.d.ts +2 -11
  581. package/lib/locale/lang/es-ES.js +22 -14
  582. package/lib/locale/lang/fr-FR.d.ts +2 -11
  583. package/lib/locale/lang/fr-FR.js +22 -14
  584. package/lib/locale/lang/hi-IN.d.ts +64 -0
  585. package/lib/locale/lang/hi-IN.js +98 -0
  586. package/lib/locale/lang/id-ID.d.ts +64 -0
  587. package/lib/locale/lang/id-ID.js +90 -0
  588. package/lib/locale/lang/it-IT.d.ts +64 -0
  589. package/lib/locale/lang/it-IT.js +98 -0
  590. package/lib/locale/lang/ja-JP.d.ts +2 -12
  591. package/lib/locale/lang/ja-JP.js +24 -17
  592. package/lib/locale/lang/ko-KR.d.ts +64 -0
  593. package/lib/locale/lang/ko-KR.js +98 -0
  594. package/lib/locale/lang/nb-NO.d.ts +2 -11
  595. package/lib/locale/lang/nb-NO.js +22 -14
  596. package/lib/locale/lang/pt-BR.d.ts +2 -11
  597. package/lib/locale/lang/pt-BR.js +22 -14
  598. package/lib/locale/lang/ro-RO.d.ts +2 -11
  599. package/lib/locale/lang/ro-RO.js +22 -14
  600. package/lib/locale/lang/ru-RU.d.ts +2 -11
  601. package/lib/locale/lang/ru-RU.js +22 -14
  602. package/lib/locale/lang/th-TH.d.ts +2 -12
  603. package/lib/locale/lang/th-TH.js +24 -17
  604. package/lib/locale/lang/tr-TR.d.ts +2 -11
  605. package/lib/locale/lang/tr-TR.js +21 -13
  606. package/lib/locale/lang/uk-UA.d.ts +64 -0
  607. package/lib/locale/lang/uk-UA.js +98 -0
  608. package/lib/locale/lang/vi-VN.d.ts +64 -0
  609. package/lib/locale/lang/vi-VN.js +98 -0
  610. package/lib/locale/lang/zh-CN.d.ts +2 -12
  611. package/lib/locale/lang/zh-CN.js +25 -18
  612. package/lib/locale/lang/zh-HK.d.ts +2 -12
  613. package/lib/locale/lang/zh-HK.js +25 -18
  614. package/lib/locale/lang/zh-TW.d.ts +2 -12
  615. package/lib/locale/lang/zh-TW.js +25 -18
  616. package/lib/nav-bar/NavBar.d.ts +3 -3
  617. package/lib/nav-bar/NavBar.js +18 -17
  618. package/lib/nav-bar/index.css +1 -1
  619. package/lib/nav-bar/index.d.ts +3 -3
  620. package/lib/nav-bar/index.js +14 -8
  621. package/lib/nav-bar/index.less +11 -14
  622. package/lib/notice-bar/NoticeBar.js +17 -16
  623. package/lib/notice-bar/index.css +1 -1
  624. package/lib/notice-bar/index.js +14 -8
  625. package/lib/notice-bar/index.less +11 -13
  626. package/lib/notice-bar/types.js +18 -1
  627. package/lib/notify/Notify.js +15 -14
  628. package/lib/notify/function-call.js +16 -10
  629. package/lib/notify/index.css +1 -1
  630. package/lib/notify/index.js +11 -10
  631. package/lib/notify/index.less +13 -15
  632. package/lib/notify/types.js +18 -1
  633. package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
  634. package/lib/number-keyboard/NumberKeyboard.js +17 -11
  635. package/lib/number-keyboard/NumberKeyboardKey.js +15 -14
  636. package/lib/number-keyboard/index.css +1 -1
  637. package/lib/number-keyboard/index.d.ts +1 -1
  638. package/lib/number-keyboard/index.js +14 -8
  639. package/lib/number-keyboard/index.less +26 -23
  640. package/lib/overlay/Overlay.js +14 -13
  641. package/lib/overlay/index.css +1 -1
  642. package/lib/overlay/index.js +14 -8
  643. package/lib/overlay/index.less +4 -6
  644. package/lib/pagination/Pagination.js +13 -12
  645. package/lib/pagination/index.css +1 -1
  646. package/lib/pagination/index.js +14 -8
  647. package/lib/pagination/index.less +13 -15
  648. package/lib/password-input/PasswordInput.js +13 -12
  649. package/lib/password-input/index.css +1 -1
  650. package/lib/password-input/index.js +14 -8
  651. package/lib/password-input/index.less +20 -22
  652. package/lib/picker/Picker.d.ts +26 -28
  653. package/lib/picker/Picker.js +109 -208
  654. package/lib/picker/PickerColumn.d.ts +21 -30
  655. package/lib/picker/PickerColumn.js +76 -125
  656. package/lib/picker/index.css +1 -1
  657. package/lib/picker/index.d.ts +19 -20
  658. package/lib/picker/index.js +14 -8
  659. package/lib/picker/index.less +31 -20
  660. package/lib/picker/types.d.ts +13 -19
  661. package/lib/picker/types.js +18 -1
  662. package/lib/picker/utils.d.ts +10 -0
  663. package/lib/picker/utils.js +97 -0
  664. package/lib/popover/Popover.d.ts +1 -1
  665. package/lib/popover/Popover.js +17 -16
  666. package/lib/popover/index.css +1 -1
  667. package/lib/popover/index.d.ts +1 -1
  668. package/lib/popover/index.js +14 -8
  669. package/lib/popover/index.less +21 -23
  670. package/lib/popover/types.js +18 -1
  671. package/lib/popup/Popup.d.ts +4 -3
  672. package/lib/popup/Popup.js +33 -24
  673. package/lib/popup/index.css +1 -1
  674. package/lib/popup/index.d.ts +4 -3
  675. package/lib/popup/index.js +14 -8
  676. package/lib/popup/index.less +20 -23
  677. package/lib/popup/shared.js +11 -10
  678. package/lib/popup/types.d.ts +5 -2
  679. package/lib/popup/types.js +18 -1
  680. package/lib/progress/Progress.js +13 -12
  681. package/lib/progress/index.css +1 -1
  682. package/lib/progress/index.js +14 -8
  683. package/lib/progress/index.less +14 -18
  684. package/lib/progress/types.js +18 -1
  685. package/lib/pull-refresh/PullRefresh.js +16 -15
  686. package/lib/pull-refresh/index.css +1 -1
  687. package/lib/pull-refresh/index.js +14 -8
  688. package/lib/pull-refresh/index.less +5 -7
  689. package/lib/radio/Radio.js +18 -12
  690. package/lib/radio/index.css +1 -1
  691. package/lib/radio/index.js +14 -8
  692. package/lib/radio/index.less +12 -14
  693. package/lib/radio-group/RadioGroup.js +14 -13
  694. package/lib/radio-group/index.js +14 -8
  695. package/lib/rate/Rate.js +17 -16
  696. package/lib/rate/index.css +1 -1
  697. package/lib/rate/index.js +14 -8
  698. package/lib/rate/index.less +6 -8
  699. package/lib/row/Row.js +14 -13
  700. package/lib/row/index.js +14 -8
  701. package/lib/search/Search.d.ts +4 -4
  702. package/lib/search/Search.js +24 -23
  703. package/lib/search/index.css +1 -1
  704. package/lib/search/index.d.ts +4 -4
  705. package/lib/search/index.js +14 -8
  706. package/lib/search/index.less +16 -18
  707. package/lib/search/types.js +18 -1
  708. package/lib/share-sheet/ShareSheet.js +15 -14
  709. package/lib/share-sheet/index.css +1 -1
  710. package/lib/share-sheet/index.js +14 -8
  711. package/lib/share-sheet/index.less +17 -19
  712. package/lib/sidebar/Sidebar.js +14 -13
  713. package/lib/sidebar/index.css +1 -1
  714. package/lib/sidebar/index.js +14 -8
  715. package/lib/sidebar/index.less +2 -4
  716. package/lib/sidebar-item/SidebarItem.js +17 -16
  717. package/lib/sidebar-item/index.css +1 -1
  718. package/lib/sidebar-item/index.js +14 -8
  719. package/lib/sidebar-item/index.less +17 -19
  720. package/lib/skeleton/Skeleton.js +13 -12
  721. package/lib/skeleton/index.css +1 -1
  722. package/lib/skeleton/index.js +14 -8
  723. package/lib/skeleton/index.less +14 -16
  724. package/lib/slider/Slider.d.ts +4 -4
  725. package/lib/slider/Slider.js +20 -20
  726. package/lib/slider/index.css +1 -1
  727. package/lib/slider/index.d.ts +4 -4
  728. package/lib/slider/index.js +14 -8
  729. package/lib/slider/index.less +20 -18
  730. package/lib/step/Step.js +16 -15
  731. package/lib/step/index.css +1 -1
  732. package/lib/step/index.js +14 -8
  733. package/lib/step/index.less +15 -17
  734. package/lib/stepper/Stepper.d.ts +1 -1
  735. package/lib/stepper/Stepper.js +14 -13
  736. package/lib/stepper/index.css +1 -1
  737. package/lib/stepper/index.d.ts +1 -1
  738. package/lib/stepper/index.js +14 -8
  739. package/lib/stepper/index.less +20 -25
  740. package/lib/steps/Steps.d.ts +2 -2
  741. package/lib/steps/Steps.js +16 -15
  742. package/lib/steps/index.css +1 -1
  743. package/lib/steps/index.d.ts +2 -2
  744. package/lib/steps/index.js +14 -8
  745. package/lib/steps/index.less +3 -5
  746. package/lib/sticky/Sticky.js +15 -14
  747. package/lib/sticky/index.css +1 -1
  748. package/lib/sticky/index.js +14 -8
  749. package/lib/sticky/index.less +2 -4
  750. package/lib/style/animation.css +1 -1
  751. package/lib/style/animation.less +18 -22
  752. package/lib/style/base.css +1 -1
  753. package/lib/style/base.less +12 -9
  754. package/lib/style/css-variables.css +1 -1
  755. package/lib/style/css-variables.less +76 -61
  756. package/lib/style/mixins/hairline.less +0 -2
  757. package/lib/style/normalize.css +1 -1
  758. package/lib/style/normalize.less +1 -3
  759. package/lib/submit-bar/SubmitBar.js +15 -14
  760. package/lib/submit-bar/index.css +1 -1
  761. package/lib/submit-bar/index.js +14 -8
  762. package/lib/submit-bar/index.less +27 -28
  763. package/lib/swipe/Swipe.js +17 -16
  764. package/lib/swipe/index.css +1 -1
  765. package/lib/swipe/index.js +14 -8
  766. package/lib/swipe/index.less +11 -13
  767. package/lib/swipe/types.js +18 -1
  768. package/lib/swipe-cell/SwipeCell.js +16 -15
  769. package/lib/swipe-cell/index.js +14 -8
  770. package/lib/swipe-cell/types.js +18 -1
  771. package/lib/swipe-item/SwipeItem.js +16 -15
  772. package/lib/swipe-item/index.js +14 -8
  773. package/lib/switch/Switch.js +15 -14
  774. package/lib/switch/index.css +1 -1
  775. package/lib/switch/index.js +14 -8
  776. package/lib/switch/index.less +24 -24
  777. package/lib/tab/Tab.js +20 -19
  778. package/lib/tab/index.js +14 -8
  779. package/lib/tabbar/Tabbar.js +15 -14
  780. package/lib/tabbar/index.css +1 -1
  781. package/lib/tabbar/index.js +14 -8
  782. package/lib/tabbar/index.less +5 -7
  783. package/lib/tabbar-item/TabbarItem.js +18 -17
  784. package/lib/tabbar-item/index.css +1 -1
  785. package/lib/tabbar-item/index.js +14 -8
  786. package/lib/tabbar-item/index.less +9 -11
  787. package/lib/tabs/Tabs.d.ts +2 -4
  788. package/lib/tabs/Tabs.js +38 -45
  789. package/lib/tabs/TabsContent.js +14 -13
  790. package/lib/tabs/TabsTitle.js +14 -13
  791. package/lib/tabs/index.css +1 -1
  792. package/lib/tabs/index.d.ts +2 -4
  793. package/lib/tabs/index.js +14 -8
  794. package/lib/tabs/index.less +17 -20
  795. package/lib/tabs/types.js +18 -1
  796. package/lib/tabs/utils.js +12 -11
  797. package/lib/tag/Tag.js +15 -14
  798. package/lib/tag/index.css +1 -1
  799. package/lib/tag/index.js +14 -8
  800. package/lib/tag/index.less +22 -26
  801. package/lib/time-picker/TimePicker.d.ts +214 -0
  802. package/lib/time-picker/TimePicker.js +95 -0
  803. package/{es/datetime-picker/TimePicker.d.ts → lib/time-picker/index.d.ts} +60 -20
  804. package/lib/time-picker/index.js +37 -0
  805. package/lib/time-picker/style/index.d.ts +1 -0
  806. package/lib/time-picker/style/index.js +3 -0
  807. package/lib/time-picker/style/less.d.ts +1 -0
  808. package/lib/time-picker/style/less.js +3 -0
  809. package/lib/toast/Toast.d.ts +3 -0
  810. package/lib/toast/Toast.js +19 -17
  811. package/lib/toast/function-call.js +17 -11
  812. package/lib/toast/index.css +1 -1
  813. package/lib/toast/index.js +11 -10
  814. package/lib/toast/index.less +19 -21
  815. package/lib/toast/lock-click.js +19 -2
  816. package/lib/toast/types.js +18 -1
  817. package/lib/tree-select/TreeSelect.d.ts +3 -3
  818. package/lib/tree-select/TreeSelect.js +21 -19
  819. package/lib/tree-select/index.css +1 -1
  820. package/lib/tree-select/index.d.ts +3 -3
  821. package/lib/tree-select/index.js +14 -8
  822. package/lib/tree-select/index.less +12 -14
  823. package/lib/uploader/Uploader.d.ts +4 -4
  824. package/lib/uploader/Uploader.js +25 -19
  825. package/lib/uploader/UploaderPreviewItem.js +17 -16
  826. package/lib/uploader/index.css +1 -1
  827. package/lib/uploader/index.d.ts +4 -4
  828. package/lib/uploader/index.js +14 -8
  829. package/lib/uploader/index.less +31 -33
  830. package/lib/uploader/types.d.ts +1 -3
  831. package/lib/uploader/types.js +18 -1
  832. package/lib/uploader/utils.js +11 -10
  833. package/lib/utils/basic.d.ts +1 -0
  834. package/lib/utils/basic.js +21 -2
  835. package/lib/utils/constant.js +19 -2
  836. package/lib/utils/create.js +16 -10
  837. package/lib/utils/deep-assign.js +11 -10
  838. package/lib/utils/deep-clone.js +11 -10
  839. package/lib/utils/dom.js +13 -12
  840. package/lib/utils/format.js +13 -12
  841. package/lib/utils/index.js +18 -17
  842. package/lib/utils/interceptor.d.ts +1 -1
  843. package/lib/utils/interceptor.js +12 -11
  844. package/lib/utils/mount-component.js +13 -12
  845. package/lib/utils/props.js +19 -2
  846. package/lib/utils/validate.js +11 -10
  847. package/lib/utils/with-install.js +11 -10
  848. package/lib/vant.cjs.js +1244 -1656
  849. package/lib/vant.cjs.min.js +1 -1
  850. package/lib/vant.es.js +1244 -1657
  851. package/lib/vant.es.min.js +1244 -1657
  852. package/lib/vant.js +1247 -1658
  853. package/lib/vant.min.js +1 -1
  854. package/package.json +7 -7
  855. package/vetur/attributes.json +155 -95
  856. package/vetur/tags.json +49 -38
  857. package/vetur/web-types.json +450 -265
  858. package/es/action-bar/var.css +0 -0
  859. package/es/action-bar/var.less +0 -4
  860. package/es/action-bar-button/var.css +0 -0
  861. package/es/action-bar-button/var.less +0 -5
  862. package/es/action-bar-icon/var.css +0 -0
  863. package/es/action-bar-icon/var.less +0 -10
  864. package/es/action-sheet/var.css +0 -0
  865. package/es/action-sheet/var.less +0 -23
  866. package/es/address-edit/var.css +0 -0
  867. package/es/address-edit/var.less +0 -6
  868. package/es/address-list/var.css +0 -0
  869. package/es/address-list/var.less +0 -16
  870. package/es/badge/var.css +0 -0
  871. package/es/badge/var.less +0 -12
  872. package/es/button/var.css +0 -0
  873. package/es/button/var.less +0 -36
  874. package/es/calendar/var.css +0 -0
  875. package/es/calendar/var.less +0 -27
  876. package/es/card/var.css +0 -0
  877. package/es/card/var.less +0 -18
  878. package/es/cascader/var.css +0 -0
  879. package/es/cascader/var.less +0 -15
  880. package/es/cell/var.css +0 -0
  881. package/es/cell/var.less +0 -21
  882. package/es/cell-group/var.css +0 -0
  883. package/es/cell-group/var.less +0 -12
  884. package/es/checkbox/var.css +0 -0
  885. package/es/checkbox/var.less +0 -11
  886. package/es/circle/var.css +0 -0
  887. package/es/circle/var.less +0 -9
  888. package/es/collapse-item/var.css +0 -0
  889. package/es/collapse-item/var.less +0 -9
  890. package/es/contact-card/var.css +0 -0
  891. package/es/contact-card/var.less +0 -6
  892. package/es/contact-edit/var.css +0 -0
  893. package/es/contact-edit/var.less +0 -8
  894. package/es/contact-list/var.css +0 -0
  895. package/es/contact-list/var.less +0 -6
  896. package/es/count-down/var.css +0 -0
  897. package/es/count-down/var.less +0 -5
  898. package/es/coupon/var.css +0 -0
  899. package/es/coupon/var.less +0 -19
  900. package/es/coupon-cell/var.css +0 -0
  901. package/es/coupon-cell/var.less +0 -3
  902. package/es/coupon-list/var.css +0 -0
  903. package/es/coupon-list/var.less +0 -10
  904. package/es/datetime-picker/DatePicker.js +0 -250
  905. package/es/datetime-picker/DatetimePicker.d.ts +0 -7
  906. package/es/datetime-picker/DatetimePicker.js +0 -40
  907. package/es/datetime-picker/TimePicker.js +0 -117
  908. package/es/datetime-picker/index.d.ts +0 -12
  909. package/es/datetime-picker/index.js +0 -8
  910. package/es/datetime-picker/types.d.ts +0 -9
  911. package/es/datetime-picker/types.js +0 -0
  912. package/es/datetime-picker/utils.js +0 -63
  913. package/es/dialog/var.css +0 -0
  914. package/es/dialog/var.less +0 -21
  915. package/es/divider/var.css +0 -0
  916. package/es/divider/var.less +0 -10
  917. package/es/dropdown-item/var.css +0 -0
  918. package/es/dropdown-item/var.less +0 -3
  919. package/es/dropdown-menu/var.css +0 -0
  920. package/es/dropdown-menu/var.less +0 -13
  921. package/es/empty/var.css +0 -0
  922. package/es/empty/var.less +0 -10
  923. package/es/field/var.css +0 -0
  924. package/es/field/var.less +0 -21
  925. package/es/grid-item/var.css +0 -0
  926. package/es/grid-item/var.less +0 -8
  927. package/es/image/var.css +0 -0
  928. package/es/image/var.less +0 -9
  929. package/es/image-preview/var.css +0 -0
  930. package/es/image-preview/var.less +0 -11
  931. package/es/index-anchor/var.css +0 -0
  932. package/es/index-anchor/var.less +0 -11
  933. package/es/index-bar/var.css +0 -0
  934. package/es/index-bar/var.less +0 -6
  935. package/es/list/var.css +0 -0
  936. package/es/list/var.less +0 -6
  937. package/es/loading/var.css +0 -0
  938. package/es/loading/var.less +0 -7
  939. package/es/nav-bar/var.css +0 -0
  940. package/es/nav-bar/var.less +0 -10
  941. package/es/notice-bar/var.css +0 -0
  942. package/es/notice-bar/var.less +0 -11
  943. package/es/notify/var.css +0 -0
  944. package/es/notify/var.less +0 -10
  945. package/es/number-keyboard/var.css +0 -0
  946. package/es/number-keyboard/var.less +0 -17
  947. package/es/overlay/var.css +0 -0
  948. package/es/overlay/var.less +0 -4
  949. package/es/pagination/var.css +0 -0
  950. package/es/pagination/var.less +0 -11
  951. package/es/password-input/var.css +0 -0
  952. package/es/password-input/var.less +0 -17
  953. package/es/picker/var.css +0 -0
  954. package/es/picker/var.less +0 -22
  955. package/es/popover/var.css +0 -0
  956. package/es/popover/var.less +0 -15
  957. package/es/popup/var.css +0 -0
  958. package/es/popup/var.less +0 -9
  959. package/es/progress/var.css +0 -0
  960. package/es/progress/var.less +0 -11
  961. package/es/pull-refresh/var.css +0 -0
  962. package/es/pull-refresh/var.less +0 -6
  963. package/es/radio/var.css +0 -0
  964. package/es/radio/var.less +0 -11
  965. package/es/rate/var.css +0 -0
  966. package/es/rate/var.less +0 -7
  967. package/es/search/var.css +0 -0
  968. package/es/search/var.less +0 -13
  969. package/es/share-sheet/var.css +0 -0
  970. package/es/share-sheet/var.less +0 -18
  971. package/es/sidebar/var.css +0 -0
  972. package/es/sidebar/var.less +0 -3
  973. package/es/sidebar-item/var.css +0 -0
  974. package/es/sidebar-item/var.less +0 -15
  975. package/es/skeleton/var.css +0 -0
  976. package/es/skeleton/var.less +0 -9
  977. package/es/slider/var.css +0 -0
  978. package/es/slider/var.less +0 -11
  979. package/es/step/var.css +0 -0
  980. package/es/step/var.less +0 -13
  981. package/es/stepper/var.css +0 -0
  982. package/es/stepper/var.less +0 -15
  983. package/es/steps/var.css +0 -0
  984. package/es/steps/var.less +0 -3
  985. package/es/sticky/var.css +0 -0
  986. package/es/sticky/var.less +0 -3
  987. package/es/style/var.css +0 -0
  988. package/es/style/var.less +0 -74
  989. package/es/submit-bar/var.css +0 -0
  990. package/es/submit-bar/var.less +0 -22
  991. package/es/swipe/var.css +0 -0
  992. package/es/swipe/var.less +0 -8
  993. package/es/switch/var.css +0 -0
  994. package/es/switch/var.less +0 -14
  995. package/es/tabbar/var.css +0 -0
  996. package/es/tabbar/var.less +0 -5
  997. package/es/tabbar-item/var.css +0 -0
  998. package/es/tabbar-item/var.less +0 -9
  999. package/es/tabs/var.css +0 -0
  1000. package/es/tabs/var.less +0 -14
  1001. package/es/tag/var.css +0 -0
  1002. package/es/tag/var.less +0 -18
  1003. package/es/toast/var.css +0 -0
  1004. package/es/toast/var.less +0 -17
  1005. package/es/tree-select/var.css +0 -0
  1006. package/es/tree-select/var.less +0 -10
  1007. package/es/uploader/var.css +0 -0
  1008. package/es/uploader/var.less +0 -27
  1009. package/lib/action-bar/var.css +0 -0
  1010. package/lib/action-bar/var.less +0 -4
  1011. package/lib/action-bar-button/var.css +0 -0
  1012. package/lib/action-bar-button/var.less +0 -5
  1013. package/lib/action-bar-icon/var.css +0 -0
  1014. package/lib/action-bar-icon/var.less +0 -10
  1015. package/lib/action-sheet/var.css +0 -0
  1016. package/lib/action-sheet/var.less +0 -23
  1017. package/lib/address-edit/var.css +0 -0
  1018. package/lib/address-edit/var.less +0 -6
  1019. package/lib/address-list/var.css +0 -0
  1020. package/lib/address-list/var.less +0 -16
  1021. package/lib/badge/var.css +0 -0
  1022. package/lib/badge/var.less +0 -12
  1023. package/lib/button/var.css +0 -0
  1024. package/lib/button/var.less +0 -36
  1025. package/lib/calendar/var.css +0 -0
  1026. package/lib/calendar/var.less +0 -27
  1027. package/lib/card/var.css +0 -0
  1028. package/lib/card/var.less +0 -18
  1029. package/lib/cascader/var.css +0 -0
  1030. package/lib/cascader/var.less +0 -15
  1031. package/lib/cell/var.css +0 -0
  1032. package/lib/cell/var.less +0 -21
  1033. package/lib/cell-group/var.css +0 -0
  1034. package/lib/cell-group/var.less +0 -12
  1035. package/lib/checkbox/var.css +0 -0
  1036. package/lib/checkbox/var.less +0 -11
  1037. package/lib/circle/var.css +0 -0
  1038. package/lib/circle/var.less +0 -9
  1039. package/lib/collapse-item/var.css +0 -0
  1040. package/lib/collapse-item/var.less +0 -9
  1041. package/lib/contact-card/var.css +0 -0
  1042. package/lib/contact-card/var.less +0 -6
  1043. package/lib/contact-edit/var.css +0 -0
  1044. package/lib/contact-edit/var.less +0 -8
  1045. package/lib/contact-list/var.css +0 -0
  1046. package/lib/contact-list/var.less +0 -6
  1047. package/lib/count-down/var.css +0 -0
  1048. package/lib/count-down/var.less +0 -5
  1049. package/lib/coupon/var.css +0 -0
  1050. package/lib/coupon/var.less +0 -19
  1051. package/lib/coupon-cell/var.css +0 -0
  1052. package/lib/coupon-cell/var.less +0 -3
  1053. package/lib/coupon-list/var.css +0 -0
  1054. package/lib/coupon-list/var.less +0 -10
  1055. package/lib/datetime-picker/DatePicker.js +0 -273
  1056. package/lib/datetime-picker/DatetimePicker.d.ts +0 -7
  1057. package/lib/datetime-picker/DatetimePicker.js +0 -63
  1058. package/lib/datetime-picker/TimePicker.js +0 -140
  1059. package/lib/datetime-picker/index.d.ts +0 -12
  1060. package/lib/datetime-picker/index.js +0 -31
  1061. package/lib/datetime-picker/types.d.ts +0 -9
  1062. package/lib/datetime-picker/types.js +0 -3
  1063. package/lib/datetime-picker/utils.js +0 -86
  1064. package/lib/dialog/var.css +0 -0
  1065. package/lib/dialog/var.less +0 -21
  1066. package/lib/divider/var.css +0 -0
  1067. package/lib/divider/var.less +0 -10
  1068. package/lib/dropdown-item/var.css +0 -0
  1069. package/lib/dropdown-item/var.less +0 -3
  1070. package/lib/dropdown-menu/var.css +0 -0
  1071. package/lib/dropdown-menu/var.less +0 -13
  1072. package/lib/empty/var.css +0 -0
  1073. package/lib/empty/var.less +0 -10
  1074. package/lib/field/var.css +0 -0
  1075. package/lib/field/var.less +0 -21
  1076. package/lib/grid-item/var.css +0 -0
  1077. package/lib/grid-item/var.less +0 -8
  1078. package/lib/image/var.css +0 -0
  1079. package/lib/image/var.less +0 -9
  1080. package/lib/image-preview/var.css +0 -0
  1081. package/lib/image-preview/var.less +0 -11
  1082. package/lib/index-anchor/var.css +0 -0
  1083. package/lib/index-anchor/var.less +0 -11
  1084. package/lib/index-bar/var.css +0 -0
  1085. package/lib/index-bar/var.less +0 -6
  1086. package/lib/list/var.css +0 -0
  1087. package/lib/list/var.less +0 -6
  1088. package/lib/loading/var.css +0 -0
  1089. package/lib/loading/var.less +0 -7
  1090. package/lib/nav-bar/var.css +0 -0
  1091. package/lib/nav-bar/var.less +0 -10
  1092. package/lib/notice-bar/var.css +0 -0
  1093. package/lib/notice-bar/var.less +0 -11
  1094. package/lib/notify/var.css +0 -0
  1095. package/lib/notify/var.less +0 -10
  1096. package/lib/number-keyboard/var.css +0 -0
  1097. package/lib/number-keyboard/var.less +0 -17
  1098. package/lib/overlay/var.css +0 -0
  1099. package/lib/overlay/var.less +0 -4
  1100. package/lib/pagination/var.css +0 -0
  1101. package/lib/pagination/var.less +0 -11
  1102. package/lib/password-input/var.css +0 -0
  1103. package/lib/password-input/var.less +0 -17
  1104. package/lib/picker/var.css +0 -0
  1105. package/lib/picker/var.less +0 -22
  1106. package/lib/popover/var.css +0 -0
  1107. package/lib/popover/var.less +0 -15
  1108. package/lib/popup/var.css +0 -0
  1109. package/lib/popup/var.less +0 -9
  1110. package/lib/progress/var.css +0 -0
  1111. package/lib/progress/var.less +0 -11
  1112. package/lib/pull-refresh/var.css +0 -0
  1113. package/lib/pull-refresh/var.less +0 -6
  1114. package/lib/radio/var.css +0 -0
  1115. package/lib/radio/var.less +0 -11
  1116. package/lib/rate/var.css +0 -0
  1117. package/lib/rate/var.less +0 -7
  1118. package/lib/search/var.css +0 -0
  1119. package/lib/search/var.less +0 -13
  1120. package/lib/share-sheet/var.css +0 -0
  1121. package/lib/share-sheet/var.less +0 -18
  1122. package/lib/sidebar/var.css +0 -0
  1123. package/lib/sidebar/var.less +0 -3
  1124. package/lib/sidebar-item/var.css +0 -0
  1125. package/lib/sidebar-item/var.less +0 -15
  1126. package/lib/skeleton/var.css +0 -0
  1127. package/lib/skeleton/var.less +0 -9
  1128. package/lib/slider/var.css +0 -0
  1129. package/lib/slider/var.less +0 -11
  1130. package/lib/step/var.css +0 -0
  1131. package/lib/step/var.less +0 -13
  1132. package/lib/stepper/var.css +0 -0
  1133. package/lib/stepper/var.less +0 -15
  1134. package/lib/steps/var.css +0 -0
  1135. package/lib/steps/var.less +0 -3
  1136. package/lib/sticky/var.css +0 -0
  1137. package/lib/sticky/var.less +0 -3
  1138. package/lib/style/var.css +0 -0
  1139. package/lib/style/var.less +0 -74
  1140. package/lib/submit-bar/var.css +0 -0
  1141. package/lib/submit-bar/var.less +0 -22
  1142. package/lib/swipe/var.css +0 -0
  1143. package/lib/swipe/var.less +0 -8
  1144. package/lib/switch/var.css +0 -0
  1145. package/lib/switch/var.less +0 -14
  1146. package/lib/tabbar/var.css +0 -0
  1147. package/lib/tabbar/var.less +0 -5
  1148. package/lib/tabbar-item/var.css +0 -0
  1149. package/lib/tabbar-item/var.less +0 -9
  1150. package/lib/tabs/var.css +0 -0
  1151. package/lib/tabs/var.less +0 -14
  1152. package/lib/tag/var.css +0 -0
  1153. package/lib/tag/var.less +0 -18
  1154. package/lib/toast/var.css +0 -0
  1155. package/lib/toast/var.less +0 -17
  1156. package/lib/tree-select/var.css +0 -0
  1157. package/lib/tree-select/var.less +0 -10
  1158. package/lib/uploader/var.css +0 -0
  1159. package/lib/uploader/var.less +0 -27
@@ -1,15 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @cascader-header-height: 48px;
4
- @cascader-header-padding: 0 var(--van-padding-md);
5
- @cascader-title-font-size: var(--van-font-size-lg);
6
- @cascader-title-line-height: 20px;
7
- @cascader-close-icon-size: 22px;
8
- @cascader-close-icon-color: var(--van-gray-5);
9
- @cascader-selected-icon-size: 18px;
10
- @cascader-tabs-height: 48px;
11
- @cascader-active-color: var(--van-danger-color);
12
- @cascader-options-height: 384px;
13
- @cascader-option-disabled-color: var(--van-text-color-3);
14
- @cascader-tab-color: var(--van-text-color);
15
- @cascader-unselected-tab-color: var(--van-text-color-2);
package/lib/cell/var.css DELETED
File without changes
package/lib/cell/var.less DELETED
@@ -1,21 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @cell-font-size: var(--van-font-size-md);
4
- @cell-line-height: 24px;
5
- @cell-vertical-padding: 10px;
6
- @cell-horizontal-padding: var(--van-padding-md);
7
- @cell-text-color: var(--van-text-color);
8
- @cell-background-color: var(--van-background-color-light);
9
- @cell-border-color: var(--van-border-color);
10
- @cell-active-color: var(--van-active-color);
11
- @cell-required-color: var(--van-danger-color);
12
- @cell-label-color: var(--van-text-color-2);
13
- @cell-label-font-size: var(--van-font-size-sm);
14
- @cell-label-line-height: var(--van-line-height-sm);
15
- @cell-label-margin-top: var(--van-padding-base);
16
- @cell-value-color: var(--van-text-color-2);
17
- @cell-icon-size: 16px;
18
- @cell-right-icon-color: var(--van-gray-6);
19
- @cell-large-vertical-padding: var(--van-padding-sm);
20
- @cell-large-title-font-size: var(--van-font-size-lg);
21
- @cell-large-label-font-size: var(--van-font-size-md);
File without changes
@@ -1,12 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @cell-group-background-color: var(--van-background-color-light);
4
- @cell-group-title-color: var(--van-text-color-2);
5
- @cell-group-title-padding: var(--van-padding-md) var(--van-padding-md)
6
- var(--van-padding-xs);
7
- @cell-group-title-font-size: var(--van-font-size-md);
8
- @cell-group-title-line-height: 16px;
9
- @cell-group-inset-padding: 0 var(--van-padding-md);
10
- @cell-group-inset-border-radius: var(--van-border-radius-lg);
11
- @cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)
12
- var(--van-padding-xs) var(--van-padding-xl);
File without changes
@@ -1,11 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @checkbox-size: 20px;
4
- @checkbox-border-color: var(--van-gray-5);
5
- @checkbox-transition-duration: var(--van-animation-duration-fast);
6
- @checkbox-label-margin: var(--van-padding-xs);
7
- @checkbox-label-color: var(--van-text-color);
8
- @checkbox-checked-icon-color: var(--van-primary-color);
9
- @checkbox-disabled-icon-color: var(--van-gray-5);
10
- @checkbox-disabled-label-color: var(--van-text-color-3);
11
- @checkbox-disabled-background-color: var(--van-border-color);
File without changes
@@ -1,9 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @circle-size: 100px;
4
- @circle-color: var(--van-primary-color);
5
- @circle-layer-color: var(--van-white);
6
- @circle-text-color: var(--van-text-color);
7
- @circle-text-font-weight: var(--van-font-weight-bold);
8
- @circle-text-font-size: var(--van-font-size-md);
9
- @circle-text-line-height: var(--van-line-height-md);
File without changes
@@ -1,9 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @collapse-item-transition-duration: var(--van-animation-duration-base);
4
- @collapse-item-content-padding: var(--van-padding-sm) var(--van-padding-md);
5
- @collapse-item-content-font-size: var(--van-font-size-md);
6
- @collapse-item-content-line-height: 1.5;
7
- @collapse-item-content-text-color: var(--van-text-color-2);
8
- @collapse-item-content-background-color: var(--van-background-color-light);
9
- @collapse-item-title-disabled-color: var(--van-text-color-3);
File without changes
@@ -1,6 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @contact-card-padding: var(--van-padding-md);
4
- @contact-card-add-icon-size: 40px;
5
- @contact-card-add-icon-color: var(--van-primary-color);
6
- @contact-card-value-line-height: var(--van-line-height-md);
File without changes
@@ -1,8 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @contact-edit-padding: var(--van-padding-md);
4
- @contact-edit-fields-radius: var(--van-border-radius-md);
5
- @contact-edit-buttons-padding: var(--van-padding-xl) 0;
6
- @contact-edit-button-margin-bottom: var(--van-padding-sm);
7
- @contact-edit-button-font-size: var(--van-font-size-lg);
8
- @contact-edit-field-label-width: 4.1em;
File without changes
@@ -1,6 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @contact-list-edit-icon-size: 16px;
4
- @contact-list-add-button-z-index: 999;
5
- @contact-list-item-padding: var(--van-padding-md);
6
- @contact-list-item-radio-icon-color: var(--van-danger-color);
File without changes
@@ -1,5 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @count-down-text-color: var(--van-text-color);
4
- @count-down-font-size: var(--van-font-size-md);
5
- @count-down-line-height: var(--van-line-height-md);
File without changes
@@ -1,19 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm);
4
- @coupon-content-height: 84px;
5
- @coupon-content-padding: 14px 0;
6
- @coupon-content-text-color: var(--van-text-color);
7
- @coupon-background-color: var(--van-background-color-light);
8
- @coupon-active-background-color: var(--van-active-color);
9
- @coupon-border-radius: var(--van-border-radius-lg);
10
- @coupon-box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
11
- @coupon-head-width: 96px;
12
- @coupon-amount-color: var(--van-danger-color);
13
- @coupon-amount-font-size: 30px;
14
- @coupon-currency-font-size: 40%;
15
- @coupon-name-font-size: var(--van-font-size-md);
16
- @coupon-disabled-text-color: var(--van-text-color-2);
17
- @coupon-description-padding: var(--van-padding-xs) var(--van-padding-md);
18
- @coupon-description-border-color: var(--van-border-color);
19
- @coupon-corner-checkbox-icon-color: var(--van-danger-color);
File without changes
@@ -1,3 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @coupon-cell-selected-text-color: var(--van-text-color);
File without changes
@@ -1,10 +0,0 @@
1
- @import '../style/var.less';
2
-
3
- @coupon-list-background-color: var(--van-background-color);
4
- @coupon-list-field-padding: 5px 0 5px var(--van-padding-md);
5
- @coupon-list-exchange-button-height: 32px;
6
- @coupon-list-close-button-height: 40px;
7
- @coupon-list-empty-image-size: 200px;
8
- @coupon-list-empty-tip-color: var(--van-text-color-2);
9
- @coupon-list-empty-tip-font-size: var(--van-font-size-md);
10
- @coupon-list-empty-tip-line-height: var(--van-line-height-md);
@@ -1,273 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
- var __export = (target, all) => {
9
- __markAsModule(target);
10
- for (var name2 in all)
11
- __defProp(target, name2, { get: all[name2], enumerable: true });
12
- };
13
- var __reExport = (target, module2, desc) => {
14
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
15
- for (let key of __getOwnPropNames(module2))
16
- if (!__hasOwnProp.call(target, key) && key !== "default")
17
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
18
- }
19
- return target;
20
- };
21
- var __toModule = (module2) => {
22
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
23
- };
24
- __export(exports, {
25
- default: () => stdin_default
26
- });
27
- var import_vue = __toModule(require("vue"));
28
- var import_vue2 = __toModule(require("vue"));
29
- var import_utils = __toModule(require("../utils"));
30
- var import_utils2 = __toModule(require("./utils"));
31
- var import_use_expose = __toModule(require("../composables/use-expose"));
32
- var import_picker = __toModule(require("../picker"));
33
- const currentYear = new Date().getFullYear();
34
- const [name] = (0, import_utils.createNamespace)("date-picker");
35
- var stdin_default = (0, import_vue2.defineComponent)({
36
- name,
37
- props: (0, import_utils.extend)({}, import_utils2.sharedProps, {
38
- type: (0, import_utils.makeStringProp)("datetime"),
39
- modelValue: Date,
40
- minDate: {
41
- type: Date,
42
- default: () => new Date(currentYear - 10, 0, 1),
43
- validator: import_utils.isDate
44
- },
45
- maxDate: {
46
- type: Date,
47
- default: () => new Date(currentYear + 10, 11, 31),
48
- validator: import_utils.isDate
49
- }
50
- }),
51
- emits: ["confirm", "cancel", "change", "update:modelValue"],
52
- setup(props, {
53
- emit,
54
- slots
55
- }) {
56
- const formatValue = (value) => {
57
- if ((0, import_utils.isDate)(value)) {
58
- const timestamp = (0, import_utils.clamp)(value.getTime(), props.minDate.getTime(), props.maxDate.getTime());
59
- return new Date(timestamp);
60
- }
61
- return void 0;
62
- };
63
- const picker = (0, import_vue2.ref)();
64
- const currentDate = (0, import_vue2.ref)(formatValue(props.modelValue));
65
- const getBoundary = (type, value) => {
66
- const boundary = props[`${type}Date`];
67
- const year = boundary.getFullYear();
68
- let month = 1;
69
- let date = 1;
70
- let hour = 0;
71
- let minute = 0;
72
- if (type === "max") {
73
- month = 12;
74
- date = (0, import_utils2.getMonthEndDay)(value.getFullYear(), value.getMonth() + 1);
75
- hour = 23;
76
- minute = 59;
77
- }
78
- if (value.getFullYear() === year) {
79
- month = boundary.getMonth() + 1;
80
- if (value.getMonth() + 1 === month) {
81
- date = boundary.getDate();
82
- if (value.getDate() === date) {
83
- hour = boundary.getHours();
84
- if (value.getHours() === hour) {
85
- minute = boundary.getMinutes();
86
- }
87
- }
88
- }
89
- }
90
- return {
91
- [`${type}Year`]: year,
92
- [`${type}Month`]: month,
93
- [`${type}Date`]: date,
94
- [`${type}Hour`]: hour,
95
- [`${type}Minute`]: minute
96
- };
97
- };
98
- const ranges = (0, import_vue2.computed)(() => {
99
- const {
100
- maxYear,
101
- maxDate,
102
- maxMonth,
103
- maxHour,
104
- maxMinute
105
- } = getBoundary("max", currentDate.value || props.minDate);
106
- const {
107
- minYear,
108
- minDate,
109
- minMonth,
110
- minHour,
111
- minMinute
112
- } = getBoundary("min", currentDate.value || props.minDate);
113
- let result = [{
114
- type: "year",
115
- range: [minYear, maxYear]
116
- }, {
117
- type: "month",
118
- range: [minMonth, maxMonth]
119
- }, {
120
- type: "day",
121
- range: [minDate, maxDate]
122
- }, {
123
- type: "hour",
124
- range: [minHour, maxHour]
125
- }, {
126
- type: "minute",
127
- range: [minMinute, maxMinute]
128
- }];
129
- switch (props.type) {
130
- case "date":
131
- result = result.slice(0, 3);
132
- break;
133
- case "year-month":
134
- result = result.slice(0, 2);
135
- break;
136
- case "month-day":
137
- result = result.slice(1, 3);
138
- break;
139
- case "datehour":
140
- result = result.slice(0, 4);
141
- break;
142
- }
143
- if (props.columnsOrder) {
144
- const columnsOrder = props.columnsOrder.concat(result.map((column) => column.type));
145
- result.sort((a, b) => columnsOrder.indexOf(a.type) - columnsOrder.indexOf(b.type));
146
- }
147
- return result;
148
- });
149
- const originColumns = (0, import_vue2.computed)(() => ranges.value.map(({
150
- type,
151
- range: rangeArr
152
- }) => {
153
- let values = (0, import_utils2.times)(rangeArr[1] - rangeArr[0] + 1, (index) => (0, import_utils.padZero)(rangeArr[0] + index));
154
- if (props.filter) {
155
- values = props.filter(type, values);
156
- }
157
- return {
158
- type,
159
- values
160
- };
161
- }));
162
- const columns = (0, import_vue2.computed)(() => originColumns.value.map((column) => ({
163
- values: column.values.map((value) => props.formatter(column.type, value))
164
- })));
165
- const updateColumnValue = () => {
166
- const value = currentDate.value || props.minDate;
167
- const {
168
- formatter
169
- } = props;
170
- const values = originColumns.value.map((column) => {
171
- switch (column.type) {
172
- case "year":
173
- return formatter("year", `${value.getFullYear()}`);
174
- case "month":
175
- return formatter("month", (0, import_utils.padZero)(value.getMonth() + 1));
176
- case "day":
177
- return formatter("day", (0, import_utils.padZero)(value.getDate()));
178
- case "hour":
179
- return formatter("hour", (0, import_utils.padZero)(value.getHours()));
180
- case "minute":
181
- return formatter("minute", (0, import_utils.padZero)(value.getMinutes()));
182
- default:
183
- return "";
184
- }
185
- });
186
- (0, import_vue2.nextTick)(() => {
187
- var _a;
188
- (_a = picker.value) == null ? void 0 : _a.setValues(values);
189
- });
190
- };
191
- const updateInnerValue = () => {
192
- const {
193
- type
194
- } = props;
195
- const indexes = picker.value.getIndexes();
196
- const getValue = (type2) => {
197
- let index = 0;
198
- originColumns.value.forEach((column, columnIndex) => {
199
- if (type2 === column.type) {
200
- index = columnIndex;
201
- }
202
- });
203
- const {
204
- values
205
- } = originColumns.value[index];
206
- return (0, import_utils2.getTrueValue)(values[indexes[index]]);
207
- };
208
- let year;
209
- let month;
210
- let day;
211
- if (type === "month-day") {
212
- year = (currentDate.value || props.minDate).getFullYear();
213
- month = getValue("month");
214
- day = getValue("day");
215
- } else {
216
- year = getValue("year");
217
- month = getValue("month");
218
- day = type === "year-month" ? 1 : getValue("day");
219
- }
220
- const maxDay = (0, import_utils2.getMonthEndDay)(year, month);
221
- day = day > maxDay ? maxDay : day;
222
- let hour = 0;
223
- let minute = 0;
224
- if (type === "datehour") {
225
- hour = getValue("hour");
226
- }
227
- if (type === "datetime") {
228
- hour = getValue("hour");
229
- minute = getValue("minute");
230
- }
231
- const value = new Date(year, month - 1, day, hour, minute);
232
- currentDate.value = formatValue(value);
233
- };
234
- const onConfirm = () => {
235
- emit("update:modelValue", currentDate.value);
236
- emit("confirm", currentDate.value);
237
- };
238
- const onCancel = () => emit("cancel");
239
- const onChange = () => {
240
- updateInnerValue();
241
- (0, import_vue2.nextTick)(() => {
242
- (0, import_vue2.nextTick)(() => emit("change", currentDate.value));
243
- });
244
- };
245
- (0, import_vue2.onMounted)(() => {
246
- updateColumnValue();
247
- (0, import_vue2.nextTick)(updateInnerValue);
248
- });
249
- (0, import_vue2.watch)(columns, updateColumnValue);
250
- (0, import_vue2.watch)(currentDate, (value, oldValue) => emit("update:modelValue", oldValue ? value : null));
251
- (0, import_vue2.watch)(() => [props.filter, props.maxDate], updateInnerValue);
252
- (0, import_vue2.watch)(() => props.minDate, () => {
253
- (0, import_vue2.nextTick)(updateInnerValue);
254
- });
255
- (0, import_vue2.watch)(() => props.modelValue, (value) => {
256
- var _a;
257
- value = formatValue(value);
258
- if (value && value.valueOf() !== ((_a = currentDate.value) == null ? void 0 : _a.valueOf())) {
259
- currentDate.value = value;
260
- }
261
- });
262
- (0, import_use_expose.useExpose)({
263
- getPicker: () => picker.value && (0, import_utils2.proxyPickerMethods)(picker.value, updateInnerValue)
264
- });
265
- return () => (0, import_vue.createVNode)(import_picker.Picker, (0, import_vue.mergeProps)({
266
- "ref": picker,
267
- "columns": columns.value,
268
- "onChange": onChange,
269
- "onCancel": onCancel,
270
- "onConfirm": onConfirm
271
- }, (0, import_utils.pick)(props, import_utils2.pickerInheritKeys)), slots);
272
- }
273
- });
@@ -1,7 +0,0 @@
1
- import { type ExtractPropTypes } from 'vue';
2
- declare const datetimePickerProps: any;
3
- export declare type DatetimePickerProps = ExtractPropTypes<typeof datetimePickerProps>;
4
- declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
5
- [x: string]: any;
6
- }>;
7
- export default _default;
@@ -1,63 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
- var __export = (target, all) => {
9
- __markAsModule(target);
10
- for (var name2 in all)
11
- __defProp(target, name2, { get: all[name2], enumerable: true });
12
- };
13
- var __reExport = (target, module2, desc) => {
14
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
15
- for (let key of __getOwnPropNames(module2))
16
- if (!__hasOwnProp.call(target, key) && key !== "default")
17
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
18
- }
19
- return target;
20
- };
21
- var __toModule = (module2) => {
22
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
23
- };
24
- __export(exports, {
25
- default: () => stdin_default
26
- });
27
- var import_vue = __toModule(require("vue"));
28
- var import_vue2 = __toModule(require("vue"));
29
- var import_utils = __toModule(require("../utils"));
30
- var import_use_expose = __toModule(require("../composables/use-expose"));
31
- var import_TimePicker = __toModule(require("./TimePicker"));
32
- var import_DatePicker = __toModule(require("./DatePicker"));
33
- const [name, bem] = (0, import_utils.createNamespace)("datetime-picker");
34
- const timePickerPropKeys = Object.keys(import_TimePicker.default.props);
35
- const datePickerPropKeys = Object.keys(import_DatePicker.default.props);
36
- const datetimePickerProps = (0, import_utils.extend)({}, import_TimePicker.default.props, import_DatePicker.default.props, {
37
- modelValue: [String, Date]
38
- });
39
- var stdin_default = (0, import_vue2.defineComponent)({
40
- name,
41
- props: datetimePickerProps,
42
- setup(props, {
43
- attrs,
44
- slots
45
- }) {
46
- const root = (0, import_vue2.ref)();
47
- (0, import_use_expose.useExpose)({
48
- getPicker: () => {
49
- var _a;
50
- return (_a = root.value) == null ? void 0 : _a.getPicker();
51
- }
52
- });
53
- return () => {
54
- const isTimePicker = props.type === "time";
55
- const Component = isTimePicker ? import_TimePicker.default : import_DatePicker.default;
56
- const inheritProps = (0, import_utils.pick)(props, isTimePicker ? timePickerPropKeys : datePickerPropKeys);
57
- return (0, import_vue.createVNode)(Component, (0, import_vue.mergeProps)({
58
- "ref": root,
59
- "class": bem()
60
- }, inheritProps, attrs), slots);
61
- };
62
- }
63
- });
@@ -1,140 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
- var __export = (target, all) => {
9
- __markAsModule(target);
10
- for (var name2 in all)
11
- __defProp(target, name2, { get: all[name2], enumerable: true });
12
- };
13
- var __reExport = (target, module2, desc) => {
14
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
15
- for (let key of __getOwnPropNames(module2))
16
- if (!__hasOwnProp.call(target, key) && key !== "default")
17
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
18
- }
19
- return target;
20
- };
21
- var __toModule = (module2) => {
22
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
23
- };
24
- __export(exports, {
25
- default: () => stdin_default
26
- });
27
- var import_vue = __toModule(require("vue"));
28
- var import_vue2 = __toModule(require("vue"));
29
- var import_utils = __toModule(require("../utils"));
30
- var import_utils2 = __toModule(require("./utils"));
31
- var import_use_expose = __toModule(require("../composables/use-expose"));
32
- var import_picker = __toModule(require("../picker"));
33
- const [name] = (0, import_utils.createNamespace)("time-picker");
34
- var stdin_default = (0, import_vue2.defineComponent)({
35
- name,
36
- props: (0, import_utils.extend)({}, import_utils2.sharedProps, {
37
- minHour: (0, import_utils.makeNumericProp)(0),
38
- maxHour: (0, import_utils.makeNumericProp)(23),
39
- minMinute: (0, import_utils.makeNumericProp)(0),
40
- maxMinute: (0, import_utils.makeNumericProp)(59),
41
- modelValue: String
42
- }),
43
- emits: ["confirm", "cancel", "change", "update:modelValue"],
44
- setup(props, {
45
- emit,
46
- slots
47
- }) {
48
- const formatValue = (value) => {
49
- const {
50
- minHour,
51
- maxHour,
52
- maxMinute,
53
- minMinute
54
- } = props;
55
- if (!value) {
56
- value = `${(0, import_utils.padZero)(minHour)}:${(0, import_utils.padZero)(minMinute)}`;
57
- }
58
- let [hour, minute] = value.split(":");
59
- hour = (0, import_utils.padZero)((0, import_utils.clamp)(+hour, +minHour, +maxHour));
60
- minute = (0, import_utils.padZero)((0, import_utils.clamp)(+minute, +minMinute, +maxMinute));
61
- return `${hour}:${minute}`;
62
- };
63
- const picker = (0, import_vue2.ref)();
64
- const currentDate = (0, import_vue2.ref)(formatValue(props.modelValue));
65
- const ranges = (0, import_vue2.computed)(() => [{
66
- type: "hour",
67
- range: [+props.minHour, +props.maxHour]
68
- }, {
69
- type: "minute",
70
- range: [+props.minMinute, +props.maxMinute]
71
- }]);
72
- const originColumns = (0, import_vue2.computed)(() => ranges.value.map(({
73
- type,
74
- range: rangeArr
75
- }) => {
76
- let values = (0, import_utils2.times)(rangeArr[1] - rangeArr[0] + 1, (index) => (0, import_utils.padZero)(rangeArr[0] + index));
77
- if (props.filter) {
78
- values = props.filter(type, values);
79
- }
80
- return {
81
- type,
82
- values
83
- };
84
- }));
85
- const columns = (0, import_vue2.computed)(() => originColumns.value.map((column) => ({
86
- values: column.values.map((value) => props.formatter(column.type, value))
87
- })));
88
- const updateColumnValue = () => {
89
- const pair = currentDate.value.split(":");
90
- const values = [props.formatter("hour", pair[0]), props.formatter("minute", pair[1])];
91
- (0, import_vue2.nextTick)(() => {
92
- var _a;
93
- (_a = picker.value) == null ? void 0 : _a.setValues(values);
94
- });
95
- };
96
- const updateInnerValue = () => {
97
- const [hourIndex, minuteIndex] = picker.value.getIndexes();
98
- const [hourColumn, minuteColumn] = originColumns.value;
99
- const hour = hourColumn.values[hourIndex] || hourColumn.values[0];
100
- const minute = minuteColumn.values[minuteIndex] || minuteColumn.values[0];
101
- currentDate.value = formatValue(`${hour}:${minute}`);
102
- updateColumnValue();
103
- };
104
- const onConfirm = () => emit("confirm", currentDate.value);
105
- const onCancel = () => emit("cancel");
106
- const onChange = () => {
107
- updateInnerValue();
108
- (0, import_vue2.nextTick)(() => {
109
- (0, import_vue2.nextTick)(() => emit("change", currentDate.value));
110
- });
111
- };
112
- (0, import_vue2.onMounted)(() => {
113
- updateColumnValue();
114
- (0, import_vue2.nextTick)(updateInnerValue);
115
- });
116
- (0, import_vue2.watch)(columns, updateColumnValue);
117
- (0, import_vue2.watch)(() => [props.filter, props.maxHour, props.minMinute, props.maxMinute], updateInnerValue);
118
- (0, import_vue2.watch)(() => props.minHour, () => {
119
- (0, import_vue2.nextTick)(updateInnerValue);
120
- });
121
- (0, import_vue2.watch)(currentDate, (value) => emit("update:modelValue", value));
122
- (0, import_vue2.watch)(() => props.modelValue, (value) => {
123
- value = formatValue(value);
124
- if (value !== currentDate.value) {
125
- currentDate.value = value;
126
- updateColumnValue();
127
- }
128
- });
129
- (0, import_use_expose.useExpose)({
130
- getPicker: () => picker.value && (0, import_utils2.proxyPickerMethods)(picker.value, updateInnerValue)
131
- });
132
- return () => (0, import_vue.createVNode)(import_picker.Picker, (0, import_vue.mergeProps)({
133
- "ref": picker,
134
- "columns": columns.value,
135
- "onChange": onChange,
136
- "onCancel": onCancel,
137
- "onConfirm": onConfirm
138
- }, (0, import_utils.pick)(props, import_utils2.pickerInheritKeys)), slots);
139
- }
140
- });