✨ style: 优化刷新按钮交互样式与统一类名
* 为刷新按钮添加统一的 fcb-refresh-button 类名 * 引入刷新按钮的悬停动效与过渡效果 * 优化刷新按钮交互反馈体验
This commit is contained in:
1 parent
9eef5ee5d6
commit
728fd63741
4 files changed
+23
-7
No files matched your search
@@ -134,6 +134,8 @@ textarea {
|
||||
}
|
||||
.fcb-secondary-card { transition: all 300ms ease !important; box-shadow: -8px -8px 20px rgba(255,255,255,.8), 8px 8px 20px rgba(163,177,198,.5) !important; }
|
||||
.fcb-secondary-card:hover { transform: translateY(-2px); background: #f0f4f8 !important; box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important; }
|
||||
.fcb-refresh-button { transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease !important; }
|
||||
.fcb-refresh-button:hover { transform: translateY(-2px) !important; box-shadow: -8px -8px 18px rgba(255,255,255,.86), 8px 8px 18px rgba(163,177,198,.48) !important; }
|
||||
|
||||
.data-table-2026 thead th {
|
||||
background: rgba(236, 244, 246, 0.76);
|
||||
@@ -525,3 +527,17 @@ button:not(:disabled):hover { filter: brightness(1.025); }
|
||||
.animate-spin-slow { animation: none !important; }
|
||||
.fcb-lifecycle-row { transition: opacity 420ms cubic-bezier(.22,1,.36,1); }
|
||||
.fcb-lifecycle-list, .fcb-expand-content { overflow: hidden; }
|
||||
|
||||
/* Final interaction overrides: no row shadow trails, visible health-card motion. */
|
||||
.fcb-health-card {
|
||||
transition-duration: 380ms !important;
|
||||
transition-timing-function: ease !important;
|
||||
}
|
||||
.fcb-list-row {
|
||||
transition: background-color 260ms ease-out !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.fcb-list-row:hover {
|
||||
background: #d6e8ec !important;
|
||||
box-shadow: inset 0 0 0 2px rgba(113,152,166,.5) !important;
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
<h2 class="mt-1 text-2xl font-bold" :class="primaryTextClass">操作记录</h2>
|
||||
<p class="mt-1 text-sm" :class="mutedTextClass">查看后台管理、回收站和配置变更的可追溯记录。</p>
|
||||
</div>
|
||||
<BaseButton variant="secondary" :loading="isLoading" @click="loadActivities">
|
||||
<BaseButton class="fcb-refresh-button" variant="secondary" :loading="isLoading" @click="loadActivities">
|
||||
<template #icon><RefreshCwIcon class="mr-2 h-4 w-4" /></template>
|
||||
刷新记录
|
||||
</BaseButton>
|
||||
|
||||
@@ -320,7 +320,7 @@
|
||||
</div>
|
||||
<div v-else-if="hasLoadError" class="px-4 py-10 text-center">
|
||||
<p class="text-sm font-medium" :class="[primaryTextClass]">{{ t('fileManage.loadError') }}</p>
|
||||
<BaseButton class="mt-3" variant="secondary" @click="refreshFileList">{{ t('fileManage.refresh') }}</BaseButton>
|
||||
<BaseButton class="fcb-refresh-button mt-3" variant="secondary" @click="refreshFileList">{{ t('fileManage.refresh') }}</BaseButton>
|
||||
</div>
|
||||
<div v-else-if="tableData.length === 0" class="px-4 py-10 text-center text-sm" :class="[mutedTextClass]">
|
||||
<p>{{ hasActiveFilters ? t('fileManage.noMatches') : t('common.noData') }}</p>
|
||||
@@ -465,7 +465,7 @@
|
||||
<div v-if="!isMobileViewport" class="hidden md:block">
|
||||
<DataTable :title="t('fileManage.allFiles')" :headers="fileTableHeaders" table-class="min-w-[1120px]">
|
||||
<template #actions>
|
||||
<BaseButton variant="secondary" :loading="isLoading" @click="refreshFileList">
|
||||
<BaseButton class="fcb-refresh-button" variant="secondary" :loading="isLoading" @click="refreshFileList">
|
||||
<template #icon>
|
||||
<RefreshCwIcon class="mr-2 h-4 w-4" />
|
||||
</template>
|
||||
@@ -567,7 +567,7 @@
|
||||
<p class="font-medium" :class="[primaryTextClass]">
|
||||
{{ t('fileManage.loadError') }}
|
||||
</p>
|
||||
<BaseButton class="mt-4" variant="secondary" @click="refreshFileList">
|
||||
<BaseButton class="fcb-refresh-button mt-4" variant="secondary" @click="refreshFileList">
|
||||
<template #icon>
|
||||
<RefreshCwIcon class="mr-2 h-4 w-4" />
|
||||
</template>
|
||||
@@ -801,7 +801,7 @@
|
||||
<h3 class="text-lg font-semibold" :class="[primaryTextClass]">历史文件</h3>
|
||||
<p class="text-sm" :class="[mutedTextClass]">包含已删除、已过期和现存文件的下载统计</p>
|
||||
</div>
|
||||
<BaseButton variant="secondary" :loading="isHistoryLoading" @click="loadHistoryFiles">
|
||||
<BaseButton class="fcb-refresh-button fcb-secondary-card" variant="secondary" :loading="isHistoryLoading" @click="loadHistoryFiles">
|
||||
<template #icon>
|
||||
<RefreshCwIcon class="mr-2 h-4 w-4" />
|
||||
</template>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<template #icon><Settings2Icon class="mr-2 h-4 w-4" /></template>
|
||||
配置默认清理时间
|
||||
</BaseButton>
|
||||
<BaseButton variant="secondary" :loading="isLoading" @click="loadTrash">
|
||||
<BaseButton class="fcb-refresh-button" variant="secondary" :loading="isLoading" @click="loadTrash">
|
||||
<template #icon><RefreshCwIcon class="mr-2 h-4 w-4" /></template>
|
||||
刷新回收站
|
||||
</BaseButton>
|
||||
@@ -37,7 +37,7 @@
|
||||
</div>
|
||||
|
||||
<div v-if="isLoading" class="flex min-h-64 items-center justify-center text-sm" :class="mutedTextClass"><RefreshCwIcon class="mr-2 h-4 w-4 animate-spin" />正在加载回收站…</div>
|
||||
<div v-else-if="errorText" class="px-4 py-12 text-center sm:px-6"><p class="text-sm font-medium text-red-600">{{ errorText }}</p><BaseButton class="mt-3" variant="secondary" @click="loadTrash">重新加载</BaseButton></div>
|
||||
<div v-else-if="errorText" class="px-4 py-12 text-center sm:px-6"><p class="text-sm font-medium text-red-600">{{ errorText }}</p><BaseButton class="fcb-refresh-button mt-3" variant="secondary" @click="loadTrash">重新加载</BaseButton></div>
|
||||
<div v-else-if="items.length === 0" class="px-4 py-14 text-center sm:px-6"><Trash2Icon class="mx-auto h-9 w-9" :class="mutedTextClass" /><p class="mt-3 text-sm" :class="mutedTextClass">回收站目前为空</p></div>
|
||||
|
||||
<div v-else class="divide-y" :class="dividerClass">
|
||||
|
||||
Reference in new issue
Block a user