Skip to content

Commit

Permalink
modified component name from nav-pane to tab-pane
Browse files Browse the repository at this point in the history
  • Loading branch information
awesome-liuxiao committed Apr 25, 2017
1 parent 881dfd0 commit da71dc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/tabs.pug
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mixin tab-pills-list(tabs,active,options)
mixin tab(id,active,options)
- options = options || {};
- var style = options.style || '';
- style = style.replace(/\bnav-pane\b/, '')
- style = style.replace(/\btab-pane\b/, '')
- if(active && style.indexOf("active") == -1) style += (style.length == 0 ? "active" : " active")
.nav-pane(id=`tab${id}`, class=style)
block
.tab-pane(id=`tab${id}`, class=style)
block

0 comments on commit da71dc8

Please sign in to comment.