根据需求,默认是选择否的,想在提交后将radio重置为否,使用form的重置表单会清空radio选中状态,请问有什么方法可以将radio重置为否,或者设置radio-group默认值呢?

z***@qq.com
- 发布:2020-04-09 20:09
- 更新:2020-08-11 22:26
- 阅读:5923
![[已删除]](https://img-cdn-tc.dcloud.net.cn/account/identicon/cfb663c37f9b6afa6e1fc8d1704f1932.png)
<view class="floatleft login_input">
<radio-group @change="redioSelected">
<radio value="1" style="margin-left: 20rpx;transform:scale(0.7)" :checked="editForm.type==1" /><span class="font_size28">心情</span>
<radio value="3" style="margin-left: 20rpx;transform:scale(0.7)" :checked="editForm.type==3" /><span class="font_size28">工作</span>
<radio value="2" style="margin-left: 20rpx;transform:scale(0.7)" :checked="editForm.type==2" /><span class="font_size28">故事</span>
</radio-group>
</view>
![[已删除]](https://img-cdn-tc.dcloud.net.cn/account/identicon/cfb663c37f9b6afa6e1fc8d1704f1932.png)
<view class="floatleft login_input">
<radio-group @change="redioSelected">
<radio value="1" style="margin-left: 20rpx;transform:scale(0.7)" :checked="editForm.type==1" /><span class="font_size28">心情</span>
<radio value="3" style="margin-left: 20rpx;transform:scale(0.7)" :checked="editForm.type==3" /><span class="font_size28">工作</span>
<radio value="2" style="margin-left: 20rpx;transform:scale(0.7)" :checked="editForm.type==2" /><span class="font_size28">故事</span>
</radio-group>
</view>