/* /deep/ 为深度操作符,可以穿透到子组件 */
/deep/ .el-table {
display: flex;
flex-direction: column;
}
/* order默认值为0,只需将表体order置为1即可移到最后,这样合计行就上移到表体上方 */
/deep/ .el-table__body-wrapper {
order: 1;
}
效果图
/* /deep/ 为深度操作符,可以穿透到子组件 */
/deep/ .el-table {
display: flex;
flex-direction: column;
}
/deep/ .el-table__footer-wrapper {
order: -1;
}