File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 4
4
v-model =" tabName" >
5
5
<v-tab v-for =" (tab, index) in tabList"
6
6
:key =" tab.name"
7
- :title =" tab.name"
8
- icon =" ti-user" >
7
+ :title =" tab.name" >
9
8
{{tab.name}}
10
9
</v-tab >
11
10
</vue-tabs >
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export default{
113
113
let titleStyles = { color : this . activeTabColor }
114
114
if ( position === 'center' ) titleStyles . color = this . activeTextColor
115
115
let simpleTitle = ( < span class = { `title title_${ position } ` } style = { active ? titleStyles : { } } >
116
- { position === 'center' && this . renderIcon ( index ) } { title }
116
+ { position === 'center' && this . renderIcon ( index ) } { title }
117
117
</ span > )
118
118
119
119
if ( tab . $slots . title ) return tab . $slots . title
@@ -123,7 +123,7 @@ export default{
123
123
if ( this . tabs . length === 0 ) return
124
124
let tab = this . tabs [ index ]
125
125
let { icon} = tab
126
- let simpleIcon = < i class = { icon } > </ i >
126
+ let simpleIcon = < i class = { icon } > </ i >
127
127
if ( ! tab . $slots . title && icon ) return simpleIcon
128
128
} ,
129
129
renderTabs ( ) {
You can’t perform that action at this time.
0 commit comments