Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dcec1c10
authored
Jun 28, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
暗黑开关按钮
1 parent
0da5e519
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
9 deletions
vue3-lw-pc/src/layout/components/TopBar/Hamburger.vue
vue3-lw-pc/src/layout/components/TopBar/Logo.vue
vue3-lw-pc/src/layout/components/TopBar/index.vue
vue3-lw-pc/src/layout/index.vue
vue3-lw-pc/src/views/index/index.vue
vue3-lw-pc/src/layout/components/TopBar/Hamburger.vue
View file @
dcec1c1
...
...
@@ -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
;
}
...
...
vue3-lw-pc/src/layout/components/TopBar/Logo.vue
View file @
dcec1c1
...
...
@@ -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
:
1
60
px
;
max-width
:
1
38
px
;
vertical-align
:
middle
;
margin
:
0
12px
0
10px
;
}
...
...
vue3-lw-pc/src/layout/components/TopBar/index.vue
View file @
dcec1c1
...
...
@@ -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
:
2
2
px
;
font-size
:
2
0
px
;
}
//
.navbar
{
...
...
vue3-lw-pc/src/layout/index.vue
View file @
dcec1c1
...
...
@@ -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
>
vue3-lw-pc/src/views/index/index.vue
View file @
dcec1c1
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment