-
-
-
-
-
资产总览
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
安全巡检
+
{{ item.text }}
@@ -42,7 +28,14 @@ export default {
SvgIcon
},
data() {
- return {}
+ return {
+ activeText: "资产总览",
+ items: [
+ { text: "资产总览", icon: "house" },
+ { text: "租赁数据", icon: "qiandai" },
+ { text: "安全巡检", icon: "weixiu" }
+ ]
+ }
},
methods: {},
computed: {}
@@ -53,27 +46,47 @@ export default {
.btns {
position: absolute;
top: 20%;
- left: 0;
+ left: 8px;
.item {
+ transition: all .2s;
cursor: pointer;
- color: #7bc8b9;
+ color: #8ecec2;
display: flex;
align-items: center;
&__icon {
- color: #7bc8b9;
+ color: currentColor;
border-radius: 100%;
- border: 2px solid #7bc8b9;
- width: 60px;
- height: 60px;
- padding: 6px;
+ border: 2px dashed currentColor;
+ width: 50px;
+ height: 50px;
+ padding: 10px;
+ position: relative;
+
+ & > svg {
+ width: 100%;
+ height: 100%;
+ }
+
+ &::after {
+ content: "";
+ width: 60px;
+ height: 60px;
+ border-radius: 100%;
+ border: 2px solid currentColor;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ }
}
&__text {
height: 60px;
line-height: 60px;
- width: 160px;
- color: #7bc8b9;
+ width: 180px;
+ letter-spacing: 1px;
+ color: currentColor;
position: relative;
& > svg {
width: 100%;
@@ -82,7 +95,7 @@ export default {
position: absolute;
top: 0;
right: 0;
- left: -4%;
+ left: -2%;
bottom: 0;
}
& > p {
@@ -94,6 +107,15 @@ export default {
z-index: 2;
}
}
+
+ &-active {
+ color: #3eb29c;
+
+ & > .item__text svg {
+ transition: all .2s;
+ fill: url(#active-item-color);
+ }
+ }
}
.item + .item {
margin-top: 40px;
diff --git a/src/views/dataShow/header.vue b/src/views/dataShow/header.vue
index e2b4bd0..ce98968 100644
--- a/src/views/dataShow/header.vue
+++ b/src/views/dataShow/header.vue
@@ -7,7 +7,7 @@