refactor(frontend): 优化 UI 基础组件

- 更新 avatar-image, badge, checkbox, input, switch 等组件
- 优化 dialog, pagination, select-item, tabs 等组件
- 调整 table-card, refresh-button 组件
This commit is contained in:
fawney19
2025-12-12 16:15:07 +08:00
parent e902595d58
commit 44e7117d4a
12 changed files with 74 additions and 25 deletions

View File

@@ -1,14 +1,22 @@
<template>
<Card class="overflow-hidden">
<!-- 标题和操作栏 -->
<div v-if="$slots.header || title" class="px-6 py-3.5 border-b border-border/60">
<div
v-if="$slots.header || title"
class="px-6 py-3.5 border-b border-border/60"
>
<slot name="header">
<div class="flex items-center justify-between gap-4">
<!-- 左侧标题 -->
<h3 class="text-base font-semibold">{{ title }}</h3>
<h3 class="text-base font-semibold">
{{ title }}
</h3>
<!-- 右侧操作区 -->
<div v-if="$slots.actions" class="flex items-center gap-2">
<div
v-if="$slots.actions"
class="flex items-center gap-2"
>
<slot name="actions" />
</div>
</div>