Skip to content

Commit

Permalink
添加表单switch对boolean值的处理
Browse files Browse the repository at this point in the history
  • Loading branch information
jxx committed Dec 8, 2019
1 parent acdff63 commit 5c8a422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vol.Vue/src/components/basic/VolForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
</div>
<i-switch
v-else-if="item.type=='switch'"
:true-value="1"
:false-value="0"
:true-value="typeof formFileds[item.field]=='boolean' ? true:1"
:false-value="typeof formFileds[item.field]=='boolean' ? false:0"
v-model="formFileds[item.field]"
>
<span slot="open">是</span>
Expand Down

0 comments on commit 5c8a422

Please sign in to comment.