docs: update markdown code block

This commit is contained in:
陈嘉涵 2020-01-18 20:14:16 +08:00
parent 1119be4ea8
commit cdbd67f379
116 changed files with 133 additions and 129 deletions

View File

@ -6,7 +6,7 @@ DemoButton 是一个示例按钮组件
### 引入
``` javascript
```js
import Vue from 'vue';
import { DemoButton } from '<%= name %>';

View File

@ -71,7 +71,7 @@ pre {
.hljs-selector-id,
.hljs-selector-class,
.hljs-strong {
color: #5299e0;
color: #4994df;
}
.hljs-emphasis {

View File

@ -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;

View File

@ -189,6 +189,10 @@ export default {
-webkit-font-smoothing: antialiased;
}
p > code {
font-size: 14px;
}
section {
padding: 30px;
overflow: hidden;

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { ActionSheet } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { ActionSheet } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { AddressEdit } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { AddressEdit } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { AddressList } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { AddressList } from 'vant';

View File

@ -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';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Button } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Button } from 'vant';

View File

@ -6,7 +6,7 @@ Calendar component for selecting dates or date ranges
### Install
``` javascript
```js
import Vue from 'vue';
import { Calendar } from 'vant';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Calendar } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Card } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Card } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Cell, CellGroup } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Cell, CellGroup } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Checkbox, CheckboxGroup } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Checkbox, CheckboxGroup } from 'vant';

View File

@ -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 {

View File

@ -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 {

View File

@ -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';

View File

@ -6,7 +6,7 @@ Layout 提供了`van-row`和`van-col`两个组件来进行行列布局
### 引入
``` javascript
```js
import Vue from 'vue';
import { Col, Row } from 'vant';

View File

@ -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
</van-collapse>
```
``` javascript
```js
export default {
data() {
return {
@ -46,7 +46,7 @@ In accordion mode, only one panel can be expanded at the same time.
</van-collapse>
```
``` javascript
```js
export default {
data() {
return {
@ -74,7 +74,7 @@ export default {
</van-collapse>
```
``` javascript
```js
export default {
data() {
return {

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Collapse, CollapseItem } from 'vant';
@ -24,7 +24,7 @@ Vue.use(CollapseItem);
</van-collapse>
```
``` javascript
```js
export default {
data() {
return {
@ -46,7 +46,7 @@ export default {
</van-collapse>
```
``` javascript
```js
export default {
data() {
return {
@ -75,7 +75,7 @@ export default {
</van-collapse>
```
``` javascript
```js
export default {
data() {
return {

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { ContactCard, ContactList, ContactEdit } from 'vant';
@ -46,7 +46,7 @@ Vue.use(ContactEdit);
</van-popup>
```
``` javascript
```js
export default {
data() {
return {

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { ContactCard, ContactList, ContactEdit } from 'vant';
@ -50,7 +50,7 @@ Vue.use(ContactEdit);
</van-popup>
```
``` javascript
```js
export default {
data() {
return {

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { CountDown } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { CountDown } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { CouponCell, CouponList } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { CouponCell, CouponList } from 'vant';

View File

@ -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';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Divider } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Divider } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { DropdownMenu, DropdownItem } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { DropdownMenu, DropdownItem } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Field } from 'vant';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Field } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Grid, GridItem } from 'vant';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Grid, GridItem } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Icon } from 'vant';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Icon } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Image } from 'vant';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Image } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { IndexBar } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { IndexBar, IndexAnchor } from 'vant';

View File

@ -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';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { List } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Loading } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Loading } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { NavBar } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { NavBar } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { NoticeBar } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { NoticeBar } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Notify } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Notify } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { NumberKeyboard } from 'vant';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { NumberKeyboard } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Overlay } from 'vant';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Overlay } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Pagination } from 'vant';

View File

@ -3,7 +3,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Pagination } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Panel } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Panel } from 'vant';

View File

@ -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';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { PasswordInput, NumberKeyboard } from 'vant';

View File

@ -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';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Picker } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Popup } from 'vant';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Popup } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Progress } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Progress } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { PullRefresh } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { PullRefresh } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { RadioGroup, Radio } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { RadioGroup, Radio } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Rate } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Rate } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Search } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Search } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Sidebar, SidebarItem } from 'vant';
@ -22,7 +22,7 @@ Vue.use(SidebarItem);
</van-sidebar>
```
``` javascript
```js
export default {
data() {
return {

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Sidebar, SidebarItem } from 'vant';
@ -24,7 +24,7 @@ Vue.use(SidebarItem);
</van-sidebar>
```
``` javascript
```js
export default {
data() {
return {

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Skeleton } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Skeleton } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Slider } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Slider } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Stepper } from 'vant';

View File

@ -6,7 +6,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Stepper } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Step, Steps } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { Step, Steps } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { Sticky } from 'vant';

View File

@ -6,7 +6,7 @@ Sticky 组件与 CSS 中`position: sticky`属性实现的效果一致,当组
### 引入
``` javascript
```js
import Vue from 'vue';
import { Sticky } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { SubmitBar } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { SubmitBar } from 'vant';

View File

@ -2,7 +2,7 @@
### Install
``` javascript
```js
import Vue from 'vue';
import { SwipeCell } from 'vant';

View File

@ -2,7 +2,7 @@
### 引入
``` javascript
```js
import Vue from 'vue';
import { SwipeCell } from 'vant';

Some files were not shown because too many files have changed in this diff Show More