refactor to UI components
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user