<div class="pdf" v-show="fileType === 'pdf'">
<div style="height: 0.8rem;"></div>
<p class="arrow" style="font-size: 18px">
<!-- // 上一页 -->
<span
@click="changePdfPage(0)"
class="turn"
:class="{grey: currentPage==1}"
style="cursor: pointer;margin-left: 1rem;"
>上一页</span>
{
{currentPage}} / {
{pageCount}}
<!-- // 下一页 -->
<span
@click="changePdfPage(1)"
class="turn"
:class="{grey: currentPage===pageCount}"
style="cursor: pointer;"
>下一页</span>
</p>
<pdf
style="width: 90%"
:src="preUrl"
:page="currentPage"
@num-p
vue-pdf分页预览
最新推荐文章于 2024-07-26 11:38:56 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)