docs: add radio shape usage

This commit is contained in:
linrz
2019-12-29 21:21:24 +08:00
committed by neverland
parent f0815bc405
commit abdc38eeee
4 changed files with 42 additions and 0 deletions
+11
View File
@@ -55,6 +55,17 @@ export default {
</van-radio-group>
```
### 自定义形状
通过`square`属性设置选中状态的图标颜色
```html
<van-radio-group v-model="radio">
<van-radio name="1" shape="square">单选框 1</van-radio>
<van-radio name="2" shape="square">单选框 2</van-radio>
</van-radio-group>
```
### 自定义颜色
通过`checked-color`属性设置选中状态的图标颜色