Add actions flag to TableTh
This commit is contained in:
parent
7aae800a01
commit
6184061e46
1 changed files with 8 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue