mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(Table): empty state is displayed if null (#517)
This commit is contained in:
committed by
Benjamin Canac
parent
cb5484a603
commit
44ba758c0d
@@ -175,7 +175,10 @@ export default defineComponent({
|
||||
|
||||
const indeterminate = computed(() => selected.value && selected.value.length > 0 && selected.value.length < props.rows.length)
|
||||
|
||||
const emptyState = computed(() => ({ ...ui.value.default.emptyState, ...props.emptyState }))
|
||||
const emptyState = computed(() => {
|
||||
if (props.emptyState === null) return null
|
||||
return { ...ui.value.default.emptyState, ...props.emptyState }
|
||||
})
|
||||
|
||||
function compare (a: any, z: any) {
|
||||
if (typeof props.by === 'string') {
|
||||
|
||||
Reference in New Issue
Block a user