[improvement] Radio: add checked-color prop (#2129)

This commit is contained in:
neverland
2018-11-23 20:13:40 +08:00
committed by GitHub
parent 56231d90bc
commit ec159b5e47
7 changed files with 62 additions and 8 deletions
+16 -3
View File
@@ -21,7 +21,18 @@
</van-radio-group>
</demo-block>
<demo-block :title="$t('title3')">
<demo-block :title="$t('customColor')">
<van-radio
name="1"
value="1"
checked-color="#4b0"
class="demo-radio-group"
>
{{ $t('radio') }}
</van-radio>
</demo-block>
<demo-block :title="$t('withCell')">
<van-radio-group v-model="radio3">
<van-cell-group>
<van-cell
@@ -51,13 +62,15 @@ export default {
radio: '单选框',
text1: '未选中禁用',
text2: '选中且禁用',
title3: '与 Cell 组件一起使用'
customColor: '自定义颜色',
withCell: '与 Cell 组件一起使用'
},
'en-US': {
radio: 'Radio',
text1: 'Disabled',
text2: 'Disabled and checked',
title: 'Inside a Cell'
customColor: 'Custom Color',
withCell: 'Inside a Cell'
}
},