diff --git a/packages/create-vant-cli-app/generators/templates/src/demo-button/README.md b/packages/create-vant-cli-app/generators/templates/src/demo-button/README.md index d14c119d0..b80b0b7c4 100644 --- a/packages/create-vant-cli-app/generators/templates/src/demo-button/README.md +++ b/packages/create-vant-cli-app/generators/templates/src/demo-button/README.md @@ -6,7 +6,7 @@ DemoButton 是一个示例按钮组件 ### 引入 -``` javascript +```js import Vue from 'vue'; import { DemoButton } from '<%= name %>'; diff --git a/packages/vant-cli/site/common/style/highlight.less b/packages/vant-cli/site/common/style/highlight.less index 6552ad4eb..e0b25a2c8 100644 --- a/packages/vant-cli/site/common/style/highlight.less +++ b/packages/vant-cli/site/common/style/highlight.less @@ -71,7 +71,7 @@ pre { .hljs-selector-id, .hljs-selector-class, .hljs-strong { - color: #5299e0; + color: #4994df; } .hljs-emphasis { diff --git a/packages/vant-cli/site/common/style/var.less b/packages/vant-cli/site/common/style/var.less index b15f2a879..6ae0506ae 100644 --- a/packages/vant-cli/site/common/style/var.less +++ b/packages/vant-cli/site/common/style/var.less @@ -10,7 +10,7 @@ @van-doc-dark-grey: #666; @van-doc-light-grey: #ccc; @van-doc-border-color: #f1f4f8; -@van-doc-code-color: #455a64; +@van-doc-code-color: #58727e; @van-doc-code-background-color: #f1f4f8; @van-doc-code-font-family: 'Source Code Pro', 'Monaco', 'Inconsolata', monospace; @van-doc-padding: 30px; diff --git a/packages/vant-cli/site/desktop/components/Content.vue b/packages/vant-cli/site/desktop/components/Content.vue index cfdc30c7d..a95b90a63 100644 --- a/packages/vant-cli/site/desktop/components/Content.vue +++ b/packages/vant-cli/site/desktop/components/Content.vue @@ -189,6 +189,10 @@ export default { -webkit-font-smoothing: antialiased; } + p > code { + font-size: 14px; + } + section { padding: 30px; overflow: hidden; diff --git a/src/action-sheet/README.md b/src/action-sheet/README.md index 1388c5803..f1d622c97 100644 --- a/src/action-sheet/README.md +++ b/src/action-sheet/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { ActionSheet } from 'vant'; diff --git a/src/action-sheet/README.zh-CN.md b/src/action-sheet/README.zh-CN.md index c3cf02280..8553200cb 100644 --- a/src/action-sheet/README.zh-CN.md +++ b/src/action-sheet/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { ActionSheet } from 'vant'; diff --git a/src/address-edit/README.md b/src/address-edit/README.md index 65736d5b3..ef9bd6fda 100644 --- a/src/address-edit/README.md +++ b/src/address-edit/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { AddressEdit } from 'vant'; diff --git a/src/address-edit/README.zh-CN.md b/src/address-edit/README.zh-CN.md index b5daa9777..11eb124ae 100644 --- a/src/address-edit/README.zh-CN.md +++ b/src/address-edit/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { AddressEdit } from 'vant'; diff --git a/src/address-list/README.md b/src/address-list/README.md index f75786909..2ff5102a9 100644 --- a/src/address-list/README.md +++ b/src/address-list/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { AddressList } from 'vant'; diff --git a/src/address-list/README.zh-CN.md b/src/address-list/README.zh-CN.md index 912d1c9c2..185eb451c 100644 --- a/src/address-list/README.zh-CN.md +++ b/src/address-list/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { AddressList } from 'vant'; diff --git a/src/area/README.md b/src/area/README.md index 758bd4e46..7c2037edb 100644 --- a/src/area/README.md +++ b/src/area/README.md @@ -6,7 +6,7 @@ The Picker component is usually used with [Popup](#/en-US/popup) Component. ### Install -``` javascript +```js import Vue from 'vue'; import { Area } from 'vant'; diff --git a/src/button/README.md b/src/button/README.md index 3309a9548..0937207e4 100644 --- a/src/button/README.md +++ b/src/button/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Button } from 'vant'; diff --git a/src/button/README.zh-CN.md b/src/button/README.zh-CN.md index 1a8124599..9b1465839 100644 --- a/src/button/README.zh-CN.md +++ b/src/button/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Button } from 'vant'; diff --git a/src/calendar/README.md b/src/calendar/README.md index a2a969266..1a760364e 100644 --- a/src/calendar/README.md +++ b/src/calendar/README.md @@ -6,7 +6,7 @@ Calendar component for selecting dates or date ranges ### Install -``` javascript +```js import Vue from 'vue'; import { Calendar } from 'vant'; diff --git a/src/calendar/README.zh-CN.md b/src/calendar/README.zh-CN.md index 7baeb9dcc..ce1d2582d 100644 --- a/src/calendar/README.zh-CN.md +++ b/src/calendar/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Calendar } from 'vant'; diff --git a/src/card/README.md b/src/card/README.md index 0c2c2be39..62c2f9dca 100644 --- a/src/card/README.md +++ b/src/card/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Card } from 'vant'; diff --git a/src/card/README.zh-CN.md b/src/card/README.zh-CN.md index ec53860d5..48820dc30 100644 --- a/src/card/README.zh-CN.md +++ b/src/card/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Card } from 'vant'; diff --git a/src/cell/README.md b/src/cell/README.md index b2eaa574a..5625f7490 100644 --- a/src/cell/README.md +++ b/src/cell/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Cell, CellGroup } from 'vant'; diff --git a/src/cell/README.zh-CN.md b/src/cell/README.zh-CN.md index 9d8dcda46..7ed10b5f8 100644 --- a/src/cell/README.zh-CN.md +++ b/src/cell/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Cell, CellGroup } from 'vant'; diff --git a/src/checkbox/README.md b/src/checkbox/README.md index e3571b8a9..7f380afc9 100644 --- a/src/checkbox/README.md +++ b/src/checkbox/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Checkbox, CheckboxGroup } from 'vant'; diff --git a/src/checkbox/README.zh-CN.md b/src/checkbox/README.zh-CN.md index fb0a849b3..0eb70c1a1 100644 --- a/src/checkbox/README.zh-CN.md +++ b/src/checkbox/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Checkbox, CheckboxGroup } from 'vant'; diff --git a/src/circle/README.md b/src/circle/README.md index 48fd96229..25ce9c548 100644 --- a/src/circle/README.md +++ b/src/circle/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Circle } from 'vant'; @@ -22,7 +22,7 @@ Vue.use(Circle); /> ``` -``` javascript +```js export default { data() { return { @@ -70,7 +70,7 @@ export default { /> ``` -``` javascript +```js export default { data() { return { diff --git a/src/circle/README.zh-CN.md b/src/circle/README.zh-CN.md index 6b878d9d9..d2c0ebf86 100644 --- a/src/circle/README.zh-CN.md +++ b/src/circle/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Circle } from 'vant'; @@ -24,7 +24,7 @@ Vue.use(Circle); /> ``` -``` javascript +```js export default { data() { return { @@ -78,7 +78,7 @@ export default { /> ``` -``` javascript +```js export default { data() { return { diff --git a/src/col/README.md b/src/col/README.md index 52c4bad32..d3beb2c6c 100644 --- a/src/col/README.md +++ b/src/col/README.md @@ -6,7 +6,7 @@ Quickly and easily create layouts with `van-row` and `van-col` ### Install -``` javascript +```js import Vue from 'vue'; import { Col, Row } from 'vant'; diff --git a/src/col/README.zh-CN.md b/src/col/README.zh-CN.md index c236a65cd..61ddefaca 100644 --- a/src/col/README.zh-CN.md +++ b/src/col/README.zh-CN.md @@ -6,7 +6,7 @@ Layout 提供了`van-row`和`van-col`两个组件来进行行列布局 ### 引入 -``` javascript +```js import Vue from 'vue'; import { Col, Row } from 'vant'; diff --git a/src/collapse/README.md b/src/collapse/README.md index a8abec06c..6cb367e29 100644 --- a/src/collapse/README.md +++ b/src/collapse/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Collapse, CollapseItem } from 'vant'; @@ -24,7 +24,7 @@ Use `v-model` to control the name of active panels ``` -``` javascript +```js export default { data() { return { @@ -46,7 +46,7 @@ In accordion mode, only one panel can be expanded at the same time. ``` -``` javascript +```js export default { data() { return { @@ -74,7 +74,7 @@ export default { ``` -``` javascript +```js export default { data() { return { diff --git a/src/collapse/README.zh-CN.md b/src/collapse/README.zh-CN.md index 1ca73336a..b15cdc319 100644 --- a/src/collapse/README.zh-CN.md +++ b/src/collapse/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Collapse, CollapseItem } from 'vant'; @@ -24,7 +24,7 @@ Vue.use(CollapseItem); ``` -``` javascript +```js export default { data() { return { @@ -46,7 +46,7 @@ export default { ``` -``` javascript +```js export default { data() { return { @@ -75,7 +75,7 @@ export default { ``` -``` javascript +```js export default { data() { return { diff --git a/src/contact-card/README.md b/src/contact-card/README.md index dc4404b47..810f9547b 100644 --- a/src/contact-card/README.md +++ b/src/contact-card/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { ContactCard, ContactList, ContactEdit } from 'vant'; @@ -46,7 +46,7 @@ Vue.use(ContactEdit); ``` -``` javascript +```js export default { data() { return { diff --git a/src/contact-card/README.zh-CN.md b/src/contact-card/README.zh-CN.md index 02f8e2728..7146bb0ba 100644 --- a/src/contact-card/README.zh-CN.md +++ b/src/contact-card/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { ContactCard, ContactList, ContactEdit } from 'vant'; @@ -50,7 +50,7 @@ Vue.use(ContactEdit); ``` -``` javascript +```js export default { data() { return { diff --git a/src/count-down/README.md b/src/count-down/README.md index a60290b97..898e81946 100644 --- a/src/count-down/README.md +++ b/src/count-down/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { CountDown } from 'vant'; diff --git a/src/count-down/README.zh-CN.md b/src/count-down/README.zh-CN.md index a0737469f..354d150c9 100644 --- a/src/count-down/README.zh-CN.md +++ b/src/count-down/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { CountDown } from 'vant'; diff --git a/src/coupon-list/README.md b/src/coupon-list/README.md index 64dfab51b..08ca17d16 100644 --- a/src/coupon-list/README.md +++ b/src/coupon-list/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { CouponCell, CouponList } from 'vant'; diff --git a/src/coupon-list/README.zh-CN.md b/src/coupon-list/README.zh-CN.md index 94cb683d3..1d2b967c3 100644 --- a/src/coupon-list/README.zh-CN.md +++ b/src/coupon-list/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { CouponCell, CouponList } from 'vant'; diff --git a/src/datetime-picker/README.md b/src/datetime-picker/README.md index ad8b1887b..950f81748 100644 --- a/src/datetime-picker/README.md +++ b/src/datetime-picker/README.md @@ -6,7 +6,7 @@ Used to select time, support date and time dimensions, usually used with the [Po ### Install -``` javascript +```js import Vue from 'vue'; import { DatetimePicker } from 'vant'; diff --git a/src/divider/README.md b/src/divider/README.md index 9b4280dfe..427039cb3 100644 --- a/src/divider/README.md +++ b/src/divider/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Divider } from 'vant'; diff --git a/src/divider/README.zh-CN.md b/src/divider/README.zh-CN.md index 26d87493a..d86f751eb 100644 --- a/src/divider/README.zh-CN.md +++ b/src/divider/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Divider } from 'vant'; diff --git a/src/dropdown-menu/README.md b/src/dropdown-menu/README.md index cee3b9ef4..4e9bf1d56 100644 --- a/src/dropdown-menu/README.md +++ b/src/dropdown-menu/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { DropdownMenu, DropdownItem } from 'vant'; diff --git a/src/dropdown-menu/README.zh-CN.md b/src/dropdown-menu/README.zh-CN.md index 78320a889..2f90468d0 100644 --- a/src/dropdown-menu/README.zh-CN.md +++ b/src/dropdown-menu/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { DropdownMenu, DropdownItem } from 'vant'; diff --git a/src/field/README.md b/src/field/README.md index 1f2084be3..41f38ef60 100644 --- a/src/field/README.md +++ b/src/field/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Field } from 'vant'; diff --git a/src/field/README.zh-CN.md b/src/field/README.zh-CN.md index 8c778a98d..732bfec50 100644 --- a/src/field/README.zh-CN.md +++ b/src/field/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Field } from 'vant'; diff --git a/src/goods-action/README.md b/src/goods-action/README.md index 471b5f519..bc017f0ff 100644 --- a/src/goods-action/README.md +++ b/src/goods-action/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'; diff --git a/src/goods-action/README.zh-CN.md b/src/goods-action/README.zh-CN.md index 03fec879b..9362eeb8a 100644 --- a/src/goods-action/README.zh-CN.md +++ b/src/goods-action/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'; diff --git a/src/grid/README.md b/src/grid/README.md index d99e8c169..797a9d2f4 100644 --- a/src/grid/README.md +++ b/src/grid/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Grid, GridItem } from 'vant'; diff --git a/src/grid/README.zh-CN.md b/src/grid/README.zh-CN.md index b8c41dcc9..a748e2721 100644 --- a/src/grid/README.zh-CN.md +++ b/src/grid/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Grid, GridItem } from 'vant'; diff --git a/src/icon/README.md b/src/icon/README.md index 5faeba216..1261d9b52 100644 --- a/src/icon/README.md +++ b/src/icon/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Icon } from 'vant'; diff --git a/src/icon/README.zh-CN.md b/src/icon/README.zh-CN.md index 2f1c8d197..f9ff0c218 100644 --- a/src/icon/README.zh-CN.md +++ b/src/icon/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Icon } from 'vant'; diff --git a/src/image/README.md b/src/image/README.md index 5dc8066d8..749b8a946 100644 --- a/src/image/README.md +++ b/src/image/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Image } from 'vant'; diff --git a/src/image/README.zh-CN.md b/src/image/README.zh-CN.md index f7a364507..4bc52a119 100644 --- a/src/image/README.zh-CN.md +++ b/src/image/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Image } from 'vant'; diff --git a/src/index-bar/README.md b/src/index-bar/README.md index b036ca38f..d3ae74533 100644 --- a/src/index-bar/README.md +++ b/src/index-bar/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { IndexBar } from 'vant'; diff --git a/src/index-bar/README.zh-CN.md b/src/index-bar/README.zh-CN.md index 56a9c8a37..6a9d8eb73 100644 --- a/src/index-bar/README.zh-CN.md +++ b/src/index-bar/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { IndexBar, IndexAnchor } from 'vant'; diff --git a/src/list/README.md b/src/list/README.md index 996246e7e..3e7f86f07 100644 --- a/src/list/README.md +++ b/src/list/README.md @@ -6,7 +6,7 @@ A list component to show items and control loading status. ### Install -``` javascript +```js import Vue from 'vue'; import { List } from 'vant'; diff --git a/src/list/README.zh-CN.md b/src/list/README.zh-CN.md index 3aaad2207..b33f8922a 100644 --- a/src/list/README.zh-CN.md +++ b/src/list/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { List } from 'vant'; diff --git a/src/loading/README.md b/src/loading/README.md index 9f9678495..4df5c6880 100644 --- a/src/loading/README.md +++ b/src/loading/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Loading } from 'vant'; diff --git a/src/loading/README.zh-CN.md b/src/loading/README.zh-CN.md index 22b27fd3b..7b8373816 100644 --- a/src/loading/README.zh-CN.md +++ b/src/loading/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Loading } from 'vant'; diff --git a/src/nav-bar/README.md b/src/nav-bar/README.md index e6757f497..ab60e1a5d 100644 --- a/src/nav-bar/README.md +++ b/src/nav-bar/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { NavBar } from 'vant'; diff --git a/src/nav-bar/README.zh-CN.md b/src/nav-bar/README.zh-CN.md index c3bc700bc..3df5fd1a9 100644 --- a/src/nav-bar/README.zh-CN.md +++ b/src/nav-bar/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { NavBar } from 'vant'; diff --git a/src/notice-bar/README.md b/src/notice-bar/README.md index 3ef2591b7..11f43d996 100644 --- a/src/notice-bar/README.md +++ b/src/notice-bar/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { NoticeBar } from 'vant'; diff --git a/src/notice-bar/README.zh-CN.md b/src/notice-bar/README.zh-CN.md index 48c236d03..3cadb491c 100644 --- a/src/notice-bar/README.zh-CN.md +++ b/src/notice-bar/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { NoticeBar } from 'vant'; diff --git a/src/notify/README.md b/src/notify/README.md index 4db4c3d75..b63768cc0 100644 --- a/src/notify/README.md +++ b/src/notify/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Notify } from 'vant'; diff --git a/src/notify/README.zh-CN.md b/src/notify/README.zh-CN.md index 1fcc4e903..9e786e83e 100644 --- a/src/notify/README.zh-CN.md +++ b/src/notify/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Notify } from 'vant'; diff --git a/src/number-keyboard/README.md b/src/number-keyboard/README.md index d805dfd4b..4963230fd 100644 --- a/src/number-keyboard/README.md +++ b/src/number-keyboard/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { NumberKeyboard } from 'vant'; diff --git a/src/number-keyboard/README.zh-CN.md b/src/number-keyboard/README.zh-CN.md index c3187aeb4..0826f7332 100644 --- a/src/number-keyboard/README.zh-CN.md +++ b/src/number-keyboard/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { NumberKeyboard } from 'vant'; diff --git a/src/overlay/README.md b/src/overlay/README.md index 96646e10e..4a357a18d 100644 --- a/src/overlay/README.md +++ b/src/overlay/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Overlay } from 'vant'; diff --git a/src/overlay/README.zh-CN.md b/src/overlay/README.zh-CN.md index 59c5fbdcd..d18ad1cd3 100644 --- a/src/overlay/README.zh-CN.md +++ b/src/overlay/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Overlay } from 'vant'; diff --git a/src/pagination/README.md b/src/pagination/README.md index de376ff0b..23a0c80f6 100644 --- a/src/pagination/README.md +++ b/src/pagination/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Pagination } from 'vant'; diff --git a/src/pagination/README.zh-CN.md b/src/pagination/README.zh-CN.md index c93101cc4..09cb95938 100644 --- a/src/pagination/README.zh-CN.md +++ b/src/pagination/README.zh-CN.md @@ -3,7 +3,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Pagination } from 'vant'; diff --git a/src/panel/README.md b/src/panel/README.md index fbbd7605a..2fb12d190 100644 --- a/src/panel/README.md +++ b/src/panel/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Panel } from 'vant'; diff --git a/src/panel/README.zh-CN.md b/src/panel/README.zh-CN.md index 1db9b45f2..c897ab696 100644 --- a/src/panel/README.zh-CN.md +++ b/src/panel/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Panel } from 'vant'; diff --git a/src/password-input/README.md b/src/password-input/README.md index 7adfd78e6..c4bedb1d6 100644 --- a/src/password-input/README.md +++ b/src/password-input/README.md @@ -6,7 +6,7 @@ The PasswordInput component is usually used with [NumberKeyboard](#/en-US/number ### Install -``` javascript +```js import Vue from 'vue'; import { PasswordInput, NumberKeyboard } from 'vant'; diff --git a/src/password-input/README.zh-CN.md b/src/password-input/README.zh-CN.md index b0b0203fd..2ab6c8613 100644 --- a/src/password-input/README.zh-CN.md +++ b/src/password-input/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { PasswordInput, NumberKeyboard } from 'vant'; diff --git a/src/picker/README.md b/src/picker/README.md index 50d05daac..47421e9db 100644 --- a/src/picker/README.md +++ b/src/picker/README.md @@ -6,7 +6,7 @@ The Picker component is usually used with [Popup](#/en-US/popup) Component. ### Install -``` javascript +```js import Vue from 'vue'; import { Picker } from 'vant'; diff --git a/src/picker/README.zh-CN.md b/src/picker/README.zh-CN.md index 373a05e7c..bcdf82e51 100644 --- a/src/picker/README.zh-CN.md +++ b/src/picker/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Picker } from 'vant'; diff --git a/src/popup/README.md b/src/popup/README.md index 6d2a4f0ab..041bd185e 100644 --- a/src/popup/README.md +++ b/src/popup/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Popup } from 'vant'; diff --git a/src/popup/README.zh-CN.md b/src/popup/README.zh-CN.md index 714129377..b62791b37 100644 --- a/src/popup/README.zh-CN.md +++ b/src/popup/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Popup } from 'vant'; diff --git a/src/progress/README.md b/src/progress/README.md index c9310f3b4..6a42d6e31 100644 --- a/src/progress/README.md +++ b/src/progress/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Progress } from 'vant'; diff --git a/src/progress/README.zh-CN.md b/src/progress/README.zh-CN.md index 722e9977c..67c3988fd 100644 --- a/src/progress/README.zh-CN.md +++ b/src/progress/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Progress } from 'vant'; diff --git a/src/pull-refresh/README.md b/src/pull-refresh/README.md index 357bcc535..46f435bf6 100644 --- a/src/pull-refresh/README.md +++ b/src/pull-refresh/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { PullRefresh } from 'vant'; diff --git a/src/pull-refresh/README.zh-CN.md b/src/pull-refresh/README.zh-CN.md index 90a0e5cdf..1f794e40d 100644 --- a/src/pull-refresh/README.zh-CN.md +++ b/src/pull-refresh/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { PullRefresh } from 'vant'; diff --git a/src/radio/README.md b/src/radio/README.md index a4464271b..20537057b 100644 --- a/src/radio/README.md +++ b/src/radio/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { RadioGroup, Radio } from 'vant'; diff --git a/src/radio/README.zh-CN.md b/src/radio/README.zh-CN.md index a8992d374..0df48481f 100644 --- a/src/radio/README.zh-CN.md +++ b/src/radio/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { RadioGroup, Radio } from 'vant'; diff --git a/src/rate/README.md b/src/rate/README.md index 0b77fd234..a7e5c71c4 100644 --- a/src/rate/README.md +++ b/src/rate/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Rate } from 'vant'; diff --git a/src/rate/README.zh-CN.md b/src/rate/README.zh-CN.md index 5d24bc926..4df99b5c0 100644 --- a/src/rate/README.zh-CN.md +++ b/src/rate/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Rate } from 'vant'; diff --git a/src/search/README.md b/src/search/README.md index 04428533b..617d3ae1c 100644 --- a/src/search/README.md +++ b/src/search/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Search } from 'vant'; diff --git a/src/search/README.zh-CN.md b/src/search/README.zh-CN.md index 52c7d4722..0db371ec3 100644 --- a/src/search/README.zh-CN.md +++ b/src/search/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Search } from 'vant'; diff --git a/src/sidebar/README.md b/src/sidebar/README.md index 52d225ce8..659f45527 100644 --- a/src/sidebar/README.md +++ b/src/sidebar/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Sidebar, SidebarItem } from 'vant'; @@ -22,7 +22,7 @@ Vue.use(SidebarItem); ``` -``` javascript +```js export default { data() { return { diff --git a/src/sidebar/README.zh-CN.md b/src/sidebar/README.zh-CN.md index cf0367dec..7fd06ed86 100644 --- a/src/sidebar/README.zh-CN.md +++ b/src/sidebar/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Sidebar, SidebarItem } from 'vant'; @@ -24,7 +24,7 @@ Vue.use(SidebarItem); ``` -``` javascript +```js export default { data() { return { diff --git a/src/skeleton/README.md b/src/skeleton/README.md index e7347e058..9764366ed 100644 --- a/src/skeleton/README.md +++ b/src/skeleton/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Skeleton } from 'vant'; diff --git a/src/skeleton/README.zh-CN.md b/src/skeleton/README.zh-CN.md index a807da556..76c14f627 100644 --- a/src/skeleton/README.zh-CN.md +++ b/src/skeleton/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Skeleton } from 'vant'; diff --git a/src/slider/README.md b/src/slider/README.md index 4a6514793..2f29adc07 100644 --- a/src/slider/README.md +++ b/src/slider/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Slider } from 'vant'; diff --git a/src/slider/README.zh-CN.md b/src/slider/README.zh-CN.md index 24e4e1307..c4b6b726a 100644 --- a/src/slider/README.zh-CN.md +++ b/src/slider/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Slider } from 'vant'; diff --git a/src/stepper/README.md b/src/stepper/README.md index 530a5ca47..85be14ae0 100644 --- a/src/stepper/README.md +++ b/src/stepper/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Stepper } from 'vant'; diff --git a/src/stepper/README.zh-CN.md b/src/stepper/README.zh-CN.md index 2d8533613..20e87028a 100644 --- a/src/stepper/README.zh-CN.md +++ b/src/stepper/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Stepper } from 'vant'; diff --git a/src/steps/README.md b/src/steps/README.md index 3c700c19f..51d7d4230 100644 --- a/src/steps/README.md +++ b/src/steps/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Step, Steps } from 'vant'; diff --git a/src/steps/README.zh-CN.md b/src/steps/README.zh-CN.md index 5f2359e27..3b7694b2f 100644 --- a/src/steps/README.zh-CN.md +++ b/src/steps/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Step, Steps } from 'vant'; diff --git a/src/sticky/README.md b/src/sticky/README.md index 3e3231afe..1288b96ba 100644 --- a/src/sticky/README.md +++ b/src/sticky/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Sticky } from 'vant'; diff --git a/src/sticky/README.zh-CN.md b/src/sticky/README.zh-CN.md index 00abb0c57..cbd8dc211 100644 --- a/src/sticky/README.zh-CN.md +++ b/src/sticky/README.zh-CN.md @@ -6,7 +6,7 @@ Sticky 组件与 CSS 中`position: sticky`属性实现的效果一致,当组 ### 引入 -``` javascript +```js import Vue from 'vue'; import { Sticky } from 'vant'; diff --git a/src/submit-bar/README.md b/src/submit-bar/README.md index 458eb69fc..de76ee84b 100644 --- a/src/submit-bar/README.md +++ b/src/submit-bar/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { SubmitBar } from 'vant'; diff --git a/src/submit-bar/README.zh-CN.md b/src/submit-bar/README.zh-CN.md index b93d160c8..d0f3fa718 100644 --- a/src/submit-bar/README.zh-CN.md +++ b/src/submit-bar/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { SubmitBar } from 'vant'; diff --git a/src/swipe-cell/README.md b/src/swipe-cell/README.md index 2a9ceb497..4e911da38 100644 --- a/src/swipe-cell/README.md +++ b/src/swipe-cell/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { SwipeCell } from 'vant'; diff --git a/src/swipe-cell/README.zh-CN.md b/src/swipe-cell/README.zh-CN.md index df147b726..ad07617a7 100644 --- a/src/swipe-cell/README.zh-CN.md +++ b/src/swipe-cell/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { SwipeCell } from 'vant'; diff --git a/src/swipe/README.md b/src/swipe/README.md index 304be066c..7fa825ee9 100644 --- a/src/swipe/README.md +++ b/src/swipe/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Swipe, SwipeItem } from 'vant'; diff --git a/src/swipe/README.zh-CN.md b/src/swipe/README.zh-CN.md index f699cca9e..71d2ec916 100644 --- a/src/swipe/README.zh-CN.md +++ b/src/swipe/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Swipe, SwipeItem } from 'vant'; diff --git a/src/switch-cell/README.md b/src/switch-cell/README.md index d61da9f06..31c1d7994 100644 --- a/src/switch-cell/README.md +++ b/src/switch-cell/README.md @@ -6,7 +6,7 @@ The SwitchCell component will be deprecated in version 3.0. Please use the Cell ### Install -``` javascript +```js import Vue from 'vue'; import { SwitchCell } from 'vant'; diff --git a/src/switch-cell/README.zh-CN.md b/src/switch-cell/README.zh-CN.md index 9234cb4c8..fdea359b1 100644 --- a/src/switch-cell/README.zh-CN.md +++ b/src/switch-cell/README.zh-CN.md @@ -6,7 +6,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { SwitchCell } from 'vant'; diff --git a/src/switch/README.md b/src/switch/README.md index f26253c6d..3213b7d3e 100644 --- a/src/switch/README.md +++ b/src/switch/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Switch } from 'vant'; diff --git a/src/switch/README.zh-CN.md b/src/switch/README.zh-CN.md index 33eb2f02a..4399ed10f 100644 --- a/src/switch/README.zh-CN.md +++ b/src/switch/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Switch } from 'vant'; diff --git a/src/tab/README.md b/src/tab/README.md index 7fac6ea9c..ca8253b28 100644 --- a/src/tab/README.md +++ b/src/tab/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Tab, Tabs } from 'vant'; diff --git a/src/tab/README.zh-CN.md b/src/tab/README.zh-CN.md index 82c0bdae8..8e191d4a7 100644 --- a/src/tab/README.zh-CN.md +++ b/src/tab/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Tab, Tabs } from 'vant'; diff --git a/src/tabbar/README.md b/src/tabbar/README.md index 449f111bf..468bd448d 100644 --- a/src/tabbar/README.md +++ b/src/tabbar/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Tabbar, TabbarItem } from 'vant'; diff --git a/src/tabbar/README.zh-CN.md b/src/tabbar/README.zh-CN.md index 2b879e7cb..d1c63a54d 100644 --- a/src/tabbar/README.zh-CN.md +++ b/src/tabbar/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Tabbar, TabbarItem } from 'vant'; diff --git a/src/tag/README.md b/src/tag/README.md index 2defa4523..71f538bc6 100644 --- a/src/tag/README.md +++ b/src/tag/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Tag } from 'vant'; diff --git a/src/tag/README.zh-CN.md b/src/tag/README.zh-CN.md index 88f21eb34..d92bf7249 100644 --- a/src/tag/README.zh-CN.md +++ b/src/tag/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Tag } from 'vant'; diff --git a/src/tree-select/README.md b/src/tree-select/README.md index 39547aedf..4b13a756d 100644 --- a/src/tree-select/README.md +++ b/src/tree-select/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { TreeSelect } from 'vant'; diff --git a/src/tree-select/README.zh-CN.md b/src/tree-select/README.zh-CN.md index 1f504b3d6..8cd1f27b3 100644 --- a/src/tree-select/README.zh-CN.md +++ b/src/tree-select/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { TreeSelect } from 'vant'; diff --git a/src/uploader/README.md b/src/uploader/README.md index d600862cf..1bbd0bafa 100644 --- a/src/uploader/README.md +++ b/src/uploader/README.md @@ -2,7 +2,7 @@ ### Install -``` javascript +```js import Vue from 'vue'; import { Uploader } from 'vant'; diff --git a/src/uploader/README.zh-CN.md b/src/uploader/README.zh-CN.md index aeb088d6d..64d968c31 100644 --- a/src/uploader/README.zh-CN.md +++ b/src/uploader/README.zh-CN.md @@ -2,7 +2,7 @@ ### 引入 -``` javascript +```js import Vue from 'vue'; import { Uploader } from 'vant';