|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
},
|
|
|
'closable':{
|
|
|
type:Boolean,
|
|
|
- default:true,
|
|
|
+ default:false,
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
@@ -230,13 +230,14 @@ export default {
|
|
|
},
|
|
|
switchTab:function(index,event,disable){
|
|
|
if(!disable && event.target.className.indexOf('nut-title-nav')!==-1){
|
|
|
+ this.activeIndex=index;
|
|
|
this.initX= parseInt(this.navWidth * index);
|
|
|
let nutTab = event.target.parentNode.parentNode;
|
|
|
let items = this.positionNav=='bottom' || this.positionNav=='right' ?nutTab.children[0].children : nutTab.children[1].children;
|
|
|
for(let i=0;i<items.length;i++){
|
|
|
- if(i===index){
|
|
|
+ if(i==index){
|
|
|
this.removeClass(items[i],'hide');
|
|
|
- this.activeIndex=index;
|
|
|
+
|
|
|
}else{
|
|
|
this.addClass(items[i],'hide');
|
|
|
}
|