tab监测点框高度
This commit is contained in:
@@ -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 实例
|
||||
|
||||
Reference in New Issue
Block a user