From 335da9ab76f8697aad851251f6ef45ba66779296 Mon Sep 17 00:00:00 2001 From: ShineKOT <1917095344@qq.com> Date: Thu, 11 Sep 2025 12:01:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/control/list/list.scss | 13 +++++-------- src/control/list/list.tsx | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/control/list/list.scss b/src/control/list/list.scss index f4452663..90a2cc2f 100644 --- a/src/control/list/list.scss +++ b/src/control/list/list.scss @@ -146,14 +146,11 @@ $control-list-group-style2: ( @include b(control-list-scroll) { height: 100%; overflow: auto; -} - -@include b(control-list-reverse-scroll) { - height: 100%; - overflow: auto; - .#{bem(control-list, layout-flex)} { - display: flex; - flex-direction: column-reverse + @include when(reverse-scroll) { + .#{bem(control-list, layout-flex)} { + display: flex; + flex-direction: column-reverse + } } } diff --git a/src/control/list/list.tsx b/src/control/list/list.tsx index fe78f198..285da684 100644 --- a/src/control/list/list.tsx +++ b/src/control/list/list.tsx @@ -573,7 +573,7 @@ export const ListControl = defineComponent({ class={[ ns.b('scroll'), ns.b('content'), - ns.b('reverse-scroll', reverseScroll), + ns.is('reverse-scroll', reverseScroll), ns.is( 'show-underLine', c.model.controlStyle !== 'EXTVIEW1' && -- Gitee