File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -83,15 +83,15 @@ <h1 class="text-center">Submit the form</h1>
83
83
< div class ="panel-heading "> Form</ div >
84
84
< div class ="panel-body ">
85
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 >
86
+ < vue-form-generator :schema ="schema " :model ="model " :options ="formOptions "> </ vue-form-generator >
87
87
</ form >
88
88
</ div >
89
89
</ div >
90
90
91
91
< div class ="panel panel-default ">
92
92
< div class ="panel-heading "> Model</ div >
93
93
< div class ="panel-body ">
94
- < pre v-if ="model " v-html ="model | prettyJSON "> </ pre >
94
+ < pre v-if ="model " v-html ="prettyJSON(model) "> </ pre >
95
95
</ div >
96
96
</ div >
97
97
Original file line number Diff line number Diff line change @@ -82,14 +82,14 @@ <h1 class="text-center">Demo of vue-form-generator</h1>
82
82
< div class ="panel panel-default ">
83
83
< div class ="panel-heading "> Form</ div >
84
84
< div class ="panel-body ">
85
- < vue-form-generator :schema ="schema ", :model ="model ", :options ="formOptions "> </ vue-form-generator >
85
+ < vue-form-generator :schema ="schema " :model ="model " :options ="formOptions "> </ vue-form-generator >
86
86
</ div >
87
87
</ div >
88
88
89
89
< div class ="panel panel-default ">
90
90
< div class ="panel-heading "> Model</ div >
91
91
< div class ="panel-body ">
92
- < pre v-if ="model " v-html ="model | prettyJSON "> </ pre >
92
+ < pre v-if ="model " v-html ="prettyJSON(model) "> </ pre >
93
93
</ div >
94
94
</ div >
95
95
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var vm = new Vue({
6
6
"vue-form-generator" : VueFormGenerator . component
7
7
} ,
8
8
9
- filters : {
9
+ methods : {
10
10
prettyJSON : function ( json ) {
11
11
if ( json ) {
12
12
json = JSON . stringify ( json , undefined , 4 ) ;
You can’t perform that action at this time.
0 commit comments