refactor to ui components

This commit is contained in:
Marco Crapts
2023-05-26 16:43:12 +02:00
parent 906121882b
commit 3e6b9414f4
13 changed files with 122 additions and 125 deletions

View File

@@ -0,0 +1,15 @@
<script setup lang="ts">
interface Props {
density?: 'compact'
}
const props = defineProps<Props>()
const styleClass = computed(() => {
const densityClass = props.density ? 'table-compact' : ''
return [densityClass]
})
</script>
<template>
<table class="table" :class="styleClass"><slot></slot></table>
</template>