Skip to content

Commit

Permalink
fix: emptyText
Browse files Browse the repository at this point in the history
  • Loading branch information
cole committed Mar 19, 2024
1 parent 9e543ec commit deb1903
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/table/hooks/useColumnRender.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { computed } from 'vue'
import { Badge, Typography } from 'ant-design-vue'
import { isArray, isFunction, isObject } from 'lodash-es'
import { isEmpty } from '@/utils'

function getEllipsis (column) {
if (column.ellipsis && column.ellipsis.showTitle === false) {
Expand Down Expand Up @@ -41,7 +42,7 @@ function columnRender (oldColumn, emptyText) {
/>
)
}
return text || emptyText
return isEmpty(text) ? emptyText : text
}
}

Expand Down

0 comments on commit deb1903

Please sign in to comment.