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 03fe0cd9
authored
Feb 17, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
菜单缩进和表格样式
1 parent
879d233c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
54 deletions
linkwe-pc/src/layout/components/Sidebar/SidebarItem.vue
linkwe-pc/src/layout/components/Sidebar/index.vue
linkwe-pc/src/styles/element-ui.scss
linkwe-pc/src/layout/components/Sidebar/SidebarItem.vue
View file @
03fe0cd
...
...
@@ -2,16 +2,19 @@
<div
v-if=
"!item.hidden"
>
<app-link
v-if=
"isLeafMeu(item)"
:to=
"resolvePath(onlyOneChild.path, onlyOneChild.query)"
>
<el-menu-item
v-if=
"onlyOneChild.meta"
:index=
"resolvePath(onlyOneChild.path)"
>
{{
onlyOneChild
.
meta
.
title
}}
<div
class=
"menu-title"
:style=
"
{ padding: `0px ${15 * level}px` }">
{{
onlyOneChild
.
meta
.
title
}}
</div>
</el-menu-item>
</app-link>
<el-submenu
v-else
:index=
"resolvePath(item.path)"
popper-append-to-body
>
<span
slot=
"title"
v-if=
"item.meta"
>
{{
item
.
meta
.
title
}}
</span>
<div
slot=
"title"
class=
"menu-title"
:style=
"
{ padding: `0px ${20 * level}px` }" v-if="item.meta">
{{
item
.
meta
.
title
}}
</div>
<sidebar-item
v-for=
"child in item.children"
:key=
"child.path"
:is-nest=
"true"
:level=
"~~level + 1"
:item=
"child"
:base-path=
"resolvePath(child.path)"
class=
"nest-menu"
/>
...
...
@@ -36,6 +39,10 @@ export default {
type
:
Object
,
required
:
true
,
},
level
:
{
type
:
String
|
Number
,
default
:
1
,
},
isNest
:
{
type
:
Boolean
,
default
:
false
,
...
...
linkwe-pc/src/layout/components/Sidebar/index.vue
View file @
03fe0cd
...
...
@@ -11,9 +11,11 @@
v-for=
"(route, index) in sidebarRouters"
:key=
"route.path + index"
:item=
"route"
level=
"1"
:base-path=
"route.path"
/>
</el-menu>
</el-scrollbar>
<div
class=
"card"
>
<div
class=
""
>
{{
lwConfig
.
SYSTEM_NAME
}}
</div>
<div
class=
"info mt10 mb5"
>
版本:全功能最新版
</div>
...
...
@@ -111,6 +113,7 @@ export default {
//
菜单,目录
.el-menu-item
,
.el-submenu
>
.el-submenu__title
{
padding
:
0
!important
;
margin
:
4px
auto
;
font-weight
:
500
;
height
:
40px
;
...
...
linkwe-pc/src/styles/element-ui.scss
View file @
03fe0cd
...
...
@@ -123,58 +123,58 @@
}
.app-main.page
{
.el-table
{
background-color
:
transparent
;
&
:
:
before
{
content
:
none
;
}
.el-table__header-wrapper
th
,
.el-table__fixed-header-wrapper
th
,
.el-table__header-wrapper
tr
{
background-color
:
transparent
!
important
;
height
:
40px
;
}
.el-table__body-wrapper
,
.el-table__fixed-body-wrapper
{
tr
{
box-shadow
:
0px
0px
5px
0px
rgba
(
195
,
195
,
195
,
0
.35
);
height
:
50px
;
}
}
// th.is-leaf,
// td {
// border-bottom: 0;
// }
tr
td
{
&
:first-child
{
border-radius
:
4px
0
0
4px
;
border-left
:
1px
solid
#ddd
;
}
&
:last-child
{
border-radius
:
0
4px
4px
0
;
border-right
:
1px
solid
#ddd
;
}
}
.el-table__body
{
border-spacing
:
0
10px
;
}
.el-table__fixed
,
.el-table__fixed-right
{
&
:
:
before
{
content
:
none
;
}
}
.el-table__fixed
.el-table__fixed-body-wrapper
{
tr
td
:last-child
{
border-right
:
inherit
;
}
}
.el-table__fixed-right
.el-table__fixed-body-wrapper
{
tr
td
:first-child
{
border-left
:
inherit
;
}
}
}
//
.el-table {
//
background-color: transparent;
//
&::before {
//
content: none;
//
}
//
.el-table__header-wrapper th,
//
.el-table__fixed-header-wrapper th,
//
.el-table__header-wrapper tr {
//
background-color: transparent !important;
//
height: 40px;
//
}
//
.el-table__body-wrapper,
//
.el-table__fixed-body-wrapper {
//
tr {
//
box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35);
//
height: 50px;
//
}
//
}
//
// th.is-leaf,
//
// td {
//
// border-bottom: 0;
//
// }
//
tr td {
//
&:first-child {
//
border-radius: 4px 0 0 4px;
//
border-left: 1px solid #ddd;
//
}
//
&:last-child {
//
border-radius: 0 4px 4px 0;
//
border-right: 1px solid #ddd;
//
}
//
}
//
.el-table__body {
//
border-spacing: 0 10px;
//
}
//
.el-table__fixed,
//
.el-table__fixed-right {
//
&::before {
//
content: none;
//
}
//
}
//
.el-table__fixed .el-table__fixed-body-wrapper {
//
tr td:last-child {
//
border-right: inherit;
//
}
//
}
//
.el-table__fixed-right .el-table__fixed-body-wrapper {
//
tr td:first-child {
//
border-left: inherit;
//
}
//
}
//
}
}
.el-form-item
{
...
...
@@ -378,4 +378,65 @@
transform
:
translateX
(
-50%
);
background
:
var
(
--
color
);
}
.el-table
{
background-color
:
transparent
;
&
:
:
before
{
content
:
none
;
}
.el-table__header-wrapper
th
,
.el-table__fixed-header-wrapper
th
,
.el-table__header-wrapper
tr
{
background-color
:
#f5f7fa
;
height
:
40px
;
color
:
#1d2129
;
border-radius
:
var
(
--
border-radius-small
);
}
.el-table__body-wrapper
,
.el-table__fixed-body-wrapper
{
tr
{
// box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35);
height
:
50px
;
}
}
.el-table__body
{
border-collapse
:
collapse
;
}
// th.is-leaf,
// td {
// border-bottom: 0;
// }
&
.el-table--small
.el-table__row
.el-table__cell
{
border-bottom
:
1px
solid
#dfe6ec
;
border-top
:
1px
solid
#dfe6ec
;
padding
:
15px
0
;
}
th
.el-table__cell.is-leaf
{
border-bottom
:
0
;
}
tr
:hover
td
{
&
:first-child
{
border-radius
:
var
(
--
border-radius-big
)
0
0
var
(
--
border-radius-big
);
}
&
:last-child
{
border-radius
:
0
var
(
--
border-radius-big
)
var
(
--
border-radius-big
)
0
;
}
}
.el-table__fixed
,
.el-table__fixed-right
{
&
:
:
before
{
content
:
none
;
}
}
.el-table__fixed
.el-table__fixed-body-wrapper
{
tr
td
:last-child
{
border-right
:
inherit
;
}
}
.el-table__fixed-right
.el-table__fixed-body-wrapper
{
tr
td
:first-child
{
border-left
:
inherit
;
}
}
}
}
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