mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Improvement] IndexBar: Use transform to optimize (#3408)
This commit is contained in:
parent
d67cec269f
commit
783becf363
@ -25,7 +25,7 @@ export default sfc({
|
||||
anchorStyle() {
|
||||
if (this.sticky) {
|
||||
return {
|
||||
top: `${this.top}px`,
|
||||
transform: `translate3d(0, ${this.top}px, 0)`,
|
||||
color: this.parent.highlightColor,
|
||||
zIndex: `${this.parent.zIndex}`
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user