Skip to content

Commit 4bc3d38

Browse files
author
wuchao
committed
Fix the problem that the text position of [Content is empty] is incorrect when the data is empty
1 parent d512e02 commit 4bc3d38

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ yarn-error.log
99
*.suo
1010
*.ntvs*
1111
*.njsproj
12-
*.sln
12+
*.sln

Diff for: package.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
{
22
"name": "@wchbrad/vue-easy-tree",
33
"description": "A Vue.js project",
4-
"version": "1.0.4",
4+
"version": "1.0.5",
55
"author": "wchbrad <[email protected]>",
66
"license": "MIT",
77
"private": false,
88
"main": "./dist/vue-easy-tree.js",
9-
"keywords": ["virtual", "tree", "bigdata", "largedata", "lazy loading", "vue"],
9+
"keywords": [
10+
"virtual",
11+
"tree",
12+
"bigdata",
13+
"largedata",
14+
"lazy loading",
15+
"vue"
16+
],
1017
"repository": {
1118
"type": "git",
1219
"url": "git+https://github.com/wchbrad/vue-easy-tree.git"
@@ -54,4 +61,4 @@
5461
"webpack-cli": "^3.0.8",
5562
"webpack-dev-server": "^3.1.11"
5663
}
57-
}
64+
}

Diff for: src/components/ve-tree.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
role="tree"
1111
>
1212
<RecycleScroller
13-
v-if="height"
13+
v-if="height && !isEmpty"
1414
:style="{
1515
height: height,
1616
'overflow-y': 'auto',
@@ -33,7 +33,7 @@
3333
</RecycleScroller>
3434
<el-tree-node
3535
v-for="child in root.childNodes"
36-
v-else
36+
v-else-if="!isEmpty"
3737
:key="getNodeKey(child)"
3838
:node="child"
3939
:props="props"

0 commit comments

Comments
 (0)