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 }