<el-table
:data="data"
style="width: 100%"
:row-key="(r, i) => r.id"
@selection-change="handleSelectionChange"
@sort-change="handelTableChange"
selection
stripe
border
:max-height="isRoll"
v-loading="loading"
ref="list"
v-if="showFlag"
:cell-style="{ textAlign: 'center' }" //表格内容居中
>
//表头居中
/deep/ .el-table th.el-table__cell > .cell {
text-align: center;
justify-content: center;
}