Skip to content

Commit

Permalink
fix: Fixed fragment instances #28
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Aug 9, 2016
1 parent d0a32cd commit 0f9863c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
27 changes: 14 additions & 13 deletions src/fields/fieldChecklist.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
<template lang="jade">
.listbox.form-control(v-if="schema.listBox")
.list-row(v-for="item in items")
label
input(type="checkbox", :checked="getItemIsChecked(item)", @change="onChanged($event, item)")
| {{ getItemName(item) }}

.combobox.form-control(v-if="!schema.listBox")
.mainRow(@click="onExpandCombo", :class="{ expanded: comboExpanded }")
.info {{ selectedCount }} selected
.arrow

.dropList
.list-row(v-if="comboExpanded", v-for="item in items")
.wrapper
.listbox.form-control(v-if="schema.listBox")
.list-row(v-for="item in items")
label
input(type="checkbox", :checked="getItemIsChecked(item)", @change="onChanged($event, item)")
| {{ getItemName(item) }}

.combobox.form-control(v-if="!schema.listBox")
.mainRow(@click="onExpandCombo", :class="{ expanded: comboExpanded }")
.info {{ selectedCount }} selected
.arrow

.dropList
.list-row(v-if="comboExpanded", v-for="item in items")
label
input(type="checkbox", :checked="getItemIsChecked(item)", @change="onChanged($event, item)")
| {{ getItemName(item) }}
</template>

<script>
Expand Down
5 changes: 3 additions & 2 deletions src/fields/fieldColor.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template lang="jade">
input(type="color", v-model="value", :disabled="disabled")
span.helper {{ value }}
.wrapper
input(type="color", v-model="value", :disabled="disabled")
span.helper {{ value }}
</template>

<script>
Expand Down
5 changes: 3 additions & 2 deletions src/fields/fieldRange.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template lang="jade">
input.form-control(type="range", v-model="value", :min="schema.min", :max="schema.max", :disabled="disabled", :placeholder="schema.placeholder")
.helpText {{ value }}
.wrapper
input.form-control(type="range", v-model="value", :min="schema.min", :max="schema.max", :disabled="disabled", :placeholder="schema.placeholder")
.helpText {{ value }}
</template>

<script>
Expand Down

0 comments on commit 0f9863c

Please sign in to comment.