Skip to content

Commit b8c82c0

Browse files
committed
🐛 fix examples
1 parent 9334ce6 commit b8c82c0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/post-form/index.html

+2-2
Original file line numberDiff line numberDiff 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

examples/simple/index.html

+2-2
Original file line numberDiff line numberDiff 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

examples/simple/main.js

+1-1
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)