Merge pull request #12005 from dataease/pr@dev-v2@refactor_image_enlarge

refactor(图表): 表格图片放大展示优化
This commit is contained in:
wisonic-s 2024-09-04 16:03:31 +08:00 committed by GitHub
commit 93efb10b41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -671,7 +671,7 @@ const tablePageClass = computed(() => {
</el-row>
<chart-error v-if="isError" :err-msg="errMsg" />
</div>
<el-dialog v-model="state.imgEnlarge" append-to-body>
<el-dialog v-model="state.imgEnlarge" append-to-body class="image-dialog">
<div class="enlarge-image">
<img :src="state.imgSrc" style="width: 100%; height: 100%; object-fit: contain" />
</div>
@ -724,6 +724,13 @@ const tablePageClass = computed(() => {
}
</style>
<style lang="less">
.image-dialog {
height: 100%;
.ed-dialog__body {
height: calc(100% - 24px);
width: 100%;
}
}
.enlarge-image {
display: flex;
width: 100%;