vue、Element 点击按钮以弹窗形式预览pdf文件
原文链接<div ><el-button type="success" size="small" @click="isViewPdf20 = true" >按钮</el-button></div><el-dialogtitle="预览文件":visible.sync="isViewPdf20":before-close="handleClose
·
<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>
更多推荐
已为社区贡献1条内容
所有评论(0)