<!-- IMPORTANT: Please use the following link to create a new issue: https://new-issue.vuejs.org/ If your issue was not created using the app above, it will be closed immediately. 中文用户请注意: 请使用上面的链接来创建新的 issue。如果不是用上述工具创建的 issue 会被自动关闭。 --> 在使用input type=radio时候,编译之后,radio标签中的value值一直为空,不知道如何绑定
Activity
anchengjian commentedon Mar 13, 2018
建议直接用 radio-group :
参见微信文档: https://mp.weixin.qq.com/debug/wxadoc/dev/component/radio.html
ShenJet commentedon Dec 26, 2018
遇到相同bug,
最终摸索出的解决方法是:
把
<radio :value="item.name" :checked="item.checked"/> {{item.value}}
改写成:
<radio :value="item.name" :checked="item.checked"> {{item.value}} </radio>
估计原因:mpvue认为原生单标签组件radio没有闭合,认为同组中的所有radio都是同一个标签,所以会造成点击后面的label,但是总是第一个radio被勾选的bug.
仅是个人猜测,没有去深究
Xiaodahua commentedon Feb 13, 2019
解决方法无效呀