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,9 +1,10 @@
1
- declare const _default: import("vue").DefineComponent<{
1
+ import { TimePickerProps } from './TimePicker';
2
+ export declare const TimePicker: import("../utils").WithInstall<import("vue").DefineComponent<{
2
3
  title: StringConstructor;
3
4
  loading: BooleanConstructor;
4
5
  readonly: BooleanConstructor;
5
6
  allowHtml: BooleanConstructor;
6
- itemHeight: {
7
+ optionHeight: {
7
8
  type: (NumberConstructor | StringConstructor)[];
8
9
  default: number;
9
10
  };
@@ -15,18 +16,21 @@ declare const _default: import("vue").DefineComponent<{
15
16
  type: (NumberConstructor | StringConstructor)[];
16
17
  default: number;
17
18
  };
18
- visibleItemCount: {
19
+ visibleOptionNum: {
19
20
  type: (NumberConstructor | StringConstructor)[];
20
21
  default: number;
21
22
  };
22
23
  cancelButtonText: StringConstructor;
23
24
  confirmButtonText: StringConstructor;
24
25
  } & {
25
- filter: import("vue").PropType<(type: string, values: string[]) => string[]>;
26
- columnsOrder: import("vue").PropType<import("./types").DatetimePickerColumnType[]>;
26
+ modelValue: {
27
+ type: import("vue").PropType<string[]>;
28
+ default: () => never[];
29
+ };
30
+ filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[]) => import("..").PickerOption[]>;
27
31
  formatter: {
28
- type: import("vue").PropType<(type: string, value: string) => string>;
29
- default: (type: string, value: string) => string;
32
+ type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
33
+ default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
30
34
  };
31
35
  } & {
32
36
  minHour: {
@@ -45,13 +49,24 @@ declare const _default: import("vue").DefineComponent<{
45
49
  type: (NumberConstructor | StringConstructor)[];
46
50
  default: number;
47
51
  };
48
- modelValue: StringConstructor;
52
+ minSecond: {
53
+ type: (NumberConstructor | StringConstructor)[];
54
+ default: number;
55
+ };
56
+ maxSecond: {
57
+ type: (NumberConstructor | StringConstructor)[];
58
+ default: number;
59
+ };
60
+ columnsType: {
61
+ type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
62
+ default: () => string[];
63
+ };
49
64
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
65
  title: StringConstructor;
51
66
  loading: BooleanConstructor;
52
67
  readonly: BooleanConstructor;
53
68
  allowHtml: BooleanConstructor;
54
- itemHeight: {
69
+ optionHeight: {
55
70
  type: (NumberConstructor | StringConstructor)[];
56
71
  default: number;
57
72
  };
@@ -63,18 +78,21 @@ declare const _default: import("vue").DefineComponent<{
63
78
  type: (NumberConstructor | StringConstructor)[];
64
79
  default: number;
65
80
  };
66
- visibleItemCount: {
81
+ visibleOptionNum: {
67
82
  type: (NumberConstructor | StringConstructor)[];
68
83
  default: number;
69
84
  };
70
85
  cancelButtonText: StringConstructor;
71
86
  confirmButtonText: StringConstructor;
72
87
  } & {
73
- filter: import("vue").PropType<(type: string, values: string[]) => string[]>;
74
- columnsOrder: import("vue").PropType<import("./types").DatetimePickerColumnType[]>;
88
+ modelValue: {
89
+ type: import("vue").PropType<string[]>;
90
+ default: () => never[];
91
+ };
92
+ filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[]) => import("..").PickerOption[]>;
75
93
  formatter: {
76
- type: import("vue").PropType<(type: string, value: string) => string>;
77
- default: (type: string, value: string) => string;
94
+ type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
95
+ default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
78
96
  };
79
97
  } & {
80
98
  minHour: {
@@ -93,24 +111,46 @@ declare const _default: import("vue").DefineComponent<{
93
111
  type: (NumberConstructor | StringConstructor)[];
94
112
  default: number;
95
113
  };
96
- modelValue: StringConstructor;
114
+ minSecond: {
115
+ type: (NumberConstructor | StringConstructor)[];
116
+ default: number;
117
+ };
118
+ maxSecond: {
119
+ type: (NumberConstructor | StringConstructor)[];
120
+ default: number;
121
+ };
122
+ columnsType: {
123
+ type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
124
+ default: () => string[];
125
+ };
97
126
  }>> & {
98
127
  onChange?: ((...args: any[]) => any) | undefined;
99
128
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
100
129
  onCancel?: ((...args: any[]) => any) | undefined;
101
130
  onConfirm?: ((...args: any[]) => any) | undefined;
102
131
  }, {
103
- formatter: (type: string, value: string) => string;
132
+ formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
133
+ modelValue: string[];
104
134
  readonly: boolean;
105
135
  loading: boolean;
106
136
  allowHtml: boolean;
107
- itemHeight: string | number;
137
+ optionHeight: string | number;
108
138
  showToolbar: boolean;
109
139
  swipeDuration: string | number;
110
- visibleItemCount: string | number;
140
+ visibleOptionNum: string | number;
141
+ columnsType: import("./TimePicker").TimePickerColumnType[];
111
142
  minHour: string | number;
112
143
  maxHour: string | number;
113
144
  minMinute: string | number;
114
145
  maxMinute: string | number;
115
- }>;
116
- export default _default;
146
+ minSecond: string | number;
147
+ maxSecond: string | number;
148
+ }>>;
149
+ export default TimePicker;
150
+ export type { TimePickerProps };
151
+ export type { TimePickerColumnType } from './TimePicker';
152
+ declare module 'vue' {
153
+ interface GlobalComponents {
154
+ VanTimePicker: typeof TimePicker;
155
+ }
156
+ }
@@ -0,0 +1,37 @@
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
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var stdin_exports = {};
29
+ __export(stdin_exports, {
30
+ TimePicker: () => TimePicker,
31
+ default: () => stdin_default
32
+ });
33
+ var import_utils = require("../utils");
34
+ var import_TimePicker = __toESM(require("./TimePicker"));
35
+ const TimePicker = (0, import_utils.withInstall)(import_TimePicker.default);
36
+ var stdin_default = TimePicker;
37
+ module.exports = __toCommonJS(stdin_exports);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ require("../../style/base.css");
2
+ require("../../loading/index.css");
3
+ require("../../picker/index.css");
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ require("../../style/base.less");
2
+ require("../../loading/index.less");
3
+ require("../../picker/index.less");
@@ -19,6 +19,7 @@ declare const toastProps: {
19
19
  type: PropType<ToastPosition>;
20
20
  default: ToastPosition;
21
21
  };
22
+ teleport: PropType<string | import("vue").RendererElement | null | undefined>;
22
23
  className: PropType<unknown>;
23
24
  iconPrefix: StringConstructor;
24
25
  transition: {
@@ -51,6 +52,7 @@ declare const _default: import("vue").DefineComponent<{
51
52
  type: PropType<ToastPosition>;
52
53
  default: ToastPosition;
53
54
  };
55
+ teleport: PropType<string | import("vue").RendererElement | null | undefined>;
54
56
  className: PropType<unknown>;
55
57
  iconPrefix: StringConstructor;
56
58
  transition: {
@@ -81,6 +83,7 @@ declare const _default: import("vue").DefineComponent<{
81
83
  type: PropType<ToastPosition>;
82
84
  default: ToastPosition;
83
85
  };
86
+ teleport: PropType<string | import("vue").RendererElement | null | undefined>;
84
87
  className: PropType<unknown>;
85
88
  iconPrefix: StringConstructor;
86
89
  transition: {
@@ -1,38 +1,38 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
6
  var __export = (target, all) => {
9
- __markAsModule(target);
10
7
  for (var name2 in all)
11
8
  __defProp(target, name2, { get: all[name2], enumerable: true });
12
9
  };
13
- var __reExport = (target, module2, desc) => {
10
+ var __reExport = (target, module2, copyDefault, desc) => {
14
11
  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
15
12
  for (let key of __getOwnPropNames(module2))
16
- if (!__hasOwnProp.call(target, key) && key !== "default")
13
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
17
14
  __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
18
15
  }
19
16
  return target;
20
17
  };
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, {
18
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
+ return (module2, temp) => {
20
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
+ };
22
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
23
+ var stdin_exports = {};
24
+ __export(stdin_exports, {
25
25
  default: () => stdin_default
26
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_lock_click = __toModule(require("./lock-click"));
31
- var import_icon = __toModule(require("../icon"));
32
- var import_popup = __toModule(require("../popup"));
33
- var import_loading = __toModule(require("../loading"));
27
+ var import_vue = require("vue");
28
+ var import_vue2 = require("vue");
29
+ var import_utils = require("../utils");
30
+ var import_lock_click = require("./lock-click");
31
+ var import_icon = require("../icon");
32
+ var import_popup = require("../popup");
33
+ var import_loading = require("../loading");
34
34
  const [name, bem] = (0, import_utils.createNamespace)("toast");
35
- const popupInheritProps = ["show", "overlay", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
35
+ const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
36
36
  const toastProps = {
37
37
  icon: String,
38
38
  show: Boolean,
@@ -42,6 +42,7 @@ const toastProps = {
42
42
  iconSize: import_utils.numericProp,
43
43
  duration: (0, import_utils.makeNumberProp)(2e3),
44
44
  position: (0, import_utils.makeStringProp)("middle"),
45
+ teleport: [String, Object],
45
46
  className: import_utils.unknownProp,
46
47
  iconPrefix: String,
47
48
  transition: (0, import_utils.makeStringProp)("van-fade"),
@@ -138,3 +139,4 @@ var stdin_default = (0, import_vue2.defineComponent)({
138
139
  });
139
140
  }
140
141
  });
142
+ module.exports = __toCommonJS(stdin_exports);
@@ -6,29 +6,34 @@ var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
8
  var __export = (target, all) => {
9
- __markAsModule(target);
10
9
  for (var name in all)
11
10
  __defProp(target, name, { get: all[name], enumerable: true });
12
11
  };
13
- var __reExport = (target, module2, desc) => {
12
+ var __reExport = (target, module2, copyDefault, desc) => {
14
13
  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
15
14
  for (let key of __getOwnPropNames(module2))
16
- if (!__hasOwnProp.call(target, key) && key !== "default")
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
17
16
  __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
18
17
  }
19
18
  return target;
20
19
  };
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);
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
23
22
  };
24
- __export(exports, {
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var stdin_exports = {};
29
+ __export(stdin_exports, {
25
30
  Toast: () => Toast
26
31
  });
27
- var import_vue = __toModule(require("vue"));
28
- var import_vue2 = __toModule(require("vue"));
29
- var import_utils = __toModule(require("../utils"));
30
- var import_mount_component = __toModule(require("../utils/mount-component"));
31
- var import_Toast = __toModule(require("./Toast"));
32
+ var import_vue = require("vue");
33
+ var import_vue2 = require("vue");
34
+ var import_utils = require("../utils");
35
+ var import_mount_component = require("../utils/mount-component");
36
+ var import_Toast = __toESM(require("./Toast"));
32
37
  const defaultOptions = {
33
38
  icon: "",
34
39
  type: "text",
@@ -161,3 +166,4 @@ Toast.install = (app) => {
161
166
  app.use((0, import_utils.withInstall)(import_Toast.default));
162
167
  app.config.globalProperties.$toast = Toast;
163
168
  };
169
+ module.exports = __toCommonJS(stdin_exports);
@@ -1 +1 @@
1
- :root{--van-toast-max-width: 70%;--van-toast-font-size: var(--van-font-size-md);--van-toast-text-color: var(--van-white);--van-toast-loading-icon-color: var(--van-white);--van-toast-line-height: var(--van-line-height-md);--van-toast-border-radius: var(--van-border-radius-lg);--van-toast-background-color: rgba(0, 0, 0, .7);--van-toast-icon-size: 36px;--van-toast-text-min-width: 96px;--van-toast-text-padding: var(--van-padding-xs) var(--van-padding-sm);--van-toast-default-padding: var(--van-padding-md);--van-toast-default-width: 88px;--van-toast-default-min-height: 88px;--van-toast-position-top-distance: 20%;--van-toast-position-bottom-distance: 20%}.van-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--van-animation-duration-fast);width:var(--van-toast-default-width);max-width:var(--van-toast-max-width);min-height:var(--van-toast-default-min-height);padding:var(--van-toast-default-padding);color:var(--van-toast-text-color);font-size:var(--van-toast-font-size);line-height:var(--van-toast-line-height);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--van-toast-background-color);border-radius:var(--van-toast-border-radius)}.van-toast--unclickable{overflow:hidden;cursor:not-allowed}.van-toast--unclickable *{pointer-events:none}.van-toast--text,.van-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--van-toast-text-min-width);min-height:0;padding:var(--van-toast-text-padding)}.van-toast--text .van-toast__text,.van-toast--html .van-toast__text{margin-top:0}.van-toast--top{top:var(--van-toast-position-top-distance)}.van-toast--bottom{top:auto;bottom:var(--van-toast-position-bottom-distance)}.van-toast__icon{font-size:var(--van-toast-icon-size)}.van-toast__loading{padding:var(--van-padding-base);color:var(--van-toast-loading-icon-color)}.van-toast__text{margin-top:var(--van-padding-xs)}
1
+ body{--van-toast-max-width: 70%;--van-toast-font-size: var(--van-font-size-md);--van-toast-text-color: var(--van-white);--van-toast-loading-icon-color: var(--van-white);--van-toast-line-height: var(--van-line-height-md);--van-toast-radius: var(--van-radius-lg);--van-toast-background: rgba(0, 0, 0, .7);--van-toast-icon-size: 36px;--van-toast-text-min-width: 96px;--van-toast-text-padding: var(--van-padding-xs) var(--van-padding-sm);--van-toast-default-padding: var(--van-padding-md);--van-toast-default-width: 88px;--van-toast-default-min-height: 88px;--van-toast-position-top-distance: 20%;--van-toast-position-bottom-distance: 20%}.van-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--van-duration-fast);width:var(--van-toast-default-width);max-width:var(--van-toast-max-width);min-height:var(--van-toast-default-min-height);padding:var(--van-toast-default-padding);color:var(--van-toast-text-color);font-size:var(--van-toast-font-size);line-height:var(--van-toast-line-height);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--van-toast-background);border-radius:var(--van-toast-radius)}.van-toast--unclickable{overflow:hidden;cursor:not-allowed}.van-toast--unclickable *{pointer-events:none}.van-toast--text,.van-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--van-toast-text-min-width);min-height:0;padding:var(--van-toast-text-padding)}.van-toast--text .van-toast__text,.van-toast--html .van-toast__text{margin-top:0}.van-toast--top{top:var(--van-toast-position-top-distance)}.van-toast--bottom{top:auto;bottom:var(--van-toast-position-bottom-distance)}.van-toast__icon{font-size:var(--van-toast-icon-size)}.van-toast__loading{padding:var(--van-padding-base);color:var(--van-toast-loading-icon-color)}.van-toast__text{margin-top:var(--van-padding-xs)}
@@ -1,29 +1,30 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
6
  var __export = (target, all) => {
9
- __markAsModule(target);
10
7
  for (var name in all)
11
8
  __defProp(target, name, { get: all[name], enumerable: true });
12
9
  };
13
- var __reExport = (target, module2, desc) => {
10
+ var __reExport = (target, module2, copyDefault, desc) => {
14
11
  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
15
12
  for (let key of __getOwnPropNames(module2))
16
- if (!__hasOwnProp.call(target, key) && key !== "default")
13
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
17
14
  __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
18
15
  }
19
16
  return target;
20
17
  };
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, {
18
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
+ return (module2, temp) => {
20
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
+ };
22
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
23
+ var stdin_exports = {};
24
+ __export(stdin_exports, {
25
25
  Toast: () => import_function_call.Toast,
26
26
  default: () => stdin_default
27
27
  });
28
- var import_function_call = __toModule(require("./function-call"));
28
+ var import_function_call = require("./function-call");
29
29
  var stdin_default = import_function_call.Toast;
30
+ module.exports = __toCommonJS(stdin_exports);
@@ -1,21 +1,19 @@
1
- @import './var.less';
2
-
3
- :root {
4
- --van-toast-max-width: @toast-max-width;
5
- --van-toast-font-size: @toast-font-size;
6
- --van-toast-text-color: @toast-text-color;
7
- --van-toast-loading-icon-color: @toast-loading-icon-color;
8
- --van-toast-line-height: @toast-line-height;
9
- --van-toast-border-radius: @toast-border-radius;
10
- --van-toast-background-color: @toast-background-color;
11
- --van-toast-icon-size: @toast-icon-size;
12
- --van-toast-text-min-width: @toast-text-min-width;
13
- --van-toast-text-padding: @toast-text-padding;
14
- --van-toast-default-padding: @toast-default-padding;
15
- --van-toast-default-width: @toast-default-width;
16
- --van-toast-default-min-height: @toast-default-min-height;
17
- --van-toast-position-top-distance: @toast-position-top-distance;
18
- --van-toast-position-bottom-distance: @toast-position-bottom-distance;
1
+ body {
2
+ --van-toast-max-width: 70%;
3
+ --van-toast-font-size: var(--van-font-size-md);
4
+ --van-toast-text-color: var(--van-white);
5
+ --van-toast-loading-icon-color: var(--van-white);
6
+ --van-toast-line-height: var(--van-line-height-md);
7
+ --van-toast-radius: var(--van-radius-lg);
8
+ --van-toast-background: rgba(0, 0, 0, 0.7);
9
+ --van-toast-icon-size: 36px;
10
+ --van-toast-text-min-width: 96px;
11
+ --van-toast-text-padding: var(--van-padding-xs) var(--van-padding-sm);
12
+ --van-toast-default-padding: var(--van-padding-md);
13
+ --van-toast-default-width: 88px;
14
+ --van-toast-default-min-height: 88px;
15
+ --van-toast-position-top-distance: 20%;
16
+ --van-toast-position-bottom-distance: 20%;
19
17
  }
20
18
 
21
19
  .van-toast {
@@ -24,7 +22,7 @@
24
22
  align-items: center;
25
23
  justify-content: center;
26
24
  box-sizing: content-box;
27
- transition: all var(--van-animation-duration-fast);
25
+ transition: all var(--van-duration-fast);
28
26
 
29
27
  // hack for avoid max-width when use left & fixed
30
28
  width: var(--van-toast-default-width);
@@ -40,8 +38,8 @@
40
38
  text-align: center;
41
39
  // https://github.com/youzan/vant/issues/8959
42
40
  word-break: break-all;
43
- background: var(--van-toast-background-color);
44
- border-radius: var(--van-toast-border-radius);
41
+ background: var(--van-toast-background);
42
+ border-radius: var(--van-toast-radius);
45
43
 
46
44
  &--unclickable {
47
45
  // lock scroll
@@ -1,11 +1,27 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2
5
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
3
6
  var __export = (target, all) => {
4
- __markAsModule(target);
5
7
  for (var name in all)
6
8
  __defProp(target, name, { get: all[name], enumerable: true });
7
9
  };
8
- __export(exports, {
10
+ var __reExport = (target, module2, copyDefault, desc) => {
11
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
+ for (let key of __getOwnPropNames(module2))
13
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
15
+ }
16
+ return target;
17
+ };
18
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
+ return (module2, temp) => {
20
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
+ };
22
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
23
+ var stdin_exports = {};
24
+ __export(stdin_exports, {
9
25
  lockClick: () => lockClick
10
26
  });
11
27
  let lockCount = 0;
@@ -22,3 +38,4 @@ function lockClick(lock) {
22
38
  }
23
39
  }
24
40
  }
41
+ module.exports = __toCommonJS(stdin_exports);
@@ -1,3 +1,20 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2
5
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
3
- __markAsModule(exports);
6
+ var __reExport = (target, module2, copyDefault, desc) => {
7
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
8
+ for (let key of __getOwnPropNames(module2))
9
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
10
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ }
12
+ return target;
13
+ };
14
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
15
+ return (module2, temp) => {
16
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
17
+ };
18
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ var stdin_exports = {};
20
+ module.exports = __toCommonJS(stdin_exports);
@@ -64,7 +64,7 @@ declare const _default: import("vue").DefineComponent<{
64
64
  type: PropType<string | number | (string | number)[]>;
65
65
  default: number;
66
66
  };
67
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click-item" | "click-nav" | "update:activeId" | "update:mainActiveIndex")[], "click-item" | "click-nav" | "update:activeId" | "update:mainActiveIndex", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
67
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex")[], "clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
68
68
  max: {
69
69
  type: (NumberConstructor | StringConstructor)[];
70
70
  default: number;
@@ -90,8 +90,8 @@ declare const _default: import("vue").DefineComponent<{
90
90
  default: number;
91
91
  };
92
92
  }>> & {
93
- "onClick-item"?: ((...args: any[]) => any) | undefined;
94
- "onClick-nav"?: ((...args: any[]) => any) | undefined;
93
+ onClickItem?: ((...args: any[]) => any) | undefined;
94
+ onClickNav?: ((...args: any[]) => any) | undefined;
95
95
  "onUpdate:activeId"?: ((...args: any[]) => any) | undefined;
96
96
  "onUpdate:mainActiveIndex"?: ((...args: any[]) => any) | undefined;
97
97
  }, {
@@ -1,35 +1,35 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
6
  var __export = (target, all) => {
9
- __markAsModule(target);
10
7
  for (var name2 in all)
11
8
  __defProp(target, name2, { get: all[name2], enumerable: true });
12
9
  };
13
- var __reExport = (target, module2, desc) => {
10
+ var __reExport = (target, module2, copyDefault, desc) => {
14
11
  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
15
12
  for (let key of __getOwnPropNames(module2))
16
- if (!__hasOwnProp.call(target, key) && key !== "default")
13
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
17
14
  __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
18
15
  }
19
16
  return target;
20
17
  };
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, {
18
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
+ return (module2, temp) => {
20
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
+ };
22
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
23
+ var stdin_exports = {};
24
+ __export(stdin_exports, {
25
25
  default: () => stdin_default
26
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_icon = __toModule(require("../icon"));
31
- var import_sidebar = __toModule(require("../sidebar"));
32
- var import_sidebar_item = __toModule(require("../sidebar-item"));
27
+ var import_vue = require("vue");
28
+ var import_vue2 = require("vue");
29
+ var import_utils = require("../utils");
30
+ var import_icon = require("../icon");
31
+ var import_sidebar = require("../sidebar");
32
+ var import_sidebar_item = require("../sidebar-item");
33
33
  const [name, bem] = (0, import_utils.createNamespace)("tree-select");
34
34
  const treeSelectProps = {
35
35
  max: (0, import_utils.makeNumericProp)(Infinity),
@@ -45,7 +45,7 @@ const treeSelectProps = {
45
45
  var stdin_default = (0, import_vue2.defineComponent)({
46
46
  name,
47
47
  props: treeSelectProps,
48
- emits: ["click-nav", "click-item", "update:activeId", "update:mainActiveIndex"],
48
+ emits: ["clickNav", "clickItem", "update:activeId", "update:mainActiveIndex"],
49
49
  setup(props, {
50
50
  emit,
51
51
  slots
@@ -69,7 +69,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
69
69
  activeId = item.id;
70
70
  }
71
71
  emit("update:activeId", activeId);
72
- emit("click-item", item);
72
+ emit("clickItem", item);
73
73
  };
74
74
  return (0, import_vue.createVNode)("div", {
75
75
  "key": item.id,
@@ -85,15 +85,16 @@ var stdin_default = (0, import_vue2.defineComponent)({
85
85
  };
86
86
  const onSidebarChange = (index) => {
87
87
  emit("update:mainActiveIndex", index);
88
- emit("click-nav", index);
89
88
  };
89
+ const onClickSidebarItem = (index) => emit("clickNav", index);
90
90
  const renderSidebar = () => {
91
91
  const Items = props.items.map((item) => (0, import_vue.createVNode)(import_sidebar_item.SidebarItem, {
92
92
  "dot": item.dot,
93
93
  "title": item.text,
94
94
  "badge": item.badge,
95
95
  "class": [bem("nav-item"), item.className],
96
- "disabled": item.disabled
96
+ "disabled": item.disabled,
97
+ "onClick": onClickSidebarItem
97
98
  }, null));
98
99
  return (0, import_vue.createVNode)(import_sidebar.Sidebar, {
99
100
  "class": bem("nav"),
@@ -122,3 +123,4 @@ var stdin_default = (0, import_vue2.defineComponent)({
122
123
  }, [renderContent()])]);
123
124
  }
124
125
  });
126
+ module.exports = __toCommonJS(stdin_exports);
@@ -1 +1 @@
1
- :root{--van-tree-select-font-size: var(--van-font-size-md);--van-tree-select-nav-background-color: var(--van-background-color);--van-tree-select-content-background-color: var(--van-background-color-light);--van-tree-select-nav-item-padding: 14px var(--van-padding-sm);--van-tree-select-item-height: 48px;--van-tree-select-item-active-color: var(--van-danger-color);--van-tree-select-item-disabled-color: var(--van-gray-5);--van-tree-select-item-selected-size: 16px}.van-tree-select{position:relative;display:flex;font-size:var(--van-tree-select-font-size)}.van-tree-select__nav{flex:1;overflow-y:auto;background:var(--van-tree-select-nav-background-color);-webkit-overflow-scrolling:touch}.van-tree-select__nav-item{padding:var(--van-tree-select-nav-item-padding)}.van-tree-select__content{flex:2;overflow-y:auto;background:var(--van-tree-select-content-background-color);-webkit-overflow-scrolling:touch}.van-tree-select__item{position:relative;padding:0 32px 0 var(--van-padding-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-tree-select-item-height);-webkit-user-select:none;user-select:none;cursor:pointer}.van-tree-select__item--active{color:var(--van-tree-select-item-active-color)}.van-tree-select__item:active{background-color:var(--van-active-color)}.van-tree-select__item--disabled{color:var(--van-tree-select-item-disabled-color);cursor:not-allowed}.van-tree-select__item--disabled:active{background-color:transparent}.van-tree-select__selected{position:absolute;top:50%;right:var(--van-padding-md);margin-top:calc(var(--van-padding-xs) * -1);font-size:var(--van-tree-select-item-selected-size)}
1
+ body{--van-tree-select-font-size: var(--van-font-size-md);--van-tree-select-nav-background: var(--van-background);--van-tree-select-content-background: var(--van-background-2);--van-tree-select-nav-item-padding: 14px var(--van-padding-sm);--van-tree-select-item-height: 48px;--van-tree-select-item-active-color: var(--van-primary-color);--van-tree-select-item-disabled-color: var(--van-gray-5);--van-tree-select-item-selected-size: 16px}.van-tree-select{position:relative;display:flex;font-size:var(--van-tree-select-font-size)}.van-tree-select__nav{flex:1;overflow-y:auto;background:var(--van-tree-select-nav-background);-webkit-overflow-scrolling:touch}.van-tree-select__nav-item{padding:var(--van-tree-select-nav-item-padding)}.van-tree-select__content{flex:2;overflow-y:auto;background:var(--van-tree-select-content-background);-webkit-overflow-scrolling:touch}.van-tree-select__item{position:relative;padding:0 32px 0 var(--van-padding-md);font-weight:var(--van-font-bold);line-height:var(--van-tree-select-item-height);-webkit-user-select:none;user-select:none;cursor:pointer}.van-tree-select__item--active{color:var(--van-tree-select-item-active-color)}.van-tree-select__item:active{background-color:var(--van-active-color)}.van-tree-select__item--disabled{color:var(--van-tree-select-item-disabled-color);cursor:not-allowed}.van-tree-select__item--disabled:active{background-color:transparent}.van-tree-select__selected{position:absolute;top:50%;right:var(--van-padding-md);margin-top:calc(var(--van-padding-xs) * -1);font-size:var(--van-tree-select-item-selected-size)}