fix(components): [table] emptyText/sumText empty string is invalid (#8340)

Co-authored-by: RealityBoy <1923740402@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
This commit is contained in:
Zeng Fanhao 2024-08-15 21:25:26 +08:00 committed by GitHub
parent deb0be1777
commit b809dcde4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -288,11 +288,11 @@ export default defineComponent({
debouncedUpdateLayout,
}
const computedSumText = computed(
() => props.sumText || t('el.table.sumText')
() => props.sumText ?? t('el.table.sumText')
)
const computedEmptyText = computed(() => {
return props.emptyText || t('el.table.emptyText')
return props.emptyText ?? t('el.table.emptyText')
})
const columns = computed(() => {