[Improvement] IndexBar: Use transform to optimize (#3408)

This commit is contained in:
dongj0316 2019-05-30 17:09:02 +08:00 committed by neverland
parent d67cec269f
commit 783becf363

View File

@ -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}`
};