mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-15 02:40:46 +08:00
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:
parent
deb0be1777
commit
b809dcde4d
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user