Skip to content

Commit 77048fb

Browse files
committed
feat: add radio & checkbox type
1 parent 4501642 commit 77048fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/from-builder/FormBuilder.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
<vue-checkbox
6262
v-for="i in field.options"
6363
:key="i.value"
64+
:type="field.inputType"
6465
:value="i.value"
6566
:label="i.label"
6667
/>
@@ -69,6 +70,7 @@
6970
v-else
7071
v-model="clonedModel[field.model]"
7172
v-validate="field.validate"
73+
:type="field.inputType"
7274
:name="field.name"
7375
:label="field.checkboxLabel"
7476
@change="onUpdate"
@@ -81,6 +83,7 @@
8183
:key="i.value"
8284
v-model="clonedModel[field.model]"
8385
v-validate="field.validate"
86+
:type="field.inputType"
8487
:name="field.name"
8588
:value="i.value"
8689
:label="i.label"

0 commit comments

Comments
 (0)