mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
perf: add transition-property (#4389)
This commit is contained in:
@@ -151,7 +151,7 @@ export default createComponent({
|
||||
const { status, distance } = this;
|
||||
const text = this[`${status}Text`] || t(status);
|
||||
const style = {
|
||||
transition: `${this.duration}ms`,
|
||||
transitionDuration: `${this.duration}ms`,
|
||||
transform: this.distance ? `translate3d(0,${this.distance}px, 0)` : ''
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user