diff --git a/src/components/DataTable/index.vue b/src/components/DataTable/index.vue index 025d2223a..63f877b2d 100644 --- a/src/components/DataTable/index.vue +++ b/src/components/DataTable/index.vue @@ -70,7 +70,7 @@ export default { .el-table /deep/ .el-table__row > td { line-height: 1.5; - padding: 8px; + padding: 8px 0; } .el-table /deep/ .el-table__row > td> div > span { text-overflow: ellipsis; @@ -79,7 +79,7 @@ export default { white-space: nowrap; } .el-table /deep/ .el-table__header > thead > tr >th { - padding: 8px; + padding: 8px 0; background-color: #F5F5F6; font-size: 13px; line-height: 1.5; diff --git a/src/views/users/UserList.vue b/src/views/users/UserList.vue index f08b6f49a..64f2d46c1 100644 --- a/src/views/users/UserList.vue +++ b/src/views/users/UserList.vue @@ -52,7 +52,10 @@ export default { } ], columns: [ - { type: 'selection' }, + { + type: 'selection', + align: 'center' + }, // Bug // 应该让我插入Slot,使这个用户名可点击 {