提交 e2f07cee 编写于 作者: H hdx

fix(form组件): 单元测试和源码数据类型不匹配的问题

上级 4e6b272b
......@@ -11,10 +11,10 @@
<view class="title">性别</view>
<radio-group name="gender" class="flex-row">
<view class="group-item">
<radio :value="0" :checked="gender==0" /><text>男</text>
<radio :value="0" :checked="gender=='0'" /><text>男</text>
</view>
<view class="group-item">
<radio :value="1" :checked="gender==1" /><text>女</text>
<radio :value="1" :checked="gender=='1'" /><text>女</text>
</view>
</radio-group>
</view>
......@@ -56,7 +56,7 @@
data() {
return {
nickname: '',
gender: 0,
gender: '0',
age: 18,
loves: ['0'],
switch: true,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册