引入shadcn-vue组件

This commit is contained in:
2026-01-14 09:54:20 +08:00
parent 4fc70bcbfe
commit c9fd70311b
108 changed files with 3125 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
<script setup lang="ts">
import type { HTMLAttributes } from "vue"
import { cn } from "@/lib/utils"
const props = defineProps<{
class?: HTMLAttributes["class"]
}>()
</script>
<template>
<tr
data-slot="table-row"
:class="cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors', props.class)"
>
<slot />
</tr>
</template>