表头水平居中
<template><el-table:data="tableData"style="width: 100%" :header-cell-style="{textAlign: 'center'}"
> <el-table-column prop="date" label="日期" width="180"> </el-table-column> </el-table> </template>
表格内容水平居中
<template><el-table:data="tableData"style="width: 100%":cell-style="{ textAlign: 'center' }"> <el-table-column prop="date" label="日期" width="180"> </el-table-column> </el-table> </template>