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 e032644e
authored
Feb 17, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
03fe0cd9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
44 deletions
linkwe-pc/src/layout/components/AppMain.vue
linkwe-pc/src/layout/index.vue
linkwe-pc/src/styles/common.scss
linkwe-pc/src/styles/element-ui.scss
linkwe-pc/src/styles/index.scss
linkwe-pc/src/styles/variables.scss
linkwe-pc/src/views/index/index.vue
linkwe-pc/src/layout/components/AppMain.vue
View file @
e032644
<
template
>
<
template
>
<!--
<el-scrollbar
class=
"page-scrollbar"
>
-->
<div
class=
"app-main"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<router-view
class=
"page app-main
"
:key=
"key"
/>
<router-view
class=
"page
"
:key=
"key"
/>
<!--
<keep-alive
:include=
"cachedViews"
>
<!--
<keep-alive
:include=
"cachedViews"
>
</keep-alive>
-->
</keep-alive>
-->
</transition>
</transition>
</div>
<!--
</el-scrollbar>
-->
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'AppMain'
,
name
:
'AppMain'
,
computed
:
{
computed
:
{
cachedViews
()
{
cachedViews
()
{
return
this
.
$store
.
state
.
tagsView
.
cachedViews
return
this
.
$store
.
state
.
tagsView
.
cachedViews
},
},
key
()
{
key
()
{
return
this
.
$route
.
path
return
this
.
$route
.
path
}
},
}
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.app-main
{
//
::v-deep
.el-scrollbar__wrap
{
/* 50= navbar 50 */
//
margin
:
20px
0
;
//
min-height
:
calc
(
100vh
-
50px
);
//
padding
:
0
20px
;
width
:
100%
;
//
}
.app-main
{
position
:
relative
;
position
:
relative
;
overflow-y
:
auto
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
margin
:
20px
0
0
;
//
padding-top
:
15px
;
padding
:
0
20px
;
//
background-color
:
#fff
;
&::-webkit-scrollbar-thumb
{
visibility
:
hidden
;
}
&
:hover::-webkit-scrollbar-thumb
{
visibility
:
visible
;
}
}
}
.fixed-header
+
.app-main
{
.page
{
background
:
#fff
;
border-radius
:
var
(
--border-radius-big
);
overflow
:
hidden
;
}
.fixed-header
+
.app-main
{
padding-top
:
50px
;
padding-top
:
50px
;
}
}
.hasTagsView
{
.hasTagsView
{
.app-main
{
.app-main
{
/* 84 = navbar + tags-view = 50 + 34 */
/* 84 = navbar + tags-view = 50 + 34 */
height
:
calc
(
100vh
-
84px
);
height
:
calc
(
100vh
-
84px
);
...
@@ -45,14 +61,14 @@
...
@@ -45,14 +61,14 @@
.fixed-header
+
.app-main
{
.fixed-header
+
.app-main
{
padding-top
:
84px
;
padding-top
:
84px
;
}
}
}
}
</
style
>
</
style
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
//
fix
css
style
bug
in
open
el-dialog
//
fix
css
style
bug
in
open
el-dialog
.el-popup-parent--hidden
{
.el-popup-parent--hidden
{
.fixed-header
{
.fixed-header
{
padding-right
:
15px
;
padding-right
:
15px
;
}
}
}
}
</
style
>
</
style
>
linkwe-pc/src/layout/index.vue
View file @
e032644
...
@@ -10,12 +10,10 @@
...
@@ -10,12 +10,10 @@
<div
class=
"breadcrumb-wrap"
v-show=
"visiableSidebarRouters"
>
<div
class=
"breadcrumb-wrap"
v-show=
"visiableSidebarRouters"
>
<breadcrumb
/>
<breadcrumb
/>
</div>
</div>
<div
class=
"page-content"
>
<app-main
/>
<app-main
/>
<RightPanel
v-if=
"showSettings"
>
<!--
<RightPanel
v-if=
"showSettings"
>
<settings
/>
<settings
/>
</RightPanel>
</RightPanel>
-->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -96,9 +94,6 @@ export default {
...
@@ -96,9 +94,6 @@ export default {
background
:
#fff
;
background
:
#fff
;
border-top
:
1px
solid
#eee
;
border-top
:
1px
solid
#eee
;
}
}
.page-content
{
margin
:
20px
20px
0
;
}
&
.mobile.openSidebar
{
&
.mobile.openSidebar
{
position
:
fixed
;
position
:
fixed
;
...
...
linkwe-pc/src/styles/common.scss
View file @
e032644
...
@@ -40,8 +40,7 @@ body {
...
@@ -40,8 +40,7 @@ body {
-moz-osx-font-smoothing
:
grayscale
;
-moz-osx-font-smoothing
:
grayscale
;
-webkit-font-smoothing
:
antialiased
;
-webkit-font-smoothing
:
antialiased
;
text-rendering
:
optimizeLegibility
;
text-rendering
:
optimizeLegibility
;
font-family
:
Helvetica
Neue
,
Helvetica
,
PingFang
SC
,
Hiragino
Sans
GB
,
Microsoft
YaHei
,
Arial
,
font-family
:
Helvetica
Neue
,
Helvetica
,
PingFang
SC
,
Hiragino
Sans
GB
,
Microsoft
YaHei
,
Arial
,
sans-serif
;
sans-serif
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
...
@@ -119,6 +118,10 @@ li {
...
@@ -119,6 +118,10 @@ li {
background
:
white
;
background
:
white
;
}
}
.bgnone
{
background
:
none
!
important
;
}
.blod
{
.blod
{
font-weight
:
bold
;
font-weight
:
bold
;
}
}
...
@@ -295,14 +298,16 @@ li {
...
@@ -295,14 +298,16 @@ li {
/* Dark mode */
/* Dark mode */
@media
(
prefers-color-scheme
:
dark
)
{
@media
(
prefers-color-scheme
:
dark
)
{
body
,
img
,
video
{
body
,
img
,
video
{
filter
:
invert
(
1
)
hue-rotate
(
180deg
);
filter
:
invert
(
1
)
hue-rotate
(
180deg
);
}
}
// 不使用暗黑模式
// 不使用暗黑模式
.no-dark
{
.no-dark
{
position
:
relative
;
position
:
relative
;
&
:
:
before
{
&
:
:
before
{
content
:
" "
;
content
:
' '
;
position
:
absolute
;
position
:
absolute
;
display
:
block
;
display
:
block
;
height
:
100%
;
height
:
100%
;
...
...
linkwe-pc/src/styles/element-ui.scss
View file @
e032644
...
@@ -379,6 +379,7 @@
...
@@ -379,6 +379,7 @@
background
:
var
(
--
color
);
background
:
var
(
--
color
);
}
}
// 表格
.el-table
{
.el-table
{
background-color
:
transparent
;
background-color
:
transparent
;
&
:
:
before
{
&
:
:
before
{
...
@@ -389,7 +390,7 @@
...
@@ -389,7 +390,7 @@
.el-table__header-wrapper
tr
{
.el-table__header-wrapper
tr
{
background-color
:
#f5f7fa
;
background-color
:
#f5f7fa
;
height
:
40px
;
height
:
40px
;
color
:
#1d2129
;
color
:
var
(
--
font-black
)
;
border-radius
:
var
(
--
border-radius-small
);
border-radius
:
var
(
--
border-radius-small
);
}
}
.el-table__body-wrapper
,
.el-table__body-wrapper
,
...
...
linkwe-pc/src/styles/index.scss
View file @
e032644
...
@@ -383,7 +383,7 @@ aside {
...
@@ -383,7 +383,7 @@ aside {
height
:
60px
;
height
:
60px
;
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#333
;
color
:
var
(
--
font-black
)
;
padding
:
0
20px
;
padding
:
0
20px
;
background
:
#fff
;
background
:
#fff
;
border-radius
:
var
(
--
border-radius-big
)
var
(
--
border-radius-big
)
0
0
;
border-radius
:
var
(
--
border-radius-big
)
var
(
--
border-radius-big
)
0
0
;
...
@@ -398,22 +398,28 @@ aside {
...
@@ -398,22 +398,28 @@ aside {
margin-top
:
0
;
margin-top
:
0
;
}
}
}
}
// 二级
分类
标题
// 二级
/卡片
标题
&
title-sub
{
&
title-sub
{
@extend
.g-title
;
@extend
.g-title
;
font-size
:
16px
;
font-size
:
16px
;
margin-top
:
var
(
--
card-margin
);
&
:first-child
{
margin-top
:
0
;
}
&
+
.g-card
{
&
+
.g-card
{
border-radius
:
0
0
var
(
--
border-radius-big
)
var
(
--
border-radius-big
);
border-radius
:
0
0
var
(
--
border-radius-big
)
var
(
--
border-radius-big
);
margin-top
:
0
;
margin-top
:
0
;
padding-top
:
0
;
}
}
}
}
// 卡片样式
// 卡片样式
&
card
{
&
card
{
margin-top
:
16px
;
margin-top
:
var
(
--
card-margin
)
;
border-radius
:
var
(
--
border-radius-big
);
border-radius
:
var
(
--
border-radius-big
);
background
:
#fff
;
background
:
#fff
;
overflow
:
auto
;
overflow
:
auto
;
padding
:
20px
;
&
:first-child
{
&
:first-child
{
margin-top
:
0
;
margin-top
:
0
;
}
}
...
...
linkwe-pc/src/styles/variables.scss
View file @
e032644
// css var
// css var
:root
{
html
{
--color
:
#07c160
;
--color
:
#07c160
;
// 主题色
--color-lighter
:
#90de45
;
--color-lighter
:
#90de45
;
// 浅主题色
--color-success
:
#07c160
;
--color-success
:
#07c160
;
--color-warning
:
#faad14
;
--color-warning
:
#faad14
;
--color-danger
:
#eb5e12
;
--color-danger
:
#eb5e12
;
--border-radius
:
8px
;
--border-radius
:
8px
;
// 圆角
--border-radius-small
:
4px
;
--border-radius-small
:
4px
;
// 小圆角
--border-radius-big
:
16px
;
--border-radius-big
:
16px
;
// 大圆角
--top-nav-heght
:
64px
;
--card-margin
:
16px
;
// 卡片间距
--top-nav-heght
:
64px
;
// 顶部导航条高度
--font-black
:
#1d2129
;
// 通用字体黑色
}
}
// base color
// base color
$light-blue
:
#90de45
;
$light-blue
:
#90de45
;
...
...
linkwe-pc/src/views/index/index.vue
View file @
e032644
This diff is collapsed.
Click to expand it.
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