Add actions flag to TableTh

This commit is contained in:
Marley 2023-07-13 16:56:49 -07:00
parent 7aae800a01
commit 6184061e46

View file

@ -1,9 +1,9 @@
<script setup lang="ts">
defineProps<{actions?: boolean}>()
</script>
<template>
<th><slot /></th>
<th :class="{actions: actions}"><slot /></th>
</template>
<style lang="postcss">
@ -14,4 +14,10 @@ th {
@apply first-of-type:ps-0;
@apply last-of-type:ps-3.5 last-of-type:pe-0 last-of-type:relative;
}
.actions a {
@apply me-3;
@apply last-of-type:me-0;
}
</style>