File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,15 @@ <h1 v-if="schema.title">{{schema.title}}</h1>
31
31
32
32
<!-- templates -->
33
33
< script id ="json-schema-property " type ="text/vue-template+html ">
34
- < div class = "pure-control-group" >
34
+ < div v-if = "type != 'object'" class = "pure-control-group" >
35
35
< label for = "{{$key}}" > { { $key} } </ label >
36
36
< input name = "{{$key}}" v-model = "doc.{{$key}}" type = "{{type | input_type}}" />
37
37
< p class = "pure-help-inline" v-if = "description" > < small > { { description} } </ small > </ p >
38
38
</ div >
39
+ < fieldset class = "pure-control-group" v - if = "type == 'object'" >
40
+ < legend > { { $key} } </ legend >
41
+ < div v - component = "json-schema-property" v - repeat = "{{value}}.properties" > < / div >
42
+ </ fieldset >
39
43
</ script >
40
44
41
45
< script src ="vue.min.js "> </ script >
You can’t perform that action at this time.
0 commit comments