task#14196,data动态数据添加

This commit is contained in:
2024-07-01 10:32:19 +08:00
parent 481c37f708
commit e11946352c
4 changed files with 210 additions and 71 deletions

View File

@ -0,0 +1,40 @@
<template>
<div class="wrap">
<el-table :data="tableData"
stripe
border
style="width: 100%"
v-loading="loading"
class="custom-table">
<el-table-column v-for="column in labelList" :key="column.prop" :prop="column.prop" :label="column.label"
align="center" min-width="100">
</el-table-column>
</el-table>
</div>
</template>
<script>
export default {
name: "noFit-table",
props: ['tableData','labelList','loading'],
data() {
return {}
},
mounted() {
},
methods: {}
}
</script>
<style scoped lang="scss">
@import "@/styles/mixin.scss";
::v-deep .el-table thead{
font-size: 11px;
color: #1D2129;
font-weight: bold;
}
::v-deep .el-table th.el-table__cell.is-leaf {
background-color: #E5E6EB;
}
</style>