From f328b4a28d19afa38aeb61b5b030da228741c864 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期五, 17 十二月 2021 14:26:06 +0800
Subject: [PATCH] 按钮修改
---
src/pages/syslog/index/App.vue | 50 ++++++++++++++++++++++++++++++--------------------
1 files changed, 30 insertions(+), 20 deletions(-)
diff --git a/src/pages/syslog/index/App.vue b/src/pages/syslog/index/App.vue
index 2a0533b..09e8fa8 100644
--- a/src/pages/syslog/index/App.vue
+++ b/src/pages/syslog/index/App.vue
@@ -8,7 +8,9 @@
:class="activePage == i ? 'left-card-active' : ''"
@click="openMenu(item, i)"
>
- <span class="icon iconfont" :style="`font-size:${item.size}px`">{{item.icon}}</span>
+ <span class="icon iconfont" :style="`font-size:${item.size}px`">{{
+ item.icon
+ }}</span>
<span class="card-text">{{ item.name }}</span>
</div>
</div>
@@ -35,10 +37,10 @@
data() {
return {
menuArr: [
- { name: "鎿嶄綔鏃ュ織",icon:"\ue706",size:19 },
- { name: "绯荤粺鏃ュ織",icon:"\ue730" ,size:19},
- { name: "杞鏃ュ織",icon:"\ue708" ,size:21},
- { name: "浜嬩欢鎺ㄩ�佹棩蹇�",icon:"\ue707" ,size:13 },
+ { name: "鎿嶄綔鏃ュ織", icon: "\ue7c6", size: 26 },
+ { name: "绯荤粺鏃ュ織", icon: "\ue7c8", size: 26 },
+ { name: "杞鏃ュ織", icon: "\ue7c4", size: 26 },
+ { name: "浜嬩欢鎺ㄩ�佹棩蹇�", icon: "\ue7c9", size: 19 },
],
activePage: 0,
};
@@ -61,39 +63,47 @@
background-color: #fff;
.container-left {
height: 100%;
- width: 210px;
+ width: 244px;
overflow: auto;
box-sizing: border-box;
flex-shrink: 0;
padding: 10px;
- border-right: 5px solid rgba(248, 248, 248, 1);
+ border-top: 1px solid #e1e0e6;
box-sizing: border-box;
+ background-color: #fff;
.left-card {
- height: 55px;
+ height: 56px;
cursor: pointer;
- border-radius: 12px;
- margin-bottom: 10px;
+ border-radius: 8px;
+ margin-bottom: 4px;
display: flex;
align-items: center;
+
.iconfont {
- margin-left: 15px;
- margin-right: 10px;
- font-size: 20px;
+ margin-left: 17px;
+ margin-right: 27px;
+ font-size: 26px;
}
.card-text {
- font-size: 16px;
+ font-weight: bold;
+ font-size: 14px;
}
}
- .left-card-active{
- background-color: rgba(61, 104, 225, 1);
- color: #fff;
- }
- .left-card:hover {
- background-color: rgba(61, 104, 225, 1);
+ .left-card-active {
+ background-color: #4e94ff !important;
color: #fff;
}
+ .left-card:hover {
+ background-color: #f2f2f7;
+ }
}
}
+
+.icon_clear:hover {
+ border-radius: 50%;
+ background-color: #4e94ff !important;
+ color: #fff !important;
+}
</style>
--
Gitblit v1.8.0