<view class="container"
style="flex-direction:{{vertical?'column':'row'}}" bindtap='onCheckedChanged'>
<slot></slot>
</view>
<xradiogroup vertical="{{false}}">
<view class="radio checked" data-id="{{0}}">A</view>
<view class="radio uncheck" data-id="{{1}}">B</view>
<view class="radio uncheck" data-id="{{2}}">C</view>
</xradiogroup>
methods: {
onCheckedChanged:function(e){
console.log(e);
var select = e.target.dataset.id;
console.log('selected ->' + select);
}
}
1 回答
- 1 回答
- 0 关注
- 2703 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消