单选项目。
属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| value | string | radio 标识。当该radio 选中时,radio-group 的 change 事件会携带radio的value | ||
| checked | boolean | false | 当前是否选中 | |
| disabled | boolean | false | 是否禁用 | |
| color | string | #09BB07 | radio的颜色,同css的color |

<view class="page-body">
<view class="page-section">
<view class="page-section-title">radioGroup2</view>
<view class="weui-cells weui-cells_after-title">
<view>当前选择value: {{curValue2}}</view>
<radio-group bindchange="radioChange2">
<label class="weui-cell weui-check__label" xhs:for="{{items2}}" xhs:key="{{item.value}}">
<view class="weui-cell__hd">
<radio value="{{item.value}}" checked="{{item.checked}}" disabled="{{false}}" color="#F85959"/>
</view>
<view class="weui-cell__bd">{{item.name}}</view>
</label>
</radio-group>
</view>
</view>
</view>