</center>
</div>
+ <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>
+
</el-main>
<el-footer v-show="uploadStatus.busy">
<el-row v-if="uploadStatus.uploadListCount">
return;
}
- window.open(encode(path));
+ app.activeEntry = row;
+ app.activeEntry.fullPath = encode(sanitize(app.path + '/' + row.filePath));
+ app.previewDrawerVisible = true
+
+ // window.open(encode(path));
}
function uploadFiles(files) {
password: '',
busy: false
},
+ previewDrawerVisible: false,
+ activeEntry: {},
entries: [],
accessTokens: [],
accessTokensDialogVisible: false