Skip to content

Commit

Permalink
fix(input-boolean): warning color to disable bool, set :defaultChecked
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 authored Apr 13, 2020
1 parent a69410d commit 6ef2bb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/_inputs/InputBoolean.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<a-switch
:name="name"
:class="localValue && name.indexOf('disable') > -1 ? 'bg-warning' : null"
:defaultChecked="Boolean(schema.default)"
v-model="localValue"
/>
</template>
Expand Down

0 comments on commit 6ef2bb8

Please # to comment.