实现系统菜单树管理第一版
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -90,6 +90,194 @@
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.system-admin-menu-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
|
||||
gap: 18px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.section-actions,
|
||||
.form-actions,
|
||||
.menu-tree-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.section-actions,
|
||||
.form-actions {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.filter-grid .checkbox-field {
|
||||
min-height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
align-self: end;
|
||||
border: 1px solid var(--th-color-slate-200);
|
||||
border-radius: var(--th-radius-sm);
|
||||
background: var(--th-color-white);
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.filter-grid .checkbox-field input {
|
||||
min-height: 0;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.menu-warning-panel {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
border-color: rgba(245, 158, 11, 0.35);
|
||||
background: #fffbeb;
|
||||
}
|
||||
|
||||
.menu-warning-panel ul {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
margin: 0;
|
||||
padding: 0 0 0 18px;
|
||||
color: #92400e;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.menu-operation-panel {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
border-color: rgba(245, 158, 11, 0.28);
|
||||
background: var(--th-color-white);
|
||||
}
|
||||
|
||||
.menu-tree-section,
|
||||
.menu-detail-panel {
|
||||
align-self: start;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.menu-tree {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding: 14px 20px 20px;
|
||||
}
|
||||
|
||||
.menu-tree-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto auto auto auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: 54px;
|
||||
border: 1px solid var(--th-color-slate-200);
|
||||
border-radius: var(--th-radius-sm);
|
||||
background: var(--th-color-white);
|
||||
padding: 8px 10px;
|
||||
transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.menu-tree-row:hover {
|
||||
border-color: rgba(37, 99, 235, 0.36);
|
||||
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.menu-tree-row--selected {
|
||||
border-color: var(--th-color-blue-600);
|
||||
box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
|
||||
}
|
||||
|
||||
.menu-tree-row--muted {
|
||||
background: var(--th-color-slate-50);
|
||||
}
|
||||
|
||||
.menu-tree-row--warning {
|
||||
border-color: rgba(245, 158, 11, 0.45);
|
||||
}
|
||||
|
||||
.menu-tree-main {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, max-content) minmax(80px, 1fr);
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.menu-tree-branch {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border: 2px solid var(--th-color-blue-600);
|
||||
border-radius: 50%;
|
||||
background: var(--th-color-blue-50);
|
||||
}
|
||||
|
||||
.menu-tree-name {
|
||||
overflow: hidden;
|
||||
color: var(--th-color-slate-900);
|
||||
font-size: 13px;
|
||||
font-weight: 900;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.menu-tree-meta {
|
||||
color: var(--th-color-slate-500);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.status-pill--active {
|
||||
background: #dcfce7;
|
||||
color: #15803d;
|
||||
}
|
||||
|
||||
.code-chip--warning {
|
||||
background: #ffedd5;
|
||||
color: #c2410c;
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
border: 1px solid var(--th-color-slate-200);
|
||||
border-radius: var(--th-radius-sm);
|
||||
background: var(--th-color-white);
|
||||
color: var(--th-color-slate-700);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.icon-button:hover:not(:disabled) {
|
||||
border-color: var(--th-color-blue-600);
|
||||
color: var(--th-color-blue-600);
|
||||
}
|
||||
|
||||
.icon-button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.menu-config-form {
|
||||
padding: 16px 20px 20px;
|
||||
}
|
||||
|
||||
.form-message--warning {
|
||||
color: #b45309;
|
||||
}
|
||||
|
||||
.form-message--error {
|
||||
color: var(--th-color-danger);
|
||||
}
|
||||
|
||||
.text-button,
|
||||
.row-action {
|
||||
border: 0;
|
||||
@@ -102,6 +290,12 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.text-button:disabled,
|
||||
.row-action:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
min-height: 220px;
|
||||
display: grid;
|
||||
@@ -288,7 +482,8 @@ td small {
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.system-admin-grid {
|
||||
.system-admin-grid,
|
||||
.system-admin-menu-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
@@ -306,4 +501,18 @@ td small {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.section-actions,
|
||||
.form-actions {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.menu-tree-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.menu-tree-actions {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user