docs: make document more compact

This commit is contained in:
陈嘉涵
2020-01-19 19:52:46 +08:00
parent bb53c3c758
commit 3a4107ef49
40 changed files with 56 additions and 162 deletions
+14 -8
View File
@@ -65,17 +65,23 @@ export default {
### Custom button
```html
<van-slider
v-model="value"
active-color="#ee0a24"
>
<div
slot="button"
class="custom-button"
>
<van-slider v-model="value" active-color="#ee0a24">
<div slot="button" class="custom-button">
{{ value }}
</div>
</van-slider>
<style>
.custom-button {
width: 26px;
color: #fff;
font-size: 10px;
line-height: 18px;
text-align: center;
background-color: #ee0a24;
border-radius: 100px;
}
</style>
```
### Vertical
+14 -8
View File
@@ -65,17 +65,23 @@ export default {
### 自定义按钮
```html
<van-slider
v-model="value"
active-color="#ee0a24"
>
<div
slot="button"
class="custom-button"
>
<van-slider v-model="value" active-color="#ee0a24">
<div slot="button" class="custom-button">
{{ value }}
</div>
</van-slider>
<style>
.custom-button {
width: 26px;
color: #fff;
font-size: 10px;
line-height: 18px;
text-align: center;
background-color: #ee0a24;
border-radius: 100px;
}
</style>
```
### 垂直方向