Skip to content

Commit

Permalink
fix: 修复 tabs 标题颜色变更问题 (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
yenshih authored Apr 26, 2019
1 parent 6e3286c commit f9f8d33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/mip-tabs/mip-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export default class MIPTabs extends CustomElement {
moveTo (index) {
this.tabs[this.currentIndex].setAttribute('is-active', false)
this.tabs[index].setAttribute('is-active', true)
this.labels[this.currentIndex].classList.remove('optionColor')
this.labels[index].classList.add('optionColor')
this.currentIndex = index

const currenLabel = this.labels[index].querySelector('span')
Expand Down

0 comments on commit f9f8d33

Please sign in to comment.