<div >
<el-button type="success" size="small" @click="isViewPdf20 = true" >按钮</el-button>
</div>
<el-dialog
title="预览文件"
:visible.sync="isViewPdf20"
:before-close="handleClose"
:fullscreen="true"
>
<iframe :src=你要预览pdf的文件的地址 frameborder="0" style="width: 100vw; height: 80vh"></iframe>
</el-dialog>
vue、Element 点击按钮以弹窗形式预览pdf文件
最新推荐文章于 2024-05-21 10:38:32 发布