Commit 383f72f7 by Johannes Zellner

use el-image instead of manual img tag

1 parent 809fcf5d
Showing with 1 additions and 1 deletions
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<el-table :data="entries" style="max-width: 1280px;width: 100%" height="100%" empty-text="Folder is emtpy" :default-sort="{ prop: 'filePath', order: 'descending' }" @row-click="open"> <el-table :data="entries" style="max-width: 1280px;width: 100%" height="100%" empty-text="Folder is emtpy" :default-sort="{ prop: 'filePath', order: 'descending' }" @row-click="open">
<el-table-column prop="previewUrl" label="Type" width="100px" sortable> <el-table-column prop="previewUrl" label="Type" width="100px" sortable>
<template slot-scope="scope"> <template slot-scope="scope">
<img v-bind:src="scope.row.previewUrl" class="list-icon" height="32px" width="32px" style="object-fit: cover;"/> <el-image v-bind:src="scope.row.previewUrl" class="list-icon" style="width: 32px; height: 32px" fit="cover"></el-image>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="filePath" label="Name" sortable> <el-table-column prop="filePath" label="Name" sortable>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!