wujingjing
2024-11-05 022a757742c70b3106d817461464e821b537e794
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!-- 昨日供水管网概况 -->
<template>
    <div class="w-full">
        <span class="text-base font-bold">{{ data.title }}</span>
        <el-table ref="tableRefList" class="w-full mt-5" :data="[{}]" cellClassName="text-sm" headerCellClassName="text-sm">
            <el-table-column v-for="(col, index) in data.values" :label="col.title" :key="index">
                <template #default="scope">
                    {{ col?.value }}
                </template>
            </el-table-column>
        </el-table>
    </div>
</template>
 
<script setup lang="ts">
import type { TableInstance } from 'element-plus';
import { onMounted, ref } from 'vue';
import { chatComProps } from '../../../common';
 
const props = defineProps(chatComProps);
 
const tableRef = ref<TableInstance>();
const doTableLayout = () => {
    tableRef.value?.doLayout();
};
onMounted(() => {
    setTimeout(() => {
        doTableLayout();
    }, 300);
});
</script>
<style scoped lang="scss"></style>