From 780584e989ff83c5bc4e7a3ff89c674b80ec6c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?0o=E5=BC=A0=E4=B8=8D=E6=AD=AAo0?= Date: Mon, 4 Jul 2022 13:13:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=80(component):=20=E4=BC=98=E5=8C=96ca?= =?UTF-8?q?rousel=E9=A6=96=E6=AC=A1=E5=8A=A0=E8=BD=BD=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E5=BA=94=E5=AD=98=E5=9C=A8=E5=8A=A8=E7=94=BB=E6=95=88=E6=9E=9C?= =?UTF-8?q?=EF=BC=8C=E8=80=8C=E6=98=AF=E5=BA=94=E7=AB=8B=E5=8D=B3=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=BB=98=E8=AE=A4=E7=9A=84item?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/carousel/index.less | 1 + package/component/src/component/carouselItem/index.vue | 6 +++--- .../src/document/zh-CN/guide/changelog.md | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package/component/src/component/carousel/index.less b/package/component/src/component/carousel/index.less index 9458492f..08cd16e1 100644 --- a/package/component/src/component/carousel/index.less +++ b/package/component/src/component/carousel/index.less @@ -39,6 +39,7 @@ transition-duration: 0.3s; -webkit-transition-duration: 0.3s; overflow: hidden; + visibility: hidden; } .layui-carousel-updown > * { diff --git a/package/component/src/component/carouselItem/index.vue b/package/component/src/component/carouselItem/index.vue index 8e6e685e..b8f66e20 100644 --- a/package/component/src/component/carouselItem/index.vue +++ b/package/component/src/component/carouselItem/index.vue @@ -45,15 +45,15 @@ const getStyle = computed(() => { if (activeIndex === currentIndex) { if (animation === "updown") { return { - transform: "translateY(0)", + transform: "translateY(0)", visibility: 'inherit' }; } else if (animation.includes("fade")) { return { - opacity: 1, + opacity: 1,visibility: 'inherit' }; } else { return { - transform: "translateX(0)", + transform: "translateX(0)",visibility: 'inherit' }; } } diff --git a/package/document-component/src/document/zh-CN/guide/changelog.md b/package/document-component/src/document/zh-CN/guide/changelog.md index 53bf43df..5db11f52 100644 --- a/package/document-component/src/document/zh-CN/guide/changelog.md +++ b/package/document-component/src/document/zh-CN/guide/changelog.md @@ -17,6 +17,7 @@

1.2.7 2022-07-04