KI-AGENT: Tabellen-Empty-States ohne JSON rendern
Ersetzt ungültige UTable-Empty-Props durch einen gemeinsamen Empty-State-Slot, damit leere Tabellen keine Objekt-/JSON-Ausgabe mehr anzeigen.
This commit is contained in:
19
frontend/components/TableEmptyState.vue
Normal file
19
frontend/components/TableEmptyState.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script setup>
|
||||
defineProps({
|
||||
icon: {
|
||||
type: String,
|
||||
default: 'i-heroicons-circle-stack-20-solid'
|
||||
},
|
||||
label: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col items-center justify-center gap-2 py-6 text-center text-muted">
|
||||
<UIcon :name="icon" class="size-6" />
|
||||
<span>{{ label }}</span>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user