"添加前端模板和运行代码模块"

This commit is contained in:
Codex
2026-06-01 13:43:09 +08:00
parent 24045274ad
commit 8092c4b1f8
587 changed files with 99761 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<script setup lang="ts">
import { computed } from 'vue';
import { cn } from '@/lib/utils';
interface SeparatorProps {
orientation?: 'horizontal' | 'vertical';
class?: string;
}
const props = withDefaults(defineProps<SeparatorProps>(), {
orientation: 'horizontal',
});
const className = computed(() =>
cn(
props.orientation === 'horizontal'
? 'h-px w-full bg-gray-200'
: 'h-full w-px bg-gray-200',
props.class
)
);
</script>
<template>
<div :class="className" role="separator" :aria-orientation="orientation" />
</template>