tab监测点框高度

This commit is contained in:
sjl
2025-07-09 20:58:52 +08:00
parent cc848b1ffb
commit c8f3b4eddc
3 changed files with 23 additions and 15 deletions

View File

@@ -1,14 +1,13 @@
<!-- components/MonitorPointTable.vue -->
<template>
<el-tab-pane label="监测点台账信息" v-if="MonIsShow">
<div class='table-box' ref='popupBaseView'>
<div class='table-box'>
<ProTable
ref='proTable'
:pagination="false"
:toolButton="false"
:columns='columns'
:data="tableData"
:style="{ height: '375px',maxHeight: '400px',overflow:'hidden'}"
:style="{ height: tableHeight + 'px',overflow:'hidden'}"
>
<!-- 表格 header 按钮 -->
<template #tableHeader='scope'>
@@ -29,7 +28,6 @@
</ProTable>
</div>
<MonitorPopup @getParameter="getParameter" ref='monitorPopup'/>
</el-tab-pane>
</template>
<script setup lang="ts">
@@ -47,8 +45,8 @@
// 定义 props
const props = defineProps<{
MonIsShow: boolean;
DevFormContent:Device.ResPqDev
DevFormContent:Device.ResPqDev,
tableHeight?: number // 接收外部传入的高度
}>();
// ProTable 实例