feat:主页主体框架
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<template>
|
||||
<div class="section-title">
|
||||
<h2><slot /></h2>
|
||||
<p v-if="$slots.subtitle"><slot name="subtitle" /></p>
|
||||
</div>
|
||||
</template>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user