File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 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>
8383 < div class ="panel-heading "> Form</ div >
8484 < div class ="panel-body ">
8585 < 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 >
8787 </ form >
8888 </ div >
8989 </ div >
9090
9191 < div class ="panel panel-default ">
9292 < div class ="panel-heading "> Model</ div >
9393 < div class ="panel-body ">
94- < pre v-if ="model " v-html ="model | prettyJSON "> </ pre >
94+ < pre v-if ="model " v-html ="prettyJSON(model) "> </ pre >
9595 </ div >
9696 </ div >
9797
Original file line number Diff line number Diff line change @@ -82,14 +82,14 @@ <h1 class="text-center">Demo of vue-form-generator</h1>
8282 < div class ="panel panel-default ">
8383 < div class ="panel-heading "> Form</ div >
8484 < 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 >
8686 </ div >
8787 </ div >
8888
8989 < div class ="panel panel-default ">
9090 < div class ="panel-heading "> Model</ div >
9191 < div class ="panel-body ">
92- < pre v-if ="model " v-html ="model | prettyJSON "> </ pre >
92+ < pre v-if ="model " v-html ="prettyJSON(model) "> </ pre >
9393 </ div >
9494 </ div >
9595
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var vm = new Vue({
66 "vue-form-generator" : VueFormGenerator . component
77 } ,
88
9- filters : {
9+ methods : {
1010 prettyJSON : function ( json ) {
1111 if ( json ) {
1212 json = JSON . stringify ( json , undefined , 4 ) ;
You can’t perform that action at this time.
0 commit comments