Skip to content

Commit

Permalink
Fix render delay issue when component is reused
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchao committed Apr 6, 2022
1 parent 8bd327e commit 7b297b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@wchbrad/vue-easy-tree",
"description": "A Vue.js project",
"version": "1.0.6",
"version": "1.0.7",
"author": "wchbrad <[email protected]>",
"license": "MIT",
"private": false,
Expand Down
3 changes: 2 additions & 1 deletion src/components/ve-tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
:items="dataList"
:item-size="26"
:buffer="50"
v-slot="{ item }"
v-slot="{ active,item }"
>
<ElTreeVirtualNode
v-if="active"
style="height: 26px;"
:node="item"
:renderContent="renderContent"
Expand Down

0 comments on commit 7b297b8

Please sign in to comment.