-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathFooter.vue
More file actions
51 lines (45 loc) · 1021 Bytes
/
Footer.vue
File metadata and controls
51 lines (45 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template>
<div class="footer-content">
<!-- 翻页统计信息 -->
<div v-if="paginationStore.shouldShow" class="pagination-stats">
<span class="stats-text">{{ paginationStore.statsText }}</span>
</div>
<!-- 默认底部工具条内容 -->
<div v-else class="default-footer">
<span>底部工具条</span>
</div>
</div>
</template>
<script setup>
import { usePaginationStore } from '@/stores/paginationStore';
// 使用翻页统计store
const paginationStore = usePaginationStore();
</script>
<style scoped>
.footer-content {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.pagination-stats {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
.stats-text {
font-size: 13px;
color: var(--color-text-2);
font-weight: 500;
}
.default-footer {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
color: var(--color-text-2);
font-size: 14px;
}
</style>