Commit dcec1c10 by xinla

暗黑开关按钮

1 parent 0da5e519
......@@ -47,7 +47,7 @@ export default {
left: 0;
width: 18px;
height: 2px;
background: var(--bg-black-6);
background: var(--bg-black-4);
border-radius: 8px;
transition: all 0.3s;
}
......
......@@ -4,7 +4,8 @@
<router-link key="collapse" class="sidebar-logo-link" to="/">
<img :src="$store.app.isDark ? lwConfig.LOGO_TEXT_LIGHT : lwConfig.LOGO_TEXT_DARK" class="sidebar-logo" />
</router-link>
<hamburger />
<Hamburger />
</div>
</transition>
</template>
......@@ -47,7 +48,7 @@ export default {
& .sidebar-logo-link {
& .sidebar-logo {
max-height: 44px;
max-width: 160px;
max-width: 138px;
vertical-align: middle;
margin: 0 12px 0 10px;
}
......
......@@ -88,6 +88,16 @@
<el-dropdown-item @click="logout">
<span>退出登录</span>
</el-dropdown-item>
<el-dropdown-item @click="$store.app.isDark = !$store.app.isDark">
<template v-if="$store.app.isDark">
<el-icon-Moon class="el-icon-Moon right-icon mr5" />
深色
</template>
<template v-else>
<el-icon-Sunny class="el-icon-Sunny right-icon mr5" />
浅色
</template>
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
......@@ -196,7 +206,7 @@ export default {
}
}
.right-icon {
font-size: 22px;
font-size: 20px;
}
//
.navbar {
......
......@@ -105,16 +105,19 @@ export default {
.main-wrap {
height: calc(100vh - var(--top-nav-heght));
background: var(--bg-black-11);
background: #edf2f9;
.main {
height: 100%;
// padding: 10px;
display: flex;
align-items: stretch;
}
}
}
.breadcrumb-wrap {
}
.dark {
.main-wrap {
background: var(--bg-black-11);
}
}
</style>
......@@ -541,12 +541,12 @@ export default {
margin-right: 8px;
}
.customer {
background: var(--color-light-10);
background: #ecf5ff;
color: #1869ff;
border-color: #1869ff;
}
.staff {
background: var(--color-light-9);
background: var(--color-light-10);
color: var(--color);
border-color: var(--color);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!