Skip to content

Commit 5ffcf20

Browse files
committed
fix examples
1 parent 0629b89 commit 5ffcf20

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

examples/post-form/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta charset="utf-8">
66
<title>Demo of vue-form-generator</title>
7-
<link rel="stylesheet" type="text/css" href="../../dist/vue-form-generator.css">
7+
<link rel="stylesheet" type="text/css" href="../../dist/vfg-core.css">
88

99
<style>
1010
html {
@@ -97,7 +97,7 @@ <h1 class="text-center">Submit the form</h1>
9797

9898
</div>
9999
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.10/vue.min.js"></script>
100-
<script type="text/javascript" src="../../dist/vue-form-generator.js"></script>
100+
<script type="text/javascript" src="../../dist/vfg-core.js"></script>
101101
<script type="text/javascript" src="./main.js"></script>
102102
</body>
103103
</html>

examples/post-form/main.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ var vm = new Vue({
4242
schema: {
4343
fields: [
4444
{
45-
type: "text",
45+
type: "input",
46+
inputType: "text",
4647
label: "ID",
4748
model: "id",
4849
inputName: "id",
@@ -51,7 +52,8 @@ var vm = new Vue({
5152
disabled: true
5253
},
5354
{
54-
type: "text",
55+
type: "input",
56+
inputType: "text",
5557
label: "Name",
5658
model: "name",
5759
inputName: "name",
@@ -63,7 +65,8 @@ var vm = new Vue({
6365
validator: VueFormGenerator.validators.string
6466
},
6567
{
66-
type: "password",
68+
type: "input",
69+
inputType: "password",
6770
label: "Password",
6871
model: "password",
6972
inputName: "password",
@@ -73,7 +76,8 @@ var vm = new Vue({
7376
validator: VueFormGenerator.validators.string
7477
},
7578
{
76-
type: "email",
79+
type: "input",
80+
inputType: "email",
7781
label: "E-mail",
7882
model: "email",
7983
inputName: "email",

examples/simple/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta charset="utf-8">
66
<title>Demo of vue-form-generator</title>
7-
<link rel="stylesheet" type="text/css" href="../../dist/vue-form-generator.css">
7+
<link rel="stylesheet" type="text/css" href="../../dist/vfg-core.css">
88

99
<style>
1010
html {
@@ -95,7 +95,7 @@ <h1 class="text-center">Demo of vue-form-generator</h1>
9595

9696
</div>
9797
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.10/vue.min.js"></script>
98-
<script type="text/javascript" src="../../dist/vue-form-generator.js"></script>
98+
<script type="text/javascript" src="../../dist/vfg-core.js"></script>
9999
<script type="text/javascript" src="./main.js"></script>
100100
</body>
101101
</html>

examples/simple/main.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,17 @@ var vm = new Vue({
4545
schema: {
4646
fields: [
4747
{
48-
type: "text",
48+
type: "input",
49+
inputType: "text",
4950
label: "ID",
5051
model: "id",
5152
readonly: true,
5253
featured: false,
5354
disabled: true
5455
},
5556
{
56-
type: "text",
57+
type: "input",
58+
inputType: "text",
5759
label: "Name",
5860
model: "name",
5961
readonly: false,
@@ -64,7 +66,8 @@ var vm = new Vue({
6466
validator: VueFormGenerator.validators.string
6567
},
6668
{
67-
type: "password",
69+
type: "input",
70+
inputType: "password",
6871
label: "Password",
6972
model: "password",
7073
min: 6,
@@ -73,7 +76,8 @@ var vm = new Vue({
7376
validator: VueFormGenerator.validators.string
7477
},
7578
{
76-
type: "email",
79+
type: "input",
80+
inputType: "email",
7781
label: "E-mail",
7882
model: "email",
7983
placeholder: "User's e-mail address",

0 commit comments

Comments
 (0)