refactor: 只有1页就不展示页码

This commit is contained in:
maxmon 2021-07-09 22:17:09 +08:00
parent 8cffeb1e5c
commit f11f05f5e9
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
</div>
<div class="page-ctl">
<span class="page-ctl-last" :style="{opacity: pageNumber === 1 ? 0 : 1}" @click="lastPage">上页</span>
<span class="page-number">{{pageNumber}}</span>
<span class="page-number" :style="{opacity: pageNumber === 1 && files.length < pageSize ? 0 : 1}">{{pageNumber}}</span>
<span class="page-ctl-next" :style="{opacity: files.length < pageSize ? 0 : 1}" @click="nextPage">下页</span>
</div>
<div class="out-btn" @click="outAllNers">导出json结果</div>