This commit is contained in:
dute7liang
2024-01-20 01:43:40 +08:00
parent 3e45791613
commit 4a7d83fb62
9 changed files with 113 additions and 47 deletions

View File

@@ -60,7 +60,9 @@
<el-table-column label="业务操作" align="center" prop="cateAdminName" />
<el-table-column label="说明" align="center" prop="cateAdminName" min-width="200">
<template v-slot="scope">
<span>{{scope.row.showMessage}}</span><image-preview v-if="scope.row.tarImg" :src="scope.row.tarImg" :width="30" :height="30"/>
<div class="context-avatar-center">
<span>{{scope.row.showMessage}}</span><image-preview v-if="scope.row.tarImg" :src="scope.row.tarImg" :width="32" :height="32"/>
</div>
</template>
</el-table-column>
<el-table-column label="变动" align="center" prop="changeValue" />
@@ -225,3 +227,11 @@ export default {
}
};
</script>
<style lang="scss" scoped>
.context-avatar-center {
display: flex;
align-items: center; /* 垂直居中 */
justify-content: center; /* 水平居中 */
}
</style>