<template>
    <div class="">
        <el-table :data="gridData" :key="Math.random()" max-height="450" border>
            <el-table-column type="index" width="80" label="序号" />
            <el-table-column property="name" label="记录" show-overflow-tooltip/>
        </el-table>
    </div>
</template>

<script setup lang="ts">
// 接受父组件参数，配置默认值
const props = defineProps({
    gridData: {
        type: Array,
        default: () => [],
    },
});
</script>
<style lang="scss">
/* @import url(); 引入css类 */

</style>