Skip to content

Commit 0f9863c

Browse files
committed
fix: Fixed fragment instances #28
1 parent d0a32cd commit 0f9863c

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

src/fields/fieldChecklist.vue

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<template lang="jade">
2-
.listbox.form-control(v-if="schema.listBox")
3-
.list-row(v-for="item in items")
4-
label
5-
input(type="checkbox", :checked="getItemIsChecked(item)", @change="onChanged($event, item)")
6-
| {{ getItemName(item) }}
7-
8-
.combobox.form-control(v-if="!schema.listBox")
9-
.mainRow(@click="onExpandCombo", :class="{ expanded: comboExpanded }")
10-
.info {{ selectedCount }} selected
11-
.arrow
12-
13-
.dropList
14-
.list-row(v-if="comboExpanded", v-for="item in items")
2+
.wrapper
3+
.listbox.form-control(v-if="schema.listBox")
4+
.list-row(v-for="item in items")
155
label
166
input(type="checkbox", :checked="getItemIsChecked(item)", @change="onChanged($event, item)")
177
| {{ getItemName(item) }}
8+
9+
.combobox.form-control(v-if="!schema.listBox")
10+
.mainRow(@click="onExpandCombo", :class="{ expanded: comboExpanded }")
11+
.info {{ selectedCount }} selected
12+
.arrow
13+
14+
.dropList
15+
.list-row(v-if="comboExpanded", v-for="item in items")
16+
label
17+
input(type="checkbox", :checked="getItemIsChecked(item)", @change="onChanged($event, item)")
18+
| {{ getItemName(item) }}
1819
</template>
1920

2021
<script>

src/fields/fieldColor.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template lang="jade">
2-
input(type="color", v-model="value", :disabled="disabled")
3-
span.helper {{ value }}
2+
.wrapper
3+
input(type="color", v-model="value", :disabled="disabled")
4+
span.helper {{ value }}
45
</template>
56

67
<script>

src/fields/fieldRange.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template lang="jade">
2-
input.form-control(type="range", v-model="value", :min="schema.min", :max="schema.max", :disabled="disabled", :placeholder="schema.placeholder")
3-
.helpText {{ value }}
2+
.wrapper
3+
input.form-control(type="range", v-model="value", :min="schema.min", :max="schema.max", :disabled="disabled", :placeholder="schema.placeholder")
4+
.helpText {{ value }}
45
</template>
56

67
<script>

0 commit comments

Comments
 (0)