vant 3.4.5 → 3.4.8

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 (476) hide show
  1. package/README.md +141 -0
  2. package/changelog.generated.md +79 -0
  3. package/es/address-list/AddressListItem.d.ts +3 -2
  4. package/es/address-list/AddressListItem.js +1 -1
  5. package/es/badge/Badge.d.ts +4 -3
  6. package/es/badge/index.d.ts +2 -2
  7. package/es/calendar/Calendar.d.ts +4 -0
  8. package/es/calendar/Calendar.js +3 -1
  9. package/es/calendar/CalendarDay.js +4 -0
  10. package/es/calendar/index.css +1 -1
  11. package/es/calendar/index.d.ts +3 -0
  12. package/es/calendar/index.less +2 -0
  13. package/es/calendar/types.d.ts +2 -1
  14. package/es/calendar/var.less +1 -0
  15. package/es/cascader/types.d.ts +2 -1
  16. package/es/checkbox/Checker.d.ts +2 -1
  17. package/es/collapse/Collapse.d.ts +7 -6
  18. package/es/collapse/index.d.ts +3 -3
  19. package/es/composables/use-touch.js +1 -1
  20. package/es/config-provider/ConfigProvider.d.ts +4 -3
  21. package/es/config-provider/index.d.ts +2 -2
  22. package/es/contact-list/ContactList.d.ts +3 -2
  23. package/es/coupon/Coupon.d.ts +2 -1
  24. package/es/coupon-list/CouponList.d.ts +3 -13
  25. package/es/coupon-list/CouponList.js +9 -7
  26. package/es/coupon-list/index.css +1 -1
  27. package/es/coupon-list/index.d.ts +2 -9
  28. package/es/coupon-list/index.less +4 -16
  29. package/es/coupon-list/style/index.js +1 -0
  30. package/es/coupon-list/style/less.js +1 -0
  31. package/es/coupon-list/var.less +0 -1
  32. package/es/datetime-picker/DatePicker.js +2 -2
  33. package/es/dialog/index.css +1 -1
  34. package/es/dialog/types.d.ts +2 -2
  35. package/es/dropdown-item/types.d.ts +2 -1
  36. package/es/empty/Empty.d.ts +8 -7
  37. package/es/empty/Empty.js +2 -2
  38. package/es/empty/index.d.ts +2 -2
  39. package/es/field/Field.d.ts +4 -0
  40. package/es/field/Field.js +2 -0
  41. package/es/field/index.d.ts +2 -0
  42. package/es/form/Form.js +1 -0
  43. package/es/form/types.d.ts +1 -0
  44. package/es/icon/index.css +1 -1
  45. package/es/index-bar/IndexBar.d.ts +5 -4
  46. package/es/index-bar/IndexBar.js +25 -4
  47. package/es/index-bar/index.d.ts +3 -3
  48. package/es/index-bar/types.d.ts +2 -1
  49. package/es/index.d.ts +1 -1
  50. package/es/index.js +1 -1
  51. package/es/locale/lang/da-DK.d.ts +64 -0
  52. package/es/locale/lang/da-DK.js +66 -0
  53. package/es/locale/lang/is-IS.d.ts +64 -0
  54. package/es/locale/lang/is-IS.js +74 -0
  55. package/es/locale/lang/la-LA.d.ts +64 -0
  56. package/es/locale/lang/la-LA.js +66 -0
  57. package/es/locale/lang/sv-SE.d.ts +64 -0
  58. package/es/locale/lang/sv-SE.js +66 -0
  59. package/es/nav-bar/NavBar.d.ts +1 -1
  60. package/es/nav-bar/NavBar.js +3 -3
  61. package/es/nav-bar/index.d.ts +1 -1
  62. package/es/notify/types.d.ts +2 -1
  63. package/es/number-keyboard/NumberKeyboard.js +10 -1
  64. package/es/picker/types.d.ts +3 -2
  65. package/es/popup/Popup.d.ts +4 -0
  66. package/es/popup/Popup.js +3 -0
  67. package/es/popup/index.css +1 -1
  68. package/es/popup/index.d.ts +3 -0
  69. package/es/progress/Progress.d.ts +4 -3
  70. package/es/progress/index.d.ts +2 -2
  71. package/es/rate/Rate.js +32 -10
  72. package/es/search/Search.d.ts +3 -0
  73. package/es/search/index.d.ts +2 -0
  74. package/es/share-sheet/ShareSheet.js +25 -11
  75. package/es/share-sheet/index.css +1 -1
  76. package/es/share-sheet/index.less +45 -1
  77. package/es/skeleton/Skeleton.d.ts +5 -4
  78. package/es/skeleton/Skeleton.js +6 -4
  79. package/es/skeleton/index.d.ts +3 -3
  80. package/es/slider/index.css +1 -1
  81. package/es/style/animation.css +1 -1
  82. package/es/style/base.css +1 -1
  83. package/es/style/base.less +5 -0
  84. package/es/swipe-cell/SwipeCell.js +1 -1
  85. package/es/swipe-cell/index.css +1 -1
  86. package/es/tabbar/Tabbar.d.ts +2 -2
  87. package/es/tabs/Tabs.d.ts +1 -1
  88. package/es/tabs/Tabs.js +1 -0
  89. package/es/tabs/types.d.ts +5 -4
  90. package/es/toast/Toast.js +1 -0
  91. package/es/toast/types.d.ts +3 -2
  92. package/es/tree-select/TreeSelect.d.ts +7 -6
  93. package/es/tree-select/index.d.ts +3 -3
  94. package/es/uploader/Uploader.d.ts +4 -4
  95. package/es/uploader/Uploader.js +2 -2
  96. package/es/uploader/UploaderPreviewItem.d.ts +3 -3
  97. package/es/uploader/UploaderPreviewItem.js +9 -6
  98. package/es/uploader/index.d.ts +2 -2
  99. package/es/uploader/types.d.ts +5 -5
  100. package/es/utils/basic.d.ts +1 -0
  101. package/es/utils/format.d.ts +7 -6
  102. package/es/utils/format.js +6 -0
  103. package/es/utils/validate.d.ts +2 -1
  104. package/lib/action-bar/ActionBar.js +8 -13
  105. package/lib/action-bar/index.js +9 -16
  106. package/lib/action-bar-button/ActionBarButton.js +8 -13
  107. package/lib/action-bar-button/index.js +9 -16
  108. package/lib/action-bar-icon/ActionBarIcon.js +8 -13
  109. package/lib/action-bar-icon/index.js +9 -16
  110. package/lib/action-sheet/ActionSheet.js +8 -13
  111. package/lib/action-sheet/index.js +9 -16
  112. package/lib/address-edit/AddressEdit.js +9 -16
  113. package/lib/address-edit/AddressEditDetail.js +8 -13
  114. package/lib/address-edit/index.js +9 -16
  115. package/lib/address-edit/types.js +7 -12
  116. package/lib/address-list/AddressList.js +9 -16
  117. package/lib/address-list/AddressListItem.d.ts +3 -2
  118. package/lib/address-list/AddressListItem.js +8 -13
  119. package/lib/address-list/index.js +9 -16
  120. package/lib/area/Area.js +8 -13
  121. package/lib/area/index.js +9 -16
  122. package/lib/area/types.js +7 -12
  123. package/lib/badge/Badge.d.ts +4 -3
  124. package/lib/badge/Badge.js +8 -13
  125. package/lib/badge/index.d.ts +2 -2
  126. package/lib/badge/index.js +9 -16
  127. package/lib/button/Button.js +8 -13
  128. package/lib/button/index.js +9 -16
  129. package/lib/button/types.js +7 -12
  130. package/lib/calendar/Calendar.d.ts +4 -0
  131. package/lib/calendar/Calendar.js +12 -17
  132. package/lib/calendar/CalendarDay.js +12 -13
  133. package/lib/calendar/CalendarHeader.js +8 -13
  134. package/lib/calendar/CalendarMonth.js +9 -16
  135. package/lib/calendar/index.css +1 -1
  136. package/lib/calendar/index.d.ts +3 -0
  137. package/lib/calendar/index.js +9 -16
  138. package/lib/calendar/index.less +2 -0
  139. package/lib/calendar/types.d.ts +2 -1
  140. package/lib/calendar/types.js +7 -12
  141. package/lib/calendar/utils.js +8 -13
  142. package/lib/calendar/var.less +1 -0
  143. package/lib/card/Card.js +8 -13
  144. package/lib/card/index.js +9 -16
  145. package/lib/cascader/Cascader.js +8 -13
  146. package/lib/cascader/index.js +9 -16
  147. package/lib/cascader/types.d.ts +2 -1
  148. package/lib/cascader/types.js +7 -12
  149. package/lib/cell/Cell.js +8 -13
  150. package/lib/cell/index.js +9 -16
  151. package/lib/cell-group/CellGroup.js +8 -13
  152. package/lib/cell-group/index.js +9 -16
  153. package/lib/checkbox/Checkbox.js +9 -16
  154. package/lib/checkbox/Checker.d.ts +2 -1
  155. package/lib/checkbox/Checker.js +8 -13
  156. package/lib/checkbox/index.js +9 -16
  157. package/lib/checkbox/types.js +7 -12
  158. package/lib/checkbox-group/CheckboxGroup.js +8 -13
  159. package/lib/checkbox-group/index.js +9 -16
  160. package/lib/checkbox-group/types.js +7 -12
  161. package/lib/circle/Circle.js +8 -13
  162. package/lib/circle/index.js +9 -16
  163. package/lib/col/Col.js +8 -13
  164. package/lib/col/index.js +9 -16
  165. package/lib/collapse/Collapse.d.ts +7 -6
  166. package/lib/collapse/Collapse.js +8 -13
  167. package/lib/collapse/index.d.ts +3 -3
  168. package/lib/collapse/index.js +9 -16
  169. package/lib/collapse-item/CollapseItem.js +8 -13
  170. package/lib/collapse-item/index.js +9 -16
  171. package/lib/collapse-item/types.js +7 -12
  172. package/lib/composables/on-popup-reopen.js +8 -13
  173. package/lib/composables/use-expose.js +8 -13
  174. package/lib/composables/use-height.js +8 -13
  175. package/lib/composables/use-id.js +8 -13
  176. package/lib/composables/use-lazy-render.js +8 -13
  177. package/lib/composables/use-lock-scroll.js +8 -13
  178. package/lib/composables/use-placeholder.js +8 -13
  179. package/lib/composables/use-refs.js +8 -13
  180. package/lib/composables/use-route.js +8 -13
  181. package/lib/composables/use-tab-status.js +8 -13
  182. package/lib/composables/use-touch.js +9 -14
  183. package/lib/composables/use-visibility-change.js +8 -13
  184. package/lib/config-provider/ConfigProvider.d.ts +4 -3
  185. package/lib/config-provider/ConfigProvider.js +8 -13
  186. package/lib/config-provider/index.d.ts +2 -2
  187. package/lib/config-provider/index.js +9 -16
  188. package/lib/contact-card/ContactCard.js +8 -13
  189. package/lib/contact-card/index.js +9 -16
  190. package/lib/contact-edit/ContactEdit.js +8 -13
  191. package/lib/contact-edit/index.js +9 -16
  192. package/lib/contact-list/ContactList.d.ts +3 -2
  193. package/lib/contact-list/ContactList.js +8 -13
  194. package/lib/contact-list/index.js +9 -16
  195. package/lib/count-down/CountDown.js +8 -13
  196. package/lib/count-down/index.js +9 -16
  197. package/lib/count-down/types.js +7 -12
  198. package/lib/count-down/utils.js +8 -13
  199. package/lib/coupon/Coupon.d.ts +2 -1
  200. package/lib/coupon/Coupon.js +8 -13
  201. package/lib/coupon/index.js +9 -16
  202. package/lib/coupon/utils.js +8 -13
  203. package/lib/coupon-cell/CouponCell.js +8 -13
  204. package/lib/coupon-cell/index.js +9 -16
  205. package/lib/coupon-list/CouponList.d.ts +3 -13
  206. package/lib/coupon-list/CouponList.js +17 -20
  207. package/lib/coupon-list/index.css +1 -1
  208. package/lib/coupon-list/index.d.ts +2 -9
  209. package/lib/coupon-list/index.js +9 -16
  210. package/lib/coupon-list/index.less +4 -16
  211. package/lib/coupon-list/style/index.js +1 -0
  212. package/lib/coupon-list/style/less.js +1 -0
  213. package/lib/coupon-list/var.less +0 -1
  214. package/lib/datetime-picker/DatePicker.js +10 -15
  215. package/lib/datetime-picker/DatetimePicker.js +9 -16
  216. package/lib/datetime-picker/TimePicker.js +8 -13
  217. package/lib/datetime-picker/index.js +9 -16
  218. package/lib/datetime-picker/types.js +7 -12
  219. package/lib/datetime-picker/utils.js +8 -13
  220. package/lib/dialog/Dialog.js +8 -13
  221. package/lib/dialog/function-call.js +9 -16
  222. package/lib/dialog/index.css +1 -1
  223. package/lib/dialog/index.js +8 -13
  224. package/lib/dialog/types.d.ts +2 -2
  225. package/lib/dialog/types.js +7 -12
  226. package/lib/divider/Divider.js +8 -13
  227. package/lib/divider/index.js +9 -16
  228. package/lib/dropdown-item/DropdownItem.js +8 -13
  229. package/lib/dropdown-item/index.js +9 -16
  230. package/lib/dropdown-item/types.d.ts +2 -1
  231. package/lib/dropdown-item/types.js +7 -12
  232. package/lib/dropdown-menu/DropdownMenu.js +8 -13
  233. package/lib/dropdown-menu/index.js +9 -16
  234. package/lib/dropdown-menu/types.js +7 -12
  235. package/lib/empty/Empty.d.ts +8 -7
  236. package/lib/empty/Empty.js +9 -14
  237. package/lib/empty/Network.js +8 -13
  238. package/lib/empty/index.d.ts +2 -2
  239. package/lib/empty/index.js +9 -16
  240. package/lib/field/Field.d.ts +4 -0
  241. package/lib/field/Field.js +10 -13
  242. package/lib/field/index.d.ts +2 -0
  243. package/lib/field/index.js +9 -16
  244. package/lib/field/types.js +7 -12
  245. package/lib/field/utils.js +8 -13
  246. package/lib/form/Form.js +9 -13
  247. package/lib/form/index.js +9 -16
  248. package/lib/form/types.d.ts +1 -0
  249. package/lib/form/types.js +7 -12
  250. package/lib/grid/Grid.js +8 -13
  251. package/lib/grid/index.js +9 -16
  252. package/lib/grid-item/GridItem.js +8 -13
  253. package/lib/grid-item/index.js +9 -16
  254. package/lib/icon/Icon.js +8 -13
  255. package/lib/icon/index.css +1 -1
  256. package/lib/icon/index.js +9 -16
  257. package/lib/image/Image.js +8 -13
  258. package/lib/image/index.js +9 -16
  259. package/lib/image-preview/ImagePreview.js +9 -16
  260. package/lib/image-preview/ImagePreviewItem.js +8 -13
  261. package/lib/image-preview/function-call.js +9 -16
  262. package/lib/image-preview/index.js +8 -13
  263. package/lib/image-preview/types.js +7 -12
  264. package/lib/index-anchor/IndexAnchor.js +8 -13
  265. package/lib/index-anchor/index.js +9 -16
  266. package/lib/index-bar/IndexBar.d.ts +5 -4
  267. package/lib/index-bar/IndexBar.js +33 -17
  268. package/lib/index-bar/index.d.ts +3 -3
  269. package/lib/index-bar/index.js +9 -16
  270. package/lib/index-bar/types.d.ts +2 -1
  271. package/lib/index-bar/types.js +7 -12
  272. package/lib/index.css +1 -1
  273. package/lib/index.d.ts +1 -1
  274. package/lib/index.js +96 -100
  275. package/lib/index.less +2 -2
  276. package/lib/lazyload/index.js +8 -13
  277. package/lib/lazyload/vue-lazyload/index.js +9 -16
  278. package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
  279. package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
  280. package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
  281. package/lib/lazyload/vue-lazyload/lazy.js +9 -16
  282. package/lib/lazyload/vue-lazyload/listener.js +8 -13
  283. package/lib/lazyload/vue-lazyload/util.js +8 -13
  284. package/lib/list/List.js +8 -13
  285. package/lib/list/index.js +9 -16
  286. package/lib/list/types.js +7 -12
  287. package/lib/loading/Loading.js +8 -13
  288. package/lib/loading/index.js +9 -16
  289. package/lib/locale/index.js +9 -16
  290. package/lib/locale/lang/bn-BD.js +8 -13
  291. package/lib/locale/lang/da-DK.d.ts +64 -0
  292. package/lib/locale/lang/da-DK.js +85 -0
  293. package/lib/locale/lang/de-DE-formal.js +8 -13
  294. package/lib/locale/lang/de-DE.js +8 -13
  295. package/lib/locale/lang/en-US.js +8 -13
  296. package/lib/locale/lang/es-ES.js +8 -13
  297. package/lib/locale/lang/fr-FR.js +8 -13
  298. package/lib/locale/lang/hi-IN.js +8 -13
  299. package/lib/locale/lang/id-ID.js +8 -13
  300. package/lib/locale/lang/is-IS.d.ts +64 -0
  301. package/lib/locale/lang/is-IS.js +93 -0
  302. package/lib/locale/lang/it-IT.js +8 -13
  303. package/lib/locale/lang/ja-JP.js +8 -13
  304. package/lib/locale/lang/ko-KR.js +8 -13
  305. package/lib/locale/lang/la-LA.d.ts +64 -0
  306. package/lib/locale/lang/la-LA.js +85 -0
  307. package/lib/locale/lang/nb-NO.js +8 -13
  308. package/lib/locale/lang/pt-BR.js +8 -13
  309. package/lib/locale/lang/ro-RO.js +8 -13
  310. package/lib/locale/lang/ru-RU.js +8 -13
  311. package/lib/locale/lang/sv-SE.d.ts +64 -0
  312. package/lib/locale/lang/sv-SE.js +85 -0
  313. package/lib/locale/lang/th-TH.js +8 -13
  314. package/lib/locale/lang/tr-TR.js +8 -13
  315. package/lib/locale/lang/uk-UA.js +8 -13
  316. package/lib/locale/lang/vi-VN.js +8 -13
  317. package/lib/locale/lang/zh-CN.js +8 -13
  318. package/lib/locale/lang/zh-HK.js +8 -13
  319. package/lib/locale/lang/zh-TW.js +8 -13
  320. package/lib/nav-bar/NavBar.d.ts +1 -1
  321. package/lib/nav-bar/NavBar.js +11 -16
  322. package/lib/nav-bar/index.d.ts +1 -1
  323. package/lib/nav-bar/index.js +9 -16
  324. package/lib/notice-bar/NoticeBar.js +8 -13
  325. package/lib/notice-bar/index.js +9 -16
  326. package/lib/notice-bar/types.js +7 -12
  327. package/lib/notify/Notify.js +8 -13
  328. package/lib/notify/function-call.js +9 -16
  329. package/lib/notify/index.js +8 -13
  330. package/lib/notify/types.d.ts +2 -1
  331. package/lib/notify/types.js +7 -12
  332. package/lib/number-keyboard/NumberKeyboard.js +19 -17
  333. package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
  334. package/lib/number-keyboard/index.js +9 -16
  335. package/lib/overlay/Overlay.js +8 -13
  336. package/lib/overlay/index.js +9 -16
  337. package/lib/pagination/Pagination.js +8 -13
  338. package/lib/pagination/index.js +9 -16
  339. package/lib/password-input/PasswordInput.js +8 -13
  340. package/lib/password-input/index.js +9 -16
  341. package/lib/picker/Picker.js +9 -16
  342. package/lib/picker/PickerColumn.js +8 -13
  343. package/lib/picker/index.js +9 -16
  344. package/lib/picker/types.d.ts +3 -2
  345. package/lib/picker/types.js +7 -12
  346. package/lib/popover/Popover.js +8 -13
  347. package/lib/popover/index.js +9 -16
  348. package/lib/popover/types.js +7 -12
  349. package/lib/popup/Popup.d.ts +4 -0
  350. package/lib/popup/Popup.js +11 -13
  351. package/lib/popup/index.css +1 -1
  352. package/lib/popup/index.d.ts +3 -0
  353. package/lib/popup/index.js +9 -16
  354. package/lib/popup/shared.js +8 -13
  355. package/lib/popup/types.js +7 -12
  356. package/lib/progress/Progress.d.ts +4 -3
  357. package/lib/progress/Progress.js +8 -13
  358. package/lib/progress/index.d.ts +2 -2
  359. package/lib/progress/index.js +9 -16
  360. package/lib/progress/types.js +7 -12
  361. package/lib/pull-refresh/PullRefresh.js +8 -13
  362. package/lib/pull-refresh/index.js +9 -16
  363. package/lib/radio/Radio.js +9 -16
  364. package/lib/radio/index.js +9 -16
  365. package/lib/radio-group/RadioGroup.js +8 -13
  366. package/lib/radio-group/index.js +9 -16
  367. package/lib/rate/Rate.js +39 -22
  368. package/lib/rate/index.js +9 -16
  369. package/lib/row/Row.js +8 -13
  370. package/lib/row/index.js +9 -16
  371. package/lib/search/Search.d.ts +3 -0
  372. package/lib/search/Search.js +8 -13
  373. package/lib/search/index.d.ts +2 -0
  374. package/lib/search/index.js +9 -16
  375. package/lib/search/types.js +7 -12
  376. package/lib/share-sheet/ShareSheet.js +33 -24
  377. package/lib/share-sheet/index.css +1 -1
  378. package/lib/share-sheet/index.js +9 -16
  379. package/lib/share-sheet/index.less +45 -1
  380. package/lib/sidebar/Sidebar.js +8 -13
  381. package/lib/sidebar/index.js +9 -16
  382. package/lib/sidebar-item/SidebarItem.js +8 -13
  383. package/lib/sidebar-item/index.js +9 -16
  384. package/lib/skeleton/Skeleton.d.ts +5 -4
  385. package/lib/skeleton/Skeleton.js +13 -16
  386. package/lib/skeleton/index.d.ts +3 -3
  387. package/lib/skeleton/index.js +9 -16
  388. package/lib/slider/Slider.js +8 -13
  389. package/lib/slider/index.css +1 -1
  390. package/lib/slider/index.js +9 -16
  391. package/lib/step/Step.js +8 -13
  392. package/lib/step/index.js +9 -16
  393. package/lib/stepper/Stepper.js +8 -13
  394. package/lib/stepper/index.js +9 -16
  395. package/lib/steps/Steps.js +8 -13
  396. package/lib/steps/index.js +9 -16
  397. package/lib/sticky/Sticky.js +8 -13
  398. package/lib/sticky/index.js +9 -16
  399. package/lib/style/animation.css +1 -1
  400. package/lib/style/base.css +1 -1
  401. package/lib/style/base.less +5 -0
  402. package/lib/submit-bar/SubmitBar.js +8 -13
  403. package/lib/submit-bar/index.js +9 -16
  404. package/lib/swipe/Swipe.js +8 -13
  405. package/lib/swipe/index.js +9 -16
  406. package/lib/swipe/types.js +7 -12
  407. package/lib/swipe-cell/SwipeCell.js +9 -14
  408. package/lib/swipe-cell/index.css +1 -1
  409. package/lib/swipe-cell/index.js +9 -16
  410. package/lib/swipe-cell/types.js +7 -12
  411. package/lib/swipe-item/SwipeItem.js +8 -13
  412. package/lib/swipe-item/index.js +9 -16
  413. package/lib/switch/Switch.js +8 -13
  414. package/lib/switch/index.js +9 -16
  415. package/lib/tab/Tab.js +8 -13
  416. package/lib/tab/index.js +9 -16
  417. package/lib/tabbar/Tabbar.d.ts +2 -2
  418. package/lib/tabbar/Tabbar.js +8 -13
  419. package/lib/tabbar/index.js +9 -16
  420. package/lib/tabbar-item/TabbarItem.js +8 -13
  421. package/lib/tabbar-item/index.js +9 -16
  422. package/lib/tabs/Tabs.d.ts +1 -1
  423. package/lib/tabs/Tabs.js +10 -16
  424. package/lib/tabs/TabsContent.js +8 -13
  425. package/lib/tabs/TabsTitle.js +8 -13
  426. package/lib/tabs/index.js +9 -16
  427. package/lib/tabs/types.d.ts +5 -4
  428. package/lib/tabs/types.js +7 -12
  429. package/lib/tabs/utils.js +8 -13
  430. package/lib/tag/Tag.js +8 -13
  431. package/lib/tag/index.js +9 -16
  432. package/lib/toast/Toast.js +9 -13
  433. package/lib/toast/function-call.js +9 -16
  434. package/lib/toast/index.js +8 -13
  435. package/lib/toast/lock-click.js +8 -13
  436. package/lib/toast/types.d.ts +3 -2
  437. package/lib/toast/types.js +7 -12
  438. package/lib/tree-select/TreeSelect.d.ts +7 -6
  439. package/lib/tree-select/TreeSelect.js +8 -13
  440. package/lib/tree-select/index.d.ts +3 -3
  441. package/lib/tree-select/index.js +9 -16
  442. package/lib/uploader/Uploader.d.ts +4 -4
  443. package/lib/uploader/Uploader.js +10 -17
  444. package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
  445. package/lib/uploader/UploaderPreviewItem.js +17 -19
  446. package/lib/uploader/index.d.ts +2 -2
  447. package/lib/uploader/index.js +9 -16
  448. package/lib/uploader/types.d.ts +5 -5
  449. package/lib/uploader/types.js +7 -12
  450. package/lib/uploader/utils.js +8 -13
  451. package/lib/utils/basic.d.ts +1 -0
  452. package/lib/utils/basic.js +8 -13
  453. package/lib/utils/constant.js +8 -13
  454. package/lib/utils/create.js +9 -16
  455. package/lib/utils/deep-assign.js +8 -13
  456. package/lib/utils/deep-clone.js +8 -13
  457. package/lib/utils/dom.js +8 -13
  458. package/lib/utils/format.d.ts +7 -6
  459. package/lib/utils/format.js +14 -13
  460. package/lib/utils/index.js +17 -21
  461. package/lib/utils/interceptor.js +8 -13
  462. package/lib/utils/mount-component.js +8 -13
  463. package/lib/utils/props.js +8 -13
  464. package/lib/utils/validate.d.ts +2 -1
  465. package/lib/utils/validate.js +8 -13
  466. package/lib/utils/with-install.js +8 -13
  467. package/lib/vant.cjs.js +347 -256
  468. package/lib/vant.cjs.min.js +1 -1
  469. package/lib/vant.es.js +347 -256
  470. package/lib/vant.es.min.js +347 -256
  471. package/lib/vant.js +347 -256
  472. package/lib/vant.min.js +1 -1
  473. package/package.json +4 -4
  474. package/vetur/attributes.json +223 -279
  475. package/vetur/tags.json +53 -49
  476. package/vetur/web-types.json +1628 -753
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
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));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  Pagination: () => Pagination,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_Pagination = __toESM(require("./Pagination"));
35
29
  const Pagination = (0, import_utils.withInstall)(import_Pagination.default);
36
30
  var stdin_default = Pagination;
37
- module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  default: () => stdin_default
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_vue = require("vue");
28
24
  var import_vue2 = require("vue");
29
25
  var import_utils = require("../utils");
@@ -99,4 +95,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
99
95
  };
100
96
  }
101
97
  });
102
- module.exports = __toCommonJS(stdin_exports);
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
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));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  PasswordInput: () => PasswordInput,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_PasswordInput = __toESM(require("./PasswordInput"));
35
29
  const PasswordInput = (0, import_utils.withInstall)(import_PasswordInput.default);
36
30
  var stdin_default = PasswordInput;
37
- module.exports = __toCommonJS(stdin_exports);
@@ -4,32 +4,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name2 in all)
10
9
  __defProp(target, name2, { get: all[name2], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
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));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  default: () => stdin_default,
31
24
  pickerSharedProps: () => pickerSharedProps
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_vue = require("vue");
34
28
  var import_vue2 = require("vue");
35
29
  var import_utils = require("../utils");
@@ -340,4 +334,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
340
334
  };
341
335
  }
342
336
  });
343
- module.exports = __toCommonJS(stdin_exports);
@@ -2,29 +2,25 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  PICKER_KEY: () => PICKER_KEY,
26
21
  default: () => stdin_default
27
22
  });
23
+ module.exports = __toCommonJS(stdin_exports);
28
24
  var import_vue = require("vue");
29
25
  var import_vue2 = require("vue");
30
26
  var import_deep_clone = require("../utils/deep-clone");
@@ -259,4 +255,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
259
255
  }, [renderOptions()])]);
260
256
  }
261
257
  });
262
- module.exports = __toCommonJS(stdin_exports);
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
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));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  Picker: () => Picker,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_Picker = __toESM(require("./Picker"));
35
29
  const Picker = (0, import_utils.withInstall)(import_Picker.default);
36
30
  var stdin_default = Picker;
37
- module.exports = __toCommonJS(stdin_exports);
@@ -1,4 +1,5 @@
1
1
  import type { ComponentPublicInstance } from 'vue';
2
+ import type { Numeric } from '../utils';
2
3
  import type { PickerProps } from './Picker';
3
4
  export declare type PickerToolbarPosition = 'top' | 'bottom';
4
5
  export declare type PickerFieldNames = {
@@ -7,11 +8,11 @@ export declare type PickerFieldNames = {
7
8
  children?: string;
8
9
  };
9
10
  export declare type PickerObjectOption = {
10
- text?: string | number;
11
+ text?: Numeric;
11
12
  disabled?: boolean;
12
13
  [key: PropertyKey]: any;
13
14
  };
14
- export declare type PickerOption = string | number | PickerObjectOption;
15
+ export declare type PickerOption = Numeric | PickerObjectOption;
15
16
  export declare type PickerObjectColumn = {
16
17
  values?: PickerOption[];
17
18
  children?: PickerColumn;
@@ -2,19 +2,14 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
- var __reExport = (target, module2, copyDefault, desc) => {
7
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
8
- for (let key of __getOwnPropNames(module2))
9
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
10
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
10
  }
12
- return target;
11
+ return to;
13
12
  };
14
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
15
- return (module2, temp) => {
16
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
17
- };
18
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
14
  var stdin_exports = {};
20
15
  module.exports = __toCommonJS(stdin_exports);
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  default: () => stdin_default
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_vue = require("vue");
28
24
  var import_vue2 = require("vue");
29
25
  var import_popperjs = require("@vant/popperjs");
@@ -198,4 +194,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
198
194
  };
199
195
  }
200
196
  });
201
- module.exports = __toCommonJS(stdin_exports);
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
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));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  Popover: () => Popover,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_Popover = __toESM(require("./Popover"));
35
29
  const Popover = (0, import_utils.withInstall)(import_Popover.default);
36
30
  var stdin_default = Popover;
37
- module.exports = __toCommonJS(stdin_exports);
@@ -2,19 +2,14 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
- var __reExport = (target, module2, copyDefault, desc) => {
7
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
8
- for (let key of __getOwnPropNames(module2))
9
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
10
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
10
  }
12
- return target;
11
+ return to;
13
12
  };
14
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
15
- return (module2, temp) => {
16
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
17
- };
18
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
14
  var stdin_exports = {};
20
15
  module.exports = __toCommonJS(stdin_exports);
@@ -43,6 +43,7 @@ declare const popupProps: {
43
43
  type: import("vue").PropType<PopupCloseIconPosition>;
44
44
  default: PopupCloseIconPosition;
45
45
  };
46
+ safeAreaInsetTop: BooleanConstructor;
46
47
  safeAreaInsetBottom: BooleanConstructor;
47
48
  };
48
49
  export declare type PopupProps = ExtractPropTypes<typeof popupProps>;
@@ -89,6 +90,7 @@ declare const _default: import("vue").DefineComponent<{
89
90
  type: import("vue").PropType<PopupCloseIconPosition>;
90
91
  default: PopupCloseIconPosition;
91
92
  };
93
+ safeAreaInsetTop: BooleanConstructor;
92
94
  safeAreaInsetBottom: BooleanConstructor;
93
95
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
94
96
  show: BooleanConstructor;
@@ -133,6 +135,7 @@ declare const _default: import("vue").DefineComponent<{
133
135
  type: import("vue").PropType<PopupCloseIconPosition>;
134
136
  default: PopupCloseIconPosition;
135
137
  };
138
+ safeAreaInsetTop: BooleanConstructor;
136
139
  safeAreaInsetBottom: BooleanConstructor;
137
140
  }>> & {
138
141
  onKeydown?: ((...args: any[]) => any) | undefined;
@@ -157,5 +160,6 @@ declare const _default: import("vue").DefineComponent<{
157
160
  closeable: boolean;
158
161
  closeOnPopstate: boolean;
159
162
  closeIconPosition: PopupCloseIconPosition;
163
+ safeAreaInsetTop: boolean;
160
164
  }>;
161
165
  export default _default;
@@ -2,28 +2,24 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name2 in all)
8
7
  __defProp(target, name2, { get: all[name2], enumerable: true });
9
8
  };
10
- var __reExport = (target, module2, copyDefault, desc) => {
11
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
- for (let key of __getOwnPropNames(module2))
13
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
14
  }
16
- return target;
15
+ return to;
17
16
  };
18
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
- return (module2, temp) => {
20
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
- };
22
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
18
  var stdin_exports = {};
24
19
  __export(stdin_exports, {
25
20
  default: () => stdin_default
26
21
  });
22
+ module.exports = __toCommonJS(stdin_exports);
27
23
  var import_vue = require("vue");
28
24
  var import_vue2 = require("vue");
29
25
  var import_shared = require("./shared");
@@ -44,6 +40,7 @@ const popupProps = (0, import_utils.extend)({}, import_shared.popupSharedProps,
44
40
  iconPrefix: String,
45
41
  closeOnPopstate: Boolean,
46
42
  closeIconPosition: (0, import_utils.makeStringProp)("top-right"),
43
+ safeAreaInsetTop: Boolean,
47
44
  safeAreaInsetBottom: Boolean
48
45
  });
49
46
  const [name, bem] = (0, import_utils.createNamespace)("popup");
@@ -138,6 +135,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
138
135
  const {
139
136
  round,
140
137
  position,
138
+ safeAreaInsetTop,
141
139
  safeAreaInsetBottom
142
140
  } = props;
143
141
  return (0, import_vue.withDirectives)((0, import_vue.createVNode)("div", (0, import_vue.mergeProps)({
@@ -147,6 +145,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
147
145
  round,
148
146
  [position]: position
149
147
  }), {
148
+ "van-safe-area-top": safeAreaInsetTop,
150
149
  "van-safe-area-bottom": safeAreaInsetBottom
151
150
  }],
152
151
  "onKeydown": onKeydown
@@ -223,4 +222,3 @@ var stdin_default = (0, import_vue2.defineComponent)({
223
222
  };
224
223
  }
225
224
  });
226
- module.exports = __toCommonJS(stdin_exports);
@@ -1 +1 @@
1
- :root{--van-popup-background-color: var(--van-background-color-light);--van-popup-transition: transform var(--van-animation-duration-base);--van-popup-round-border-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--van-popup-background-color);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:50%;transform:translate(-50%,-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-border-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-border-radius) var(--van-popup-round-border-radius)}.van-popup--right{top:50%;right:0;transform:translateY(-50%)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-border-radius) 0 0 var(--van-popup-round-border-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-border-radius) var(--van-popup-round-border-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translateY(-50%)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-border-radius) var(--van-popup-round-border-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-animation-timing-function-enter)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-animation-timing-function-leave)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translateY(-100%)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate(100%,-50%)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translateY(100%)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate(-100%,-50%)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
1
+ :root{--van-popup-background-color: var(--van-background-color-light);--van-popup-transition: transform var(--van-animation-duration-base);--van-popup-round-border-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--van-popup-background-color);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:50%;transform:translate3d(-50%,-50%,0)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-border-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-border-radius) var(--van-popup-round-border-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-border-radius) 0 0 var(--van-popup-round-border-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-border-radius) var(--van-popup-round-border-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-border-radius) var(--van-popup-round-border-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-animation-timing-function-enter)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-animation-timing-function-leave)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
@@ -41,6 +41,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
41
41
  type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
42
42
  default: import("./types").PopupCloseIconPosition;
43
43
  };
44
+ safeAreaInsetTop: BooleanConstructor;
44
45
  safeAreaInsetBottom: BooleanConstructor;
45
46
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
47
  show: BooleanConstructor;
@@ -85,6 +86,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
85
86
  type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
86
87
  default: import("./types").PopupCloseIconPosition;
87
88
  };
89
+ safeAreaInsetTop: BooleanConstructor;
88
90
  safeAreaInsetBottom: BooleanConstructor;
89
91
  }>> & {
90
92
  onKeydown?: ((...args: any[]) => any) | undefined;
@@ -109,6 +111,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
109
111
  closeable: boolean;
110
112
  closeOnPopstate: boolean;
111
113
  closeIconPosition: import("./types").PopupCloseIconPosition;
114
+ safeAreaInsetTop: boolean;
112
115
  }>>;
113
116
  export default Popup;
114
117
  export type { PopupProps } from './Popup';
@@ -4,34 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
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));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
21
  var stdin_exports = {};
29
22
  __export(stdin_exports, {
30
23
  Popup: () => Popup,
31
24
  default: () => stdin_default
32
25
  });
26
+ module.exports = __toCommonJS(stdin_exports);
33
27
  var import_utils = require("../utils");
34
28
  var import_Popup = __toESM(require("./Popup"));
35
29
  const Popup = (0, import_utils.withInstall)(import_Popup.default);
36
30
  var stdin_default = Popup;
37
- module.exports = __toCommonJS(stdin_exports);