From d2310945e40d239484a3d7ca457e3c06ec10ae2d Mon Sep 17 00:00:00 2001 From: Jo <479214531@qq.com> Date: Thu, 11 Nov 2021 06:46:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E7=B1=BB=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/data/list/index.vue | 44 ++++++++++++++++++++--------------- src/pages/stat/list/index.vue | 4 ++-- 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/src/pages/data/list/index.vue b/src/pages/data/list/index.vue index c066f79..d0e6b69 100644 --- a/src/pages/data/list/index.vue +++ b/src/pages/data/list/index.vue @@ -8,7 +8,7 @@ - {{ subItem.categoryName }} + {{ subItem.categoryName }} @@ -82,7 +82,7 @@ @@ -341,6 +341,7 @@ export default { }, // 分类展开及点击回调 selectType(index, indexPath) { + console.log(index, indexPath) let introduce = '' let dataSource = '' this.keyword = '' @@ -528,7 +529,7 @@ export default { /deep/.left{ margin-right: 20px; .menu{ - width: 200px; + width: 240px; overflow: hidden; &>.el-menu-item,.el-submenu__title{ span{ @@ -554,9 +555,14 @@ export default { } } } - .el-menu-item.is-active{ - color: #fff; - background-color: #0070FF; + .el-menu-item{ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + .is-active{ + color: #fff; + background-color: #0070FF; + } } .level-6 { padding-right: 0; diff --git a/src/pages/stat/list/index.vue b/src/pages/stat/list/index.vue index 518e0ef..50c8b62 100644 --- a/src/pages/stat/list/index.vue +++ b/src/pages/stat/list/index.vue @@ -373,7 +373,7 @@ export default { .left{ margin-right: 20px; .products{ - width: 170px; + width: 200px; padding: 12px 6px; text-align: center; border-radius: 8px; @@ -429,7 +429,7 @@ export default { } } .right{ - max-width: calc(100% - 220px); + max-width: calc(100% - 250px); } .page{ margin-bottom: 20px;