Skip to content

Commit

Permalink
增加table编辑bool属性显示
Browse files Browse the repository at this point in the history
  • Loading branch information
jxx committed Dec 12, 2019
1 parent a990464 commit d332133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vol.Vue/src/components/basic/VolTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
></DatePicker>
<i-switch
v-else-if="column.edit.type=='switch'"
:true-value="1"
:false-value="0"
:true-value="scope.row[column.field]=='boolean' ? true:1"
:false-value="scope.row[column.field]=='boolean' ? false:0"
v-model="scope.row[column.field]"
>
<span slot="open">是</span>
Expand Down

0 comments on commit d332133

Please sign in to comment.