feat:主页主体框架

This commit is contained in:
2026-07-15 09:58:35 +08:00
parent 31522f05d5
commit 6173707aec
9 changed files with 1482 additions and 169 deletions
+6
View File
@@ -0,0 +1,6 @@
<template>
<div class="section-title">
<h2><slot /></h2>
<p v-if="$slots.subtitle"><slot name="subtitle" /></p>
</div>
</template>
+5 -1
View File
@@ -9,7 +9,11 @@ defineProps({
<button
:type="type"
class="inline-flex h-10 items-center justify-center rounded-md px-4 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
:class="variant === 'outline' ? 'border border-slate-200 bg-white text-slate-700 hover:bg-slate-50' : 'bg-primary text-white shadow-sm hover:bg-blue-600'"
:class="
variant === 'outline'
? 'border border-slate-200 bg-white text-slate-700 hover:bg-slate-50'
: 'bg-primary text-white shadow-sm hover:bg-blue-600'
"
>
<slot />
</button>