mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-04 05:24:43 +00:00
update let to const on calculateIndicatorPos method
This commit is contained in:
parent
54b3b60a06
commit
499a6e8dfc
1 changed files with 4 additions and 4 deletions
|
|
@ -140,10 +140,10 @@
|
|||
},
|
||||
calculateIndicatorPos() {
|
||||
if (this.$refs.tabHeader && this.$refs.tabHeader[this.activeTabNumber]) {
|
||||
let tabsWidth = this.$el.offsetWidth;
|
||||
let activeTab = this.$refs.tabHeader[this.activeTabNumber];
|
||||
let left = activeTab.offsetLeft - this.$refs.tabsContainer.scrollLeft;
|
||||
let right = tabsWidth - left - activeTab.offsetWidth;
|
||||
const tabsWidth = this.$el.offsetWidth;
|
||||
const activeTab = this.$refs.tabHeader[this.activeTabNumber];
|
||||
const left = activeTab.offsetLeft - this.$refs.tabsContainer.scrollLeft;
|
||||
const right = tabsWidth - left - activeTab.offsetWidth;
|
||||
|
||||
this.$refs.indicator.style.left = left + 'px';
|
||||
this.$refs.indicator.style.right = right + 'px';
|
||||
|
|
|
|||
Loading…
Reference in a new issue