提交 3c34446b 编写于 作者: H hdx

form: 撤回 slider radio 的 value 为字符串的更改

上级 0c369257
......@@ -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>
......@@ -31,7 +31,7 @@
</view>
<view class="uni-form-item">
<view class="title">年龄</view>
<slider name="age" :value="age + ''" :show-value="true"></slider>
<slider name="age" :value="age" :show-value="true"></slider>
</view>
<view class="uni-form-item">
<view class="title">保留选项</view>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册