[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
+10 -7
View File
@@ -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
<van-radio-group v-model="radio" disabled>
@@ -40,13 +41,13 @@ export default {
</van-radio-group>
```
#### Custom Color
### Custom Color
```html
<van-radio checked-color="#07c160">Radio</van-radio>
```
#### Custom Icon
### Custom Icon
Use icon slot to custom icon
@@ -73,7 +74,7 @@ export default {
}
```
#### Inside a Cell
### Inside a Cell
```html
<van-radio-group v-model="radio">
@@ -88,6 +89,8 @@ export default {
</van-radio-group>
```
## API
### Radio Props
| Attribute | Description | Type | Default |