|
|
|
@ -296,7 +296,8 @@ |
|
|
|
|
handler(newVal) { |
|
|
|
|
this._handleListChange(newVal); |
|
|
|
|
}, |
|
|
|
|
immediate: false |
|
|
|
|
immediate: false, |
|
|
|
|
deep:true |
|
|
|
|
}, |
|
|
|
|
bottomDotX(newVal) { |
|
|
|
|
if(newVal >= 0){ |
|
|
|
@ -555,6 +556,8 @@ |
|
|
|
|
// #ifdef MP-BAIDU |
|
|
|
|
delayTime = 100; |
|
|
|
|
// #endif |
|
|
|
|
console.log(this.currentIndex); |
|
|
|
|
this.currentIndex = 0 |
|
|
|
|
setTimeout(async()=>{ |
|
|
|
|
for(let i = 0;i < newVal.length;i++){ |
|
|
|
|
const nodeRes = await this._getNodeClientRect(`#z-tabs-item-${i}`,true); |
|
|
|
@ -571,7 +574,8 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.itemNodeInfos = itemNodeInfos; |
|
|
|
|
this.tabsContainerWidth = tabsContainerWidth; |
|
|
|
|
// this.tabsContainerWidth =tainerWidth; |
|
|
|
|
|
|
|
|
|
this._updateDotPosition(this.currentIndex); |
|
|
|
|
},delayTime) |
|
|
|
|
} |
|
|
|
|