vant 4.0.0-beta.0 → 4.0.0-beta.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 (131) hide show
  1. package/README.md +13 -9
  2. package/changelog.generated.md +191 -150
  3. package/es/badge/Badge.mjs +1 -1
  4. package/es/calendar/Calendar.mjs +3 -4
  5. package/es/collapse/Collapse.d.ts +8 -1
  6. package/es/collapse/Collapse.mjs +28 -1
  7. package/es/collapse/index.d.ts +1 -1
  8. package/es/collapse-item/CollapseItem.mjs +3 -1
  9. package/es/composables/use-global-z-index.d.ts +4 -0
  10. package/es/composables/use-global-z-index.mjs +9 -0
  11. package/es/composables/use-height.d.ts +1 -1
  12. package/es/composables/use-height.mjs +8 -2
  13. package/es/composables/use-lock-scroll.mjs +3 -1
  14. package/es/composables/use-placeholder.mjs +1 -1
  15. package/es/config-provider/ConfigProvider.d.ts +13 -3
  16. package/es/config-provider/ConfigProvider.mjs +25 -9
  17. package/es/config-provider/index.d.ts +8 -2
  18. package/es/dialog/index.css +1 -1
  19. package/es/dropdown-menu/DropdownMenu.mjs +2 -1
  20. package/es/empty/Empty.d.ts +1 -1
  21. package/es/empty/Empty.mjs +281 -16
  22. package/es/field/Field.mjs +4 -1
  23. package/es/field/types.d.ts +1 -0
  24. package/es/field/utils.d.ts +1 -0
  25. package/es/field/utils.mjs +8 -2
  26. package/es/image-preview/ImagePreviewItem.mjs +1 -1
  27. package/es/image-preview/index.css +1 -1
  28. package/es/index-bar/IndexBar.mjs +3 -2
  29. package/es/index.d.ts +2 -1
  30. package/es/index.mjs +4 -1
  31. package/es/list/List.mjs +2 -1
  32. package/es/number-keyboard/NumberKeyboard.mjs +1 -2
  33. package/es/number-keyboard/NumberKeyboardKey.mjs +2 -2
  34. package/es/password-input/PasswordInput.mjs +1 -1
  35. package/es/picker/Picker.d.ts +2 -1
  36. package/es/picker/Picker.mjs +9 -2
  37. package/es/picker/PickerColumn.d.ts +2 -1
  38. package/es/picker/PickerColumn.mjs +5 -4
  39. package/es/picker/index.d.ts +2 -1
  40. package/es/popover/Popover.mjs +28 -27
  41. package/es/popup/Popup.mjs +6 -5
  42. package/es/popup/index.css +1 -1
  43. package/es/pull-refresh/PullRefresh.mjs +7 -3
  44. package/es/rate/Rate.mjs +1 -1
  45. package/es/search/index.css +1 -1
  46. package/es/slider/Slider.mjs +1 -1
  47. package/es/space/Space.d.ts +48 -0
  48. package/es/space/Space.mjs +87 -0
  49. package/es/space/index.css +1 -0
  50. package/es/space/index.d.ts +37 -0
  51. package/es/space/index.mjs +8 -0
  52. package/es/space/style/index.d.ts +1 -0
  53. package/es/space/style/index.mjs +2 -0
  54. package/es/stepper/Stepper.mjs +1 -1
  55. package/es/sticky/Sticky.mjs +2 -1
  56. package/es/swipe/Swipe.mjs +1 -1
  57. package/es/swipe-cell/SwipeCell.mjs +1 -1
  58. package/es/tabs/Tabs.mjs +12 -2
  59. package/es/tabs/TabsContent.mjs +4 -0
  60. package/es/vue-tsx-shim.d.ts +7 -0
  61. package/lib/badge/Badge.js +1 -1
  62. package/lib/calendar/Calendar.js +3 -4
  63. package/lib/collapse/Collapse.d.ts +8 -1
  64. package/lib/collapse/Collapse.js +28 -1
  65. package/lib/collapse/index.d.ts +1 -1
  66. package/lib/collapse-item/CollapseItem.js +3 -1
  67. package/lib/composables/use-global-z-index.d.ts +4 -0
  68. package/lib/composables/use-global-z-index.js +28 -0
  69. package/lib/composables/use-height.d.ts +1 -1
  70. package/lib/composables/use-height.js +8 -2
  71. package/lib/composables/use-lock-scroll.js +3 -1
  72. package/lib/composables/use-placeholder.js +1 -1
  73. package/lib/config-provider/ConfigProvider.d.ts +13 -3
  74. package/lib/config-provider/ConfigProvider.js +23 -7
  75. package/lib/config-provider/index.d.ts +8 -2
  76. package/lib/dialog/index.css +1 -1
  77. package/lib/dropdown-menu/DropdownMenu.js +2 -1
  78. package/lib/empty/Empty.d.ts +1 -1
  79. package/lib/empty/Empty.js +281 -16
  80. package/lib/field/Field.js +3 -0
  81. package/lib/field/types.d.ts +1 -0
  82. package/lib/field/utils.d.ts +1 -0
  83. package/lib/field/utils.js +8 -2
  84. package/lib/image-preview/ImagePreviewItem.js +1 -1
  85. package/lib/image-preview/index.css +1 -1
  86. package/lib/index-bar/IndexBar.js +3 -2
  87. package/lib/index.css +1 -1
  88. package/lib/index.d.ts +2 -1
  89. package/lib/index.js +4 -1
  90. package/lib/list/List.js +2 -1
  91. package/lib/number-keyboard/NumberKeyboard.js +1 -2
  92. package/lib/number-keyboard/NumberKeyboardKey.js +2 -2
  93. package/lib/password-input/PasswordInput.js +1 -1
  94. package/lib/picker/Picker.d.ts +2 -1
  95. package/lib/picker/Picker.js +9 -2
  96. package/lib/picker/PickerColumn.d.ts +2 -1
  97. package/lib/picker/PickerColumn.js +5 -4
  98. package/lib/picker/index.d.ts +2 -1
  99. package/lib/popover/Popover.js +27 -26
  100. package/lib/popup/Popup.js +6 -5
  101. package/lib/popup/index.css +1 -1
  102. package/lib/pull-refresh/PullRefresh.js +6 -2
  103. package/lib/rate/Rate.js +1 -1
  104. package/lib/search/index.css +1 -1
  105. package/lib/slider/Slider.js +1 -1
  106. package/lib/space/Space.d.ts +48 -0
  107. package/lib/space/Space.js +106 -0
  108. package/lib/space/index.css +1 -0
  109. package/lib/space/index.d.ts +37 -0
  110. package/lib/space/index.js +30 -0
  111. package/lib/space/style/index.d.ts +1 -0
  112. package/lib/space/style/index.js +2 -0
  113. package/lib/stepper/Stepper.js +1 -1
  114. package/lib/sticky/Sticky.js +2 -1
  115. package/lib/swipe/Swipe.js +1 -1
  116. package/lib/swipe-cell/SwipeCell.js +1 -1
  117. package/lib/tabs/Tabs.js +12 -2
  118. package/lib/tabs/TabsContent.js +4 -0
  119. package/lib/vant.cjs.js +1332 -1101
  120. package/lib/vant.es.js +1440 -1100
  121. package/lib/vant.js +1285 -1102
  122. package/lib/vant.min.js +1 -1
  123. package/lib/vue-tsx-shim.d.ts +7 -0
  124. package/{vetur → lib}/web-types.json +2304 -2203
  125. package/package.json +6 -11
  126. package/es/empty/Images.d.ts +0 -4
  127. package/es/empty/Images.mjs +0 -271
  128. package/lib/empty/Images.d.ts +0 -4
  129. package/lib/empty/Images.js +0 -290
  130. package/vetur/attributes.json +0 -3530
  131. package/vetur/tags.json +0 -1212
package/README.md CHANGED
@@ -4,14 +4,13 @@
4
4
 
5
5
  <h1 align="center">Vant</h1>
6
6
 
7
- <p align="center">Mobile UI Components built on Vue</p>
7
+ <p align="center">Lightweight Mobile UI Components built on Vue</p>
8
8
 
9
9
  <p align="center">
10
10
  <img src="https://img.shields.io/npm/v/vant?style=flat-square" alt="npm version" />
11
- <img src="https://img.shields.io/github/workflow/status/youzan/vant/CI/dev?style=flat-square" alt="CI Status" />
12
- <img src="https://img.shields.io/codecov/c/github/youzan/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
11
+ <img src="https://img.shields.io/github/workflow/status/vant-ui/vant/CI/dev?style=flat-square" alt="CI Status" />
12
+ <img src="https://img.shields.io/codecov/c/github/vant-ui/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
13
13
  <img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
14
- <img src="https://img.shields.io/jsdelivr/npm/hm/vant?style=flat-square" alt="Jsdelivr Hits">
15
14
  <img src="https://img.badgesize.io/https://unpkg.com/vant@3/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
16
15
  </p>
17
16
 
@@ -29,6 +28,7 @@
29
28
 
30
29
  - 🚀 1KB Component average size (min+gzip)
31
30
  - 🚀 70+ High quality components
31
+ - 🚀 Zero third-party dependencies
32
32
  - 💪 90%+ Unit test coverage
33
33
  - 💪 Written in TypeScript
34
34
  - 📖 Extensive documentation and demos
@@ -67,10 +67,14 @@ pnpm add vant
67
67
 
68
68
  ```js
69
69
  import { createApp } from 'vue';
70
+ // 1. Import the components you need
70
71
  import { Button } from 'vant';
72
+ // 2. Import the components style
71
73
  import 'vant/lib/index.css';
72
74
 
73
75
  const app = createApp();
76
+
77
+ // 3. Register the components you need
74
78
  app.use(Button);
75
79
  ```
76
80
 
@@ -86,11 +90,11 @@ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3)
86
90
 
87
91
  | Project | Description |
88
92
  | --- | --- |
89
- | [vant-weapp](https://github.com/youzan/vant-weapp) | WeChat MiniProgram UI |
93
+ | [vant-weapp](https://github.com/vant-ui/vant-weapp) | WeChat MiniProgram UI |
90
94
  | [vant-demo](https://github.com/vant-ui/vant-demo) | Collection of Vant demos |
91
- | [vant-cli](https://github.com/youzan/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
92
- | [vant-icons](https://github.com/youzan/vant/tree/dev/packages/vant-icons) | Vant icons |
93
- | [vant-touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
95
+ | [vant-cli](https://github.com/vant-ui/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
96
+ | [vant-icons](https://github.com/vant-ui/vant/tree/dev/packages/vant-icons) | Vant icons |
97
+ | [vant-touch-emulator](https://github.com/vant-ui/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
94
98
 
95
99
  ## Community Ecosystem
96
100
 
@@ -128,7 +132,7 @@ Core contributors of Vant and Vant Weapp:
128
132
 
129
133
  Thanks to the following friends for their contributions to Vant:
130
134
 
131
- <a href="https://github.com/youzan/vant/graphs/contributors">
135
+ <a href="https://github.com/vant-ui/vant/graphs/contributors">
132
136
  <img src="https://opencollective.com/vant/contributors.svg?width=890&button=false" alt="contributors">
133
137
  </a>
134
138
 
@@ -1,250 +1,291 @@
1
- ### [v4.0.0-beta.0](https://github.com/youzan/vant/compare/v3.5.2...v4.0.0-beta.0)
1
+ ### [v4.0.0-beta.1](https://github.com/vant-ui/vant/compare/v3.6.0...v4.0.0-beta.1)
2
2
 
3
- `2022-07-16`
3
+ `2022-08-24`
4
4
 
5
5
  **Bug Fixes**
6
6
 
7
- - @vant-cli: compilation error when using setup syntactic sugar and including subcomponents [cb7512](https://github.com/youzan/vant/commit/cb751211f1184a7a36627b45290f84c64d656f5a)
8
- - Uploader: should not preview failed images [#10790](https://github.com/youzan/vant/issues/10790)
7
+ - 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
+
11
+ **Document**
12
+
13
+ - add babel-plugin-import migration guide [#10867](https://github.com/vant-ui/vant/issues/10867)
14
+ - add faq of remove babel-plugin-import [#10942](https://github.com/vant-ui/vant/issues/10942)
15
+ - 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
+ - fix link address in migrate-from-v3.md [#10919](https://github.com/vant-ui/vant/issues/10919)
18
+ - Icon: separate usingUrl demo from basicUsage [#10828](https://github.com/vant-ui/vant/issues/10828)
19
+ - 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
+
22
+ - Restore "fix(Popup&Toast): invalid adaptive width (#10961)" [#10961](https://github.com/vant-ui/vant/issues/10961)
23
+
24
+ **Feature**
25
+
26
+ - ConfigProvider: add theme-vars-dark and theme-vars-light props [#10939](https://github.com/vant-ui/vant/issues/10939)
27
+ - Picker: add clickOption event [#10865](https://github.com/vant-ui/vant/issues/10865)
28
+ - Popup: improve style when position is center [#10965](https://github.com/vant-ui/vant/issues/10965)
29
+
30
+ **perf**
31
+
32
+ - add correct passive flag to improve scroll performance [#10951](https://github.com/vant-ui/vant/issues/10951)
33
+
34
+ **Types**
35
+
36
+ - @vant/use: improve useEventListener typing [#10952](https://github.com/vant-ui/vant/issues/10952)
37
+ ### [v4.0.0-beta.0](https://github.com/vant-ui/vant/compare/v3.5.2...v4.0.0-beta.0)
38
+
39
+ `2022-07-16`
9
40
 
10
41
  **Document**
11
42
 
12
- - changelog: @vant/cli@4.0.3 [#10772](https://github.com/youzan/vant/issues/10772)
13
- - changelog: 4.0.0-alpha.4 [635194](https://github.com/youzan/vant/commit/63519433f12d4b1a17191c83df1dd928f5909542)
14
- - changelog: vant@3.5.2 [e5a3aa](https://github.com/youzan/vant/commit/e5a3aa103dcd087f091d757ad244179ad4a70f42)
15
- - update website domain [#10798](https://github.com/youzan/vant/issues/10798)
43
+ - changelog: 4.0.0-alpha.4 [635194](https://github.com/vant-ui/vant/commit/63519433f12d4b1a17191c83df1dd928f5909542)
16
44
 
17
45
  **Feature**
18
46
 
19
- - add @vant/compat package [#10806](https://github.com/youzan/vant/issues/10806)
20
- - Calendar: expose getSelectedDate method [419a8e](https://github.com/youzan/vant/commit/419a8e4f0e6454b9aac30d5800318deabec099cb)
21
- - cli: support site.headHtml option [#10807](https://github.com/youzan/vant/issues/10807)
47
+ - add @vant/compat package [#10806](https://github.com/vant-ui/vant/issues/10806)
22
48
 
23
49
  **perf**
24
50
 
25
- - cli: improve cli boot time [#10780](https://github.com/youzan/vant/issues/10780)
26
- - cli: replace lint-staged with nano-staged [#10778](https://github.com/youzan/vant/issues/10778)
27
- - cli: replace ora with nanospinner [#10779](https://github.com/youzan/vant/issues/10779)
28
- - remove less source file to remove bundle size [#10752](https://github.com/youzan/vant/issues/10752)
51
+ - remove less source file to remove bundle size [#10752](https://github.com/vant-ui/vant/issues/10752)
29
52
 
30
53
  **refactor**
31
54
 
32
- - Dialog: redesign function-call API [#10781](https://github.com/youzan/vant/issues/10781)
33
- - ImagePreview: redesign function-call API [#10802](https://github.com/youzan/vant/issues/10802)
34
- - Notify: redesign function-call API [#10782](https://github.com/youzan/vant/issues/10782)
35
- - Toast: redesign function-call API [#10804](https://github.com/youzan/vant/issues/10804)
55
+ - Dialog: redesign function-call API [#10781](https://github.com/vant-ui/vant/issues/10781)
56
+ - ImagePreview: redesign function-call API [#10802](https://github.com/vant-ui/vant/issues/10802)
57
+ - Notify: redesign function-call API [#10782](https://github.com/vant-ui/vant/issues/10782)
58
+ - Toast: redesign function-call API [#10804](https://github.com/vant-ui/vant/issues/10804)
36
59
 
37
60
  **release**
38
61
 
39
- - @vant/cli 4.0.3 [e4fc6f](https://github.com/youzan/vant/commit/e4fc6f9081728d3f59ef8d60c18bc5e7fa72d571)
40
- ### [v4.0.0-alpha.4](https://github.com/youzan/vant/compare/v3.5.0-beta.0...v4.0.0-alpha.4)
62
+ - 4.0.0-beta.0 [151427](https://github.com/vant-ui/vant/commit/15142770f226f4e2834c42bf076dfd683a53202d)
63
+ ### [v4.0.0-alpha.4](https://github.com/vant-ui/vant/compare/v3.5.0-beta.0...v4.0.0-alpha.4)
41
64
 
42
65
  `2022-05-31`
43
66
 
44
67
  **Document**
45
68
 
46
- - changelog: 4.0.0-alpha.3 [fe2115](https://github.com/youzan/vant/commit/fe2115ee5c1e86f006858bc930219313afb46747)
69
+ - changelog: 4.0.0-alpha.3 [fe2115](https://github.com/vant-ui/vant/commit/fe2115ee5c1e86f006858bc930219313afb46747)
47
70
 
48
71
  **Feature**
49
72
 
50
- - using mjs extension for esmodule [#10625](https://github.com/youzan/vant/issues/10625)
73
+ - using mjs extension for esmodule [#10625](https://github.com/vant-ui/vant/issues/10625)
51
74
 
52
75
  **release**
53
76
 
54
- - 4.0.0-alpha.4 [1f19fb](https://github.com/youzan/vant/commit/1f19fb0d9f91317e799f4ce8f017f56841dad6e6)
55
- ### [v4.0.0-alpha.3](https://github.com/youzan/vant/compare/v3.4.9...v4.0.0-alpha.3)
77
+ - 4.0.0-alpha.4 [1f19fb](https://github.com/vant-ui/vant/commit/1f19fb0d9f91317e799f4ce8f017f56841dad6e6)
78
+ ### [v4.0.0-alpha.3](https://github.com/vant-ui/vant/compare/v3.4.9...v4.0.0-alpha.3)
56
79
 
57
80
  `2022-05-02`
58
81
 
59
82
  **Bug Fixes**
60
83
 
61
- - Search: style error in dark mode [#10527](https://github.com/youzan/vant/issues/10527)
84
+ - Search: style error in dark mode [#10527](https://github.com/vant-ui/vant/issues/10527)
62
85
 
63
86
  **Document**
64
87
 
65
- - changelog: 4.0.0-alpha.2 [912a5f](https://github.com/youzan/vant/commit/912a5f17b1b429baa063de91c68a8bf6650b1189)
88
+ - changelog: 4.0.0-alpha.2 [912a5f](https://github.com/vant-ui/vant/commit/912a5f17b1b429baa063de91c68a8bf6650b1189)
66
89
 
67
90
  **release**
68
91
 
69
- - 4.0.0-alpha.3 [bc60f5](https://github.com/youzan/vant/commit/bc60f5116bd832c599ec8ba43b58daece4abe280)
70
- ### [v4.0.0-alpha.2](https://github.com/youzan/vant/compare/v3.4.8...v4.0.0-alpha.2)
92
+ - 4.0.0-alpha.3 [bc60f5](https://github.com/vant-ui/vant/commit/bc60f5116bd832c599ec8ba43b58daece4abe280)
93
+ ### [v4.0.0-alpha.2](https://github.com/vant-ui/vant/compare/v3.4.8...v4.0.0-alpha.2)
71
94
 
72
95
  `2022-04-16`
73
96
 
74
97
  **Document**
75
98
 
76
- - changelog: 4.0.0-alpha.1 [5bff9e](https://github.com/youzan/vant/commit/5bff9e8c5ff4716740c7555ef185163569f7576c)
99
+ - changelog: 4.0.0-alpha.1 [5bff9e](https://github.com/vant-ui/vant/commit/5bff9e8c5ff4716740c7555ef185163569f7576c)
77
100
 
78
- - breaking change(AddressEdit): remove postal [e08e98](https://github.com/youzan/vant/commit/e08e9845a29b8d5587f02eff84368e32157678f4)
101
+ - breaking change(AddressEdit): remove postal [e08e98](https://github.com/vant-ui/vant/commit/e08e9845a29b8d5587f02eff84368e32157678f4)
79
102
 
80
103
  **release**
81
104
 
82
- - 4.0.0-alpha.2 [ea57c9](https://github.com/youzan/vant/commit/ea57c9e9ffc10847ac31e1c6b6dac8f81c4abb22)
83
- ### [v4.0.0-alpha.1](https://github.com/youzan/vant/compare/v3.4.6...v4.0.0-alpha.1)
105
+ - 4.0.0-alpha.2 [ea57c9](https://github.com/vant-ui/vant/commit/ea57c9e9ffc10847ac31e1c6b6dac8f81c4abb22)
106
+ ### [v4.0.0-alpha.1](https://github.com/vant-ui/vant/compare/v3.4.6...v4.0.0-alpha.1)
84
107
 
85
108
  `2022-03-19`
86
109
 
87
110
  **Bug Fixes**
88
111
 
89
- - Calendar, Picker: Fix calendar and picker's title color in dark mode [#10403](https://github.com/youzan/vant/issues/10403)
90
- - ConfigProvider: dark mode not work as default value [#10413](https://github.com/youzan/vant/issues/10413)
91
- - DatePicker: failed to update model value [#10415](https://github.com/youzan/vant/issues/10415)
92
- - Dialog: Fix dialog title and message color in dark mode [#10379](https://github.com/youzan/vant/issues/10379)
112
+ - Calendar, Picker: Fix calendar and picker's title color in dark mode [#10403](https://github.com/vant-ui/vant/issues/10403)
113
+ - ConfigProvider: dark mode not work as default value [#10413](https://github.com/vant-ui/vant/issues/10413)
114
+ - DatePicker: failed to update model value [#10415](https://github.com/vant-ui/vant/issues/10415)
115
+ - Dialog: Fix dialog title and message color in dark mode [#10379](https://github.com/vant-ui/vant/issues/10379)
93
116
 
94
117
  **build**
95
118
 
96
- - deploy v4 site [06199f](https://github.com/youzan/vant/commit/06199faf2c170bcd95e6aa49b51d981373ac42a6)
97
- - fix workflow name [992eea](https://github.com/youzan/vant/commit/992eea3eeb8758942d40f9b893d0ff41c296c3ea)
119
+ - deploy v4 site [06199f](https://github.com/vant-ui/vant/commit/06199faf2c170bcd95e6aa49b51d981373ac42a6)
120
+ - fix workflow name [992eea](https://github.com/vant-ui/vant/commit/992eea3eeb8758942d40f9b893d0ff41c296c3ea)
98
121
 
99
122
  **Document**
100
123
 
101
- - DatePicker: fix formatter usage [#10416](https://github.com/youzan/vant/issues/10416)
102
- - fix publicPath [db2e6c](https://github.com/youzan/vant/commit/db2e6ca12f75ee0db3b25cd1f9766f9e74e285f6)
103
- - Picker: add v-model usage [#10417](https://github.com/youzan/vant/issues/10417)
104
- - update [3a1e79](https://github.com/youzan/vant/commit/3a1e792e3151861e0ed780baa67823729db6a8a6)
105
- - update 4.0.0-alpha changelog [#10339](https://github.com/youzan/vant/issues/10339)
124
+ - DatePicker: fix formatter usage [#10416](https://github.com/vant-ui/vant/issues/10416)
125
+ - fix publicPath [db2e6c](https://github.com/vant-ui/vant/commit/db2e6ca12f75ee0db3b25cd1f9766f9e74e285f6)
126
+ - Picker: add v-model usage [#10417](https://github.com/vant-ui/vant/issues/10417)
127
+ - update [3a1e79](https://github.com/vant-ui/vant/commit/3a1e792e3151861e0ed780baa67823729db6a8a6)
128
+ - update 4.0.0-alpha changelog [#10339](https://github.com/vant-ui/vant/issues/10339)
106
129
 
107
130
  **release**
108
131
 
109
- - 4.0.0-alpha.1 [475d10](https://github.com/youzan/vant/commit/475d108ccb0f09dc09269751bd1bc15d1ea2ed0a)
110
- ### [v4.0.0-alpha.0](https://github.com/youzan/vant/compare/v3.4.5...v4.0.0-alpha.0)
132
+ - 4.0.0-alpha.1 [475d10](https://github.com/vant-ui/vant/commit/475d108ccb0f09dc09269751bd1bc15d1ea2ed0a)
133
+ ### [v4.0.0-alpha.0](https://github.com/vant-ui/vant/compare/v3.4.5...v4.0.0-alpha.0)
111
134
 
112
135
  `2022-02-21`
113
136
 
114
137
  **Bug Fixes**
115
138
 
116
- - AddressEdit: selectedOption maybe undefined [3979dd](https://github.com/youzan/vant/commit/3979ddc40af1325f5cc7889c6f0f277ccdb110c9)
117
- - Area: allow to reset modelValue [8d49b8](https://github.com/youzan/vant/commit/8d49b88748c6bd36437628ab0242352dc0ba5159)
118
- - DatePicker: allow modelValue to be empty [980f97](https://github.com/youzan/vant/commit/980f9760112958a2bd5c1e88a410e4c15636658a)
119
- - Picker: currentColumns calculation [113e1b](https://github.com/youzan/vant/commit/113e1b7a6239c3097956e8692cb512e8ccecccb8)
120
- - Picker: error when options is empty [018621](https://github.com/youzan/vant/commit/0186219586b75227bf69ce0e514c3ed94c52e1cc)
121
- - Picker: failed to update modelValue [ff69fd](https://github.com/youzan/vant/commit/ff69fdacc7dd9bcf6bd17c4a493902d027644d92)
122
- - Picker: fix some bugs [22654b](https://github.com/youzan/vant/commit/22654bf518cc21e45cf9ed5e597f5d5e1f411a17)
123
- - Picker: option.className not work [d16075](https://github.com/youzan/vant/commit/d16075f39efbd7aeed4feab08cd4587bc73eb54c)
124
- - Picker: should update modelValue immediately [e61bd4](https://github.com/youzan/vant/commit/e61bd487fa81533a6deb6c8aa52e92a549a000a4)
125
- - Picker: should update selectedValues correctly [2a8bb8](https://github.com/youzan/vant/commit/2a8bb86fbb7d65f9ddc053de8bc3c9c1175d3dff)
126
- - TimePicker: remove columns-order prop [7d22cc](https://github.com/youzan/vant/commit/7d22cc2155bef564ee910498d2f8f319ef601a41)
127
- - TimePicker: should update modelValue immediately [7dae50](https://github.com/youzan/vant/commit/7dae50b0c9809e17448264752de831504f7f084d)
128
- - vant-cli: pnpm compatibility [#10214](https://github.com/youzan/vant/issues/10214)
139
+ - AddressEdit: selectedOption maybe undefined [3979dd](https://github.com/vant-ui/vant/commit/3979ddc40af1325f5cc7889c6f0f277ccdb110c9)
140
+ - Area: allow to reset modelValue [8d49b8](https://github.com/vant-ui/vant/commit/8d49b88748c6bd36437628ab0242352dc0ba5159)
141
+ - DatePicker: allow modelValue to be empty [980f97](https://github.com/vant-ui/vant/commit/980f9760112958a2bd5c1e88a410e4c15636658a)
142
+ - Picker: currentColumns calculation [113e1b](https://github.com/vant-ui/vant/commit/113e1b7a6239c3097956e8692cb512e8ccecccb8)
143
+ - Picker: error when options is empty [018621](https://github.com/vant-ui/vant/commit/0186219586b75227bf69ce0e514c3ed94c52e1cc)
144
+ - Picker: failed to update modelValue [ff69fd](https://github.com/vant-ui/vant/commit/ff69fdacc7dd9bcf6bd17c4a493902d027644d92)
145
+ - Picker: fix some bugs [22654b](https://github.com/vant-ui/vant/commit/22654bf518cc21e45cf9ed5e597f5d5e1f411a17)
146
+ - Picker: option.className not work [d16075](https://github.com/vant-ui/vant/commit/d16075f39efbd7aeed4feab08cd4587bc73eb54c)
147
+ - Picker: should update modelValue immediately [e61bd4](https://github.com/vant-ui/vant/commit/e61bd487fa81533a6deb6c8aa52e92a549a000a4)
148
+ - Picker: should update selectedValues correctly [2a8bb8](https://github.com/vant-ui/vant/commit/2a8bb86fbb7d65f9ddc053de8bc3c9c1175d3dff)
149
+ - TimePicker: remove columns-order prop [7d22cc](https://github.com/vant-ui/vant/commit/7d22cc2155bef564ee910498d2f8f319ef601a41)
150
+ - TimePicker: should update modelValue immediately [7dae50](https://github.com/vant-ui/vant/commit/7dae50b0c9809e17448264752de831504f7f084d)
151
+ - vant-cli: pnpm compatibility [#10214](https://github.com/vant-ui/vant/issues/10214)
129
152
 
130
153
  **Document**
131
154
 
132
- - @vant/cli: changelog 4.0.0-rc.6 [fda3f1](https://github.com/youzan/vant/commit/fda3f1be9403c68bcc734ae08c760af3d0df6fa1)
133
- - Area: update documents [a9baa3](https://github.com/youzan/vant/commit/a9baa3b2d188a16637acc1051fb554142408315b)
134
- - dark mode [d4584a](https://github.com/youzan/vant/commit/d4584aafda247ad4d520afc063cd6a74f8d7ee4c)
135
- - DatePicker: fix currentDate of year-month [c942ef](https://github.com/youzan/vant/commit/c942efb76b53885a66de5291c86ca1160713cfb3)
136
- - docsearch version v4 [15e746](https://github.com/youzan/vant/commit/15e7461a93a32c7a0e43e46955adc45d845bc064)
137
- - Form: fix demo [7deba8](https://github.com/youzan/vant/commit/7deba88b918f74d68b7880621983f2ad2d8eb549)
138
- - Form: fix Picker demo [9cfef0](https://github.com/youzan/vant/commit/9cfef027aa787ed85566a7ce23beb8c2e8bffba1)
139
- - Picker: new document [cc10eb](https://github.com/youzan/vant/commit/cc10eb1f2adddc5a6d34336669b85a8a571c1803)
140
- - Picker: update demo [ceaab3](https://github.com/youzan/vant/commit/ceaab349f177d0280d15f66686890dc092434b80)
141
- - update migration guide [d68053](https://github.com/youzan/vant/commit/d68053ea7f469953a8e81819e4aeb47ab169124f)
142
- - update migration guide [f436b5](https://github.com/youzan/vant/commit/f436b5ae09af3f3ff8a5d21105ad0ff85cd48ff7)
143
- - update v4 migration guide [6c24fa](https://github.com/youzan/vant/commit/6c24fa728ee078419cbd7b8efcd35b3b70021208)
144
- - update Vant 4 [2ceb68](https://github.com/youzan/vant/commit/2ceb68e691440b49394ea05a82912f1e972146dd)
145
-
146
- - breaking change(AddressEdit): adjust change-area event params [b3cf1d](https://github.com/youzan/vant/commit/b3cf1dfb54f04af08011d2b9930fd725856d153a)
147
- - breaking change: event name become camelCase [8ca974](https://github.com/youzan/vant/commit/8ca9741845cc7f5c73c23bb81c98ec2802971e27)
148
- - breaking change: shorter css var names [7d6916](https://github.com/youzan/vant/commit/7d6916b946440fdd7fb3e0bd4c1117c989d74a93)
149
- - breaking change: no longer support less vars [ada5db](https://github.com/youzan/vant/commit/ada5db011c676893a2917b9424be1aeafe54134b)
150
- - breaking change(Tabs): remove click、disabled event [099141](https://github.com/youzan/vant/commit/099141f6c5b0e43c7e3ceeae98ee7e6e512212d6)
151
- - breaking change(Picker): remove default slot、value-key prop [6a4033](https://github.com/youzan/vant/commit/6a4033b6bc72c38ff103c16e039ecd73ccacd4df)
155
+ - @vant/cli: changelog 4.0.0-rc.6 [fda3f1](https://github.com/vant-ui/vant/commit/fda3f1be9403c68bcc734ae08c760af3d0df6fa1)
156
+ - Area: update documents [a9baa3](https://github.com/vant-ui/vant/commit/a9baa3b2d188a16637acc1051fb554142408315b)
157
+ - dark mode [d4584a](https://github.com/vant-ui/vant/commit/d4584aafda247ad4d520afc063cd6a74f8d7ee4c)
158
+ - DatePicker: fix currentDate of year-month [c942ef](https://github.com/vant-ui/vant/commit/c942efb76b53885a66de5291c86ca1160713cfb3)
159
+ - docsearch version v4 [15e746](https://github.com/vant-ui/vant/commit/15e7461a93a32c7a0e43e46955adc45d845bc064)
160
+ - Form: fix demo [7deba8](https://github.com/vant-ui/vant/commit/7deba88b918f74d68b7880621983f2ad2d8eb549)
161
+ - Form: fix Picker demo [9cfef0](https://github.com/vant-ui/vant/commit/9cfef027aa787ed85566a7ce23beb8c2e8bffba1)
162
+ - Picker: new document [cc10eb](https://github.com/vant-ui/vant/commit/cc10eb1f2adddc5a6d34336669b85a8a571c1803)
163
+ - Picker: update demo [ceaab3](https://github.com/vant-ui/vant/commit/ceaab349f177d0280d15f66686890dc092434b80)
164
+ - update migration guide [d68053](https://github.com/vant-ui/vant/commit/d68053ea7f469953a8e81819e4aeb47ab169124f)
165
+ - update migration guide [f436b5](https://github.com/vant-ui/vant/commit/f436b5ae09af3f3ff8a5d21105ad0ff85cd48ff7)
166
+ - update v4 migration guide [6c24fa](https://github.com/vant-ui/vant/commit/6c24fa728ee078419cbd7b8efcd35b3b70021208)
167
+ - update Vant 4 [2ceb68](https://github.com/vant-ui/vant/commit/2ceb68e691440b49394ea05a82912f1e972146dd)
168
+
169
+ - breaking change(AddressEdit): adjust change-area event params [b3cf1d](https://github.com/vant-ui/vant/commit/b3cf1dfb54f04af08011d2b9930fd725856d153a)
170
+ - breaking change: event name become camelCase [8ca974](https://github.com/vant-ui/vant/commit/8ca9741845cc7f5c73c23bb81c98ec2802971e27)
171
+ - breaking change: shorter css var names [7d6916](https://github.com/vant-ui/vant/commit/7d6916b946440fdd7fb3e0bd4c1117c989d74a93)
172
+ - breaking change: no longer support less vars [ada5db](https://github.com/vant-ui/vant/commit/ada5db011c676893a2917b9424be1aeafe54134b)
173
+ - breaking change(Tabs): remove click、disabled event [099141](https://github.com/vant-ui/vant/commit/099141f6c5b0e43c7e3ceeae98ee7e6e512212d6)
174
+ - breaking change(Picker): remove default slot、value-key prop [6a4033](https://github.com/vant-ui/vant/commit/6a4033b6bc72c38ff103c16e039ecd73ccacd4df)
152
175
 
153
176
  **Feature**
154
177
 
155
- - @vant/cli: desktop site support dark mode [35a990](https://github.com/youzan/vant/commit/35a990ed65500311cbcafae506780dc6d3fb49fa)
156
- - @vant/cli: mobile site support dark mode [df24a3](https://github.com/youzan/vant/commit/df24a3b6834e4b9439580498f9c4a7448f7ca7c2)
157
- - ActionBar: update icon text color [650bdd](https://github.com/youzan/vant/commit/650bdd22941d9119d8a78f1ffc37d8562c68f9a1)
158
- - add dark mode basic variables [73322f](https://github.com/youzan/vant/commit/73322fd310849f53bf6f9e5bc508991c770af620)
159
- - Area: add getSelectedOptions method [35a500](https://github.com/youzan/vant/commit/35a50012c76495119a44efa2cfc231f8b1921f40)
160
- - ConfigProvider: add theme prop [f95734](https://github.com/youzan/vant/commit/f9573402a79d2de0abcfb43f6cbcf4c7e7e8c64f)
161
- - ConfigProvider: dark theme class [97b074](https://github.com/youzan/vant/commit/97b074ad0c3d8f25b9281120444901128bfdc5a1)
162
- - DatePicker: date columns calculation [e8ffc8](https://github.com/youzan/vant/commit/e8ffc80dc65a9a09e342a97d9314c498e8e78264)
163
- - Picker: add getSelectedOptions method [83295e](https://github.com/youzan/vant/commit/83295e655da9ae2debbf2e7472753517d5b5241d)
164
- - TimePicker: support select second [2e053a](https://github.com/youzan/vant/commit/2e053ad76bf254fbe14cee2b3c3d2dc7766c9462)
178
+ - @vant/cli: desktop site support dark mode [35a990](https://github.com/vant-ui/vant/commit/35a990ed65500311cbcafae506780dc6d3fb49fa)
179
+ - @vant/cli: mobile site support dark mode [df24a3](https://github.com/vant-ui/vant/commit/df24a3b6834e4b9439580498f9c4a7448f7ca7c2)
180
+ - ActionBar: update icon text color [650bdd](https://github.com/vant-ui/vant/commit/650bdd22941d9119d8a78f1ffc37d8562c68f9a1)
181
+ - add dark mode basic variables [73322f](https://github.com/vant-ui/vant/commit/73322fd310849f53bf6f9e5bc508991c770af620)
182
+ - Area: add getSelectedOptions method [35a500](https://github.com/vant-ui/vant/commit/35a50012c76495119a44efa2cfc231f8b1921f40)
183
+ - ConfigProvider: add theme prop [f95734](https://github.com/vant-ui/vant/commit/f9573402a79d2de0abcfb43f6cbcf4c7e7e8c64f)
184
+ - ConfigProvider: dark theme class [97b074](https://github.com/vant-ui/vant/commit/97b074ad0c3d8f25b9281120444901128bfdc5a1)
185
+ - DatePicker: date columns calculation [e8ffc8](https://github.com/vant-ui/vant/commit/e8ffc80dc65a9a09e342a97d9314c498e8e78264)
186
+ - Picker: add getSelectedOptions method [83295e](https://github.com/vant-ui/vant/commit/83295e655da9ae2debbf2e7472753517d5b5241d)
187
+ - TimePicker: support select second [2e053a](https://github.com/vant-ui/vant/commit/2e053ad76bf254fbe14cee2b3c3d2dc7766c9462)
165
188
 
166
189
  **refactor**
167
190
 
168
- - Area component [cca428](https://github.com/youzan/vant/commit/cca428aac63da792e8de8f3f6f76d164cab46cb6)
169
- - attach css variables to body element [541458](https://github.com/youzan/vant/commit/541458c41b69e3bc977aa39a0e91be2b2d91883a)
170
- - DatePicker Component [5b4075](https://github.com/youzan/vant/commit/5b407566db61d2ff7e6512ca8f82f39111d8da0f)
171
- - DatePicker: v-model now is string array [ef8e66](https://github.com/youzan/vant/commit/ef8e66a9244606899339c7153ec2d66406afbf81)
172
- - Picker: data driven [89b029](https://github.com/youzan/vant/commit/89b029aa42400b2570b7676b881f6311abe42352)
173
- - Picker: rename item-height to option-height [c06141](https://github.com/youzan/vant/commit/c061412138e41a07a87110692621517eac814428)
174
- - rename --van-background-light to --van-background-2 [98b999](https://github.com/youzan/vant/commit/98b999d911c41ac1a73e6ef375b4966befe69b20)
175
- - TimePicker component [42d1dd](https://github.com/youzan/vant/commit/42d1dd836c141f499343aa6a8278d1b3be4953ac)
176
- - TimePicker: modelValue now is string array [fdcf99](https://github.com/youzan/vant/commit/fdcf9931bed3da6f1faedff99f3a6b8202d75691)
191
+ - Area component [cca428](https://github.com/vant-ui/vant/commit/cca428aac63da792e8de8f3f6f76d164cab46cb6)
192
+ - attach css variables to body element [541458](https://github.com/vant-ui/vant/commit/541458c41b69e3bc977aa39a0e91be2b2d91883a)
193
+ - DatePicker Component [5b4075](https://github.com/vant-ui/vant/commit/5b407566db61d2ff7e6512ca8f82f39111d8da0f)
194
+ - DatePicker: v-model now is string array [ef8e66](https://github.com/vant-ui/vant/commit/ef8e66a9244606899339c7153ec2d66406afbf81)
195
+ - Picker: data driven [89b029](https://github.com/vant-ui/vant/commit/89b029aa42400b2570b7676b881f6311abe42352)
196
+ - Picker: rename item-height to option-height [c06141](https://github.com/vant-ui/vant/commit/c061412138e41a07a87110692621517eac814428)
197
+ - rename --van-background-light to --van-background-2 [98b999](https://github.com/vant-ui/vant/commit/98b999d911c41ac1a73e6ef375b4966befe69b20)
198
+ - TimePicker component [42d1dd](https://github.com/vant-ui/vant/commit/42d1dd836c141f499343aa6a8278d1b3be4953ac)
199
+ - TimePicker: modelValue now is string array [fdcf99](https://github.com/vant-ui/vant/commit/fdcf9931bed3da6f1faedff99f3a6b8202d75691)
177
200
 
178
201
  **release**
179
202
 
180
- - @vant/cli 4.0.0-rc.6 [e93ae7](https://github.com/youzan/vant/commit/e93ae7b430afac7f431af23e334eaf0bf17a9e9d)
181
- - 4.0.0-alpha.0 [c20664](https://github.com/youzan/vant/commit/c206642d2d6771b681c369653228ec692fd28754)
203
+ - @vant/cli 4.0.0-rc.6 [e93ae7](https://github.com/vant-ui/vant/commit/e93ae7b430afac7f431af23e334eaf0bf17a9e9d)
204
+ - 4.0.0-alpha.0 [c20664](https://github.com/vant-ui/vant/commit/c206642d2d6771b681c369653228ec692fd28754)
182
205
 
183
206
  **style**
184
207
 
185
- - @vant/cli: adjust css vars [b6fcd3](https://github.com/youzan/vant/commit/b6fcd32dcf201703d32ee4ce70d6147b4c4605ef)
186
- - @vant/cli: improve demo style in dark mode [0e8e32](https://github.com/youzan/vant/commit/0e8e3200a2f3fbdfd46f324d89ae05a38680f421)
187
- - @vant/cli: improve mobile style in dark mode [f5c32c](https://github.com/youzan/vant/commit/f5c32c29f115ef072a20ff736732a1c66557f992)
188
- - AddressEdit: submit button using primary type [c65d4f](https://github.com/youzan/vant/commit/c65d4f96727059d19ad7bb014b53d679754bd512)
189
- - AddressList: using primary color [fcd91c](https://github.com/youzan/vant/commit/fcd91cb0b03ade0def49928bdd2ec2ea652f4408)
190
- - Button: adjust font-smoothing [bda361](https://github.com/youzan/vant/commit/bda3617d14f3e93f04748915bb595467c1696945)
191
- - Button: increase default border radius from 2px to 4px [d86771](https://github.com/youzan/vant/commit/d867710cc9ca273dbf6c1d4edc568f57e5806243)
192
- - Button: update default button border color [bd2428](https://github.com/youzan/vant/commit/bd24288a12b38fecafc6302f1216587e7a6710fb)
193
- - Calendar: using primary color by default [4e89e8](https://github.com/youzan/vant/commit/4e89e88845adba1af3a6a6db19d8df7cae6aa9fb)
194
- - Card: blue tag [369201](https://github.com/youzan/vant/commit/3692014070beb9d3187106803e742b28ab0b3310)
195
- - Card: improve card mode style [cb2d99](https://github.com/youzan/vant/commit/cb2d99c8cf7abde3e08df79085f13a21c47c9bc7)
196
- - Cascader: using primary color by default [84b90b](https://github.com/youzan/vant/commit/84b90b1f4c9e52c9638426e79a269d53801cc0b1)
197
- - Cell: remove value aline style [0a7b53](https://github.com/youzan/vant/commit/0a7b53553364691e11af6906b5d22dee8e570cce)
198
- - ContactEdit: adjust submit button [43ae30](https://github.com/youzan/vant/commit/43ae30026adf98b076ec26c3214c24387cb63082)
199
- - ContactList: using primary color [d39f6a](https://github.com/youzan/vant/commit/d39f6a898afa4c5bbd5ef33035e42f656b0ec6f7)
200
- - CouponList: change default color [85c5ad](https://github.com/youzan/vant/commit/85c5ad671868b7156968b681a00b147a57504c84)
201
- - CouponList: update field background color in dark mode [82e0e4](https://github.com/youzan/vant/commit/82e0e454d0de31d5a1a68a17a6e566d42ba86d74)
202
- - DropdownMenu: using primary color by default [37e7c6](https://github.com/youzan/vant/commit/37e7c618b82527616d9f988f3249dda347eb7923)
203
- - Field: adjust label color [8e98e9](https://github.com/youzan/vant/commit/8e98e9744939003f1679b465ccd5124539a99f36)
204
- - GridItem: adust text color [42f03f](https://github.com/youzan/vant/commit/42f03fe1a241ff5311e9fe6696fb614b225faa72)
205
- - increase font-weight bold [bef919](https://github.com/youzan/vant/commit/bef919c7f011bffdb31bad1ca085df5be24679f4)
206
- - IndexBar: increase font weight of active index [d6e80e](https://github.com/youzan/vant/commit/d6e80e8954931927808c7fabf37473db35e8730b)
207
- - IndexBar: using primary color by default [8b95db](https://github.com/youzan/vant/commit/8b95db15746bbf02a9091c8e604c9bb3884148b0)
208
- - Sidebar: using primary color by default [eeb233](https://github.com/youzan/vant/commit/eeb233bf990a598282c21559520415a64a237179)
209
- - Slider: improve dark mode color [fc2847](https://github.com/youzan/vant/commit/fc2847fdb442f3a5c5f1e26cc14858e136a86b3c)
210
- - Stepper: using primary color by default [41b1cd](https://github.com/youzan/vant/commit/41b1cd71854514404c6a601ee22586a9ae243ee3)
211
- - Steps: update default button border color [5a1566](https://github.com/youzan/vant/commit/5a15660c77082d814da2b68527136994ab9112f8)
212
- - Switch: adjust style [2acd47](https://github.com/youzan/vant/commit/2acd47b5ee251d1af729c44b8516a4cc0fa06d44)
213
- - Switch: adjust width [73788f](https://github.com/youzan/vant/commit/73788f9e88beba576d2599a939caa4b4970b396f)
214
- - Tabbar: adjust text color [39b51d](https://github.com/youzan/vant/commit/39b51d5dae7e9c0ab1e5fb03a868a06cdbf6b269)
215
- - Tabs: using primary color by default [3b10d6](https://github.com/youzan/vant/commit/3b10d66bb92869d03b7af8228bfd1b1e0361a033)
216
- - TreeSelect: using primary color [cce3ce](https://github.com/youzan/vant/commit/cce3ceb5b68e445d0b9ea94f91d6b46246444b36)
217
- - update van doc background [5b3c4f](https://github.com/youzan/vant/commit/5b3c4f15468428c29dcd7cc43ca5a82831b6f87a)
208
+ - @vant/cli: adjust css vars [b6fcd3](https://github.com/vant-ui/vant/commit/b6fcd32dcf201703d32ee4ce70d6147b4c4605ef)
209
+ - @vant/cli: improve demo style in dark mode [0e8e32](https://github.com/vant-ui/vant/commit/0e8e3200a2f3fbdfd46f324d89ae05a38680f421)
210
+ - @vant/cli: improve mobile style in dark mode [f5c32c](https://github.com/vant-ui/vant/commit/f5c32c29f115ef072a20ff736732a1c66557f992)
211
+ - AddressEdit: submit button using primary type [c65d4f](https://github.com/vant-ui/vant/commit/c65d4f96727059d19ad7bb014b53d679754bd512)
212
+ - AddressList: using primary color [fcd91c](https://github.com/vant-ui/vant/commit/fcd91cb0b03ade0def49928bdd2ec2ea652f4408)
213
+ - Button: adjust font-smoothing [bda361](https://github.com/vant-ui/vant/commit/bda3617d14f3e93f04748915bb595467c1696945)
214
+ - Button: increase default border radius from 2px to 4px [d86771](https://github.com/vant-ui/vant/commit/d867710cc9ca273dbf6c1d4edc568f57e5806243)
215
+ - Button: update default button border color [bd2428](https://github.com/vant-ui/vant/commit/bd24288a12b38fecafc6302f1216587e7a6710fb)
216
+ - Calendar: using primary color by default [4e89e8](https://github.com/vant-ui/vant/commit/4e89e88845adba1af3a6a6db19d8df7cae6aa9fb)
217
+ - Card: blue tag [369201](https://github.com/vant-ui/vant/commit/3692014070beb9d3187106803e742b28ab0b3310)
218
+ - Card: improve card mode style [cb2d99](https://github.com/vant-ui/vant/commit/cb2d99c8cf7abde3e08df79085f13a21c47c9bc7)
219
+ - Cascader: using primary color by default [84b90b](https://github.com/vant-ui/vant/commit/84b90b1f4c9e52c9638426e79a269d53801cc0b1)
220
+ - Cell: remove value aline style [0a7b53](https://github.com/vant-ui/vant/commit/0a7b53553364691e11af6906b5d22dee8e570cce)
221
+ - ContactEdit: adjust submit button [43ae30](https://github.com/vant-ui/vant/commit/43ae30026adf98b076ec26c3214c24387cb63082)
222
+ - ContactList: using primary color [d39f6a](https://github.com/vant-ui/vant/commit/d39f6a898afa4c5bbd5ef33035e42f656b0ec6f7)
223
+ - CouponList: change default color [85c5ad](https://github.com/vant-ui/vant/commit/85c5ad671868b7156968b681a00b147a57504c84)
224
+ - CouponList: update field background color in dark mode [82e0e4](https://github.com/vant-ui/vant/commit/82e0e454d0de31d5a1a68a17a6e566d42ba86d74)
225
+ - DropdownMenu: using primary color by default [37e7c6](https://github.com/vant-ui/vant/commit/37e7c618b82527616d9f988f3249dda347eb7923)
226
+ - Field: adjust label color [8e98e9](https://github.com/vant-ui/vant/commit/8e98e9744939003f1679b465ccd5124539a99f36)
227
+ - GridItem: adust text color [42f03f](https://github.com/vant-ui/vant/commit/42f03fe1a241ff5311e9fe6696fb614b225faa72)
228
+ - increase font-weight bold [bef919](https://github.com/vant-ui/vant/commit/bef919c7f011bffdb31bad1ca085df5be24679f4)
229
+ - IndexBar: increase font weight of active index [d6e80e](https://github.com/vant-ui/vant/commit/d6e80e8954931927808c7fabf37473db35e8730b)
230
+ - IndexBar: using primary color by default [8b95db](https://github.com/vant-ui/vant/commit/8b95db15746bbf02a9091c8e604c9bb3884148b0)
231
+ - Sidebar: using primary color by default [eeb233](https://github.com/vant-ui/vant/commit/eeb233bf990a598282c21559520415a64a237179)
232
+ - Slider: improve dark mode color [fc2847](https://github.com/vant-ui/vant/commit/fc2847fdb442f3a5c5f1e26cc14858e136a86b3c)
233
+ - Stepper: using primary color by default [41b1cd](https://github.com/vant-ui/vant/commit/41b1cd71854514404c6a601ee22586a9ae243ee3)
234
+ - Steps: update default button border color [5a1566](https://github.com/vant-ui/vant/commit/5a15660c77082d814da2b68527136994ab9112f8)
235
+ - Switch: adjust style [2acd47](https://github.com/vant-ui/vant/commit/2acd47b5ee251d1af729c44b8516a4cc0fa06d44)
236
+ - Switch: adjust width [73788f](https://github.com/vant-ui/vant/commit/73788f9e88beba576d2599a939caa4b4970b396f)
237
+ - Tabbar: adjust text color [39b51d](https://github.com/vant-ui/vant/commit/39b51d5dae7e9c0ab1e5fb03a868a06cdbf6b269)
238
+ - Tabs: using primary color by default [3b10d6](https://github.com/vant-ui/vant/commit/3b10d66bb92869d03b7af8228bfd1b1e0361a033)
239
+ - TreeSelect: using primary color [cce3ce](https://github.com/vant-ui/vant/commit/cce3ceb5b68e445d0b9ea94f91d6b46246444b36)
240
+ - update van doc background [5b3c4f](https://github.com/vant-ui/vant/commit/5b3c4f15468428c29dcd7cc43ca5a82831b6f87a)
218
241
 
219
242
  **Types**
220
243
 
221
- - AddressEdit: SearchItem optional [27c46b](https://github.com/youzan/vant/commit/27c46b01ae391f7c26430ea258181d1f534511a0)
222
- - DatePicker: export DatePickerColumnType [829db0](https://github.com/youzan/vant/commit/829db06d5b2576e2024a280bd10ba1fa3f17f25c)
223
- - Picker: fix columns prop typing [6c64bc](https://github.com/youzan/vant/commit/6c64bc33c1ba537b7951dcbc02d6deec3aaab093)
224
- - Picker: fix return type of getSelectedOptions [967cb5](https://github.com/youzan/vant/commit/967cb56c181cc145189a868f49c4666a75f85b00)
225
- - TimePicker: export TimePickerColumnType [b608fb](https://github.com/youzan/vant/commit/b608fb23f031cf09a474039cd9cd23f8bc7811d3)
226
- ### [v3.5.2](https://github.com/youzan/vant/compare/v3.5.1...v3.5.2)
244
+ - AddressEdit: SearchItem optional [27c46b](https://github.com/vant-ui/vant/commit/27c46b01ae391f7c26430ea258181d1f534511a0)
245
+ - DatePicker: export DatePickerColumnType [829db0](https://github.com/vant-ui/vant/commit/829db06d5b2576e2024a280bd10ba1fa3f17f25c)
246
+ - Picker: fix columns prop typing [6c64bc](https://github.com/vant-ui/vant/commit/6c64bc33c1ba537b7951dcbc02d6deec3aaab093)
247
+ - Picker: fix return type of getSelectedOptions [967cb5](https://github.com/vant-ui/vant/commit/967cb56c181cc145189a868f49c4666a75f85b00)
248
+ - 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)
227
250
 
228
- `2022-06-26`
251
+ `2022-08-21`
229
252
 
230
253
  **Bug Fixes**
231
254
 
232
- - List: element with `overflow: overlay` style should be considered a scroll container [#10743](https://github.com/youzan/vant/issues/10743)
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)
233
264
 
234
265
  **Document**
235
266
 
236
- - add guide of function component style [#10728](https://github.com/youzan/vant/issues/10728)
237
- - changelog: 3.5.1 [ffefe3](https://github.com/youzan/vant/commit/ffefe3002f674f644b90f8fdfb04dc004a3a8c4f)
238
- - Switch: fix custom node demo [#10720](https://github.com/youzan/vant/issues/10720)
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)
239
276
 
240
277
  **Feature**
241
278
 
242
- - ActionBar: add placeholder prop [#10724](https://github.com/youzan/vant/issues/10724)
243
- - cli: add build.bundleOptions config [#10751](https://github.com/youzan/vant/issues/10751)
244
- - cli: add css.removeSourceFile config [#10750](https://github.com/youzan/vant/issues/10750)
245
- - Field: add start-validate and end-validate event [#10726](https://github.com/youzan/vant/issues/10726)
246
- - SubmitBar: add placeholder prop [#10725](https://github.com/youzan/vant/issues/10725)
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)
247
286
 
248
287
  **release**
249
288
 
250
- - 3.5.2 [52957e](https://github.com/youzan/vant/commit/52957ec244f2e33fff7768c1a52e29fc6589019d)
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)
@@ -26,7 +26,7 @@ var stdin_default = defineComponent({
26
26
  content,
27
27
  showZero
28
28
  } = props;
29
- return isDef(content) && content !== "" && (showZero || content !== 0);
29
+ return isDef(content) && content !== "" && (showZero || content !== 0 && content !== "0");
30
30
  };
31
31
  const renderContent = () => {
32
32
  const {
@@ -112,9 +112,6 @@ var stdin_default = defineComponent({
112
112
  const months = computed(() => {
113
113
  const months2 = [];
114
114
  const cursor = new Date(props.minDate);
115
- if (props.lazyRender && !props.show && props.poppable) {
116
- return months2;
117
- }
118
115
  cursor.setDate(1);
119
116
  do {
120
117
  months2.push(new Date(cursor));
@@ -192,7 +189,9 @@ var stdin_default = defineComponent({
192
189
  }
193
190
  if (currentDate.value) {
194
191
  const targetDate = props.type === "single" ? currentDate.value : currentDate.value[0];
195
- scrollToDate(targetDate);
192
+ if (isDate(targetDate)) {
193
+ scrollToDate(targetDate);
194
+ }
196
195
  } else {
197
196
  raf(onScroll);
198
197
  }
@@ -1,9 +1,13 @@
1
- import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
1
+ import { type PropType, type InjectionKey, type ExtractPropTypes, type ComponentPublicInstance } from 'vue';
2
2
  import { type Numeric } from '../utils';
3
3
  export declare type CollapseProvide = {
4
4
  toggle: (name: Numeric, expanded: boolean) => void;
5
5
  isExpanded: (name: Numeric) => boolean;
6
6
  };
7
+ export declare type CollapseToggleAllOptions = boolean | {
8
+ expanded?: boolean;
9
+ skipDisabled?: boolean;
10
+ };
7
11
  export declare const COLLAPSE_KEY: InjectionKey<CollapseProvide>;
8
12
  declare const collapseProps: {
9
13
  border: {
@@ -17,6 +21,9 @@ declare const collapseProps: {
17
21
  };
18
22
  };
19
23
  export declare type CollapseProps = ExtractPropTypes<typeof collapseProps>;
24
+ export declare type CollapseInstance = ComponentPublicInstance<{
25
+ toggleAll: (options?: boolean | CollapseToggleAllOptions) => void;
26
+ }>;
20
27
  declare const _default: import("vue").DefineComponent<{
21
28
  border: {
22
29
  type: BooleanConstructor;