Files
new-api-key-usage/apps/web/src/components/common/table-refresh.vue
T
skycurtain 4be0853ade feat(web): 表格工具行统一刷新钮
纯图标 + tooltip,筛选下一行右对齐;覆盖管理端与成员端列表;清理 overview 未用 ref。
2026-10-09 23:42:24 +08:00

34 lines
710 B
Vue

<script setup lang="ts">
/**
* 表格工具行刷新钮(纯图标 + tooltip)——放在筛选行下一行、右对齐
*/
import { ReloadOutlined } from "@antdv-next/icons";
defineProps<{ loading?: boolean }>();
const emit = defineEmits<{ (e: "refresh"): void }>();
</script>
<template>
<div class="table-refresh">
<a-tooltip title="刷新">
<a-button
:loading="loading"
aria-label="刷新"
@click="emit('refresh')"
>
<template #icon>
<ReloadOutlined />
</template>
</a-button>
</a-tooltip>
</div>
</template>
<style scoped>
.table-refresh {
display: flex;
justify-content: flex-end;
margin-bottom: 8px;
}
</style>