mirror of
https://gitee.com/TSpecific/tuniao-ui.git
synced 2026-03-13 19:04:00 +08:00
[fix] 修复吸附组件的背景颜色bug
This commit is contained in:
@@ -12,7 +12,8 @@
|
|||||||
top: stickyTop + 'px',
|
top: stickyTop + 'px',
|
||||||
left: left + 'px',
|
left: left + 'px',
|
||||||
width: width === 'auto' ? 'auto' : width + 'px',
|
width: width === 'auto' ? 'auto' : width + 'px',
|
||||||
zIndex: elZIndex
|
zIndex: elZIndex,
|
||||||
|
backgroundColor: backgroundColorStyle
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
@@ -83,9 +84,6 @@
|
|||||||
stickyStyle() {
|
stickyStyle() {
|
||||||
let style = {}
|
let style = {}
|
||||||
style.height = this.fixed ? this.height + 'px' : 'auto'
|
style.height = this.fixed ? this.height + 'px' : 'auto'
|
||||||
if (this.backgroundColorStyle) {
|
|
||||||
style.color = this.backgroundColorStyle
|
|
||||||
}
|
|
||||||
if (this.elZIndex) {
|
if (this.elZIndex) {
|
||||||
style.zIndex = this.elZIndex
|
style.zIndex = this.elZIndex
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user