mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-07 10:12:27 +08:00
Initial commit
This commit is contained in:
20
frontend/src/components/ui/table-cell.vue
Normal file
20
frontend/src/components/ui/table-cell.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
import { cn } from '@/lib/utils'
|
||||
import { computed } from 'vue'
|
||||
|
||||
interface Props {
|
||||
class?: string
|
||||
}
|
||||
|
||||
const props = defineProps<Props>()
|
||||
|
||||
const cellClass = computed(() =>
|
||||
cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', props.class)
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<td :class="cellClass">
|
||||
<slot />
|
||||
</td>
|
||||
</template>
|
||||
Reference in New Issue
Block a user