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

@@ -48,7 +48,10 @@
</Button>
<!-- 页码按钮智能省略 -->
<template v-for="page in pageNumbers" :key="page">
<template
v-for="page in pageNumbers"
:key="page"
>
<Button
v-if="typeof page === 'number'"
:variant="page === current ? 'default' : 'outline'"
@@ -59,7 +62,10 @@
>
{{ page }}
</Button>
<span v-else class="px-2 text-muted-foreground select-none">{{ page }}</span>
<span
v-else
class="px-2 text-muted-foreground select-none"
>{{ page }}</span>
</template>
<Button