[Doc] Radio: update demo (#3565)

This commit is contained in:
neverland
2019-06-20 09:46:35 +08:00
committed by GitHub
parent 3fa1a79065
commit 70efdc22cf
8 changed files with 131 additions and 68 deletions
+3 -3
View File
@@ -47,7 +47,7 @@ Use icon slot to custom icon
<img
slot="icon"
slot-scope="props"
:src="props.checked ? icon.active : icon.normal"
:src="props.checked ? icon.active : icon.inactive"
>
</van-checkbox>
```
@@ -57,8 +57,8 @@ export default {
data() {
checked: true,
icon: {
normal: '//img.yzcdn.cn/icon-normal.png',
active: '//img.yzcdn.cn/icon-active.png'
active: 'https://img.yzcdn.cn/vant/user-active.png',
inactive: 'https://img.yzcdn.cn/vant/user-inactive.png'
}
}
}