[bugfix] Radio: fix doc error

fix #1935
This commit is contained in:
rex 2019-09-04 15:14:13 +08:00 committed by rex-zsd
parent 3402313eb7
commit 438cf85dcd
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@
</demo-block> </demo-block>
<demo-block title="自定义图标" padding> <demo-block title="自定义图标" padding>
<van-checkbox use-icon-slot value="1" name="1"> <van-radio use-icon-slot value="1" name="1">
自定义图标 自定义图标
<image <image
slot="icon" slot="icon"
@ -43,7 +43,7 @@
class="icon" class="icon"
mode="widthFix" mode="widthFix"
/> />
</van-checkbox> </van-radio>
</demo-block> </demo-block>
<demo-block title="与 Cell 组件一起使用"> <demo-block title="与 Cell 组件一起使用">

View File

@ -60,13 +60,13 @@ Page({
通过 icon 插槽自定义图标 通过 icon 插槽自定义图标
```html ```html
<van-checkbox use-icon-slot value="{{ radio }}" name="1" bind:change="onChange"> <van-radio use-icon-slot value="{{ radio }}" name="1" bind:change="onChange">
自定义图标 自定义图标
<image <image
slot="icon" slot="icon"
src="{{ radio === '1' ? icon.active : icon.normal }}" src="{{ radio === '1' ? icon.active : icon.normal }}"
/> />
</van-checkbox> </van-radio>
``` ```
```js ```js