优化分享码没有数据时的显示页面

pull/406/head
HXY 2 years ago
parent eb24396c6d
commit a7e8b5173a

@ -4,25 +4,12 @@
<div class="balance-wrap"> <div class="balance-wrap">
<n-statistic style="color: black; font-weight: bold"></n-statistic> <n-statistic style="color: black; font-weight: bold"></n-statistic>
</div> </div>
<template #footer>
<div class="pagination-wrap" v-if="totalPage > 1">
<n-pagination
:page="page"
@update:page="updatePage"
:page-slot="!store.state.collapsedRight ? 8 : 5"
:page-count="totalPage"
/>
</div>
</template>
<div v-if="loading" class="skeleton-wrap"> <div v-if="loading" class="skeleton-wrap">
<post-skeleton :num="pageSize" /> <post-skeleton :num="pageSize" />
</div> </div>
<div v-else> <div v-else>
<div class="empty-wrap" v-if="shareKeys.length === 0"> <div class="table-wrap">
<n-empty size="large" description="暂无数据" />
</div>
<n-table :bordered="false" :single-line="false" striped> <n-table :bordered="false" :single-line="false" striped>
<thead> <thead>
<tr> <tr>
@ -45,6 +32,20 @@
</tr> </tr>
</tbody> </tbody>
</n-table> </n-table>
<div class="empty-wrap" v-if="shareKeys.length === 0">
<n-empty size="large" description="暂无数据" />
</div>
</div>
<div class="pagination-wrap" v-if="totalPage > 1">
<n-pagination
:page="page"
@update:page="updatePage"
:page-slot="!store.state.collapsedRight ? 8 : 5"
:page-count="totalPage"
/>
</div>
</div> </div>
</n-list> </n-list>
@ -63,7 +64,7 @@
</n-card> </n-card>
</n-modal> </n-modal>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted } from "vue"; import { ref, onMounted } from "vue";

Loading…
Cancel
Save