Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Feb 21, 2017
1 parent 0629b89 commit 5ffcf20
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
4 changes: 2 additions & 2 deletions examples/post-form/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<title>Demo of vue-form-generator</title>
<link rel="stylesheet" type="text/css" href="../../dist/vue-form-generator.css">
<link rel="stylesheet" type="text/css" href="../../dist/vfg-core.css">

<style>
html {
Expand Down Expand Up @@ -97,7 +97,7 @@ <h1 class="text-center">Submit the form</h1>

</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.10/vue.min.js"></script>
<script type="text/javascript" src="../../dist/vue-form-generator.js"></script>
<script type="text/javascript" src="../../dist/vfg-core.js"></script>
<script type="text/javascript" src="./main.js"></script>
</body>
</html>
12 changes: 8 additions & 4 deletions examples/post-form/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ var vm = new Vue({
schema: {
fields: [
{
type: "text",
type: "input",
inputType: "text",
label: "ID",
model: "id",
inputName: "id",
Expand All @@ -51,7 +52,8 @@ var vm = new Vue({
disabled: true
},
{
type: "text",
type: "input",
inputType: "text",
label: "Name",
model: "name",
inputName: "name",
Expand All @@ -63,7 +65,8 @@ var vm = new Vue({
validator: VueFormGenerator.validators.string
},
{
type: "password",
type: "input",
inputType: "password",
label: "Password",
model: "password",
inputName: "password",
Expand All @@ -73,7 +76,8 @@ var vm = new Vue({
validator: VueFormGenerator.validators.string
},
{
type: "email",
type: "input",
inputType: "email",
label: "E-mail",
model: "email",
inputName: "email",
Expand Down
4 changes: 2 additions & 2 deletions examples/simple/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<title>Demo of vue-form-generator</title>
<link rel="stylesheet" type="text/css" href="../../dist/vue-form-generator.css">
<link rel="stylesheet" type="text/css" href="../../dist/vfg-core.css">

<style>
html {
Expand Down Expand Up @@ -95,7 +95,7 @@ <h1 class="text-center">Demo of vue-form-generator</h1>

</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.10/vue.min.js"></script>
<script type="text/javascript" src="../../dist/vue-form-generator.js"></script>
<script type="text/javascript" src="../../dist/vfg-core.js"></script>
<script type="text/javascript" src="./main.js"></script>
</body>
</html>
12 changes: 8 additions & 4 deletions examples/simple/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@ var vm = new Vue({
schema: {
fields: [
{
type: "text",
type: "input",
inputType: "text",
label: "ID",
model: "id",
readonly: true,
featured: false,
disabled: true
},
{
type: "text",
type: "input",
inputType: "text",
label: "Name",
model: "name",
readonly: false,
Expand All @@ -64,7 +66,8 @@ var vm = new Vue({
validator: VueFormGenerator.validators.string
},
{
type: "password",
type: "input",
inputType: "password",
label: "Password",
model: "password",
min: 6,
Expand All @@ -73,7 +76,8 @@ var vm = new Vue({
validator: VueFormGenerator.validators.string
},
{
type: "email",
type: "input",
inputType: "email",
label: "E-mail",
model: "email",
placeholder: "User's e-mail address",
Expand Down

0 comments on commit 5ffcf20

Please sign in to comment.