mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-29 09:49:16 +08:00
Merge branch '1.x' into dev
This commit is contained in:
commit
19efe4b316
@ -50,8 +50,10 @@ export default sfc({
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getWidth() {
|
getWidth() {
|
||||||
this.progressWidth = this.$el.offsetWidth;
|
this.$nextTick(() => {
|
||||||
this.pivotWidth = this.$refs.pivot ? this.$refs.pivot.offsetWidth : 0;
|
this.progressWidth = this.$el.offsetWidth;
|
||||||
|
this.pivotWidth = this.$refs.pivot ? this.$refs.pivot.offsetWidth : 0;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user