refactor to UI components

This commit is contained in:
2023-05-26 00:50:19 +02:00
parent b89816ecd5
commit 9ca0bba526
20 changed files with 160 additions and 78 deletions

View File

@@ -5,11 +5,11 @@ interface Props {
const props = defineProps<Props>()
const styleClass = computed(() => {
const densityClass = props.density ? 'table-compact' : ''
const densityClass = props.density ? 'dui-table-compact' : ''
return [densityClass]
})
</script>
<template>
<table class="table" :class="styleClass"><slot></slot></table>
<table class="dui-table" :class="styleClass"><slot></slot></table>
</template>