elementui table_设置表格表头高度和每一行的高度

<el-table
        :data="
          tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)
        "
        style="width: 100%"
        :header-cell-style="{
            textAlign: 'center',
            height: '40px',
        }"
        :row-style="{height: '60px'}"
        stripe
      >
      <el-table-column label="ID"         align="center" prop="id" width="50"></el-table-column>
     </el-table>

版权声明:本文为m0_46554818原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。