diff --git a/docs/markdown/changelog.en-US.md b/docs/markdown/changelog.en-US.md
index 99506c4fa..6bce8f68c 100644
--- a/docs/markdown/changelog.en-US.md
+++ b/docs/markdown/changelog.en-US.md
@@ -1,6 +1,6 @@
-## Changelog
+# Changelog
-## [v1.6.18](https://github.com/youzan/vant/tree/v1.6.18)
+### [v1.6.18](https://github.com/youzan/vant/tree/v1.6.18)
`2019-05-10`
**Bug Fixes**
@@ -13,7 +13,7 @@
- fix Swipe map cause warning when prevent touchmove event
-## [1.6.17](https://github.com/youzan/vant/tree/v1.6.17)
+### [v1.6.17](https://github.com/youzan/vant/tree/v1.6.17)
`2019-05-05`
**Improvements**
@@ -31,7 +31,7 @@
- fix Popup click-overlay event triggered twice when show multiple popup
-## [v1.6.16](https://github.com/youzan/vant/tree/v1.6.16)
+### [v1.6.16](https://github.com/youzan/vant/tree/v1.6.16)
`2019-04-26`
**Improvements**
@@ -50,7 +50,7 @@
- fix Slider drag and `value` props change at the same time can not drag success [\#3206](https://github.com/youzan/vant/pull/3206)
-## [v1.6.15](https://github.com/youzan/vant/tree/v1.6.15)
+### [v1.6.15](https://github.com/youzan/vant/tree/v1.6.15)
`2019-04-19`
**Improvements**
@@ -75,7 +75,7 @@
- fix Toast should add z-index if previous toast has not disappeared [\#3153](https://github.com/youzan/vant/pull/3153)
-## [v1.6.14](https://github.com/youzan/vant/tree/v1.6.14)
+### [v1.6.14](https://github.com/youzan/vant/tree/v1.6.14)
`2019-04-13`
**Improvements**
@@ -98,7 +98,7 @@
- fix Dialog may render error when use getContainer [\#3111](https://github.com/youzan/vant/pull/3111)
-## [v1.6.13](https://github.com/youzan/vant/tree/v1.6.13)
+### [v1.6.13](https://github.com/youzan/vant/tree/v1.6.13)
`2019-04-06`
**Improvements**
@@ -115,7 +115,7 @@
- fix Tab should set line position when activated [\#3097](https://github.com/youzan/vant/pull/3097)
-## [v1.6.12](https://github.com/youzan/vant/tree/v1.6.12)
+### [v1.6.12](https://github.com/youzan/vant/tree/v1.6.12)
`2019-03-28`
**Improvements**
@@ -129,7 +129,7 @@
- fix Button square prop not work when use hairline [\#3058](https://github.com/youzan/vant/pull/3058)
-## [v1.6.11](https://github.com/youzan/vant/tree/v1.6.11)
+### [v1.6.11](https://github.com/youzan/vant/tree/v1.6.11)
`2019-03-22`
**Improvements**
@@ -154,7 +154,7 @@
- fix Collapse can not expand when clientHeight equals zero [\#2993](https://github.com/youzan/vant/pull/2993)
-## [v1.6.10](https://github.com/youzan/vant/tree/v1.6.10)
+### [v1.6.10](https://github.com/youzan/vant/tree/v1.6.10)
`2019-03-17`
**Improvements**
@@ -172,7 +172,7 @@
- fix Uploader can not upload same file when before-read [\#2971](https://github.com/youzan/vant/pull/2971)
-## [v1.6.9](https://github.com/youzan/vant/tree/v1.6.9)
+### [v1.6.9](https://github.com/youzan/vant/tree/v1.6.9)
`2019-03-11`
**Improvements**
@@ -191,7 +191,7 @@
- fix Swipe emit change event in correct time [\#2909](https://github.com/youzan/vant/pull/2909)
-## [v1.6.8](https://github.com/youzan/vant/tree/v1.6.8)
+### [v1.6.8](https://github.com/youzan/vant/tree/v1.6.8)
`2019-03-02`
**Improvements**
@@ -207,7 +207,7 @@
- fix Tab scroll to correct position when use offset-top [\#2873](https://github.com/youzan/vant/pull/2873)
-## [v1.6.7](https://github.com/youzan/vant/tree/v1.6.7)
+### [v1.6.7](https://github.com/youzan/vant/tree/v1.6.7)
`2019-02-26`
**Improvements**
@@ -226,7 +226,7 @@
- fix CouponList incorrectly render when disabled list empty [\#2845](https://github.com/youzan/vant/pull/2845)
-## [v1.6.6](https://github.com/youzan/vant/tree/v1.6.6)
+### [v1.6.6](https://github.com/youzan/vant/tree/v1.6.6)
`2019-02-24`
**Improvements**
@@ -247,7 +247,7 @@
- fix Tab wrong height when use line style tab inside card style tab [\#2825](https://github.com/youzan/vant/pull/2825)
-## [v1.6.5](https://github.com/youzan/vant/tree/v1.6.5)
+### [v1.6.5](https://github.com/youzan/vant/tree/v1.6.5)
`2019-02-17`
**Improvements**
@@ -265,7 +265,7 @@
- fix Panel v-slot now work [\#2752](https://github.com/youzan/vant/pull/2752)
-## [v1.6.4](https://github.com/youzan/vant/tree/v1.6.4)
+### [v1.6.4](https://github.com/youzan/vant/tree/v1.6.4)
`2019-02-14`
**Bug Fixes**
@@ -273,7 +273,7 @@
- Sku: buy event incorrect triggered [\#2741](https://github.com/youzan/vant/pull/2741)
-## [v1.6.3](https://github.com/youzan/vant/tree/v1.6.3)
+### [v1.6.3](https://github.com/youzan/vant/tree/v1.6.3)
`2019-02-14`
**Improvements**
@@ -295,7 +295,7 @@
- fix functional component multi listeners [\#2717](https://github.com/youzan/vant/pull/2717)
-## [v1.6.2](https://github.com/youzan/vant/tree/v1.6.2)
+### [v1.6.2](https://github.com/youzan/vant/tree/v1.6.2)
`2019-02-10`
**Improvements**
@@ -316,7 +316,7 @@
- fix AddressList should hide radio of disabled item [\#2687](https://github.com/youzan/vant/pull/2687)
-## [v1.6.1](https://github.com/youzan/vant/tree/v1.6.1)
+### [v1.6.1](https://github.com/youzan/vant/tree/v1.6.1)
`2019-02-05`
**Improvements**
@@ -324,7 +324,7 @@
- fix functional component can not inherit directives and native events. [\#2686](https://github.com/youzan/vant/pull/2686)
-## [v1.6.0](https://github.com/youzan/vant/tree/v1.6.0)
+### [v1.6.0](https://github.com/youzan/vant/tree/v1.6.0)
`2019-02-04`
**Breaking changes**
@@ -352,7 +352,7 @@
- fix Popup get-container error when destoryed [\#2679](https://github.com/youzan/vant/pull/2679)
-## [v1.5.7](https://github.com/youzan/vant/tree/v1.5.7)
+### [v1.5.7](https://github.com/youzan/vant/tree/v1.5.7)
`2019-01-24`
**Improvements**
@@ -375,7 +375,7 @@
- add pause-circle-o icon
- Field: add click-left-icon event [\#2605](https://github.com/youzan/vant/pull/2605)
-## [v1.5.6](https://github.com/youzan/vant/tree/v1.5.6)
+### [v1.5.6](https://github.com/youzan/vant/tree/v1.5.6)
`2019-01-22`
**Improvements**
@@ -390,7 +390,7 @@
- fix Icon name not work when passing url [\#2585](https://github.com/youzan/vant/pull/2585)
-## [v1.5.5](https://github.com/youzan/vant/tree/v1.5.5)
+### [v1.5.5](https://github.com/youzan/vant/tree/v1.5.5)
`2019-01-21`
**Bug Fixes**
@@ -398,7 +398,7 @@
- fix Field type prop not work [\#2579](https://github.com/youzan/vant/pull/2579)
-## [v1.5.4](https://github.com/youzan/vant/tree/v1.5.4)
+### [v1.5.4](https://github.com/youzan/vant/tree/v1.5.4)
`2019-01-20`
**Bug Fixes**
@@ -406,7 +406,7 @@
- fix missing dependencie @vue/babel-helper-vue-jsx-merge-props [\#2474](https://github.com/youzan/vant/issues/2474)
-## [v1.5.3](https://github.com/youzan/vant/tree/v1.5.3)
+### [v1.5.3](https://github.com/youzan/vant/tree/v1.5.3)
`2019-01-20`
**Improvements**
@@ -427,7 +427,7 @@
- fix Dialog action event [\#2571](https://github.com/youzan/vant/pull/2571)
-## [v1.5.2](https://github.com/youzan/vant/tree/v1.5.2)
+### [v1.5.2](https://github.com/youzan/vant/tree/v1.5.2)
`2019-01-10`
**Improvements**
@@ -448,7 +448,7 @@
- fix Tab should not have line animation when inited [\#2459](https://github.com/youzan/vant/pull/2459)
-## [v1.5.1](https://github.com/youzan/vant/tree/v1.5.1)
+### [v1.5.1](https://github.com/youzan/vant/tree/v1.5.1)
`2019-01-01`
**Improvements**
@@ -466,7 +466,7 @@
- fix Icon missing protocol [\#2385](https://github.com/youzan/vant/pull/2385)
-## [v1.5.0](https://github.com/youzan/vant/tree/v1.5.0)
+### [v1.5.0](https://github.com/youzan/vant/tree/v1.5.0)
`2018-12-22`
**Breaking changes**
@@ -537,7 +537,7 @@ Also we have optimized the UI of the following components::
- fix compile failure in windows [\#2229](https://github.com/youzan/vant/pull/2229)
-## [v1.4.8](https://github.com/youzan/vant/tree/v1.4.8)
+### [v1.4.8](https://github.com/youzan/vant/tree/v1.4.8)
`2018-12-05`
**Improvements**
@@ -554,7 +554,7 @@ Also we have optimized the UI of the following components::
- fix ImagePreview indicator color [\#2187](https://github.com/youzan/vant/pull/2187)
-## [v1.4.7](https://github.com/youzan/vant/tree/v1.4.7)
+### [v1.4.7](https://github.com/youzan/vant/tree/v1.4.7)
`2018-11-27`
**Improvements**
@@ -578,7 +578,7 @@ Also we have optimized the UI of the following components::
- fix DatetimePicker get wrong value when set minDate [\#2137](https://github.com/youzan/vant/pull/2137)
-## [v1.4.5](https://github.com/youzan/vant/tree/v1.4.5)
+### [v1.4.5](https://github.com/youzan/vant/tree/v1.4.5)
`2018-11-23`
**Improvements**
@@ -595,7 +595,7 @@ Also we have optimized the UI of the following components::
- fix Tab swipe-threshold not work when less than 4 [\#2128](https://github.com/youzan/vant/pull/2128)
-## [v1.4.4](https://github.com/youzan/vant/tree/v1.4.4)
+### [v1.4.4](https://github.com/youzan/vant/tree/v1.4.4)
`2018-11-18`
**Improvements**
@@ -615,7 +615,7 @@ Also we have optimized the UI of the following components::
- fix Steps css selector priority [\#2072](https://github.com/youzan/vant/pull/2072)
-## [v1.4.3](https://github.com/youzan/vant/tree/v1.4.3)
+### [v1.4.3](https://github.com/youzan/vant/tree/v1.4.3)
`2018-11-10`
**Improvements**
@@ -632,7 +632,7 @@ Also we have optimized the UI of the following components::
- fix Tab can swipe to disabled tab [\#2064](https://github.com/youzan/vant/pull/2064)
-## [v1.4.2](https://github.com/youzan/vant/tree/v1.4.2)
+### [v1.4.2](https://github.com/youzan/vant/tree/v1.4.2)
`2018-11-04`
**Breaking changes**
@@ -654,7 +654,7 @@ Also we have optimized the UI of the following components::
- Switch: add inactive-color prop [\#2013](https://github.com/youzan/vant/pull/2013)
-## [v1.3.10](https://github.com/youzan/vant/tree/v1.3.10)
+### [v1.3.10](https://github.com/youzan/vant/tree/v1.3.10)
`2018-10-29`
**Improvements**
@@ -672,7 +672,7 @@ Also we have optimized the UI of the following components::
- fix Toast remove unclickable when destroyed [\#1991](https://github.com/youzan/vant/pull/1991)
-## [v1.3.9](https://github.com/youzan/vant/tree/v1.3.9)
+### [v1.3.9](https://github.com/youzan/vant/tree/v1.3.9)
`2018-10-24`
**Improvements**
@@ -688,7 +688,7 @@ Also we have optimized the UI of the following components::
- fix Sku popup max-height [\#1965](https://github.com/youzan/vant/pull/1965)
-## [v1.3.8](https://github.com/youzan/vant/tree/v1.3.8)
+### [v1.3.8](https://github.com/youzan/vant/tree/v1.3.8)
`2018-10-17`
**Improvements**
@@ -708,7 +708,7 @@ Also we have optimized the UI of the following components::
- fix SubmitBar incomplete button text display [\#1940](https://github.com/youzan/vant/pull/1940)
-## [v1.3.7](https://github.com/youzan/vant/tree/v1.3.7)
+### [v1.3.7](https://github.com/youzan/vant/tree/v1.3.7)
`2018-10-12`
**Improvements**
@@ -723,7 +723,7 @@ Also we have optimized the UI of the following components::
- fix SubmitBar tip color
-## [v1.3.6](https://github.com/youzan/vant/tree/v1.3.6)
+### [v1.3.6](https://github.com/youzan/vant/tree/v1.3.6)
`2018-10-11`
**Improvements**
@@ -735,7 +735,7 @@ Also we have optimized the UI of the following components::
- fix Toast tap highlight color when unclickable [\#1914](https://github.com/youzan/vant/pull/1914)
-## [v1.3.5](https://github.com/youzan/vant/tree/v1.3.5)
+### [v1.3.5](https://github.com/youzan/vant/tree/v1.3.5)
`2018-10-10`
**Improvements**
@@ -754,7 +754,7 @@ Also we have optimized the UI of the following components::
- fix Swipe multi finger [\#1890](https://github.com/youzan/vant/pull/1890)
-## [v1.3.4](https://github.com/youzan/vant/tree/v1.3.4)
+### [v1.3.4](https://github.com/youzan/vant/tree/v1.3.4)
`2018-10-02`
**Improvements**
@@ -772,7 +772,7 @@ Also we have optimized the UI of the following components::
- fix Toast type definition [\#1859](https://github.com/youzan/vant/pull/1859)
-## [v1.3.3](https://github.com/youzan/vant/tree/v1.3.3)
+### [v1.3.3](https://github.com/youzan/vant/tree/v1.3.3)
`2018-09-23`
**Improvements**
@@ -789,7 +789,7 @@ Also we have optimized the UI of the following components::
- fix Tag white border [\#1834](https://github.com/youzan/vant/pull/1834)
-## [v1.3.2](https://github.com/youzan/vant/tree/v1.3.2)
+### [v1.3.2](https://github.com/youzan/vant/tree/v1.3.2)
`2018-09-14`
**Improvements**
@@ -808,7 +808,7 @@ Also we have optimized the UI of the following components::
- fix Dialog type definition [\#1799](https://github.com/youzan/vant/pull/1799)
-## [v1.3.1](https://github.com/youzan/vant/tree/v1.3.1)
+### [v1.3.1](https://github.com/youzan/vant/tree/v1.3.1)
`2018-09-07`
**Improvements**
@@ -823,7 +823,7 @@ Also we have optimized the UI of the following components::
- fix lib dir babel runtime module [\#1753](https://github.com/youzan/vant/pull/1753)
-## [v1.3.0](https://github.com/youzan/vant/tree/v1.3.0)
+### [v1.3.0](https://github.com/youzan/vant/tree/v1.3.0)
`2018-08-31`
**Breaking changes**
@@ -852,7 +852,7 @@ Also we have optimized the UI of the following components::
- fix Tabbar: info not work when use icon slot [\#1705](https://github.com/youzan/vant/pull/1705)
-## [v1.2.1](https://github.com/youzan/vant/tree/v1.2.1)
+### [v1.2.1](https://github.com/youzan/vant/tree/v1.2.1)
`2018-08-24`
**Improvements**
@@ -872,7 +872,7 @@ Also we have optimized the UI of the following components::
- fix Popup can not be destoryed when use get-container [\#1665](https://github.com/youzan/vant/pull/1665)
-## [v1.2.0](https://github.com/youzan/vant/tree/v1.2.0)
+### [v1.2.0](https://github.com/youzan/vant/tree/v1.2.0)
`2018-08-20`
**Breaking changes**
@@ -899,7 +899,7 @@ Also we have optimized the UI of the following components::
- fix AddressEdit show delete [\#1648](https://github.com/youzan/vant/pull/1648)
- fix Icon size prop not work [\#1634](https://github.com/youzan/vant/pull/1634)
-## [v1.1.16](https://github.com/youzan/vant/tree/v1.1.16)
+### [v1.1.16](https://github.com/youzan/vant/tree/v1.1.16)
`2018-08-10`
**Improvements**
@@ -915,7 +915,7 @@ Also we have optimized the UI of the following components::
- fix DatetimePicker value uncorrect when use formatter [\#1591](https://github.com/youzan/vant/pull/1591)
-## [v1.1.15](https://github.com/youzan/vant/tree/v1.1.15)
+### [v1.1.15](https://github.com/youzan/vant/tree/v1.1.15)
`2018-08-03`
**Improvements**
@@ -936,7 +936,7 @@ Also we have optimized the UI of the following components::
- fix Tabbar should not trigger change event when active not change [\#1571](https://github.com/youzan/vant/pull/1571)
-## [v1.1.14](https://github.com/youzan/vant/tree/v1.1.14)
+### [v1.1.14](https://github.com/youzan/vant/tree/v1.1.14)
`2018-07-19`
**Improvements**
@@ -957,7 +957,7 @@ Also we have optimized the UI of the following components::
- fix Tab sticky in scroll element [\#1496](https://github.com/youzan/vant/pull/1496)
-## [v1.1.13](https://github.com/youzan/vant/tree/v1.1.13)
+### [v1.1.13](https://github.com/youzan/vant/tree/v1.1.13)
`2018-07-13`
**Improvements**
@@ -977,7 +977,7 @@ Also we have optimized the UI of the following components::
- fix vue-lazyload version [\#1481](https://github.com/youzan/vant/pull/1481)
-## [v1.1.12](https://github.com/youzan/vant/tree/v1.1.12)
+### [v1.1.12](https://github.com/youzan/vant/tree/v1.1.12)
`2018-07-06`
**Improvements**
@@ -996,7 +996,7 @@ Also we have optimized the UI of the following components::
- fix style missing dependencies [\#1426](https://github.com/youzan/vant/pull/1426)
-## [v1.1.11](https://github.com/youzan/vant/tree/v1.1.11)
+### [v1.1.11](https://github.com/youzan/vant/tree/v1.1.11)
`2018-07-04`
**Improvements**
@@ -1018,7 +1018,7 @@ Also we have optimized the UI of the following components::
- fix Tab insert order [\#1372](https://github.com/youzan/vant/pull/1372)
-## [v1.1.10](https://github.com/youzan/vant/tree/v1.1.10)
+### [v1.1.10](https://github.com/youzan/vant/tree/v1.1.10)
`2018-06-28`
**Breaking changes**
@@ -1041,7 +1041,7 @@ Also we have optimized the UI of the following components::
- fix Sku image clip [\#1334](https://github.com/youzan/vant/pull/1334)
-## [v1.1.9](https://github.com/youzan/vant/tree/v1.1.9)
+### [v1.1.9](https://github.com/youzan/vant/tree/v1.1.9)
`2018-06-22`
**Improvements**
@@ -1059,7 +1059,7 @@ Also we have optimized the UI of the following components::
- fix Tab line resize [\#1304](https://github.com/youzan/vant/pull/1304)
-## [v1.1.8](https://github.com/youzan/vant/tree/v1.1.8)
+### [v1.1.8](https://github.com/youzan/vant/tree/v1.1.8)
`2018-06-14`
**Improvements**
@@ -1083,7 +1083,7 @@ Also we have optimized the UI of the following components::
- fix Tab resize line when title changed [\#1260](https://github.com/youzan/vant/pull/1260)
-## [v1.1.7](https://github.com/youzan/vant/tree/v1.1.7)
+### [v1.1.7](https://github.com/youzan/vant/tree/v1.1.7)
`2018-06-06`
**Improvements**
@@ -1095,7 +1095,7 @@ Also we have optimized the UI of the following components::
- Document: add ts-import-plugin guide [\#1230](https://github.com/youzan/vant/pull/1230)
-## [v1.1.6](https://github.com/youzan/vant/tree/v1.1.6)
+### [v1.1.6](https://github.com/youzan/vant/tree/v1.1.6)
`2018-06-01`
**Improvements**
@@ -1116,7 +1116,7 @@ Also we have optimized the UI of the following components::
## Changelog
-## [v1.1.5](https://github.com/youzan/vant/tree/v1.1.5)
+### [v1.1.5](https://github.com/youzan/vant/tree/v1.1.5)
`2018-05-24`
**Improvements**
@@ -1138,7 +1138,7 @@ Also we have optimized the UI of the following components::
- fix Progress pivot cross border [\#1135](https://github.com/youzan/vant/pull/1135)
-## [v1.1.4](https://github.com/youzan/vant/tree/v1.1.4)
+### [v1.1.4](https://github.com/youzan/vant/tree/v1.1.4)
`2018-05-18`
**Improvements**
@@ -1159,7 +1159,7 @@ Also we have optimized the UI of the following components::
- fix icon style template [\#1091](https://github.com/youzan/vant/pull/1091)
-## [v1.1.3](https://github.com/youzan/vant/tree/v1.1.3)
+### [v1.1.3](https://github.com/youzan/vant/tree/v1.1.3)
`2018-05-12`
**Improvements**
@@ -1179,7 +1179,7 @@ Also we have optimized the UI of the following components::
- fix ImagePreview can't be closed when contain single image [\#1046](https://github.com/youzan/vant/pull/1046)
-## [v1.1.2](https://github.com/youzan/vant/tree/v1.1.2)
+### [v1.1.2](https://github.com/youzan/vant/tree/v1.1.2)
`2018-05-08`
**Improvements**
@@ -1199,7 +1199,7 @@ Also we have optimized the UI of the following components::
- fix Stepper integer wrong spelling [\#992](https://github.com/youzan/vant/pull/992)
-## [v1.1.1](https://github.com/youzan/vant/tree/v1.1.1)
+### [v1.1.1](https://github.com/youzan/vant/tree/v1.1.1)
`2018-05-04`
**Improvements**
@@ -1218,7 +1218,7 @@ Also we have optimized the UI of the following components::
* fix Search incomplete text display in iOS [\#974](https://github.com/youzan/vant/pull/974)
-## [v1.1.0](https://github.com/youzan/vant/tree/v1.1.0)
+### [v1.1.0](https://github.com/youzan/vant/tree/v1.1.0)
`2018-04-25`
**Improvements**
@@ -1244,7 +1244,7 @@ Also we have optimized the UI of the following components::
* fix Picker text adjust may cause option wrong offset [\#916](https://github.com/youzan/vant/pull/916)
-## [v1.0.8](https://github.com/youzan/vant/tree/v1.0.8)
+### [v1.0.8](https://github.com/youzan/vant/tree/v1.0.8)
`2018-04-20`
**Improvements**
@@ -1257,14 +1257,14 @@ Also we have optimized the UI of the following components::
* Popup: fix lock scroll [\#891](https://github.com/youzan/vant/pull/891)
-## [v1.0.7](https://github.com/youzan/vant/tree/v1.0.7)
+### [v1.0.7](https://github.com/youzan/vant/tree/v1.0.7)
`2018-04-17`
**Bug Fixes**
* fix missing style entry in build result
-## [v1.0.6](https://github.com/youzan/vant/tree/v1.0.6)
+### [v1.0.6](https://github.com/youzan/vant/tree/v1.0.6)
`2018-04-17`
**Improvements**
@@ -1279,7 +1279,7 @@ Also we have optimized the UI of the following components::
* fix DatetimePicker change event params not correct [\#878](https://github.com/youzan/vant/pull/878)
-## [v1.0.5](https://github.com/youzan/vant/tree/v1.0.5)
+### [v1.0.5](https://github.com/youzan/vant/tree/v1.0.5)
`2018-04-13`
**Improvements**
@@ -1299,7 +1299,7 @@ Also we have optimized the UI of the following components::
* fix Swipe not stop touch event propagation [\#846](https://github.com/youzan/vant/pull/846)
-## [v1.0.4](https://github.com/youzan/vant/tree/v1.0.4)
+### [v1.0.4](https://github.com/youzan/vant/tree/v1.0.4)
`2018-04-10`
**Improvements**
@@ -1319,7 +1319,7 @@ Also we have optimized the UI of the following components::
* fix Sku row font-size [\#840](https://github.com/youzan/vant/pull/840)
-## [v1.0.3](https://github.com/youzan/vant/tree/v1.0.3)
+### [v1.0.3](https://github.com/youzan/vant/tree/v1.0.3)
`2018-03-26`
**Improvements**
@@ -1335,7 +1335,7 @@ Also we have optimized the UI of the following components::
* fix Toast mask not remove when hidden [\#762](https://github.com/youzan/vant/pull/762)
-## [v1.0.2](https://github.com/youzan/vant/tree/v1.0.2)
+### [v1.0.2](https://github.com/youzan/vant/tree/v1.0.2)
`2018-03-22`
**Improvements**
@@ -1354,7 +1354,7 @@ Also we have optimized the UI of the following components::
* fix Tab content not clickable [\#749](https://github.com/youzan/vant/pull/749)
-## [v1.0.1](https://github.com/youzan/vant/tree/v1.0.1)
+### [v1.0.1](https://github.com/youzan/vant/tree/v1.0.1)
`2018-03-19`
**Bug Fixes**
@@ -1362,7 +1362,7 @@ Also we have optimized the UI of the following components::
* fix module circular dependency [\#728](https://github.com/youzan/vant/pull/728)
-## [v1.0.0](https://github.com/youzan/vant/tree/v1.0.0)
+### [v1.0.0](https://github.com/youzan/vant/tree/v1.0.0)
`2018-03-19`
**Breaking changes**
@@ -1396,14 +1396,14 @@ Also we have optimized the UI of the following components::
* fix Sidebar info font weight when selected [\#687](https://github.com/youzan/vant/pull/687)
-## [v0.12.14](https://github.com/youzan/vant/tree/v0.12.14)
+### [v0.12.14](https://github.com/youzan/vant/tree/v0.12.14)
`2018-03-09`
**Bug Fixes**
* Area: should reset index when area list changed [\#678](https://github.com/youzan/vant/pull/678)
-## [v0.12.13](https://github.com/youzan/vant/tree/v0.12.13)
+### [v0.12.13](https://github.com/youzan/vant/tree/v0.12.13)
`2018-03-09`
**Improvements**
@@ -1415,7 +1415,7 @@ Also we have optimized the UI of the following components::
* fix CouponList text max-width [\#675](https://github.com/youzan/vant/pull/675)
-## [v0.12.12](https://github.com/youzan/vant/tree/v0.12.12)
+### [v0.12.12](https://github.com/youzan/vant/tree/v0.12.12)
`2018-03-06`
**Improvements**
@@ -1430,7 +1430,7 @@ Also we have optimized the UI of the following components::
* fix Swipe autoplay not stop when value set to 0 [\#660](https://github.com/youzan/vant/pull/660)
-## [v0.12.11](https://github.com/youzan/vant/tree/v0.12.11)
+### [v0.12.11](https://github.com/youzan/vant/tree/v0.12.11)
`2018-02-27`
**Improvements**
@@ -1445,7 +1445,7 @@ Also we have optimized the UI of the following components::
* fix Button loading horizontal align [\#645](https://github.com/youzan/vant/pull/645)
-## [v0.12.10](https://github.com/youzan/vant/tree/v0.12.10)
+### [v0.12.10](https://github.com/youzan/vant/tree/v0.12.10)
`2018-02-12`
**Improvements**
@@ -1459,7 +1459,7 @@ Also we have optimized the UI of the following components::
* Stepper: change event error when clear input [\#635](https://github.com/youzan/vant/pull/635)
-## [v0.12.9](https://github.com/youzan/vant/tree/v0.12.9)
+### [v0.12.9](https://github.com/youzan/vant/tree/v0.12.9)
`2018-02-08`
**Improvements**
@@ -1475,7 +1475,7 @@ Also we have optimized the UI of the following components::
* fix Sku message observation [\#627](https://github.com/youzan/vant/pull/627)
-## [v0.12.8](https://github.com/youzan/vant/tree/v0.12.8)
+### [v0.12.8](https://github.com/youzan/vant/tree/v0.12.8)
`2018-02-07`
**Improvements**
@@ -1491,7 +1491,7 @@ Also we have optimized the UI of the following components::
* fix TreeSelect arrow position error [\#605](https://github.com/youzan/vant/pull/605)
-## [v0.12.7](https://github.com/youzan/vant/tree/v0.12.7)
+### [v0.12.7](https://github.com/youzan/vant/tree/v0.12.7)
`2018-01-31`
**Improvements**
@@ -1503,7 +1503,7 @@ Also we have optimized the UI of the following components::
**Bug Fixes**
* fix Field multi line label style error [\#583](https://github.com/youzan/vant/pull/583)
-## [v0.12.6](https://github.com/youzan/vant/tree/v0.12.6)
+### [v0.12.6](https://github.com/youzan/vant/tree/v0.12.6)
`2018-01-25`
**Improvements**
@@ -1518,7 +1518,7 @@ Also we have optimized the UI of the following components::
* fix Toast work break [\#567](https://github.com/youzan/vant/pull/567)
* fix Tab active not work [\#572](https://github.com/youzan/vant/pull/572)
-## [v0.12.5](https://github.com/youzan/vant/tree/v0.12.5)
+### [v0.12.5](https://github.com/youzan/vant/tree/v0.12.5)
`2018-01-23`
**Improvements**
@@ -1533,7 +1533,7 @@ Also we have optimized the UI of the following components::
* Cell: fix required style [\#553](https://github.com/youzan/vant/pull/553)
-## [v0.12.4](https://github.com/youzan/vant/tree/v0.12.4)
+### [v0.12.4](https://github.com/youzan/vant/tree/v0.12.4)
`2018-01-18`
**Improvements**
@@ -1547,7 +1547,7 @@ Also we have optimized the UI of the following components::
* Stepper: not fire event on changing the value prop [\#546](https://github.com/youzan/vant/pull/546)
* Picker: fix misspelling of visibleItemCount prop [\#549](https://github.com/youzan/vant/pull/549)
-## [v0.12.3](https://github.com/youzan/vant/tree/v0.12.3)
+### [v0.12.3](https://github.com/youzan/vant/tree/v0.12.3)
`2018-01-12`
@@ -1563,7 +1563,7 @@ Also we have optimized the UI of the following components::
* Picker: change event not triggered when click option [\#532](https://github.com/youzan/vant/pull/532)
* PullRefresh: only triggered when drag in vertical direction [\#521](https://github.com/youzan/vant/pull/521)
-## [v0.12.2](https://github.com/youzan/vant/tree/v0.12.2)
+### [v0.12.2](https://github.com/youzan/vant/tree/v0.12.2)
`2018-01-08`
@@ -1574,7 +1574,7 @@ Also we have optimized the UI of the following components::
* NoticeBar: should reinitialize when text changed [\#515](https://github.com/youzan/vant/pull/515)
* AddressEdit: fix search result style error [\#514](https://github.com/youzan/vant/pull/514)
-## [v0.12.1](https://github.com/youzan/vant/tree/v0.12.1)
+### [v0.12.1](https://github.com/youzan/vant/tree/v0.12.1)
`2018-01-05`
@@ -1590,7 +1590,7 @@ Also we have optimized the UI of the following components::
* fix CouponList input style [\#502](https://github.com/youzan/vant/pull/502)
* fix Radio icon not clickable [\#505](https://github.com/youzan/vant/pull/505)
-## [v0.12.0](https://github.com/youzan/vant/tree/v0.12.0)
+### [v0.12.0](https://github.com/youzan/vant/tree/v0.12.0)
`2017-12-29`
@@ -1609,7 +1609,7 @@ Also we have optimized the UI of the following components::
* fix Tab height calc error when use sticky [\#493](https://github.com/youzan/vant/pull/493)
* fix Component should not inheritAttrs when use $attrs [\#488](https://github.com/youzan/vant/pull/488)
-## [v0.11.15](https://github.com/youzan/vant/tree/v0.11.15)
+### [v0.11.15](https://github.com/youzan/vant/tree/v0.11.15)
`2017-12-25`
@@ -1626,7 +1626,7 @@ Also we have optimized the UI of the following components::
* fix popup mixin should treat empty string as true for boolean props [\#468](https://github.com/youzan/vant/pull/468)
* fix package.json should include 'types' in 'files' field [\#462](https://github.com/youzan/vant/pull/462)
-## [v0.11.14](https://github.com/youzan/vant/tree/v0.11.14)
+### [v0.11.14](https://github.com/youzan/vant/tree/v0.11.14)
`2017-12-21`
@@ -1640,7 +1640,7 @@ Also we have optimized the UI of the following components::
* fix cell arrow style error
-## [v0.11.13](https://github.com/youzan/vant/tree/v0.11.13)
+### [v0.11.13](https://github.com/youzan/vant/tree/v0.11.13)
`2017-12-19`
@@ -1657,7 +1657,7 @@ Also we have optimized the UI of the following components::
* fix GoodsAction display error in small screen [\#446](https://github.com/youzan/vant/pull/446)
-## [v0.11.12](https://github.com/youzan/vant/tree/v0.11.12)
+### [v0.11.12](https://github.com/youzan/vant/tree/v0.11.12)
`2017-12-15`
@@ -1673,7 +1673,7 @@ Also we have optimized the UI of the following components::
* fix Picker bottom area not dragable [\#433](https://github.com/youzan/vant/pull/433)
* fix PullRefresh head display error [\#436](https://github.com/youzan/vant/pull/436)
-## [v0.11.11](https://github.com/youzan/vant/tree/v0.11.11)
+### [v0.11.11](https://github.com/youzan/vant/tree/v0.11.11)
`2017-12-13`
@@ -1690,7 +1690,7 @@ Also we have optimized the UI of the following components::
* fix Checkbox disabled not work when inside CheckboxGroup [\#425](https://github.com/youzan/vant/pull/425)
* fix AddressEdit searchResult type validate [\#417](https://github.com/youzan/vant/pull/417)
-## [v0.11.10](https://github.com/youzan/vant/tree/v0.11.10)
+### [v0.11.10](https://github.com/youzan/vant/tree/v0.11.10)
`2017-12-12`
@@ -1703,7 +1703,7 @@ Also we have optimized the UI of the following components::
* Icon: fix 'shopping-cart' icon not align center [\#415](https://github.com/youzan/vant/pull/415)
-## [v0.11.9](https://github.com/youzan/vant/tree/v0.11.9)
+### [v0.11.9](https://github.com/youzan/vant/tree/v0.11.9)
`2017-12-11`
@@ -1717,7 +1717,7 @@ Also we have optimized the UI of the following components::
* fix raf error in SSR [\#405](https://github.com/youzan/vant/pull/405)
* fix NoticeBar animationend event in old browser [\#402](https://github.com/youzan/vant/pull/402)
-## [v0.11.8](https://github.com/youzan/vant/tree/v0.11.8)
+### [v0.11.8](https://github.com/youzan/vant/tree/v0.11.8)
`2017-12-08`
@@ -1731,7 +1731,7 @@ Also we have optimized the UI of the following components::
* Tab: hide scrollbar in mobile safari [\#390](https://github.com/youzan/vant/pull/390)
* Tab: active tab should keep center when scrollable [\#394](https://github.com/youzan/vant/pull/394)
-## [v0.11.7](https://github.com/youzan/vant/tree/v0.11.7)
+### [v0.11.7](https://github.com/youzan/vant/tree/v0.11.7)
`2017-12-07`
@@ -1743,7 +1743,7 @@ Also we have optimized the UI of the following components::
* fix Tab initail tab position [\#389](https://github.com/youzan/vant/pull/389) [chenjiahan](https://github.com/chenjiahan)
-## [v0.11.6](https://github.com/youzan/vant/tree/v0.11.6)
+### [v0.11.6](https://github.com/youzan/vant/tree/v0.11.6)
`2017-12-07`
@@ -1761,7 +1761,7 @@ Also we have optimized the UI of the following components::
* fix Sku button border radius [\#378](https://github.com/youzan/vant/pull/378)
* fix Radio & Checkbox disabled color [\#383](https://github.com/youzan/vant/pull/383)
-## [v0.11.5](https://github.com/youzan/vant/tree/v0.11.5)
+### [v0.11.5](https://github.com/youzan/vant/tree/v0.11.5)
`2017-12-04`
@@ -1775,7 +1775,7 @@ Also we have optimized the UI of the following components::
* fix Tab active block disappeared when delete tab [\#372](https://github.com/youzan/vant/pull/372)
-## [v0.11.4](https://github.com/youzan/vant/tree/v0.11.4)
+### [v0.11.4](https://github.com/youzan/vant/tree/v0.11.4)
`2017-11-30`
@@ -1784,7 +1784,7 @@ Also we have optimized the UI of the following components::
* add type definition files [\#361](https://github.com/youzan/vant/pull/361)
* support use this.$toast/$dialog to call Toast/Dialog [\#363](https://github.com/youzan/vant/pull/363)
-## [v0.11.3](https://github.com/youzan/vant/tree/v0.11.3)
+### [v0.11.3](https://github.com/youzan/vant/tree/v0.11.3)
`2017-11-28`
@@ -1798,7 +1798,7 @@ Also we have optimized the UI of the following components::
* Uploader: support inherit attrs [\#357](https://github.com/youzan/vant/pull/357)
* optimize local compile speed [\#355](https://github.com/youzan/vant/pull/355)
-## [v0.11.2](https://github.com/youzan/vant/tree/v0.11.2)
+### [v0.11.2](https://github.com/youzan/vant/tree/v0.11.2)
`2017-11-24`
@@ -1806,7 +1806,7 @@ Also we have optimized the UI of the following components::
* Icon: add seven new icons [\#351](https://github.com/youzan/vant/pull/351)
-## [v0.11.1](https://github.com/youzan/vant/tree/v0.11.1)
+### [v0.11.1](https://github.com/youzan/vant/tree/v0.11.1)
`2017-11-24`
@@ -1827,7 +1827,7 @@ Also we have optimized the UI of the following components::
* fix some bugs in SSR [\#344](https://github.com/youzan/vant/pull/344)
* fix DateTimePicker crashed when pass invalid props [\#333](https://github.com/youzan/vant/pull/333)
-## [v0.11.0](https://github.com/youzan/vant/tree/v0.11.0)
+### [v0.11.0](https://github.com/youzan/vant/tree/v0.11.0)
`2017-11-17`
@@ -1843,7 +1843,7 @@ Also we have optimized the UI of the following components::
* add Internationalization document [\#321](https://github.com/youzan/vant/pull/321)
* Icon: add-o icon add radius [\#326](https://github.com/youzan/vant/pull/326)
-## [v0.10.9](https://github.com/youzan/vant/tree/v0.10.9)
+### [v0.10.9](https://github.com/youzan/vant/tree/v0.10.9)
`2017-11-15`
@@ -1855,7 +1855,7 @@ Also we have optimized the UI of the following components::
* Search: fix box-sizing [\#312](https://github.com/youzan/vant/pull/312)
-## [v0.10.8](https://github.com/youzan/vant/tree/v0.10.8)
+### [v0.10.8](https://github.com/youzan/vant/tree/v0.10.8)
`2017-11-11`
@@ -1873,7 +1873,7 @@ Also we have optimized the UI of the following components::
* fix npm run dist errors in windows [\#301](https://github.com/youzan/vant/pull/301)
-## [v0.10.7](https://github.com/youzan/vant/tree/v0.10.7)
+### [v0.10.7](https://github.com/youzan/vant/tree/v0.10.7)
`2017-11-08`
@@ -1887,7 +1887,7 @@ Also we have optimized the UI of the following components::
* fix Sku scroll lock [\#291](https://github.com/youzan/vant/pull/291)
* fix Steps style error when has more than 4 items [\#287](https://github.com/youzan/vant/pull/287)
-## [v0.10.6](https://github.com/youzan/vant/tree/v0.10.6)
+### [v0.10.6](https://github.com/youzan/vant/tree/v0.10.6)
`2017-11-06`
@@ -1901,7 +1901,7 @@ Also we have optimized the UI of the following components::
* fix Tab dynamic generate bug [\#284](https://github.com/youzan/vant/pull/284)
* fix NoticeBar text disappeared when page back [\#280](https://github.com/youzan/vant/pull/280)
-## [v0.10.5](https://github.com/youzan/vant/tree/v0.10.5)
+### [v0.10.5](https://github.com/youzan/vant/tree/v0.10.5)
`2017-10-30`
@@ -1914,7 +1914,7 @@ Also we have optimized the UI of the following components::
* fix Tabbar info display when use icon slot [\#269](https://github.com/youzan/vant/pull/269)
* fix Uploader input type [\#265](https://github.com/youzan/vant/pull/265)
-## [v0.10.4](https://github.com/youzan/vant/tree/v0.10.4)
+### [v0.10.4](https://github.com/youzan/vant/tree/v0.10.4)
`2017-10-26`
@@ -1931,7 +1931,7 @@ Also we have optimized the UI of the following components::
* fix PullRefreash scroll bug when parent is scrollable [\#247](https://github.com/youzan/vant/pull/247)
* fix CouponList empty info display bug [\#246](https://github.com/youzan/vant/pull/246)
-## [v0.10.3](https://github.com/youzan/vant/tree/v0.10.3)
+### [v0.10.3](https://github.com/youzan/vant/tree/v0.10.3)
`2017-10-25`
@@ -1949,7 +1949,7 @@ Also we have optimized the UI of the following components::
* fix popup style missing when build style entry [\#231](https://github.com/youzan/vant/pull/231)
* fix PullRefresh touchcancel event [\#239](https://github.com/youzan/vant/pull/239)
-## [v0.10.2](https://github.com/youzan/vant/tree/v0.10.2)
+### [v0.10.2](https://github.com/youzan/vant/tree/v0.10.2)
`2017-10-20`
@@ -1962,7 +1962,7 @@ Also we have optimized the UI of the following components::
* Optimize component dependency analyze when build style entry [\#224](https://github.com/youzan/vant/pull/224)
-## [v0.10.1](https://github.com/youzan/vant/tree/v0.10.1)
+### [v0.10.1](https://github.com/youzan/vant/tree/v0.10.1)
`2017-10-18`
@@ -1980,7 +1980,7 @@ Also we have optimized the UI of the following components::
* fix Popup modal can not display in some cases [\#211](https://github.com/youzan/vant/pull/211)
* fix Waterfall repeated event bind
-## [v0.10.0](https://github.com/youzan/vant/tree/v0.10.0)
+### [v0.10.0](https://github.com/youzan/vant/tree/v0.10.0)
`2017-10-13`
@@ -2001,7 +2001,7 @@ Also we have optimized the UI of the following components::
* fix ImagePreview beating bug when loading image [\#201](https://github.com/youzan/vant/pull/201)
* fix Field height error when type is textarea and display none [\#181](https://github.com/youzan/vant/issues/181)
-## [v0.9.12](https://github.com/youzan/vant/tree/v0.9.12)
+### [v0.9.12](https://github.com/youzan/vant/tree/v0.9.12)
`2017-10-11`
@@ -2009,7 +2009,7 @@ Also we have optimized the UI of the following components::
* fix Search style bug [\#191](https://github.com/youzan/vant/pull/191)
-## [v0.9.11](https://github.com/youzan/vant/tree/v0.9.11)
+### [v0.9.11](https://github.com/youzan/vant/tree/v0.9.11)
`2017-10-11`
@@ -2023,7 +2023,7 @@ Also we have optimized the UI of the following components::
* fix Field textarea wrong height when display none [\#188](https://github.com/youzan/vant/pull/188)
* fix compile error in windows [\#185](https://github.com/youzan/vant/pull/182)
-## [v0.9.10](https://github.com/youzan/vant/tree/v0.9.10)
+### [v0.9.10](https://github.com/youzan/vant/tree/v0.9.10)
`2017-10-09`
@@ -2046,7 +2046,7 @@ Also we have optimized the UI of the following components::
* fix npm run dev error in MacOS [\#152](https://github.com/youzan/vant/issues/152)
* fix document router not work in some browsers [\#158](https://github.com/youzan/vant/pull/158)
-## [v0.9.9](https://github.com/youzan/vant/tree/v0.9.9)
+### [v0.9.9](https://github.com/youzan/vant/tree/v0.9.9)
`2017-09-26`
@@ -2059,7 +2059,7 @@ Also we have optimized the UI of the following components::
* fix license error in packages.json [\#144](https://github.com/youzan/vant/pull/144)
* fix Waterfall scroll bug [\#145](https://github.com/youzan/vant/pull/145)
-## [v0.9.8](https://github.com/youzan/vant/tree/v0.9.8)
+### [v0.9.8](https://github.com/youzan/vant/tree/v0.9.8)
`2017-09-24`
@@ -2072,7 +2072,7 @@ Also we have optimized the UI of the following components::
* fix Sku message render bug [\#142](https://github.com/youzan/vant/pull/142)
-## [v0.9.7](https://github.com/youzan/vant/tree/v0.9.7)
+### [v0.9.7](https://github.com/youzan/vant/tree/v0.9.7)
`2017-09-21`
diff --git a/docs/markdown/changelog.zh-CN.md b/docs/markdown/changelog.zh-CN.md
index b38b992cc..89ba7e781 100644
--- a/docs/markdown/changelog.zh-CN.md
+++ b/docs/markdown/changelog.zh-CN.md
@@ -1,6 +1,6 @@
-## 更新日志
+# 更新日志
-## [v1.6.18](https://github.com/youzan/vant/tree/v1.6.18)
+### [v1.6.18](https://github.com/youzan/vant/tree/v1.6.18)
`2019-05-10`
**Bug Fixes**
@@ -13,7 +13,7 @@
- 修复 Swipe 在部分情况下提示 preventDefault 警告的问题
-## [1.6.17](https://github.com/youzan/vant/tree/v1.6.17)
+### [v1.6.17](https://github.com/youzan/vant/tree/v1.6.17)
`2019-05-05`
**Improvements**
@@ -31,7 +31,7 @@
- 修复 Popup 弹出多个弹层时 click-overlay 事件重复触发的问题
-## [v1.6.16](https://github.com/youzan/vant/tree/v1.6.16)
+### [v1.6.16](https://github.com/youzan/vant/tree/v1.6.16)
`2019-04-26`
**Improvements**
@@ -50,7 +50,7 @@
- 修复 Slider 拖动同时设置 value 属性导致拖动失败的问题 [\#3206](https://github.com/youzan/vant/pull/3206)
-## [v1.6.15](https://github.com/youzan/vant/tree/v1.6.15)
+### [v1.6.15](https://github.com/youzan/vant/tree/v1.6.15)
`2019-04-19`
**Improvements**
@@ -75,7 +75,7 @@
- 修复 Toast z-index 未正确递增的问题 [\#3153](https://github.com/youzan/vant/pull/3153)
-## [v1.6.14](https://github.com/youzan/vant/tree/v1.6.14)
+### [v1.6.14](https://github.com/youzan/vant/tree/v1.6.14)
`2019-04-13`
**Improvements**
@@ -98,7 +98,7 @@
- 修复 Dialog 使用 getContainer 属性后可能出现节点被回收导致无法渲染的问题 [\#3111](https://github.com/youzan/vant/pull/3111)
-## [v1.6.13](https://github.com/youzan/vant/tree/v1.6.13)
+### [v1.6.13](https://github.com/youzan/vant/tree/v1.6.13)
`2019-04-06`
**Improvements**
@@ -115,7 +115,7 @@
- 修复 Tab 包裹在`keep-alive`内时底部条渲染错误的问题 [\#3097](https://github.com/youzan/vant/pull/3097)
-## [v1.6.12](https://github.com/youzan/vant/tree/v1.6.12)
+### [v1.6.12](https://github.com/youzan/vant/tree/v1.6.12)
`2019-03-28`
**Improvements**
@@ -129,7 +129,7 @@
- 修复 Picker 使用 loading 属性时展示出现异常的问题 [\#3064](https://github.com/youzan/vant/pull/3064)
-## [v1.6.11](https://github.com/youzan/vant/tree/v1.6.11)
+### [v1.6.11](https://github.com/youzan/vant/tree/v1.6.11)
`2019-03-22`
**Improvements**
@@ -154,7 +154,7 @@
- 修复 Collapse 在渲染较慢的情况下可能出现高度为 0 的问题 [\#2993](https://github.com/youzan/vant/pull/2993)
-## [v1.6.10](https://github.com/youzan/vant/tree/v1.6.10)
+### [v1.6.10](https://github.com/youzan/vant/tree/v1.6.10)
`2019-03-17`
**Improvements**
@@ -172,7 +172,7 @@
- 修复 Uploader 使用 before-read 属性后重复上传同个文件不触发事件的问题 [\#2971](https://github.com/youzan/vant/pull/2971)
-## [v1.6.9](https://github.com/youzan/vant/tree/v1.6.9)
+### [v1.6.9](https://github.com/youzan/vant/tree/v1.6.9)
`2019-03-11`
**Improvements**
@@ -191,7 +191,7 @@
- 修复 Swipe change 事件触发时机错误的问题 [\#2909](https://github.com/youzan/vant/pull/2909)
-## [v1.6.8](https://github.com/youzan/vant/tree/v1.6.8)
+### [v1.6.8](https://github.com/youzan/vant/tree/v1.6.8)
`2019-03-02`
**Improvements**
@@ -207,7 +207,7 @@
- 修复 Tab 使用 offset-top 属性时切换标签未滚动到正确位置的问题 [\#2873](https://github.com/youzan/vant/pull/2873)
-## [v1.6.7](https://github.com/youzan/vant/tree/v1.6.7)
+### [v1.6.7](https://github.com/youzan/vant/tree/v1.6.7)
`2019-02-26`
**Improvements**
@@ -226,7 +226,7 @@
- 修复 CouponList 不可用券列表为空时展示错误的问题 [\#2845](https://github.com/youzan/vant/pull/2845)
-## [v1.6.6](https://github.com/youzan/vant/tree/v1.6.6)
+### [v1.6.6](https://github.com/youzan/vant/tree/v1.6.6)
`2019-02-24`
**Improvements**
@@ -247,7 +247,7 @@
- 修复 Tab 在 card 类型中嵌套 line 类型时样式错误的问题 [\#2825](https://github.com/youzan/vant/pull/2825)
-## [v1.6.5](https://github.com/youzan/vant/tree/v1.6.5)
+### [v1.6.5](https://github.com/youzan/vant/tree/v1.6.5)
`2019-02-17`
**Improvements**
@@ -265,7 +265,7 @@
- 修复 Panel 使用 v-slot 不生效的问题 [\#2752](https://github.com/youzan/vant/pull/2752)
-## [v1.6.4](https://github.com/youzan/vant/tree/v1.6.4)
+### [v1.6.4](https://github.com/youzan/vant/tree/v1.6.4)
`2019-02-14`
**Bug Fixes**
@@ -273,7 +273,7 @@
- 修复 Sku 购买事件错误地触发为加入购物车事件的问题 [\#2741](https://github.com/youzan/vant/pull/2741)
-## [v1.6.3](https://github.com/youzan/vant/tree/v1.6.3)
+### [v1.6.3](https://github.com/youzan/vant/tree/v1.6.3)
`2019-02-14`
**Improvements**
@@ -295,7 +295,7 @@
- 修复函数式组件传入多个同名事件导致错误的问题 [\#2717](https://github.com/youzan/vant/pull/2717)
-## [v1.6.2](https://github.com/youzan/vant/tree/v1.6.2)
+### [v1.6.2](https://github.com/youzan/vant/tree/v1.6.2)
`2019-02-10`
**Improvements**
@@ -316,7 +316,7 @@
- 修复 AddressEdit 在 Vue 2.6 版本下无法选择推荐地址的问题 [\#2689](https://github.com/youzan/vant/pull/2689)
-## [v1.6.1](https://github.com/youzan/vant/tree/v1.6.1)
+### [v1.6.1](https://github.com/youzan/vant/tree/v1.6.1)
`2019-02-05`
**Improvements**
@@ -324,7 +324,7 @@
- 修复函数式组件无法继承指令和原生事件的问题 [\#2686](https://github.com/youzan/vant/pull/2686)
-## [v1.6.0](https://github.com/youzan/vant/tree/v1.6.0)
+### [v1.6.0](https://github.com/youzan/vant/tree/v1.6.0)
`2019-02-04`
**Breaking changes**
@@ -352,7 +352,7 @@
- 修复 Popup 使用 get-container 属性后销毁时可能报错的问题 [\#2679](https://github.com/youzan/vant/pull/2679)
-## [v1.5.7](https://github.com/youzan/vant/tree/v1.5.7)
+### [v1.5.7](https://github.com/youzan/vant/tree/v1.5.7)
`2019-01-24`
**Improvements**
@@ -375,7 +375,7 @@
- 新增 pause-circle-o 图标
- Field: 新增 click-left-icon 事件 [\#2605](https://github.com/youzan/vant/pull/2605)
-## [v1.5.6](https://github.com/youzan/vant/tree/v1.5.6)
+### [v1.5.6](https://github.com/youzan/vant/tree/v1.5.6)
`2019-01-22`
**Improvements**
@@ -390,7 +390,7 @@
- 修复 Icon name 属性传入 URL 不生效的问题 [\#2585](https://github.com/youzan/vant/pull/2585)
-## [v1.5.5](https://github.com/youzan/vant/tree/v1.5.5)
+### [v1.5.5](https://github.com/youzan/vant/tree/v1.5.5)
`2019-01-21`
**Bug Fixes**
@@ -398,7 +398,7 @@
- 修复 Field type 属性不生效的问题 [\#2579](https://github.com/youzan/vant/pull/2579)
-## [v1.5.4](https://github.com/youzan/vant/tree/v1.5.4)
+### [v1.5.4](https://github.com/youzan/vant/tree/v1.5.4)
`2019-01-20`
**Bug Fixes**
@@ -406,7 +406,7 @@
- 修复缺少 @vue/babel-helper-vue-jsx-merge-props 依赖的问题 [\#2474](https://github.com/youzan/vant/issues/2474)
-## [v1.5.3](https://github.com/youzan/vant/tree/v1.5.3)
+### [v1.5.3](https://github.com/youzan/vant/tree/v1.5.3)
`2019-01-20`
**Improvements**
@@ -427,7 +427,7 @@
- 修复 Dialog 按钮点击事件触发时机错误 [\#2571](https://github.com/youzan/vant/pull/2571)
-## [v1.5.2](https://github.com/youzan/vant/tree/v1.5.2)
+### [v1.5.2](https://github.com/youzan/vant/tree/v1.5.2)
`2019-01-10`
**Improvements**
@@ -448,7 +448,7 @@
- 修复 Tab 首次渲染时会触发底部条动画的问题 [\#2459](https://github.com/youzan/vant/pull/2459)
-## [v1.5.1](https://github.com/youzan/vant/tree/v1.5.1)
+### [v1.5.1](https://github.com/youzan/vant/tree/v1.5.1)
`2019-01-01`
**Improvements**
@@ -466,7 +466,7 @@
- 修复 Icon 在 file 协议网页下无法展示的问题 [\#2385](https://github.com/youzan/vant/pull/2385)
-## [v1.5.0](https://github.com/youzan/vant/tree/v1.5.0)
+### [v1.5.0](https://github.com/youzan/vant/tree/v1.5.0)
`2018-12-22`
**Breaking changes**
@@ -537,7 +537,7 @@
- 修复 dev 命令在 windows 环境下报错的问题 [\#2229](https://github.com/youzan/vant/pull/2229)
-## [v1.4.8](https://github.com/youzan/vant/tree/v1.4.8)
+### [v1.4.8](https://github.com/youzan/vant/tree/v1.4.8)
`2018-12-05`
**Improvements**
@@ -554,7 +554,7 @@
- 修复 ImagePreview 指示器颜色错误 [\#2187](https://github.com/youzan/vant/pull/2187)
-## [v1.4.7](https://github.com/youzan/vant/tree/v1.4.7)
+### [v1.4.7](https://github.com/youzan/vant/tree/v1.4.7)
`2018-11-27`
**Improvements**
@@ -579,7 +579,7 @@
PS: 不小心跳过了 1.4.6 版本 ^_^
-## [v1.4.5](https://github.com/youzan/vant/tree/v1.4.5)
+### [v1.4.5](https://github.com/youzan/vant/tree/v1.4.5)
`2018-11-23`
**Improvements**
@@ -596,7 +596,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Tab swipe-threshold 属性小于 4 时不生效的问题 [\#2128](https://github.com/youzan/vant/pull/2128)
-## [v1.4.4](https://github.com/youzan/vant/tree/v1.4.4)
+### [v1.4.4](https://github.com/youzan/vant/tree/v1.4.4)
`2018-11-18`
**Improvements**
@@ -616,7 +616,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Steps CSS 选择器优先级错误 [\#2072](https://github.com/youzan/vant/pull/2072)
-## [v1.4.3](https://github.com/youzan/vant/tree/v1.4.3)
+### [v1.4.3](https://github.com/youzan/vant/tree/v1.4.3)
`2018-11-10`
**Improvements**
@@ -633,7 +633,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Tab 可以通过手势切换到禁用项的问题 [\#2064](https://github.com/youzan/vant/pull/2064)
-## [v1.4.2](https://github.com/youzan/vant/tree/v1.4.2)
+### [v1.4.2](https://github.com/youzan/vant/tree/v1.4.2)
`2018-11-04`
**Breaking changes**
@@ -654,7 +654,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- Checkbox: 选中态颜色调整为蓝色 [\#2018](https://github.com/youzan/vant/pull/2018)
-## [v1.3.10](https://github.com/youzan/vant/tree/v1.3.10)
+### [v1.3.10](https://github.com/youzan/vant/tree/v1.3.10)
`2018-10-29`
**Improvements**
@@ -672,7 +672,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Toast 在多实例模式下未正确销毁导致无法点击的问题 [\#1991](https://github.com/youzan/vant/pull/1991)
-## [v1.3.9](https://github.com/youzan/vant/tree/v1.3.9)
+### [v1.3.9](https://github.com/youzan/vant/tree/v1.3.9)
`2018-10-24`
**Improvements**
@@ -688,7 +688,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Sku 在部分浏览器下键盘弹出时遮挡输入框的问题 [\#1965](https://github.com/youzan/vant/pull/1965)
-## [v1.3.8](https://github.com/youzan/vant/tree/v1.3.8)
+### [v1.3.8](https://github.com/youzan/vant/tree/v1.3.8)
`2018-10-17`
**Improvements**
@@ -708,7 +708,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 SubmitBar 按钮文字过大时显示不全的问题 [\#1940](https://github.com/youzan/vant/pull/1940)
-## [v1.3.7](https://github.com/youzan/vant/tree/v1.3.7)
+### [v1.3.7](https://github.com/youzan/vant/tree/v1.3.7)
`2018-10-12`
**Improvements**
@@ -723,7 +723,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 SubmitBar 文字颜色
-## [v1.3.6](https://github.com/youzan/vant/tree/v1.3.6)
+### [v1.3.6](https://github.com/youzan/vant/tree/v1.3.6)
`2018-10-11`
**Improvements**
@@ -735,7 +735,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Toast 设置 forbidClick 后出现点击高亮背景色的问题 [\#1914](https://github.com/youzan/vant/pull/1914)
-## [v1.3.5](https://github.com/youzan/vant/tree/v1.3.5)
+### [v1.3.5](https://github.com/youzan/vant/tree/v1.3.5)
`2018-10-10`
**Improvements**
@@ -754,7 +754,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Swipe 多指触控时可能导致展示错误的问题 [\#1890](https://github.com/youzan/vant/pull/1890)
-## [v1.3.4](https://github.com/youzan/vant/tree/v1.3.4)
+### [v1.3.4](https://github.com/youzan/vant/tree/v1.3.4)
`2018-10-02`
**Improvements**
@@ -772,7 +772,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Toast 类型定义错误 [\#1859](https://github.com/youzan/vant/pull/1859)
-## [v1.3.3](https://github.com/youzan/vant/tree/v1.3.3)
+### [v1.3.3](https://github.com/youzan/vant/tree/v1.3.3)
`2018-09-23`
**Improvements**
@@ -789,7 +789,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Tag 边框颜色错误的问题 [\#1834](https://github.com/youzan/vant/pull/1834)
-## [v1.3.2](https://github.com/youzan/vant/tree/v1.3.2)
+### [v1.3.2](https://github.com/youzan/vant/tree/v1.3.2)
`2018-09-14`
**Improvements**
@@ -808,7 +808,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Dialog 缺少 className 类型定义的问题 [\#1799](https://github.com/youzan/vant/pull/1799)
-## [v1.3.1](https://github.com/youzan/vant/tree/v1.3.1)
+### [v1.3.1](https://github.com/youzan/vant/tree/v1.3.1)
`2018-09-07`
**Improvements**
@@ -823,7 +823,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 webpack 1 无法引入 babel-runtime 的问题 [\#1753](https://github.com/youzan/vant/pull/1753)
-## [v1.3.0](https://github.com/youzan/vant/tree/v1.3.0)
+### [v1.3.0](https://github.com/youzan/vant/tree/v1.3.0)
`2018-08-31`
**Breaking changes**
@@ -853,7 +853,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Tabbar 使用 icon 插槽时 info 属性不生效的问题 [\#1705](https://github.com/youzan/vant/pull/1705)
-## [v1.2.1](https://github.com/youzan/vant/tree/v1.2.1)
+### [v1.2.1](https://github.com/youzan/vant/tree/v1.2.1)
`2018-08-24`
**Improvements**
@@ -873,7 +873,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Popup 使用 get-conntainer 属性时不能被正确销毁的问题 [\#1665](https://github.com/youzan/vant/pull/1665)
-## [v1.2.0](https://github.com/youzan/vant/tree/v1.2.0)
+### [v1.2.0](https://github.com/youzan/vant/tree/v1.2.0)
`2018-08-20`
**Breaking changes**
@@ -901,7 +901,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Icon size 属性不生效的问题 [\#1634](https://github.com/youzan/vant/pull/1634)
-## [v1.1.16](https://github.com/youzan/vant/tree/v1.1.16)
+### [v1.1.16](https://github.com/youzan/vant/tree/v1.1.16)
`2018-08-10`
**Improvements**
@@ -917,7 +917,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 DatetimePicker 使用 formatter 时默认值错误的问题 [\#1591](https://github.com/youzan/vant/pull/1591)
-## [v1.1.15](https://github.com/youzan/vant/tree/v1.1.15)
+### [v1.1.15](https://github.com/youzan/vant/tree/v1.1.15)
`2018-08-03`
**Improvements**
@@ -937,7 +937,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 van-clearfix 样式类未生效的问题 [\#1559](https://github.com/youzan/vant/pull/1559)
- 修复 Tabbar 点击当前标签时依然会触发 change 事件的问题 [\#1571](https://github.com/youzan/vant/pull/1571)
-## [v1.1.14](https://github.com/youzan/vant/tree/v1.1.14)
+### [v1.1.14](https://github.com/youzan/vant/tree/v1.1.14)
`2018-07-19`
**Improvements**
@@ -957,7 +957,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Tab sticky 属性在局部滚动元素下无法生效的问题 [\#1496](https://github.com/youzan/vant/pull/1496)
-## [v1.1.13](https://github.com/youzan/vant/tree/v1.1.13)
+### [v1.1.13](https://github.com/youzan/vant/tree/v1.1.13)
`2018-07-13`
**Improvements**
@@ -977,7 +977,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 vue-lazyload 1.2.6 版本出现不兼容更新的问题,暂时降级至 1.2.3 版本 [\#1481](https://github.com/youzan/vant/pull/1481)
-## [v1.1.12](https://github.com/youzan/vant/tree/v1.1.12)
+### [v1.1.12](https://github.com/youzan/vant/tree/v1.1.12)
`2018-07-06`
**Improvements**
@@ -996,7 +996,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 style 依赖丢失 [\#1426](https://github.com/youzan/vant/pull/1426)
-## [v1.1.11](https://github.com/youzan/vant/tree/v1.1.11)
+### [v1.1.11](https://github.com/youzan/vant/tree/v1.1.11)
`2018-07-04`
**Improvements**
@@ -1018,7 +1018,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Tab 动态渲染时顺序错误的问题 [\#1372](https://github.com/youzan/vant/pull/1372)
-## [v1.1.10](https://github.com/youzan/vant/tree/v1.1.10)
+### [v1.1.10](https://github.com/youzan/vant/tree/v1.1.10)
`2018-06-28`
**Breaking changes**
@@ -1041,7 +1041,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Sku 图片截断问题 [\#1334](https://github.com/youzan/vant/pull/1334)
-## [v1.1.9](https://github.com/youzan/vant/tree/v1.1.9)
+### [v1.1.9](https://github.com/youzan/vant/tree/v1.1.9)
`2018-06-22`
**Improvements**
@@ -1059,7 +1059,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Tab 在屏幕尺寸变化时未重新渲染的问题 [\#1304](https://github.com/youzan/vant/pull/1304)
-## [v1.1.8](https://github.com/youzan/vant/tree/v1.1.8)
+### [v1.1.8](https://github.com/youzan/vant/tree/v1.1.8)
`2018-06-14`
**Improvements**
@@ -1083,7 +1083,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Popup 内容过高时超出屏幕可视范围的问题 [\#1256](https://github.com/youzan/vant/pull/1256)
-## [v1.1.7](https://github.com/youzan/vant/tree/v1.1.7)
+### [v1.1.7](https://github.com/youzan/vant/tree/v1.1.7)
`2018-06-06`
**Improvements**
@@ -1095,7 +1095,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- Document: 新增 ts-import-plugin 指引 [\#1230](https://github.com/youzan/vant/pull/1230)
-## [v1.1.6](https://github.com/youzan/vant/tree/v1.1.6)
+### [v1.1.6](https://github.com/youzan/vant/tree/v1.1.6)
`2018-06-01`
**Improvements**
@@ -1114,7 +1114,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 AddressEdit 省市区弹层样式错误的问题 [\#1211](https://github.com/youzan/vant/pull/1211)
-## [v1.1.5](https://github.com/youzan/vant/tree/v1.1.5)
+### [v1.1.5](https://github.com/youzan/vant/tree/v1.1.5)
`2018-05-24`
**Improvements**
@@ -1136,7 +1136,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Progress 文字超出边界的问题 [\#1135](https://github.com/youzan/vant/pull/1135)
-## [v1.1.4](https://github.com/youzan/vant/tree/v1.1.4)
+### [v1.1.4](https://github.com/youzan/vant/tree/v1.1.4)
`2018-05-18`
**Improvements**
@@ -1157,7 +1157,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 icon 样式模板错误 [\#1091](https://github.com/youzan/vant/pull/1091)
-## [v1.1.3](https://github.com/youzan/vant/tree/v1.1.3)
+### [v1.1.3](https://github.com/youzan/vant/tree/v1.1.3)
`2018-05-12`
**Improvements**
@@ -1177,7 +1177,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 ImagePreview 只有一张图片时无法关闭的问题 [\#1046](https://github.com/youzan/vant/pull/1046)
-## [v1.1.2](https://github.com/youzan/vant/tree/v1.1.2)
+### [v1.1.2](https://github.com/youzan/vant/tree/v1.1.2)
`2018-05-08`
**Improvements**
@@ -1197,7 +1197,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Stepper integer 属性拼写错误 [\#992](https://github.com/youzan/vant/pull/992)
-## [v1.1.1](https://github.com/youzan/vant/tree/v1.1.1)
+### [v1.1.1](https://github.com/youzan/vant/tree/v1.1.1)
`2018-05-04`
**Improvements**
@@ -1216,7 +1216,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Search 在 iOS 下文字被遮挡的问题 [\#974](https://github.com/youzan/vant/pull/974)
-## [v1.1.0](https://github.com/youzan/vant/tree/v1.1.0)
+### [v1.1.0](https://github.com/youzan/vant/tree/v1.1.0)
`2018-04-25`
**Improvements**
@@ -1241,7 +1241,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Picker 在系统字体大小缩放时布局错乱的问题 [\#916](https://github.com/youzan/vant/pull/916)
-## [v1.0.8](https://github.com/youzan/vant/tree/v1.0.8)
+### [v1.0.8](https://github.com/youzan/vant/tree/v1.0.8)
`2018-04-20`
**Improvements**
@@ -1254,14 +1254,14 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Popup lock-scroll 属性在 iOS 下无效的问题 [\#891](https://github.com/youzan/vant/pull/891)
-## [v1.0.7](https://github.com/youzan/vant/tree/v1.0.7)
+### [v1.0.7](https://github.com/youzan/vant/tree/v1.0.7)
`2018-04-17`
**Bug Fixes**
* 修复构建结果 lib 目录下样式丢失的问题
-## [v1.0.6](https://github.com/youzan/vant/tree/v1.0.6)
+### [v1.0.6](https://github.com/youzan/vant/tree/v1.0.6)
`2018-04-17`
**Improvements**
@@ -1275,7 +1275,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 DatetimePicker change 事件参数错误 [\#878](https://github.com/youzan/vant/pull/878)
-## [v1.0.5](https://github.com/youzan/vant/tree/v1.0.5)
+### [v1.0.5](https://github.com/youzan/vant/tree/v1.0.5)
`2018-04-13`
**Improvements**
@@ -1295,7 +1295,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Swipe 为uch 事件冒泡问题 [\#846](https://github.com/youzan/vant/pull/846)
-## [v1.0.4](https://github.com/youzan/vant/tree/v1.0.4)
+### [v1.0.4](https://github.com/youzan/vant/tree/v1.0.4)
`2018-04-10`
**Improvements**
@@ -1315,7 +1315,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Sku row 行高错误 [\#840](https://github.com/youzan/vant/pull/840)
-## [v1.0.3](https://github.com/youzan/vant/tree/v1.0.3)
+### [v1.0.3](https://github.com/youzan/vant/tree/v1.0.3)
`2018-03-26`
**Improvements**
@@ -1329,7 +1329,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Tag 文字在部分安卓手机上未垂直居中的问题 [\#773](https://github.com/youzan/vant/pull/773)
- 修复 Toast 遮罩层在某些情况下无法收起的问题 [\#762](https://github.com/youzan/vant/pull/762)
-## [v1.0.2](https://github.com/youzan/vant/tree/v1.0.2)
+### [v1.0.2](https://github.com/youzan/vant/tree/v1.0.2)
`2018-03-22`
**Improvements**
@@ -1348,7 +1348,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Tab 内容无法点击的问题 [\#749](https://github.com/youzan/vant/pull/749)
-## [v1.0.1](https://github.com/youzan/vant/tree/v1.0.1)
+### [v1.0.1](https://github.com/youzan/vant/tree/v1.0.1)
`2018-03-19`
**Bug Fixes**
@@ -1356,7 +1356,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 create 模块循环引用导致某些情况下编译错误的问题 [\#728](https://github.com/youzan/vant/pull/728)
-## [v1.0.0](https://github.com/youzan/vant/tree/v1.0.0)
+### [v1.0.0](https://github.com/youzan/vant/tree/v1.0.0)
`2018-03-19`
**Breaking changes**
@@ -1389,14 +1389,14 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Stepper value 溢出的问题 [\#691](https://github.com/youzan/vant/issues/691)
* 修复 Sidebar 选中时字体粗细 [\#687](https://github.com/youzan/vant/pull/687)
-## [v0.12.14](https://github.com/youzan/vant/tree/v0.12.14)
+### [v0.12.14](https://github.com/youzan/vant/tree/v0.12.14)
`2018-03-09`
**Bug Fixes**
* Area: 修复 area-list 更新时未正确选中省市区的问题 [\#678](https://github.com/youzan/vant/pull/678)
-## [v0.12.13](https://github.com/youzan/vant/tree/v0.12.13)
+### [v0.12.13](https://github.com/youzan/vant/tree/v0.12.13)
`2018-03-09`
**Improvements**
@@ -1408,7 +1408,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 CouponList 文字截断的问题 [\#675](https://github.com/youzan/vant/pull/675)
-## [v0.12.12](https://github.com/youzan/vant/tree/v0.12.12)
+### [v0.12.12](https://github.com/youzan/vant/tree/v0.12.12)
`2018-03-06`
**Improvements**
@@ -1422,7 +1422,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Field 在 safari 下禁用态颜色过浅的问题 [\#669](https://github.com/youzan/vant/pull/669)
* 修复 Swipe au为play 设置为 0 时不会立刻取消的问题 [\#660](https://github.com/youzan/vant/pull/660)
-## [v0.12.11](https://github.com/youzan/vant/tree/v0.12.11)
+### [v0.12.11](https://github.com/youzan/vant/tree/v0.12.11)
`2018-02-27`
**Improvements**
@@ -1436,7 +1436,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 But为n loading 样式未居中的问题 [\#645](https://github.com/youzan/vant/pull/645)
-## [v0.12.10](https://github.com/youzan/vant/tree/v0.12.10)
+### [v0.12.10](https://github.com/youzan/vant/tree/v0.12.10)
`2018-02-12`
**Improvements**
@@ -1449,7 +1449,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Stepper: 修复清空输入框时 change 事件未正确触发的问题 [\#635](https://github.com/youzan/vant/pull/635)
-## [v0.12.9](https://github.com/youzan/vant/tree/v0.12.9)
+### [v0.12.9](https://github.com/youzan/vant/tree/v0.12.9)
`2018-02-08`
**Improvements**
@@ -1465,7 +1465,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Sku message 更新时未重新渲染的问题 [\#627](https://github.com/youzan/vant/pull/627)
-## [v0.12.8](https://github.com/youzan/vant/tree/v0.12.8)
+### [v0.12.8](https://github.com/youzan/vant/tree/v0.12.8)
`2018-02-07`
**Improvements**
@@ -1481,7 +1481,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 TreeSelect 箭头位置错误 [\#605](https://github.com/youzan/vant/pull/605)
-## [v0.12.7](https://github.com/youzan/vant/tree/v0.12.7)
+### [v0.12.7](https://github.com/youzan/vant/tree/v0.12.7)
`2018-01-31`
**Improvements**
@@ -1494,7 +1494,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Field label 多行时样式错误的问题 [\#583](https://github.com/youzan/vant/pull/583)
-## [v0.12.6](https://github.com/youzan/vant/tree/v0.12.6)
+### [v0.12.6](https://github.com/youzan/vant/tree/v0.12.6)
`2018-01-25`
**Improvements**
@@ -1510,7 +1510,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
- 修复 Tab active 在初始化时未生效的问题 [\#572](https://github.com/youzan/vant/pull/572)
-## [v0.12.5](https://github.com/youzan/vant/tree/v0.12.5)
+### [v0.12.5](https://github.com/youzan/vant/tree/v0.12.5)
`2018-01-23`
**Improvements**
@@ -1525,7 +1525,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Cell: 修复 required 样式错误的问题 [\#553](https://github.com/youzan/vant/pull/553)
-## [v0.12.4](https://github.com/youzan/vant/tree/v0.12.4)
+### [v0.12.4](https://github.com/youzan/vant/tree/v0.12.4)
`2018-01-18`
**Improvements**
@@ -1539,7 +1539,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Stepper: 修改 value 值时不触发 change 事件 [\#546](https://github.com/youzan/vant/pull/546)
* Picker: 修复 visibleItemCount 属性拼写错误 [\#549](https://github.com/youzan/vant/pull/549)
-## [v0.12.3](https://github.com/youzan/vant/tree/v0.12.3)
+### [v0.12.3](https://github.com/youzan/vant/tree/v0.12.3)
`2018-01-12`
@@ -1555,7 +1555,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Picker 点击选项时无法触发 change 事件的问题 [\#532](https://github.com/youzan/vant/pull/532)
* 修复 PullRefresh 在横向滑动时也会触发的问题 [\#521](https://github.com/youzan/vant/pull/521)
-## [v0.12.2](https://github.com/youzan/vant/tree/v0.12.2)
+### [v0.12.2](https://github.com/youzan/vant/tree/v0.12.2)
`2018-01-08`
@@ -1566,7 +1566,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* NoticeBar: 修复 text 属性变化时未重新计算的问题 [\#515](https://github.com/youzan/vant/pull/515)
* AddressEdit: 修复搜索结果样式错误 [\#514](https://github.com/youzan/vant/pull/514)
-## [v0.12.1](https://github.com/youzan/vant/tree/v0.12.1)
+### [v0.12.1](https://github.com/youzan/vant/tree/v0.12.1)
`2018-01-05`
@@ -1582,7 +1582,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 CouponList 输入框样式错误 [\#502](https://github.com/youzan/vant/pull/502)
* 修复 Radio 图标无法点击的问题 [\#505](https://github.com/youzan/vant/pull/505)
-## [v0.12.0](https://github.com/youzan/vant/tree/v0.12.0)
+### [v0.12.0](https://github.com/youzan/vant/tree/v0.12.0)
`2017-12-29`
@@ -1601,7 +1601,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Tab 使用 sticky 时高度计算错误的问题 [\#493](https://github.com/youzan/vant/pull/493)
* 修复组件使用 $attrs 时继承的问题 [\#488](https://github.com/youzan/vant/pull/488)
-## [v0.11.15](https://github.com/youzan/vant/tree/v0.11.15)
+### [v0.11.15](https://github.com/youzan/vant/tree/v0.11.15)
`2017-12-25`
@@ -1618,7 +1618,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复使用 popup mixin 的组件未设定 props 类型的问题 [\#468](https://github.com/youzan/vant/pull/468)
* 修复 package.json 配置中未包含 types 目录的问题 [\#462](https://github.com/youzan/vant/pull/462)
-## [v0.11.14](https://github.com/youzan/vant/tree/v0.11.14)
+### [v0.11.14](https://github.com/youzan/vant/tree/v0.11.14)
`2017-12-21`
@@ -1632,7 +1632,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复全局引入样式时 Cell 箭头错位的问题
-## [v0.11.13](https://github.com/youzan/vant/tree/v0.11.13)
+### [v0.11.13](https://github.com/youzan/vant/tree/v0.11.13)
`2017-12-19`
@@ -1649,7 +1649,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 GoodsAction 在小屏下文字显示不全的问题 [\#446](https://github.com/youzan/vant/pull/446)
-## [v0.11.12](https://github.com/youzan/vant/tree/v0.11.12)
+### [v0.11.12](https://github.com/youzan/vant/tree/v0.11.12)
`2017-12-15`
@@ -1665,7 +1665,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Picker 底部区域无法滑动的问题 [\#433](https://github.com/youzan/vant/pull/433)
* 修复 PullRefresh 顶部内容遮挡的问题 [\#436](https://github.com/youzan/vant/pull/436)
-## [v0.11.11](https://github.com/youzan/vant/tree/v0.11.11)
+### [v0.11.11](https://github.com/youzan/vant/tree/v0.11.11)
`2017-12-13`
@@ -1682,7 +1682,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Checkbox 在 CheckboxGroup 内时 disabled 属性无法生效的问题 [\#425](https://github.com/youzan/vant/pull/425)
* 修复 AddressEdit 搜索结果展示错误 [\#417](https://github.com/youzan/vant/pull/417)
-## [v0.11.10](https://github.com/youzan/vant/tree/v0.11.10)
+### [v0.11.10](https://github.com/youzan/vant/tree/v0.11.10)
`2017-12-12`
@@ -1695,7 +1695,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Icon: 修复 'shopping-cart' 图标高度不居中的问题 [\#415](https://github.com/youzan/vant/pull/415)
-## [v0.11.9](https://github.com/youzan/vant/tree/v0.11.9)
+### [v0.11.9](https://github.com/youzan/vant/tree/v0.11.9)
`2017-12-11`
@@ -1709,7 +1709,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 raf SSR 报错的问题 [\#405](https://github.com/youzan/vant/pull/405)
* 修复 NoticeBar animationend 事件兼容问题 [\#402](https://github.com/youzan/vant/pull/402)
-## [v0.11.8](https://github.com/youzan/vant/tree/v0.11.8)
+### [v0.11.8](https://github.com/youzan/vant/tree/v0.11.8)
`2017-12-08`
@@ -1723,7 +1723,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Tab: 修复 safari 下的滚动条问题 [\#390](https://github.com/youzan/vant/pull/390)
* Tab: 修复 active 标签不能自动居中的问题 [\#394](https://github.com/youzan/vant/pull/394)
-## [v0.11.7](https://github.com/youzan/vant/tree/v0.11.7)
+### [v0.11.7](https://github.com/youzan/vant/tree/v0.11.7)
`2017-12-07`
@@ -1735,7 +1735,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Tab 初始标签滚动位置 [\#389](https://github.com/youzan/vant/pull/389) [chenjiahan](https://github.com/chenjiahan)
-## [v0.11.6](https://github.com/youzan/vant/tree/v0.11.6)
+### [v0.11.6](https://github.com/youzan/vant/tree/v0.11.6)
`2017-12-07`
@@ -1754,7 +1754,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Radio & Checkbox 禁用态样式 [\#383](https://github.com/youzan/vant/pull/383)
* 修复 Field disabled 在安卓下的显示问题 [\#388](https://github.com/youzan/vant/pull/388)
-## [v0.11.5](https://github.com/youzan/vant/tree/v0.11.5)
+### [v0.11.5](https://github.com/youzan/vant/tree/v0.11.5)
`2017-12-04`
@@ -1768,7 +1768,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Tab 删除时未自动切换 active 值的问题 [\#372](https://github.com/youzan/vant/pull/372)
-## [v0.11.4](https://github.com/youzan/vant/tree/v0.11.4)
+### [v0.11.4](https://github.com/youzan/vant/tree/v0.11.4)
`2017-11-30`
@@ -1777,7 +1777,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 新增类型定义文件,增强对 TypeScript 支持 [\#361](https://github.com/youzan/vant/pull/361)
* Toast/Dialog 自动挂载至 Vue.pro为type, 支持 this.$为ast 等方式调用 [\#363](https://github.com/youzan/vant/pull/363)
-## [v0.11.3](https://github.com/youzan/vant/tree/v0.11.3)
+### [v0.11.3](https://github.com/youzan/vant/tree/v0.11.3)
`2017-11-28`
@@ -1791,7 +1791,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Uploader: 支持继承原生属性 [\#357](https://github.com/youzan/vant/pull/357)
* 优化本地构建速度 [\#355](https://github.com/youzan/vant/pull/355)
-## [v0.11.2](https://github.com/youzan/vant/tree/v0.11.2)
+### [v0.11.2](https://github.com/youzan/vant/tree/v0.11.2)
`2017-11-24`
@@ -1799,7 +1799,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Icon: 增加 7 个新图标 [\#351](https://github.com/youzan/vant/pull/351)
-## [v0.11.1](https://github.com/youzan/vant/tree/v0.11.1)
+### [v0.11.1](https://github.com/youzan/vant/tree/v0.11.1)
`2017-11-24`
@@ -1820,7 +1820,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 SSR 过程中报错的问题 [\#344](https://github.com/youzan/vant/pull/344)
* 修复 DateTimePicker 接受非法参数时卡死的问题 [\#333](https://github.com/youzan/vant/pull/333)
-## [v0.11.0](https://github.com/youzan/vant/tree/v0.11.0)
+### [v0.11.0](https://github.com/youzan/vant/tree/v0.11.0)
`2017-11-17`
@@ -1836,7 +1836,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 新增国际化文档 [\#321](https://github.com/youzan/vant/pull/321)
* Icon: add-o 图标更正为圆角 [\#326](https://github.com/youzan/vant/pull/326)
-## [v0.10.9](https://github.com/youzan/vant/tree/v0.10.9)
+### [v0.10.9](https://github.com/youzan/vant/tree/v0.10.9)
`2017-11-15`
@@ -1848,7 +1848,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Search: 修复 box-sizing 错误 [\#312](https://github.com/youzan/vant/pull/312)
-## [v0.10.8](https://github.com/youzan/vant/tree/v0.10.8)
+### [v0.10.8](https://github.com/youzan/vant/tree/v0.10.8)
`2017-11-11`
@@ -1866,7 +1866,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 npm run dist 在 windows 下报错的问题 [\#301](https://github.com/youzan/vant/pull/301)
-## [v0.10.7](https://github.com/youzan/vant/tree/v0.10.7)
+### [v0.10.7](https://github.com/youzan/vant/tree/v0.10.7)
`2017-11-08`
@@ -1880,7 +1880,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Sku 滚动锁定问题 [\#291](https://github.com/youzan/vant/pull/291)
* 修复 Steps 超过四项时样式错误 [\#287](https://github.com/youzan/vant/pull/287)
-## [v0.10.6](https://github.com/youzan/vant/tree/v0.10.6)
+### [v0.10.6](https://github.com/youzan/vant/tree/v0.10.6)
`2017-11-06`
@@ -1894,7 +1894,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Tab 动态生成问题 [\#284](https://github.com/youzan/vant/pull/284)
* 修复 NoticeBar 在页面返回时文字消失的问题 [\#280](https://github.com/youzan/vant/pull/280)
-## [v0.10.5](https://github.com/youzan/vant/tree/v0.10.5)
+### [v0.10.5](https://github.com/youzan/vant/tree/v0.10.5)
`2017-10-30`
@@ -1907,7 +1907,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Tabbar 使用 icon 插槽时 info prop 失效的问题 [\#269](https://github.com/youzan/vant/pull/269)
* 修复 Uploader input 类型错误 [\#265](https://github.com/youzan/vant/pull/265)
-## [v0.10.4](https://github.com/youzan/vant/tree/v0.10.4)
+### [v0.10.4](https://github.com/youzan/vant/tree/v0.10.4)
`2017-10-26`
@@ -1924,7 +1924,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 PullRefreash 父元素可滚动时无法正常运行的问题 [\#247](https://github.com/youzan/vant/pull/247)
* 修复 CouponList 空列表样式一直存在的问题 [\#246](https://github.com/youzan/vant/pull/246)
-## [v0.10.3](https://github.com/youzan/vant/tree/v0.10.3)
+### [v0.10.3](https://github.com/youzan/vant/tree/v0.10.3)
`2017-10-25`
@@ -1942,7 +1942,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 popup 被依赖时未自动引入样式的问题 [\#231](https://github.com/youzan/vant/pull/231)
* 修复 PullRefresh 为uchcancel 事件名拼写错误 [\#239](https://github.com/youzan/vant/pull/239)
-## [v0.10.2](https://github.com/youzan/vant/tree/v0.10.2)
+### [v0.10.2](https://github.com/youzan/vant/tree/v0.10.2)
`2017-10-20`
@@ -1955,7 +1955,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复组件间样式依赖分析遗漏的问题 [\#224](https://github.com/youzan/vant/pull/224)
-## [v0.10.1](https://github.com/youzan/vant/tree/v0.10.1)
+### [v0.10.1](https://github.com/youzan/vant/tree/v0.10.1)
`2017-10-18`
@@ -1973,7 +1973,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Popup modal 层在某些情况下无法展示的问题 [\#211](https://github.com/youzan/vant/pull/211)
* 修复 Waterfall 重复绑定事件的问题
-## [v0.10.0](https://github.com/youzan/vant/tree/v0.10.0)
+### [v0.10.0](https://github.com/youzan/vant/tree/v0.10.0)
`2017-10-13`
@@ -1994,7 +1994,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 ImagePreview 图片加载过程中跳动的问题 [\#201](https://github.com/youzan/vant/pull/201)
* 修复 Field 组件 type 为 textarea 且 display none 时高度计算错误的问题 [\#181](https://github.com/youzan/vant/issues/181)
-## [v0.9.12](https://github.com/youzan/vant/tree/v0.9.12)
+### [v0.9.12](https://github.com/youzan/vant/tree/v0.9.12)
`2017-10-11`
@@ -2002,7 +2002,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Search 样式问题 [\#191](https://github.com/youzan/vant/pull/191)
-## [v0.9.11](https://github.com/youzan/vant/tree/v0.9.11)
+### [v0.9.11](https://github.com/youzan/vant/tree/v0.9.11)
`2017-10-11`
@@ -2016,7 +2016,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Field type 为 textarea 且 display none 时高度计算错误的问题 [\#188](https://github.com/youzan/vant/pull/188)
* 修复 windows 下项目编译失败的问题 [\#185](https://github.com/youzan/vant/pull/182)
-## [v0.9.10](https://github.com/youzan/vant/tree/v0.9.10)
+### [v0.9.10](https://github.com/youzan/vant/tree/v0.9.10)
`2017-10-09`
@@ -2040,7 +2040,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复文档在部分低版本浏览器路由失效的问题 [\#158](https://github.com/youzan/vant/pull/158)
* 修复文档中遗漏 SwipeItem 组件引入方式的问题 [\#167](https://github.com/youzan/vant/pull/167)
-## [v0.9.9](https://github.com/youzan/vant/tree/v0.9.9)
+### [v0.9.9](https://github.com/youzan/vant/tree/v0.9.9)
`2017-09-26`
@@ -2053,7 +2053,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 packages.json 中 license 标注错误 [\#144](https://github.com/youzan/vant/pull/144)
* 修复 Waterfall 滚动计算错误的问题 [\#145](https://github.com/youzan/vant/pull/145)
-## [v0.9.8](https://github.com/youzan/vant/tree/v0.9.8)
+### [v0.9.8](https://github.com/youzan/vant/tree/v0.9.8)
`2017-09-24`
@@ -2066,7 +2066,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Sku 留言渲染错误 [\#142](https://github.com/youzan/vant/pull/142)
-## [v0.9.7](https://github.com/youzan/vant/tree/v0.9.7)
+### [v0.9.7](https://github.com/youzan/vant/tree/v0.9.7)
`2017-09-21`
@@ -2074,7 +2074,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Checkbox: 支持 shape 属性 [\#137](https://github.com/youzan/vant/pull/137)
-## [v0.9.6](https://github.com/youzan/vant/tree/v0.9.6)
+### [v0.9.6](https://github.com/youzan/vant/tree/v0.9.6)
`2017-09-20`
@@ -2088,7 +2088,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 ImagePreview 滑动后无法展示图片的问题 [\#126](https://github.com/youzan/vant/issues/126)
* 修复 reset.css 编译失败的问题 [\#136](https://github.com/youzan/vant/pull/136)
-## [v0.9.4](https://github.com/youzan/vant/tree/v0.9.4)
+### [v0.9.4](https://github.com/youzan/vant/tree/v0.9.4)
`2017-09-15`
@@ -2101,7 +2101,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 But为n 同时使用 disabled 和 bot为mAction 属性时颜色错误的问题 [\#131](https://github.com/youzan/vant/pull/131)
* 修复 But为n 不可用状态下 acitive 背景色错误的问题 [\#132](https://github.com/youzan/vant/pull/132)
-## [v0.9.3](https://github.com/youzan/vant/tree/v0.9.3)
+### [v0.9.3](https://github.com/youzan/vant/tree/v0.9.3)
`2017-09-13`
@@ -2115,7 +2115,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复部分组件样式依赖 reset.css 的问题 [\#128](https://github.com/youzan/vant/pull/128)
-## [v0.9.2](https://github.com/youzan/vant/tree/v0.9.2)
+### [v0.9.2](https://github.com/youzan/vant/tree/v0.9.2)
`2017-09-08`
@@ -2147,7 +2147,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Toast: 支持 loading 和 text 属性同时使用,优化渲染性能 [\#114](https://github.com/youzan/vant/pull/114)
* Toast:布局方式改为 Flex 布局 [\#114](https://github.com/youzan/vant/pull/114)
-## [v0.8.8](https://github.com/youzan/vant/tree/v0.8.8)
+### [v0.8.8](https://github.com/youzan/vant/tree/v0.8.8)
`2017-09-01`
@@ -2164,7 +2164,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 make init 命令报错的问题 [\#97](https://github.com/youzan/vant/pull/97)
-## [v0.8.7](https://github.com/youzan/vant/tree/v0.8.7)
+### [v0.8.7](https://github.com/youzan/vant/tree/v0.8.7)
`2017-08-29`
@@ -2176,7 +2176,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Progress: 简化 DOM 结构 [\#90](https://github.com/youzan/vant/pull/90)
* SwipeCell: 性能优化,补充单元测试 [\#91](https://github.com/youzan/vant/pull/91)
-## [v0.8.6](https://github.com/youzan/vant/tree/v0.8.6)
+### [v0.8.6](https://github.com/youzan/vant/tree/v0.8.6)
`2017-08-24`
@@ -2191,7 +2191,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 DatetimePicker 初始值错误的问题 [\#89](https://github.com/youzan/vant/pull/89)
-## [v0.8.5](https://github.com/youzan/vant/tree/v0.8.5)
+### [v0.8.5](https://github.com/youzan/vant/tree/v0.8.5)
`2017-08-21`
@@ -2211,7 +2211,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Field au为size 高度错误的问题 [\#78](https://github.com/youzan/vant/pull/78)
* 修复 Dialog z-index 错误的问题 [\#77](https://github.com/youzan/vant/pull/77)
-## [v0.7.8](https://github.com/youzan/vant/tree/v0.7.8)
+### [v0.7.8](https://github.com/youzan/vant/tree/v0.7.8)
`2017-08-10`
@@ -2227,7 +2227,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 DatetimePicker cancel 事件无法触发的问题 [\#45](https://github.com/youzan/vant/issues/45)
* 修复 utils 编译时未转成 ES5 的问题 [\#67](https://github.com/youzan/vant/pull/67)
-## [v0.7.2](https://github.com/youzan/vant/tree/v0.7.2)
+### [v0.7.2](https://github.com/youzan/vant/tree/v0.7.2)
`2017-07-31`
@@ -2246,7 +2246,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Switch:增加过渡动画效果 [\#59](https://github.com/youzan/vant/pull/59) [BosenY](https://github.com/BosenY)
* Card:支持 centered 属性 [\#54](https://github.com/youzan/vant/pull/54)
-## [v0.6.6](https://github.com/youzan/vant/tree/v0.6.6)
+### [v0.6.6](https://github.com/youzan/vant/tree/v0.6.6)
`2017-07-15`
@@ -2257,7 +2257,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* Card:支持 thumb 插槽 [\#48](https://github.com/youzan/vant/pull/48)
* Field:支持 blur 事件,新增 icon 插槽 [\#53](https://github.com/youzan/vant/pull/53)
-## [v0.6.2](https://github.com/youzan/vant/tree/v0.6.2)
+### [v0.6.2](https://github.com/youzan/vant/tree/v0.6.2)
`2017-06-26`
@@ -2270,7 +2270,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复 Toast 样式问题 [\#42](https://github.com/youzan/vant/pull/42)
* 修复人民币符号在 iOS 下显示问题 [\#44](https://github.com/youzan/vant/pull/44)
-## [v0.6.0](https://github.com/youzan/vant/tree/v0.6.0)
+### [v0.6.0](https://github.com/youzan/vant/tree/v0.6.0)
`2017-06-15`
@@ -2281,7 +2281,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 新增 SwipeCell 组件 [\#39](https://github.com/youzan/vant/pull/39)
* 新增 Search 组件微杂志样式 [\#38](https://github.com/youzan/vant/pull/38)
-## [v0.5.8](https://github.com/youzan/vant/tree/v0.5.8)
+### [v0.5.8](https://github.com/youzan/vant/tree/v0.5.8)
`2017-05-25`
@@ -2296,7 +2296,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 修复长按图片后隐藏的问题 [\#32](https://github.com/youzan/vant/pull/32)
-## [v0.5.4](https://github.com/youzan/vant/tree/v0.5.4)
+### [v0.5.4](https://github.com/youzan/vant/tree/v0.5.4)
`2017-05-09`
@@ -2311,7 +2311,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
* 新增 reset.css [\#27](https://github.com/youzan/vant/pull/27)
* Cell: 新增 right-icon 插槽 [\#27](https://github.com/youzan/vant/pull/27)
-## [v0.5.2](https://github.com/youzan/vant/tree/v0.5.2)
+### [v0.5.2](https://github.com/youzan/vant/tree/v0.5.2)
`2017-04-26`
diff --git a/docs/markdown/contribution.zh-CN.md b/docs/markdown/contribution.zh-CN.md
index 6ec67e4c9..e3d59e9c3 100644
--- a/docs/markdown/contribution.zh-CN.md
+++ b/docs/markdown/contribution.zh-CN.md
@@ -1,4 +1,6 @@
-## 开发指南
+# 开发指南
+
+### 介绍
首先感谢你使用 Vant。
@@ -90,55 +92,3 @@ packages
├─ index.js # 所有组件入口
└─ index.less # 所有组件样式
```
-
-### 组件文档
-
-组件文档采用 markdown 格式,内容包括使用示例以及 `API` 等。
-
-##### 1. 标题规范
-
-文档标题从 `h2`(即 `##` 标题 )开始,每往下一级多加一个 `#` 号。
-
-##### 2. 组件描述
-
-大标题下面是对组件的一句话简要描述。
-
-##### 3. 使用指南
-
-如果组件需要使用指南,放在组件描述下方,另起一个二级标题。
-
-##### 4. 代码演示
-
-书写代码演示时,建议从简单用法开始介绍,不要上来就同时使用一大堆 API,会让人觉得难以上手。并且一个示例只演示一个 API 的使用方法,如无特殊需求不要在一个示例中同时演示多个 API 混合使用。
-
-```html
-
- Large
-
-```
-
-```javascript
-export default {
- data() {
- return {
- size: 'large'
- };
- }
-};
-```
-
-#### 5. API 说明
-
-组件的 API 说明以表格的形式书写,表格包含以下列:
-
-| 参数 | 说明 | 类型 | 默认值 |
-| ------------ | ------------- | -------- | ---------- |
-| visible | 是否可见 | `Boolean` | `false` |
-
-#### 6. Event 说明
-
-组件的 Event 说明,请以表格的形式书写,表格包含以下列:
-
-| 事件名 | 说明 | 参数 |
-|-----------|-----------|-----------|
-| click | 点击按钮时触发 | event:事件对象 |
diff --git a/docs/markdown/design.zh-CN.md b/docs/markdown/design.zh-CN.md
index cfc2505dd..86392d083 100644
--- a/docs/markdown/design.zh-CN.md
+++ b/docs/markdown/design.zh-CN.md
@@ -1,4 +1,6 @@
-## 设计资源
+# 设计资源
+
+### 介绍
这里提供了 Vant 现有的设计资源,更多资源还在整理中。
diff --git a/docs/markdown/intro.en-US.md b/docs/markdown/intro.en-US.md
index a447c5123..55bca0fbc 100644
--- a/docs/markdown/intro.en-US.md
+++ b/docs/markdown/intro.en-US.md
@@ -1,9 +1,11 @@
-
-

-
Vant
-
Mobile UI Components built on Vue
+
+
+

+
Vant
+
Mobile UI Components built on Vue
+
-
+
### Features
* 50+ Reusable components
diff --git a/docs/markdown/intro.zh-CN.md b/docs/markdown/intro.zh-CN.md
index 4fe1f25f5..3fbf321d0 100644
--- a/docs/markdown/intro.zh-CN.md
+++ b/docs/markdown/intro.zh-CN.md
@@ -1,7 +1,9 @@
-
-

-
Vant
-
轻量、可靠的移动端 Vue 组件库
+
+
+

+
Vant
+
轻量、可靠的移动端 Vue 组件库
+
### 特性
diff --git a/docs/markdown/quickstart.en-US.md b/docs/markdown/quickstart.en-US.md
index 42adbaeda..9713c387d 100644
--- a/docs/markdown/quickstart.en-US.md
+++ b/docs/markdown/quickstart.en-US.md
@@ -1,4 +1,4 @@
-## Quickstart
+# Quickstart
### Starter kit
diff --git a/docs/markdown/quickstart.zh-CN.md b/docs/markdown/quickstart.zh-CN.md
index 79297c475..cbdbfc426 100644
--- a/docs/markdown/quickstart.zh-CN.md
+++ b/docs/markdown/quickstart.zh-CN.md
@@ -1,4 +1,4 @@
-## 快速上手
+# 快速上手
### 脚手架
diff --git a/docs/markdown/style-guide.zh-CN.md b/docs/markdown/style-guide.zh-CN.md
index 4f766d990..ae2c1706c 100644
--- a/docs/markdown/style-guide.zh-CN.md
+++ b/docs/markdown/style-guide.zh-CN.md
@@ -1,4 +1,6 @@
-## 风格指南
+# 风格指南
+
+### 介绍
在参与 Vant 开发时,请遵守约定的单文件组件风格指南,指南内容节选自 [Vue 官方风格指南](https://cn.vuejs.org/v2/style-guide)
diff --git a/docs/markdown/theme.en-US.md b/docs/markdown/theme.en-US.md
index de001d06c..1a71620c0 100644
--- a/docs/markdown/theme.en-US.md
+++ b/docs/markdown/theme.en-US.md
@@ -1,4 +1,6 @@
-## Custom Theme
+# Custom Theme
+
+### Intro
`Vant` provides a set of default themes, if you want to custom the theme color or other styles, you can use the following methods:
diff --git a/docs/markdown/theme.zh-CN.md b/docs/markdown/theme.zh-CN.md
index 4a153a54d..e058249c5 100644
--- a/docs/markdown/theme.zh-CN.md
+++ b/docs/markdown/theme.zh-CN.md
@@ -1,6 +1,8 @@
-## 定制主题
+# 定制主题
-`Vant`提供了一套默认主题,CSS 命名采用 BEM 的风格,方便使用者覆盖样式。如果你想完全替换主题色或者其他样式,可以使用下面的方法:
+### 介绍
+
+`Vant`提供了一套默认主题,CSS 命名采用 BEM 的风格,方便使用者覆盖样式。如果你想完全替换主题色或者其他样式,可以使用下面提供的方法
### 示例工程
diff --git a/docs/src/DocsApp.vue b/docs/src/DocsApp.vue
index 4342223b3..36b4c09f6 100644
--- a/docs/src/DocsApp.vue
+++ b/docs/src/DocsApp.vue
@@ -48,7 +48,7 @@ export default {
diff --git a/docs/src/WapApp.vue b/docs/src/WapApp.vue
index 645acd8af..79d8466f1 100644
--- a/docs/src/WapApp.vue
+++ b/docs/src/WapApp.vue
@@ -4,7 +4,6 @@
v-show="title"
class="van-doc-nav-bar"
:title="title"
- :border="false"
:left-arrow="showNav"
@click-left="onBack"
>
@@ -71,7 +70,7 @@ body {
color: @text-color;
font-family: 'PingFang SC', Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, Arial, sans-serif;
line-height: 1;
- background-color: #f2f3f5;
+ background-color: #f8f8f8;
-webkit-font-smoothing: antialiased;
}
diff --git a/docs/src/doc.config.js b/docs/src/doc.config.js
index d611951a8..ef5cf8e29 100644
--- a/docs/src/doc.config.js
+++ b/docs/src/doc.config.js
@@ -11,8 +11,6 @@ module.exports = {
href: '#/'
},
nav: {
- 'Vue 组件': 'https://youzan.github.io/vant/',
- '小程序组件': 'https://youzan.github.io/vant-weapp/',
lang: {
text: 'En',
from: 'zh-CN',
diff --git a/package.json b/package.json
index c4ab912b7..cb30a4274 100644
--- a/package.json
+++ b/package.json
@@ -70,17 +70,17 @@
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/preset-typescript": "^7.3.3",
- "@types/jest": "^24.0.12",
- "@vant/doc": "^1.0.26",
+ "@types/jest": "^24.0.13",
+ "@vant/doc": "^2.0.0",
"@vant/eslint-config": "^1.1.2",
- "@vant/markdown-loader": "^1.0.3",
+ "@vant/markdown-loader": "^2.0.0",
"@vue/babel-preset-jsx": "^1.0.0",
"@vue/server-test-utils": "^1.0.0-beta.29",
"@vue/test-utils": "^1.0.0-beta.29",
"autoprefixer": "^9.5.1",
"babel-jest": "^24.8.0",
- "babel-loader": "^8.0.4",
- "codecov": "^3.3.0",
+ "babel-loader": "^8.0.6",
+ "codecov": "^3.5.0",
"cross-env": "^5.2.0",
"css-loader": "^2.1.1",
"csso": "^3.5.1",
@@ -89,12 +89,12 @@
"fast-glob": "^2.2.4",
"gh-pages": "^2.0.1",
"html-webpack-plugin": "3.2.0",
- "husky": "^2.2.0",
+ "husky": "^2.3.0",
"jest": "^24.8.0",
"jest-serializer-vue": "^2.0.2",
"less": "^3.8.1",
"less-loader": "^5.0.0",
- "lint-staged": "^8.1.6",
+ "lint-staged": "^8.1.7",
"markdown-vetur": "0.0.5",
"postcss": "^7.0.16",
"postcss-loader": "^3.0.0",
@@ -117,7 +117,7 @@
"vue-server-renderer": "^2.6.10",
"vue-template-compiler": "2.6.10",
"vue-template-es2015-compiler": "^1.9.1",
- "webpack": "^4.30.0",
+ "webpack": "^4.31.0",
"webpack-cli": "^3.3.2",
"webpack-dev-server": "^3.3.1"
},
diff --git a/packages/action-sheet/en-US.md b/packages/action-sheet/en-US.md
index bbfb87e21..9c98571a5 100644
--- a/packages/action-sheet/en-US.md
+++ b/packages/action-sheet/en-US.md
@@ -1,4 +1,4 @@
-## ActionSheet
+# ActionSheet
### Install
``` javascript
@@ -7,9 +7,9 @@ import { ActionSheet } from 'vant';
Vue.use(ActionSheet);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
Use `actions` prop to set options of action-sheet.
@@ -43,7 +43,7 @@ export default {
}
```
-#### Status
+### Status
```html
```
-#### ActionSheet with title
+### ActionSheet with title
```html
@@ -87,6 +87,8 @@ export default {
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/action-sheet/zh-CN.md b/packages/action-sheet/zh-CN.md
index 4e1ab6fc3..a1ba806a5 100644
--- a/packages/action-sheet/zh-CN.md
+++ b/packages/action-sheet/zh-CN.md
@@ -1,15 +1,15 @@
-## ActionSheet 上拉菜单
+# ActionSheet 上拉菜单
-### 使用指南
+### 引入
``` javascript
import { ActionSheet } from 'vant';
Vue.use(ActionSheet);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
`ActionSheet`通过`actions`数组来定义展示的选项,数组的每一项是一个对象,对象属性见文档下方表格。
@@ -44,7 +44,7 @@ export default {
}
```
-#### 选项状态
+### 选项状态
选项可以设置为加载状态或禁用状态
@@ -70,7 +70,7 @@ export default {
}
```
-#### 展示取消按钮
+### 展示取消按钮
设置`cancelText`属性后,会在底部展示取消按钮,点击后关闭当前菜单
@@ -84,7 +84,7 @@ export default {
/>
```
-#### 展示标题栏
+### 展示标题栏
通过设置`title`属性展示标题栏,同时可以使用插槽自定义菜单内容
@@ -94,6 +94,8 @@ export default {
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/address-edit/en-US.md b/packages/address-edit/en-US.md
index 187626ee2..d8050b792 100644
--- a/packages/address-edit/en-US.md
+++ b/packages/address-edit/en-US.md
@@ -1,4 +1,4 @@
-## AddressEdit
+# AddressEdit
### Install
@@ -8,9 +8,9 @@ import { AddressEdit } from 'vant';
Vue.use(AddressEdit);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
```
-#### Initial Value
+### Initial Value
To have a selected value,simply pass the `code` of target area to `value` property.
@@ -27,7 +30,7 @@ To have a selected value,simply pass the `code` of target area to `value` prop
```
-#### Columns Number
+### Columns Number
`columns-num` property is used to config number of columns to be displayed. This component has 3 columns corresponding to a 3 level picker by default.
Set `columns-num` with 2, you'll have a 2 level picker.
@@ -36,6 +39,7 @@ Set `columns-num` with 2, you'll have a 2 level picker.
```
+## API
### Props
@@ -67,9 +71,7 @@ Use ref to get area instance and call instance methods
|------|------|------|------|
| reset | - | - | Reset all options |
-### Data Structure
-
-#### areaList
+### areaList Data Structure
An object contains three properties: `province_list`, `city_list` and `county_list`.
Each property is a simple key-value object, key is a 6-bit code of the area of which first two bits stand for the province or state, middle two bits are used as city code and the last two are district code, value is the name of the area. If the code stands for an area that has sub-areas, lower bits of it will be filled with 0.
@@ -100,7 +102,8 @@ Example of `AreaList`
All code of China: [Area.json](https://github.com/youzan/vant/blob/dev/packages/area/demo/area-en.js)
-#### argument of callback function confirm
+### argument of callback function confirm
+
An array contains selected area objects.
`code` - code of selected area, `name` - name of selected area
diff --git a/packages/area/zh-CN.md b/packages/area/zh-CN.md
index 0a3b55333..d3d285a8e 100644
--- a/packages/area/zh-CN.md
+++ b/packages/area/zh-CN.md
@@ -1,7 +1,10 @@
-## Area 省市区选择
+# Area 省市区选择
+
+### 介绍
+
省市取选择组件通常与 [弹出层](#/zh-CN/popup) 组件配合使用
-### 使用指南
+### 引入
```javascript
import { Area } from 'vant';
@@ -9,9 +12,9 @@ import { Area } from 'vant';
Vue.use(Area);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
要初始化一个`Area`组件,你需要传入一个`area-list`属性,数据格式具体可看下面数据格式章节
@@ -19,7 +22,7 @@ Vue.use(Area);
```
-#### 选中省市区
+### 选中省市区
如果想选中某个省市区,需要传入一个`value`属性,绑定对应的省市区`code`
@@ -27,7 +30,7 @@ Vue.use(Area);
```
-#### 配置显示列
+### 配置显示列
可以通过`columns-num`属性配置省市区显示的列数,默认情况下会显示省市区,当你设置为`2`,则只会显示省市选择
@@ -35,6 +38,8 @@ Vue.use(Area);
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
@@ -65,9 +70,7 @@ Vue.use(Area);
|------|------|------|------|
| reset | - | - | 重置所有选项到第一项 |
-### 数据格式
-
-#### 省市区列表数据格式
+### 省市区列表数据格式
整体是一个 Object,包含 `province_list`, `city_list`, `county_list` 三个 key。
@@ -104,7 +107,7 @@ Vue.use(Area);
完整数据见 [Area.json](https://github.com/youzan/vant/blob/dev/packages/area/demo/area.js)
-#### 点击完成时返回的数据格式
+### 点击完成时返回的数据格式
返回的数据整体为一个数组,数组内包含 `columnsNum` 个数据, 每个数据对应一列选项中被选中的数据。
diff --git a/packages/button/en-US.md b/packages/button/en-US.md
index 85e4ab638..02df1af20 100644
--- a/packages/button/en-US.md
+++ b/packages/button/en-US.md
@@ -1,15 +1,16 @@
-## Button
+# Button
### Install
+
``` javascript
import { Button } from 'vant';
Vue.use(Button);
```
-### Usage
+## Usage
-#### Type
+### Type
```html
Default
@@ -19,28 +20,28 @@ Vue.use(Button);
Warning
```
-#### Plain
+### Plain
```html
Primary
Danger
```
-#### Hairline
+### Hairline
```html
Hairline
Hairline
```
-#### Disabled
+### Disabled
```html
Diabled
Diabled
```
-#### Loading
+### Loading
```html
@@ -52,14 +53,14 @@ Vue.use(Button);
/>
```
-#### Shape
+### Shape
```html
Square
Round
```
-#### Size
+### Size
```html
Large
@@ -68,6 +69,8 @@ Vue.use(Button);
Mini
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/button/zh-CN.md b/packages/button/zh-CN.md
index 94c7dd362..514cb8da9 100644
--- a/packages/button/zh-CN.md
+++ b/packages/button/zh-CN.md
@@ -1,15 +1,16 @@
-## Button 按钮
+# Button 按钮
+
+### 引入
-### 使用指南
``` javascript
import { Button } from 'vant';
Vue.use(Button);
```
-### 代码演示
+## 代码演示
-#### 按钮类型
+### 按钮类型
支持`default`、`primary`、`info`、`warning`、`danger`五种类型,默认为`default`
@@ -21,7 +22,7 @@ Vue.use(Button);
危险按钮
```
-#### 朴素按钮
+### 朴素按钮
通过`plain`属性将按钮设置为朴素按钮,朴素按钮的文字为按钮颜色,背景为白色。
@@ -30,7 +31,7 @@ Vue.use(Button);
朴素按钮
```
-#### 细边框
+### 细边框
设置`hairline`属性可以开启 0.5px 边框,基于伪类实现
@@ -39,7 +40,7 @@ Vue.use(Button);
细边框按钮
```
-#### 禁用状态
+### 禁用状态
通过`disabled`属性来禁用按钮,此时按钮不可点击
@@ -48,7 +49,7 @@ Vue.use(Button);
禁用状态
```
-#### 加载状态
+### 加载状态
```html
@@ -60,14 +61,14 @@ Vue.use(Button);
/>
```
-#### 按钮形状
+### 按钮形状
```html
方形按钮
圆形按钮
```
-#### 按钮尺寸
+### 按钮尺寸
支持`large`、`normal`、`small`、`mini`四种尺寸,默认为`normal`
@@ -78,6 +79,8 @@ Vue.use(Button);
迷你按钮
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/card/en-US.md b/packages/card/en-US.md
index 837704f78..aed4886c0 100644
--- a/packages/card/en-US.md
+++ b/packages/card/en-US.md
@@ -1,4 +1,4 @@
-## Card
+# Card
### Install
``` javascript
@@ -7,9 +7,9 @@ import { Card } from 'vant';
Vue.use(Card);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
```
-#### Advanced Usage
+### Advanced Usage
Use slot to custom content.
@@ -42,6 +42,8 @@ Use slot to custom content.
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/card/zh-CN.md b/packages/card/zh-CN.md
index a124f871d..aee5fbb60 100644
--- a/packages/card/zh-CN.md
+++ b/packages/card/zh-CN.md
@@ -1,15 +1,15 @@
-## Card 卡片
+# Card 卡片
-### 使用指南
+### 引入
``` javascript
import { Card } from 'vant';
Vue.use(Card);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
```
-#### 高级用法
+### 高级用法
可以通过具名插槽添加定制内容
@@ -42,6 +42,8 @@ Vue.use(Card);
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/cell/en-US.md b/packages/cell/en-US.md
index 70e148cd7..4306250ee 100644
--- a/packages/cell/en-US.md
+++ b/packages/cell/en-US.md
@@ -1,4 +1,4 @@
-## Cell
+# Cell
### Install
``` javascript
@@ -7,9 +7,9 @@ import { Cell, CellGroup } from 'vant';
Vue.use(Cell).use(CellGroup);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -18,7 +18,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### Size
+### Size
```html
@@ -27,7 +27,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### Left Icon
+### Left Icon
```html
@@ -35,7 +35,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### Value only
+### Value only
```html
@@ -43,7 +43,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### Link
+### Link
```html
@@ -53,7 +53,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### Router
+### Router
```html
@@ -62,7 +62,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### Group Title
+### Group Title
```html
@@ -73,7 +73,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### Advanced Usage
+### Advanced Usage
```html
@@ -90,6 +90,8 @@ Vue.use(Cell).use(CellGroup);
```
+## API
+
### CellGroup Props
| Attribute | Description | Type | Default |
diff --git a/packages/cell/zh-CN.md b/packages/cell/zh-CN.md
index f545be4da..e773c27ce 100644
--- a/packages/cell/zh-CN.md
+++ b/packages/cell/zh-CN.md
@@ -1,15 +1,15 @@
-## Cell 单元格
+# Cell 单元格
-### 使用指南
+### 引入
``` javascript
import { Cell, CellGroup } from 'vant';
Vue.use(Cell).use(CellGroup);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
`Cell`可以单独使用,也可以与`CellGroup`搭配使用。`CellGroup`可以为`Cell`提供上下外边框。
@@ -20,7 +20,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### 单元格大小
+### 单元格大小
通过`size`属性可以控制单元格的大小
@@ -29,7 +29,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### 展示图标
+### 展示图标
通过`icon`属性在标题左侧展示图标
@@ -37,7 +37,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### 只设置 value
+### 只设置 value
只设置`value`时会向左对齐
@@ -45,7 +45,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### 展示箭头
+### 展示箭头
传入`is-link`属性则会在右侧显示箭头,并且可以通过传入`arrow-direction`属性控制箭头方向
@@ -55,7 +55,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### 页面跳转
+### 页面跳转
可以通过`url`属性进行页面跳转,或通过`to`属性进行 vue-router 跳转
@@ -64,7 +64,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### 分组标题
+### 分组标题
通过`CellGroup`的`title`属性可以指定分组标题
@@ -77,7 +77,7 @@ Vue.use(Cell).use(CellGroup);
```
-#### 高级用法
+### 高级用法
如以上用法不能满足你的需求,可以使用对应的`slot`来自定义显示的内容
@@ -94,6 +94,8 @@ Vue.use(Cell).use(CellGroup);
```
+## API
+
### CellGroup Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/checkbox/en-US.md b/packages/checkbox/en-US.md
index 0ebaf9e77..bcfcd1932 100644
--- a/packages/checkbox/en-US.md
+++ b/packages/checkbox/en-US.md
@@ -1,4 +1,4 @@
-## Checkbox
+# Checkbox
### Install
``` javascript
@@ -7,9 +7,9 @@ import { Checkbox, CheckboxGroup } from 'vant';
Vue.use(Checkbox).use(CheckboxGroup);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
Checkbox
@@ -25,19 +25,19 @@ export default {
};
```
-#### Disabled
+### Disabled
```html
Checkbox
```
-#### Custom Color
+### Custom Color
```html
Checkbox
```
-#### Custom Icon
+### Custom Icon
Use icon slot to custom icon
@@ -64,7 +64,7 @@ export default {
}
```
-#### Checkbox Group
+### Checkbox Group
When Checkboxes are inside a CheckboxGroup, the checked checkboxes's name is an array and bound with CheckboxGroup by v-model.
@@ -91,7 +91,7 @@ export default {
};
```
-#### Maximum amount of checked options
+### Maximum amount of checked options
```html
@@ -105,7 +105,7 @@ export default {
```
-#### Inside a Cell
+### Inside a Cell
```html
@@ -133,6 +133,7 @@ export default {
}
```
+## API
### Checkbox Props
diff --git a/packages/checkbox/zh-CN.md b/packages/checkbox/zh-CN.md
index 8ab8ec042..060d5d718 100644
--- a/packages/checkbox/zh-CN.md
+++ b/packages/checkbox/zh-CN.md
@@ -1,15 +1,15 @@
-## Checkbox 复选框
+# Checkbox 复选框
-### 使用指南
+### 引入
``` javascript
import { Checkbox, CheckboxGroup } from 'vant';
Vue.use(Checkbox).use(CheckboxGroup);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
通过`v-model`绑定 checkbox 的勾选状态
@@ -27,19 +27,19 @@ export default {
};
```
-#### 禁用状态
+### 禁用状态
```html
复选框
```
-#### 自定义颜色
+### 自定义颜色
```html
复选框
```
-#### 自定义图标
+### 自定义图标
通过 icon 插槽自定义图标,可以通过 `slot-scope` 判断是否为选中状态
@@ -66,7 +66,7 @@ export default {
}
```
-#### 复选框组
+### 复选框组
与`van-checkbox-group`一起使用,选中值是一个数组,通过`v-model`绑定在`van-checkbox-group`上,数组中的项即为选中的`Checkbox`的`name`属性设置的值
@@ -93,7 +93,7 @@ export default {
};
```
-#### 设置最大可选数
+### 设置最大可选数
```html
@@ -107,7 +107,7 @@ export default {
```
-#### 搭配单元格组件使用
+### 搭配单元格组件使用
此时你需要再引入`Cell`和`CellGroup`组件,并通过 checkbox 的 toggle 方法手动触发切换
@@ -137,6 +137,8 @@ export default {
}
```
+## API
+
### Checkbox Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/circle/en-US.md b/packages/circle/en-US.md
index 408f816f6..8d00c40d0 100644
--- a/packages/circle/en-US.md
+++ b/packages/circle/en-US.md
@@ -1,4 +1,4 @@
-## Circle
+# Circle
### Install
``` javascript
@@ -7,9 +7,9 @@ import { Circle } from 'vant';
Vue.use(Circle);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
```
+## API
### Props
diff --git a/packages/circle/zh-CN.md b/packages/circle/zh-CN.md
index f4541c54d..4894d52af 100644
--- a/packages/circle/zh-CN.md
+++ b/packages/circle/zh-CN.md
@@ -1,15 +1,15 @@
-## Circle 环形进度条
+# Circle 环形进度条
-### 使用指南
+### 引入
``` javascript
import { Circle } from 'vant';
Vue.use(Circle);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
通过 `rate` 指定目标进度,`v-model` 代表当前进度,`speed` 控制动画速度
```html
@@ -36,7 +36,7 @@ export default {
};
```
-#### 样式定制
+### 样式定制
```html
```
+## API
### Props
diff --git a/packages/col/en-US.md b/packages/col/en-US.md
index 0ac53e4f7..76a3b7257 100644
--- a/packages/col/en-US.md
+++ b/packages/col/en-US.md
@@ -1,21 +1,23 @@
-## Layout
+# Layout
+
+### Intro
Quickly and easily create layouts with `van-row` and `van-col`
### Install
+
``` javascript
import { Row, Col } from 'vant';
Vue.use(Row).use(Col);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
Layout are based on 24-column. The attribute `span` in `Col` means the number of column the grid spans. Of course, You can use `offset` attribute to set number of spacing on the left side of the grid.
-
```html
span: 8
@@ -35,7 +37,7 @@ Layout are based on 24-column. The attribute `span` in `Col` means the number of
```
-#### Column Spacing
+### Column Spacing
Set grid spacing using `gutter` attribute. The default value is 0
@@ -48,7 +50,7 @@ Set grid spacing using `gutter` attribute. The default value is 0
```
-#### Flex Layout
+### Flex Layout
Setting `type` to `flex` to enable flex layout
@@ -84,6 +86,7 @@ Setting `type` to `flex` to enable flex layout
```
+## API
### Row Props
diff --git a/packages/col/zh-CN.md b/packages/col/zh-CN.md
index a495922e0..ed8f96fe5 100644
--- a/packages/col/zh-CN.md
+++ b/packages/col/zh-CN.md
@@ -1,17 +1,21 @@
-## Layout 布局
+# Layout 布局
-提供了`van-row`和`van-col`两个组件来进行行列布局
+### 介绍
+
+Layout 提供了`van-row`和`van-col`两个组件来进行行列布局
+
+
+### 引入
-### 使用指南
``` javascript
import { Row, Col } from 'vant';
Vue.use(Row).use(Col);
```
-### 代码演示
+## 代码演示
-#### 基本用法
+### 基本用法
Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置列所占的宽度百分比
此外,添加`offset`属性可以设置列的偏移宽度,计算方式与 span 相同
@@ -33,7 +37,7 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置
```
-#### 设置列元素间距
+### 设置列元素间距
通过`gutter`属性可以设置列元素之间的间距,默认间距为 0
@@ -45,7 +49,7 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置
```
-#### Flex 布局
+### Flex 布局
将 `type` 属性设置为 flex 可以启用 flex 布局,便于进行灵活的对齐
@@ -86,6 +90,8 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置
```
+## API
+
### Row Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/collapse/en-US.md b/packages/collapse/en-US.md
index bbb1bc2a0..966684211 100644
--- a/packages/collapse/en-US.md
+++ b/packages/collapse/en-US.md
@@ -1,4 +1,4 @@
-## Collapse
+# Collapse
### Install
``` javascript
@@ -7,9 +7,9 @@ import { Collapse, CollapseItem } from 'vant';
Vue.use(Collapse).use(CollapseItem);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
Use `v-model` to control the name of active panels
@@ -31,7 +31,7 @@ export default {
};
```
-#### Accordion
+### Accordion
In accordion mode, only one panel can be expanded at the same time.
@@ -53,7 +53,7 @@ export default {
};
```
-#### Custom title
+### Custom title
```html
@@ -71,6 +71,8 @@ export default {
```
+## API
+
### Collapse Props
| Attribute | Description | Type | Default |
diff --git a/packages/collapse/zh-CN.md b/packages/collapse/zh-CN.md
index c1743c88b..2be29b018 100644
--- a/packages/collapse/zh-CN.md
+++ b/packages/collapse/zh-CN.md
@@ -1,15 +1,15 @@
-## Collapse 折叠面板
+# Collapse 折叠面板
-### 使用指南
+### 引入
``` javascript
import { Collapse, CollapseItem } from 'vant';
Vue.use(Collapse).use(CollapseItem);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
通过`v-model`控制展开的面板列表,`activeNames`为数组格式
@@ -31,7 +31,7 @@ export default {
};
```
-#### 手风琴
+### 手风琴
通过`accordion`可以设置为手风琴模式,最多展开一个面板,此时`activeName`为字符串格式
@@ -53,7 +53,7 @@ export default {
};
```
-#### 自定义标题内容
+### 自定义标题内容
```html
@@ -72,6 +72,8 @@ export default {
```
+## API
+
### Collapse Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/contact-card/en-US.md b/packages/contact-card/en-US.md
index a60aa324f..369b7e7af 100644
--- a/packages/contact-card/en-US.md
+++ b/packages/contact-card/en-US.md
@@ -1,6 +1,7 @@
-## Contact
+# Contact
### Install
+
``` javascript
import { ContactCard, ContactList, ContactEdit } from 'vant';
@@ -10,10 +11,9 @@ Vue
.use(ContactEdit);
```
-### Usage
-
-#### Basic Usage
+## Usage
+### Basic Usage
```html
@@ -119,7 +119,7 @@ export default {
};
```
-#### Uneditable
+### Uneditable
```html
```
+## API
### ContactCard Props
@@ -163,6 +164,7 @@ export default {
| select | Triggered when select contact | item: contact object |
### ContactEdit Props
+
| Attribute | Description | Type | Default |
|------|------|------|------|------|
| contact-info | Contact Info | `Object` | `[]` |
diff --git a/packages/contact-card/zh-CN.md b/packages/contact-card/zh-CN.md
index c9bccd607..3255ce261 100644
--- a/packages/contact-card/zh-CN.md
+++ b/packages/contact-card/zh-CN.md
@@ -1,7 +1,11 @@
-## Contact 联系人
+# Contact 联系人
+
+### 介绍
+
通过 Contact 组件可以实现联系人的展示、选择、编辑等功能。
-### 使用指南
+### 引入
+
``` javascript
import { ContactCard, ContactList, ContactEdit } from 'vant';
@@ -11,9 +15,9 @@ Vue
.use(ContactEdit);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -119,7 +123,7 @@ export default {
};
```
-#### 不可编辑
+### 不可编辑
```html
```
+## API
+
### ContactCard Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
@@ -178,9 +184,7 @@ export default {
| save | 点击保存按钮时触发 | content:表单内容 |
| delete | 点击删除按钮时触发 | content:表单内容 |
-### 数据格式
-
-#### 联系人数据格式
+### 联系人数据格式
| key | 说明 | 类型 |
|------|------|------|
diff --git a/packages/coupon-list/en-US.md b/packages/coupon-list/en-US.md
index 5f16498cb..30743abf6 100644
--- a/packages/coupon-list/en-US.md
+++ b/packages/coupon-list/en-US.md
@@ -1,15 +1,16 @@
-## Coupon
+# Coupon
### Install
+
``` javascript
import { CouponCell, CouponList } from 'vant';
Vue.use(CouponCell).use(CouponList);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -65,6 +66,8 @@ export default {
}
```
+## API
+
### CouponCell Props
| Attribute | Description | Type | Default |
diff --git a/packages/coupon-list/zh-CN.md b/packages/coupon-list/zh-CN.md
index 897cb9ccf..7d8176227 100644
--- a/packages/coupon-list/zh-CN.md
+++ b/packages/coupon-list/zh-CN.md
@@ -1,15 +1,16 @@
-## Coupon 优惠券选择器
+# Coupon 优惠券选择器
+
+### 引入
-### 使用指南
``` javascript
import { CouponCell, CouponList } from 'vant';
Vue.use(CouponCell).use(CouponList);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -65,6 +66,7 @@ export default {
}
```
+## API
### CouponCell Props
@@ -103,9 +105,7 @@ export default {
| change | 优惠券切换回调 | index, 选中优惠券的索引 |
| exchange | 兑换优惠券回调 | code, 兑换码 |
-### 数据格式
-
-#### 优惠券字段说明
+### 优惠券字段说明
| key | 说明 | 类型 |
|------|------|------|
diff --git a/packages/datetime-picker/en-US.md b/packages/datetime-picker/en-US.md
index b45a5c387..b4c9375d1 100644
--- a/packages/datetime-picker/en-US.md
+++ b/packages/datetime-picker/en-US.md
@@ -1,4 +1,7 @@
-## DatetimePicker
+# DatetimePicker
+
+### Intro
+
The DatetimePicker component is usually used with [Popup](#/en-US/popup) Component.
### Install
@@ -8,9 +11,9 @@ import { DatetimePicker } from 'vant';
Vue.use(DatetimePicker);
```
-### Usage
+## Usage
-#### Choose DateTime
+### Choose DateTime
```html
@@ -76,6 +76,8 @@ export default {
};
```
+## API
+
### DropdownMenu Props
| Attribute | Description | Type | Default |
diff --git a/packages/dropdown-menu/zh-CN.md b/packages/dropdown-menu/zh-CN.md
index c79cd7659..05c97c13c 100644
--- a/packages/dropdown-menu/zh-CN.md
+++ b/packages/dropdown-menu/zh-CN.md
@@ -1,6 +1,6 @@
-## DropdownMenu 下拉菜单
+# DropdownMenu 下拉菜单
-### 使用指南
+### 引入
``` javascript
import { DropdownMenu, DropdownItem } from 'vant';
@@ -8,9 +8,9 @@ import { DropdownMenu, DropdownItem } from 'vant';
Vue.use(DropdownMenu).use(DropdownItem);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -78,6 +78,8 @@ export default {
};
```
+## API
+
### DropdownMenu Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/field/en-US.md b/packages/field/en-US.md
index a8fee3f7a..d819e85fe 100644
--- a/packages/field/en-US.md
+++ b/packages/field/en-US.md
@@ -1,15 +1,17 @@
-## Field
+# Field
### Install
+
``` javascript
import { Field } from 'vant';
Vue.use(Field);
```
-### Usage
+## Usage
+
+### Basic Usage
-#### Basic Usage
The value of field is bound with v-model.
```html
@@ -18,7 +20,8 @@ The value of field is bound with v-model.
```
-#### Custom type
+### Custom type
+
Use `type` prop to custom diffrent type fields.
```html
@@ -43,7 +46,7 @@ Use `type` prop to custom diffrent type fields.
```
-#### Disabled
+### Disabled
```html
@@ -56,7 +59,8 @@ Use `type` prop to custom diffrent type fields.
```
-#### Error info
+### Error info
+
Use `error` or `error-message` to show error info
```html
@@ -76,7 +80,8 @@ Use `error` or `error-message` to show error info
```
-#### Auto resize
+### Auto resize
+
Textarea Field can be auto resize when has `autosize` prop
```html
@@ -92,7 +97,8 @@ Textarea Field can be auto resize when has `autosize` prop
```
-#### Insert button
+### Insert button
+
Use button slot to insert button
```html
@@ -109,6 +115,8 @@ Use button slot to insert button
```
+## API
+
### Props
Field support all native properties of input tag,such as `maxlength`、`placeholder`、`autofocus`
diff --git a/packages/field/zh-CN.md b/packages/field/zh-CN.md
index 0a7907594..c941e5d19 100644
--- a/packages/field/zh-CN.md
+++ b/packages/field/zh-CN.md
@@ -1,17 +1,19 @@
-## Field 输入框
+# Field 输入框
-`input`或`textarea`的输入框。
+### 介绍
-### 使用指南
+表单中的输入框组件,支持`input`和`textarea`两种类型
+
+### 引入
``` javascript
import { Field } from 'vant';
Vue.use(Field);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
通过 v-model 绑定输入框的值
@@ -21,7 +23,7 @@ Vue.use(Field);
```
-#### 自定义类型
+### 自定义类型
根据`type`属性定义不同类型的输入框
@@ -47,7 +49,7 @@ Vue.use(Field);
```
-#### 禁用输入框
+### 禁用输入框
```html
@@ -60,7 +62,7 @@ Vue.use(Field);
```
-#### 错误提示
+### 错误提示
通过`error`或者`error-message`属性增加对应的错误提示
@@ -81,7 +83,7 @@ Vue.use(Field);
```
-#### 高度自适应
+### 高度自适应
对于 textarea,可以通过`autosize`属性设置高度自适应
@@ -98,7 +100,7 @@ Vue.use(Field);
```
-#### 插入按钮
+### 插入按钮
通过 button 插槽可以在输入框尾部插入按钮
@@ -116,6 +118,8 @@ Vue.use(Field);
```
+## API
+
### Props
Field 默认支持 Input 标签所有的原生属性,比如 `maxlength`、`placeholder`、`autofocus` 等
diff --git a/packages/goods-action/en-US.md b/packages/goods-action/en-US.md
index 994e84cb0..30863ed21 100644
--- a/packages/goods-action/en-US.md
+++ b/packages/goods-action/en-US.md
@@ -1,6 +1,7 @@
-## GoodsAction
+# GoodsAction
### Install
+
``` javascript
import {
GoodsAction,
@@ -14,8 +15,9 @@ Vue
.use(GoodsActionIcon);
```
-### Usage
-#### Basic Usage
+## Usage
+
+### Basic Usage
```html
@@ -55,7 +57,7 @@ export default {
}
```
-#### Icon info
+### Icon info
Use `info` prop to show messages in upper right corner of icon
@@ -85,14 +87,15 @@ Use `info` prop to show messages in upper right corner of icon
```
-### Props
+## API
-#### GoodsAction
+### GoodsAction Props
| Attribute | Description | Type | Default |
+|------|------|------|------|
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation, to enable those features use `viewport-fit=cover` in the `viewport` meta tag | `Boolean` | `false` |
-#### GoodsActionIcon
+### GoodsActionIcon Props
| Attribute | Description | Type | Default |
|------|------|------|------|
@@ -104,7 +107,7 @@ Use `info` prop to show messages in upper right corner of icon
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - |
| replace | If true, the navigation will not leave a history record | `Boolean` | `false` |
-#### GoodsActionButton
+### GoodsActionButton Props
| Attribute | Description | Type | Default |
|------|------|------|------|
diff --git a/packages/goods-action/zh-CN.md b/packages/goods-action/zh-CN.md
index 23da4cbee..3d572ccee 100644
--- a/packages/goods-action/zh-CN.md
+++ b/packages/goods-action/zh-CN.md
@@ -1,6 +1,7 @@
-## GoodsAction 商品导航
+# GoodsAction 商品导航
+
+### 引入
-### 使用指南
``` javascript
import {
GoodsAction,
@@ -14,8 +15,9 @@ Vue
.use(GoodsActionButton);
```
-### 代码演示
-#### 基础用法
+## 代码演示
+
+### 基础用法
```html
@@ -55,7 +57,8 @@ export default {
}
```
-#### 图标提示
+### 图标提示
+
通过`info`属性在图标右上角增加相应的提示
```html
@@ -84,15 +87,15 @@ export default {
```
-### Props
+## API
-#### GoodsAction
+### GoodsAction Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| safe-area-inset-bottom | 是否开启 iPhone X 底部安全区适配,需要在 `viewport` meta 标签中设置 `viewport-fit=cover` | `Boolean` | `false` | 1.6.15 |
-#### GoodsActionIcon
+### GoodsActionIcon Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
@@ -104,7 +107,7 @@ export default {
| to | 路由跳转对象,同 `vue-router` 的 to | `String | Object` | - | - |
| replace | 跳转时是否替换当前页面历史 | `Boolean` | `false` | - |
-#### GoodsActionButton
+### GoodsActionButton Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
diff --git a/packages/icon/en-US.md b/packages/icon/en-US.md
index 6290d052e..0f5dea7e5 100644
--- a/packages/icon/en-US.md
+++ b/packages/icon/en-US.md
@@ -1,15 +1,16 @@
-## Icon
+# Icon
### Install
+
``` javascript
import { Icon } from 'vant';
Vue.use(Icon);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
Use `name` prop to set icon name or icon URL
@@ -18,21 +19,22 @@ Use `name` prop to set icon name or icon URL
```
-#### Show Info
+### Show Info
```html
```
-#### Use local font file
+### Use local font file
+
Icon uses font file in `yzcdn.cn` by default,if you want to use the local font file,please import the following css file.
```js
import 'vant/lib/icon/local.css';
```
-#### Add custom iconfont
+### Add custom iconfont
```css
@font-face {
@@ -53,6 +55,8 @@ import 'vant/lib/icon/local.css';
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/icon/zh-CN.md b/packages/icon/zh-CN.md
index ee881d7be..92264bc6a 100644
--- a/packages/icon/zh-CN.md
+++ b/packages/icon/zh-CN.md
@@ -1,15 +1,16 @@
-## Icon 图标
+# Icon 图标
+
+### 引入
-### 使用指南
``` javascript
import { Icon } from 'vant';
Vue.use(Icon);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
`Icon`的`name`属性支持传入图标名称或图片链接
@@ -18,14 +19,14 @@ Vue.use(Icon);
```
-#### 显示徽标
+### 显示徽标
```html
```
-#### 使用本地字体文件
+### 使用本地字体文件
Icon 组件默认引用 `yzcdn.cn` 域名下的字体文件,如果想要使用本地字体文件,请引入下面的 css 文件
@@ -33,7 +34,7 @@ Icon 组件默认引用 `yzcdn.cn` 域名下的字体文件,如果想要使用
import 'vant/lib/icon/local.css';
```
-#### 自定义图标
+### 自定义图标
如果需要在现有 Icon 的基础上使用更多图标,可以引入你需要的 iconfont 对应的 ttf 文件和样式,之后就可以在 Icon 组件中直接使用
@@ -56,6 +57,8 @@ import 'vant/lib/icon/local.css';
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/image-preview/en-US.md b/packages/image-preview/en-US.md
index e10e0b7d6..292df473b 100644
--- a/packages/image-preview/en-US.md
+++ b/packages/image-preview/en-US.md
@@ -1,4 +1,4 @@
-## ImagePreview
+# ImagePreview
### Install
@@ -8,9 +8,9 @@ import { ImagePreview } from 'vant';
Vue.use(ImagePreview);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```javascript
ImagePreview([
@@ -19,7 +19,7 @@ ImagePreview([
]);
```
-#### Custom config
+### Custom config
```javascript
ImagePreview({
@@ -34,7 +34,7 @@ ImagePreview({
});
```
-#### Async Close
+### Async Close
```javascript
const instance = ImagePreview({
@@ -50,7 +50,7 @@ setTimeout(() => {
}, 1000);
```
-#### Component Call
+### Component Call
```html
{
}, 1000);
```
-#### 组件调用
+### 组件调用
如果需要在图片预览内嵌入组件或其他自定义内容,可以使用组件调用的方式,调用前需要通过 `Vue.use` 注册组件
@@ -93,6 +93,8 @@ export default {
}
```
+## API
+
### Options
通过函数调用 `ImagePreview` 时,支持传入以下选项:
diff --git a/packages/index-bar/en-US.md b/packages/index-bar/en-US.md
index 202f58f67..fb3a90aac 100644
--- a/packages/index-bar/en-US.md
+++ b/packages/index-bar/en-US.md
@@ -1,4 +1,4 @@
-## IndexBar
+# IndexBar
### Install
@@ -8,9 +8,9 @@ import { IndexBar } from 'vant';
Vue.use(IndexBar);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -28,7 +28,7 @@ Vue.use(IndexBar);
```
-#### Custom Index List
+### Custom Index List
```html
@@ -56,6 +56,8 @@ export default {
}
```
+## API
+
### IndexBar Props
| Attribute | Description | Type | Default |
diff --git a/packages/index-bar/zh-CN.md b/packages/index-bar/zh-CN.md
index 653bbe419..dae277582 100644
--- a/packages/index-bar/zh-CN.md
+++ b/packages/index-bar/zh-CN.md
@@ -1,6 +1,6 @@
-## IndexBar 索引栏
+# IndexBar 索引栏
-### 使用指南
+### 引入
``` javascript
import { IndexBar, IndexAnchor } from 'vant';
@@ -8,9 +8,9 @@ import { IndexBar, IndexAnchor } from 'vant';
Vue.use(IndexBar).use(IndexAnchor);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
点击索引栏时,会自动跳转到对应的`IndexAnchor`锚点位置
@@ -30,7 +30,7 @@ Vue.use(IndexBar).use(IndexAnchor);
```
-#### 自定义索引列表
+### 自定义索引列表
可以通过`index-list`属性自定义展示的索引字符列表,
@@ -60,6 +60,8 @@ export default {
}
```
+## API
+
### IndexBar Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/lazyload/en-US.md b/packages/lazyload/en-US.md
index 4070f468c..d930d9e6d 100644
--- a/packages/lazyload/en-US.md
+++ b/packages/lazyload/en-US.md
@@ -1,4 +1,4 @@
-## Lazyload
+# Lazyload
### Install
@@ -9,9 +9,9 @@ import { Lazyload } from 'vant';
Vue.use(Lazyload, options);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -30,14 +30,15 @@ export default {
}
```
-#### Lazyload Background Image
+### Lazyload Background Image
+
Use `v-lazy:background-image` to set background url, and declare the height of the container.
```html
```
-#### Lazyload Component
+### Lazyload Component
```html
@@ -45,6 +46,8 @@ Use `v-lazy:background-image` to set background url, and declare the height of t
```
+## API
+
### Options
| Attribute | Description | Type | Default |
diff --git a/packages/lazyload/zh-CN.md b/packages/lazyload/zh-CN.md
index 50a85689e..2ae94e406 100644
--- a/packages/lazyload/zh-CN.md
+++ b/packages/lazyload/zh-CN.md
@@ -1,6 +1,6 @@
-## Lazyload 图片懒加载
+# Lazyload 图片懒加载
-### 使用指南
+### 引入
`Lazyload` 是 `Vue` 指令,使用前需要对指令进行注册
@@ -12,9 +12,10 @@ import { Lazyload } from 'vant';
Vue.use(Lazyload, options);
```
-### 代码演示
+## 代码演示
+
+### 基础用法
-#### 基础用法
将`v-lazy`指令的值设置为你需要懒加载的图片
```html
@@ -34,7 +35,7 @@ export default {
}
```
-#### 背景图懒加载
+### 背景图懒加载
和图片懒加载不同,背景图懒加载需要使用`v-lazy:background-image`,值设置为背景图片的地址,需要注意的是必须声明容器高度。
@@ -42,7 +43,7 @@ export default {
```
-#### 懒加载模块
+### 懒加载模块
懒加载模块需要使用到`lazy-component`,将需要懒加载的内容放在`lazy-component`中即可。
@@ -52,6 +53,8 @@ export default {
```
+## API
+
### Options
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/list/en-US.md b/packages/list/en-US.md
index b89f41226..249ee86be 100644
--- a/packages/list/en-US.md
+++ b/packages/list/en-US.md
@@ -1,16 +1,20 @@
-## List
+# List
+
+### Intro
+
A list component to show items and control loading status.
### Install
+
``` javascript
import { List } from 'vant';
Vue.use(List);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
```
-#### Color
+### Color
```html
```
-#### Text
+### Text
```html
Loading...
```
-#### Vertical
+### Vertical
```html
Loading...
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/loading/zh-CN.md b/packages/loading/zh-CN.md
index 46e843784..4f52622bd 100644
--- a/packages/loading/zh-CN.md
+++ b/packages/loading/zh-CN.md
@@ -1,40 +1,43 @@
-## Loading 加载
+# Loading 加载
+
+### 引入
-### 使用指南
``` javascript
import { Loading } from 'vant';
Vue.use(Loading);
```
-### 代码演示
+## 代码演示
-#### 加载类型
+### 加载类型
```html
```
-#### 自定义颜色
+### 自定义颜色
```html
```
-#### 加载文案
+### 加载文案
```html
加载中...
```
-#### 垂直排列
+### 垂直排列
```html
加载中...
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/locale/en-US.md b/packages/locale/en-US.md
index 3ef357203..0c01e6e81 100644
--- a/packages/locale/en-US.md
+++ b/packages/locale/en-US.md
@@ -1,7 +1,11 @@
-## Internationalization
+# Internationalization
+
+### Intro
+
The default language of Vant is Chinese. If you want to use other languages, you can follow the instructions below.
### Switch languages
+
Vant supports multiple languages with the Locale component, and the `Locale.use` method allows you to switch to diffrent languages.
```js
@@ -12,6 +16,7 @@ Locale.use('en-US', enUS);
```
### Modify default configs
+
Use `Locale.add` method to modify the default configs.
```js
@@ -29,6 +34,7 @@ Locale.add(messages);
```
### Config files
+
Current supported languages:
| Language | Filename |
diff --git a/packages/locale/zh-CN.md b/packages/locale/zh-CN.md
index 16b419781..aa460b2e0 100644
--- a/packages/locale/zh-CN.md
+++ b/packages/locale/zh-CN.md
@@ -1,7 +1,11 @@
-## 国际化
+# 国际化
+
+### 介绍
+
Vant 默认采用中文作为语言,如果需要使用其他语言,可以参考下面的方案
### 多语言切换
+
Vant 通过 Locale 组件实现多语言支持,使用 `Locale.use` 方法可以切换当前使用的语言。
```js
@@ -12,6 +16,7 @@ Locale.use('en-US', enUS);
```
### 修改默认文案
+
通过 `Locale.add` 方法可以实现文案的修改和扩展,示例如下:
```js
diff --git a/packages/nav-bar/en-US.md b/packages/nav-bar/en-US.md
index f31c2767e..1fcfc6885 100644
--- a/packages/nav-bar/en-US.md
+++ b/packages/nav-bar/en-US.md
@@ -1,15 +1,16 @@
-## NavBar
+# NavBar
### Install
+
``` javascript
import { NavBar } from 'vant';
Vue.use(NavBar);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -43,6 +44,7 @@ export default {
```
+## API
### Props
diff --git a/packages/nav-bar/zh-CN.md b/packages/nav-bar/zh-CN.md
index aa312f778..47df826ca 100644
--- a/packages/nav-bar/zh-CN.md
+++ b/packages/nav-bar/zh-CN.md
@@ -1,15 +1,16 @@
-## NavBar 导航栏
+# NavBar 导航栏
+
+### 引入
-### 使用指南
``` javascript
import { NavBar } from 'vant';
Vue.use(NavBar);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
```
+## API
### Props
diff --git a/packages/notice-bar/en-US.md b/packages/notice-bar/en-US.md
index 8c0369a97..0a10f1ee2 100644
--- a/packages/notice-bar/en-US.md
+++ b/packages/notice-bar/en-US.md
@@ -1,15 +1,16 @@
-## NoticeBar
+# NoticeBar
### Install
+
``` javascript
import { NoticeBar } from 'vant';
Vue.use(NoticeBar);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
```
-#### Disable scroll
+### Disable scroll
```html
@@ -26,7 +27,7 @@ Vue.use(NoticeBar);
```
-#### Wrapable
+### Wrapable
```html
@@ -34,7 +35,7 @@ Vue.use(NoticeBar);
```
-#### Mode
+### Mode
```html
@@ -58,6 +59,8 @@ Vue.use(NoticeBar);
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/notice-bar/zh-CN.md b/packages/notice-bar/zh-CN.md
index 20874ea62..4a6aa52ce 100644
--- a/packages/notice-bar/zh-CN.md
+++ b/packages/notice-bar/zh-CN.md
@@ -1,15 +1,16 @@
-## NoticeBar 通知栏
+# NoticeBar 通知栏
+
+### 引入
-### 使用指南
``` javascript
import { NoticeBar } from 'vant';
Vue.use(NoticeBar);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
```
-#### 禁用滚动
+### 禁用滚动
文字内容多于一行时,可通过`scrollable`参数控制是否开启滚动
@@ -28,7 +29,7 @@ Vue.use(NoticeBar);
```
-#### 多行展示
+### 多行展示
禁用滚动时,可以设置`wrapable`来开启多行展示
@@ -38,7 +39,7 @@ Vue.use(NoticeBar);
```
-#### 通知栏模式
+### 通知栏模式
默认模式为空,支持`closeable`和`link`两种模式
@@ -66,6 +67,8 @@ Vue.use(NoticeBar);
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/notify/en-US.md b/packages/notify/en-US.md
index 02318616e..bd9a40d6c 100644
--- a/packages/notify/en-US.md
+++ b/packages/notify/en-US.md
@@ -1,4 +1,4 @@
-## Notify
+# Notify
### Install
@@ -8,15 +8,15 @@ import { Notify } from 'vant';
Vue.use(Notify);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```js
Notify('Notify Message');
```
-#### Custom Config
+### Custom Config
```js
Notify({
@@ -26,7 +26,7 @@ Notify({
});
```
-#### $notify Method
+### $notify Method
After import the Notify component, the $notify method is automatically mounted on Vue.prototype, making it easy to call within a vue component.
@@ -38,6 +38,8 @@ export default {
}
```
+## API
+
### Methods
| Methods | Attribute | Return value | Description |
diff --git a/packages/notify/zh-CN.md b/packages/notify/zh-CN.md
index 42a6b88f7..e1d0e79d7 100644
--- a/packages/notify/zh-CN.md
+++ b/packages/notify/zh-CN.md
@@ -1,21 +1,22 @@
-## Notify 消息提示
+# Notify 消息提示
+
+### 引入
-### 使用指南
``` javascript
import { Notify } from 'vant';
Vue.use(Notify);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```js
Notify('通知内容');
```
-#### 自定义配置
+### 自定义配置
```js
Notify({
@@ -25,7 +26,7 @@ Notify({
});
```
-#### 组件内调用
+### 组件内调用
引入 Notify 组件后,会自动在 Vue 的 prototype 上挂载 $notify 方法,便于在组件内调用。
@@ -37,6 +38,8 @@ export default {
}
```
+## API
+
### 方法
| 方法名 | 参数 | 返回值 | 介绍 |
diff --git a/packages/number-keyboard/en-US.md b/packages/number-keyboard/en-US.md
index 6a05c316f..b2532fb55 100644
--- a/packages/number-keyboard/en-US.md
+++ b/packages/number-keyboard/en-US.md
@@ -1,4 +1,4 @@
-## NumberKeyboard
+# NumberKeyboard
### Install
``` javascript
@@ -7,9 +7,9 @@ import { NumberKeyboard } from 'vant';
Vue.use(NumberKeyboard);
```
-### Usage
+## Usage
-#### Default Style
+### Default Style
```html
@@ -45,7 +45,7 @@ export default {
}
```
-#### Custom Style
+### Custom Style
```html
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/number-keyboard/zh-CN.md b/packages/number-keyboard/zh-CN.md
index 71fff9e55..ade1e77f7 100644
--- a/packages/number-keyboard/zh-CN.md
+++ b/packages/number-keyboard/zh-CN.md
@@ -1,15 +1,16 @@
-## NumberKeyboard 数字键盘
+# NumberKeyboard 数字键盘
+
+### 引入
-### 使用指南
``` javascript
import { NumberKeyboard } from 'vant';
Vue.use(NumberKeyboard);
```
-### 代码演示
+## 代码演示
-#### 默认样式
+### 默认样式
```html
@@ -45,7 +46,7 @@ export default {
}
```
-#### 自定义样式
+### 自定义样式
```html
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/pagination/en-US.md b/packages/pagination/en-US.md
index 423e049f7..a05bcc7da 100644
--- a/packages/pagination/en-US.md
+++ b/packages/pagination/en-US.md
@@ -1,15 +1,16 @@
-## Pagination
+# Pagination
### Install
+
``` javascript
import { Pagination } from 'vant';
Vue.use(Pagination);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
```
-#### Show ellipses
+### Show ellipses
```html
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/pagination/zh-CN.md b/packages/pagination/zh-CN.md
index d4b7e96e6..d22679dbc 100644
--- a/packages/pagination/zh-CN.md
+++ b/packages/pagination/zh-CN.md
@@ -1,17 +1,17 @@
-## Pagination 分页
+# Pagination 分页
+
+### 引入
-### 使用指南
``` javascript
import { Pagination } from 'vant';
Vue.use(Pagination);
```
-### 代码演示
-
-#### 基础用法
+## 代码演示
+### 基础用法
```html
```
-#### 显示省略号
+### 显示省略号
```html
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/panel/en-US.md b/packages/panel/en-US.md
index 5d73d3f58..bee8347f4 100644
--- a/packages/panel/en-US.md
+++ b/packages/panel/en-US.md
@@ -1,15 +1,16 @@
-## Panel
+# Panel
### Install
+
``` javascript
import { Panel } from 'vant';
Vue.use(Panel);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -17,7 +18,7 @@ Vue.use(Panel);
```
-#### Advanced Usage
+### Advanced Usage
```html
@@ -29,6 +30,8 @@ Vue.use(Panel);
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/panel/zh-CN.md b/packages/panel/zh-CN.md
index 6f7b74c8f..fa9f9683e 100644
--- a/packages/panel/zh-CN.md
+++ b/packages/panel/zh-CN.md
@@ -1,15 +1,17 @@
-## Panel 面板
+# Panel 面板
+
+### 引入
-### 使用指南
``` javascript
import { Panel } from 'vant';
Vue.use(Panel);
```
-### 代码演示
+## 代码演示
+
+### 基础用法
-#### 基础用法
面板只是一个容器,里面可以放入自定义的内容
```html
@@ -18,7 +20,8 @@ Vue.use(Panel);
```
-#### 高级用法
+### 高级用法
+
使用`slot`自定义内容
```html
@@ -31,6 +34,8 @@ Vue.use(Panel);
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/password-input/en-US.md b/packages/password-input/en-US.md
index b4b91a173..a379ee8f1 100644
--- a/packages/password-input/en-US.md
+++ b/packages/password-input/en-US.md
@@ -1,16 +1,20 @@
-## PasswordInput
+# PasswordInput
+
+### Intro
+
The PasswordInput component is usually used with [NumberKeyboard](#/en-US/number-keyboard) Component.
### Install
+
``` javascript
import { PasswordInput, NumberKeyboard } from 'vant';
Vue.use(PasswordInput).use(NumberKeyboard);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -49,7 +53,7 @@ export default {
}
```
-#### Without mask
+### Without mask
```html
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/password-input/zh-CN.md b/packages/password-input/zh-CN.md
index 8baa27837..d06f145da 100644
--- a/packages/password-input/zh-CN.md
+++ b/packages/password-input/zh-CN.md
@@ -1,16 +1,19 @@
-## PasswordInput 密码输入框
+# PasswordInput 密码输入框
+
+### 介绍
+
密码输入框组件通常与 [数字键盘](#/zh-CN/number-keyboard) 组件配合使用
-### 使用指南
+### 引入
``` javascript
import { PasswordInput, NumberKeyboard } from 'vant';
Vue.use(PasswordInput).use(NumberKeyboard);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -49,7 +52,7 @@ export default {
}
```
-#### 明文展示
+### 明文展示
```html
diff --git a/packages/picker/en-US.md b/packages/picker/en-US.md
index 053eaa710..7e08cc4f1 100644
--- a/packages/picker/en-US.md
+++ b/packages/picker/en-US.md
@@ -1,16 +1,20 @@
-## Picker
+# Picker
+
+### Intro
+
The Picker component is usually used with [Popup](#/en-US/popup) Component.
### Install
+
``` javascript
import { Picker } from 'vant';
Vue.use(Picker);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -31,7 +35,7 @@ export default {
};
```
-#### Default Index
+### Default Index
```html
```
-#### Show Toolbar
+### Show Toolbar
```html
@@ -91,7 +95,7 @@ export default {
};
```
-#### Multi columns
+### Multi columns
```html
@@ -127,13 +131,16 @@ export default {
};
```
-#### Loading
+### Loading
+
When Picker columns data is acquired asynchronously, use `loading` prop to show loading prompt
```html
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/picker/zh-CN.md b/packages/picker/zh-CN.md
index cd36661e2..a313ba9cb 100644
--- a/packages/picker/zh-CN.md
+++ b/packages/picker/zh-CN.md
@@ -1,16 +1,20 @@
-## Picker 选择器
+# Picker 选择器
+
+### 介绍
+
选择器组件通常与 [弹出层](#/zh-CN/popup) 组件配合使用
-### 使用指南
+### 引入
+
``` javascript
import { Picker } from 'vant';
Vue.use(Picker);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
对于单列选择器,传入数值格式的 columns 即可,同时可以监听选项改变的 change 事件
@@ -33,7 +37,7 @@ export default {
};
```
-#### 默认选中项
+### 默认选中项
单列选择器可以直接通过`default-index`属性设置初始选中项的索引值
@@ -45,7 +49,7 @@ export default {
/>
```
-#### 展示顶部栏
+### 展示顶部栏
通常选择器组件会传入`show-toolbar`属性以展示顶部操作栏,并可以监听对应的`confirm`和`cancel`事件
@@ -77,7 +81,7 @@ export default {
};
```
-#### 禁用选项
+### 禁用选项
选项可以为对象结构,通过设置 disabled 来禁用该选项
@@ -99,7 +103,7 @@ export default {
};
```
-#### 多列联动
+### 多列联动
```html
@@ -135,7 +139,7 @@ export default {
};
```
-#### 加载状态
+### 加载状态
若选择器数据是异步获取的,可以通过 `loading` 属性显示加载提示
@@ -143,6 +147,8 @@ export default {
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/popup/en-US.md b/packages/popup/en-US.md
index 5911495e8..dce2ebe39 100644
--- a/packages/popup/en-US.md
+++ b/packages/popup/en-US.md
@@ -1,15 +1,16 @@
-## Popup
+# Popup
### Install
+
``` javascript
import { Popup } from 'vant';
Vue.use(Popup);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
Popup is located in the middle of the screen by default
@@ -27,7 +28,7 @@ export default {
};
```
-#### Position
+### Position
Use `position` prop to set popup display position
@@ -37,6 +38,8 @@ Use `position` prop to set popup display position
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/popup/zh-CN.md b/packages/popup/zh-CN.md
index 4aab3dfce..7c8518839 100644
--- a/packages/popup/zh-CN.md
+++ b/packages/popup/zh-CN.md
@@ -1,15 +1,16 @@
-## Popup 弹出层
+# Popup 弹出层
+
+### 引入
-### 使用指南
``` javascript
import { Popup } from 'vant';
Vue.use(Popup);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
`Popup`默认从中间弹出
@@ -27,7 +28,7 @@ export default {
};
```
-#### 弹出位置
+### 弹出位置
通过`position`属性设置`Popup`弹出位置
@@ -37,6 +38,8 @@ export default {
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/progress/en-US.md b/packages/progress/en-US.md
index 538618c77..94baa4ec7 100644
--- a/packages/progress/en-US.md
+++ b/packages/progress/en-US.md
@@ -1,15 +1,17 @@
-## Progress
+# Progress
### Install
+
``` javascript
import { Progress } from 'vant';
Vue.use(Progress);
```
-### Usage
+## Usage
+
+### Basic Usage
-#### Basic Usage
Use 'percentage' prop to set current progress
```html
@@ -17,14 +19,15 @@ Use 'percentage' prop to set current progress
```
-#### Inactive
+### Inactive
```html
```
-#### Custom Style
+### Custom Style
+
Use `pivot-text` to custom text,use `color` to custom bar color
```html
@@ -48,6 +51,8 @@ Use `pivot-text` to custom text,use `color` to custom bar color
/>
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/progress/zh-CN.md b/packages/progress/zh-CN.md
index f13023fb9..ef771b32b 100644
--- a/packages/progress/zh-CN.md
+++ b/packages/progress/zh-CN.md
@@ -1,15 +1,16 @@
-## Progress 进度条
+# Progress 进度条
+
+### 引入
-### 使用指南
``` javascript
import { Progress } from 'vant';
Vue.use(Progress);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
进度条默认为蓝色,使用`percentage`属性来设置当前进度
@@ -17,15 +18,13 @@ Vue.use(Progress);
```
-
-#### 置灰
+### 置灰
```html
```
-
-#### 样式定制
+### 样式定制
可以使用`pivot-text`属性自定义文字,`color`属性自定义进度条颜色
@@ -50,6 +49,8 @@ Vue.use(Progress);
/>
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/pull-refresh/en-US.md b/packages/pull-refresh/en-US.md
index 016ca7431..9e20f4647 100644
--- a/packages/pull-refresh/en-US.md
+++ b/packages/pull-refresh/en-US.md
@@ -1,15 +1,17 @@
-## PullRefresh
+# PullRefresh
### Install
+
``` javascript
import { PullRefresh } from 'vant';
Vue.use(PullRefresh);
```
-### Usage
+## Usage
+
+### Basic Usage
-#### Basic Usage
The `refresh` event will be triggered when pull refresh, you should set `v-model` to `false` to reset loading status after process refresh event.
```html
@@ -39,6 +41,8 @@ export default {
}
```
+## API
+
### Props
| Attribute | Description | Type | Default |
@@ -53,14 +57,12 @@ export default {
| head-height | Height of head | `Number` | `50` |
| disabled | Whether to disable | `Boolean` | `false` |
-
### Events
| Event | Description | Parameters |
|------|------|------|
| refresh | Triggered when pull refresh | - |
-
### Slots
| Name | Description |
diff --git a/packages/pull-refresh/zh-CN.md b/packages/pull-refresh/zh-CN.md
index 5c1f975a1..44b1ce094 100644
--- a/packages/pull-refresh/zh-CN.md
+++ b/packages/pull-refresh/zh-CN.md
@@ -1,15 +1,16 @@
-## PullRefresh 下拉刷新
+# PullRefresh 下拉刷新
+
+### 引入
-### 使用指南
``` javascript
import { PullRefresh } from 'vant';
Vue.use(PullRefresh);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
下拉刷新时会触发 `refresh` 事件,在事件的回调函数中可以进行同步或异步操作,操作完成后将 `v-model` 设置为 `false`,表示加载完成。
@@ -40,6 +41,8 @@ export default {
}
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/radio/en-US.md b/packages/radio/en-US.md
index 55b4b264a..2804c635c 100644
--- a/packages/radio/en-US.md
+++ b/packages/radio/en-US.md
@@ -1,6 +1,7 @@
-## Radio
+# Radio
### Install
+
``` javascript
import { RadioGroup, Radio } from 'vant';
@@ -8,9 +9,9 @@ Vue.use(RadioGroup);
Vue.use(Radio);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
Use `v-model` to bind the name of checked radio
@@ -31,7 +32,7 @@ export default {
};
```
-#### Disabled
+### Disabled
```html
@@ -40,13 +41,13 @@ export default {
```
-#### Custom Color
+### Custom Color
```html
Radio
```
-#### Custom Icon
+### Custom Icon
Use icon slot to custom icon
@@ -73,7 +74,7 @@ export default {
}
```
-#### Inside a Cell
+### Inside a Cell
```html
@@ -88,6 +89,8 @@ export default {
```
+## API
+
### Radio Props
| Attribute | Description | Type | Default |
diff --git a/packages/radio/zh-CN.md b/packages/radio/zh-CN.md
index e3d3a006f..8b987bece 100644
--- a/packages/radio/zh-CN.md
+++ b/packages/radio/zh-CN.md
@@ -1,6 +1,7 @@
-## Radio 单选框
+# Radio 单选框
+
+### 引入
-### 使用指南
``` javascript
import { RadioGroup, Radio } from 'vant';
@@ -8,9 +9,9 @@ Vue.use(RadioGroup);
Vue.use(Radio);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
通过`v-model`绑定值当前选中项的 name
@@ -31,7 +32,7 @@ export default {
};
```
-#### 禁用状态
+### 禁用状态
通过`disabled`属性禁止选项切换,在`van-radio`上设置`disabled`可以禁用单个选项
@@ -42,13 +43,13 @@ export default {
```
-#### 自定义颜色
+### 自定义颜色
```html
复选框
```
-#### 自定义图标
+### 自定义图标
通过 icon 插槽自定义图标,可以通过 `slot-scope` 判断是否为选中状态
@@ -75,7 +76,7 @@ export default {
}
```
-#### 与 Cell 组件一起使用
+### 与 Cell 组件一起使用
此时你需要再引入`Cell`和`CellGroup`组件。
@@ -92,6 +93,8 @@ export default {
```
+## API
+
### Radio Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/rate/en-US.md b/packages/rate/en-US.md
index ce09365ca..6a9df5304 100644
--- a/packages/rate/en-US.md
+++ b/packages/rate/en-US.md
@@ -1,15 +1,16 @@
-## Rate
+# Rate
### Install
+
``` javascript
import { Rate } from 'vant';
Vue.use(Rate);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -25,7 +26,7 @@ export default {
}
```
-#### Custom Icon
+### Custom Icon
```html
```
-#### Custom Style
+### Custom Style
```html
```
-#### Half Star
+### Half Star
```html
```
-#### Disabled
+### Disabled
```html
```
-#### Readonly
+### Readonly
```html
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/rate/zh-CN.md b/packages/rate/zh-CN.md
index 1076813ad..83f10725d 100644
--- a/packages/rate/zh-CN.md
+++ b/packages/rate/zh-CN.md
@@ -1,15 +1,15 @@
-## Rate 评分
+# Rate 评分
-### 使用指南
+### 引入
``` javascript
import { Rate } from 'vant';
Vue.use(Rate);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -25,7 +25,7 @@ export default {
}
```
-#### 自定义图标
+### 自定义图标
```html
```
-#### 自定义样式
+### 自定义样式
```html
```
-#### 半星
+### 半星
```html
```
-#### 禁用状态
+### 禁用状态
```html
```
-#### 只读状态
+### 只读状态
```html
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/search/en-US.md b/packages/search/en-US.md
index c589b3d0e..b71d8459e 100644
--- a/packages/search/en-US.md
+++ b/packages/search/en-US.md
@@ -1,15 +1,16 @@
-## Search
+# Search
### Install
+
``` javascript
import { Search } from 'vant';
Vue.use(Search);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -23,7 +24,8 @@ export default {
}
```
-#### Listen to Events
+### Listen to Events
+
`search` event will be triggered when click the search button on the keyboard.
`cancel` event will be triggered when click the cancel button.
@@ -42,7 +44,8 @@ Tips: There will be a search button on the keyboard when Search is inside a form
```
-#### Custom Button
+### Custom Button
+
Use `action` slot to custom right button, `cancel` event will no longer be triggered when use this slot
```html
@@ -56,6 +59,8 @@ Use `action` slot to custom right button, `cancel` event will no longer be trigg
```
+## API
+
### Props
Search support all native properties of input tag,such as `maxlength`、`placeholder`、`autofocus`
diff --git a/packages/search/zh-CN.md b/packages/search/zh-CN.md
index 8fca24054..6360f1642 100644
--- a/packages/search/zh-CN.md
+++ b/packages/search/zh-CN.md
@@ -1,22 +1,25 @@
-## Search 搜索
+# Search 搜索
+
+### 引入
-### 使用指南
``` javascript
import { Search } from 'vant';
Vue.use(Search);
```
-### 代码演示
+## 代码演示
+
+### 基础用法
-#### 基础用法
`van-search` 中,v-model 用于控制搜索框中的文字。background 可以自定义搜索框外部背景色。
```html
```
-#### 监听对应事件
+### 监听对应事件
+
`van-search` 提供了 search 和 cancel 事件。search 事件在用户点击键盘上的 搜索/回车 按钮触发。cancel 事件在用户点击搜索框右侧取消按钮时触发
Tips: 在 `van-search` 外层增加 form 标签,并且 action 不为空,即可在 IOS 弹出的输入法中显示搜索按钮
@@ -33,7 +36,8 @@ Tips: 在 `van-search` 外层增加 form 标签,并且 action 不为空,即
```
-#### 自定义行动按钮
+### 自定义行动按钮
+
`van-search` 支持自定义右侧取消按钮,使用名字为 action 的插槽即可。使用此插槽以后,原有的 cancel 事件不再生效。
```html
@@ -48,6 +52,8 @@ Tips: 在 `van-search` 外层增加 form 标签,并且 action 不为空,即
```
+## API
+
### Props
Search 默认支持 Input 标签所有的原生属性,比如 `maxlength`、`placeholder`、`autofocus` 等
diff --git a/packages/sidebar/en-US.md b/packages/sidebar/en-US.md
index 5e591cdc0..bf06a753c 100644
--- a/packages/sidebar/en-US.md
+++ b/packages/sidebar/en-US.md
@@ -1,4 +1,4 @@
-## Sidebar
+# Sidebar
### Install
@@ -9,9 +9,9 @@ Vue.use(Sidebar);
Vue.use(SidebarItem);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
Use `active-key` prop to set index of chosen item
@@ -40,6 +40,8 @@ export default {
};
```
+## API
+
### Sidebar Props
| Attribute | Description | Type | Default |
diff --git a/packages/sidebar/zh-CN.md b/packages/sidebar/zh-CN.md
index 837c8777c..fa007e78c 100644
--- a/packages/sidebar/zh-CN.md
+++ b/packages/sidebar/zh-CN.md
@@ -1,6 +1,6 @@
-## Sidebar 侧边导航
+# Sidebar 侧边导航
-### 使用指南
+### 引入
``` javascript
import { Sidebar, SidebarItem } from 'vant';
@@ -9,9 +9,9 @@ Vue.use(Sidebar);
Vue.use(SidebarItem);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
通过在`van-sidebar`上设置`active-key`属性来控制选中项
@@ -40,6 +40,8 @@ export default {
};
```
+## API
+
### Sidebar Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/skeleton/en-US.md b/packages/skeleton/en-US.md
index 68a115f0c..86da1e5d2 100644
--- a/packages/skeleton/en-US.md
+++ b/packages/skeleton/en-US.md
@@ -1,4 +1,4 @@
-## Skeleton
+# Skeleton
### Install
@@ -8,21 +8,21 @@ import { Skeleton } from 'vant';
Vue.use(Skeleton);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
```
-#### Show Avatar
+### Show Avatar
```html
```
-#### Show Children
+### Show Children
```html
```
-#### 显示头像
+### 显示头像
通过`avatar`属性显示头像占位图
@@ -26,7 +26,7 @@ Vue.use(Skeleton);
```
-#### 展示子组件
+### 展示子组件
将`loading`属性设置成`false`表示内容加载完成,此时会隐藏占位图,并显示`Skeleton`的子组件
@@ -54,6 +54,8 @@ export default {
};
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/sku/en-US.md b/packages/sku/en-US.md
index 076ef167a..3eaefdfcb 100644
--- a/packages/sku/en-US.md
+++ b/packages/sku/en-US.md
@@ -1,14 +1,16 @@
-## Sku
+# Sku
### Install
+
```javascript
import { Sku } from 'vant';
Vue.use(Sku);
```
-### Usage
-#### Basic Usage
+## Usage
+
+### Basic Usage
```html
```
-#### Custom Stepper Config
+### Custom Stepper Config
```html
```
-#### Advanced Usage
+### Advanced Usage
```html
```
+## API
+
### Props
| Attribute | Description | Type | Default |
@@ -150,9 +154,7 @@ Use ref to get sku instance and call instance methods
| sku-messages | Custom messages |
| sku-actions | Custom button actions |
-#### Data Structure
-
-#### Sku Data Structure
+### Sku Data Structure
```javascript
sku: {
@@ -201,7 +203,7 @@ sku: {
}
```
-#### initialSku Data Structure
+### initialSku Data Structure
```javascript
{
@@ -213,7 +215,7 @@ sku: {
}
```
-#### Goods Data Structure
+### Goods Data Structure
```javascript
goods: {
@@ -223,7 +225,7 @@ goods: {
```
-#### customStepperConfig Data Structure
+### customStepperConfig Data Structure
```javascript
customStepperConfig: {
@@ -249,7 +251,7 @@ customStepperConfig: {
}
```
-#### messageConfig Data Structure
+### messageConfig Data Structure
```javascript
messageConfig: {
@@ -270,7 +272,7 @@ messageConfig: {
}
```
-#### Events Params Data Structure
+### Events Params Data Structure
```javascript
skuData: {
diff --git a/packages/sku/zh-CN.md b/packages/sku/zh-CN.md
index 2b1f04b8c..ce63ec6cd 100644
--- a/packages/sku/zh-CN.md
+++ b/packages/sku/zh-CN.md
@@ -1,15 +1,16 @@
-## Sku 商品规格
+# Sku 商品规格
+
+### 引入
-### 使用指南
```javascript
import { Sku } from 'vant';
Vue.use(Sku);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
```
-#### 自定义步进器
+### 自定义步进器
```html
```
-#### 高级用法
+### 高级用法
```html
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
@@ -155,9 +158,7 @@ Sku 组件默认划分好了若干区块,这些区块都定义成了插槽,
| sku-messages | 商品留言区 |
| sku-actions | 操作按钮区 |
-### 数据结构
-
-#### sku 对象结构
+### sku 对象结构
```javascript
sku: {
@@ -210,7 +211,7 @@ sku: {
}
```
-#### initialSku 对象结构
+### initialSku 对象结构
```javascript
{
@@ -223,7 +224,7 @@ sku: {
}
```
-#### goods 对象结构
+### goods 对象结构
```javascript
goods: {
@@ -234,7 +235,7 @@ goods: {
}
```
-#### customStepperConfig 对象结构
+### customStepperConfig 对象结构
```javascript
customStepperConfig: {
@@ -260,7 +261,7 @@ customStepperConfig: {
}
```
-#### messageConfig Data Structure
+### messageConfig Data Structure
```javascript
messageConfig: {
@@ -281,7 +282,7 @@ messageConfig: {
}
```
-#### 添加购物车和点击购买回调函数接收的 skuData 对象结构
+### 添加购物车和点击购买回调函数接收的 skuData 对象结构
```javascript
skuData: {
diff --git a/packages/slider/en-US.md b/packages/slider/en-US.md
index f7d1123ee..28c63eff8 100644
--- a/packages/slider/en-US.md
+++ b/packages/slider/en-US.md
@@ -1,14 +1,16 @@
-## Slider
+# Slider
### Install
+
``` javascript
import { Slider } from 'vant';
Vue.use(Slider);
```
-### Usage
-#### Basic Usage
+## Usage
+
+### Basic Usage
```html
@@ -30,25 +32,25 @@ export default {
};
```
-#### Range
+### Range
```html
```
-#### Disabled
+### Disabled
```html
```
-#### Step size
+### Step size
```html
```
-#### Custom style
+### Custom style
```html
```
-#### Custom button
+### Custom button
```html
```
-#### Vertical
+### Vertical
```html
@@ -82,6 +84,8 @@ export default {
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/slider/zh-CN.md b/packages/slider/zh-CN.md
index e54e3344d..43e7aab57 100644
--- a/packages/slider/zh-CN.md
+++ b/packages/slider/zh-CN.md
@@ -1,13 +1,16 @@
-## Slider 滑块
+# Slider 滑块
+
+### 引入
-### 使用指南
``` javascript
import { Slider } from 'vant';
Vue.use(Slider);
```
-#### 基本用法
+## 代码演示
+
+### 基本用法
```html
@@ -29,25 +32,25 @@ export default {
};
```
-#### 指定选择范围
+### 指定选择范围
```html
```
-#### 禁用
+### 禁用
```html
```
-#### 指定步长
+### 指定步长
```html
```
-#### 自定义样式
+### 自定义样式
```html
```
-#### 自定义按钮
+### 自定义按钮
```html
```
-#### 垂直方向
+### 垂直方向
Slider 垂直展示时,高度为 100% 父元素高度
@@ -83,6 +86,8 @@ Slider 垂直展示时,高度为 100% 父元素高度
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/stepper/en-US.md b/packages/stepper/en-US.md
index 690a2f1f8..534b6fbad 100644
--- a/packages/stepper/en-US.md
+++ b/packages/stepper/en-US.md
@@ -1,15 +1,16 @@
-## Stepper
+# Stepper
### Install
+
``` javascript
import { Stepper } from 'vant';
Vue.use(Stepper);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -25,13 +26,13 @@ export default {
}
```
-#### Disabled
+### Disabled
```html
```
-#### Async Change
+### Async Change
```html
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/stepper/zh-CN.md b/packages/stepper/zh-CN.md
index f6eb8a2da..d81e26854 100644
--- a/packages/stepper/zh-CN.md
+++ b/packages/stepper/zh-CN.md
@@ -1,15 +1,16 @@
-## Stepper 步进器
+# Stepper 步进器
+
+### 引入
-### 使用指南
``` javascript
import { Stepper } from 'vant';
Vue.use(Stepper);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -25,7 +26,7 @@ export default {
}
```
-#### 禁用状态
+### 禁用状态
通过设置`disabled`属性来禁用 stepper
@@ -33,7 +34,7 @@ export default {
```
-#### 异步变更
+### 异步变更
```html
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/steps/en-US.md b/packages/steps/en-US.md
index 4b1dc3bb1..c12335ef0 100644
--- a/packages/steps/en-US.md
+++ b/packages/steps/en-US.md
@@ -1,15 +1,16 @@
-## Steps
+# Steps
### Install
+
``` javascript
import { Step, Steps } from 'vant';
Vue.use(Step).use(Steps);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -30,7 +31,7 @@ export default {
}
```
-#### Custom Style
+### Custom Style
```html
```
-#### Vertical Steps
+### Vertical Steps
```html
@@ -64,6 +65,8 @@ export default {
```
+## API
+
### Steps Props
| Attribute | Description | Type | Default |
diff --git a/packages/steps/zh-CN.md b/packages/steps/zh-CN.md
index beaae043e..16422b643 100644
--- a/packages/steps/zh-CN.md
+++ b/packages/steps/zh-CN.md
@@ -1,15 +1,16 @@
-## Steps 步骤条
+# Steps 步骤条
+
+### 引入
-### 使用指南
``` javascript
import { Step, Steps } from 'vant';
Vue.use(Step).use(Steps);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -30,7 +31,7 @@ export default {
}
```
-#### 自定义样式
+### 自定义样式
可以通过`active-icon`和`active-color`属性设置激活状态下的图标和颜色
@@ -47,7 +48,7 @@ export default {
```
-#### 竖向步骤条
+### 竖向步骤条
可以通过设置`direction`属性来改变步骤条的显示方向
@@ -68,6 +69,8 @@ export default {
```
+## API
+
### Steps Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/style/en-US.md b/packages/style/en-US.md
index 3bc501360..3ea482211 100644
--- a/packages/style/en-US.md
+++ b/packages/style/en-US.md
@@ -1,7 +1,11 @@
-## Built-in Style
+# Built-in Style
+
+### Intro
+
Vant contains some common styles that can be used directly by the className.
### Text ellipsis
+
When the text content length exceeds the maximum container width, the excess text is automatically omitted.
```html
@@ -11,6 +15,7 @@ When the text content length exceeds the maximum container width, the excess tex
```
### Hairline
+
Add 1px border under the Retina screen for the element, based on a pseudo element.
```html
diff --git a/packages/style/zh-CN.md b/packages/style/zh-CN.md
index 321653151..cdb787400 100644
--- a/packages/style/zh-CN.md
+++ b/packages/style/zh-CN.md
@@ -1,7 +1,11 @@
-## 内置样式
+# 内置样式
+
+### 介绍
+
Vant 中默认包含了一些常用样式,可以直接通过 className 的方式使用。
### 文字省略
+
当文本内容长度超过容器最大宽度时,自动省略多余的文本。
```html
@@ -9,6 +13,7 @@ Vant 中默认包含了一些常用样式,可以直接通过 className 的方
```
### 1px 边框
+
为元素添加 Retina 屏幕下的 1px 边框(即 hairline),基于伪类 transform 实现。
```html
@@ -32,6 +37,7 @@ Vant 中默认包含了一些常用样式,可以直接通过 className 的方
```
### 动画
+
可以通过 `transition` 组件使用内置的动画
```html
diff --git a/packages/submit-bar/en-US.md b/packages/submit-bar/en-US.md
index e863dec3d..229fda3ca 100644
--- a/packages/submit-bar/en-US.md
+++ b/packages/submit-bar/en-US.md
@@ -1,15 +1,16 @@
-## SubmitBar
+# SubmitBar
### Install
+
``` javascript
import { SubmitBar } from 'vant';
Vue.use(SubmitBar);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
```
-#### Disabled
+### Disabled
+
`submit` event will not triggerd when disabled.
```html
@@ -33,7 +35,8 @@ Vue.use(SubmitBar);
/>
```
-#### Loading
+### Loading
+
`submit` event will not triggerd when loading.
```html
@@ -45,7 +48,8 @@ Vue.use(SubmitBar);
/>
```
-#### Advanced Usage
+### Advanced Usage
+
Use slot to add custom contents.
```html
@@ -61,6 +65,8 @@ Use slot to add custom contents.
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/submit-bar/zh-CN.md b/packages/submit-bar/zh-CN.md
index fb80932c5..e6a67f1f4 100644
--- a/packages/submit-bar/zh-CN.md
+++ b/packages/submit-bar/zh-CN.md
@@ -1,15 +1,16 @@
-## SubmitBar 提交订单栏
+# SubmitBar 提交订单栏
+
+### 引入
-### 使用指南
``` javascript
import { SubmitBar } from 'vant';
Vue.use(SubmitBar);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
```
-#### 禁用状态
+### 禁用状态
禁用状态下不会触发`submit`事件
@@ -34,7 +35,7 @@ Vue.use(SubmitBar);
/>
```
-#### 加载状态
+### 加载状态
加载状态下不会触发`submit`事件
@@ -47,7 +48,7 @@ Vue.use(SubmitBar);
/>
```
-#### 高级用法
+### 高级用法
通过插槽插入自定义内容
@@ -64,6 +65,8 @@ Vue.use(SubmitBar);
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/swipe-cell/en-US.md b/packages/swipe-cell/en-US.md
index cc674d1ae..8289039f4 100644
--- a/packages/swipe-cell/en-US.md
+++ b/packages/swipe-cell/en-US.md
@@ -1,15 +1,16 @@
-## SwipeCell
+# SwipeCell
### Install
+
``` javascript
import { SwipeCell } from 'vant';
Vue.use(SwipeCell);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -21,7 +22,7 @@ Vue.use(SwipeCell);
```
-#### Async close
+### Async close
```html
@@ -56,6 +57,8 @@ export default {
}
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/swipe-cell/zh-CN.md b/packages/swipe-cell/zh-CN.md
index 9ea6133ab..8869c8310 100644
--- a/packages/swipe-cell/zh-CN.md
+++ b/packages/swipe-cell/zh-CN.md
@@ -1,15 +1,16 @@
-## SwipeCell 滑动单元格
+# SwipeCell 滑动单元格
+
+### 引入
-### 使用指南
``` javascript
import { SwipeCell } from 'vant';
Vue.use(SwipeCell);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -21,7 +22,7 @@ Vue.use(SwipeCell);
```
-#### 异步关闭
+### 异步关闭
```html
@@ -56,6 +57,8 @@ export default {
}
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/swipe/en-US.md b/packages/swipe/en-US.md
index 84e12339d..98ef1c752 100644
--- a/packages/swipe/en-US.md
+++ b/packages/swipe/en-US.md
@@ -1,15 +1,17 @@
-## Swipe
+# Swipe
### Install
+
``` javascript
import { Swipe, SwipeItem } from 'vant';
Vue.use(Swipe).use(SwipeItem);
```
-### Usage
+## Usage
+
+### Basic Usage
-#### Basic Usage
Use `autoplay` prop to set autoplay interval
```html
@@ -21,7 +23,8 @@ Use `autoplay` prop to set autoplay interval
```
-#### Image Lazyload
+### Image Lazyload
+
Use [Lazyload](#/en-US/lazyload) component to lazyload image
```html
@@ -45,7 +48,7 @@ export default {
}
```
-#### change event
+### change event
```html
@@ -66,7 +69,7 @@ export default {
}
```
-#### Vertical Scrolling
+### Vertical Scrolling
```html
@@ -77,7 +80,7 @@ export default {
```
-#### Set Swiper Item Size
+### Set Swiper Item Size
```html
@@ -88,7 +91,7 @@ export default {
```
-#### Custom Indicator
+### Custom Indicator
```html
@@ -118,7 +121,9 @@ export default {
}
```
-### Props
+## API
+
+### Swipe Props
| Attribute | Description | Type | Default |
|------|------|------|------|
@@ -133,13 +138,13 @@ export default {
| width | Set Swiper Item Width | `Number` | `0` |
| height | Set Swiper Item Height | `Number` | `0` |
-### Events
+### Swipe Events
| Event | Description | Arguments |
|------|------|------|
| change | Triggered when current swipe change | index: index of current swipe |
-### Methods
+### Swipe Methods
Use ref to get swipe instance and call instance methods
@@ -147,7 +152,7 @@ Use ref to get swipe instance and call instance methods
|------|------|------|------|
| swipeTo | index: target index | void | Swipe to target index |
-### Slots
+### Swipe Slots
| Name | Description |
|------|------|
diff --git a/packages/swipe/zh-CN.md b/packages/swipe/zh-CN.md
index 1852c5cc3..b79de5e49 100644
--- a/packages/swipe/zh-CN.md
+++ b/packages/swipe/zh-CN.md
@@ -1,15 +1,17 @@
-## Swipe 轮播
+# Swipe 轮播
+
+### 引入
-### 使用指南
``` javascript
import { Swipe, SwipeItem } from 'vant';
Vue.use(Swipe).use(SwipeItem);
```
-### 代码演示
+## 代码演示
+
+### 基础用法
-#### 基础用法
通过`autoplay`属性设置自动轮播间隔
```html
@@ -21,7 +23,8 @@ Vue.use(Swipe).use(SwipeItem);
```
-#### 图片懒加载
+### 图片懒加载
+
配合 [Lazyload](#/zh-CN/lazyload) 组件实现图片懒加载
```html
@@ -45,7 +48,7 @@ export default {
}
```
-#### 监听 change 事件
+### 监听 change 事件
```html
@@ -66,7 +69,7 @@ export default {
}
```
-#### 纵向滚动
+### 纵向滚动
```html
@@ -77,7 +80,7 @@ export default {
```
-#### 控制滑块大小
+### 控制滑块大小
```html
@@ -88,7 +91,7 @@ export default {
```
-#### 自定义指示器
+### 自定义指示器
```html
@@ -118,7 +121,9 @@ export default {
}
```
-### Props
+## API
+
+### Swipe Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
@@ -133,19 +138,19 @@ export default {
| width | 滑块宽度 | `Number` | `0` | 1.2.1 |
| height | 滑块高度 | `Number` | `0` | 1.2.1 |
-### Swipe 事件
+### Swipe Events
| 事件名 | 说明 | 回调参数 |
|------|------|------|
| change | 每一页轮播结束后触发 | index, 当前页的索引 |
-### SwipeItem 事件
+### SwipeItem Events
| 事件名 | 说明 | 回调参数 |
|------|------|------|
| click | 点击时触发 | - |
-### 方法
+### Swipe 方法
通过 ref 可以获取到 swipe 实例并调用实例方法
@@ -153,7 +158,7 @@ export default {
|------|------|------|------|
| swipeTo | index: 目标位置的索引 | void | 滚动到目标位置 |
-### Slots
+### Swipe Slots
| 名称 | 说明 |
|------|------|
diff --git a/packages/switch-cell/en-US.md b/packages/switch-cell/en-US.md
index f5a6058e8..fd3a4df10 100644
--- a/packages/switch-cell/en-US.md
+++ b/packages/switch-cell/en-US.md
@@ -1,16 +1,20 @@
-## SwitchCell
+# SwitchCell
+
+### Intro
+
`SwitchCell` component is an encapsulation of `Switch` and `Cell`.
### Install
+
``` javascript
import { SwitchCell } from 'vant';
Vue.use(SwitchCell);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -28,8 +32,7 @@ export default {
}
```
-
-#### Disabled
+### Disabled
use `disabled` property to disable the component
@@ -39,8 +42,7 @@ use `disabled` property to disable the component
```
-
-#### Loading
+### Loading
use `loading` property to keep component in loading state
@@ -50,6 +52,8 @@ use `loading` property to keep component in loading state
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/switch-cell/zh-CN.md b/packages/switch-cell/zh-CN.md
index b94a76e91..ba6b9a8ec 100644
--- a/packages/switch-cell/zh-CN.md
+++ b/packages/switch-cell/zh-CN.md
@@ -1,17 +1,20 @@
-## SwitchCell 开关单元格
+# SwitchCell 开关单元格
+
+### 介绍
`SwitchCell`组件是对`Switch`和`Cell`组件的封装
-### 使用指南
+### 引入
+
``` javascript
import { SwitchCell } from 'vant';
Vue.use(SwitchCell);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -29,7 +32,7 @@ export default {
}
```
-#### 禁用状态
+### 禁用状态
通过`disabled`属性可以将组件设置为禁用状态
@@ -39,7 +42,7 @@ export default {
```
-#### 加载状态
+### 加载状态
通过`loading`属性可以将组件设置为加载状态
@@ -49,6 +52,8 @@ export default {
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/switch/en-US.md b/packages/switch/en-US.md
index e01eb9bdc..0606c071a 100644
--- a/packages/switch/en-US.md
+++ b/packages/switch/en-US.md
@@ -1,15 +1,16 @@
-## Switch
+# Switch
### Install
+
``` javascript
import { Switch } from 'vant';
Vue.use(Switch);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -25,7 +26,7 @@ export default {
};
```
-#### Disabled
+### Disabled
```html
```
-#### Loading
+### Loading
```html
```
-#### Custom Size
+### Custom Size
```html
```
-#### Custom Color
+### Custom Color
```html
```
-#### Async Control
+### Async Control
```html
@@ -25,7 +26,7 @@ export default {
};
```
-#### 禁用状态
+### 禁用状态
```html
```
-#### 加载状态
+### 加载状态
```html
```
-#### 自定义大小
+### 自定义大小
```html
```
-#### 自定义颜色
+### 自定义颜色
```html
```
-#### 异步控制
+### 异步控制
```html
```
-#### Disabled Tab
+### Disabled Tab
You can set `disabled` attribute on the corresponding `van-tab`.
@@ -65,7 +66,7 @@ export default {
};
```
-#### Card Style
+### Card Style
Tabs styled as cards.
@@ -77,7 +78,7 @@ Tabs styled as cards.
```
-#### Click Event
+### Click Event
```html
@@ -97,7 +98,8 @@ export default {
};
```
-#### Sticky
+### Sticky
+
In sticky mode, the tab will be fixed to top when scroll to top
```html
@@ -108,7 +110,8 @@ In sticky mode, the tab will be fixed to top when scroll to top
```
-#### Custom title
+### Custom title
+
Use title slot to custom tab title
```html
@@ -122,7 +125,7 @@ Use title slot to custom tab title
```
-#### Switch Animation
+### Switch Animation
Use `animated` props to change tabs with animation
@@ -134,7 +137,7 @@ Use `animated` props to change tabs with animation
```
-#### Swipeable
+### Swipeable
In swipeable mode, you can switch tabs with swipe gestrue in the content
@@ -146,6 +149,8 @@ In swipeable mode, you can switch tabs with swipe gestrue in the content
```
+## API
+
### Tabs Props
| Attribute | Description | Type | Default |
diff --git a/packages/tab/zh-CN.md b/packages/tab/zh-CN.md
index 7e20fa872..03e7c5cb8 100644
--- a/packages/tab/zh-CN.md
+++ b/packages/tab/zh-CN.md
@@ -1,15 +1,16 @@
-## Tab 标签页
+# Tab 标签页
+
+### 引入
-### 使用指南
``` javascript
import { Tab, Tabs } from 'vant';
Vue.use(Tab).use(Tabs);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
默认情况下启用第一个标签,可以通过`v-model`绑定当前激活的标签索引
@@ -32,7 +33,7 @@ export default {
}
```
-#### 横向滚动
+### 横向滚动
多于 4 个标签时,Tab 可以横向滚动
@@ -44,7 +45,7 @@ export default {
```
-#### 禁用标签
+### 禁用标签
设置`disabled`属性即可禁用标签。如果需要监听禁用标签的点击事件,可以在`van-tabs`上监听`disabled`事件
@@ -66,7 +67,7 @@ export default {
};
```
-#### 样式风格
+### 样式风格
`Tab`支持两种样式风格:`line`和`card`,默认为`line`样式,可以通过`type`属性修改样式风格
@@ -78,7 +79,7 @@ export default {
```
-#### 点击事件
+### 点击事件
可以在`van-tabs`上绑定`click`事件,事件传参为标签对应的索引和标题
@@ -99,7 +100,7 @@ export default {
};
```
-#### 粘性布局
+### 粘性布局
通过`sticky`属性可以开启粘性布局,粘性布局下,当 Tab 滚动到顶部时会自动吸顶
@@ -111,7 +112,7 @@ export default {
```
-#### 自定义标签
+### 自定义标签
通过 title 插槽可以自定义标签内容
@@ -126,7 +127,7 @@ export default {
```
-#### 切换动画
+### 切换动画
通过`animated`属性可以开启切换标签内容时的转场动画
@@ -138,7 +139,7 @@ export default {
```
-#### 滑动切换
+### 滑动切换
通过`swipeable`属性可以开启滑动切换标签页
@@ -150,6 +151,8 @@ export default {
```
+## API
+
### Tabs Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/tabbar/en-US.md b/packages/tabbar/en-US.md
index 4266fd40f..626d6fdc2 100644
--- a/packages/tabbar/en-US.md
+++ b/packages/tabbar/en-US.md
@@ -1,15 +1,16 @@
-## Tabbar
+# Tabbar
### Install
+
``` javascript
import { Tabbar, TabbarItem } from 'vant';
Vue.use(Tabbar).use(TabbarItem);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -30,7 +31,7 @@ export default {
}
```
-#### Show Badge
+### Show Badge
```html
@@ -41,7 +42,7 @@ export default {
```
-#### Custom Icon
+### Custom Icon
Use `icon` slot to custom icon
@@ -74,7 +75,7 @@ export default {
}
```
-#### Custom Color
+### Custom Color
```html
```
-#### Route Mode
+### Route Mode
```html
@@ -112,6 +113,8 @@ export default {
```
+## API
+
### Tabbar Props
| Attribute | Description | Type | Default |
diff --git a/packages/tabbar/zh-CN.md b/packages/tabbar/zh-CN.md
index 4edd12313..56f52d376 100644
--- a/packages/tabbar/zh-CN.md
+++ b/packages/tabbar/zh-CN.md
@@ -1,15 +1,16 @@
-## Tabbar 标签栏
+# Tabbar 标签栏
+
+### 引入
-### 使用指南
``` javascript
import { Tabbar, TabbarItem } from 'vant';
Vue.use(Tabbar).use(TabbarItem);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -30,7 +31,7 @@ export default {
}
```
-#### 显示徽标
+### 显示徽标
```html
@@ -41,7 +42,7 @@ export default {
```
-#### 自定义图标
+### 自定义图标
通过 icon 插槽自定义图标,可以通过 `slot-scope` 判断标签是否选中
@@ -74,7 +75,7 @@ export default {
}
```
-#### 自定义颜色
+### 自定义颜色
```html
```
-#### 路由模式
+### 路由模式
标签栏支持路由模式,用于搭配`vue-router`使用。路由模式下会匹配页面路径和标签的`to`属性,并自动选中对应的标签
@@ -114,6 +115,8 @@ export default {
```
+## API
+
### Tabbar Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/tag/en-US.md b/packages/tag/en-US.md
index 46c4a41a0..89fe5f946 100644
--- a/packages/tag/en-US.md
+++ b/packages/tag/en-US.md
@@ -1,15 +1,16 @@
-## Tag
+# Tag
### Install
+
``` javascript
import { Tag } from 'vant';
Vue.use(Tag);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
Tag
@@ -18,7 +19,7 @@ Vue.use(Tag);
Tag
```
-#### Plain style
+### Plain style
```html
Tag
@@ -27,7 +28,7 @@ Vue.use(Tag);
Tag
```
-#### Round style
+### Round style
```html
Tag
@@ -36,7 +37,7 @@ Vue.use(Tag);
Tag
```
-#### Mark style
+### Mark style
```html
Tag
@@ -45,7 +46,7 @@ Vue.use(Tag);
Tag
```
-#### Custom Color
+### Custom Color
```html
Tag
@@ -55,7 +56,7 @@ Vue.use(Tag);
Tag
```
-#### Custom Size
+### Custom Size
```html
Tag
@@ -63,6 +64,8 @@ Vue.use(Tag);
Tag
```
+## API
+
### Props
| Attribute | Description | Type | Default |
@@ -75,7 +78,6 @@ Vue.use(Tag);
| mark | Whether to be mark style | `Boolean` | `false` |
| text-color | Text color | `String` | `white` |
-
### Slots
| Name | Description |
diff --git a/packages/tag/zh-CN.md b/packages/tag/zh-CN.md
index 240f741f3..fb75b833a 100644
--- a/packages/tag/zh-CN.md
+++ b/packages/tag/zh-CN.md
@@ -1,15 +1,16 @@
-## Tag 标记
+# Tag 标记
+
+### 引入
-### 使用指南
``` javascript
import { Tag } from 'vant';
Vue.use(Tag);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
通过 type 属性控制 Tag 颜色,默认为灰色
@@ -20,7 +21,7 @@ Vue.use(Tag);
标签
```
-#### 空心样式
+### 空心样式
设置`plain`属性设置为空心样式
@@ -31,7 +32,7 @@ Vue.use(Tag);
标签
```
-#### 圆角样式
+### 圆角样式
通过`round`设置为圆角样式
@@ -42,7 +43,7 @@ Vue.use(Tag);
标签
```
-#### 标记样式
+### 标记样式
通过`mark`设置为标记样式(半圆角)
@@ -53,7 +54,7 @@ Vue.use(Tag);
标签
```
-#### 自定义颜色
+### 自定义颜色
```html
标签
@@ -63,7 +64,7 @@ Vue.use(Tag);
标签
```
-#### 标签大小
+### 标签大小
```html
标签
@@ -71,6 +72,8 @@ Vue.use(Tag);
标签
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/packages/toast/en-US.md b/packages/toast/en-US.md
index 8e0345002..411670de8 100644
--- a/packages/toast/en-US.md
+++ b/packages/toast/en-US.md
@@ -1,4 +1,4 @@
-## Toast
+# Toast
### Install
@@ -8,16 +8,15 @@ import { Toast } from 'vant';
Vue.use(Toast);
```
-### Usage
+## Usage
-#### Text
+### Text
```javascript
Toast('Some messages');
```
-
-#### Loading
+### Loading
```javascript
Toast.loading({
@@ -26,16 +25,14 @@ Toast.loading({
});
```
-
-#### Success/Fail
+### Success/Fail
```javascript
Toast.success('Success');
Toast.fail('Fail');
```
-
-#### Advanced Usage
+### Advanced Usage
```javascript
const toast = Toast.loading({
@@ -57,7 +54,8 @@ const timer = setInterval(() => {
}, 1000);
```
-#### $toast Method
+### $toast Method
+
After import the Toast component, the $toast method is automatically mounted on Vue.prototype, making it easy to call within a vue component.
```js
@@ -68,7 +66,8 @@ export default {
}
```
-#### Singleton
+### Singleton
+
Toast use singleton mode by default, if you need to pop multiple Toast at the same time, you can refer to the following example
```js
@@ -81,6 +80,8 @@ toast1.clear();
toast2.clear();
```
+## API
+
### Methods
| Methods | Attribute | Return value | Description |
diff --git a/packages/toast/zh-CN.md b/packages/toast/zh-CN.md
index 92e94c008..43e27b17e 100644
--- a/packages/toast/zh-CN.md
+++ b/packages/toast/zh-CN.md
@@ -1,6 +1,6 @@
-## Toast 轻提示
+# Toast 轻提示
-### 使用指南
+### 引入
```javascript
import { Toast } from 'vant';
@@ -8,15 +8,15 @@ import { Toast } from 'vant';
Vue.use(Toast);
```
-### 代码演示
+## 代码演示
-#### 文字提示
+### 文字提示
```javascript
Toast('提示内容');
```
-#### 加载提示
+### 加载提示
```javascript
Toast.loading({
@@ -25,14 +25,14 @@ Toast.loading({
});
```
-#### 成功/失败提示
+### 成功/失败提示
```javascript
Toast.success('成功文案');
Toast.fail('失败文案');
```
-#### 高级用法
+### 高级用法
```javascript
const toast = Toast.loading({
@@ -54,7 +54,8 @@ const timer = setInterval(() => {
}, 1000);
```
-#### 组件内调用
+### 组件内调用
+
引入 Toast 组件后,会自动在 Vue 的 prototype 上挂载 $toast 方法,便于在组件内调用。
```js
@@ -65,7 +66,8 @@ export default {
}
```
-#### 单例模式
+### 单例模式
+
Toast 默认采用单例模式,即同一时间只会存在一个 Toast,如果需要在同一时间弹出多个 Toast,可以参考下面的示例
```js
@@ -78,6 +80,8 @@ toast1.clear();
toast2.clear();
```
+## API
+
### 方法
| 方法名 | 参数 | 返回值 | 介绍 |
diff --git a/packages/tree-select/en-US.md b/packages/tree-select/en-US.md
index e439f06db..2d3bbe791 100644
--- a/packages/tree-select/en-US.md
+++ b/packages/tree-select/en-US.md
@@ -1,15 +1,16 @@
-## TreeSelect
+# TreeSelect
### Install
+
``` javascript
import { TreeSelect } from 'vant';
Vue.use(TreeSelect);
```
-### Usage
+## Usage
-#### Basic Usage
+### Basic Usage
```html
@@ -29,7 +30,7 @@ export default {
};
```
-#### Name
+### Name
```html
@@ -47,7 +48,7 @@ export default {
};
```
-#### Set input attrs
+### Set input attrs
You can set native properties such as `accpet`、`multiple` on Uploader, and the input will automatically inherits the attribute.
@@ -57,6 +58,8 @@ You can set native properties such as `accpet`、`multiple` on Uploader, and the
```
+## API
+
### Props
| Attribute | Description | Type | Default |
diff --git a/packages/uploader/zh-CN.md b/packages/uploader/zh-CN.md
index 8992f1203..fc791d3d7 100644
--- a/packages/uploader/zh-CN.md
+++ b/packages/uploader/zh-CN.md
@@ -1,15 +1,16 @@
-## Uploader 图片上传
+# Uploader 图片上传
+
+### 引入
-### 使用指南
``` javascript
import { Uploader } from 'vant';
Vue.use(Uploader);
```
-### 代码演示
+## 代码演示
-#### 基础用法
+### 基础用法
```html
@@ -27,7 +28,7 @@ export default {
};
```
-#### 标识名称
+### 标识名称
```html
@@ -45,7 +46,7 @@ export default {
};
```
-#### 设置 Input 属性
+### 设置 Input 属性
可以直接在 Uploader 上设置 accpet、multiple 等原生属性,input 会自动继承该属性
@@ -55,6 +56,8 @@ export default {
```
+## API
+
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
diff --git a/yarn.lock b/yarn.lock
index 0062a179a..898bcd61a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -933,10 +933,10 @@
resolved "https://registry.yarnpkg.com/@types/jest-diff/-/jest-diff-20.0.1.tgz#35cc15b9c4f30a18ef21852e255fdb02f6d59b89"
integrity sha512-yALhelO3i0hqZwhjtcr6dYyaLoCHbAMshwtj6cGxTvHZAKXHsYGdff6E8EPw3xLKY0ELUTQ69Q1rQiJENnccMA==
-"@types/jest@^24.0.12":
- version "24.0.12"
- resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.12.tgz#0553dd0a5ac744e7dc4e8700da6d3baedbde3e8f"
- integrity sha512-60sjqMhat7i7XntZckcSGV8iREJyXXI6yFHZkSZvCPUeOnEJ/VP1rU/WpEWQ56mvoh8NhC+sfKAuJRTyGtCOow==
+"@types/jest@^24.0.13":
+ version "24.0.13"
+ resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.13.tgz#10f50b64cb05fb02411fbba49e9042a3a11da3f9"
+ integrity sha512-3m6RPnO35r7Dg+uMLj1+xfZaOgIHHHut61djNjzwExXN4/Pm9has9C6I1KMYSfz7mahDhWUOVg4HW/nZdv5Pww==
dependencies:
"@types/jest-diff" "*"
@@ -1024,10 +1024,10 @@
lodash.unescape "4.0.1"
semver "5.5.0"
-"@vant/doc@^1.0.26":
- version "1.0.26"
- resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-1.0.26.tgz#e5d943d4a2086e75a1335fd6c27936d716f7c30d"
- integrity sha512-RmIpLie1itvHfKFRPumeZZ4zORiXtDhZ4L1spWw+9t0JaXfUtDccdd6YztX23QgpM86cilgqjm+RdJ2x3b7xgw==
+"@vant/doc@^2.0.0":
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.0.0.tgz#5087b27d2c12fb0195eab86e0bde2f5d588f73ff"
+ integrity sha512-s/pBvnLKSFikcjNRLi4gSN06HC0TRJswZ4maWZ0SKNs5wFr7aKCOPmpsujuTSrA0qs33ryeGsO+BGA+xll/1pA==
dependencies:
cheerio "0.22.0"
commander "^2.17.1"
@@ -1053,13 +1053,13 @@
resolved "https://registry.yarnpkg.com/@vant/icons/-/icons-1.1.7.tgz#29561adfffa6a750d279dccdbe9a69b743934f3f"
integrity sha512-hCHVniOmBIs789UYxICgC3k3wGWI3QGx3/LOtSjMu7DtCyGdFX/6saNzrpDENNAponHAsszvUmBz37v9GQjX9A==
-"@vant/markdown-loader@^1.0.3":
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/@vant/markdown-loader/-/markdown-loader-1.0.3.tgz#dc874a740a2b46a0e79bb5bcc43ca95a0b83fe07"
- integrity sha512-BKjTBncVaJZqY+c1ihscQGhPM6FE21mVSZqRV6/kAtB0o4BopUVhM3dvpa13A8oDCAODkk9bySfL8wYcjyp3rQ==
+"@vant/markdown-loader@^2.0.0":
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/@vant/markdown-loader/-/markdown-loader-2.0.0.tgz#9bcc3b3375f39d27663fbee65dea5374f4fea6db"
+ integrity sha512-nvIW109AZOe6IX/E5qOBuATSdvdUm0uaonnWQ2yM6hgRD7xlKOrAhBBl+aT+AxUCQw7LLWRVKKkqE91oFqZYVQ==
dependencies:
- highlight.js "^9.12.0"
- markdown-it "^8.4.0"
+ highlight.js "^9.15.6"
+ markdown-it "^8.4.2"
"@vue/babel-helper-vue-jsx-merge-props@^1.0.0":
version "1.0.0"
@@ -1666,15 +1666,15 @@ babel-jest@^24.8.0:
chalk "^2.4.2"
slash "^2.0.0"
-babel-loader@^8.0.4:
- version "8.0.5"
- resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.0.5.tgz#225322d7509c2157655840bba52e46b6c2f2fe33"
- integrity sha512-NTnHnVRd2JnRqPC0vW+iOQWU5pchDbYXsG2E6DMXEpMfUcQKclF9gmf3G3ZMhzG7IG9ji4coL0cm+FxeWxDpnw==
+babel-loader@^8.0.6:
+ version "8.0.6"
+ resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.0.6.tgz#e33bdb6f362b03f4bb141a0c21ab87c501b70dfb"
+ integrity sha512-4BmWKtBOBm13uoUwd08UwjZlaw3O9GWf456R9j+5YykFZ6LUIjIKLc0zEZf+hauxPOJs96C8k6FvYD09vWzhYw==
dependencies:
find-cache-dir "^2.0.0"
loader-utils "^1.0.2"
mkdirp "^0.5.1"
- util.promisify "^1.0.0"
+ pify "^4.0.1"
babel-plugin-istanbul@^5.1.0:
version "5.1.4"
@@ -2267,15 +2267,15 @@ code-point-at@^1.0.0:
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=
-codecov@^3.3.0:
- version "3.3.0"
- resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.3.0.tgz#7bf337b3f7b0474606b5c31c56dd9e44e395e15d"
- integrity sha512-S70c3Eg9SixumOvxaKE/yKUxb9ihu/uebD9iPO2IR73IdP4i6ZzjXEULj3d0HeyWPr0DqBfDkjNBWxURjVO5hw==
+codecov@^3.5.0:
+ version "3.5.0"
+ resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.5.0.tgz#3d0748932f9cb41e1ad7f21fa346ef1b2b1bed47"
+ integrity sha512-/OsWOfIHaQIr7aeZ4pY0UC1PZT6kimoKFOFYFNb6wxo3iw12nRrh+mNGH72rnXxNsq6SGfesVPizm/6Q3XqcFQ==
dependencies:
argv "^0.0.2"
ignore-walk "^3.0.1"
- js-yaml "^3.12.0"
- teeny-request "^3.7.0"
+ js-yaml "^3.13.1"
+ teeny-request "^3.11.3"
urlgrey "^0.4.4"
collapse-white-space@^1.0.2:
@@ -2505,7 +2505,7 @@ cosmiconfig@^4.0.0:
parse-json "^4.0.0"
require-from-string "^2.0.1"
-cosmiconfig@^5.0.0, cosmiconfig@^5.0.2, cosmiconfig@^5.2.0:
+cosmiconfig@^5.0.0, cosmiconfig@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.0.tgz#45038e4d28a7fe787203aede9c25bca4a08b12c8"
integrity sha512-nxt+Nfc3JAqf4WIWd0jXLjTJZmsPLrA9DDc4nRw2KFJQJK7DNooqSXrNI7tzLG50CF8axczly5UV929tBmh/7g==
@@ -4270,7 +4270,7 @@ he@1.2.x, he@^1.1.0:
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
-highlight.js@^9.12.0:
+highlight.js@^9.15.6:
version "9.15.6"
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.15.6.tgz#72d4d8d779ec066af9a17cb14360c3def0aa57c4"
integrity sha512-zozTAWM1D6sozHo8kqhfYgsac+B+q0PmsjXeyDrYIHHcBN0zTVT66+s2GW1GZv7DbyaROdLXKdabwS/WqPyIdQ==
@@ -4430,10 +4430,10 @@ humanize-url@^1.0.0:
normalize-url "^1.0.0"
strip-url-auth "^1.0.0"
-husky@^2.2.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/husky/-/husky-2.2.0.tgz#4dda4370ba0f145b6594be4a4e4e4d4c82a6f2d5"
- integrity sha512-lG33E7zq6v//H/DQIojPEi1ZL9ebPFt3MxUMD8MR0lrS2ljEPiuUUxlziKIs/o9EafF0chL7bAtLQkcPvXmdnA==
+husky@^2.3.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/husky/-/husky-2.3.0.tgz#8b78ed24d763042df7fd899991985d65a976dd13"
+ integrity sha512-A/ZQSEILoq+mQM3yC3RIBSaw1bYXdkKnyyKVSUiJl+iBjVZc5LQEXdGY1ZjrDxC4IzfRPiJ0IqzEQGCN5TQa/A==
dependencies:
cosmiconfig "^5.2.0"
execa "^1.0.0"
@@ -4442,9 +4442,9 @@ husky@^2.2.0:
is-ci "^2.0.0"
pkg-dir "^4.1.0"
please-upgrade-node "^3.1.1"
- read-pkg "^5.0.0"
+ read-pkg "^5.1.1"
run-node "^1.0.0"
- slash "^2.0.0"
+ slash "^3.0.0"
iconv-lite@0.4.23:
version "0.4.23"
@@ -5420,7 +5420,7 @@ js-levenshtein@^1.1.3:
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
-js-yaml@^3.12.0, js-yaml@^3.13.0, js-yaml@^3.9.0:
+js-yaml@^3.13.0, js-yaml@^3.13.1, js-yaml@^3.9.0:
version "3.13.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847"
integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==
@@ -5647,14 +5647,14 @@ linkify-it@^2.0.0:
dependencies:
uc.micro "^1.0.1"
-lint-staged@^8.1.6:
- version "8.1.6"
- resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-8.1.6.tgz#128a9bc5effbf69a359fb8f7eeb2da71a998daf6"
- integrity sha512-QT13AniHN6swAtTjsrzxOfE4TVCiQ39xESwLmjGVNCMMZ/PK5aopwvbxLrzw+Zf9OxM3cQG6WCx9lceLzETOnQ==
+lint-staged@^8.1.7:
+ version "8.1.7"
+ resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-8.1.7.tgz#a8988bc83bdffa97d04adb09dbc0b1f3a58fa6fc"
+ integrity sha512-egT0goFhIFoOGk6rasPngTFh2qDqxZddM0PwI58oi66RxCDcn5uDwxmiasWIF0qGnchHSYVJ8HPRD5LrFo7TKA==
dependencies:
chalk "^2.3.1"
commander "^2.14.1"
- cosmiconfig "^5.0.2"
+ cosmiconfig "^5.2.0"
debug "^3.1.0"
dedent "^0.7.0"
del "^3.0.0"
@@ -6014,7 +6014,7 @@ markdown-escapes@^1.0.0:
resolved "https://registry.yarnpkg.com/markdown-escapes/-/markdown-escapes-1.0.3.tgz#6155e10416efaafab665d466ce598216375195f5"
integrity sha512-XUi5HJhhV5R74k8/0H2oCbCiYf/u4cO/rX8tnGkRvrqhsr5BRNU6Mg0yt/8UIx1iIS8220BNJsDb7XnILhLepw==
-markdown-it@^8.4.0:
+markdown-it@^8.4.2:
version "8.4.2"
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-8.4.2.tgz#386f98998dc15a37722aa7722084f4020bdd9b54"
integrity sha512-GcRz3AWTqSUphY3vsUqQSFMbgR38a4Lh3GWlHRh/7MRwz8mcu9n2IO7HOh+bXHrR9kOPDl5RNCaEsrneb+xhHQ==
@@ -7641,7 +7641,7 @@ read-pkg@^3.0.0:
normalize-package-data "^2.3.2"
path-type "^3.0.0"
-read-pkg@^5.0.0:
+read-pkg@^5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.1.1.tgz#5cf234dde7a405c90c88a519ab73c467e9cb83f5"
integrity sha512-dFcTLQi6BZ+aFUaICg7er+/usEoqFdQxiEBsEMNGoipenihtxxtdrQuBXvyANCEI8VuUIVYFgeHGx9sLLvim4w==
@@ -8290,6 +8290,11 @@ slash@^2.0.0:
resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44"
integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==
+slash@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
+ integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
+
slice-ansi@0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35"
@@ -8951,7 +8956,7 @@ tar@^4:
safe-buffer "^5.1.2"
yallist "^3.0.2"
-teeny-request@^3.7.0:
+teeny-request@^3.11.3:
version "3.11.3"
resolved "https://registry.yarnpkg.com/teeny-request/-/teeny-request-3.11.3.tgz#335c629f7645e5d6599362df2f3230c4cbc23a55"
integrity sha512-CKncqSF7sH6p4rzCgkb/z/Pcos5efl0DmolzvlqRQUNcpRIruOhY9+T1FsIlyEbfWd7MsFpodROOwHYh2BaXzw==
@@ -9763,10 +9768,10 @@ webpack-sources@^1.1.0, webpack-sources@^1.3.0:
source-list-map "^2.0.0"
source-map "~0.6.1"
-webpack@^4.30.0:
- version "4.30.0"
- resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.30.0.tgz#aca76ef75630a22c49fcc235b39b4c57591d33a9"
- integrity sha512-4hgvO2YbAFUhyTdlR4FNyt2+YaYBYHavyzjCMbZzgglo02rlKi/pcsEzwCuCpsn1ryzIl1cq/u8ArIKu8JBYMg==
+webpack@^4.31.0:
+ version "4.31.0"
+ resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.31.0.tgz#ae201d45f0571336e42d1c2b5c8ab56c4d3b0c63"
+ integrity sha512-n6RVO3X0LbbipoE62akME9K/JI7qYrwwufs20VvgNNpqUoH4860KkaxJTbGq5bgkVZF9FqyyTG/0WPLH3PVNJA==
dependencies:
"@webassemblyjs/ast" "1.8.5"
"@webassemblyjs/helper-module-context" "1.8.5"