From 5ba0d32004065e7f090a6b331e5adabb435da75f Mon Sep 17 00:00:00 2001 From: aisen Date: Thu, 27 Mar 2025 16:01:13 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=E5=90=B8=E9=99=84?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=9A=84=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tuniao-ui/components/tn-sticky/tn-sticky.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tuniao-ui/components/tn-sticky/tn-sticky.vue b/tuniao-ui/components/tn-sticky/tn-sticky.vue index a3d04e8..a8b3bf9 100644 --- a/tuniao-ui/components/tn-sticky/tn-sticky.vue +++ b/tuniao-ui/components/tn-sticky/tn-sticky.vue @@ -12,7 +12,8 @@ top: stickyTop + 'px', left: left + 'px', width: width === 'auto' ? 'auto' : width + 'px', - zIndex: elZIndex + zIndex: elZIndex, + backgroundColor: backgroundColorStyle }" > @@ -83,9 +84,6 @@ stickyStyle() { let style = {} style.height = this.fixed ? this.height + 'px' : 'auto' - if (this.backgroundColorStyle) { - style.color = this.backgroundColorStyle - } if (this.elZIndex) { style.zIndex = this.elZIndex }