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
@@ -20,7 +20,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
20
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
21
  var stdin_exports = {};
22
22
  __export(stdin_exports, {
23
- Notify: () => Notify
23
+ closeNotify: () => closeNotify,
24
+ resetNotifyDefaultOptions: () => resetNotifyDefaultOptions,
25
+ setNotifyDefaultOptions: () => setNotifyDefaultOptions,
26
+ showNotify: () => showNotify
24
27
  });
25
28
  module.exports = __toCommonJS(stdin_exports);
26
29
  var import_vue = require("vue");
@@ -47,21 +50,6 @@ function initInstance() {
47
50
  }
48
51
  }));
49
52
  }
50
- function Notify(options) {
51
- if (!import_utils.inBrowser) {
52
- return;
53
- }
54
- if (!instance) {
55
- initInstance();
56
- }
57
- options = (0, import_utils.extend)({}, Notify.currentOptions, parseOptions(options));
58
- instance.open(options);
59
- clearTimeout(timer);
60
- if (options.duration > 0) {
61
- timer = window.setTimeout(Notify.clear, options.duration);
62
- }
63
- return instance;
64
- }
65
53
  const getDefaultOptions = () => ({
66
54
  type: "danger",
67
55
  color: void 0,
@@ -75,20 +63,28 @@ const getDefaultOptions = () => ({
75
63
  lockScroll: false,
76
64
  background: void 0
77
65
  });
78
- Notify.clear = () => {
66
+ let currentOptions = getDefaultOptions();
67
+ const closeNotify = () => {
79
68
  if (instance) {
80
69
  instance.toggle(false);
81
70
  }
82
71
  };
83
- Notify.currentOptions = getDefaultOptions();
84
- Notify.setDefaultOptions = (options) => {
85
- (0, import_utils.extend)(Notify.currentOptions, options);
86
- };
87
- Notify.resetDefaultOptions = () => {
88
- Notify.currentOptions = getDefaultOptions();
89
- };
90
- Notify.Component = (0, import_utils.withInstall)(import_Notify.default);
91
- Notify.install = (app) => {
92
- app.use(Notify.Component);
93
- app.config.globalProperties.$notify = Notify;
72
+ function showNotify(options) {
73
+ if (!import_utils.inBrowser) {
74
+ return;
75
+ }
76
+ if (!instance) {
77
+ initInstance();
78
+ }
79
+ options = (0, import_utils.extend)({}, currentOptions, parseOptions(options));
80
+ instance.open(options);
81
+ clearTimeout(timer);
82
+ if (options.duration > 0) {
83
+ timer = window.setTimeout(closeNotify, options.duration);
84
+ }
85
+ return instance;
86
+ }
87
+ const setNotifyDefaultOptions = (options) => (0, import_utils.extend)(currentOptions, options);
88
+ const resetNotifyDefaultOptions = () => {
89
+ currentOptions = getDefaultOptions();
94
90
  };
@@ -1,6 +1,95 @@
1
- import { Notify } from './function-call';
1
+ export declare const Notify: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ show: BooleanConstructor;
3
+ zIndex: (NumberConstructor | StringConstructor)[];
4
+ overlay: {
5
+ type: BooleanConstructor;
6
+ default: true;
7
+ };
8
+ duration: (NumberConstructor | StringConstructor)[];
9
+ teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
10
+ lockScroll: {
11
+ type: BooleanConstructor;
12
+ default: true;
13
+ };
14
+ lazyRender: {
15
+ type: BooleanConstructor;
16
+ default: true;
17
+ };
18
+ beforeClose: import("vue").PropType<import("../utils").Interceptor>;
19
+ overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
20
+ overlayClass: import("vue").PropType<unknown>;
21
+ transitionAppear: BooleanConstructor;
22
+ closeOnClickOverlay: {
23
+ type: BooleanConstructor;
24
+ default: true;
25
+ };
26
+ } & {
27
+ type: {
28
+ type: import("vue").PropType<import("./types").NotifyType>;
29
+ default: import("./types").NotifyType;
30
+ };
31
+ color: StringConstructor;
32
+ message: (NumberConstructor | StringConstructor)[];
33
+ position: {
34
+ type: import("vue").PropType<import("./types").NotifyPosition>;
35
+ default: import("./types").NotifyPosition;
36
+ };
37
+ className: import("vue").PropType<unknown>;
38
+ background: StringConstructor;
39
+ lockScroll: BooleanConstructor;
40
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
41
+ show: BooleanConstructor;
42
+ zIndex: (NumberConstructor | StringConstructor)[];
43
+ overlay: {
44
+ type: BooleanConstructor;
45
+ default: true;
46
+ };
47
+ duration: (NumberConstructor | StringConstructor)[];
48
+ teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
49
+ lockScroll: {
50
+ type: BooleanConstructor;
51
+ default: true;
52
+ };
53
+ lazyRender: {
54
+ type: BooleanConstructor;
55
+ default: true;
56
+ };
57
+ beforeClose: import("vue").PropType<import("../utils").Interceptor>;
58
+ overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
59
+ overlayClass: import("vue").PropType<unknown>;
60
+ transitionAppear: BooleanConstructor;
61
+ closeOnClickOverlay: {
62
+ type: BooleanConstructor;
63
+ default: true;
64
+ };
65
+ } & {
66
+ type: {
67
+ type: import("vue").PropType<import("./types").NotifyType>;
68
+ default: import("./types").NotifyType;
69
+ };
70
+ color: StringConstructor;
71
+ message: (NumberConstructor | StringConstructor)[];
72
+ position: {
73
+ type: import("vue").PropType<import("./types").NotifyPosition>;
74
+ default: import("./types").NotifyPosition;
75
+ };
76
+ className: import("vue").PropType<unknown>;
77
+ background: StringConstructor;
78
+ lockScroll: BooleanConstructor;
79
+ }>> & {
80
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
81
+ }, {
82
+ type: import("./types").NotifyType;
83
+ position: import("./types").NotifyPosition;
84
+ overlay: boolean;
85
+ show: boolean;
86
+ lockScroll: boolean;
87
+ lazyRender: boolean;
88
+ transitionAppear: boolean;
89
+ closeOnClickOverlay: boolean;
90
+ }>>;
2
91
  export default Notify;
3
- export { Notify };
92
+ export { showNotify, closeNotify, setNotifyDefaultOptions, resetNotifyDefaultOptions, } from './function-call';
4
93
  export type { NotifyProps } from './Notify';
5
94
  export type { NotifyType, NotifyOptions } from './types';
6
95
  declare module 'vue' {
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,12 +16,20 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
17
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
21
  var stdin_exports = {};
19
22
  __export(stdin_exports, {
20
- Notify: () => import_function_call.Notify,
21
- default: () => stdin_default
23
+ Notify: () => Notify,
24
+ closeNotify: () => import_function_call.closeNotify,
25
+ default: () => stdin_default,
26
+ resetNotifyDefaultOptions: () => import_function_call.resetNotifyDefaultOptions,
27
+ setNotifyDefaultOptions: () => import_function_call.setNotifyDefaultOptions,
28
+ showNotify: () => import_function_call.showNotify
22
29
  });
23
30
  module.exports = __toCommonJS(stdin_exports);
31
+ var import_utils = require("../utils");
32
+ var import_Notify = __toESM(require("./Notify"));
24
33
  var import_function_call = require("./function-call");
25
- var stdin_default = import_function_call.Notify;
34
+ const Notify = (0, import_utils.withInstall)(import_Notify.default);
35
+ var stdin_default = Notify;
@@ -1,4 +1,3 @@
1
- import { Notify } from './function-call';
2
1
  import type { Numeric } from '../utils';
3
2
  export declare type NotifyMessage = Numeric;
4
3
  export declare type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
@@ -16,8 +15,3 @@ export declare type NotifyOptions = {
16
15
  onClose?: () => void;
17
16
  onOpened?: () => void;
18
17
  };
19
- declare module '@vue/runtime-core' {
20
- interface ComponentCustomProperties {
21
- $notify: typeof Notify;
22
- }
23
- }
@@ -204,7 +204,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
204
204
  }
205
205
  });
206
206
  (0, import_vue2.onDeactivated)(() => {
207
- if (props.show) {
207
+ if (props.show && props.teleport) {
208
208
  close();
209
209
  shouldReopen = true;
210
210
  }
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  type: (NumberConstructor | StringConstructor)[];
42
42
  default: number;
43
43
  };
44
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
44
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "refresh")[], "update:modelValue" | "change" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
45
45
  disabled: BooleanConstructor;
46
46
  modelValue: BooleanConstructor;
47
47
  headHeight: {
@@ -62,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
62
62
  default: number;
63
63
  };
64
64
  }>> & {
65
+ onChange?: ((...args: any[]) => any) | undefined;
65
66
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
66
67
  onRefresh?: ((...args: any[]) => any) | undefined;
67
68
  }, {
@@ -44,7 +44,7 @@ const pullRefreshProps = {
44
44
  var stdin_default = (0, import_vue2.defineComponent)({
45
45
  name,
46
46
  props: pullRefreshProps,
47
- emits: ["refresh", "update:modelValue"],
47
+ emits: ["change", "refresh", "update:modelValue"],
48
48
  setup(props, {
49
49
  emit,
50
50
  slots
@@ -89,6 +89,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
89
89
  } else {
90
90
  state.status = "loosing";
91
91
  }
92
+ emit("change", {
93
+ status: state.status,
94
+ distance
95
+ });
92
96
  };
93
97
  const getStatusText = () => {
94
98
  const {
@@ -18,7 +18,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
18
18
  type: (NumberConstructor | StringConstructor)[];
19
19
  default: number;
20
20
  };
21
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "refresh")[], "update:modelValue" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "refresh")[], "update:modelValue" | "change" | "refresh", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
22
  disabled: BooleanConstructor;
23
23
  modelValue: BooleanConstructor;
24
24
  headHeight: {
@@ -39,6 +39,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
39
39
  default: number;
40
40
  };
41
41
  }>> & {
42
+ onChange?: ((...args: any[]) => any) | undefined;
42
43
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
43
44
  onRefresh?: ((...args: any[]) => any) | undefined;
44
45
  }, {
@@ -20,6 +20,7 @@ declare const submitBarProps: {
20
20
  };
21
21
  buttonColor: StringConstructor;
22
22
  suffixLabel: StringConstructor;
23
+ placeholder: BooleanConstructor;
23
24
  decimalLength: {
24
25
  type: (NumberConstructor | StringConstructor)[];
25
26
  default: number;
@@ -49,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
49
50
  };
50
51
  buttonColor: StringConstructor;
51
52
  suffixLabel: StringConstructor;
53
+ placeholder: BooleanConstructor;
52
54
  decimalLength: {
53
55
  type: (NumberConstructor | StringConstructor)[];
54
56
  default: number;
@@ -76,6 +78,7 @@ declare const _default: import("vue").DefineComponent<{
76
78
  };
77
79
  buttonColor: StringConstructor;
78
80
  suffixLabel: StringConstructor;
81
+ placeholder: BooleanConstructor;
79
82
  decimalLength: {
80
83
  type: (NumberConstructor | StringConstructor)[];
81
84
  default: number;
@@ -88,6 +91,7 @@ declare const _default: import("vue").DefineComponent<{
88
91
  onSubmit?: ((...args: any[]) => any) | undefined;
89
92
  }, {
90
93
  disabled: boolean;
94
+ placeholder: boolean;
91
95
  safeAreaInsetBottom: boolean;
92
96
  loading: boolean;
93
97
  currency: string;
@@ -25,6 +25,7 @@ var import_vue2 = require("vue");
25
25
  var import_utils = require("../utils");
26
26
  var import_icon = require("../icon");
27
27
  var import_button = require("../button");
28
+ var import_use_placeholder = require("../composables/use-placeholder");
28
29
  const [name, bem, t] = (0, import_utils.createNamespace)("submit-bar");
29
30
  const submitBarProps = {
30
31
  tip: String,
@@ -39,6 +40,7 @@ const submitBarProps = {
39
40
  buttonType: (0, import_utils.makeStringProp)("danger"),
40
41
  buttonColor: String,
41
42
  suffixLabel: String,
43
+ placeholder: Boolean,
42
44
  decimalLength: (0, import_utils.makeNumericProp)(2),
43
45
  safeAreaInsetBottom: import_utils.truthProp
44
46
  };
@@ -50,6 +52,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
50
52
  emit,
51
53
  slots
52
54
  }) {
55
+ const root = (0, import_vue2.ref)();
56
+ const renderPlaceholder = (0, import_use_placeholder.usePlaceholder)(root, bem);
53
57
  const renderText = () => {
54
58
  const {
55
59
  price,
@@ -109,9 +113,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
109
113
  "onClick": onClickButton
110
114
  }, null);
111
115
  };
112
- return () => {
116
+ const renderSubmitBar = () => {
113
117
  var _a, _b;
114
118
  return (0, import_vue.createVNode)("div", {
119
+ "ref": root,
115
120
  "class": [bem(), {
116
121
  "van-safe-area-bottom": props.safeAreaInsetBottom
117
122
  }]
@@ -119,5 +124,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
119
124
  "class": bem("bar")
120
125
  }, [(_b = slots.default) == null ? void 0 : _b.call(slots), renderText(), renderButton()])]);
121
126
  };
127
+ return () => {
128
+ if (props.placeholder) {
129
+ return renderPlaceholder(renderSubmitBar);
130
+ }
131
+ return renderSubmitBar();
132
+ };
122
133
  }
123
134
  });
@@ -17,6 +17,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
17
17
  };
18
18
  buttonColor: StringConstructor;
19
19
  suffixLabel: StringConstructor;
20
+ placeholder: BooleanConstructor;
20
21
  decimalLength: {
21
22
  type: (NumberConstructor | StringConstructor)[];
22
23
  default: number;
@@ -44,6 +45,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
44
45
  };
45
46
  buttonColor: StringConstructor;
46
47
  suffixLabel: StringConstructor;
48
+ placeholder: BooleanConstructor;
47
49
  decimalLength: {
48
50
  type: (NumberConstructor | StringConstructor)[];
49
51
  default: number;
@@ -56,6 +58,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
56
58
  onSubmit?: ((...args: any[]) => any) | undefined;
57
59
  }, {
58
60
  disabled: boolean;
61
+ placeholder: boolean;
59
62
  safeAreaInsetBottom: boolean;
60
63
  loading: boolean;
61
64
  currency: string;
@@ -72,6 +72,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
72
72
  };
73
73
  (0, import_use.useCustomFieldValue)(() => props.modelValue);
74
74
  return () => {
75
+ var _a;
75
76
  const {
76
77
  size,
77
78
  loading,
@@ -97,7 +98,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
97
98
  "onClick": onClick
98
99
  }, [(0, import_vue.createVNode)("div", {
99
100
  "class": bem("node")
100
- }, [renderLoading()])]);
101
+ }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
101
102
  };
102
103
  }
103
104
  });
@@ -1,18 +1,10 @@
1
- import { type App } from 'vue';
2
- import { type ComponentInstance } from '../utils';
3
- import type { ToastType, ToastOptions } from './types';
4
- declare function Toast(options?: string | ToastOptions): ComponentInstance;
5
- declare namespace Toast {
6
- var loading: (options: string | ToastOptions) => ComponentInstance;
7
- var success: (options: string | ToastOptions) => ComponentInstance;
8
- var fail: (options: string | ToastOptions) => ComponentInstance;
9
- var clear: (all?: boolean | undefined) => void;
10
- var setDefaultOptions: {
11
- (options: ToastOptions): void;
12
- (type: ToastType, options: ToastOptions): void;
13
- };
14
- var resetDefaultOptions: (type?: ToastType | undefined) => void;
15
- var allowMultiple: (value?: boolean) => void;
16
- var install: (app: App<any>) => void;
17
- }
18
- export { Toast };
1
+ import type { ToastType, ToastOptions, ToastWrapperInstance } from './types';
2
+ export declare function showToast(options?: string | ToastOptions): ToastWrapperInstance;
3
+ export declare const showLoadingToast: (options: string | ToastOptions) => ToastWrapperInstance;
4
+ export declare const showSuccessToast: (options: string | ToastOptions) => ToastWrapperInstance;
5
+ export declare const showFailToast: (options: string | ToastOptions) => ToastWrapperInstance;
6
+ export declare const closeToast: (all?: boolean) => void;
7
+ export declare function setToastDefaultOptions(options: ToastOptions): void;
8
+ export declare function setToastDefaultOptions(type: ToastType, options: ToastOptions): void;
9
+ export declare const resetToastDefaultOptions: (type?: ToastType) => void;
10
+ export declare const allowMultipleToast: (value?: boolean) => void;
@@ -20,7 +20,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
20
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
21
  var stdin_exports = {};
22
22
  __export(stdin_exports, {
23
- Toast: () => Toast
23
+ allowMultipleToast: () => allowMultipleToast,
24
+ closeToast: () => closeToast,
25
+ resetToastDefaultOptions: () => resetToastDefaultOptions,
26
+ setToastDefaultOptions: () => setToastDefaultOptions,
27
+ showFailToast: () => showFailToast,
28
+ showLoadingToast: () => showLoadingToast,
29
+ showSuccessToast: () => showSuccessToast,
30
+ showToast: () => showToast
24
31
  });
25
32
  module.exports = __toCommonJS(stdin_exports);
26
33
  var import_vue = require("vue");
@@ -93,7 +100,7 @@ function createInstance() {
93
100
  (0, import_vue2.getCurrentInstance)().render = render;
94
101
  return {
95
102
  open,
96
- clear: close,
103
+ close,
97
104
  message
98
105
  };
99
106
  }
@@ -107,7 +114,7 @@ function getInstance() {
107
114
  }
108
115
  return queue[queue.length - 1];
109
116
  }
110
- function Toast(options = {}) {
117
+ function showToast(options = {}) {
111
118
  if (!import_utils.inBrowser) {
112
119
  return {};
113
120
  }
@@ -116,36 +123,35 @@ function Toast(options = {}) {
116
123
  toast.open((0, import_utils.extend)({}, currentOptions, defaultOptionsMap.get(parsedOptions.type || currentOptions.type), parsedOptions));
117
124
  return toast;
118
125
  }
119
- const createMethod = (type) => (options) => Toast((0, import_utils.extend)({
126
+ const createMethod = (type) => (options) => showToast((0, import_utils.extend)({
120
127
  type
121
128
  }, parseOptions(options)));
122
- Toast.loading = createMethod("loading");
123
- Toast.success = createMethod("success");
124
- Toast.fail = createMethod("fail");
125
- Toast.clear = (all) => {
129
+ const showLoadingToast = createMethod("loading");
130
+ const showSuccessToast = createMethod("success");
131
+ const showFailToast = createMethod("fail");
132
+ const closeToast = (all) => {
126
133
  var _a;
127
134
  if (queue.length) {
128
135
  if (all) {
129
136
  queue.forEach((toast) => {
130
- toast.clear();
137
+ toast.close();
131
138
  });
132
139
  queue = [];
133
140
  } else if (!allowMultiple) {
134
- queue[0].clear();
141
+ queue[0].close();
135
142
  } else {
136
- (_a = queue.shift()) == null ? void 0 : _a.clear();
143
+ (_a = queue.shift()) == null ? void 0 : _a.close();
137
144
  }
138
145
  }
139
146
  };
140
- function setDefaultOptions(type, options) {
147
+ function setToastDefaultOptions(type, options) {
141
148
  if (typeof type === "string") {
142
149
  defaultOptionsMap.set(type, options);
143
150
  } else {
144
151
  (0, import_utils.extend)(currentOptions, type);
145
152
  }
146
153
  }
147
- Toast.setDefaultOptions = setDefaultOptions;
148
- Toast.resetDefaultOptions = (type) => {
154
+ const resetToastDefaultOptions = (type) => {
149
155
  if (typeof type === "string") {
150
156
  defaultOptionsMap.delete(type);
151
157
  } else {
@@ -153,10 +159,6 @@ Toast.resetDefaultOptions = (type) => {
153
159
  defaultOptionsMap.clear();
154
160
  }
155
161
  };
156
- Toast.allowMultiple = (value = true) => {
162
+ const allowMultipleToast = (value = true) => {
157
163
  allowMultiple = value;
158
164
  };
159
- Toast.install = (app) => {
160
- app.use((0, import_utils.withInstall)(import_Toast.default));
161
- app.config.globalProperties.$toast = Toast;
162
- };
@@ -1,5 +1,79 @@
1
- import { Toast } from './function-call';
1
+ export declare const Toast: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ icon: StringConstructor;
3
+ show: BooleanConstructor;
4
+ type: {
5
+ type: import("vue").PropType<import("./types").ToastType>;
6
+ default: import("./types").ToastType;
7
+ };
8
+ overlay: BooleanConstructor;
9
+ message: (NumberConstructor | StringConstructor)[];
10
+ iconSize: (NumberConstructor | StringConstructor)[];
11
+ duration: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ position: {
16
+ type: import("vue").PropType<import("./types").ToastPosition>;
17
+ default: import("./types").ToastPosition;
18
+ };
19
+ teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
20
+ className: import("vue").PropType<unknown>;
21
+ iconPrefix: StringConstructor;
22
+ transition: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ loadingType: import("vue").PropType<import("..").LoadingType>;
27
+ forbidClick: BooleanConstructor;
28
+ overlayClass: import("vue").PropType<unknown>;
29
+ overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
30
+ closeOnClick: BooleanConstructor;
31
+ closeOnClickOverlay: BooleanConstructor;
32
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ icon: StringConstructor;
34
+ show: BooleanConstructor;
35
+ type: {
36
+ type: import("vue").PropType<import("./types").ToastType>;
37
+ default: import("./types").ToastType;
38
+ };
39
+ overlay: BooleanConstructor;
40
+ message: (NumberConstructor | StringConstructor)[];
41
+ iconSize: (NumberConstructor | StringConstructor)[];
42
+ duration: {
43
+ type: NumberConstructor;
44
+ default: number;
45
+ };
46
+ position: {
47
+ type: import("vue").PropType<import("./types").ToastPosition>;
48
+ default: import("./types").ToastPosition;
49
+ };
50
+ teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
51
+ className: import("vue").PropType<unknown>;
52
+ iconPrefix: StringConstructor;
53
+ transition: {
54
+ type: import("vue").PropType<string>;
55
+ default: string;
56
+ };
57
+ loadingType: import("vue").PropType<import("..").LoadingType>;
58
+ forbidClick: BooleanConstructor;
59
+ overlayClass: import("vue").PropType<unknown>;
60
+ overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
61
+ closeOnClick: BooleanConstructor;
62
+ closeOnClickOverlay: BooleanConstructor;
63
+ }>> & {
64
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
65
+ }, {
66
+ type: import("./types").ToastType;
67
+ position: import("./types").ToastPosition;
68
+ overlay: boolean;
69
+ show: boolean;
70
+ duration: number;
71
+ closeOnClickOverlay: boolean;
72
+ transition: string;
73
+ forbidClick: boolean;
74
+ closeOnClick: boolean;
75
+ }>>;
2
76
  export default Toast;
3
- export { Toast };
77
+ export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
4
78
  export type { ToastProps } from './Toast';
5
79
  export type { ToastType, ToastOptions, ToastPosition } from './types';
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,12 +16,24 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
17
20
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
21
  var stdin_exports = {};
19
22
  __export(stdin_exports, {
20
- Toast: () => import_function_call.Toast,
21
- default: () => stdin_default
23
+ Toast: () => Toast,
24
+ allowMultipleToast: () => import_function_call.allowMultipleToast,
25
+ closeToast: () => import_function_call.closeToast,
26
+ default: () => stdin_default,
27
+ resetToastDefaultOptions: () => import_function_call.resetToastDefaultOptions,
28
+ setToastDefaultOptions: () => import_function_call.setToastDefaultOptions,
29
+ showFailToast: () => import_function_call.showFailToast,
30
+ showLoadingToast: () => import_function_call.showLoadingToast,
31
+ showSuccessToast: () => import_function_call.showSuccessToast,
32
+ showToast: () => import_function_call.showToast
22
33
  });
23
34
  module.exports = __toCommonJS(stdin_exports);
35
+ var import_utils = require("../utils");
36
+ var import_Toast = __toESM(require("./Toast"));
24
37
  var import_function_call = require("./function-call");
25
- var stdin_default = import_function_call.Toast;
38
+ const Toast = (0, import_utils.withInstall)(import_Toast.default);
39
+ var stdin_default = Toast;