Commit 6f9cf710 authored by baiyaaaaa's avatar baiyaaaaa Committed by 杨奕

add tab-bar transform prefix

parent 86884716
...@@ -28,8 +28,11 @@ ...@@ -28,8 +28,11 @@
} }
}); });
const transform = `translateX(${offset}px)`;
style.width = tabWidth + 'px'; style.width = tabWidth + 'px';
style.transform = `translateX(${offset}px)`; style.transform = transform;
style.msTransform = transform;
style.webkitTransform = transform;
return style; return style;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment