|
|
@@ -3,7 +3,9 @@
|
|
|
<div :class="{icon:true,selected:selectedIndex === 0}" target="schedule"></div>
|
|
|
<div :class="{icon:true,selected:selectedIndex === 1}" target="taskList"></div>
|
|
|
<div :class="{icon:true,selected:selectedIndex === 2}" target="bugList"></div>
|
|
|
- <div :class="{icon:true,selected:selectedIndex === 3}" target="statistic"></div>
|
|
|
+ <div :class="{icon:true,selected:selectedIndex === 3}" target="statistics"></div>
|
|
|
+ <div :class="{icon:true,selected:selectedIndex === 4}" target="pipeline"></div>
|
|
|
+ <div :class="{icon:true,selected:selectedIndex === 5}" target="apitest"></div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -21,23 +23,27 @@ export default {
|
|
|
switch (value) {
|
|
|
case 'schedule':
|
|
|
this.selectedIndex = 0;
|
|
|
- this.$emit('change', 0);
|
|
|
break;
|
|
|
case 'taskList':
|
|
|
this.selectedIndex = 1;
|
|
|
- this.$emit('change', 1);
|
|
|
break;
|
|
|
case 'bugList':
|
|
|
this.selectedIndex = 2;
|
|
|
- this.$emit('change', 2);
|
|
|
break;
|
|
|
- case 'statistic':
|
|
|
+ case 'statistics':
|
|
|
this.selectedIndex = 3;
|
|
|
- this.$emit('change', 3);
|
|
|
break;
|
|
|
- default:
|
|
|
+ case 'pipeline':
|
|
|
+ this.selectedIndex = 4;
|
|
|
+ break;
|
|
|
+ case 'apitest':
|
|
|
+ this.selectedIndex = 5;
|
|
|
break;
|
|
|
+ default:
|
|
|
+ throw new TypeError('Unknown Tab Value!');
|
|
|
}
|
|
|
+
|
|
|
+ this.$emit('change', value);
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
@@ -99,13 +105,31 @@ export default {
|
|
|
.icon[target=bugList].selected{
|
|
|
background-image: url("../assets/icon/bug-using.svg");
|
|
|
}
|
|
|
-.icon[target=statistic]{
|
|
|
+.icon[target=statistics]{
|
|
|
+ background-image: url("../assets/icon/training.svg");
|
|
|
+}
|
|
|
+.icon[target=statistics]:hover{
|
|
|
+ background-image: url("../assets/icon/training-hover.svg");
|
|
|
+}
|
|
|
+.icon[target=statistics].selected{
|
|
|
+ background-image: url("../assets/icon/training-using.svg");
|
|
|
+}
|
|
|
+.icon[target=pipeline]{
|
|
|
+ background-image: url("../assets/icon/training.svg");
|
|
|
+}
|
|
|
+.icon[target=pipeline]:hover{
|
|
|
+ background-image: url("../assets/icon/training-hover.svg");
|
|
|
+}
|
|
|
+.icon[target=pipeline].selected{
|
|
|
+ background-image: url("../assets/icon/training-using.svg");
|
|
|
+}
|
|
|
+.icon[target=apitest]{
|
|
|
background-image: url("../assets/icon/training.svg");
|
|
|
}
|
|
|
-.icon[target=statistic]:hover{
|
|
|
+.icon[target=apitest]:hover{
|
|
|
background-image: url("../assets/icon/training-hover.svg");
|
|
|
}
|
|
|
-.icon[target=statistic].selected{
|
|
|
+.icon[target=apitest].selected{
|
|
|
background-image: url("../assets/icon/training-using.svg");
|
|
|
}
|
|
|
</style>
|