From d0960da1d8454997c4096331aa42edbe73511dd7 Mon Sep 17 00:00:00 2001 From: jing <1683105490@qq.com> Date: Wed, 9 Sep 2026 09:53:58 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E5=95=86=E5=93=81=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E6=A8=A1=E6=9D=BF1=E7=9A=84=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=92=8C=E5=8F=B3=E4=BE=A7=E5=95=86=E5=93=81?= =?UTF-8?q?=E4=B8=8A=E9=9D=A2=E5=90=8D=E7=A7=B0=E6=A0=8F=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components-diy/diy-category.vue | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/components-diy/diy-category.vue b/components-diy/diy-category.vue index 9c26133..23077dd 100644 --- a/components-diy/diy-category.vue +++ b/components-diy/diy-category.vue @@ -122,7 +122,7 @@ { select: select == index }, { 'border-bottom': value.template == 4 && select + 1 === index }, { 'border-top': value.template == 4 && select - 1 === index }, - { 'first-category-item': index == 0 && value.template == 99 } + { 'first-category-item': index == 0 && (value.template == 99 || value.template == 1) } ]" @tap.stop="switchOneCategory(index)"> {{ item.category_name }} @@ -1613,10 +1613,31 @@ export default { padding: 0; } + // 穿透到子组件 diy-category-item: 模板1标题行定高, 与左侧第一个一级分类等高对齐 ::v-deep .category-title-with-lines { + height: 100rpx; + box-sizing: border-box; padding: 30rpx 0 20rpx; } + // 模板1: 左侧第一个一级分类定高, 与右侧标题行(如"离型纸 ----")垂直对齐 + .tree-wrap .category-item.first-category-item { + height: 100rpx; + box-sizing: border-box; + display: flex; + align-items: center; + justify-content: center; + white-space: nowrap; + overflow: hidden; + + view { + width: 100%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } + // 穿透修复: 图片不需要灰色背景框,与目标图保持一致 ::v-deep .img-box { background: transparent !important;