mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[Improvement] Rebuild test system (#1051)
This commit is contained in:
@@ -128,10 +128,12 @@ export default create({
|
||||
// initialize swipe position
|
||||
initialize() {
|
||||
clearTimeout(this.timer);
|
||||
const rect = this.$el.getBoundingClientRect();
|
||||
if (this.$el) {
|
||||
const rect = this.$el.getBoundingClientRect();
|
||||
this.width = rect.width;
|
||||
this.height = rect.height;
|
||||
}
|
||||
this.swiping = true;
|
||||
this.width = rect.width;
|
||||
this.height = rect.height;
|
||||
this.active = this.initialSwipe;
|
||||
this.offset = this.count > 1 ? -this.size * this.active : 0;
|
||||
this.swipes.forEach(swipe => {
|
||||
|
Reference in New Issue
Block a user