|
@@ -1,12 +1,24 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="side-bar-container" @click="handleClick">
|
|
|
|
|
- <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="statistics"></div>
|
|
|
|
|
- <div :class="{icon:true,selected:selectedIndex === 4}" target="pipeline"></div>
|
|
|
|
|
- <div :class="{icon:true,selected:selectedIndex === 5}" target="apitest"></div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <el-menu default-active="schedule" class="side-bar" collapse="true" router="true">
|
|
|
|
|
+ <el-menu-item index="schedule">
|
|
|
|
|
+ <i class="icon" target="schedule"></i>
|
|
|
|
|
+ </el-menu-item>
|
|
|
|
|
+ <el-menu-item index="taskList">
|
|
|
|
|
+ <i class="icon" target="taskList"></i>
|
|
|
|
|
+ </el-menu-item>
|
|
|
|
|
+ <el-menu-item index="bugList">
|
|
|
|
|
+ <i class="icon" target="bugList"></i>
|
|
|
|
|
+ </el-menu-item>
|
|
|
|
|
+ <el-menu-item index="statistics">
|
|
|
|
|
+ <i class="icon" target="statistics"></i>
|
|
|
|
|
+ </el-menu-item>
|
|
|
|
|
+ <el-menu-item index="pipeline">
|
|
|
|
|
+ <i class="icon" target="pipeline"></i>
|
|
|
|
|
+ </el-menu-item>
|
|
|
|
|
+ <el-menu-item index="apitest">
|
|
|
|
|
+ <i class="icon" target="apitest"></i>
|
|
|
|
|
+ </el-menu-item>
|
|
|
|
|
+ </el-menu>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -49,88 +61,78 @@ export default {
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
-<style scoped>
|
|
|
|
|
-.side-bar-container{
|
|
|
|
|
- width: 42px;
|
|
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
|
+.side-bar {
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
- position: fixed;
|
|
|
|
|
- top:58px;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- background-color: #ecf0f1;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- flex-direction: column;
|
|
|
|
|
- justify-content: start;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- padding-top: 20px;
|
|
|
|
|
- z-index: 100;
|
|
|
|
|
}
|
|
}
|
|
|
-.icon{
|
|
|
|
|
|
|
+.icon {
|
|
|
width: 28px;
|
|
width: 28px;
|
|
|
height: 28px;
|
|
height: 28px;
|
|
|
|
|
+ float: right;
|
|
|
background-position: center;
|
|
background-position: center;
|
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
|
- margin-top:16px;
|
|
|
|
|
|
|
+ margin-top: 14px;
|
|
|
transition: all .2s linear;
|
|
transition: all .2s linear;
|
|
|
-}
|
|
|
|
|
-.icon:hover{
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- transition-duration:0.2s;
|
|
|
|
|
- transform:scale(1.1);
|
|
|
|
|
- transition-timing-function:ease-in-out;
|
|
|
|
|
|
|
+ .el-menu-item:hover & {
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ transition-duration:0.2s;
|
|
|
|
|
+ transform:scale(1.1);
|
|
|
|
|
+ transition-timing-function:ease-in-out;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.icon[target=schedule]{
|
|
.icon[target=schedule]{
|
|
|
background-image: url("../assets/icon/navigation.svg");
|
|
background-image: url("../assets/icon/navigation.svg");
|
|
|
-}
|
|
|
|
|
-.icon[target=schedule]:hover{
|
|
|
|
|
- background-image: url("../assets/icon/navigation-hover.svg");
|
|
|
|
|
-}
|
|
|
|
|
-.icon[target=schedule].selected{
|
|
|
|
|
- background-image: url("../assets/icon/navigation-using.svg");
|
|
|
|
|
|
|
+ .el-menu-item:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/navigation-hover.svg");
|
|
|
|
|
+ }
|
|
|
|
|
+ .el-menu-item.is-active:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/navigation-using.svg");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.icon[target=taskList]{
|
|
.icon[target=taskList]{
|
|
|
background-image: url("../assets/icon/task.svg");
|
|
background-image: url("../assets/icon/task.svg");
|
|
|
-}
|
|
|
|
|
-.icon[target=taskList]:hover{
|
|
|
|
|
- background-image: url("../assets/icon/task-hover.svg");
|
|
|
|
|
-}
|
|
|
|
|
-.icon[target=taskList].selected{
|
|
|
|
|
- background-image: url("../assets/icon/task-using.svg");
|
|
|
|
|
|
|
+ .el-menu-item:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/task-hover.svg");
|
|
|
|
|
+ }
|
|
|
|
|
+ .el-menu-item.is-active:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/task-using.svg");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.icon[target=bugList]{
|
|
.icon[target=bugList]{
|
|
|
background-image: url("../assets/icon/bug.svg");
|
|
background-image: url("../assets/icon/bug.svg");
|
|
|
-}
|
|
|
|
|
-.icon[target=bugList]:hover{
|
|
|
|
|
- background-image: url("../assets/icon/bug-hover.svg");
|
|
|
|
|
-}
|
|
|
|
|
-.icon[target=bugList].selected{
|
|
|
|
|
- background-image: url("../assets/icon/bug-using.svg");
|
|
|
|
|
|
|
+ .el-menu-item:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/bug-hover.svg");
|
|
|
|
|
+ }
|
|
|
|
|
+ .el-menu-item.is-active:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/bug-using.svg");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.icon[target=statistics]{
|
|
.icon[target=statistics]{
|
|
|
background-image: url("../assets/icon/training.svg");
|
|
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");
|
|
|
|
|
|
|
+ .el-menu-item:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/training-hover.svg");
|
|
|
|
|
+ }
|
|
|
|
|
+ .el-menu-item.is-active:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/training-using.svg");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.icon[target=pipeline]{
|
|
.icon[target=pipeline]{
|
|
|
background-image: url("../assets/icon/training.svg");
|
|
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");
|
|
|
|
|
|
|
+ .el-menu-item:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/training-hover.svg");
|
|
|
|
|
+ }
|
|
|
|
|
+ .el-menu-item.is-active:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/training-using.svg");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.icon[target=apitest]{
|
|
.icon[target=apitest]{
|
|
|
- background-image: url("../assets/icon/training.svg");
|
|
|
|
|
-}
|
|
|
|
|
-.icon[target=apitest]:hover{
|
|
|
|
|
- background-image: url("../assets/icon/training-hover.svg");
|
|
|
|
|
-}
|
|
|
|
|
-.icon[target=apitest].selected{
|
|
|
|
|
- background-image: url("../assets/icon/training-using.svg");
|
|
|
|
|
|
|
+ background-image: url("../assets/icon/training.svg");
|
|
|
|
|
+ .el-menu-item:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/training-hover.svg");
|
|
|
|
|
+ }
|
|
|
|
|
+ .el-menu-item.is-active:hover & {
|
|
|
|
|
+ background-image: url("../assets/icon/training-using.svg");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|