Skip to content

Commit 8a4aa3f

Browse files
committed
fix: the data type error in the demo.
1 parent 681628c commit 8a4aa3f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

example/VirtualList.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
<h3>Options:</h3>
88
<div class="options">
9-
<div>
9+
<div>
1010
<label>virtualLines</label>
1111
<input v-model="state.virtualLines" type="number" />
1212
</div>
13-
<div>
13+
<div>
1414
<label>showLine</label>
1515
<input v-model="state.showLine" type="checkbox" />
1616
</div>
@@ -33,7 +33,7 @@
3333
<vue-json-pretty
3434
style="height:400px"
3535
:virtual="true"
36-
:virtualLines="state.virtualLines"
36+
:virtualLines="+state.virtualLines"
3737
:data="state.data"
3838
:deep="state.deep"
3939
:show-line="state.showLine"
@@ -70,7 +70,7 @@ export default defineComponent({
7070
collapsedOnClickBrackets: true,
7171
deep: 3,
7272
virtualLines: 20,
73-
});
73+
});
7474
7575
watch(
7676
() => state.val,

src/components/Tree/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export default defineComponent({
252252
return (
253253
<div
254254
ref="tree"
255-
class={{
255+
class={{
256256
'vjs-tree': true,
257257
'is-virtual': virtual,
258258
}}

0 commit comments

Comments
 (0)