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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) hide show
  1. package/changelog.generated.md +46 -42
  2. package/es/action-bar/ActionBar.d.ts +1 -1
  3. package/es/action-bar/index.d.ts +1 -1
  4. package/es/action-bar-button/ActionBarButton.d.ts +1 -1
  5. package/es/action-bar-button/index.d.ts +1 -1
  6. package/es/action-bar-icon/ActionBarIcon.d.ts +1 -1
  7. package/es/action-bar-icon/index.d.ts +1 -1
  8. package/es/address-edit/style/index.mjs +7 -1
  9. package/es/area/Area.d.ts +6 -3
  10. package/es/area/index.d.ts +4 -2
  11. package/es/area/style/index.mjs +7 -0
  12. package/es/area/utils.mjs +9 -2
  13. package/es/badge/Badge.d.ts +1 -1
  14. package/es/badge/index.d.ts +1 -1
  15. package/es/calendar/Calendar.mjs +4 -3
  16. package/es/calendar/style/index.mjs +7 -1
  17. package/es/cell/Cell.d.ts +1 -1
  18. package/es/cell/index.d.ts +1 -1
  19. package/es/cell-group/CellGroup.d.ts +1 -1
  20. package/es/cell-group/index.d.ts +1 -1
  21. package/es/col/Col.d.ts +1 -1
  22. package/es/col/index.d.ts +1 -1
  23. package/es/collapse-item/CollapseItem.d.ts +1 -1
  24. package/es/collapse-item/index.d.ts +1 -1
  25. package/es/composables/use-lazy-render.mjs +9 -5
  26. package/es/composables/use-lock-scroll.mjs +4 -1
  27. package/es/composables/use-visibility-change.mjs +6 -3
  28. package/es/config-provider/ConfigProvider.d.ts +1 -1
  29. package/es/config-provider/index.d.ts +1 -1
  30. package/es/coupon/Coupon.d.ts +1 -1
  31. package/es/coupon/index.d.ts +1 -1
  32. package/es/coupon/utils.mjs +3 -1
  33. package/es/coupon-cell/CouponCell.d.ts +1 -1
  34. package/es/coupon-cell/index.d.ts +1 -1
  35. package/es/coupon-list/style/index.mjs +3 -3
  36. package/es/date-picker/DatePicker.d.ts +6 -3
  37. package/es/date-picker/DatePicker.mjs +10 -10
  38. package/es/date-picker/index.d.ts +4 -2
  39. package/es/date-picker/style/index.mjs +7 -0
  40. package/es/date-picker/utils.d.ts +2 -1
  41. package/es/divider/Divider.d.ts +1 -1
  42. package/es/divider/index.d.ts +1 -1
  43. package/es/dropdown-item/DropdownItem.d.ts +2 -2
  44. package/es/dropdown-item/index.d.ts +2 -2
  45. package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
  46. package/es/dropdown-menu/index.d.ts +1 -1
  47. package/es/empty/Empty.d.ts +1 -1
  48. package/es/empty/index.d.ts +1 -1
  49. package/es/field/Field.mjs +10 -3
  50. package/es/grid/Grid.d.ts +1 -1
  51. package/es/grid/index.d.ts +1 -1
  52. package/es/grid-item/GridItem.d.ts +1 -1
  53. package/es/grid-item/index.d.ts +1 -1
  54. package/es/icon/Icon.d.ts +1 -1
  55. package/es/icon/index.d.ts +1 -1
  56. package/es/image-preview/ImagePreviewItem.mjs +10 -2
  57. package/es/index-anchor/IndexAnchor.d.ts +1 -1
  58. package/es/index-anchor/index.d.ts +1 -1
  59. package/es/index-bar/IndexBar.mjs +7 -3
  60. package/es/index.d.ts +2 -1
  61. package/es/index.mjs +4 -1
  62. package/es/lazyload/vue-lazyload/lazy-component.mjs +4 -1
  63. package/es/lazyload/vue-lazyload/lazy-container.mjs +11 -7
  64. package/es/lazyload/vue-lazyload/lazy-image.mjs +24 -14
  65. package/es/lazyload/vue-lazyload/lazy.mjs +11 -3
  66. package/es/lazyload/vue-lazyload/listener.mjs +45 -33
  67. package/es/lazyload/vue-lazyload/util.mjs +4 -1
  68. package/es/loading/Loading.d.ts +1 -1
  69. package/es/loading/index.d.ts +1 -1
  70. package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
  71. package/es/number-keyboard/index.d.ts +1 -1
  72. package/es/overlay/Overlay.d.ts +1 -1
  73. package/es/overlay/Overlay.mjs +13 -6
  74. package/es/overlay/index.d.ts +1 -1
  75. package/es/picker/Picker.d.ts +8 -4
  76. package/es/picker/Picker.mjs +43 -67
  77. package/es/picker/PickerColumn.mjs +6 -2
  78. package/es/picker/PickerToolbar.d.ts +21 -0
  79. package/es/picker/PickerToolbar.mjs +59 -0
  80. package/es/picker/index.d.ts +4 -2
  81. package/es/picker/style/index.mjs +7 -0
  82. package/es/picker/utils.d.ts +2 -0
  83. package/es/picker/utils.mjs +14 -7
  84. package/es/picker-group/PickerGroup.d.ts +39 -0
  85. package/es/picker-group/PickerGroup.mjs +57 -0
  86. package/es/picker-group/index.css +1 -0
  87. package/es/picker-group/index.d.ts +32 -0
  88. package/es/picker-group/index.mjs +8 -0
  89. package/es/picker-group/style/index.d.ts +1 -0
  90. package/es/picker-group/style/index.mjs +9 -0
  91. package/es/popup/Popup.d.ts +2 -2
  92. package/es/popup/index.d.ts +2 -2
  93. package/es/popup/shared.mjs +3 -1
  94. package/es/progress/Progress.d.ts +1 -1
  95. package/es/progress/index.d.ts +1 -1
  96. package/es/rate/Rate.mjs +5 -3
  97. package/es/row/Row.d.ts +1 -1
  98. package/es/row/index.d.ts +1 -1
  99. package/es/skeleton/Skeleton.d.ts +1 -1
  100. package/es/skeleton/index.d.ts +1 -1
  101. package/es/slider/Slider.mjs +6 -2
  102. package/es/space/Space.d.ts +1 -1
  103. package/es/space/index.d.ts +1 -1
  104. package/es/step/Step.d.ts +1 -1
  105. package/es/step/index.d.ts +1 -1
  106. package/es/swipe/Swipe.mjs +13 -6
  107. package/es/swipe-cell/SwipeCell.d.ts +2 -2
  108. package/es/swipe-cell/SwipeCell.mjs +4 -2
  109. package/es/swipe-cell/index.d.ts +2 -2
  110. package/es/swipe-item/SwipeItem.d.ts +1 -1
  111. package/es/swipe-item/index.d.ts +1 -1
  112. package/es/tab/Tab.d.ts +1 -1
  113. package/es/tab/index.d.ts +1 -1
  114. package/es/tabs/TabsTitle.d.ts +1 -1
  115. package/es/time-picker/TimePicker.d.ts +6 -3
  116. package/es/time-picker/index.d.ts +4 -2
  117. package/es/time-picker/style/index.mjs +7 -0
  118. package/es/utils/create.mjs +8 -2
  119. package/es/utils/with-install.d.ts +2 -2
  120. package/es/utils/with-install.mjs +4 -2
  121. package/lib/action-bar/ActionBar.d.ts +1 -1
  122. package/lib/action-bar/index.d.ts +1 -1
  123. package/lib/action-bar/index.js +4 -1
  124. package/lib/action-bar-button/ActionBarButton.d.ts +1 -1
  125. package/lib/action-bar-button/index.d.ts +1 -1
  126. package/lib/action-bar-button/index.js +4 -1
  127. package/lib/action-bar-icon/ActionBarIcon.d.ts +1 -1
  128. package/lib/action-bar-icon/index.d.ts +1 -1
  129. package/lib/action-bar-icon/index.js +4 -1
  130. package/lib/action-sheet/index.js +4 -1
  131. package/lib/address-edit/AddressEdit.js +4 -1
  132. package/lib/address-edit/index.js +4 -1
  133. package/lib/address-edit/style/index.js +7 -1
  134. package/lib/address-list/AddressList.js +4 -1
  135. package/lib/address-list/index.js +4 -1
  136. package/lib/area/Area.d.ts +6 -3
  137. package/lib/area/index.d.ts +4 -2
  138. package/lib/area/index.js +4 -1
  139. package/lib/area/style/index.js +7 -0
  140. package/lib/area/utils.js +9 -2
  141. package/lib/badge/Badge.d.ts +1 -1
  142. package/lib/badge/index.d.ts +1 -1
  143. package/lib/badge/index.js +4 -1
  144. package/lib/button/index.js +4 -1
  145. package/lib/calendar/Calendar.js +8 -4
  146. package/lib/calendar/CalendarMonth.js +4 -1
  147. package/lib/calendar/index.js +4 -1
  148. package/lib/calendar/style/index.js +7 -1
  149. package/lib/card/index.js +4 -1
  150. package/lib/cascader/index.js +4 -1
  151. package/lib/cell/Cell.d.ts +1 -1
  152. package/lib/cell/index.d.ts +1 -1
  153. package/lib/cell/index.js +4 -1
  154. package/lib/cell-group/CellGroup.d.ts +1 -1
  155. package/lib/cell-group/index.d.ts +1 -1
  156. package/lib/cell-group/index.js +4 -1
  157. package/lib/checkbox/Checkbox.js +4 -1
  158. package/lib/checkbox/index.js +4 -1
  159. package/lib/checkbox-group/index.js +4 -1
  160. package/lib/circle/index.js +4 -1
  161. package/lib/col/Col.d.ts +1 -1
  162. package/lib/col/index.d.ts +1 -1
  163. package/lib/col/index.js +4 -1
  164. package/lib/collapse/index.js +4 -1
  165. package/lib/collapse-item/CollapseItem.d.ts +1 -1
  166. package/lib/collapse-item/index.d.ts +1 -1
  167. package/lib/collapse-item/index.js +4 -1
  168. package/lib/composables/use-lazy-render.js +9 -5
  169. package/lib/composables/use-lock-scroll.js +4 -1
  170. package/lib/composables/use-visibility-change.js +6 -3
  171. package/lib/config-provider/ConfigProvider.d.ts +1 -1
  172. package/lib/config-provider/index.d.ts +1 -1
  173. package/lib/config-provider/index.js +4 -1
  174. package/lib/contact-card/index.js +4 -1
  175. package/lib/contact-edit/index.js +4 -1
  176. package/lib/contact-list/index.js +4 -1
  177. package/lib/count-down/index.js +4 -1
  178. package/lib/coupon/Coupon.d.ts +1 -1
  179. package/lib/coupon/index.d.ts +1 -1
  180. package/lib/coupon/index.js +4 -1
  181. package/lib/coupon/utils.js +3 -1
  182. package/lib/coupon-cell/CouponCell.d.ts +1 -1
  183. package/lib/coupon-cell/index.d.ts +1 -1
  184. package/lib/coupon-cell/index.js +4 -1
  185. package/lib/coupon-list/index.js +4 -1
  186. package/lib/coupon-list/style/index.js +3 -3
  187. package/lib/date-picker/DatePicker.d.ts +6 -3
  188. package/lib/date-picker/DatePicker.js +10 -10
  189. package/lib/date-picker/index.d.ts +4 -2
  190. package/lib/date-picker/index.js +4 -1
  191. package/lib/date-picker/style/index.js +7 -0
  192. package/lib/date-picker/utils.d.ts +2 -1
  193. package/lib/dialog/function-call.js +4 -1
  194. package/lib/dialog/index.js +4 -1
  195. package/lib/divider/Divider.d.ts +1 -1
  196. package/lib/divider/index.d.ts +1 -1
  197. package/lib/divider/index.js +4 -1
  198. package/lib/dropdown-item/DropdownItem.d.ts +2 -2
  199. package/lib/dropdown-item/index.d.ts +2 -2
  200. package/lib/dropdown-item/index.js +4 -1
  201. package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
  202. package/lib/dropdown-menu/index.d.ts +1 -1
  203. package/lib/dropdown-menu/index.js +4 -1
  204. package/lib/empty/Empty.d.ts +1 -1
  205. package/lib/empty/index.d.ts +1 -1
  206. package/lib/empty/index.js +4 -1
  207. package/lib/field/Field.js +9 -2
  208. package/lib/field/index.js +4 -1
  209. package/lib/form/index.js +4 -1
  210. package/lib/grid/Grid.d.ts +1 -1
  211. package/lib/grid/index.d.ts +1 -1
  212. package/lib/grid/index.js +4 -1
  213. package/lib/grid-item/GridItem.d.ts +1 -1
  214. package/lib/grid-item/index.d.ts +1 -1
  215. package/lib/grid-item/index.js +4 -1
  216. package/lib/icon/Icon.d.ts +1 -1
  217. package/lib/icon/index.d.ts +1 -1
  218. package/lib/icon/index.js +4 -1
  219. package/lib/image/index.js +4 -1
  220. package/lib/image-preview/ImagePreview.js +4 -1
  221. package/lib/image-preview/ImagePreviewItem.js +9 -1
  222. package/lib/image-preview/function-call.js +4 -1
  223. package/lib/image-preview/index.js +4 -1
  224. package/lib/index-anchor/IndexAnchor.d.ts +1 -1
  225. package/lib/index-anchor/index.d.ts +1 -1
  226. package/lib/index-anchor/index.js +4 -1
  227. package/lib/index-bar/IndexBar.js +7 -3
  228. package/lib/index-bar/index.js +4 -1
  229. package/lib/index.css +1 -1
  230. package/lib/index.d.ts +2 -1
  231. package/lib/index.js +4 -1
  232. package/lib/lazyload/vue-lazyload/index.js +4 -1
  233. package/lib/lazyload/vue-lazyload/lazy-component.js +4 -1
  234. package/lib/lazyload/vue-lazyload/lazy-container.js +11 -7
  235. package/lib/lazyload/vue-lazyload/lazy-image.js +24 -14
  236. package/lib/lazyload/vue-lazyload/lazy.js +15 -4
  237. package/lib/lazyload/vue-lazyload/listener.js +45 -33
  238. package/lib/lazyload/vue-lazyload/util.js +4 -1
  239. package/lib/list/index.js +4 -1
  240. package/lib/loading/Loading.d.ts +1 -1
  241. package/lib/loading/index.d.ts +1 -1
  242. package/lib/loading/index.js +4 -1
  243. package/lib/locale/index.js +4 -1
  244. package/lib/nav-bar/index.js +4 -1
  245. package/lib/notice-bar/index.js +4 -1
  246. package/lib/notify/function-call.js +4 -1
  247. package/lib/notify/index.js +4 -1
  248. package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
  249. package/lib/number-keyboard/NumberKeyboard.js +4 -1
  250. package/lib/number-keyboard/index.d.ts +1 -1
  251. package/lib/number-keyboard/index.js +4 -1
  252. package/lib/overlay/Overlay.d.ts +1 -1
  253. package/lib/overlay/Overlay.js +11 -4
  254. package/lib/overlay/index.d.ts +1 -1
  255. package/lib/overlay/index.js +4 -1
  256. package/lib/pagination/index.js +4 -1
  257. package/lib/password-input/index.js +4 -1
  258. package/lib/picker/Picker.d.ts +8 -4
  259. package/lib/picker/Picker.js +49 -70
  260. package/lib/picker/PickerColumn.js +5 -1
  261. package/lib/picker/PickerToolbar.d.ts +21 -0
  262. package/lib/picker/PickerToolbar.js +78 -0
  263. package/lib/picker/index.d.ts +4 -2
  264. package/lib/picker/index.js +4 -1
  265. package/lib/picker/style/index.js +7 -0
  266. package/lib/picker/utils.d.ts +2 -0
  267. package/lib/picker/utils.js +15 -8
  268. package/lib/picker-group/PickerGroup.d.ts +39 -0
  269. package/lib/picker-group/PickerGroup.js +82 -0
  270. package/lib/picker-group/index.css +1 -0
  271. package/lib/picker-group/index.d.ts +32 -0
  272. package/lib/picker-group/index.js +33 -0
  273. package/lib/picker-group/style/index.d.ts +1 -0
  274. package/lib/picker-group/style/index.js +9 -0
  275. package/lib/popover/index.js +4 -1
  276. package/lib/popup/Popup.d.ts +2 -2
  277. package/lib/popup/index.d.ts +2 -2
  278. package/lib/popup/index.js +4 -1
  279. package/lib/popup/shared.js +3 -1
  280. package/lib/progress/Progress.d.ts +1 -1
  281. package/lib/progress/index.d.ts +1 -1
  282. package/lib/progress/index.js +4 -1
  283. package/lib/pull-refresh/index.js +4 -1
  284. package/lib/radio/Radio.js +4 -1
  285. package/lib/radio/index.js +4 -1
  286. package/lib/radio-group/index.js +4 -1
  287. package/lib/rate/Rate.js +4 -2
  288. package/lib/rate/index.js +4 -1
  289. package/lib/row/Row.d.ts +1 -1
  290. package/lib/row/index.d.ts +1 -1
  291. package/lib/row/index.js +4 -1
  292. package/lib/search/index.js +4 -1
  293. package/lib/share-sheet/index.js +4 -1
  294. package/lib/sidebar/index.js +4 -1
  295. package/lib/sidebar-item/index.js +4 -1
  296. package/lib/skeleton/Skeleton.d.ts +1 -1
  297. package/lib/skeleton/index.d.ts +1 -1
  298. package/lib/skeleton/index.js +4 -1
  299. package/lib/slider/Slider.js +5 -1
  300. package/lib/slider/index.js +4 -1
  301. package/lib/space/Space.d.ts +1 -1
  302. package/lib/space/index.d.ts +1 -1
  303. package/lib/space/index.js +4 -1
  304. package/lib/step/Step.d.ts +1 -1
  305. package/lib/step/index.d.ts +1 -1
  306. package/lib/step/index.js +4 -1
  307. package/lib/stepper/index.js +4 -1
  308. package/lib/steps/index.js +4 -1
  309. package/lib/sticky/index.js +4 -1
  310. package/lib/submit-bar/index.js +4 -1
  311. package/lib/swipe/Swipe.js +12 -5
  312. package/lib/swipe/index.js +4 -1
  313. package/lib/swipe-cell/SwipeCell.d.ts +2 -2
  314. package/lib/swipe-cell/SwipeCell.js +3 -1
  315. package/lib/swipe-cell/index.d.ts +2 -2
  316. package/lib/swipe-cell/index.js +4 -1
  317. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  318. package/lib/swipe-item/index.d.ts +1 -1
  319. package/lib/swipe-item/index.js +4 -1
  320. package/lib/switch/index.js +4 -1
  321. package/lib/tab/Tab.d.ts +1 -1
  322. package/lib/tab/index.d.ts +1 -1
  323. package/lib/tab/index.js +4 -1
  324. package/lib/tabbar/index.js +4 -1
  325. package/lib/tabbar-item/index.js +4 -1
  326. package/lib/tabs/Tabs.js +4 -1
  327. package/lib/tabs/TabsTitle.d.ts +1 -1
  328. package/lib/tabs/index.js +4 -1
  329. package/lib/tag/index.js +4 -1
  330. package/lib/time-picker/TimePicker.d.ts +6 -3
  331. package/lib/time-picker/index.d.ts +4 -2
  332. package/lib/time-picker/index.js +4 -1
  333. package/lib/time-picker/style/index.js +7 -0
  334. package/lib/toast/function-call.js +4 -1
  335. package/lib/toast/index.js +4 -1
  336. package/lib/tree-select/index.js +4 -1
  337. package/lib/uploader/Uploader.js +4 -1
  338. package/lib/uploader/index.js +4 -1
  339. package/lib/utils/create.js +12 -3
  340. package/lib/utils/with-install.d.ts +2 -2
  341. package/lib/utils/with-install.js +4 -2
  342. package/lib/vant.cjs.js +4345 -4157
  343. package/lib/vant.es.js +4347 -4159
  344. package/lib/vant.js +4402 -4197
  345. package/lib/vant.min.js +1 -1
  346. package/lib/web-types.json +2088 -2034
  347. package/package.json +7 -7
@@ -1,23 +1,40 @@
1
- ### [v4.0.0-beta.1](https://github.com/vant-ui/vant/compare/v3.6.0...v4.0.0-beta.1)
1
+ ### [v4.0.0-rc.0](https://github.com/vant-ui/vant/compare/v3.6.2...v4.0.0-rc.0)
2
+
3
+ `2022-09-04`
4
+
5
+ **Bug Fixes**
6
+
7
+ - DatePicker: failed to update model value [#10984](https://github.com/vant-ui/vant/issues/10984)
8
+ - DatePicker: min-date prop not work correctly [#10985](https://github.com/vant-ui/vant/issues/10985)
9
+ - Picker: fix passive event [8bcb34](https://github.com/vant-ui/vant/commit/8bcb34724f5bab2a184b075d85b8896f4a0a8c1f)
10
+
11
+ **Document**
12
+
13
+ - changelog: vant@3.6.2 [#11008](https://github.com/vant-ui/vant/issues/11008)
14
+ - changelog: vant@4.0.0-beta.1 [#10966](https://github.com/vant-ui/vant/issues/10966)
15
+ - DatePicker: fix basic usage [66aa29](https://github.com/vant-ui/vant/commit/66aa2906e0c4fa613e55e2cb57637a40b37cdb7e)
16
+ - DatePicker: fix toolbar slot name [#10983](https://github.com/vant-ui/vant/issues/10983)
17
+ - update babel-plugin-import tip [7d023f](https://github.com/vant-ui/vant/commit/7d023fd6e45b6407a339d8a07ab6c4e4b70f4f92)
18
+
19
+ **Feature**
20
+
21
+ - add new PickerGroup component [#11005](https://github.com/vant-ui/vant/issues/11005)
22
+ ### [v4.0.0-beta.1](https://github.com/vant-ui/vant/compare/v3.6.1...v4.0.0-beta.1)
2
23
 
3
24
  `2022-08-24`
4
25
 
5
26
  **Bug Fixes**
6
27
 
7
28
  - ConfigProvider: should remove theme class on unmount [#10898](https://github.com/vant-ui/vant/issues/10898)
8
- - reduce passive event warning of touchstart event [#10954](https://github.com/vant-ui/vant/issues/10954)
9
- - Tabs: resize not work for swipeable tabs [#10964](https://github.com/vant-ui/vant/issues/10964)
10
29
 
11
30
  **Document**
12
31
 
13
32
  - add babel-plugin-import migration guide [#10867](https://github.com/vant-ui/vant/issues/10867)
14
33
  - add faq of remove babel-plugin-import [#10942](https://github.com/vant-ui/vant/issues/10942)
15
34
  - changelog: 4.0.0-beta.0 [#10825](https://github.com/vant-ui/vant/issues/10825)
16
- - changelog: vant@3.6.0 [667034](https://github.com/vant-ui/vant/commit/667034322ed4e1c39fd014e83d8661a1ff891ee0)
17
35
  - fix link address in migrate-from-v3.md [#10919](https://github.com/vant-ui/vant/issues/10919)
18
36
  - Icon: separate usingUrl demo from basicUsage [#10828](https://github.com/vant-ui/vant/issues/10828)
19
37
  - ImagePreview: fix cell style in demo [0881de](https://github.com/vant-ui/vant/commit/0881de82af347002c3f37bba5e2f89aacdeadc16)
20
- - NoticeBar: disable swipe drag in demo [#10950](https://github.com/vant-ui/vant/issues/10950)
21
38
 
22
39
  - Restore "fix(Popup&Toast): invalid adaptive width (#10961)" [#10961](https://github.com/vant-ui/vant/issues/10961)
23
40
 
@@ -27,13 +44,9 @@
27
44
  - Picker: add clickOption event [#10865](https://github.com/vant-ui/vant/issues/10865)
28
45
  - Popup: improve style when position is center [#10965](https://github.com/vant-ui/vant/issues/10965)
29
46
 
30
- **perf**
31
-
32
- - add correct passive flag to improve scroll performance [#10951](https://github.com/vant-ui/vant/issues/10951)
33
-
34
- **Types**
47
+ **release**
35
48
 
36
- - @vant/use: improve useEventListener typing [#10952](https://github.com/vant-ui/vant/issues/10952)
49
+ - 4.0.0-beta.1 [889b28](https://github.com/vant-ui/vant/commit/889b28609ad6cc53a8fa82017cff2e7d210f3f74)
37
50
  ### [v4.0.0-beta.0](https://github.com/vant-ui/vant/compare/v3.5.2...v4.0.0-beta.0)
38
51
 
39
52
  `2022-07-16`
@@ -246,46 +259,37 @@
246
259
  - Picker: fix columns prop typing [6c64bc](https://github.com/vant-ui/vant/commit/6c64bc33c1ba537b7951dcbc02d6deec3aaab093)
247
260
  - Picker: fix return type of getSelectedOptions [967cb5](https://github.com/vant-ui/vant/commit/967cb56c181cc145189a868f49c4666a75f85b00)
248
261
  - TimePicker: export TimePickerColumnType [b608fb](https://github.com/vant-ui/vant/commit/b608fb23f031cf09a474039cd9cd23f8bc7811d3)
249
- ### [v3.6.0](https://github.com/vant-ui/vant/compare/v3.5.3...v3.6.0)
262
+ ### [v3.6.2](https://github.com/vant-ui/vant/compare/v4.0.0-beta.1...v3.6.2)
250
263
 
251
- `2022-08-21`
264
+ `2022-09-04`
252
265
 
253
266
  **Bug Fixes**
254
267
 
255
- - @vant/cli: should replace NODE_ENV in vite v3 [#10887](https://github.com/vant-ui/vant/issues/10887)
256
- - Calendar: content disappeared when hiding [#10910](https://github.com/vant-ui/vant/issues/10910)
257
- - Calendar: fix reading getFullYear error [#10908](https://github.com/vant-ui/vant/issues/10908)
258
- - Calendar: reading getFullYear error in some cases [#10909](https://github.com/vant-ui/vant/issues/10909)
259
- - Empty: generate unique id to avoid render issue [#10943](https://github.com/vant-ui/vant/issues/10943)
260
- - incorrect tag name in WebStorm [#10946](https://github.com/vant-ui/vant/issues/10946)
261
- - Popover: can not scroll inside popup [#10949](https://github.com/vant-ui/vant/issues/10949)
262
- - PullRefresh: remove passive event warning [#10938](https://github.com/vant-ui/vant/issues/10938)
263
- - Search: --van-search-input-height var not work [#10911](https://github.com/vant-ui/vant/issues/10911)
268
+ - @vant/cli: add passive for global touchstart [#10979](https://github.com/vant-ui/vant/issues/10979)
269
+ - area-data: update counties of Daxinganling region [#11000](https://github.com/vant-ui/vant/issues/11000)
270
+ - Calendar: allow default date to be maxDate when enable allowSameDay [#10976](https://github.com/vant-ui/vant/issues/10976)
271
+ - Calendar: range type defaultDate when set allowSameDay [#10971](https://github.com/vant-ui/vant/issues/10971)
272
+ - indexBar: index-bar not positioned correctly when scrolled to the bottom [#10994](https://github.com/vant-ui/vant/issues/10994)
273
+ - reduce passive event warning of touchmove event [#10975](https://github.com/vant-ui/vant/issues/10975)
274
+ - Swipe: should not prevent touch move when reach edge [#10980](https://github.com/vant-ui/vant/issues/10980)
264
275
 
265
276
  **Document**
266
277
 
267
- - add import tips [#10941](https://github.com/vant-ui/vant/issues/10941)
268
- - add tips in advanced-usage.zh-CN.md [#10927](https://github.com/vant-ui/vant/issues/10927)
269
- - changelog: 3.5.4 [961f70](https://github.com/vant-ui/vant/commit/961f70d523b723c864d99dceb2be1a19ec506d03)
270
- - changelog: vant@3.5.3 [#10869](https://github.com/vant-ui/vant/issues/10869)
271
- - Form: fix the type of rule trigger option [#10912](https://github.com/vant-ui/vant/issues/10912)
272
- - import quick start document [#10945](https://github.com/vant-ui/vant/issues/10945)
273
- - Search: fix action-text type [#10936](https://github.com/vant-ui/vant/issues/10936)
274
- - Search: fix action-text type [#10935](https://github.com/vant-ui/vant/issues/10935)
275
- - Space: add version tip [#10886](https://github.com/vant-ui/vant/issues/10886)
278
+ - add function component style guide [#11003](https://github.com/vant-ui/vant/issues/11003)
279
+ - add nuxt 3 guide [#10977](https://github.com/vant-ui/vant/issues/10977)
280
+ - changelog: 3.6.1 [6a7376](https://github.com/vant-ui/vant/commit/6a7376d15d20bdd1641422ff2cb1c317fc987e89)
281
+ - fix card overflow issue [#10988](https://github.com/vant-ui/vant/issues/10988)
282
+ - prefer using externalVue in nuxt 3 [#10978](https://github.com/vant-ui/vant/issues/10978)
283
+ - update quickstart guide [#11006](https://github.com/vant-ui/vant/issues/11006)
276
284
 
277
- **Feature**
285
+ **release**
278
286
 
279
- - @vant/use: useClickAway support multiple targets [#10948](https://github.com/vant-ui/vant/issues/10948)
280
- - Badge: fix the problem mentioned at README. [#10921](https://github.com/vant-ui/vant/issues/10921)
281
- - ConfigProvider: add z-index prop [#10915](https://github.com/vant-ui/vant/issues/10915)
282
- - Form: add validateEmpty option of rule [#10913](https://github.com/vant-ui/vant/issues/10913)
283
- - Popup: add role and tabindex for a11y [#10894](https://github.com/vant-ui/vant/issues/10894)
284
- - Space: add new component space [#10857](https://github.com/vant-ui/vant/issues/10857)
285
- - touch-emulator: support .mjs extension [#10888](https://github.com/vant-ui/vant/issues/10888)
287
+ - @vant/area-data 1.3.2 [94c5af](https://github.com/vant-ui/vant/commit/94c5afe65caa97188fe3a800c52c629c1416ff41)
288
+ - 3.6.2 [7afb74](https://github.com/vant-ui/vant/commit/7afb74345a39f23a3c62aa8b0e6d95de4c2b35de)
289
+ ### [v3.6.1](https://github.com/vant-ui/vant/compare/v3.6.0...v3.6.1)
290
+
291
+ `2022-08-24`
286
292
 
287
293
  **release**
288
294
 
289
- - @vant/use 1.4.2 [326880](https://github.com/vant-ui/vant/commit/326880a4e19f8ab8ffe6042a8cc968cc03b02616)
290
- - 3.5.4 [cfdb5c](https://github.com/vant-ui/vant/commit/cfdb5c1fbe496f6a064ab8bebe7f1ae8734490c0)
291
- - 3.6.0 [8d51f9](https://github.com/vant-ui/vant/commit/8d51f9e08ea5833b4b27077c61727924c9112f0b)
295
+ - 3.6.1 [2cca63](https://github.com/vant-ui/vant/commit/2cca63080868beb1b64bedddd004d8f13bc64d4a)
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
14
14
  type: BooleanConstructor;
15
15
  default: true;
16
16
  };
17
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
17
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
18
18
  placeholder: BooleanConstructor;
19
19
  safeAreaInsetBottom: {
20
20
  type: BooleanConstructor;
@@ -4,7 +4,7 @@ export declare const ActionBar: import("../utils").WithInstall<import("vue").Def
4
4
  type: BooleanConstructor;
5
5
  default: true;
6
6
  };
7
- }, () => 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<{
7
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
8
  placeholder: BooleanConstructor;
9
9
  safeAreaInsetBottom: {
10
10
  type: BooleanConstructor;
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
24
24
  color: StringConstructor;
25
25
  loading: BooleanConstructor;
26
26
  disabled: BooleanConstructor;
27
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
27
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
28
28
  to: PropType<import("vue-router").RouteLocationRaw>;
29
29
  url: StringConstructor;
30
30
  replace: BooleanConstructor;
@@ -9,7 +9,7 @@ export declare const ActionBarButton: import("../utils").WithInstall<import("vue
9
9
  color: StringConstructor;
10
10
  loading: BooleanConstructor;
11
11
  disabled: BooleanConstructor;
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
  to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
14
14
  url: StringConstructor;
15
15
  replace: BooleanConstructor;
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
28
28
  iconClass: PropType<unknown>;
29
29
  badgeProps: PropType<Partial<BadgeProps>>;
30
30
  iconPrefix: StringConstructor;
31
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
31
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
32
32
  to: PropType<import("vue-router").RouteLocationRaw>;
33
33
  url: StringConstructor;
34
34
  replace: BooleanConstructor;
@@ -11,7 +11,7 @@ export declare const ActionBarIcon: import("../utils").WithInstall<import("vue")
11
11
  iconClass: import("vue").PropType<unknown>;
12
12
  badgeProps: import("vue").PropType<Partial<import("..").BadgeProps>>;
13
13
  iconPrefix: StringConstructor;
14
- }, () => 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<{
14
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
15
  to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
16
16
  url: StringConstructor;
17
17
  replace: BooleanConstructor;
@@ -5,9 +5,15 @@ import "../../cell/index.css";
5
5
  import "../../field/index.css";
6
6
  import "../../loading/index.css";
7
7
  import "../../switch/index.css";
8
- import "../../picker/index.css";
9
8
  import "../../button/index.css";
10
9
  import "../../overlay/index.css";
11
10
  import "../../popup/index.css";
12
11
  import "../../toast/index.css";
12
+ import "../../sticky/index.css";
13
+ import "../../swipe/index.css";
14
+ import "../../swipe-item/index.css";
15
+ import "../../tabs/index.css";
16
+ import "../../tab/index.css";
17
+ import "../../picker/index.css";
18
+ import "../../picker-group/index.css";
13
19
  import "../index.css";
package/es/area/Area.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
2
  import type { AreaList } from './types';
3
3
  declare const areaProps: {
4
- title: StringConstructor;
5
4
  loading: BooleanConstructor;
6
5
  readonly: BooleanConstructor;
7
6
  allowHtml: BooleanConstructor;
@@ -21,6 +20,8 @@ declare const areaProps: {
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
  } & {
@@ -40,7 +41,6 @@ declare const areaProps: {
40
41
  };
41
42
  export declare type AreaProps = ExtractPropTypes<typeof areaProps>;
42
43
  declare const _default: import("vue").DefineComponent<{
43
- title: StringConstructor;
44
44
  loading: BooleanConstructor;
45
45
  readonly: BooleanConstructor;
46
46
  allowHtml: BooleanConstructor;
@@ -60,6 +60,8 @@ declare const _default: import("vue").DefineComponent<{
60
60
  type: (NumberConstructor | StringConstructor)[];
61
61
  default: number;
62
62
  };
63
+ } & {
64
+ title: StringConstructor;
63
65
  cancelButtonText: StringConstructor;
64
66
  confirmButtonText: StringConstructor;
65
67
  } & {
@@ -77,7 +79,6 @@ declare const _default: import("vue").DefineComponent<{
77
79
  default: () => {};
78
80
  };
79
81
  }, () => 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<{
80
- title: StringConstructor;
81
82
  loading: BooleanConstructor;
82
83
  readonly: BooleanConstructor;
83
84
  allowHtml: BooleanConstructor;
@@ -97,6 +98,8 @@ declare const _default: import("vue").DefineComponent<{
97
98
  type: (NumberConstructor | StringConstructor)[];
98
99
  default: number;
99
100
  };
101
+ } & {
102
+ title: StringConstructor;
100
103
  cancelButtonText: StringConstructor;
101
104
  confirmButtonText: StringConstructor;
102
105
  } & {
@@ -1,5 +1,4 @@
1
1
  export declare const Area: import("../utils").WithInstall<import("vue").DefineComponent<{
2
- title: StringConstructor;
3
2
  loading: BooleanConstructor;
4
3
  readonly: BooleanConstructor;
5
4
  allowHtml: BooleanConstructor;
@@ -19,6 +18,8 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
19
18
  type: (NumberConstructor | StringConstructor)[];
20
19
  default: number;
21
20
  };
21
+ } & {
22
+ title: StringConstructor;
22
23
  cancelButtonText: StringConstructor;
23
24
  confirmButtonText: StringConstructor;
24
25
  } & {
@@ -36,7 +37,6 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
36
37
  default: () => {};
37
38
  };
38
39
  }, () => 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<{
39
- title: StringConstructor;
40
40
  loading: BooleanConstructor;
41
41
  readonly: BooleanConstructor;
42
42
  allowHtml: BooleanConstructor;
@@ -56,6 +56,8 @@ export declare const Area: import("../utils").WithInstall<import("vue").DefineCo
56
56
  type: (NumberConstructor | StringConstructor)[];
57
57
  default: number;
58
58
  };
59
+ } & {
60
+ title: StringConstructor;
59
61
  cancelButtonText: StringConstructor;
60
62
  confirmButtonText: StringConstructor;
61
63
  } & {
@@ -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";
package/es/area/utils.mjs CHANGED
@@ -37,13 +37,20 @@ function formatDataForCascade({
37
37
  const getProvinceChildren = () => {
38
38
  if (showCity) {
39
39
  return placeholder.length ? [
40
- makeOption(placeholder[0], AREA_EMPTY_CODE, showCounty ? [] : void 0)
40
+ makeOption(
41
+ placeholder[0],
42
+ AREA_EMPTY_CODE,
43
+ showCounty ? [] : void 0
44
+ )
41
45
  ] : [];
42
46
  }
43
47
  };
44
48
  const provinceMap = /* @__PURE__ */ new Map();
45
49
  Object.keys(province).forEach((code) => {
46
- provinceMap.set(code.slice(0, 2), makeOption(province[code], code, getProvinceChildren()));
50
+ provinceMap.set(
51
+ code.slice(0, 2),
52
+ makeOption(province[code], code, getProvinceChildren())
53
+ );
47
54
  });
48
55
  const cityMap = /* @__PURE__ */ new Map();
49
56
  if (showCity) {
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  type: PropType<BadgePosition>;
40
40
  default: BadgePosition;
41
41
  };
42
- }, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
42
+ }, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
43
43
  dot: BooleanConstructor;
44
44
  max: (NumberConstructor | StringConstructor)[];
45
45
  tag: {
@@ -16,7 +16,7 @@ export declare const Badge: import("../utils").WithInstall<import("vue").DefineC
16
16
  type: import("vue").PropType<import("./Badge").BadgePosition>;
17
17
  default: import("./Badge").BadgePosition;
18
18
  };
19
- }, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ }, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
20
  dot: BooleanConstructor;
21
21
  max: (NumberConstructor | StringConstructor)[];
22
22
  tag: {
@@ -78,7 +78,8 @@ var stdin_default = defineComponent({
78
78
  const {
79
79
  type,
80
80
  minDate,
81
- maxDate
81
+ maxDate,
82
+ allowSameDay
82
83
  } = props;
83
84
  if (defaultDate === null) {
84
85
  return defaultDate;
@@ -88,8 +89,8 @@ var stdin_default = defineComponent({
88
89
  if (!Array.isArray(defaultDate)) {
89
90
  defaultDate = [];
90
91
  }
91
- const start = limitDateRange(defaultDate[0] || now, minDate, getPrevDay(maxDate));
92
- const end = limitDateRange(defaultDate[1] || now, getNextDay(minDate));
92
+ const start = limitDateRange(defaultDate[0] || now, minDate, allowSameDay ? maxDate : getPrevDay(maxDate));
93
+ const end = limitDateRange(defaultDate[1] || now, allowSameDay ? minDate : getNextDay(minDate));
93
94
  return [start, end];
94
95
  }
95
96
  if (type === "multiple") {
@@ -2,9 +2,15 @@ import "../../style/base.css";
2
2
  import "../../badge/index.css";
3
3
  import "../../icon/index.css";
4
4
  import "../../loading/index.css";
5
- import "../../picker/index.css";
6
5
  import "../../button/index.css";
7
6
  import "../../overlay/index.css";
8
7
  import "../../popup/index.css";
9
8
  import "../../toast/index.css";
9
+ import "../../sticky/index.css";
10
+ import "../../swipe/index.css";
11
+ import "../../swipe-item/index.css";
12
+ import "../../tabs/index.css";
13
+ import "../../tab/index.css";
14
+ import "../../picker/index.css";
15
+ import "../../picker-group/index.css";
10
16
  import "../index.css";
package/es/cell/Cell.d.ts CHANGED
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
81
81
  to: PropType<import("vue-router").RouteLocationRaw>;
82
82
  url: StringConstructor;
83
83
  replace: BooleanConstructor;
84
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
84
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
85
85
  icon: StringConstructor;
86
86
  size: PropType<CellSize>;
87
87
  title: (NumberConstructor | StringConstructor)[];
@@ -25,7 +25,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
25
25
  to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
26
26
  url: StringConstructor;
27
27
  replace: BooleanConstructor;
28
- }, () => 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<{
28
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
29
  icon: StringConstructor;
30
30
  size: import("vue").PropType<import("./Cell").CellSize>;
31
31
  title: (NumberConstructor | StringConstructor)[];
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  type: BooleanConstructor;
16
16
  default: true;
17
17
  };
18
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
18
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
19
19
  title: StringConstructor;
20
20
  inset: BooleanConstructor;
21
21
  border: {
@@ -5,7 +5,7 @@ export declare const CellGroup: import("../utils").WithInstall<import("vue").Def
5
5
  type: BooleanConstructor;
6
6
  default: true;
7
7
  };
8
- }, () => 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<{
8
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
9
  title: StringConstructor;
10
10
  inset: BooleanConstructor;
11
11
  border: {
package/es/col/Col.d.ts CHANGED
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  default: number;
22
22
  };
23
23
  offset: (NumberConstructor | StringConstructor)[];
24
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
24
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
25
25
  tag: {
26
26
  type: import("vue").PropType<keyof HTMLElementTagNameMap>;
27
27
  default: keyof HTMLElementTagNameMap;
package/es/col/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare const Col: import("../utils").WithInstall<import("vue").DefineCom
8
8
  default: number;
9
9
  };
10
10
  offset: (NumberConstructor | StringConstructor)[];
11
- }, () => 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<{
11
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
12
  tag: {
13
13
  type: import("vue").PropType<keyof HTMLElementTagNameMap>;
14
14
  default: keyof HTMLElementTagNameMap;
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<{
71
71
  type: BooleanConstructor;
72
72
  default: true;
73
73
  };
74
- }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
74
+ }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
75
75
  icon: StringConstructor;
76
76
  size: import("vue").PropType<import("../cell").CellSize>;
77
77
  title: (NumberConstructor | StringConstructor)[];
@@ -33,7 +33,7 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
33
33
  type: BooleanConstructor;
34
34
  default: true;
35
35
  };
36
- }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ }, (() => JSX.Element) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
37
  icon: StringConstructor;
38
38
  size: import("vue").PropType<import("..").CellSize>;
39
39
  title: (NumberConstructor | StringConstructor)[];
@@ -1,11 +1,15 @@
1
1
  import { ref, watch } from "vue";
2
2
  function useLazyRender(show) {
3
3
  const inited = ref(false);
4
- watch(show, (value) => {
5
- if (value) {
6
- inited.value = value;
7
- }
8
- }, { immediate: true });
4
+ watch(
5
+ show,
6
+ (value) => {
7
+ if (value) {
8
+ inited.value = value;
9
+ }
10
+ },
11
+ { immediate: true }
12
+ );
9
13
  return (render) => () => inited.value ? render() : null;
10
14
  }
11
15
  export {
@@ -11,7 +11,10 @@ function useLockScroll(rootRef, shouldLock) {
11
11
  const onTouchMove = (event) => {
12
12
  touch.move(event);
13
13
  const direction = touch.deltaY.value > 0 ? DIRECTION_DOWN : DIRECTION_UP;
14
- const el = getScrollParent(event.target, rootRef.value);
14
+ const el = getScrollParent(
15
+ event.target,
16
+ rootRef.value
17
+ );
15
18
  const { scrollHeight, offsetHeight, scrollTop } = el;
16
19
  let status = "11";
17
20
  if (scrollTop === 0) {
@@ -5,9 +5,12 @@ function useVisibilityChange(target, onChange) {
5
5
  if (!inBrowser || !window.IntersectionObserver) {
6
6
  return;
7
7
  }
8
- const observer = new IntersectionObserver((entries) => {
9
- onChange(entries[0].intersectionRatio > 0);
10
- }, { root: document.body });
8
+ const observer = new IntersectionObserver(
9
+ (entries) => {
10
+ onChange(entries[0].intersectionRatio > 0);
11
+ },
12
+ { root: document.body }
13
+ );
11
14
  const observe = () => {
12
15
  if (target.value) {
13
16
  observer.observe(target.value);
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
36
36
  themeVarsDark: ThemeVars;
37
37
  themeVarsLight: ThemeVars;
38
38
  iconPrefix: StringConstructor;
39
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
39
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
40
40
  tag: {
41
41
  type: PropType<keyof HTMLElementTagNameMap>;
42
42
  default: keyof HTMLElementTagNameMap;
@@ -12,7 +12,7 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
12
12
  themeVarsDark: import("./ConfigProvider").ThemeVars;
13
13
  themeVarsLight: import("./ConfigProvider").ThemeVars;
14
14
  iconPrefix: StringConstructor;
15
- }, () => 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<{
16
16
  tag: {
17
17
  type: import("vue").PropType<keyof HTMLElementTagNameMap>;
18
18
  default: keyof HTMLElementTagNameMap;
@@ -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);
@@ -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;
@@ -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;