mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-06 01:32:28 +08:00
refactor(frontend): optimize UI components (ScatterChart, ActivityHeatmap, table-card)
This commit is contained in:
@@ -3,19 +3,19 @@
|
||||
<!-- 标题和操作栏 -->
|
||||
<div
|
||||
v-if="$slots.header || title"
|
||||
class="px-6 py-3.5 border-b border-border/60"
|
||||
class="px-4 sm:px-6 py-3 sm:py-3.5 border-b border-border/60"
|
||||
>
|
||||
<slot name="header">
|
||||
<div class="flex items-center justify-between gap-4">
|
||||
<div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 sm:gap-4">
|
||||
<!-- 左侧:标题 -->
|
||||
<h3 class="text-base font-semibold">
|
||||
<h3 class="text-sm sm:text-base font-semibold shrink-0">
|
||||
{{ title }}
|
||||
</h3>
|
||||
|
||||
<!-- 右侧:操作区 -->
|
||||
<div
|
||||
v-if="$slots.actions"
|
||||
class="flex items-center gap-2"
|
||||
class="flex flex-wrap items-center gap-2"
|
||||
>
|
||||
<slot name="actions" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user