mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
fix bugs and add new features (#25)
* fix bugs and add new features * add unit test * fix tab/tag/datetime-picker bugs
This commit is contained in:
@@ -35,6 +35,11 @@
|
||||
type: {
|
||||
type: String,
|
||||
default: 'line'
|
||||
},
|
||||
// 切换tab的动画时间
|
||||
duration: {
|
||||
type: Number,
|
||||
default: 0.3
|
||||
}
|
||||
},
|
||||
|
||||
@@ -66,7 +71,8 @@
|
||||
|
||||
return {
|
||||
width: offsetWidth,
|
||||
transform: `translate3d(${offsetLeft}, 0px, 0px)`
|
||||
transform: `translate3d(${offsetLeft}, 0px, 0px)`,
|
||||
transitionDuration: `${this.duration}s`
|
||||
};
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user