mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 10:20:19 +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() {
|
anchorStyle() {
|
||||||
if (this.sticky) {
|
if (this.sticky) {
|
||||||
return {
|
return {
|
||||||
top: `${this.top}px`,
|
transform: `translate3d(0, ${this.top}px, 0)`,
|
||||||
color: this.parent.highlightColor,
|
color: this.parent.highlightColor,
|
||||||
zIndex: `${this.parent.zIndex}`
|
zIndex: `${this.parent.zIndex}`
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user