From c39d9543c74f03ecdf3ecf6513c51819656eb046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E6=96=B0=E6=B5=B7?= <1047739781@qq.com> Date: Tue, 17 Sep 2024 23:35:16 +0800 Subject: [PATCH 1/3] =?UTF-8?q?perf(collapse-panel):=20=E4=B8=8D=E8=AE=A1?= =?UTF-8?q?=E7=AE=97dom=E8=8A=82=E7=82=B9=E9=AB=98=E5=BA=A6=E6=9D=A5?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=8A=A8=E7=94=BB=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style/mobile/components/collapse/v2/_index.less | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/style/mobile/components/collapse/v2/_index.less b/style/mobile/components/collapse/v2/_index.less index 10c3694dc8..153c546a0c 100644 --- a/style/mobile/components/collapse/v2/_index.less +++ b/style/mobile/components/collapse/v2/_index.less @@ -23,7 +23,6 @@ background-color: @collapse-panel-bg-color; overflow: hidden; - transition: height ease 240ms; &--top { display: flex; @@ -76,6 +75,15 @@ } } + &--content{ + display: grid; + transition: grid-template-rows ease 240ms; + } + + &__body{ + overflow: hidden; + } + &__content { color: @collapse-content-text-color; font-size: @collapse-content-font-size; From cf4c4ba068618cbb411c707c927c7772f8c51d0c Mon Sep 17 00:00:00 2001 From: hxh <1047739781> Date: Wed, 18 Sep 2024 09:23:08 +0800 Subject: [PATCH 2/3] pefr(collapse-panel): lint --- style/mobile/components/collapse/v2/_index.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style/mobile/components/collapse/v2/_index.less b/style/mobile/components/collapse/v2/_index.less index 153c546a0c..155a9a9918 100644 --- a/style/mobile/components/collapse/v2/_index.less +++ b/style/mobile/components/collapse/v2/_index.less @@ -75,12 +75,12 @@ } } - &--content{ + &--content { display: grid; transition: grid-template-rows ease 240ms; } - &__body{ + &__body { overflow: hidden; } From 7ade39f75a813dd8b8237dd4e25e40091aaa4bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E6=96=B0=E6=B5=B7?= <1047739781@qq.com> Date: Thu, 24 Oct 2024 21:37:14 +0800 Subject: [PATCH 3/3] =?UTF-8?q?pefr(collapse-panel):=20=E4=BF=AE=E6=94=B9c?= =?UTF-8?q?lass=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style/mobile/components/collapse/v2/_index.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style/mobile/components/collapse/v2/_index.less b/style/mobile/components/collapse/v2/_index.less index 153c546a0c..f2e5c2b5c3 100644 --- a/style/mobile/components/collapse/v2/_index.less +++ b/style/mobile/components/collapse/v2/_index.less @@ -75,12 +75,12 @@ } } - &--content{ + &__body{ display: grid; transition: grid-template-rows ease 240ms; } - &__body{ + &__inner{ overflow: hidden; }