vant 4.0.0-beta.0 → 4.0.0-rc.1

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 (823) hide show
  1. package/README.md +13 -9
  2. package/changelog.generated.md +207 -163
  3. package/es/action-bar/ActionBar.d.ts +2 -2
  4. package/es/action-bar/ActionBar.mjs +1 -0
  5. package/es/action-bar/index.d.ts +2 -1
  6. package/es/action-bar/index.mjs +2 -0
  7. package/es/action-bar-button/ActionBarButton.d.ts +2 -2
  8. package/es/action-bar-button/ActionBarButton.mjs +1 -0
  9. package/es/action-bar-button/index.d.ts +2 -1
  10. package/es/action-bar-button/index.mjs +2 -0
  11. package/es/action-bar-icon/ActionBarIcon.d.ts +2 -2
  12. package/es/action-bar-icon/ActionBarIcon.mjs +1 -0
  13. package/es/action-bar-icon/index.d.ts +2 -1
  14. package/es/action-bar-icon/index.mjs +2 -0
  15. package/es/action-sheet/ActionSheet.d.ts +1 -1
  16. package/es/action-sheet/ActionSheet.mjs +1 -0
  17. package/es/action-sheet/index.d.ts +1 -0
  18. package/es/action-sheet/index.mjs +2 -0
  19. package/es/address-edit/AddressEdit.d.ts +1 -1
  20. package/es/address-edit/AddressEdit.mjs +1 -0
  21. package/es/address-edit/index.d.ts +1 -0
  22. package/es/address-edit/index.mjs +2 -0
  23. package/es/address-edit/style/index.mjs +7 -1
  24. package/es/address-list/AddressList.d.ts +1 -1
  25. package/es/address-list/AddressList.mjs +1 -0
  26. package/es/address-list/index.d.ts +1 -0
  27. package/es/address-list/index.mjs +2 -0
  28. package/es/area/Area.d.ts +7 -4
  29. package/es/area/Area.mjs +1 -0
  30. package/es/area/index.d.ts +5 -2
  31. package/es/area/index.mjs +2 -0
  32. package/es/area/style/index.mjs +7 -0
  33. package/es/area/utils.mjs +9 -2
  34. package/es/badge/Badge.d.ts +2 -2
  35. package/es/badge/Badge.mjs +2 -1
  36. package/es/badge/index.d.ts +2 -1
  37. package/es/badge/index.mjs +2 -0
  38. package/es/button/Button.d.ts +1 -1
  39. package/es/button/Button.mjs +1 -0
  40. package/es/button/index.d.ts +1 -0
  41. package/es/button/index.mjs +2 -0
  42. package/es/calendar/Calendar.d.ts +1 -1
  43. package/es/calendar/Calendar.mjs +8 -7
  44. package/es/calendar/index.d.ts +1 -0
  45. package/es/calendar/index.mjs +2 -0
  46. package/es/calendar/style/index.mjs +7 -1
  47. package/es/card/Card.d.ts +1 -1
  48. package/es/card/Card.mjs +1 -0
  49. package/es/card/index.d.ts +1 -0
  50. package/es/card/index.mjs +2 -0
  51. package/es/cascader/Cascader.d.ts +1 -1
  52. package/es/cascader/Cascader.mjs +1 -0
  53. package/es/cascader/index.d.ts +1 -0
  54. package/es/cascader/index.mjs +2 -0
  55. package/es/cell/Cell.d.ts +2 -2
  56. package/es/cell/Cell.mjs +1 -0
  57. package/es/cell/index.d.ts +2 -1
  58. package/es/cell/index.mjs +2 -0
  59. package/es/cell-group/CellGroup.d.ts +2 -2
  60. package/es/cell-group/CellGroup.mjs +1 -0
  61. package/es/cell-group/index.d.ts +2 -1
  62. package/es/cell-group/index.mjs +2 -0
  63. package/es/checkbox/Checkbox.d.ts +1 -1
  64. package/es/checkbox/Checkbox.mjs +1 -0
  65. package/es/checkbox/index.d.ts +1 -0
  66. package/es/checkbox/index.mjs +2 -0
  67. package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
  68. package/es/checkbox-group/CheckboxGroup.mjs +1 -0
  69. package/es/checkbox-group/index.d.ts +1 -0
  70. package/es/checkbox-group/index.mjs +2 -0
  71. package/es/circle/Circle.d.ts +1 -1
  72. package/es/circle/Circle.mjs +1 -0
  73. package/es/circle/index.d.ts +1 -0
  74. package/es/circle/index.mjs +2 -0
  75. package/es/col/Col.d.ts +2 -2
  76. package/es/col/Col.mjs +1 -0
  77. package/es/col/index.d.ts +2 -1
  78. package/es/col/index.mjs +2 -0
  79. package/es/collapse/Collapse.d.ts +9 -2
  80. package/es/collapse/Collapse.mjs +29 -1
  81. package/es/collapse/index.d.ts +2 -1
  82. package/es/collapse/index.mjs +2 -0
  83. package/es/collapse-item/CollapseItem.d.ts +2 -2
  84. package/es/collapse-item/CollapseItem.mjs +4 -1
  85. package/es/collapse-item/index.d.ts +2 -1
  86. package/es/collapse-item/index.mjs +2 -0
  87. package/es/composables/use-global-z-index.d.ts +4 -0
  88. package/es/composables/use-global-z-index.mjs +9 -0
  89. package/es/composables/use-height.d.ts +1 -1
  90. package/es/composables/use-height.mjs +8 -2
  91. package/es/composables/use-lazy-render.mjs +9 -5
  92. package/es/composables/use-lock-scroll.mjs +7 -2
  93. package/es/composables/use-placeholder.mjs +1 -1
  94. package/es/composables/use-visibility-change.mjs +6 -3
  95. package/es/config-provider/ConfigProvider.d.ts +15 -5
  96. package/es/config-provider/ConfigProvider.mjs +26 -9
  97. package/es/config-provider/index.d.ts +10 -3
  98. package/es/config-provider/index.mjs +2 -0
  99. package/es/contact-card/ContactCard.d.ts +1 -1
  100. package/es/contact-card/ContactCard.mjs +1 -0
  101. package/es/contact-card/index.d.ts +1 -0
  102. package/es/contact-card/index.mjs +2 -0
  103. package/es/contact-edit/ContactEdit.d.ts +1 -1
  104. package/es/contact-edit/ContactEdit.mjs +1 -0
  105. package/es/contact-edit/index.d.ts +1 -0
  106. package/es/contact-edit/index.mjs +2 -0
  107. package/es/contact-list/ContactList.d.ts +1 -1
  108. package/es/contact-list/ContactList.mjs +1 -0
  109. package/es/contact-list/index.d.ts +1 -0
  110. package/es/contact-list/index.mjs +2 -0
  111. package/es/count-down/CountDown.d.ts +1 -1
  112. package/es/count-down/CountDown.mjs +1 -0
  113. package/es/count-down/index.d.ts +1 -0
  114. package/es/count-down/index.mjs +2 -0
  115. package/es/coupon/Coupon.d.ts +1 -1
  116. package/es/coupon/index.d.ts +1 -1
  117. package/es/coupon/utils.mjs +3 -1
  118. package/es/coupon-cell/CouponCell.d.ts +2 -2
  119. package/es/coupon-cell/CouponCell.mjs +1 -0
  120. package/es/coupon-cell/index.d.ts +2 -1
  121. package/es/coupon-cell/index.mjs +2 -0
  122. package/es/coupon-list/CouponList.d.ts +1 -1
  123. package/es/coupon-list/CouponList.mjs +1 -0
  124. package/es/coupon-list/index.d.ts +1 -0
  125. package/es/coupon-list/index.mjs +2 -0
  126. package/es/coupon-list/style/index.mjs +3 -3
  127. package/es/date-picker/DatePicker.d.ts +7 -4
  128. package/es/date-picker/DatePicker.mjs +11 -10
  129. package/es/date-picker/index.d.ts +5 -2
  130. package/es/date-picker/index.mjs +2 -0
  131. package/es/date-picker/style/index.mjs +7 -0
  132. package/es/date-picker/utils.d.ts +2 -1
  133. package/es/dialog/Dialog.d.ts +1 -1
  134. package/es/dialog/Dialog.mjs +2 -1
  135. package/es/dialog/index.css +1 -1
  136. package/es/dialog/index.d.ts +1 -0
  137. package/es/dialog/index.mjs +2 -0
  138. package/es/dialog/types.d.ts +1 -1
  139. package/es/divider/Divider.d.ts +2 -2
  140. package/es/divider/Divider.mjs +2 -1
  141. package/es/divider/index.d.ts +2 -1
  142. package/es/divider/index.mjs +3 -1
  143. package/es/dropdown-item/DropdownItem.d.ts +3 -3
  144. package/es/dropdown-item/DropdownItem.mjs +2 -1
  145. package/es/dropdown-item/index.d.ts +3 -2
  146. package/es/dropdown-item/index.mjs +3 -1
  147. package/es/dropdown-menu/DropdownMenu.d.ts +2 -2
  148. package/es/dropdown-menu/DropdownMenu.mjs +4 -2
  149. package/es/dropdown-menu/index.d.ts +2 -1
  150. package/es/dropdown-menu/index.mjs +3 -1
  151. package/es/empty/Empty.d.ts +3 -3
  152. package/es/empty/Empty.mjs +283 -17
  153. package/es/empty/index.d.ts +2 -1
  154. package/es/empty/index.mjs +3 -1
  155. package/es/field/Field.d.ts +1 -1
  156. package/es/field/Field.mjs +15 -4
  157. package/es/field/index.d.ts +1 -0
  158. package/es/field/index.mjs +3 -1
  159. package/es/field/types.d.ts +1 -0
  160. package/es/field/utils.d.ts +1 -0
  161. package/es/field/utils.mjs +8 -2
  162. package/es/form/Form.d.ts +1 -1
  163. package/es/form/Form.mjs +2 -1
  164. package/es/form/index.d.ts +1 -0
  165. package/es/form/index.mjs +3 -1
  166. package/es/grid/Grid.d.ts +2 -2
  167. package/es/grid/Grid.mjs +2 -1
  168. package/es/grid/index.d.ts +2 -1
  169. package/es/grid/index.mjs +3 -1
  170. package/es/grid-item/GridItem.d.ts +2 -2
  171. package/es/grid-item/GridItem.mjs +2 -1
  172. package/es/grid-item/index.d.ts +2 -1
  173. package/es/grid-item/index.mjs +3 -1
  174. package/es/icon/Icon.d.ts +2 -2
  175. package/es/icon/Icon.mjs +2 -1
  176. package/es/icon/index.d.ts +2 -1
  177. package/es/icon/index.mjs +3 -1
  178. package/es/image/Image.d.ts +5 -1
  179. package/es/image/Image.mjs +5 -2
  180. package/es/image/index.css +1 -1
  181. package/es/image/index.d.ts +4 -0
  182. package/es/image/index.mjs +3 -1
  183. package/es/image-preview/ImagePreview.d.ts +1 -1
  184. package/es/image-preview/ImagePreview.mjs +2 -1
  185. package/es/image-preview/ImagePreviewItem.mjs +11 -3
  186. package/es/image-preview/index.css +1 -1
  187. package/es/image-preview/index.d.ts +1 -0
  188. package/es/image-preview/index.mjs +2 -0
  189. package/es/index-anchor/IndexAnchor.d.ts +2 -2
  190. package/es/index-anchor/IndexAnchor.mjs +2 -1
  191. package/es/index-anchor/index.d.ts +2 -1
  192. package/es/index-anchor/index.mjs +3 -1
  193. package/es/index-bar/IndexBar.d.ts +1 -1
  194. package/es/index-bar/IndexBar.mjs +11 -5
  195. package/es/index-bar/index.d.ts +1 -0
  196. package/es/index-bar/index.mjs +3 -1
  197. package/es/index.d.ts +3 -1
  198. package/es/index.mjs +7 -1
  199. package/es/lazyload/vue-lazyload/lazy-component.mjs +4 -1
  200. package/es/lazyload/vue-lazyload/lazy-container.mjs +11 -7
  201. package/es/lazyload/vue-lazyload/lazy-image.mjs +24 -14
  202. package/es/lazyload/vue-lazyload/lazy.mjs +11 -3
  203. package/es/lazyload/vue-lazyload/listener.mjs +45 -33
  204. package/es/lazyload/vue-lazyload/util.mjs +4 -1
  205. package/es/list/List.d.ts +1 -1
  206. package/es/list/List.mjs +4 -2
  207. package/es/list/index.d.ts +1 -0
  208. package/es/list/index.mjs +3 -1
  209. package/es/loading/Loading.d.ts +2 -2
  210. package/es/loading/Loading.mjs +2 -1
  211. package/es/loading/index.d.ts +2 -1
  212. package/es/loading/index.mjs +3 -1
  213. package/es/nav-bar/NavBar.d.ts +1 -1
  214. package/es/nav-bar/NavBar.mjs +2 -1
  215. package/es/nav-bar/index.d.ts +1 -0
  216. package/es/nav-bar/index.mjs +3 -1
  217. package/es/notice-bar/NoticeBar.d.ts +1 -1
  218. package/es/notice-bar/NoticeBar.mjs +2 -1
  219. package/es/notice-bar/index.d.ts +1 -0
  220. package/es/notice-bar/index.mjs +3 -1
  221. package/es/notify/Notify.d.ts +1 -1
  222. package/es/notify/Notify.mjs +2 -1
  223. package/es/notify/index.d.ts +1 -0
  224. package/es/notify/index.mjs +2 -0
  225. package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
  226. package/es/number-keyboard/NumberKeyboard.mjs +3 -3
  227. package/es/number-keyboard/NumberKeyboardKey.mjs +2 -2
  228. package/es/number-keyboard/index.d.ts +2 -1
  229. package/es/number-keyboard/index.mjs +3 -1
  230. package/es/overlay/Overlay.d.ts +2 -2
  231. package/es/overlay/Overlay.mjs +15 -7
  232. package/es/overlay/index.d.ts +2 -1
  233. package/es/overlay/index.mjs +3 -1
  234. package/es/pagination/Pagination.d.ts +1 -1
  235. package/es/pagination/Pagination.mjs +2 -1
  236. package/es/pagination/index.d.ts +1 -0
  237. package/es/pagination/index.mjs +3 -1
  238. package/es/password-input/PasswordInput.d.ts +1 -1
  239. package/es/password-input/PasswordInput.mjs +3 -2
  240. package/es/password-input/index.d.ts +1 -0
  241. package/es/password-input/index.mjs +3 -1
  242. package/es/picker/Picker.d.ts +11 -6
  243. package/es/picker/Picker.mjs +51 -65
  244. package/es/picker/PickerColumn.d.ts +2 -1
  245. package/es/picker/PickerColumn.mjs +11 -6
  246. package/es/picker/PickerToolbar.d.ts +21 -0
  247. package/es/picker/PickerToolbar.mjs +59 -0
  248. package/es/picker/index.d.ts +7 -3
  249. package/es/picker/index.mjs +3 -1
  250. package/es/picker/style/index.mjs +7 -0
  251. package/es/picker/utils.d.ts +2 -0
  252. package/es/picker/utils.mjs +14 -7
  253. package/es/picker-group/PickerGroup.d.ts +39 -0
  254. package/es/picker-group/PickerGroup.mjs +57 -0
  255. package/es/picker-group/index.css +1 -0
  256. package/es/picker-group/index.d.ts +33 -0
  257. package/es/picker-group/index.mjs +10 -0
  258. package/es/picker-group/style/index.d.ts +1 -0
  259. package/es/picker-group/style/index.mjs +9 -0
  260. package/es/popover/Popover.d.ts +1 -1
  261. package/es/popover/Popover.mjs +30 -28
  262. package/es/popover/index.d.ts +1 -0
  263. package/es/popover/index.mjs +3 -1
  264. package/es/popup/Popup.d.ts +3 -3
  265. package/es/popup/Popup.mjs +8 -6
  266. package/es/popup/index.css +1 -1
  267. package/es/popup/index.d.ts +3 -2
  268. package/es/popup/index.mjs +3 -1
  269. package/es/popup/shared.mjs +3 -1
  270. package/es/progress/Progress.d.ts +2 -2
  271. package/es/progress/Progress.mjs +2 -1
  272. package/es/progress/index.d.ts +2 -1
  273. package/es/progress/index.mjs +3 -1
  274. package/es/pull-refresh/PullRefresh.d.ts +1 -1
  275. package/es/pull-refresh/PullRefresh.mjs +9 -4
  276. package/es/pull-refresh/index.d.ts +1 -0
  277. package/es/pull-refresh/index.mjs +3 -1
  278. package/es/radio/Radio.d.ts +15 -2
  279. package/es/radio/Radio.mjs +3 -1
  280. package/es/radio/index.d.ts +1 -0
  281. package/es/radio/index.mjs +3 -1
  282. package/es/radio-group/RadioGroup.d.ts +1 -1
  283. package/es/radio-group/RadioGroup.mjs +2 -1
  284. package/es/radio-group/index.d.ts +1 -0
  285. package/es/radio-group/index.mjs +3 -1
  286. package/es/rate/Rate.d.ts +1 -1
  287. package/es/rate/Rate.mjs +7 -4
  288. package/es/rate/index.d.ts +1 -0
  289. package/es/rate/index.mjs +3 -1
  290. package/es/row/Row.d.ts +2 -2
  291. package/es/row/Row.mjs +2 -1
  292. package/es/row/index.d.ts +2 -1
  293. package/es/row/index.mjs +3 -1
  294. package/es/search/Search.d.ts +1 -1
  295. package/es/search/Search.mjs +2 -1
  296. package/es/search/index.css +1 -1
  297. package/es/search/index.d.ts +1 -0
  298. package/es/search/index.mjs +3 -1
  299. package/es/share-sheet/ShareSheet.d.ts +1 -1
  300. package/es/share-sheet/ShareSheet.mjs +2 -1
  301. package/es/share-sheet/index.d.ts +1 -0
  302. package/es/share-sheet/index.mjs +3 -1
  303. package/es/sidebar/Sidebar.d.ts +1 -1
  304. package/es/sidebar/Sidebar.mjs +2 -1
  305. package/es/sidebar/index.d.ts +1 -0
  306. package/es/sidebar/index.mjs +3 -1
  307. package/es/sidebar-item/SidebarItem.d.ts +1 -1
  308. package/es/sidebar-item/SidebarItem.mjs +2 -1
  309. package/es/sidebar-item/index.d.ts +1 -0
  310. package/es/sidebar-item/index.mjs +3 -1
  311. package/es/skeleton/Skeleton.d.ts +2 -2
  312. package/es/skeleton/Skeleton.mjs +2 -1
  313. package/es/skeleton/index.d.ts +2 -1
  314. package/es/skeleton/index.mjs +3 -1
  315. package/es/slider/Slider.d.ts +1 -1
  316. package/es/slider/Slider.mjs +9 -4
  317. package/es/slider/index.d.ts +1 -0
  318. package/es/slider/index.mjs +3 -1
  319. package/es/space/Space.d.ts +48 -0
  320. package/es/space/Space.mjs +88 -0
  321. package/es/space/index.css +1 -0
  322. package/es/space/index.d.ts +38 -0
  323. package/es/space/index.mjs +10 -0
  324. package/es/space/style/index.d.ts +1 -0
  325. package/es/space/style/index.mjs +2 -0
  326. package/es/step/Step.d.ts +1 -1
  327. package/es/step/index.d.ts +1 -1
  328. package/es/stepper/Stepper.d.ts +1 -1
  329. package/es/stepper/Stepper.mjs +3 -2
  330. package/es/stepper/index.d.ts +1 -0
  331. package/es/stepper/index.mjs +3 -1
  332. package/es/steps/Steps.d.ts +1 -1
  333. package/es/steps/Steps.mjs +2 -1
  334. package/es/steps/index.d.ts +1 -0
  335. package/es/steps/index.mjs +3 -1
  336. package/es/sticky/Sticky.d.ts +1 -1
  337. package/es/sticky/Sticky.mjs +4 -2
  338. package/es/sticky/index.d.ts +1 -0
  339. package/es/sticky/index.mjs +3 -1
  340. package/es/submit-bar/SubmitBar.d.ts +1 -1
  341. package/es/submit-bar/SubmitBar.mjs +2 -1
  342. package/es/submit-bar/index.d.ts +1 -0
  343. package/es/submit-bar/index.mjs +3 -1
  344. package/es/swipe/Swipe.d.ts +1 -1
  345. package/es/swipe/Swipe.mjs +16 -8
  346. package/es/swipe/index.d.ts +1 -0
  347. package/es/swipe/index.mjs +3 -1
  348. package/es/swipe-cell/SwipeCell.d.ts +3 -3
  349. package/es/swipe-cell/SwipeCell.mjs +7 -4
  350. package/es/swipe-cell/index.d.ts +3 -2
  351. package/es/swipe-cell/index.mjs +3 -1
  352. package/es/swipe-item/SwipeItem.d.ts +1 -1
  353. package/es/swipe-item/index.d.ts +1 -1
  354. package/es/switch/Switch.d.ts +1 -1
  355. package/es/switch/Switch.mjs +2 -1
  356. package/es/switch/index.d.ts +1 -0
  357. package/es/switch/index.mjs +3 -1
  358. package/es/tab/Tab.d.ts +2 -2
  359. package/es/tab/Tab.mjs +2 -1
  360. package/es/tab/index.d.ts +2 -1
  361. package/es/tab/index.mjs +3 -1
  362. package/es/tabbar/Tabbar.d.ts +1 -1
  363. package/es/tabbar/Tabbar.mjs +2 -1
  364. package/es/tabbar/index.d.ts +1 -0
  365. package/es/tabbar/index.mjs +3 -1
  366. package/es/tabbar-item/TabbarItem.d.ts +1 -1
  367. package/es/tabbar-item/TabbarItem.mjs +2 -1
  368. package/es/tabbar-item/index.d.ts +1 -0
  369. package/es/tabbar-item/index.mjs +3 -1
  370. package/es/tabs/Tabs.d.ts +1 -1
  371. package/es/tabs/Tabs.mjs +14 -3
  372. package/es/tabs/TabsContent.mjs +4 -0
  373. package/es/tabs/TabsTitle.d.ts +1 -1
  374. package/es/tabs/index.d.ts +1 -0
  375. package/es/tabs/index.mjs +3 -1
  376. package/es/tag/Tag.d.ts +1 -1
  377. package/es/tag/Tag.mjs +2 -1
  378. package/es/tag/index.d.ts +1 -0
  379. package/es/tag/index.mjs +3 -1
  380. package/es/time-picker/TimePicker.d.ts +7 -4
  381. package/es/time-picker/TimePicker.mjs +2 -1
  382. package/es/time-picker/index.d.ts +5 -2
  383. package/es/time-picker/index.mjs +3 -1
  384. package/es/time-picker/style/index.mjs +7 -0
  385. package/es/toast/Toast.d.ts +1 -1
  386. package/es/toast/Toast.mjs +9 -2
  387. package/es/toast/index.d.ts +1 -0
  388. package/es/toast/index.mjs +3 -1
  389. package/es/tree-select/TreeSelect.d.ts +1 -1
  390. package/es/tree-select/TreeSelect.mjs +2 -1
  391. package/es/tree-select/index.d.ts +1 -0
  392. package/es/tree-select/index.mjs +3 -1
  393. package/es/uploader/Uploader.d.ts +1 -1
  394. package/es/uploader/Uploader.mjs +2 -1
  395. package/es/uploader/index.d.ts +1 -0
  396. package/es/uploader/index.mjs +3 -1
  397. package/es/utils/basic.mjs +2 -1
  398. package/es/utils/create.mjs +8 -2
  399. package/es/utils/with-install.d.ts +2 -2
  400. package/es/utils/with-install.mjs +4 -2
  401. package/es/vue-tsx-shim.d.ts +7 -0
  402. package/lib/action-bar/ActionBar.d.ts +2 -2
  403. package/lib/action-bar/ActionBar.js +1 -0
  404. package/lib/action-bar/index.d.ts +2 -1
  405. package/lib/action-bar/index.js +6 -1
  406. package/lib/action-bar-button/ActionBarButton.d.ts +2 -2
  407. package/lib/action-bar-button/ActionBarButton.js +1 -0
  408. package/lib/action-bar-button/index.d.ts +2 -1
  409. package/lib/action-bar-button/index.js +6 -1
  410. package/lib/action-bar-icon/ActionBarIcon.d.ts +2 -2
  411. package/lib/action-bar-icon/ActionBarIcon.js +1 -0
  412. package/lib/action-bar-icon/index.d.ts +2 -1
  413. package/lib/action-bar-icon/index.js +6 -1
  414. package/lib/action-sheet/ActionSheet.d.ts +1 -1
  415. package/lib/action-sheet/ActionSheet.js +1 -0
  416. package/lib/action-sheet/index.d.ts +1 -0
  417. package/lib/action-sheet/index.js +6 -1
  418. package/lib/address-edit/AddressEdit.d.ts +1 -1
  419. package/lib/address-edit/AddressEdit.js +5 -1
  420. package/lib/address-edit/index.d.ts +1 -0
  421. package/lib/address-edit/index.js +6 -1
  422. package/lib/address-edit/style/index.js +7 -1
  423. package/lib/address-list/AddressList.d.ts +1 -1
  424. package/lib/address-list/AddressList.js +5 -1
  425. package/lib/address-list/index.d.ts +1 -0
  426. package/lib/address-list/index.js +6 -1
  427. package/lib/area/Area.d.ts +7 -4
  428. package/lib/area/Area.js +1 -0
  429. package/lib/area/index.d.ts +5 -2
  430. package/lib/area/index.js +6 -1
  431. package/lib/area/style/index.js +7 -0
  432. package/lib/area/utils.js +9 -2
  433. package/lib/badge/Badge.d.ts +2 -2
  434. package/lib/badge/Badge.js +2 -1
  435. package/lib/badge/index.d.ts +2 -1
  436. package/lib/badge/index.js +6 -1
  437. package/lib/button/Button.d.ts +1 -1
  438. package/lib/button/Button.js +1 -0
  439. package/lib/button/index.d.ts +1 -0
  440. package/lib/button/index.js +6 -1
  441. package/lib/calendar/Calendar.d.ts +1 -1
  442. package/lib/calendar/Calendar.js +12 -8
  443. package/lib/calendar/CalendarMonth.js +4 -1
  444. package/lib/calendar/index.d.ts +1 -0
  445. package/lib/calendar/index.js +6 -1
  446. package/lib/calendar/style/index.js +7 -1
  447. package/lib/card/Card.d.ts +1 -1
  448. package/lib/card/Card.js +1 -0
  449. package/lib/card/index.d.ts +1 -0
  450. package/lib/card/index.js +6 -1
  451. package/lib/cascader/Cascader.d.ts +1 -1
  452. package/lib/cascader/Cascader.js +1 -0
  453. package/lib/cascader/index.d.ts +1 -0
  454. package/lib/cascader/index.js +6 -1
  455. package/lib/cell/Cell.d.ts +2 -2
  456. package/lib/cell/Cell.js +1 -0
  457. package/lib/cell/index.d.ts +2 -1
  458. package/lib/cell/index.js +6 -1
  459. package/lib/cell-group/CellGroup.d.ts +2 -2
  460. package/lib/cell-group/CellGroup.js +1 -0
  461. package/lib/cell-group/index.d.ts +2 -1
  462. package/lib/cell-group/index.js +6 -1
  463. package/lib/checkbox/Checkbox.d.ts +1 -1
  464. package/lib/checkbox/Checkbox.js +5 -1
  465. package/lib/checkbox/index.d.ts +1 -0
  466. package/lib/checkbox/index.js +6 -1
  467. package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
  468. package/lib/checkbox-group/CheckboxGroup.js +1 -0
  469. package/lib/checkbox-group/index.d.ts +1 -0
  470. package/lib/checkbox-group/index.js +6 -1
  471. package/lib/circle/Circle.d.ts +1 -1
  472. package/lib/circle/Circle.js +1 -0
  473. package/lib/circle/index.d.ts +1 -0
  474. package/lib/circle/index.js +6 -1
  475. package/lib/col/Col.d.ts +2 -2
  476. package/lib/col/Col.js +1 -0
  477. package/lib/col/index.d.ts +2 -1
  478. package/lib/col/index.js +6 -1
  479. package/lib/collapse/Collapse.d.ts +9 -2
  480. package/lib/collapse/Collapse.js +29 -1
  481. package/lib/collapse/index.d.ts +2 -1
  482. package/lib/collapse/index.js +6 -1
  483. package/lib/collapse-item/CollapseItem.d.ts +2 -2
  484. package/lib/collapse-item/CollapseItem.js +4 -1
  485. package/lib/collapse-item/index.d.ts +2 -1
  486. package/lib/collapse-item/index.js +6 -1
  487. package/lib/composables/use-global-z-index.d.ts +4 -0
  488. package/lib/composables/use-global-z-index.js +28 -0
  489. package/lib/composables/use-height.d.ts +1 -1
  490. package/lib/composables/use-height.js +8 -2
  491. package/lib/composables/use-lazy-render.js +9 -5
  492. package/lib/composables/use-lock-scroll.js +7 -2
  493. package/lib/composables/use-placeholder.js +1 -1
  494. package/lib/composables/use-visibility-change.js +6 -3
  495. package/lib/config-provider/ConfigProvider.d.ts +15 -5
  496. package/lib/config-provider/ConfigProvider.js +24 -7
  497. package/lib/config-provider/index.d.ts +10 -3
  498. package/lib/config-provider/index.js +6 -1
  499. package/lib/contact-card/ContactCard.d.ts +1 -1
  500. package/lib/contact-card/ContactCard.js +1 -0
  501. package/lib/contact-card/index.d.ts +1 -0
  502. package/lib/contact-card/index.js +6 -1
  503. package/lib/contact-edit/ContactEdit.d.ts +1 -1
  504. package/lib/contact-edit/ContactEdit.js +1 -0
  505. package/lib/contact-edit/index.d.ts +1 -0
  506. package/lib/contact-edit/index.js +6 -1
  507. package/lib/contact-list/ContactList.d.ts +1 -1
  508. package/lib/contact-list/ContactList.js +1 -0
  509. package/lib/contact-list/index.d.ts +1 -0
  510. package/lib/contact-list/index.js +6 -1
  511. package/lib/count-down/CountDown.d.ts +1 -1
  512. package/lib/count-down/CountDown.js +1 -0
  513. package/lib/count-down/index.d.ts +1 -0
  514. package/lib/count-down/index.js +6 -1
  515. package/lib/coupon/Coupon.d.ts +1 -1
  516. package/lib/coupon/index.d.ts +1 -1
  517. package/lib/coupon/index.js +4 -1
  518. package/lib/coupon/utils.js +3 -1
  519. package/lib/coupon-cell/CouponCell.d.ts +2 -2
  520. package/lib/coupon-cell/CouponCell.js +1 -0
  521. package/lib/coupon-cell/index.d.ts +2 -1
  522. package/lib/coupon-cell/index.js +6 -1
  523. package/lib/coupon-list/CouponList.d.ts +1 -1
  524. package/lib/coupon-list/CouponList.js +1 -0
  525. package/lib/coupon-list/index.d.ts +1 -0
  526. package/lib/coupon-list/index.js +6 -1
  527. package/lib/coupon-list/style/index.js +3 -3
  528. package/lib/date-picker/DatePicker.d.ts +7 -4
  529. package/lib/date-picker/DatePicker.js +11 -10
  530. package/lib/date-picker/index.d.ts +5 -2
  531. package/lib/date-picker/index.js +6 -1
  532. package/lib/date-picker/style/index.js +7 -0
  533. package/lib/date-picker/utils.d.ts +2 -1
  534. package/lib/dialog/Dialog.d.ts +1 -1
  535. package/lib/dialog/Dialog.js +2 -1
  536. package/lib/dialog/function-call.js +4 -1
  537. package/lib/dialog/index.css +1 -1
  538. package/lib/dialog/index.d.ts +1 -0
  539. package/lib/dialog/index.js +6 -1
  540. package/lib/dialog/types.d.ts +1 -1
  541. package/lib/divider/Divider.d.ts +2 -2
  542. package/lib/divider/Divider.js +2 -1
  543. package/lib/divider/index.d.ts +2 -1
  544. package/lib/divider/index.js +7 -2
  545. package/lib/dropdown-item/DropdownItem.d.ts +3 -3
  546. package/lib/dropdown-item/DropdownItem.js +2 -1
  547. package/lib/dropdown-item/index.d.ts +3 -2
  548. package/lib/dropdown-item/index.js +7 -2
  549. package/lib/dropdown-menu/DropdownMenu.d.ts +2 -2
  550. package/lib/dropdown-menu/DropdownMenu.js +4 -2
  551. package/lib/dropdown-menu/index.d.ts +2 -1
  552. package/lib/dropdown-menu/index.js +7 -2
  553. package/lib/empty/Empty.d.ts +3 -3
  554. package/lib/empty/Empty.js +283 -17
  555. package/lib/empty/index.d.ts +2 -1
  556. package/lib/empty/index.js +7 -2
  557. package/lib/field/Field.d.ts +1 -1
  558. package/lib/field/Field.js +13 -2
  559. package/lib/field/index.d.ts +1 -0
  560. package/lib/field/index.js +7 -2
  561. package/lib/field/types.d.ts +1 -0
  562. package/lib/field/utils.d.ts +1 -0
  563. package/lib/field/utils.js +8 -2
  564. package/lib/form/Form.d.ts +1 -1
  565. package/lib/form/Form.js +2 -1
  566. package/lib/form/index.d.ts +1 -0
  567. package/lib/form/index.js +7 -2
  568. package/lib/grid/Grid.d.ts +2 -2
  569. package/lib/grid/Grid.js +2 -1
  570. package/lib/grid/index.d.ts +2 -1
  571. package/lib/grid/index.js +7 -2
  572. package/lib/grid-item/GridItem.d.ts +2 -2
  573. package/lib/grid-item/GridItem.js +2 -1
  574. package/lib/grid-item/index.d.ts +2 -1
  575. package/lib/grid-item/index.js +7 -2
  576. package/lib/icon/Icon.d.ts +2 -2
  577. package/lib/icon/Icon.js +2 -1
  578. package/lib/icon/index.d.ts +2 -1
  579. package/lib/icon/index.js +7 -2
  580. package/lib/image/Image.d.ts +5 -1
  581. package/lib/image/Image.js +5 -2
  582. package/lib/image/index.css +1 -1
  583. package/lib/image/index.d.ts +4 -0
  584. package/lib/image/index.js +7 -2
  585. package/lib/image-preview/ImagePreview.d.ts +1 -1
  586. package/lib/image-preview/ImagePreview.js +6 -2
  587. package/lib/image-preview/ImagePreviewItem.js +10 -2
  588. package/lib/image-preview/function-call.js +4 -1
  589. package/lib/image-preview/index.css +1 -1
  590. package/lib/image-preview/index.d.ts +1 -0
  591. package/lib/image-preview/index.js +6 -1
  592. package/lib/index-anchor/IndexAnchor.d.ts +2 -2
  593. package/lib/index-anchor/IndexAnchor.js +2 -1
  594. package/lib/index-anchor/index.d.ts +2 -1
  595. package/lib/index-anchor/index.js +7 -2
  596. package/lib/index-bar/IndexBar.d.ts +1 -1
  597. package/lib/index-bar/IndexBar.js +11 -5
  598. package/lib/index-bar/index.d.ts +1 -0
  599. package/lib/index-bar/index.js +7 -2
  600. package/lib/index.css +1 -1
  601. package/lib/index.d.ts +3 -1
  602. package/lib/index.js +7 -1
  603. package/lib/lazyload/vue-lazyload/index.js +4 -1
  604. package/lib/lazyload/vue-lazyload/lazy-component.js +4 -1
  605. package/lib/lazyload/vue-lazyload/lazy-container.js +11 -7
  606. package/lib/lazyload/vue-lazyload/lazy-image.js +24 -14
  607. package/lib/lazyload/vue-lazyload/lazy.js +15 -4
  608. package/lib/lazyload/vue-lazyload/listener.js +45 -33
  609. package/lib/lazyload/vue-lazyload/util.js +4 -1
  610. package/lib/list/List.d.ts +1 -1
  611. package/lib/list/List.js +4 -2
  612. package/lib/list/index.d.ts +1 -0
  613. package/lib/list/index.js +7 -2
  614. package/lib/loading/Loading.d.ts +2 -2
  615. package/lib/loading/Loading.js +2 -1
  616. package/lib/loading/index.d.ts +2 -1
  617. package/lib/loading/index.js +7 -2
  618. package/lib/locale/index.js +4 -1
  619. package/lib/nav-bar/NavBar.d.ts +1 -1
  620. package/lib/nav-bar/NavBar.js +2 -1
  621. package/lib/nav-bar/index.d.ts +1 -0
  622. package/lib/nav-bar/index.js +7 -2
  623. package/lib/notice-bar/NoticeBar.d.ts +1 -1
  624. package/lib/notice-bar/NoticeBar.js +2 -1
  625. package/lib/notice-bar/index.d.ts +1 -0
  626. package/lib/notice-bar/index.js +7 -2
  627. package/lib/notify/Notify.d.ts +1 -1
  628. package/lib/notify/Notify.js +2 -1
  629. package/lib/notify/function-call.js +4 -1
  630. package/lib/notify/index.d.ts +1 -0
  631. package/lib/notify/index.js +6 -1
  632. package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
  633. package/lib/number-keyboard/NumberKeyboard.js +7 -4
  634. package/lib/number-keyboard/NumberKeyboardKey.js +2 -2
  635. package/lib/number-keyboard/index.d.ts +2 -1
  636. package/lib/number-keyboard/index.js +7 -2
  637. package/lib/overlay/Overlay.d.ts +2 -2
  638. package/lib/overlay/Overlay.js +13 -5
  639. package/lib/overlay/index.d.ts +2 -1
  640. package/lib/overlay/index.js +7 -2
  641. package/lib/pagination/Pagination.d.ts +1 -1
  642. package/lib/pagination/Pagination.js +2 -1
  643. package/lib/pagination/index.d.ts +1 -0
  644. package/lib/pagination/index.js +7 -2
  645. package/lib/password-input/PasswordInput.d.ts +1 -1
  646. package/lib/password-input/PasswordInput.js +3 -2
  647. package/lib/password-input/index.d.ts +1 -0
  648. package/lib/password-input/index.js +7 -2
  649. package/lib/picker/Picker.d.ts +11 -6
  650. package/lib/picker/Picker.js +57 -68
  651. package/lib/picker/PickerColumn.d.ts +2 -1
  652. package/lib/picker/PickerColumn.js +10 -5
  653. package/lib/picker/PickerToolbar.d.ts +21 -0
  654. package/lib/picker/PickerToolbar.js +78 -0
  655. package/lib/picker/index.d.ts +7 -3
  656. package/lib/picker/index.js +7 -2
  657. package/lib/picker/style/index.js +7 -0
  658. package/lib/picker/utils.d.ts +2 -0
  659. package/lib/picker/utils.js +15 -8
  660. package/lib/picker-group/PickerGroup.d.ts +39 -0
  661. package/lib/picker-group/PickerGroup.js +82 -0
  662. package/lib/picker-group/index.css +1 -0
  663. package/lib/picker-group/index.d.ts +33 -0
  664. package/lib/picker-group/index.js +35 -0
  665. package/lib/picker-group/style/index.d.ts +1 -0
  666. package/lib/picker-group/style/index.js +9 -0
  667. package/lib/popover/Popover.d.ts +1 -1
  668. package/lib/popover/Popover.js +29 -27
  669. package/lib/popover/index.d.ts +1 -0
  670. package/lib/popover/index.js +7 -2
  671. package/lib/popup/Popup.d.ts +3 -3
  672. package/lib/popup/Popup.js +8 -6
  673. package/lib/popup/index.css +1 -1
  674. package/lib/popup/index.d.ts +3 -2
  675. package/lib/popup/index.js +7 -2
  676. package/lib/popup/shared.js +3 -1
  677. package/lib/progress/Progress.d.ts +2 -2
  678. package/lib/progress/Progress.js +2 -1
  679. package/lib/progress/index.d.ts +2 -1
  680. package/lib/progress/index.js +7 -2
  681. package/lib/pull-refresh/PullRefresh.d.ts +1 -1
  682. package/lib/pull-refresh/PullRefresh.js +8 -3
  683. package/lib/pull-refresh/index.d.ts +1 -0
  684. package/lib/pull-refresh/index.js +7 -2
  685. package/lib/radio/Radio.d.ts +15 -2
  686. package/lib/radio/Radio.js +7 -2
  687. package/lib/radio/index.d.ts +1 -0
  688. package/lib/radio/index.js +7 -2
  689. package/lib/radio-group/RadioGroup.d.ts +1 -1
  690. package/lib/radio-group/RadioGroup.js +2 -1
  691. package/lib/radio-group/index.d.ts +1 -0
  692. package/lib/radio-group/index.js +7 -2
  693. package/lib/rate/Rate.d.ts +1 -1
  694. package/lib/rate/Rate.js +6 -3
  695. package/lib/rate/index.d.ts +1 -0
  696. package/lib/rate/index.js +7 -2
  697. package/lib/row/Row.d.ts +2 -2
  698. package/lib/row/Row.js +2 -1
  699. package/lib/row/index.d.ts +2 -1
  700. package/lib/row/index.js +7 -2
  701. package/lib/search/Search.d.ts +1 -1
  702. package/lib/search/Search.js +2 -1
  703. package/lib/search/index.css +1 -1
  704. package/lib/search/index.d.ts +1 -0
  705. package/lib/search/index.js +7 -2
  706. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  707. package/lib/share-sheet/ShareSheet.js +2 -1
  708. package/lib/share-sheet/index.d.ts +1 -0
  709. package/lib/share-sheet/index.js +7 -2
  710. package/lib/sidebar/Sidebar.d.ts +1 -1
  711. package/lib/sidebar/Sidebar.js +2 -1
  712. package/lib/sidebar/index.d.ts +1 -0
  713. package/lib/sidebar/index.js +7 -2
  714. package/lib/sidebar-item/SidebarItem.d.ts +1 -1
  715. package/lib/sidebar-item/SidebarItem.js +2 -1
  716. package/lib/sidebar-item/index.d.ts +1 -0
  717. package/lib/sidebar-item/index.js +7 -2
  718. package/lib/skeleton/Skeleton.d.ts +2 -2
  719. package/lib/skeleton/Skeleton.js +2 -1
  720. package/lib/skeleton/index.d.ts +2 -1
  721. package/lib/skeleton/index.js +7 -2
  722. package/lib/slider/Slider.d.ts +1 -1
  723. package/lib/slider/Slider.js +8 -3
  724. package/lib/slider/index.d.ts +1 -0
  725. package/lib/slider/index.js +7 -2
  726. package/lib/space/Space.d.ts +48 -0
  727. package/lib/space/Space.js +107 -0
  728. package/lib/space/index.css +1 -0
  729. package/lib/space/index.d.ts +38 -0
  730. package/lib/space/index.js +35 -0
  731. package/lib/space/style/index.d.ts +1 -0
  732. package/lib/space/style/index.js +2 -0
  733. package/lib/step/Step.d.ts +1 -1
  734. package/lib/step/index.d.ts +1 -1
  735. package/lib/step/index.js +4 -1
  736. package/lib/stepper/Stepper.d.ts +1 -1
  737. package/lib/stepper/Stepper.js +3 -2
  738. package/lib/stepper/index.d.ts +1 -0
  739. package/lib/stepper/index.js +7 -2
  740. package/lib/steps/Steps.d.ts +1 -1
  741. package/lib/steps/Steps.js +2 -1
  742. package/lib/steps/index.d.ts +1 -0
  743. package/lib/steps/index.js +7 -2
  744. package/lib/sticky/Sticky.d.ts +1 -1
  745. package/lib/sticky/Sticky.js +4 -2
  746. package/lib/sticky/index.d.ts +1 -0
  747. package/lib/sticky/index.js +7 -2
  748. package/lib/submit-bar/SubmitBar.d.ts +1 -1
  749. package/lib/submit-bar/SubmitBar.js +2 -1
  750. package/lib/submit-bar/index.d.ts +1 -0
  751. package/lib/submit-bar/index.js +7 -2
  752. package/lib/swipe/Swipe.d.ts +1 -1
  753. package/lib/swipe/Swipe.js +15 -7
  754. package/lib/swipe/index.d.ts +1 -0
  755. package/lib/swipe/index.js +7 -2
  756. package/lib/swipe-cell/SwipeCell.d.ts +3 -3
  757. package/lib/swipe-cell/SwipeCell.js +6 -3
  758. package/lib/swipe-cell/index.d.ts +3 -2
  759. package/lib/swipe-cell/index.js +7 -2
  760. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  761. package/lib/swipe-item/index.d.ts +1 -1
  762. package/lib/swipe-item/index.js +4 -1
  763. package/lib/switch/Switch.d.ts +1 -1
  764. package/lib/switch/Switch.js +2 -1
  765. package/lib/switch/index.d.ts +1 -0
  766. package/lib/switch/index.js +7 -2
  767. package/lib/tab/Tab.d.ts +2 -2
  768. package/lib/tab/Tab.js +2 -1
  769. package/lib/tab/index.d.ts +2 -1
  770. package/lib/tab/index.js +7 -2
  771. package/lib/tabbar/Tabbar.d.ts +1 -1
  772. package/lib/tabbar/Tabbar.js +2 -1
  773. package/lib/tabbar/index.d.ts +1 -0
  774. package/lib/tabbar/index.js +7 -2
  775. package/lib/tabbar-item/TabbarItem.d.ts +1 -1
  776. package/lib/tabbar-item/TabbarItem.js +2 -1
  777. package/lib/tabbar-item/index.d.ts +1 -0
  778. package/lib/tabbar-item/index.js +7 -2
  779. package/lib/tabs/Tabs.d.ts +1 -1
  780. package/lib/tabs/Tabs.js +18 -4
  781. package/lib/tabs/TabsContent.js +4 -0
  782. package/lib/tabs/TabsTitle.d.ts +1 -1
  783. package/lib/tabs/index.d.ts +1 -0
  784. package/lib/tabs/index.js +7 -2
  785. package/lib/tag/Tag.d.ts +1 -1
  786. package/lib/tag/Tag.js +2 -1
  787. package/lib/tag/index.d.ts +1 -0
  788. package/lib/tag/index.js +7 -2
  789. package/lib/time-picker/TimePicker.d.ts +7 -4
  790. package/lib/time-picker/TimePicker.js +2 -1
  791. package/lib/time-picker/index.d.ts +5 -2
  792. package/lib/time-picker/index.js +7 -2
  793. package/lib/time-picker/style/index.js +7 -0
  794. package/lib/toast/Toast.d.ts +1 -1
  795. package/lib/toast/Toast.js +9 -2
  796. package/lib/toast/function-call.js +4 -1
  797. package/lib/toast/index.d.ts +1 -0
  798. package/lib/toast/index.js +7 -2
  799. package/lib/tree-select/TreeSelect.d.ts +1 -1
  800. package/lib/tree-select/TreeSelect.js +2 -1
  801. package/lib/tree-select/index.d.ts +1 -0
  802. package/lib/tree-select/index.js +7 -2
  803. package/lib/uploader/Uploader.d.ts +1 -1
  804. package/lib/uploader/Uploader.js +6 -2
  805. package/lib/uploader/index.d.ts +1 -0
  806. package/lib/uploader/index.js +7 -2
  807. package/lib/utils/basic.js +2 -1
  808. package/lib/utils/create.js +12 -3
  809. package/lib/utils/with-install.d.ts +2 -2
  810. package/lib/utils/with-install.js +4 -2
  811. package/lib/vant.cjs.js +5416 -4902
  812. package/lib/vant.es.js +5547 -4924
  813. package/lib/vant.js +5431 -4948
  814. package/lib/vant.min.js +1 -1
  815. package/lib/vue-tsx-shim.d.ts +7 -0
  816. package/{vetur → lib}/web-types.json +1237 -1061
  817. package/package.json +14 -19
  818. package/es/empty/Images.d.ts +0 -4
  819. package/es/empty/Images.mjs +0 -271
  820. package/lib/empty/Images.d.ts +0 -4
  821. package/lib/empty/Images.js +0 -290
  822. package/vetur/attributes.json +0 -3530
  823. package/vetur/tags.json +0 -1212
@@ -1,12 +1,16 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
- import { watch, provide, computed, defineComponent } from "vue";
3
- import { inBrowser, kebabCase, makeStringProp, createNamespace } from "../utils/index.mjs";
2
+ import { watch, provide, computed, watchEffect, onActivated, onDeactivated, onBeforeUnmount, defineComponent } from "vue";
3
+ import { extend, inBrowser, kebabCase, makeStringProp, createNamespace } from "../utils/index.mjs";
4
+ import { setGlobalZIndex } from "../composables/use-global-z-index.mjs";
4
5
  const [name, bem] = createNamespace("config-provider");
5
6
  const CONFIG_PROVIDER_KEY = Symbol(name);
6
7
  const configProviderProps = {
7
8
  tag: makeStringProp("div"),
8
9
  theme: makeStringProp("light"),
10
+ zIndex: Number,
9
11
  themeVars: Object,
12
+ themeVarsDark: Object,
13
+ themeVarsLight: Object,
10
14
  iconPrefix: String
11
15
  };
12
16
  function mapThemeVarsToCSSVars(themeVars) {
@@ -22,20 +26,32 @@ var stdin_default = defineComponent({
22
26
  setup(props, {
23
27
  slots
24
28
  }) {
25
- const style = computed(() => {
26
- if (props.themeVars) {
27
- return mapThemeVarsToCSSVars(props.themeVars);
28
- }
29
- });
29
+ const style = computed(() => mapThemeVarsToCSSVars(extend({}, props.themeVars, props.theme === "dark" ? props.themeVarsDark : props.themeVarsLight)));
30
30
  if (inBrowser) {
31
+ const addTheme = () => {
32
+ document.body.classList.add(`van-theme-${props.theme}`);
33
+ };
34
+ const removeTheme = (theme = props.theme) => {
35
+ document.body.classList.remove(`van-theme-${theme}`);
36
+ };
31
37
  watch(() => props.theme, (newVal, oldVal) => {
32
- document.body.classList.remove(`van-theme-${oldVal}`);
33
- document.body.classList.add(`van-theme-${newVal}`);
38
+ if (oldVal) {
39
+ removeTheme(oldVal);
40
+ }
41
+ addTheme();
34
42
  }, {
35
43
  immediate: true
36
44
  });
45
+ onActivated(addTheme);
46
+ onDeactivated(removeTheme);
47
+ onBeforeUnmount(removeTheme);
37
48
  }
38
49
  provide(CONFIG_PROVIDER_KEY, props);
50
+ watchEffect(() => {
51
+ if (props.zIndex !== void 0) {
52
+ setGlobalZIndex(props.zIndex);
53
+ }
54
+ });
39
55
  return () => _createVNode(props.tag, {
40
56
  "class": bem(),
41
57
  "style": style.value
@@ -49,5 +65,6 @@ var stdin_default = defineComponent({
49
65
  });
50
66
  export {
51
67
  CONFIG_PROVIDER_KEY,
68
+ configProviderProps,
52
69
  stdin_default as default
53
70
  };
@@ -7,9 +7,12 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
7
7
  type: import("vue").PropType<import("./ConfigProvider").ConfigProviderTheme>;
8
8
  default: import("./ConfigProvider").ConfigProviderTheme;
9
9
  };
10
- themeVars: import("vue").PropType<Record<string, import("../utils").Numeric>>;
10
+ zIndex: NumberConstructor;
11
+ themeVars: import("./ConfigProvider").ThemeVars;
12
+ themeVarsDark: import("./ConfigProvider").ThemeVars;
13
+ themeVarsLight: import("./ConfigProvider").ThemeVars;
11
14
  iconPrefix: StringConstructor;
12
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
16
  tag: {
14
17
  type: import("vue").PropType<keyof HTMLElementTagNameMap>;
15
18
  default: keyof HTMLElementTagNameMap;
@@ -18,13 +21,17 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
18
21
  type: import("vue").PropType<import("./ConfigProvider").ConfigProviderTheme>;
19
22
  default: import("./ConfigProvider").ConfigProviderTheme;
20
23
  };
21
- themeVars: import("vue").PropType<Record<string, import("../utils").Numeric>>;
24
+ zIndex: NumberConstructor;
25
+ themeVars: import("./ConfigProvider").ThemeVars;
26
+ themeVarsDark: import("./ConfigProvider").ThemeVars;
27
+ themeVarsLight: import("./ConfigProvider").ThemeVars;
22
28
  iconPrefix: StringConstructor;
23
29
  }>>, {
24
30
  tag: keyof HTMLElementTagNameMap;
25
31
  theme: import("./ConfigProvider").ConfigProviderTheme;
26
32
  }>>;
27
33
  export default ConfigProvider;
34
+ export { configProviderProps } from './ConfigProvider';
28
35
  export type { ConfigProviderProps, ConfigProviderTheme, } from './ConfigProvider';
29
36
  declare module 'vue' {
30
37
  interface GlobalComponents {
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
2
2
  import _ConfigProvider from "./ConfigProvider.mjs";
3
3
  const ConfigProvider = withInstall(_ConfigProvider);
4
4
  var stdin_default = ConfigProvider;
5
+ import { configProviderProps } from "./ConfigProvider.mjs";
5
6
  export {
6
7
  ConfigProvider,
8
+ configProviderProps,
7
9
  stdin_default as default
8
10
  };
@@ -1,6 +1,6 @@
1
1
  import { type ExtractPropTypes } from 'vue';
2
2
  export declare type ContactCardType = 'add' | 'edit';
3
- declare const contactCardProps: {
3
+ export declare const contactCardProps: {
4
4
  tel: StringConstructor;
5
5
  name: StringConstructor;
6
6
  type: {
@@ -42,5 +42,6 @@ var stdin_default = defineComponent({
42
42
  }
43
43
  });
44
44
  export {
45
+ contactCardProps,
45
46
  stdin_default as default
46
47
  };
@@ -29,6 +29,7 @@ export declare const ContactCard: import("../utils").WithInstall<import("vue").D
29
29
  editable: boolean;
30
30
  }>>;
31
31
  export default ContactCard;
32
+ export { contactCardProps } from './ContactCard';
32
33
  export type { ContactCardType, ContactCardProps } from './ContactCard';
33
34
  declare module 'vue' {
34
35
  interface GlobalComponents {
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
2
2
  import _ContactCard from "./ContactCard.mjs";
3
3
  const ContactCard = withInstall(_ContactCard);
4
4
  var stdin_default = ContactCard;
5
+ import { contactCardProps } from "./ContactCard.mjs";
5
6
  export {
6
7
  ContactCard,
8
+ contactCardProps,
7
9
  stdin_default as default
8
10
  };
@@ -5,7 +5,7 @@ export declare type ContactEditInfo = {
5
5
  name: string;
6
6
  isDefault?: boolean;
7
7
  };
8
- declare const contactEditProps: {
8
+ export declare const contactEditProps: {
9
9
  isEdit: BooleanConstructor;
10
10
  isSaving: BooleanConstructor;
11
11
  isDeleting: BooleanConstructor;
@@ -108,5 +108,6 @@ var stdin_default = defineComponent({
108
108
  }
109
109
  });
110
110
  export {
111
+ contactEditProps,
111
112
  stdin_default as default
112
113
  };
@@ -39,6 +39,7 @@ export declare const ContactEdit: import("../utils").WithInstall<import("vue").D
39
39
  contactInfo: import("./ContactEdit").ContactEditInfo;
40
40
  }>>;
41
41
  export default ContactEdit;
42
+ export { contactEditProps } from './ContactEdit';
42
43
  export type { ContactEditInfo, ContactEditProps } from './ContactEdit';
43
44
  declare module 'vue' {
44
45
  interface GlobalComponents {
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
2
2
  import _ContactEdit from "./ContactEdit.mjs";
3
3
  const ContactEdit = withInstall(_ContactEdit);
4
4
  var stdin_default = ContactEdit;
5
+ import { contactEditProps } from "./ContactEdit.mjs";
5
6
  export {
6
7
  ContactEdit,
8
+ contactEditProps,
7
9
  stdin_default as default
8
10
  };
@@ -6,7 +6,7 @@ export declare type ContactListItem = {
6
6
  name: string;
7
7
  isDefault?: boolean;
8
8
  };
9
- declare const contactListProps: {
9
+ export declare const contactListProps: {
10
10
  list: PropType<ContactListItem[]>;
11
11
  addText: StringConstructor;
12
12
  modelValue: PropType<unknown>;
@@ -85,5 +85,6 @@ var stdin_default = defineComponent({
85
85
  }
86
86
  });
87
87
  export {
88
+ contactListProps,
88
89
  stdin_default as default
89
90
  };
@@ -15,6 +15,7 @@ export declare const ContactList: import("../utils").WithInstall<import("vue").D
15
15
  onAdd?: ((...args: any[]) => any) | undefined;
16
16
  }, {}>>;
17
17
  export default ContactList;
18
+ export { contactListProps } from './ContactList';
18
19
  export type { ContactListItem, ContactListProps } from './ContactList';
19
20
  declare module 'vue' {
20
21
  interface GlobalComponents {
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
2
2
  import _ContactList from "./ContactList.mjs";
3
3
  const ContactList = withInstall(_ContactList);
4
4
  var stdin_default = ContactList;
5
+ import { contactListProps } from "./ContactList.mjs";
5
6
  export {
6
7
  ContactList,
8
+ contactListProps,
7
9
  stdin_default as default
8
10
  };
@@ -1,5 +1,5 @@
1
1
  import { type ExtractPropTypes } from 'vue';
2
- declare const countDownProps: {
2
+ export declare const countDownProps: {
3
3
  time: {
4
4
  type: (NumberConstructor | StringConstructor)[];
5
5
  default: number;
@@ -52,5 +52,6 @@ var stdin_default = defineComponent({
52
52
  }
53
53
  });
54
54
  export {
55
+ countDownProps,
55
56
  stdin_default as default
56
57
  };
@@ -36,6 +36,7 @@ export declare const CountDown: import("../utils").WithInstall<import("vue").Def
36
36
  millisecond: boolean;
37
37
  }>>;
38
38
  export default CountDown;
39
+ export { countDownProps } from './CountDown';
39
40
  export type { CountDownProps } from './CountDown';
40
41
  export type { CountDownInstance, CountDownCurrentTime } from './types';
41
42
  declare module 'vue' {
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
2
2
  import _CountDown from "./CountDown.mjs";
3
3
  const CountDown = withInstall(_CountDown);
4
4
  var stdin_default = CountDown;
5
+ import { countDownProps } from "./CountDown.mjs";
5
6
  export {
6
7
  CountDown,
8
+ countDownProps,
7
9
  stdin_default as default
8
10
  };
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
26
26
  type: PropType<string>;
27
27
  default: string;
28
28
  };
29
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
30
  chosen: BooleanConstructor;
31
31
  coupon: {
32
32
  type: PropType<CouponInfo>;
@@ -9,7 +9,7 @@ export declare const Coupon: import("../utils").WithInstall<import("vue").Define
9
9
  type: import("vue").PropType<string>;
10
10
  default: string;
11
11
  };
12
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
13
  chosen: BooleanConstructor;
14
14
  coupon: {
15
15
  type: import("vue").PropType<import("./Coupon").CouponInfo>;
@@ -1,7 +1,9 @@
1
1
  import { padZero } from "../utils/index.mjs";
2
2
  function getDate(timeStamp) {
3
3
  const date = new Date(timeStamp * 1e3);
4
- return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(date.getDate())}`;
4
+ return `${date.getFullYear()}.${padZero(date.getMonth() + 1)}.${padZero(
5
+ date.getDate()
6
+ )}`;
5
7
  }
6
8
  const formatDiscount = (discount) => (discount / 10).toFixed(discount % 10 === 0 ? 0 : 1);
7
9
  const formatAmount = (amount) => (amount / 100).toFixed(amount % 100 === 0 ? 0 : amount % 10 === 0 ? 1 : 2);
@@ -1,6 +1,6 @@
1
1
  import { type ExtractPropTypes } from 'vue';
2
2
  import type { CouponInfo } from '../coupon';
3
- declare const couponCellProps: {
3
+ export declare const couponCellProps: {
4
4
  title: StringConstructor;
5
5
  border: {
6
6
  type: BooleanConstructor;
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
46
46
  type: (NumberConstructor | StringConstructor)[];
47
47
  default: number;
48
48
  };
49
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
49
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
50
50
  title: StringConstructor;
51
51
  border: {
52
52
  type: BooleanConstructor;
@@ -50,5 +50,6 @@ var stdin_default = defineComponent({
50
50
  }
51
51
  });
52
52
  export {
53
+ couponCellProps,
53
54
  stdin_default as default
54
55
  };
@@ -20,7 +20,7 @@ export declare const CouponCell: import("../utils").WithInstall<import("vue").De
20
20
  type: (NumberConstructor | StringConstructor)[];
21
21
  default: number;
22
22
  };
23
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
24
  title: StringConstructor;
25
25
  border: {
26
26
  type: BooleanConstructor;
@@ -50,6 +50,7 @@ export declare const CouponCell: import("../utils").WithInstall<import("vue").De
50
50
  chosenCoupon: string | number;
51
51
  }>>;
52
52
  export default CouponCell;
53
+ export { couponCellProps } from './CouponCell';
53
54
  export type { CouponCellProps } from './CouponCell';
54
55
  declare module 'vue' {
55
56
  interface GlobalComponents {
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
2
2
  import _CouponCell from "./CouponCell.mjs";
3
3
  const CouponCell = withInstall(_CouponCell);
4
4
  var stdin_default = CouponCell;
5
+ import { couponCellProps } from "./CouponCell.mjs";
5
6
  export {
6
7
  CouponCell,
8
+ couponCellProps,
7
9
  stdin_default as default
8
10
  };
@@ -1,6 +1,6 @@
1
1
  import { type ExtractPropTypes } from 'vue';
2
2
  import { CouponInfo } from '../coupon';
3
- declare const couponListProps: {
3
+ export declare const couponListProps: {
4
4
  code: {
5
5
  type: import("vue").PropType<string>;
6
6
  default: string;
@@ -182,5 +182,6 @@ var stdin_default = defineComponent({
182
182
  }
183
183
  });
184
184
  export {
185
+ couponListProps,
185
186
  stdin_default as default
186
187
  };
@@ -115,6 +115,7 @@ export declare const CouponList: import("../utils").WithInstall<import("vue").De
115
115
  exchangeButtonDisabled: boolean;
116
116
  }>>;
117
117
  export default CouponList;
118
+ export { couponListProps } from './CouponList';
118
119
  export type { CouponListProps } from './CouponList';
119
120
  declare module 'vue' {
120
121
  interface GlobalComponents {
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
2
2
  import _CouponList from "./CouponList.mjs";
3
3
  const CouponList = withInstall(_CouponList);
4
4
  var stdin_default = CouponList;
5
+ import { couponListProps } from "./CouponList.mjs";
5
6
  export {
6
7
  CouponList,
8
+ couponListProps,
7
9
  stdin_default as default
8
10
  };
@@ -5,13 +5,13 @@ import "../../cell/index.css";
5
5
  import "../../field/index.css";
6
6
  import "../../loading/index.css";
7
7
  import "../../button/index.css";
8
- import "../../checkbox-group/index.css";
9
- import "../../checkbox/index.css";
10
- import "../../coupon/index.css";
11
8
  import "../../sticky/index.css";
12
9
  import "../../swipe/index.css";
13
10
  import "../../swipe-item/index.css";
14
11
  import "../../tabs/index.css";
15
12
  import "../../tab/index.css";
13
+ import "../../checkbox-group/index.css";
14
+ import "../../checkbox/index.css";
15
+ import "../../coupon/index.css";
16
16
  import "../../empty/index.css";
17
17
  import "../index.css";
@@ -1,7 +1,6 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
2
  export declare type DatePickerColumnType = 'year' | 'month' | 'day';
3
- declare const datePickerProps: {
4
- title: StringConstructor;
3
+ export declare const datePickerProps: {
5
4
  loading: BooleanConstructor;
6
5
  readonly: BooleanConstructor;
7
6
  allowHtml: BooleanConstructor;
@@ -21,6 +20,8 @@ declare const datePickerProps: {
21
20
  type: (NumberConstructor | StringConstructor)[];
22
21
  default: number;
23
22
  };
23
+ } & {
24
+ title: StringConstructor;
24
25
  cancelButtonText: StringConstructor;
25
26
  confirmButtonText: StringConstructor;
26
27
  } & {
@@ -51,7 +52,6 @@ declare const datePickerProps: {
51
52
  };
52
53
  export declare type DatePickerProps = ExtractPropTypes<typeof datePickerProps>;
53
54
  declare const _default: import("vue").DefineComponent<{
54
- title: StringConstructor;
55
55
  loading: BooleanConstructor;
56
56
  readonly: BooleanConstructor;
57
57
  allowHtml: BooleanConstructor;
@@ -71,6 +71,8 @@ declare const _default: import("vue").DefineComponent<{
71
71
  type: (NumberConstructor | StringConstructor)[];
72
72
  default: number;
73
73
  };
74
+ } & {
75
+ title: StringConstructor;
74
76
  cancelButtonText: StringConstructor;
75
77
  confirmButtonText: StringConstructor;
76
78
  } & {
@@ -99,7 +101,6 @@ declare const _default: import("vue").DefineComponent<{
99
101
  validator: (val: unknown) => val is Date;
100
102
  };
101
103
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
102
- title: StringConstructor;
103
104
  loading: BooleanConstructor;
104
105
  readonly: BooleanConstructor;
105
106
  allowHtml: BooleanConstructor;
@@ -119,6 +120,8 @@ declare const _default: import("vue").DefineComponent<{
119
120
  type: (NumberConstructor | StringConstructor)[];
120
121
  default: number;
121
122
  };
123
+ } & {
124
+ title: StringConstructor;
122
125
  cancelButtonText: StringConstructor;
123
126
  confirmButtonText: StringConstructor;
124
127
  } & {
@@ -35,7 +35,9 @@ var stdin_default = defineComponent({
35
35
  const maxYear = props.maxDate.getFullYear();
36
36
  return genOptions(minYear, maxYear, "year", props.formatter, props.filter);
37
37
  };
38
+ const isMinYear = (year) => year === props.minDate.getFullYear();
38
39
  const isMaxYear = (year) => year === props.maxDate.getFullYear();
40
+ const isMinMonth = (month) => month === props.minDate.getMonth() + 1;
39
41
  const isMaxMonth = (month) => month === props.maxDate.getMonth() + 1;
40
42
  const getValue = (type) => {
41
43
  const {
@@ -57,19 +59,17 @@ var stdin_default = defineComponent({
57
59
  }
58
60
  };
59
61
  const genMonthOptions = () => {
60
- if (isMaxYear(getValue("year"))) {
61
- return genOptions(1, props.maxDate.getMonth() + 1, "month", props.formatter, props.filter);
62
- }
63
- return genOptions(1, 12, "month", props.formatter, props.filter);
62
+ const year = getValue("year");
63
+ const minMonth = isMinYear(year) ? props.minDate.getMonth() + 1 : 1;
64
+ const maxMonth = isMaxYear(year) ? props.maxDate.getMonth() + 1 : 12;
65
+ return genOptions(minMonth, maxMonth, "month", props.formatter, props.filter);
64
66
  };
65
67
  const genDayOptions = () => {
66
68
  const year = getValue("year");
67
69
  const month = getValue("month");
68
- let maxDate = getMonthEndDay(year, month);
69
- if (isMaxYear(year) && isMaxMonth(month)) {
70
- maxDate = props.maxDate.getDate();
71
- }
72
- return genOptions(1, maxDate, "day", props.formatter, props.filter);
70
+ const minDate = isMinYear(year) && isMinMonth(month) ? props.minDate.getDate() : 1;
71
+ const maxDate = isMaxYear(year) && isMaxMonth(month) ? props.maxDate.getDate() : getMonthEndDay(year, month);
72
+ return genOptions(minDate, maxDate, "day", props.formatter, props.filter);
73
73
  };
74
74
  const columns = computed(() => props.columnsType.map((type) => {
75
75
  switch (type) {
@@ -84,7 +84,7 @@ var stdin_default = defineComponent({
84
84
  }
85
85
  }));
86
86
  watch(currentValues, (newValues) => {
87
- if (isSameValue(newValues, props.modelValue)) {
87
+ if (!isSameValue(newValues, props.modelValue)) {
88
88
  emit("update:modelValue", newValues);
89
89
  }
90
90
  });
@@ -107,5 +107,6 @@ var stdin_default = defineComponent({
107
107
  }
108
108
  });
109
109
  export {
110
+ datePickerProps,
110
111
  stdin_default as default
111
112
  };
@@ -1,6 +1,5 @@
1
1
  import { DatePickerProps } from './DatePicker';
2
2
  export declare const DatePicker: import("../utils").WithInstall<import("vue").DefineComponent<{
3
- title: StringConstructor;
4
3
  loading: BooleanConstructor;
5
4
  readonly: BooleanConstructor;
6
5
  allowHtml: BooleanConstructor;
@@ -20,6 +19,8 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
20
19
  type: (NumberConstructor | StringConstructor)[];
21
20
  default: number;
22
21
  };
22
+ } & {
23
+ title: StringConstructor;
23
24
  cancelButtonText: StringConstructor;
24
25
  confirmButtonText: StringConstructor;
25
26
  } & {
@@ -48,7 +49,6 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
48
49
  validator: (val: unknown) => val is Date;
49
50
  };
50
51
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "cancel" | "confirm")[], "update:modelValue" | "change" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
51
- title: StringConstructor;
52
52
  loading: BooleanConstructor;
53
53
  readonly: BooleanConstructor;
54
54
  allowHtml: BooleanConstructor;
@@ -68,6 +68,8 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
68
68
  type: (NumberConstructor | StringConstructor)[];
69
69
  default: number;
70
70
  };
71
+ } & {
72
+ title: StringConstructor;
71
73
  cancelButtonText: StringConstructor;
72
74
  confirmButtonText: StringConstructor;
73
75
  } & {
@@ -115,6 +117,7 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
115
117
  columnsType: import("./DatePicker").DatePickerColumnType[];
116
118
  }>>;
117
119
  export default DatePicker;
120
+ export { datePickerProps } from './DatePicker';
118
121
  export type { DatePickerProps };
119
122
  export type { DatePickerColumnType } from './DatePicker';
120
123
  declare module 'vue' {
@@ -2,7 +2,9 @@ import { withInstall } from "../utils/index.mjs";
2
2
  import _DatePicker from "./DatePicker.mjs";
3
3
  const DatePicker = withInstall(_DatePicker);
4
4
  var stdin_default = DatePicker;
5
+ import { datePickerProps } from "./DatePicker.mjs";
5
6
  export {
6
7
  DatePicker,
8
+ datePickerProps,
7
9
  stdin_default as default
8
10
  };
@@ -1,3 +1,10 @@
1
1
  import "../../style/base.css";
2
+ import "../../badge/index.css";
2
3
  import "../../loading/index.css";
4
+ import "../../sticky/index.css";
5
+ import "../../swipe/index.css";
6
+ import "../../swipe-item/index.css";
7
+ import "../../tabs/index.css";
8
+ import "../../tab/index.css";
3
9
  import "../../picker/index.css";
10
+ import "../../picker-group/index.css";
@@ -3,7 +3,6 @@ import type { PickerOption } from '../picker';
3
3
  declare type Filter = (columnType: string, options: PickerOption[]) => PickerOption[];
4
4
  declare type Formatter = (type: string, option: PickerOption) => PickerOption;
5
5
  export declare const sharedProps: {
6
- title: StringConstructor;
7
6
  loading: BooleanConstructor;
8
7
  readonly: BooleanConstructor;
9
8
  allowHtml: BooleanConstructor;
@@ -23,6 +22,8 @@ export declare const sharedProps: {
23
22
  type: (NumberConstructor | StringConstructor)[];
24
23
  default: number;
25
24
  };
25
+ } & {
26
+ title: StringConstructor;
26
27
  cancelButtonText: StringConstructor;
27
28
  confirmButtonText: StringConstructor;
28
29
  } & {
@@ -1,6 +1,6 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
2
  import type { DialogTheme, DialogAction, DialogMessage, DialogMessageAlign } from './types';
3
- declare const dialogProps: {
3
+ export declare const dialogProps: {
4
4
  show: BooleanConstructor;
5
5
  zIndex: (NumberConstructor | StringConstructor)[];
6
6
  overlay: {
@@ -213,5 +213,6 @@ var stdin_default = defineComponent({
213
213
  }
214
214
  });
215
215
  export {
216
- stdin_default as default
216
+ stdin_default as default,
217
+ dialogProps
217
218
  };
@@ -1 +1 @@
1
- body{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;left:50%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog-bounce-enter-from{transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}
1
+ body{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog-bounce-enter-from{transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}
@@ -127,6 +127,7 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
127
127
  showConfirmButton: boolean;
128
128
  }>>;
129
129
  export default Dialog;
130
+ export { dialogProps } from './Dialog';
130
131
  export { showDialog, closeDialog, showConfirmDialog, setDialogDefaultOptions, resetDialogDefaultOptions, } from './function-call';
131
132
  export type { DialogProps } from './Dialog';
132
133
  export type { DialogTheme, DialogMessage, DialogOptions, DialogMessageAlign, } from './types';