From 37d9434104476ce22b56c19ee6f86a270ee5ee29 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期二, 10 十月 2023 11:41:23 +0800 Subject: [PATCH] style: 列表组件行高调整 --- src/components/makepager/TableCommonView.vue | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/components/makepager/TableCommonView.vue b/src/components/makepager/TableCommonView.vue index 124fc97..e3f0f26 100644 --- a/src/components/makepager/TableCommonView.vue +++ b/src/components/makepager/TableCommonView.vue @@ -216,10 +216,16 @@ .querySelector(".el-table__footer") var cell = current.rows[0].cells for (let i = 0; i < this.showSummary.mergeNumber; i++) { - cell[i].style.display = "none" + cell[i] && cell[i].style && (cell[i].style.display = "none") } - cell[this.showSummary.mergeNumber].classList.remove("is-left") - cell[this.showSummary.mergeNumber].colSpan = this.showSummary.mergeNumber.toString() + if (cell[this.showSummary.mergeNumber]){ + if (cell[this.showSummary.mergeNumber].classList){ + cell[this.showSummary.mergeNumber].classList.remove("is-left") + } + if (cell[this.showSummary.mergeNumber].colSpan){ + cell[this.showSummary.mergeNumber].colSpan = this.showSummary.mergeNumber.toString() + } + } } }) } @@ -383,8 +389,8 @@ margin-left: -10px; margin-right: -11px; li { - height: 57px; - line-height: 57px; + //height: 57px; + //line-height: 57px; .name-view { padding-left: 10px; border-bottom: 1px solid #ebeef5; @@ -394,10 +400,14 @@ } } .no-product { - height: 57px; - line-height: 57px; + //height: 57px; + //line-height: 57px; + } + li:last-child .name-view{ + border-bottom: none; } } + } ::v-deep { .el-table__footer-wrapper { @@ -454,8 +464,8 @@ // line-height: 26px; // background: #06c062; top: 0; - right: 2px; - z-index: 9999; + right: -6px; + z-index: 11; .label { position: absolute; top: 6px; -- Gitblit v1.8.0