mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-18 05:02:14 +01:00
add projects detail page, task create / delete
This commit is contained in:
24
resources/js/Components/TableRow.vue
Normal file
24
resources/js/Components/TableRow.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<script setup lang="ts">
|
||||
import { Link } from '@inertiajs/vue3';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
|
||||
defineProps<{
|
||||
href?: string;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Component
|
||||
:is="href ? Link : 'div'"
|
||||
:href="href"
|
||||
:class="
|
||||
twMerge(
|
||||
'contents [&>*]:hover:bg-white/5 [&>*]:transition [&>*]:cursor-pointer [&>*]:border-row-separator [&>*]:border-b',
|
||||
href ? '[&>*]:cursor-pointer' : ''
|
||||
)
|
||||
">
|
||||
<slot></slot>
|
||||
</Component>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user