要将el-table-column的高度变高,可以使用style属性来设置高度。例如:

<el-table-column prop="id" label="ID" :style="{ height: '100px' }">
  <template #default="{ row }">
    <span style="font-size: 50px;">{{ row.id }}</span>
  </template>
</el-table-column>

上述代码将el-table-column的高度设置为100px。你可以根据需要自行修改高度值。

el-table-column prop=id label=ID template #default= row span style=font-size 50px; rowid span template el-table-column高度变高

原文地址: https://www.cveoy.top/t/topic/i5YA 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录