fix(components): [el-tree] emptyText empty string is invalid (#4135) (#4136)

* fix(components): [el-tree] emptyText  empty string is invalid (#4135)

* fix: emptyText  empty  judge
This commit is contained in:
SongWuKong 2021-11-01 11:38:15 +08:00 committed by GitHub
parent 86866f6725
commit fb8fc98c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@
/>
<div v-if="isEmpty" class="el-tree__empty-block">
<span class="el-tree__empty-text">{{
emptyText || t('el.tree.emptyText')
emptyText ?? t('el.tree.emptyText')
}}</span>
</div>
<div