File tree Expand file tree Collapse file tree 3 files changed +10451
-15
lines changed Expand file tree Collapse file tree 3 files changed +10451
-15
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 >
9
+ <div >
10
+ <label >virtualLines</label >
11
+ <input v-model =" state.virtualLines" type =" number" />
12
+ </div >
13
+ <div >
10
14
<label >showLine</label >
11
15
<input v-model =" state.showLine" type =" checkbox" />
12
16
</div >
27
31
<div class =" block" >
28
32
<h3 >vue-json-pretty(1000+ items):</h3 >
29
33
<vue-json-pretty
30
- style =" height : 200 px "
34
+ style =" height :400 px "
31
35
:virtual =" true"
36
+ :virtualLines =" state.virtualLines"
32
37
:data =" state.data"
33
38
:deep =" state.deep"
34
39
:show-line =" state.showLine"
@@ -64,7 +69,8 @@ export default defineComponent({
64
69
showLine: true ,
65
70
collapsedOnClickBrackets: true ,
66
71
deep: 3 ,
67
- });
72
+ virtualLines: 20 ,
73
+ });
68
74
69
75
watch (
70
76
() => state .val ,
You can’t perform that action at this time.
0 commit comments