eslint done

This commit is contained in:
zhuxiang
2017-03-08 12:59:44 +08:00
parent 14110f6c90
commit 43e79ccc65
4 changed files with 105 additions and 116 deletions
+2 -8
View File
@@ -13,20 +13,14 @@
type: String,
required: true
},
paneclass: {
type: String
},
disable: Boolean
},
computed: {
classNames() {
return [
{'is-select': this.$parent.tabs.indexOf(this) == this.$parent.switchActiveTabKey },
this.paneclass
];
return { 'is-select': this.$parent.tabs.indexOf(this) === this.$parent.switchActiveTabKey };
}
},
created () {
created() {
this.$parent.tabs.push(this);
}
};