File tree Expand file tree Collapse file tree 3 files changed +10460
-12
lines changed Expand file tree Collapse file tree 3 files changed +10460
-12
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<h3 >Options:</h3 >
8
8
<div class =" options" >
9
+ <div >
10
+ <label >virtualLines</label >
11
+ <input v-model =" state.virtualLines" type =" number" />
12
+ </div >
13
+ <div >
14
+ <label >autoHeight</label >
15
+ <input v-model =" state.autoHeight" type =" checkbox" />
16
+ </div >
9
17
<div >
10
18
<label >showLine</label >
11
19
<input v-model =" state.showLine" type =" checkbox" />
27
35
<div class =" block" >
28
36
<h3 >vue-json-pretty(1000+ items):</h3 >
29
37
<vue-json-pretty
30
- style =" height : 200px "
31
38
:virtual =" true"
39
+ :virtualLines =" state.virtualLines"
40
+ :autoHeight =" state.autoHeight"
32
41
:data =" state.data"
33
42
:deep =" state.deep"
34
43
:show-line =" state.showLine"
@@ -64,6 +73,8 @@ export default defineComponent({
64
73
showLine: true ,
65
74
collapsedOnClickBrackets: true ,
66
75
deep: 3 ,
76
+ virtualLines: 15 ,
77
+ autoHeight: true
67
78
});
68
79
69
80
watch (
You can’t perform that action at this time.
0 commit comments