vant 4.0.0-alpha.4 → 4.0.0-beta.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 (638) hide show
  1. package/LICENSE +10 -0
  2. package/README.md +4 -4
  3. package/changelog.generated.md +250 -0
  4. package/es/action-bar/ActionBar.d.ts +4 -0
  5. package/es/action-bar/ActionBar.mjs +13 -2
  6. package/es/action-bar/index.d.ts +3 -0
  7. package/es/address-edit/AddressEdit.mjs +2 -2
  8. package/es/calendar/Calendar.mjs +9 -4
  9. package/es/calendar/types.d.ts +1 -0
  10. package/es/cell/Cell.d.ts +1 -1
  11. package/es/cell/index.d.ts +1 -1
  12. package/es/collapse-item/CollapseItem.d.ts +1 -1
  13. package/es/collapse-item/index.d.ts +1 -1
  14. package/es/date-picker/utils.d.ts +1 -1
  15. package/es/dialog/Dialog.d.ts +9 -1
  16. package/es/dialog/Dialog.mjs +6 -0
  17. package/es/dialog/function-call.d.ts +6 -184
  18. package/es/dialog/function-call.mjs +45 -45
  19. package/es/dialog/index.d.ts +130 -3
  20. package/es/dialog/index.mjs +16 -2
  21. package/es/dialog/types.d.ts +3 -7
  22. package/es/field/Field.d.ts +4 -2
  23. package/es/field/Field.mjs +7 -1
  24. package/es/field/index.d.ts +4 -2
  25. package/es/image-preview/function-call.d.ts +1 -134
  26. package/es/image-preview/function-call.mjs +3 -7
  27. package/es/image-preview/index.d.ts +129 -2
  28. package/es/image-preview/index.mjs +6 -2
  29. package/es/index.d.ts +1 -1
  30. package/es/index.mjs +1 -1
  31. package/es/locale/index.d.ts +1 -1
  32. package/es/notify/function-call.d.ts +4 -100
  33. package/es/notify/function-call.mjs +25 -29
  34. package/es/notify/index.d.ts +91 -2
  35. package/es/notify/index.mjs +14 -2
  36. package/es/notify/types.d.ts +0 -6
  37. package/es/popup/Popup.mjs +1 -1
  38. package/es/pull-refresh/PullRefresh.d.ts +2 -1
  39. package/es/pull-refresh/PullRefresh.mjs +5 -1
  40. package/es/pull-refresh/index.d.ts +2 -1
  41. package/es/submit-bar/SubmitBar.d.ts +4 -0
  42. package/es/submit-bar/SubmitBar.mjs +13 -2
  43. package/es/submit-bar/index.d.ts +3 -0
  44. package/es/switch/Switch.mjs +2 -1
  45. package/es/toast/function-call.d.ts +10 -18
  46. package/es/toast/function-call.mjs +22 -20
  47. package/es/toast/index.d.ts +76 -2
  48. package/es/toast/index.mjs +22 -2
  49. package/es/toast/types.d.ts +10 -7
  50. package/es/uploader/Uploader.d.ts +3 -3
  51. package/es/uploader/Uploader.mjs +3 -3
  52. package/es/uploader/index.d.ts +2 -2
  53. package/es/utils/basic.d.ts +3 -3
  54. package/es/utils/create.d.ts +1 -1
  55. package/lib/action-bar/ActionBar.d.ts +4 -0
  56. package/lib/action-bar/ActionBar.js +12 -1
  57. package/lib/action-bar/index.d.ts +3 -0
  58. package/lib/address-edit/AddressEdit.js +1 -1
  59. package/lib/calendar/Calendar.js +8 -3
  60. package/lib/calendar/types.d.ts +1 -0
  61. package/lib/cell/Cell.d.ts +1 -1
  62. package/lib/cell/index.d.ts +1 -1
  63. package/lib/collapse-item/CollapseItem.d.ts +1 -1
  64. package/lib/collapse-item/index.d.ts +1 -1
  65. package/lib/date-picker/utils.d.ts +1 -1
  66. package/lib/dialog/Dialog.d.ts +9 -1
  67. package/lib/dialog/Dialog.js +6 -0
  68. package/lib/dialog/function-call.d.ts +6 -184
  69. package/lib/dialog/function-call.js +42 -42
  70. package/lib/dialog/index.d.ts +130 -3
  71. package/lib/dialog/index.js +14 -3
  72. package/lib/dialog/types.d.ts +3 -7
  73. package/lib/field/Field.d.ts +4 -2
  74. package/lib/field/Field.js +7 -1
  75. package/lib/field/index.d.ts +4 -2
  76. package/lib/image-preview/function-call.d.ts +1 -134
  77. package/lib/image-preview/function-call.js +2 -6
  78. package/lib/image-preview/index.d.ts +129 -2
  79. package/lib/image-preview/index.js +10 -3
  80. package/lib/index.d.ts +1 -1
  81. package/lib/index.js +1 -1
  82. package/lib/locale/index.d.ts +1 -1
  83. package/lib/notify/function-call.d.ts +4 -100
  84. package/lib/notify/function-call.js +24 -28
  85. package/lib/notify/index.d.ts +91 -2
  86. package/lib/notify/index.js +13 -3
  87. package/lib/notify/types.d.ts +0 -6
  88. package/lib/popup/Popup.js +1 -1
  89. package/lib/pull-refresh/PullRefresh.d.ts +2 -1
  90. package/lib/pull-refresh/PullRefresh.js +5 -1
  91. package/lib/pull-refresh/index.d.ts +2 -1
  92. package/lib/submit-bar/SubmitBar.d.ts +4 -0
  93. package/lib/submit-bar/SubmitBar.js +12 -1
  94. package/lib/submit-bar/index.d.ts +3 -0
  95. package/lib/switch/Switch.js +2 -1
  96. package/lib/toast/function-call.d.ts +10 -18
  97. package/lib/toast/function-call.js +21 -19
  98. package/lib/toast/index.d.ts +76 -2
  99. package/lib/toast/index.js +17 -3
  100. package/lib/toast/types.d.ts +10 -7
  101. package/lib/uploader/Uploader.d.ts +3 -3
  102. package/lib/uploader/Uploader.js +2 -2
  103. package/lib/uploader/index.d.ts +2 -2
  104. package/lib/utils/basic.d.ts +3 -3
  105. package/lib/utils/create.d.ts +1 -1
  106. package/lib/vant.cjs.js +204 -160
  107. package/lib/vant.es.js +188 -162
  108. package/lib/vant.js +205 -161
  109. package/lib/vant.min.js +1 -1
  110. package/package.json +4 -4
  111. package/vetur/attributes.json +124 -108
  112. package/vetur/tags.json +41 -37
  113. package/vetur/web-types.json +635 -568
  114. package/es/action-bar/index.less +0 -16
  115. package/es/action-bar/style/less.d.ts +0 -1
  116. package/es/action-bar/style/less.mjs +0 -2
  117. package/es/action-bar-button/index.less +0 -38
  118. package/es/action-bar-button/style/less.d.ts +0 -1
  119. package/es/action-bar-button/style/less.mjs +0 -7
  120. package/es/action-bar-icon/index.less +0 -34
  121. package/es/action-bar-icon/style/less.d.ts +0 -1
  122. package/es/action-bar-icon/style/less.mjs +0 -5
  123. package/es/action-sheet/index.less +0 -131
  124. package/es/action-sheet/style/less.d.ts +0 -1
  125. package/es/action-sheet/style/less.mjs +0 -7
  126. package/es/address-edit/index.less +0 -39
  127. package/es/address-edit/style/less.d.ts +0 -1
  128. package/es/address-edit/style/less.mjs +0 -13
  129. package/es/address-list/index.less +0 -110
  130. package/es/address-list/style/less.d.ts +0 -1
  131. package/es/address-list/style/less.mjs +0 -11
  132. package/es/area/style/less.d.ts +0 -1
  133. package/es/area/style/less.mjs +0 -3
  134. package/es/badge/index.less +0 -72
  135. package/es/badge/style/less.d.ts +0 -1
  136. package/es/badge/style/less.mjs +0 -2
  137. package/es/button/index.less +0 -241
  138. package/es/button/style/less.d.ts +0 -1
  139. package/es/button/style/less.mjs +0 -5
  140. package/es/calendar/index.less +0 -217
  141. package/es/calendar/style/less.d.ts +0 -1
  142. package/es/calendar/style/less.mjs +0 -10
  143. package/es/card/index.less +0 -126
  144. package/es/card/style/less.d.ts +0 -1
  145. package/es/card/style/less.mjs +0 -6
  146. package/es/cascader/index.less +0 -92
  147. package/es/cascader/style/less.d.ts +0 -1
  148. package/es/cascader/style/less.mjs +0 -9
  149. package/es/cell/index.less +0 -119
  150. package/es/cell/style/less.d.ts +0 -1
  151. package/es/cell/style/less.mjs +0 -4
  152. package/es/cell-group/index.less +0 -32
  153. package/es/cell-group/style/less.d.ts +0 -1
  154. package/es/cell-group/style/less.mjs +0 -2
  155. package/es/checkbox/index.less +0 -96
  156. package/es/checkbox/style/less.d.ts +0 -1
  157. package/es/checkbox/style/less.mjs +0 -5
  158. package/es/checkbox-group/index.less +0 -6
  159. package/es/checkbox-group/style/less.d.ts +0 -1
  160. package/es/checkbox-group/style/less.mjs +0 -2
  161. package/es/circle/index.less +0 -49
  162. package/es/circle/style/less.d.ts +0 -1
  163. package/es/circle/style/less.mjs +0 -2
  164. package/es/col/index.less +0 -19
  165. package/es/col/style/less.d.ts +0 -1
  166. package/es/col/style/less.mjs +0 -3
  167. package/es/collapse/style/less.d.ts +0 -1
  168. package/es/collapse/style/less.mjs +0 -1
  169. package/es/collapse-item/index.less +0 -75
  170. package/es/collapse-item/style/less.d.ts +0 -1
  171. package/es/collapse-item/style/less.mjs +0 -5
  172. package/es/config-provider/style/less.d.ts +0 -1
  173. package/es/config-provider/style/less.mjs +0 -1
  174. package/es/contact-card/index.less +0 -47
  175. package/es/contact-card/style/less.d.ts +0 -1
  176. package/es/contact-card/style/less.mjs +0 -5
  177. package/es/contact-edit/index.less +0 -37
  178. package/es/contact-edit/style/less.d.ts +0 -1
  179. package/es/contact-edit/style/less.mjs +0 -9
  180. package/es/contact-list/index.less +0 -65
  181. package/es/contact-list/style/less.d.ts +0 -1
  182. package/es/contact-list/style/less.mjs +0 -11
  183. package/es/count-down/index.less +0 -11
  184. package/es/count-down/style/less.d.ts +0 -1
  185. package/es/count-down/style/less.mjs +0 -2
  186. package/es/coupon/index.less +0 -127
  187. package/es/coupon/style/less.d.ts +0 -1
  188. package/es/coupon/style/less.mjs +0 -6
  189. package/es/coupon-cell/index.less +0 -9
  190. package/es/coupon-cell/style/less.d.ts +0 -1
  191. package/es/coupon-cell/style/less.mjs +0 -5
  192. package/es/coupon-list/index.less +0 -86
  193. package/es/coupon-list/style/less.d.ts +0 -1
  194. package/es/coupon-list/style/less.mjs +0 -17
  195. package/es/date-picker/style/less.d.ts +0 -1
  196. package/es/date-picker/style/less.mjs +0 -3
  197. package/es/dialog/index.less +0 -140
  198. package/es/dialog/style/less.d.ts +0 -1
  199. package/es/dialog/style/less.mjs +0 -10
  200. package/es/divider/index.less +0 -73
  201. package/es/divider/style/less.d.ts +0 -1
  202. package/es/divider/style/less.mjs +0 -2
  203. package/es/dropdown-item/index.less +0 -41
  204. package/es/dropdown-item/style/less.d.ts +0 -1
  205. package/es/dropdown-item/style/less.mjs +0 -8
  206. package/es/dropdown-menu/index.less +0 -80
  207. package/es/dropdown-menu/style/less.d.ts +0 -1
  208. package/es/dropdown-menu/style/less.mjs +0 -2
  209. package/es/empty/index.less +0 -41
  210. package/es/empty/style/less.d.ts +0 -1
  211. package/es/empty/style/less.mjs +0 -2
  212. package/es/field/index.less +0 -196
  213. package/es/field/style/less.d.ts +0 -1
  214. package/es/field/style/less.mjs +0 -5
  215. package/es/form/style/less.d.ts +0 -1
  216. package/es/form/style/less.mjs +0 -1
  217. package/es/grid/index.less +0 -4
  218. package/es/grid/style/less.d.ts +0 -1
  219. package/es/grid/style/less.mjs +0 -2
  220. package/es/grid-item/index.less +0 -97
  221. package/es/grid-item/style/less.d.ts +0 -1
  222. package/es/grid-item/style/less.mjs +0 -5
  223. package/es/icon/index.less +0 -10
  224. package/es/icon/style/less.d.ts +0 -1
  225. package/es/icon/style/less.mjs +0 -3
  226. package/es/image/index.less +0 -55
  227. package/es/image/style/less.d.ts +0 -1
  228. package/es/image/style/less.mjs +0 -4
  229. package/es/image-preview/index.less +0 -110
  230. package/es/image-preview/style/less.d.ts +0 -1
  231. package/es/image-preview/style/less.mjs +0 -10
  232. package/es/index-anchor/index.less +0 -31
  233. package/es/index-anchor/style/less.d.ts +0 -1
  234. package/es/index-anchor/style/less.mjs +0 -3
  235. package/es/index-bar/index.less +0 -33
  236. package/es/index-bar/style/less.d.ts +0 -1
  237. package/es/index-bar/style/less.mjs +0 -2
  238. package/es/lazyload/style/less.d.ts +0 -1
  239. package/es/lazyload/style/less.mjs +0 -1
  240. package/es/list/index.less +0 -29
  241. package/es/list/style/less.d.ts +0 -1
  242. package/es/list/style/less.mjs +0 -3
  243. package/es/loading/index.less +0 -109
  244. package/es/loading/style/less.d.ts +0 -1
  245. package/es/loading/style/less.mjs +0 -2
  246. package/es/locale/style/less.d.ts +0 -1
  247. package/es/locale/style/less.mjs +0 -1
  248. package/es/nav-bar/index.less +0 -78
  249. package/es/nav-bar/style/less.d.ts +0 -1
  250. package/es/nav-bar/style/less.mjs +0 -4
  251. package/es/notice-bar/index.less +0 -70
  252. package/es/notice-bar/style/less.d.ts +0 -1
  253. package/es/notice-bar/style/less.mjs +0 -4
  254. package/es/notify/index.less +0 -42
  255. package/es/notify/style/less.d.ts +0 -1
  256. package/es/notify/style/less.mjs +0 -6
  257. package/es/number-keyboard/index.less +0 -159
  258. package/es/number-keyboard/style/less.d.ts +0 -1
  259. package/es/number-keyboard/style/less.mjs +0 -3
  260. package/es/overlay/index.less +0 -14
  261. package/es/overlay/style/less.d.ts +0 -1
  262. package/es/overlay/style/less.mjs +0 -2
  263. package/es/pagination/index.less +0 -89
  264. package/es/pagination/style/less.d.ts +0 -1
  265. package/es/pagination/style/less.mjs +0 -2
  266. package/es/password-input/index.less +0 -100
  267. package/es/password-input/style/less.d.ts +0 -1
  268. package/es/password-input/style/less.mjs +0 -2
  269. package/es/picker/index.less +0 -138
  270. package/es/picker/style/less.d.ts +0 -1
  271. package/es/picker/style/less.mjs +0 -3
  272. package/es/popover/index.less +0 -288
  273. package/es/popover/style/less.d.ts +0 -1
  274. package/es/popover/style/less.mjs +0 -6
  275. package/es/popup/index.less +0 -139
  276. package/es/popup/style/less.d.ts +0 -1
  277. package/es/popup/style/less.mjs +0 -5
  278. package/es/progress/index.less +0 -53
  279. package/es/progress/style/less.d.ts +0 -1
  280. package/es/progress/style/less.mjs +0 -2
  281. package/es/pull-refresh/index.less +0 -36
  282. package/es/pull-refresh/style/less.d.ts +0 -1
  283. package/es/pull-refresh/style/less.mjs +0 -3
  284. package/es/radio/index.less +0 -96
  285. package/es/radio/style/less.d.ts +0 -1
  286. package/es/radio/style/less.mjs +0 -6
  287. package/es/radio-group/index.less +0 -6
  288. package/es/radio-group/style/less.d.ts +0 -1
  289. package/es/radio-group/style/less.mjs +0 -2
  290. package/es/rate/index.less +0 -52
  291. package/es/rate/style/less.d.ts +0 -1
  292. package/es/rate/style/less.mjs +0 -4
  293. package/es/row/index.less +0 -32
  294. package/es/row/style/less.d.ts +0 -1
  295. package/es/row/style/less.mjs +0 -2
  296. package/es/search/index.less +0 -76
  297. package/es/search/style/less.d.ts +0 -1
  298. package/es/search/style/less.mjs +0 -6
  299. package/es/share-sheet/index.less +0 -152
  300. package/es/share-sheet/style/less.d.ts +0 -1
  301. package/es/share-sheet/style/less.mjs +0 -6
  302. package/es/sidebar/index.less +0 -9
  303. package/es/sidebar/style/less.d.ts +0 -1
  304. package/es/sidebar/style/less.mjs +0 -2
  305. package/es/sidebar-item/index.less +0 -72
  306. package/es/sidebar-item/style/less.d.ts +0 -1
  307. package/es/sidebar-item/style/less.mjs +0 -4
  308. package/es/skeleton/index.less +0 -73
  309. package/es/skeleton/style/less.d.ts +0 -1
  310. package/es/skeleton/style/less.mjs +0 -2
  311. package/es/slider/index.less +0 -104
  312. package/es/slider/style/less.d.ts +0 -1
  313. package/es/slider/style/less.mjs +0 -2
  314. package/es/step/index.less +0 -147
  315. package/es/step/style/less.d.ts +0 -1
  316. package/es/step/style/less.mjs +0 -5
  317. package/es/stepper/index.less +0 -129
  318. package/es/stepper/style/less.d.ts +0 -1
  319. package/es/stepper/style/less.mjs +0 -2
  320. package/es/steps/index.less +0 -23
  321. package/es/steps/style/less.d.ts +0 -1
  322. package/es/steps/style/less.mjs +0 -2
  323. package/es/sticky/index.less +0 -10
  324. package/es/sticky/style/less.d.ts +0 -1
  325. package/es/sticky/style/less.mjs +0 -2
  326. package/es/style/animation.less +0 -135
  327. package/es/style/base.less +0 -89
  328. package/es/style/css-variables.less +0 -90
  329. package/es/style/mixins/clearfix.less +0 -7
  330. package/es/style/mixins/ellipsis.less +0 -15
  331. package/es/style/mixins/hairline.less +0 -37
  332. package/es/style/normalize.less +0 -36
  333. package/es/submit-bar/index.less +0 -97
  334. package/es/submit-bar/style/less.d.ts +0 -1
  335. package/es/submit-bar/style/less.mjs +0 -6
  336. package/es/swipe/index.less +0 -65
  337. package/es/swipe/style/less.d.ts +0 -1
  338. package/es/swipe/style/less.mjs +0 -2
  339. package/es/swipe-cell/index.less +0 -27
  340. package/es/swipe-cell/style/less.d.ts +0 -1
  341. package/es/swipe-cell/style/less.mjs +0 -2
  342. package/es/swipe-item/index.less +0 -6
  343. package/es/swipe-item/style/less.d.ts +0 -1
  344. package/es/swipe-item/style/less.mjs +0 -3
  345. package/es/switch/index.less +0 -75
  346. package/es/switch/style/less.d.ts +0 -1
  347. package/es/switch/style/less.mjs +0 -3
  348. package/es/tab/index.less +0 -15
  349. package/es/tab/style/less.d.ts +0 -1
  350. package/es/tab/style/less.mjs +0 -7
  351. package/es/tabbar/index.less +0 -20
  352. package/es/tabbar/style/less.d.ts +0 -1
  353. package/es/tabbar/style/less.mjs +0 -2
  354. package/es/tabbar-item/index.less +0 -44
  355. package/es/tabbar-item/style/less.d.ts +0 -1
  356. package/es/tabbar-item/style/less.mjs +0 -5
  357. package/es/tabs/index.less +0 -170
  358. package/es/tabs/style/less.d.ts +0 -1
  359. package/es/tabs/style/less.mjs +0 -5
  360. package/es/tag/index.less +0 -115
  361. package/es/tag/style/less.d.ts +0 -1
  362. package/es/tag/style/less.mjs +0 -4
  363. package/es/time-picker/style/less.d.ts +0 -1
  364. package/es/time-picker/style/less.mjs +0 -3
  365. package/es/toast/index.less +0 -89
  366. package/es/toast/style/less.d.ts +0 -1
  367. package/es/toast/style/less.mjs +0 -7
  368. package/es/tree-select/index.less +0 -68
  369. package/es/tree-select/style/less.d.ts +0 -1
  370. package/es/tree-select/style/less.mjs +0 -6
  371. package/es/uploader/index.less +0 -191
  372. package/es/uploader/style/less.d.ts +0 -1
  373. package/es/uploader/style/less.mjs +0 -11
  374. package/lib/action-bar/index.less +0 -16
  375. package/lib/action-bar/style/less.d.ts +0 -1
  376. package/lib/action-bar/style/less.js +0 -2
  377. package/lib/action-bar-button/index.less +0 -38
  378. package/lib/action-bar-button/style/less.d.ts +0 -1
  379. package/lib/action-bar-button/style/less.js +0 -7
  380. package/lib/action-bar-icon/index.less +0 -34
  381. package/lib/action-bar-icon/style/less.d.ts +0 -1
  382. package/lib/action-bar-icon/style/less.js +0 -5
  383. package/lib/action-sheet/index.less +0 -131
  384. package/lib/action-sheet/style/less.d.ts +0 -1
  385. package/lib/action-sheet/style/less.js +0 -7
  386. package/lib/address-edit/index.less +0 -39
  387. package/lib/address-edit/style/less.d.ts +0 -1
  388. package/lib/address-edit/style/less.js +0 -13
  389. package/lib/address-list/index.less +0 -110
  390. package/lib/address-list/style/less.d.ts +0 -1
  391. package/lib/address-list/style/less.js +0 -11
  392. package/lib/area/style/less.d.ts +0 -1
  393. package/lib/area/style/less.js +0 -3
  394. package/lib/badge/index.less +0 -72
  395. package/lib/badge/style/less.d.ts +0 -1
  396. package/lib/badge/style/less.js +0 -2
  397. package/lib/button/index.less +0 -241
  398. package/lib/button/style/less.d.ts +0 -1
  399. package/lib/button/style/less.js +0 -5
  400. package/lib/calendar/index.less +0 -217
  401. package/lib/calendar/style/less.d.ts +0 -1
  402. package/lib/calendar/style/less.js +0 -10
  403. package/lib/card/index.less +0 -126
  404. package/lib/card/style/less.d.ts +0 -1
  405. package/lib/card/style/less.js +0 -6
  406. package/lib/cascader/index.less +0 -92
  407. package/lib/cascader/style/less.d.ts +0 -1
  408. package/lib/cascader/style/less.js +0 -9
  409. package/lib/cell/index.less +0 -119
  410. package/lib/cell/style/less.d.ts +0 -1
  411. package/lib/cell/style/less.js +0 -4
  412. package/lib/cell-group/index.less +0 -32
  413. package/lib/cell-group/style/less.d.ts +0 -1
  414. package/lib/cell-group/style/less.js +0 -2
  415. package/lib/checkbox/index.less +0 -96
  416. package/lib/checkbox/style/less.d.ts +0 -1
  417. package/lib/checkbox/style/less.js +0 -5
  418. package/lib/checkbox-group/index.less +0 -6
  419. package/lib/checkbox-group/style/less.d.ts +0 -1
  420. package/lib/checkbox-group/style/less.js +0 -2
  421. package/lib/circle/index.less +0 -49
  422. package/lib/circle/style/less.d.ts +0 -1
  423. package/lib/circle/style/less.js +0 -2
  424. package/lib/col/index.less +0 -19
  425. package/lib/col/style/less.d.ts +0 -1
  426. package/lib/col/style/less.js +0 -3
  427. package/lib/collapse/style/less.d.ts +0 -1
  428. package/lib/collapse/style/less.js +0 -1
  429. package/lib/collapse-item/index.less +0 -75
  430. package/lib/collapse-item/style/less.d.ts +0 -1
  431. package/lib/collapse-item/style/less.js +0 -5
  432. package/lib/config-provider/style/less.d.ts +0 -1
  433. package/lib/config-provider/style/less.js +0 -1
  434. package/lib/contact-card/index.less +0 -47
  435. package/lib/contact-card/style/less.d.ts +0 -1
  436. package/lib/contact-card/style/less.js +0 -5
  437. package/lib/contact-edit/index.less +0 -37
  438. package/lib/contact-edit/style/less.d.ts +0 -1
  439. package/lib/contact-edit/style/less.js +0 -9
  440. package/lib/contact-list/index.less +0 -65
  441. package/lib/contact-list/style/less.d.ts +0 -1
  442. package/lib/contact-list/style/less.js +0 -11
  443. package/lib/count-down/index.less +0 -11
  444. package/lib/count-down/style/less.d.ts +0 -1
  445. package/lib/count-down/style/less.js +0 -2
  446. package/lib/coupon/index.less +0 -127
  447. package/lib/coupon/style/less.d.ts +0 -1
  448. package/lib/coupon/style/less.js +0 -6
  449. package/lib/coupon-cell/index.less +0 -9
  450. package/lib/coupon-cell/style/less.d.ts +0 -1
  451. package/lib/coupon-cell/style/less.js +0 -5
  452. package/lib/coupon-list/index.less +0 -86
  453. package/lib/coupon-list/style/less.d.ts +0 -1
  454. package/lib/coupon-list/style/less.js +0 -17
  455. package/lib/date-picker/style/less.d.ts +0 -1
  456. package/lib/date-picker/style/less.js +0 -3
  457. package/lib/dialog/index.less +0 -140
  458. package/lib/dialog/style/less.d.ts +0 -1
  459. package/lib/dialog/style/less.js +0 -10
  460. package/lib/divider/index.less +0 -73
  461. package/lib/divider/style/less.d.ts +0 -1
  462. package/lib/divider/style/less.js +0 -2
  463. package/lib/dropdown-item/index.less +0 -41
  464. package/lib/dropdown-item/style/less.d.ts +0 -1
  465. package/lib/dropdown-item/style/less.js +0 -8
  466. package/lib/dropdown-menu/index.less +0 -80
  467. package/lib/dropdown-menu/style/less.d.ts +0 -1
  468. package/lib/dropdown-menu/style/less.js +0 -2
  469. package/lib/empty/index.less +0 -41
  470. package/lib/empty/style/less.d.ts +0 -1
  471. package/lib/empty/style/less.js +0 -2
  472. package/lib/field/index.less +0 -196
  473. package/lib/field/style/less.d.ts +0 -1
  474. package/lib/field/style/less.js +0 -5
  475. package/lib/form/style/less.d.ts +0 -1
  476. package/lib/form/style/less.js +0 -1
  477. package/lib/grid/index.less +0 -4
  478. package/lib/grid/style/less.d.ts +0 -1
  479. package/lib/grid/style/less.js +0 -2
  480. package/lib/grid-item/index.less +0 -97
  481. package/lib/grid-item/style/less.d.ts +0 -1
  482. package/lib/grid-item/style/less.js +0 -5
  483. package/lib/icon/index.less +0 -10
  484. package/lib/icon/style/less.d.ts +0 -1
  485. package/lib/icon/style/less.js +0 -3
  486. package/lib/image/index.less +0 -55
  487. package/lib/image/style/less.d.ts +0 -1
  488. package/lib/image/style/less.js +0 -4
  489. package/lib/image-preview/index.less +0 -110
  490. package/lib/image-preview/style/less.d.ts +0 -1
  491. package/lib/image-preview/style/less.js +0 -10
  492. package/lib/index-anchor/index.less +0 -31
  493. package/lib/index-anchor/style/less.d.ts +0 -1
  494. package/lib/index-anchor/style/less.js +0 -3
  495. package/lib/index-bar/index.less +0 -33
  496. package/lib/index-bar/style/less.d.ts +0 -1
  497. package/lib/index-bar/style/less.js +0 -2
  498. package/lib/index.less +0 -80
  499. package/lib/lazyload/style/less.d.ts +0 -1
  500. package/lib/lazyload/style/less.js +0 -1
  501. package/lib/list/index.less +0 -29
  502. package/lib/list/style/less.d.ts +0 -1
  503. package/lib/list/style/less.js +0 -3
  504. package/lib/loading/index.less +0 -109
  505. package/lib/loading/style/less.d.ts +0 -1
  506. package/lib/loading/style/less.js +0 -2
  507. package/lib/locale/style/less.d.ts +0 -1
  508. package/lib/locale/style/less.js +0 -1
  509. package/lib/nav-bar/index.less +0 -78
  510. package/lib/nav-bar/style/less.d.ts +0 -1
  511. package/lib/nav-bar/style/less.js +0 -4
  512. package/lib/notice-bar/index.less +0 -70
  513. package/lib/notice-bar/style/less.d.ts +0 -1
  514. package/lib/notice-bar/style/less.js +0 -4
  515. package/lib/notify/index.less +0 -42
  516. package/lib/notify/style/less.d.ts +0 -1
  517. package/lib/notify/style/less.js +0 -6
  518. package/lib/number-keyboard/index.less +0 -159
  519. package/lib/number-keyboard/style/less.d.ts +0 -1
  520. package/lib/number-keyboard/style/less.js +0 -3
  521. package/lib/overlay/index.less +0 -14
  522. package/lib/overlay/style/less.d.ts +0 -1
  523. package/lib/overlay/style/less.js +0 -2
  524. package/lib/pagination/index.less +0 -89
  525. package/lib/pagination/style/less.d.ts +0 -1
  526. package/lib/pagination/style/less.js +0 -2
  527. package/lib/password-input/index.less +0 -100
  528. package/lib/password-input/style/less.d.ts +0 -1
  529. package/lib/password-input/style/less.js +0 -2
  530. package/lib/picker/index.less +0 -138
  531. package/lib/picker/style/less.d.ts +0 -1
  532. package/lib/picker/style/less.js +0 -3
  533. package/lib/popover/index.less +0 -288
  534. package/lib/popover/style/less.d.ts +0 -1
  535. package/lib/popover/style/less.js +0 -6
  536. package/lib/popup/index.less +0 -139
  537. package/lib/popup/style/less.d.ts +0 -1
  538. package/lib/popup/style/less.js +0 -5
  539. package/lib/progress/index.less +0 -53
  540. package/lib/progress/style/less.d.ts +0 -1
  541. package/lib/progress/style/less.js +0 -2
  542. package/lib/pull-refresh/index.less +0 -36
  543. package/lib/pull-refresh/style/less.d.ts +0 -1
  544. package/lib/pull-refresh/style/less.js +0 -3
  545. package/lib/radio/index.less +0 -96
  546. package/lib/radio/style/less.d.ts +0 -1
  547. package/lib/radio/style/less.js +0 -6
  548. package/lib/radio-group/index.less +0 -6
  549. package/lib/radio-group/style/less.d.ts +0 -1
  550. package/lib/radio-group/style/less.js +0 -2
  551. package/lib/rate/index.less +0 -52
  552. package/lib/rate/style/less.d.ts +0 -1
  553. package/lib/rate/style/less.js +0 -4
  554. package/lib/row/index.less +0 -32
  555. package/lib/row/style/less.d.ts +0 -1
  556. package/lib/row/style/less.js +0 -2
  557. package/lib/search/index.less +0 -76
  558. package/lib/search/style/less.d.ts +0 -1
  559. package/lib/search/style/less.js +0 -6
  560. package/lib/share-sheet/index.less +0 -152
  561. package/lib/share-sheet/style/less.d.ts +0 -1
  562. package/lib/share-sheet/style/less.js +0 -6
  563. package/lib/sidebar/index.less +0 -9
  564. package/lib/sidebar/style/less.d.ts +0 -1
  565. package/lib/sidebar/style/less.js +0 -2
  566. package/lib/sidebar-item/index.less +0 -72
  567. package/lib/sidebar-item/style/less.d.ts +0 -1
  568. package/lib/sidebar-item/style/less.js +0 -4
  569. package/lib/skeleton/index.less +0 -73
  570. package/lib/skeleton/style/less.d.ts +0 -1
  571. package/lib/skeleton/style/less.js +0 -2
  572. package/lib/slider/index.less +0 -104
  573. package/lib/slider/style/less.d.ts +0 -1
  574. package/lib/slider/style/less.js +0 -2
  575. package/lib/ssr.js +0 -7
  576. package/lib/ssr.mjs +0 -1
  577. package/lib/step/index.less +0 -147
  578. package/lib/step/style/less.d.ts +0 -1
  579. package/lib/step/style/less.js +0 -5
  580. package/lib/stepper/index.less +0 -129
  581. package/lib/stepper/style/less.d.ts +0 -1
  582. package/lib/stepper/style/less.js +0 -2
  583. package/lib/steps/index.less +0 -23
  584. package/lib/steps/style/less.d.ts +0 -1
  585. package/lib/steps/style/less.js +0 -2
  586. package/lib/sticky/index.less +0 -10
  587. package/lib/sticky/style/less.d.ts +0 -1
  588. package/lib/sticky/style/less.js +0 -2
  589. package/lib/style/animation.less +0 -135
  590. package/lib/style/base.less +0 -89
  591. package/lib/style/css-variables.less +0 -90
  592. package/lib/style/mixins/clearfix.less +0 -7
  593. package/lib/style/mixins/ellipsis.less +0 -15
  594. package/lib/style/mixins/hairline.less +0 -37
  595. package/lib/style/normalize.less +0 -36
  596. package/lib/submit-bar/index.less +0 -97
  597. package/lib/submit-bar/style/less.d.ts +0 -1
  598. package/lib/submit-bar/style/less.js +0 -6
  599. package/lib/swipe/index.less +0 -65
  600. package/lib/swipe/style/less.d.ts +0 -1
  601. package/lib/swipe/style/less.js +0 -2
  602. package/lib/swipe-cell/index.less +0 -27
  603. package/lib/swipe-cell/style/less.d.ts +0 -1
  604. package/lib/swipe-cell/style/less.js +0 -2
  605. package/lib/swipe-item/index.less +0 -6
  606. package/lib/swipe-item/style/less.d.ts +0 -1
  607. package/lib/swipe-item/style/less.js +0 -3
  608. package/lib/switch/index.less +0 -75
  609. package/lib/switch/style/less.d.ts +0 -1
  610. package/lib/switch/style/less.js +0 -3
  611. package/lib/tab/index.less +0 -15
  612. package/lib/tab/style/less.d.ts +0 -1
  613. package/lib/tab/style/less.js +0 -7
  614. package/lib/tabbar/index.less +0 -20
  615. package/lib/tabbar/style/less.d.ts +0 -1
  616. package/lib/tabbar/style/less.js +0 -2
  617. package/lib/tabbar-item/index.less +0 -44
  618. package/lib/tabbar-item/style/less.d.ts +0 -1
  619. package/lib/tabbar-item/style/less.js +0 -5
  620. package/lib/tabs/index.less +0 -170
  621. package/lib/tabs/style/less.d.ts +0 -1
  622. package/lib/tabs/style/less.js +0 -5
  623. package/lib/tag/index.less +0 -115
  624. package/lib/tag/style/less.d.ts +0 -1
  625. package/lib/tag/style/less.js +0 -4
  626. package/lib/time-picker/style/less.d.ts +0 -1
  627. package/lib/time-picker/style/less.js +0 -3
  628. package/lib/toast/index.less +0 -89
  629. package/lib/toast/style/less.d.ts +0 -1
  630. package/lib/toast/style/less.js +0 -7
  631. package/lib/tree-select/index.less +0 -68
  632. package/lib/tree-select/style/less.d.ts +0 -1
  633. package/lib/tree-select/style/less.js +0 -6
  634. package/lib/uploader/index.less +0 -191
  635. package/lib/uploader/style/less.d.ts +0 -1
  636. package/lib/uploader/style/less.js +0 -11
  637. package/lib/vant.cjs.min.js +0 -1
  638. package/lib/vant.es.min.js +0 -14191
package/lib/vant.cjs.js CHANGED
@@ -394,9 +394,30 @@ function withInstall(options) {
394
394
  };
395
395
  return options;
396
396
  }
397
+ const useHeight = (element) => {
398
+ const height = vue.ref();
399
+ const setHeight = () => {
400
+ height.value = use.useRect(element).height;
401
+ };
402
+ vue.onMounted(() => {
403
+ vue.nextTick(setHeight);
404
+ setTimeout(setHeight, 100);
405
+ });
406
+ return height;
407
+ };
408
+ function usePlaceholder(contentRef, bem2) {
409
+ const height = useHeight(contentRef);
410
+ return (renderContent) => vue.createVNode("div", {
411
+ "class": bem2("placeholder"),
412
+ "style": {
413
+ height: height.value ? `${height.value}px` : void 0
414
+ }
415
+ }, [renderContent()]);
416
+ }
397
417
  const [name$1t, bem$1p] = createNamespace("action-bar");
398
418
  const ACTION_BAR_KEY = Symbol(name$1t);
399
419
  const actionBarProps = {
420
+ placeholder: Boolean,
400
421
  safeAreaInsetBottom: truthProp
401
422
  };
402
423
  var stdin_default$1A = vue.defineComponent({
@@ -405,18 +426,27 @@ var stdin_default$1A = vue.defineComponent({
405
426
  setup(props, {
406
427
  slots
407
428
  }) {
429
+ const root = vue.ref();
430
+ const renderPlaceholder = usePlaceholder(root, bem$1p);
408
431
  const {
409
432
  linkChildren
410
433
  } = use.useChildren(ACTION_BAR_KEY);
411
434
  linkChildren();
412
- return () => {
435
+ const renderActionBar = () => {
413
436
  var _a;
414
437
  return vue.createVNode("div", {
438
+ "ref": root,
415
439
  "class": [bem$1p(), {
416
440
  "van-safe-area-bottom": props.safeAreaInsetBottom
417
441
  }]
418
442
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
419
443
  };
444
+ return () => {
445
+ if (props.placeholder) {
446
+ return renderPlaceholder(renderActionBar);
447
+ }
448
+ return renderActionBar();
449
+ };
420
450
  }
421
451
  });
422
452
  const ActionBar = withInstall(stdin_default$1A);
@@ -1309,7 +1339,7 @@ var stdin_default$1r = vue.defineComponent({
1309
1339
  }
1310
1340
  });
1311
1341
  vue.onDeactivated(() => {
1312
- if (props.show) {
1342
+ if (props.show && props.teleport) {
1313
1343
  close();
1314
1344
  shouldReopen = true;
1315
1345
  }
@@ -2431,7 +2461,7 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
2431
2461
  var stdin_default$1k = vue.defineComponent({
2432
2462
  name: name$1d,
2433
2463
  props: fieldProps,
2434
- emits: ["blur", "focus", "clear", "keypress", "clickInput", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
2464
+ emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
2435
2465
  setup(props, {
2436
2466
  emit,
2437
2467
  slots
@@ -2505,18 +2535,24 @@ var stdin_default$1k = vue.defineComponent({
2505
2535
  state.status = "unvalidated";
2506
2536
  state.validateMessage = "";
2507
2537
  };
2538
+ const endValidate = () => emit("endValidate", {
2539
+ status: state.status
2540
+ });
2508
2541
  const validate = (rules = props.rules) => new Promise((resolve) => {
2509
2542
  resetValidation();
2510
2543
  if (rules) {
2544
+ emit("startValidate");
2511
2545
  runRules(rules).then(() => {
2512
2546
  if (state.status === "failed") {
2513
2547
  resolve({
2514
2548
  name: props.name,
2515
2549
  message: state.validateMessage
2516
2550
  });
2551
+ endValidate();
2517
2552
  } else {
2518
2553
  state.status = "passed";
2519
2554
  resolve();
2555
+ endValidate();
2520
2556
  }
2521
2557
  });
2522
2558
  } else {
@@ -2811,38 +2847,6 @@ var stdin_default$1k = vue.defineComponent({
2811
2847
  }
2812
2848
  });
2813
2849
  const Field = withInstall(stdin_default$1k);
2814
- function usePopupState() {
2815
- const state = vue.reactive({
2816
- show: false
2817
- });
2818
- const toggle = (show) => {
2819
- state.show = show;
2820
- };
2821
- const open = (props) => {
2822
- extend(state, props, { transitionAppear: true });
2823
- toggle(true);
2824
- };
2825
- const close = () => toggle(false);
2826
- useExpose({ open, close, toggle });
2827
- return {
2828
- open,
2829
- close,
2830
- state,
2831
- toggle
2832
- };
2833
- }
2834
- function mountComponent(RootComponent) {
2835
- const app = vue.createApp(RootComponent);
2836
- const root = document.createElement("div");
2837
- document.body.appendChild(root);
2838
- return {
2839
- instance: app.mount(root),
2840
- unmount() {
2841
- app.unmount();
2842
- document.body.removeChild(root);
2843
- }
2844
- };
2845
- }
2846
2850
  let lockCount = 0;
2847
2851
  function lockClick(lock) {
2848
2852
  if (lock) {
@@ -2966,6 +2970,38 @@ var stdin_default$1j = vue.defineComponent({
2966
2970
  });
2967
2971
  }
2968
2972
  });
2973
+ function usePopupState() {
2974
+ const state = vue.reactive({
2975
+ show: false
2976
+ });
2977
+ const toggle = (show) => {
2978
+ state.show = show;
2979
+ };
2980
+ const open = (props) => {
2981
+ extend(state, props, { transitionAppear: true });
2982
+ toggle(true);
2983
+ };
2984
+ const close = () => toggle(false);
2985
+ useExpose({ open, close, toggle });
2986
+ return {
2987
+ open,
2988
+ close,
2989
+ state,
2990
+ toggle
2991
+ };
2992
+ }
2993
+ function mountComponent(RootComponent) {
2994
+ const app = vue.createApp(RootComponent);
2995
+ const root = document.createElement("div");
2996
+ document.body.appendChild(root);
2997
+ return {
2998
+ instance: app.mount(root),
2999
+ unmount() {
3000
+ app.unmount();
3001
+ document.body.removeChild(root);
3002
+ }
3003
+ };
3004
+ }
2969
3005
  const defaultOptions$1 = {
2970
3006
  icon: "",
2971
3007
  type: "text",
@@ -2989,7 +3025,7 @@ const defaultOptions$1 = {
2989
3025
  };
2990
3026
  let queue = [];
2991
3027
  let allowMultiple = false;
2992
- let currentOptions = extend({}, defaultOptions$1);
3028
+ let currentOptions$2 = extend({}, defaultOptions$1);
2993
3029
  const defaultOptionsMap = /* @__PURE__ */ new Map();
2994
3030
  function parseOptions$1(message) {
2995
3031
  if (isObject(message)) {
@@ -3031,7 +3067,7 @@ function createInstance() {
3031
3067
  vue.getCurrentInstance().render = render;
3032
3068
  return {
3033
3069
  open,
3034
- clear: close,
3070
+ close,
3035
3071
  message
3036
3072
  };
3037
3073
  }
@@ -3045,59 +3081,55 @@ function getInstance() {
3045
3081
  }
3046
3082
  return queue[queue.length - 1];
3047
3083
  }
3048
- function Toast(options = {}) {
3084
+ function showToast(options = {}) {
3049
3085
  if (!inBrowser) {
3050
3086
  return {};
3051
3087
  }
3052
3088
  const toast = getInstance();
3053
3089
  const parsedOptions = parseOptions$1(options);
3054
- toast.open(extend({}, currentOptions, defaultOptionsMap.get(parsedOptions.type || currentOptions.type), parsedOptions));
3090
+ toast.open(extend({}, currentOptions$2, defaultOptionsMap.get(parsedOptions.type || currentOptions$2.type), parsedOptions));
3055
3091
  return toast;
3056
3092
  }
3057
- const createMethod = (type) => (options) => Toast(extend({
3093
+ const createMethod = (type) => (options) => showToast(extend({
3058
3094
  type
3059
3095
  }, parseOptions$1(options)));
3060
- Toast.loading = createMethod("loading");
3061
- Toast.success = createMethod("success");
3062
- Toast.fail = createMethod("fail");
3063
- Toast.clear = (all) => {
3096
+ const showLoadingToast = createMethod("loading");
3097
+ const showSuccessToast = createMethod("success");
3098
+ const showFailToast = createMethod("fail");
3099
+ const closeToast = (all) => {
3064
3100
  var _a;
3065
3101
  if (queue.length) {
3066
3102
  if (all) {
3067
3103
  queue.forEach((toast) => {
3068
- toast.clear();
3104
+ toast.close();
3069
3105
  });
3070
3106
  queue = [];
3071
3107
  } else if (!allowMultiple) {
3072
- queue[0].clear();
3108
+ queue[0].close();
3073
3109
  } else {
3074
- (_a = queue.shift()) == null ? void 0 : _a.clear();
3110
+ (_a = queue.shift()) == null ? void 0 : _a.close();
3075
3111
  }
3076
3112
  }
3077
3113
  };
3078
- function setDefaultOptions(type, options) {
3114
+ function setToastDefaultOptions(type, options) {
3079
3115
  if (typeof type === "string") {
3080
3116
  defaultOptionsMap.set(type, options);
3081
3117
  } else {
3082
- extend(currentOptions, type);
3118
+ extend(currentOptions$2, type);
3083
3119
  }
3084
3120
  }
3085
- Toast.setDefaultOptions = setDefaultOptions;
3086
- Toast.resetDefaultOptions = (type) => {
3121
+ const resetToastDefaultOptions = (type) => {
3087
3122
  if (typeof type === "string") {
3088
3123
  defaultOptionsMap.delete(type);
3089
3124
  } else {
3090
- currentOptions = extend({}, defaultOptions$1);
3125
+ currentOptions$2 = extend({}, defaultOptions$1);
3091
3126
  defaultOptionsMap.clear();
3092
3127
  }
3093
3128
  };
3094
- Toast.allowMultiple = (value = true) => {
3129
+ const allowMultipleToast = (value = true) => {
3095
3130
  allowMultiple = value;
3096
3131
  };
3097
- Toast.install = (app) => {
3098
- app.use(withInstall(stdin_default$1j));
3099
- app.config.globalProperties.$toast = Toast;
3100
- };
3132
+ const Toast = withInstall(stdin_default$1j);
3101
3133
  const [name$1b, bem$17] = createNamespace("switch");
3102
3134
  const switchProps = {
3103
3135
  size: numericProp,
@@ -3145,6 +3177,7 @@ var stdin_default$1i = vue.defineComponent({
3145
3177
  };
3146
3178
  use.useCustomFieldValue(() => props.modelValue);
3147
3179
  return () => {
3180
+ var _a;
3148
3181
  const {
3149
3182
  size,
3150
3183
  loading,
@@ -3170,7 +3203,7 @@ var stdin_default$1i = vue.defineComponent({
3170
3203
  "onClick": onClick
3171
3204
  }, [vue.createVNode("div", {
3172
3205
  "class": bem$17("node")
3173
- }, [renderLoading()])]);
3206
+ }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
3174
3207
  };
3175
3208
  }
3176
3209
  });
@@ -3364,7 +3397,7 @@ var stdin_default$1g = vue.defineComponent({
3364
3397
  selectedOptions
3365
3398
  }) => {
3366
3399
  if (selectedValues.some((value) => value === AREA_EMPTY_CODE)) {
3367
- Toast(t$h("areaEmpty"));
3400
+ showToast(t$h("areaEmpty"));
3368
3401
  } else {
3369
3402
  showAreaPopup.value = false;
3370
3403
  assignAreaText(selectedOptions);
@@ -4003,17 +4036,6 @@ const genOptions = (min, max, type, formatter, filter) => {
4003
4036
  });
4004
4037
  return filter ? filter(type, options) : options;
4005
4038
  };
4006
- const useHeight = (element) => {
4007
- const height = vue.ref();
4008
- const setHeight = () => {
4009
- height.value = use.useRect(element).height;
4010
- };
4011
- vue.onMounted(() => {
4012
- vue.nextTick(setHeight);
4013
- setTimeout(setHeight, 100);
4014
- });
4015
- return height;
4016
- };
4017
4039
  const [name$12] = createNamespace("calendar-day");
4018
4040
  var stdin_default$19 = vue.defineComponent({
4019
4041
  name: name$12,
@@ -4485,6 +4507,9 @@ var stdin_default$16 = vue.defineComponent({
4485
4507
  const months = vue.computed(() => {
4486
4508
  const months2 = [];
4487
4509
  const cursor = new Date(props.minDate);
4510
+ if (props.lazyRender && !props.show && props.poppable) {
4511
+ return months2;
4512
+ }
4488
4513
  cursor.setDate(1);
4489
4514
  do {
4490
4515
  months2.push(new Date(cursor));
@@ -4503,6 +4528,7 @@ var stdin_default$16 = vue.defineComponent({
4503
4528
  }
4504
4529
  return !currentDate.value;
4505
4530
  });
4531
+ const getSelectedDate = () => currentDate.value;
4506
4532
  const onScroll = () => {
4507
4533
  const top = getScrollTop(bodyRef.value);
4508
4534
  const bottom = top + bodyHeight;
@@ -4587,7 +4613,7 @@ var stdin_default$16 = vue.defineComponent({
4587
4613
  } = props;
4588
4614
  if (maxRange && calcDateNum(date) > maxRange) {
4589
4615
  if (showRangePrompt) {
4590
- Toast(rangePrompt || t$f("rangePrompt", maxRange));
4616
+ showToast(rangePrompt || t$f("rangePrompt", maxRange));
4591
4617
  }
4592
4618
  emit("overRange");
4593
4619
  return false;
@@ -4673,7 +4699,7 @@ var stdin_default$16 = vue.defineComponent({
4673
4699
  const [unselectedDate] = dates.splice(selectedIndex, 1);
4674
4700
  emit("unselect", cloneDate(unselectedDate));
4675
4701
  } else if (props.maxRange && dates.length >= props.maxRange) {
4676
- Toast(props.rangePrompt || t$f("rangePrompt", props.maxRange));
4702
+ showToast(props.rangePrompt || t$f("rangePrompt", props.maxRange));
4677
4703
  } else {
4678
4704
  select([...dates, date]);
4679
4705
  }
@@ -4745,7 +4771,8 @@ var stdin_default$16 = vue.defineComponent({
4745
4771
  });
4746
4772
  useExpose({
4747
4773
  reset,
4748
- scrollToDate
4774
+ scrollToDate,
4775
+ getSelectedDate
4749
4776
  });
4750
4777
  use.onMountedOrActivated(init);
4751
4778
  return () => {
@@ -8081,8 +8108,10 @@ const dialogProps = extend({}, popupSharedProps, {
8081
8108
  showCancelButton: Boolean,
8082
8109
  cancelButtonText: String,
8083
8110
  cancelButtonColor: String,
8111
+ cancelButtonDisabled: Boolean,
8084
8112
  confirmButtonText: String,
8085
8113
  confirmButtonColor: String,
8114
+ confirmButtonDisabled: Boolean,
8086
8115
  showConfirmButton: truthProp,
8087
8116
  closeOnClickOverlay: Boolean
8088
8117
  });
@@ -8203,6 +8232,7 @@ var stdin_default$G = vue.defineComponent({
8203
8232
  color: props.cancelButtonColor
8204
8233
  },
8205
8234
  "loading": loading.cancel,
8235
+ "disabled": props.cancelButtonDisabled,
8206
8236
  "onClick": onCancel
8207
8237
  }, null), props.showConfirmButton && vue.createVNode(Button, {
8208
8238
  "size": "large",
@@ -8214,6 +8244,7 @@ var stdin_default$G = vue.defineComponent({
8214
8244
  color: props.confirmButtonColor
8215
8245
  },
8216
8246
  "loading": loading.confirm,
8247
+ "disabled": props.confirmButtonDisabled,
8217
8248
  "onClick": onConfirm
8218
8249
  }, null)]);
8219
8250
  const renderRoundButtons = () => vue.createVNode(ActionBar, {
@@ -8225,6 +8256,7 @@ var stdin_default$G = vue.defineComponent({
8225
8256
  "class": bem$A("cancel"),
8226
8257
  "color": props.cancelButtonColor,
8227
8258
  "loading": loading.cancel,
8259
+ "disabled": props.cancelButtonDisabled,
8228
8260
  "onClick": onCancel
8229
8261
  }, null), props.showConfirmButton && vue.createVNode(ActionBarButton, {
8230
8262
  "type": "danger",
@@ -8232,6 +8264,7 @@ var stdin_default$G = vue.defineComponent({
8232
8264
  "class": bem$A("confirm"),
8233
8265
  "color": props.confirmButtonColor,
8234
8266
  "loading": loading.confirm,
8267
+ "disabled": props.confirmButtonDisabled,
8235
8268
  "onClick": onConfirm
8236
8269
  }, null)]
8237
8270
  });
@@ -8267,6 +8300,34 @@ var stdin_default$G = vue.defineComponent({
8267
8300
  }
8268
8301
  });
8269
8302
  let instance$2;
8303
+ const DEFAULT_OPTIONS = {
8304
+ title: "",
8305
+ width: "",
8306
+ theme: null,
8307
+ message: "",
8308
+ overlay: true,
8309
+ callback: null,
8310
+ teleport: "body",
8311
+ className: "",
8312
+ allowHtml: false,
8313
+ lockScroll: true,
8314
+ transition: void 0,
8315
+ beforeClose: null,
8316
+ overlayClass: "",
8317
+ overlayStyle: void 0,
8318
+ messageAlign: "",
8319
+ cancelButtonText: "",
8320
+ cancelButtonColor: null,
8321
+ cancelButtonDisabled: false,
8322
+ confirmButtonText: "",
8323
+ confirmButtonColor: null,
8324
+ confirmButtonDisabled: false,
8325
+ showConfirmButton: true,
8326
+ showCancelButton: false,
8327
+ closeOnPopstate: true,
8328
+ closeOnClickOverlay: false
8329
+ };
8330
+ let currentOptions$1 = extend({}, DEFAULT_OPTIONS);
8270
8331
  function initInstance$2() {
8271
8332
  const Wrapper = {
8272
8333
  setup() {
@@ -8283,7 +8344,7 @@ function initInstance$2() {
8283
8344
  instance: instance$2
8284
8345
  } = mountComponent(Wrapper));
8285
8346
  }
8286
- function Dialog(options) {
8347
+ function showDialog(options) {
8287
8348
  if (!inBrowser) {
8288
8349
  return Promise.resolve();
8289
8350
  }
@@ -8291,59 +8352,28 @@ function Dialog(options) {
8291
8352
  if (!instance$2) {
8292
8353
  initInstance$2();
8293
8354
  }
8294
- instance$2.open(extend({}, Dialog.currentOptions, options, {
8355
+ instance$2.open(extend({}, currentOptions$1, options, {
8295
8356
  callback: (action) => {
8296
8357
  (action === "confirm" ? resolve : reject)(action);
8297
8358
  }
8298
8359
  }));
8299
8360
  });
8300
8361
  }
8301
- Dialog.defaultOptions = {
8302
- title: "",
8303
- width: "",
8304
- theme: null,
8305
- message: "",
8306
- overlay: true,
8307
- callback: null,
8308
- teleport: "body",
8309
- className: "",
8310
- allowHtml: false,
8311
- lockScroll: true,
8312
- transition: void 0,
8313
- beforeClose: null,
8314
- overlayClass: "",
8315
- overlayStyle: void 0,
8316
- messageAlign: "",
8317
- cancelButtonText: "",
8318
- cancelButtonColor: null,
8319
- confirmButtonText: "",
8320
- confirmButtonColor: null,
8321
- showConfirmButton: true,
8322
- showCancelButton: false,
8323
- closeOnPopstate: true,
8324
- closeOnClickOverlay: false
8362
+ const setDialogDefaultOptions = (options) => {
8363
+ extend(currentOptions$1, options);
8364
+ };
8365
+ const resetDialogDefaultOptions = () => {
8366
+ currentOptions$1 = extend({}, DEFAULT_OPTIONS);
8325
8367
  };
8326
- Dialog.currentOptions = extend({}, Dialog.defaultOptions);
8327
- Dialog.alert = Dialog;
8328
- Dialog.confirm = (options) => Dialog(extend({
8368
+ const showConfirmDialog = (options) => showDialog(extend({
8329
8369
  showCancelButton: true
8330
8370
  }, options));
8331
- Dialog.close = () => {
8371
+ const closeDialog = () => {
8332
8372
  if (instance$2) {
8333
8373
  instance$2.toggle(false);
8334
8374
  }
8335
8375
  };
8336
- Dialog.setDefaultOptions = (options) => {
8337
- extend(Dialog.currentOptions, options);
8338
- };
8339
- Dialog.resetDefaultOptions = () => {
8340
- Dialog.currentOptions = extend({}, Dialog.defaultOptions);
8341
- };
8342
- Dialog.Component = withInstall(stdin_default$G);
8343
- Dialog.install = (app) => {
8344
- app.use(Dialog.Component);
8345
- app.config.globalProperties.$dialog = Dialog;
8346
- };
8376
+ const Dialog = withInstall(stdin_default$G);
8347
8377
  const [name$z, bem$z] = createNamespace("divider");
8348
8378
  const dividerProps = {
8349
8379
  dashed: Boolean,
@@ -9264,7 +9294,7 @@ function initInstance$1() {
9264
9294
  }
9265
9295
  }));
9266
9296
  }
9267
- const ImagePreview = (options, startPosition = 0) => {
9297
+ const showImagePreview = (options, startPosition = 0) => {
9268
9298
  if (!inBrowser) {
9269
9299
  return;
9270
9300
  }
@@ -9278,10 +9308,7 @@ const ImagePreview = (options, startPosition = 0) => {
9278
9308
  instance$1.open(extend({}, defaultConfig, options));
9279
9309
  return instance$1;
9280
9310
  };
9281
- ImagePreview.Component = withInstall(stdin_default$z);
9282
- ImagePreview.install = (app) => {
9283
- app.use(ImagePreview.Component);
9284
- };
9311
+ const ImagePreview = withInstall(stdin_default$z);
9285
9312
  function genAlphabet() {
9286
9313
  const charCodeOfA = "A".charCodeAt(0);
9287
9314
  const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
@@ -9698,15 +9725,6 @@ var stdin_default$w = vue.defineComponent({
9698
9725
  }
9699
9726
  });
9700
9727
  const List = withInstall(stdin_default$w);
9701
- function usePlaceholder(contentRef, bem2) {
9702
- const height = useHeight(contentRef);
9703
- return (renderContent) => vue.createVNode("div", {
9704
- "class": bem2("placeholder"),
9705
- "style": {
9706
- height: height.value ? `${height.value}px` : void 0
9707
- }
9708
- }, [renderContent()]);
9709
- }
9710
9728
  const [name$q, bem$p] = createNamespace("nav-bar");
9711
9729
  const navBarProps = {
9712
9730
  title: String,
@@ -10002,21 +10020,6 @@ function initInstance() {
10002
10020
  }
10003
10021
  }));
10004
10022
  }
10005
- function Notify(options) {
10006
- if (!inBrowser) {
10007
- return;
10008
- }
10009
- if (!instance) {
10010
- initInstance();
10011
- }
10012
- options = extend({}, Notify.currentOptions, parseOptions(options));
10013
- instance.open(options);
10014
- clearTimeout(timer);
10015
- if (options.duration > 0) {
10016
- timer = window.setTimeout(Notify.clear, options.duration);
10017
- }
10018
- return instance;
10019
- }
10020
10023
  const getDefaultOptions = () => ({
10021
10024
  type: "danger",
10022
10025
  color: void 0,
@@ -10030,23 +10033,32 @@ const getDefaultOptions = () => ({
10030
10033
  lockScroll: false,
10031
10034
  background: void 0
10032
10035
  });
10033
- Notify.clear = () => {
10036
+ let currentOptions = getDefaultOptions();
10037
+ const closeNotify = () => {
10034
10038
  if (instance) {
10035
10039
  instance.toggle(false);
10036
10040
  }
10037
10041
  };
10038
- Notify.currentOptions = getDefaultOptions();
10039
- Notify.setDefaultOptions = (options) => {
10040
- extend(Notify.currentOptions, options);
10041
- };
10042
- Notify.resetDefaultOptions = () => {
10043
- Notify.currentOptions = getDefaultOptions();
10044
- };
10045
- Notify.Component = withInstall(stdin_default$t);
10046
- Notify.install = (app) => {
10047
- app.use(Notify.Component);
10048
- app.config.globalProperties.$notify = Notify;
10042
+ function showNotify(options) {
10043
+ if (!inBrowser) {
10044
+ return;
10045
+ }
10046
+ if (!instance) {
10047
+ initInstance();
10048
+ }
10049
+ options = extend({}, currentOptions, parseOptions(options));
10050
+ instance.open(options);
10051
+ clearTimeout(timer);
10052
+ if (options.duration > 0) {
10053
+ timer = window.setTimeout(closeNotify, options.duration);
10054
+ }
10055
+ return instance;
10056
+ }
10057
+ const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
10058
+ const resetNotifyDefaultOptions = () => {
10059
+ currentOptions = getDefaultOptions();
10049
10060
  };
10061
+ const Notify = withInstall(stdin_default$t);
10050
10062
  const [name$n, bem$m] = createNamespace("key");
10051
10063
  const CollapseIcon = vue.createVNode("svg", {
10052
10064
  "class": bem$m("collapse-icon"),
@@ -10824,7 +10836,7 @@ const pullRefreshProps = {
10824
10836
  var stdin_default$m = vue.defineComponent({
10825
10837
  name: name$h,
10826
10838
  props: pullRefreshProps,
10827
- emits: ["refresh", "update:modelValue"],
10839
+ emits: ["change", "refresh", "update:modelValue"],
10828
10840
  setup(props, {
10829
10841
  emit,
10830
10842
  slots
@@ -10869,6 +10881,10 @@ var stdin_default$m = vue.defineComponent({
10869
10881
  } else {
10870
10882
  state.status = "loosing";
10871
10883
  }
10884
+ emit("change", {
10885
+ status: state.status,
10886
+ distance
10887
+ });
10872
10888
  };
10873
10889
  const getStatusText = () => {
10874
10890
  const {
@@ -12252,6 +12268,7 @@ const submitBarProps = {
12252
12268
  buttonType: makeStringProp("danger"),
12253
12269
  buttonColor: String,
12254
12270
  suffixLabel: String,
12271
+ placeholder: Boolean,
12255
12272
  decimalLength: makeNumericProp(2),
12256
12273
  safeAreaInsetBottom: truthProp
12257
12274
  };
@@ -12263,6 +12280,8 @@ var stdin_default$b = vue.defineComponent({
12263
12280
  emit,
12264
12281
  slots
12265
12282
  }) {
12283
+ const root = vue.ref();
12284
+ const renderPlaceholder = usePlaceholder(root, bem$5);
12266
12285
  const renderText = () => {
12267
12286
  const {
12268
12287
  price,
@@ -12322,9 +12341,10 @@ var stdin_default$b = vue.defineComponent({
12322
12341
  "onClick": onClickButton
12323
12342
  }, null);
12324
12343
  };
12325
- return () => {
12344
+ const renderSubmitBar = () => {
12326
12345
  var _a, _b;
12327
12346
  return vue.createVNode("div", {
12347
+ "ref": root,
12328
12348
  "class": [bem$5(), {
12329
12349
  "van-safe-area-bottom": props.safeAreaInsetBottom
12330
12350
  }]
@@ -12332,6 +12352,12 @@ var stdin_default$b = vue.defineComponent({
12332
12352
  "class": bem$5("bar")
12333
12353
  }, [(_b = slots.default) == null ? void 0 : _b.call(slots), renderText(), renderButton()])]);
12334
12354
  };
12355
+ return () => {
12356
+ if (props.placeholder) {
12357
+ return renderPlaceholder(renderSubmitBar);
12358
+ }
12359
+ return renderSubmitBar();
12360
+ };
12335
12361
  }
12336
12362
  });
12337
12363
  const SubmitBar = withInstall(stdin_default$b);
@@ -13144,13 +13170,13 @@ var stdin_default$4 = vue.defineComponent({
13144
13170
  if (props.previewFullImage) {
13145
13171
  const imageFiles = props.modelValue.filter(isImageFile);
13146
13172
  const images = imageFiles.map((item2) => {
13147
- if (item2.file && !item2.url) {
13173
+ if (item2.file && !item2.url && item2.status !== "failed") {
13148
13174
  item2.url = URL.createObjectURL(item2.file);
13149
13175
  urls.push(item2.url);
13150
13176
  }
13151
13177
  return item2.url;
13152
13178
  }).filter(Boolean);
13153
- imagePreview = ImagePreview(extend({
13179
+ imagePreview = showImagePreview(extend({
13154
13180
  images,
13155
13181
  startPosition: imageFiles.indexOf(item),
13156
13182
  onClose: onClosePreview
@@ -14088,7 +14114,7 @@ const Lazyload = {
14088
14114
  });
14089
14115
  }
14090
14116
  };
14091
- const version = "4.0.0-alpha.4";
14117
+ const version = "4.0.0-beta.0";
14092
14118
  function install(app) {
14093
14119
  const components = [
14094
14120
  ActionBar,
@@ -14277,6 +14303,24 @@ exports.TimePicker = TimePicker;
14277
14303
  exports.Toast = Toast;
14278
14304
  exports.TreeSelect = TreeSelect;
14279
14305
  exports.Uploader = Uploader;
14306
+ exports.allowMultipleToast = allowMultipleToast;
14307
+ exports.closeDialog = closeDialog;
14308
+ exports.closeNotify = closeNotify;
14309
+ exports.closeToast = closeToast;
14280
14310
  exports["default"] = stdin_default;
14281
14311
  exports.install = install;
14312
+ exports.resetDialogDefaultOptions = resetDialogDefaultOptions;
14313
+ exports.resetNotifyDefaultOptions = resetNotifyDefaultOptions;
14314
+ exports.resetToastDefaultOptions = resetToastDefaultOptions;
14315
+ exports.setDialogDefaultOptions = setDialogDefaultOptions;
14316
+ exports.setNotifyDefaultOptions = setNotifyDefaultOptions;
14317
+ exports.setToastDefaultOptions = setToastDefaultOptions;
14318
+ exports.showConfirmDialog = showConfirmDialog;
14319
+ exports.showDialog = showDialog;
14320
+ exports.showFailToast = showFailToast;
14321
+ exports.showImagePreview = showImagePreview;
14322
+ exports.showLoadingToast = showLoadingToast;
14323
+ exports.showNotify = showNotify;
14324
+ exports.showSuccessToast = showSuccessToast;
14325
+ exports.showToast = showToast;
14282
14326
  exports.version = version;