[Doc] new theme

This commit is contained in:
陈嘉涵
2019-05-15 20:53:04 +08:00
parent 3cae4288f2
commit d0f4169c86
130 changed files with 1460 additions and 1147 deletions
+13 -9
View File
@@ -1,14 +1,16 @@
## Slider
# Slider
### Install
``` javascript
import { Slider } from 'vant';
Vue.use(Slider);
```
### Usage
#### Basic Usage
## Usage
### Basic Usage
```html
<van-slider v-model="value" @change="onChange" />
@@ -30,25 +32,25 @@ export default {
};
```
#### Range
### Range
```html
<van-slider v-model="value" :min="10" :max="90" />
```
#### Disabled
### Disabled
```html
<van-slider v-model="value" disabled />
```
#### Step size
### Step size
```html
<van-slider v-model="value" :step="10" />
```
#### Custom style
### Custom style
```html
<van-slider
@@ -58,7 +60,7 @@ export default {
/>
```
#### Custom button
### Custom button
```html
<van-slider
@@ -74,7 +76,7 @@ export default {
</van-slider>
```
#### Vertical
### Vertical
```html
<div :style="{ height: '100px' }">
@@ -82,6 +84,8 @@ export default {
</div>
```
## API
### Props
| Attribute | Description | Type | Default |