library/frontend/components/Table/TableTd.vue

23 lines
340 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;
2023-07-13 17:03:49 -07:00
@apply last-of-type:pe-0;
2023-07-13 14:29:43 -07:00
div {
@apply mt-1;
@apply first-of-type:mt-0;
}
}
</style>