mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-11 11:39:43 +08:00
fix(components): [el-tree-v2] empty-text supports empty string & virtual list width become no required (#4144)
This commit is contained in:
parent
fb8fc98c63
commit
974e9d563f
@ -80,7 +80,7 @@ export default defineComponent({
|
||||
})
|
||||
|
||||
const icon = computed(() => {
|
||||
return tree?.props.icon ? tree.props.icon : DEFAULT_ICON
|
||||
return tree?.props.icon ?? DEFAULT_ICON
|
||||
})
|
||||
|
||||
const handleClick = () => {
|
||||
|
@ -35,7 +35,7 @@
|
||||
</fixed-size-list>
|
||||
<div v-else class="el-tree__empty-block">
|
||||
<span class="el-tree__empty-text">{{
|
||||
emptyText || t('el.tree.emptyText')
|
||||
emptyText ?? t('el.tree.emptyText')
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -88,7 +88,7 @@ export const virtualizedProps = buildProps({
|
||||
|
||||
width: {
|
||||
type: [Number, String],
|
||||
required: true,
|
||||
required: false,
|
||||
},
|
||||
|
||||
perfMode: {
|
||||
|
Loading…
Reference in New Issue
Block a user