fix(图表): 修复明细表有总数据条数在预览时被遮挡问题

This commit is contained in:
wangjiahao 2024-04-28 19:17:34 +08:00
parent 93d4fd8f66
commit 22fd05d93a

View File

@ -407,10 +407,9 @@ onBeforeUnmount(() => {
const autoStyle = computed(() => {
return {
height: 100 / scale.value + '%!important',
height: 20 * scale.value + 8 + 'px',
width: 100 / scale.value + '%!important',
left: 50 * (1 - 1 / scale.value) + '%', // 2
top: 50 * (1 - 1 / scale.value) + '%', // 2
transform: 'scale(' + scale.value + ')'
}
})
@ -434,8 +433,8 @@ const autoHeightStyle = computed(() => {
<div v-if="!isError" class="canvas-content">
<div style="position: relative; height: 100%" :id="containerId"></div>
</div>
<el-row :style="autoHeightStyle" v-if="showPage && !isError">
<div :style="autoStyle" class="table-page-info">
<el-row :style="autoStyle" v-if="showPage && !isError">
<div class="table-page-info">
<div>{{ state.pageInfo.total }}</div>
<el-pagination
class="table-page-content"
@ -474,7 +473,6 @@ const autoHeightStyle = computed(() => {
height: 20px;
display: flex;
width: 100%;
justify-content: space-between;
color: grey;
:deep(.table-page-content) {
button,