Skip to content

Commit eca9c4d

Browse files
committed
fixed:#1692 统一前端操作模式
1 parent d31b014 commit eca9c4d

File tree

8 files changed

+579
-561
lines changed

8 files changed

+579
-561
lines changed

web/src/style/element_visiable.scss

Lines changed: 178 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,6 @@
55
border-radius: 2px;
66
}
77

8-
::-webkit-scrollbar {
9-
@apply hidden;
10-
}
11-
12-
13-
.gva-search-box {
14-
@apply p-6 pb-0.5 bg-white rounded mb-3;
15-
}
16-
17-
.gva-form-box {
18-
@apply p-6 bg-white rounded;
19-
}
20-
218
.gva-pagination {
229
@apply flex justify-end;
2310
.el-pagination__editor {
@@ -40,3 +27,181 @@
4027
padding-bottom: 16px !important;
4128
@apply border-0 border-b border-solid border-gray-200;
4229
}
30+
31+
32+
.el-form--inline {
33+
.el-form-item {
34+
& > .el-input, .el-cascader, .el-select, .el-date-editor, .el-autocomplete {
35+
@apply w-52;
36+
}
37+
}
38+
}
39+
40+
.el-dropdown {
41+
@apply overflow-hidden
42+
}
43+
44+
45+
.admin-box {
46+
@apply min-h-[calc(100vh-200px)] px-3 py-4 mt-28 mb-4 mx-1;
47+
.el-table {
48+
th {
49+
@apply px-0 py-2;
50+
.cell {
51+
@apply leading-[40px] text-gray-700;
52+
}
53+
}
54+
td {
55+
@apply px-0 py-2;
56+
.cell {
57+
@apply leading-[40px] text-gray-600;
58+
}
59+
}
60+
.is-leaf {
61+
@apply border-b border-t-0 border-l-0 border-solid border-gray-50;
62+
border-right:var(--el-table-border);
63+
background: #F7FBFF !important;
64+
}
65+
}
66+
}
67+
68+
// layout
69+
70+
// table
71+
.el-pagination {
72+
@apply mt-8;
73+
.btn-prev,
74+
.btn-next {
75+
@apply border border-solid border-gray-300 rounded;
76+
}
77+
.el-pager {
78+
li {
79+
@apply border border-solid border-gray-300 rounded text-gray-600 text-sm mx-1;
80+
}
81+
}
82+
}
83+
84+
// 导航
85+
#app {
86+
.el-container {
87+
@apply relative h-full w-full;
88+
}
89+
.el-container.mobile.openside {
90+
@apply fixed top-0;
91+
}
92+
.gva-aside {
93+
@apply fixed top-0 left-0 z-[1001] overflow-hidden;
94+
.el-menu {
95+
@apply border-r-0;
96+
}
97+
}
98+
.aside {
99+
.el-menu--collapse {
100+
>.el-menu-item {
101+
display: flex;
102+
justify-content: center;
103+
}
104+
}
105+
.el-sub-menu {
106+
.el-menu {
107+
.is-active {
108+
// 关闭三级菜单二级菜单样式
109+
ul {
110+
border: none;
111+
}
112+
}
113+
// 关闭三级菜单二级菜单样式
114+
.is-active.is-opened {
115+
ul {
116+
border: none;
117+
}
118+
}
119+
}
120+
}
121+
}
122+
.hideside {
123+
.aside {
124+
@apply w-[54px]
125+
}
126+
}
127+
128+
.mobile {
129+
.gva-aside {
130+
@apply w-[54px];
131+
}
132+
}
133+
134+
.hideside {
135+
.main-cont.el-main {
136+
@apply ml-[54px];
137+
}
138+
}
139+
.mobile {
140+
.main-cont.el-main {
141+
@apply ml-0;
142+
}
143+
}
144+
}
145+
146+
.el-container.layout-cont {
147+
.header-cont {
148+
@apply px-4 h-16 bg-white;
149+
}
150+
151+
152+
.main-cont {
153+
@apply h-screen overflow-visible;
154+
&.el-main {
155+
@apply min-h-full ml-[220px] bg-main p-0 overflow-auto;
156+
}
157+
158+
.breadcrumb {
159+
@apply h-16 flex items-center p-0 ml-12 text-lg;
160+
.el-breadcrumb__item {
161+
.el-breadcrumb__inner {
162+
@apply text-gray-600;
163+
}
164+
}
165+
.el-breadcrumb__item:nth-last-child(1) {
166+
.el-breadcrumb__inner {
167+
@apply text-gray-600;
168+
}
169+
}
170+
}
171+
172+
.router-history {
173+
@apply bg-white p-0 border-t border-l-0 border-r-0 border-b-0 border-solid border-gray-100;
174+
.el-tabs__header {
175+
@apply m-0;
176+
.el-tabs__item{
177+
@apply border-solid border-r border-t-0 border-gray-100 border-b-0 border-l-0;
178+
}
179+
.el-tabs__item.is-active {
180+
@apply bg-blue-500 bg-opacity-5;
181+
}
182+
.el-tabs__nav {
183+
@apply border-0;
184+
}
185+
}
186+
}
187+
188+
.aside {
189+
@apply overflow-auto;
190+
}
191+
.el-menu-vertical {
192+
@apply h-[calc(100vh-60px)];
193+
&:not(.el-menu--collapse) {
194+
@apply w-[220px];
195+
}
196+
}
197+
.el-menu--collapse {
198+
@apply w-[54px];
199+
li {
200+
.el-tooltip,
201+
.el-sub-menu__title {
202+
@apply px-4;
203+
}
204+
}
205+
}
206+
}
207+
}

0 commit comments

Comments
 (0)