效果:
<div class="center-table">
<el-table
:data="tableDataAll"
max-height="250"
ref="alltable"
border
:cell-style="tableCellStyle_transfer"
@selection-change="handleSelectionChange"
@row-click="openDetails"
style="width: 215px;">
<el-table-column
type="selection"
align="center"
header-align="center"
width="55">
</el-table-column>
<style lang="scss" scoped>
.center-table{
::v-deep .el-table__body-wrapper{
.cell {
padding-left: 12px;
padding-right: 12px;
}
}
}
</style>