library/frontend/components/Table/TableTd.vue

29 lines
422 B
Vue
Raw Normal View History

2023-07-13 14:29:43 -07:00
<script setup lang="ts">
2023-07-13 14:52:43 -07:00
defineProps<{actions?: boolean}>()
2023-07-13 14:29:43 -07:00
</script>
<template>
2023-07-13 14:52:43 -07:00
<td :class="{actions: actions}"><slot /></td>
2023-07-13 14:29:43 -07:00
</template>
<style lang="postcss">
td {
@apply py-5 px-3 whitespace-nowrap;
@apply first-of-type:ps-0;
@apply last-of-type:pe-0 last-of-type:text-end;
div {
@apply mt-1;
@apply first-of-type:mt-0;
}
}
2023-07-13 14:52:43 -07:00
.actions a {
@apply me-3;
@apply last-of-type:me-0;
}
2023-07-13 14:29:43 -07:00
</style>