diff --git a/src/views/modules/port/portTransit.vue b/src/views/modules/port/portTransit.vue index a4a240a..22b6028 100644 --- a/src/views/modules/port/portTransit.vue +++ b/src/views/modules/port/portTransit.vue @@ -89,6 +89,7 @@ border style="width: 100%" height="100%" + :cell-style="cellStyle" > @@ -281,6 +283,12 @@ export default { } this.searchTable() }, + cellStyle() { + return { + padding: '8px 0', // 上下内边距,控制单元格高度 + height: '30px' // 固定高度 + } + }, // 查询列表 searchTable() { this.dataListLoading = true @@ -527,10 +535,9 @@ export default { height: 36px !important; line-height: 36px !important; } - -/* 去掉错误居中方式 */ -.centered-input { - width: 100%; +/deep/ .centered-input { + width: 80%; + margin: -5px auto 0 auto; /* 负的上边距向上移动 */ } /* 整个弹窗拉高 */ ::v-deep .upload-dialog .el-dialog {