File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 36
36
</div >
37
37
<div >
38
38
<label >deepCollapseChildren</label >
39
- <input v-model =" deepCollapseChildren" type =" checkbox" />
39
+ <input v-model =" state. deepCollapseChildren" type =" checkbox" />
40
40
</div >
41
41
</div >
42
42
</div >
45
45
<vue-json-pretty
46
46
:data =" state.data"
47
47
:deep =" state.deep"
48
- :deepCollapseChildren =" deepCollapseChildren"
48
+ :deepCollapseChildren =" state. deepCollapseChildren"
49
49
:show-double-quotes =" state.showDoubleQuotes"
50
50
:show-length =" state.showLength"
51
51
:show-line =" state.showLine"
Original file line number Diff line number Diff line change @@ -61,13 +61,10 @@ export default defineComponent({
61
61
translateY : 0 ,
62
62
visibleData : null as FlatDataType | null ,
63
63
hiddenPaths : jsonFlatten ( props . data , props . path ) . reduce ( ( acc , item ) => {
64
- const depthComparison = this . deepCollapseChildren
65
- ? item . level >= this . deep
66
- : item . level === this . deep ;
67
- if (
68
- ( item . type === 'objectStart' || item . type === 'arrayStart' ) &&
69
- depthComparison
70
- ) {
64
+ const depthComparison = props . deepCollapseChildren
65
+ ? item . level >= props . deep
66
+ : item . level === props . deep ;
67
+ if ( ( item . type === 'objectStart' || item . type === 'arrayStart' ) && depthComparison ) {
71
68
return {
72
69
...acc ,
73
70
[ item . path ] : 1 ,
You can’t perform that action at this time.
0 commit comments