+ <el-drawer :title="activeEntry.filePath":with-header="false" :visible.sync="previewDrawerVisible" direction="rtl" size="50%">
+ <div style="display: flex; flex-direction: column; height: 100%;">
+ <iframe :src="activeEntry.fullPath" style="width: 100%; height: 100%; border: none; margin: 10px;"></iframe>
+ <center>
+ <el-button size="small" icon="el-icon-download" style="margin: 10px;" @click.stop="onDownload(activeEntry)">Download</el-button>
+ <a :href="activeEntry.fullPath" target="_blank">
+ <el-button size="small" icon="el-icon-link" style="margin: 10px;">Open</el-button>
+ </a>
+ </center>
+ </div>
+ </el-drawer>
+