1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 " />
5
+ < meta charset ="utf-8 ">
6
+ < title > Demo of vue-form-generator</ title >
7
+ < link rel ="stylesheet " type ="text/css " href ="../../dist/vue-form-generator.css ">
8
+
9
+ < style >
10
+ html {
11
+ font-family : Tahoma;
12
+ font-size : 14px ;
13
+ }
14
+
15
+ body {
16
+ font-family : "Helvetica Neue" , Helvetica, Arial, sans-serif;
17
+ font-size : 14px ;
18
+ line-height : 1.42857143 ;
19
+ color : # 333 ;
20
+ }
21
+
22
+ pre {
23
+ overflow : auto;
24
+ }
25
+ pre .string { color : # 885800 ; }
26
+ pre .number { color : blue; }
27
+ pre .boolean { color : magenta; }
28
+ pre .null { color : red; }
29
+ pre .key { color : green; }
30
+
31
+ .container {
32
+ max-width : 970px ;
33
+ padding-right : 15px ;
34
+ padding-left : 15px ;
35
+ margin-right : auto;
36
+ margin-left : auto;
37
+ }
38
+
39
+ h1 {
40
+ text-align : center;
41
+ font-size : 36px ;
42
+ margin-top : 20px ;
43
+ margin-bottom : 10px ;
44
+ font-weight : 500 ;
45
+ }
46
+
47
+ fieldset {
48
+ border : 0 ;
49
+ }
50
+
51
+ .panel {
52
+ margin-bottom : 20px ;
53
+ background-color : # fff ;
54
+ border : 1px solid transparent;
55
+ border-radius : 4px ;
56
+ -webkit-box-shadow : 0 1px 1px rgba (0 , 0 , 0 , .05 );
57
+ box-shadow : 0 1px 1px rgba (0 , 0 , 0 , .05 );
58
+ border-color : # ddd ;
59
+ }
60
+
61
+ .panel-heading {
62
+ color : # 333 ;
63
+ background-color : # f5f5f5 ;
64
+ border-color : # ddd ;
65
+
66
+ padding : 10px 15px ;
67
+ border-bottom : 1px solid transparent;
68
+ border-top-left-radius : 3px ;
69
+ border-top-right-radius : 3px ;
70
+ }
71
+
72
+ .panel-body {
73
+ padding : 15px ;
74
+ }
75
+
76
+ </ style >
77
+ </ head >
78
+
79
+ < body >
80
+ < h1 class ="text-center "> Submit the form</ h1 >
81
+ < div class ="container " id ="app ">
82
+ < div class ="panel panel-default ">
83
+ < div class ="panel-heading "> Form</ div >
84
+ < div class ="panel-body ">
85
+ < form action ="https://httpbin.org/post " method ="POST " enctype ="application/x-www-form-urlencoded ">
86
+ < vue-form-generator :schema ="schema ", :model ="model ", :options ="formOptions "> </ vue-form-generator >
87
+ </ form >
88
+ </ div >
89
+ </ div >
90
+
91
+ < div class ="panel panel-default ">
92
+ < div class ="panel-heading "> Model</ div >
93
+ < div class ="panel-body ">
94
+ < pre v-if ="model "> {{{ model | prettyJSON }}}</ pre >
95
+ </ div >
96
+ </ div >
97
+
98
+ </ div >
99
+ < script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.21/vue.min.js "> </ script >
100
+ < script type ="text/javascript " src ="../../dist/vue-form-generator.js "> </ script >
101
+ < script type ="text/javascript " src ="./main.js "> </ script >
102
+ </ body >
103
+ </ html >
0 commit comments