Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bd77d2c

Browse files
committed
fix schema.fields error
1 parent fcc4988 commit bd77d2c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

‎multipleforms/app.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<form>
33
<vue-form-generator :schema="section1" :model="model" :options="formOptions"></vue-form-generator>
44
<vue-form-generator :schema="section2" :model="model" :options="formOptions"></vue-form-generator>
5+
<pre>{{ model }}</pre>
56
</form>
67
</template>
78

@@ -14,6 +15,8 @@ export default {
1415
model: {
1516
name: 'Brian Blessed',
1617
email: "brian@hawkman.mongo",
18+
more: "More",
19+
things: "Things",
1720
pref_1: 'blah'
1821
},
1922
@@ -50,8 +53,15 @@ export default {
5053
model: "things"
5154
}
5255
]
53-
}]
54-
56+
}],
57+
fields: [
58+
{
59+
type: "input",
60+
inputType: "text",
61+
label: "Pref 1 (without group)",
62+
model: "pref_1"
63+
}
64+
]
5565
},
5666
5767
section2: {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /