背景:用户选定方案 A 主从分栏,A4 需要落地字典与配置页。\n改动:新增 /system/dicts、/system/dicts/:type、/system/settings;主从类型列表 + 三层合并 + 树/词表切换 + 条目/类型弹层;6 组配置 + 命名预览 + 阈值二次确认 + 变更记录;客户字段上限改读 effective config;路由/样式/OpenAPI 类型同步。\n影响面:管理中心新增两个菜单页;客户页上限显示改为配置读取(fallback 共享常量)。\n回滚:回滚本提交并恢复 AppLayout / routes / main 样式 import。\n验证:web typecheck/lint/build;单测 154;浏览器自检 1440/1024 无溢出。
1307 lines
24 KiB
CSS
1307 lines
24 KiB
CSS
/* A4 数据字典(方案 A:左 320 类型列表 + 右详情主从分栏) */
|
|
|
|
.lx-dict-page {
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
flex-direction: column;
|
|
gap: var(--lx-space-4);
|
|
}
|
|
|
|
/* ---------- 页头与统计条 ---------- */
|
|
|
|
.lx-dict-page__header {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--lx-space-4);
|
|
}
|
|
|
|
.lx-dict-page__header h1 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
line-height: 28px;
|
|
color: var(--lx-color-text-primary);
|
|
}
|
|
|
|
.lx-dict-page__header p {
|
|
margin-top: 2px;
|
|
font-size: var(--lx-font-size-xs);
|
|
color: var(--lx-color-text-secondary);
|
|
}
|
|
|
|
.lx-dict-page__actions {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
gap: var(--lx-space-2);
|
|
}
|
|
|
|
.lx-dict-readonly-chip {
|
|
display: inline-flex;
|
|
height: 28px;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 0 10px;
|
|
border-radius: var(--lx-radius-pill);
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: var(--lx-font-size-xs);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-statstrip {
|
|
display: flex;
|
|
height: 58px;
|
|
flex: 0 0 58px;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
padding: 0 18px;
|
|
border: 1px solid var(--lx-color-border);
|
|
border-radius: var(--lx-radius-lg);
|
|
background: var(--lx-color-bg-panel);
|
|
box-shadow: var(--lx-shadow-panel);
|
|
}
|
|
|
|
.lx-dict-statstrip__item {
|
|
padding-right: 18px;
|
|
margin-right: 18px;
|
|
border-right: 1px solid var(--lx-color-border);
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: var(--lx-font-size-xs);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-statstrip__item b {
|
|
margin-left: 7px;
|
|
color: var(--lx-color-text-primary);
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.lx-dict-statstrip__hint {
|
|
margin-left: auto;
|
|
overflow: hidden;
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: var(--lx-font-size-xs);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ---------- 主从骨架 ---------- */
|
|
|
|
.lx-dict-split {
|
|
display: flex;
|
|
flex: 1;
|
|
gap: var(--lx-space-4);
|
|
min-height: 0;
|
|
}
|
|
|
|
.lx-dict-list {
|
|
display: flex;
|
|
width: 320px;
|
|
flex: 0 0 320px;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
border: 1px solid var(--lx-color-border);
|
|
border-radius: var(--lx-radius-lg);
|
|
background: var(--lx-color-bg-panel);
|
|
box-shadow: var(--lx-shadow-panel);
|
|
}
|
|
|
|
.lx-dict-list__head {
|
|
display: flex;
|
|
height: 48px;
|
|
flex: 0 0 48px;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 0 14px;
|
|
border-bottom: 1px solid var(--lx-color-border);
|
|
}
|
|
|
|
.lx-dict-list__title {
|
|
color: var(--lx-color-text-primary);
|
|
font-size: var(--lx-font-size-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.lx-dict-list__count {
|
|
min-width: 20px;
|
|
padding: 0 6px;
|
|
border-radius: var(--lx-radius-pill);
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: 11px;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.lx-dict-list__note {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-left: auto;
|
|
color: var(--lx-color-text-tertiary);
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-list__tools {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--lx-color-border);
|
|
}
|
|
|
|
.lx-dict-status-filter {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
|
|
.lx-dict-status-filter .semi-radioGroup {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
|
|
.lx-dict-status-filter .semi-radio {
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
|
|
.lx-dict-list__body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.lx-dict-list__state {
|
|
padding: 24px 12px;
|
|
}
|
|
|
|
/* ---------- 类型分组与类型项 ---------- */
|
|
|
|
.lx-dict-group {
|
|
border-bottom: 1px solid var(--lx-color-border);
|
|
}
|
|
|
|
.lx-dict-group:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.lx-dict-group__head {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 36px;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 0 12px;
|
|
background: var(--lx-color-bg-subtle);
|
|
color: var(--lx-color-text-secondary);
|
|
text-align: left;
|
|
transition: background var(--lx-motion-fast) var(--lx-ease-out);
|
|
}
|
|
|
|
.lx-dict-group__head:hover {
|
|
background: var(--lx-color-bg-hover);
|
|
}
|
|
|
|
.lx-dict-group__caret,
|
|
.lx-dict-group__icon {
|
|
display: inline-flex;
|
|
flex: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--lx-color-text-tertiary);
|
|
}
|
|
|
|
.lx-dict-group__head b {
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: var(--lx-font-size-xs);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.lx-dict-group__count {
|
|
margin-left: auto;
|
|
color: var(--lx-color-text-tertiary);
|
|
font-size: 11px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.lx-dict-type {
|
|
position: relative;
|
|
display: flex;
|
|
width: 100%;
|
|
min-height: 58px;
|
|
align-items: center;
|
|
gap: 9px;
|
|
padding: 7px 12px;
|
|
border-bottom: 1px solid var(--lx-color-border);
|
|
background: var(--lx-color-bg-panel);
|
|
text-align: left;
|
|
transition: background var(--lx-motion-fast) var(--lx-ease-out);
|
|
}
|
|
|
|
.lx-dict-type:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.lx-dict-type:hover {
|
|
background: var(--lx-color-bg-hover);
|
|
}
|
|
|
|
.lx-dict-type.is-selected {
|
|
background: var(--lx-color-brand-soft);
|
|
}
|
|
|
|
.lx-dict-type.is-selected::before {
|
|
position: absolute;
|
|
top: 8px;
|
|
bottom: 8px;
|
|
left: 0;
|
|
width: 2px;
|
|
border-radius: 0 2px 2px 0;
|
|
background: var(--lx-color-brand);
|
|
content: '';
|
|
}
|
|
|
|
.lx-dict-type__icon {
|
|
display: inline-flex;
|
|
width: 30px;
|
|
height: 30px;
|
|
flex: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--lx-radius-md);
|
|
background: var(--lx-color-brand-soft);
|
|
color: var(--lx-color-brand);
|
|
}
|
|
|
|
.lx-dict-type__main {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.lx-dict-type__name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.lx-dict-type__name b {
|
|
overflow: hidden;
|
|
color: var(--lx-color-text-primary);
|
|
font-size: var(--lx-font-size-sm);
|
|
font-weight: 500;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-type.is-selected .lx-dict-type__name b {
|
|
color: var(--lx-color-brand);
|
|
}
|
|
|
|
.lx-dict-mini-tag {
|
|
height: 17px;
|
|
flex: none;
|
|
padding: 0 5px;
|
|
border-radius: 3px;
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: 10px;
|
|
line-height: 17px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-mini-tag.is-blue {
|
|
background: var(--lx-color-brand-soft);
|
|
color: var(--lx-color-brand);
|
|
}
|
|
|
|
.lx-dict-type__meta {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 2px 4px;
|
|
margin-top: 3px;
|
|
color: var(--lx-color-text-tertiary);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.lx-dict-type__meta code {
|
|
color: var(--lx-color-text-tertiary);
|
|
font-family: var(--lx-font-mono);
|
|
font-size: 10.5px;
|
|
}
|
|
|
|
.lx-dict-type__meta i {
|
|
color: var(--lx-color-border-strong);
|
|
font-style: normal;
|
|
}
|
|
|
|
.lx-dict-type__side {
|
|
display: flex;
|
|
flex: none;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 2px;
|
|
}
|
|
|
|
.lx-dict-type__date {
|
|
color: var(--lx-color-text-tertiary);
|
|
font-size: 10px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ---------- 详情右栏 ---------- */
|
|
|
|
.lx-dict-detail {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
border: 1px solid var(--lx-color-border);
|
|
border-radius: var(--lx-radius-lg);
|
|
background: var(--lx-color-bg-panel);
|
|
box-shadow: var(--lx-shadow-panel);
|
|
}
|
|
|
|
.lx-dict-detail__state {
|
|
margin: auto;
|
|
}
|
|
|
|
.lx-dict-banner {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
align-items: flex-start;
|
|
gap: 9px;
|
|
padding: 9px 18px;
|
|
border-bottom: 1px solid var(--lx-color-border);
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: var(--lx-font-size-xs);
|
|
line-height: 18px;
|
|
}
|
|
|
|
.lx-dict-banner > svg {
|
|
flex: none;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.lx-dict-banner b {
|
|
display: block;
|
|
color: var(--lx-color-text-primary);
|
|
font-size: var(--lx-font-size-xs);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.lx-dict-banner span {
|
|
display: block;
|
|
}
|
|
|
|
.lx-dict-banner.is-muted {
|
|
background: var(--lx-color-brand-soft);
|
|
}
|
|
|
|
.lx-dict-head {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
align-items: flex-start;
|
|
gap: var(--lx-space-3);
|
|
padding: 14px 18px 12px;
|
|
}
|
|
|
|
.lx-dict-head__avatar {
|
|
display: inline-flex;
|
|
width: 44px;
|
|
height: 44px;
|
|
flex: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--lx-radius-lg);
|
|
background: var(--lx-color-brand-soft);
|
|
color: var(--lx-color-brand);
|
|
}
|
|
|
|
.lx-dict-head__avatar.is-gray {
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-tertiary);
|
|
}
|
|
|
|
.lx-dict-head__main {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.lx-dict-head__name {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.lx-dict-tag.semi-tag {
|
|
height: 20px;
|
|
padding: 0 6px;
|
|
font-size: 11px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.lx-dict-head__name b {
|
|
color: var(--lx-color-text-primary);
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
line-height: 22px;
|
|
}
|
|
|
|
.lx-dict-tag {
|
|
height: 20px;
|
|
margin: 0;
|
|
padding: 0 6px;
|
|
border: 0;
|
|
border-radius: 3px;
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: 11px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.lx-dict-tag.is-blue {
|
|
background: var(--lx-color-brand-soft);
|
|
color: var(--lx-color-brand);
|
|
}
|
|
|
|
.lx-dict-tag.is-green {
|
|
background: #e8f8ec;
|
|
color: var(--lx-color-success);
|
|
}
|
|
|
|
.lx-dict-tag.is-grey {
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-tertiary);
|
|
}
|
|
|
|
.lx-dict-head__meta {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 4px;
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: 11.5px;
|
|
line-height: 17px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.lx-dict-head__meta code {
|
|
color: var(--lx-color-text-secondary);
|
|
font-family: var(--lx-font-mono);
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.lx-dict-head__meta i {
|
|
color: var(--lx-color-border-strong);
|
|
font-style: normal;
|
|
}
|
|
|
|
.lx-dict-head__desc {
|
|
display: -webkit-box;
|
|
overflow: hidden;
|
|
margin-top: 5px;
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: var(--lx-font-size-xs);
|
|
line-height: 18px;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
|
|
.lx-dict-head__actions {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
/* ---------- 行业作用域条 ---------- */
|
|
|
|
.lx-dict-scope {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin: 0 18px;
|
|
padding: 7px 10px;
|
|
border: 1px solid var(--lx-color-border);
|
|
border-radius: var(--lx-radius-md);
|
|
background: var(--lx-color-bg-subtle);
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: var(--lx-font-size-xs);
|
|
}
|
|
|
|
.lx-dict-scope__label {
|
|
color: var(--lx-color-text-secondary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-scope__select {
|
|
width: 172px;
|
|
flex: none;
|
|
}
|
|
|
|
.lx-dict-scope__layers {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
}
|
|
|
|
.lx-dict-layer-wrap {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.lx-dict-layer-chip {
|
|
display: inline-flex;
|
|
height: 22px;
|
|
align-items: center;
|
|
padding: 0 7px;
|
|
border: 1px solid var(--lx-color-border);
|
|
border-radius: var(--lx-radius-pill);
|
|
background: var(--lx-color-bg-panel);
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-layer-chip b {
|
|
margin-left: 4px;
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.lx-dict-layer-chip.is-on {
|
|
border-color: #b9d5ff;
|
|
background: var(--lx-color-brand-soft);
|
|
color: var(--lx-color-brand);
|
|
}
|
|
|
|
.lx-dict-layer-chip.is-on b {
|
|
color: var(--lx-color-brand);
|
|
}
|
|
|
|
.lx-dict-layer-chip.is-total {
|
|
border-color: #b7edc2;
|
|
background: #e8f8ec;
|
|
color: var(--lx-color-success);
|
|
}
|
|
|
|
.lx-dict-layer-chip.is-total b {
|
|
color: var(--lx-color-success);
|
|
}
|
|
|
|
.lx-dict-layer-plus {
|
|
color: var(--lx-color-border-strong);
|
|
font-style: normal;
|
|
}
|
|
|
|
.lx-dict-scope__hint {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: var(--lx-color-text-tertiary);
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-scope__unsupported {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--lx-color-text-secondary);
|
|
}
|
|
|
|
/* ---------- 视图切换 ---------- */
|
|
|
|
.lx-dict-viewrow {
|
|
display: flex;
|
|
min-height: 44px;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 18px;
|
|
border-bottom: 1px solid var(--lx-color-border);
|
|
}
|
|
|
|
.lx-dict-viewrow__hint {
|
|
margin-left: auto;
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: 11.5px;
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-viewrow__hint b {
|
|
color: var(--lx-color-success);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.lx-dict-override-pill {
|
|
display: inline-flex;
|
|
height: 24px;
|
|
align-items: center;
|
|
padding: 0 8px;
|
|
border-radius: var(--lx-radius-pill);
|
|
background: var(--lx-color-brand-soft);
|
|
color: var(--lx-color-brand);
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-items {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
/* ---------- 条目表格 ---------- */
|
|
|
|
.lx-dict-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
font-size: var(--lx-font-size-xs);
|
|
}
|
|
|
|
.lx-dict-table col:nth-child(1) {
|
|
width: 22%;
|
|
}
|
|
.lx-dict-table col:nth-child(2) {
|
|
width: 14%;
|
|
}
|
|
.lx-dict-table col:nth-child(3) {
|
|
width: 7%;
|
|
}
|
|
.lx-dict-table col:nth-child(4) {
|
|
width: 16%;
|
|
}
|
|
.lx-dict-table col:nth-child(5) {
|
|
width: 5%;
|
|
}
|
|
.lx-dict-table col:nth-child(6) {
|
|
width: 9%;
|
|
}
|
|
.lx-dict-table col:nth-child(7) {
|
|
width: 4%;
|
|
}
|
|
.lx-dict-table col:nth-child(8) {
|
|
width: 11%;
|
|
}
|
|
.lx-dict-table col:nth-child(9) {
|
|
width: 12%;
|
|
}
|
|
|
|
.lx-dict-table th {
|
|
height: 40px;
|
|
padding: 0 10px;
|
|
background: var(--lx-color-bg-subtle);
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: 11.5px;
|
|
font-weight: 500;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-table td {
|
|
height: 54px;
|
|
overflow: hidden;
|
|
padding: 0 10px;
|
|
border-bottom: 1px solid var(--lx-color-border);
|
|
color: var(--lx-color-text-secondary);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-table tbody tr:hover td {
|
|
background: var(--lx-color-bg-hover);
|
|
}
|
|
|
|
.lx-dict-table tbody tr.is-disabled td {
|
|
background: var(--lx-color-bg-subtle);
|
|
}
|
|
|
|
.lx-dict-table tbody tr.is-disabled .lx-dict-col-name b {
|
|
color: var(--lx-color-text-secondary);
|
|
}
|
|
|
|
.lx-dict-col-name b {
|
|
display: block;
|
|
overflow: hidden;
|
|
color: var(--lx-color-text-primary);
|
|
font-size: 12.5px;
|
|
font-weight: 500;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-code {
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
padding: 1px 5px;
|
|
border-radius: var(--lx-radius-sm);
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-secondary);
|
|
font-family: var(--lx-font-mono);
|
|
font-size: 11px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.lx-dict-num {
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.lx-dict-col-acts {
|
|
text-align: right;
|
|
}
|
|
|
|
.lx-dict-col-time {
|
|
color: var(--lx-color-text-tertiary);
|
|
font-size: 11.5px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.lx-dict-row-actions {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.lx-dict-link {
|
|
color: var(--lx-color-brand);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-link:hover {
|
|
color: var(--lx-color-brand-hover);
|
|
}
|
|
|
|
.lx-dict-link.is-danger {
|
|
color: var(--lx-color-danger);
|
|
}
|
|
|
|
.lx-dict-link.is-danger:hover {
|
|
color: #ff5a5a;
|
|
}
|
|
|
|
/* ---------- 来源 / 状态标签 ---------- */
|
|
|
|
.lx-dict-source-group {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.lx-dict-source {
|
|
display: inline-flex;
|
|
height: 19px;
|
|
margin: 0;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 0 5px;
|
|
border: 0;
|
|
border-radius: 3px;
|
|
font-size: 10.5px;
|
|
line-height: 19px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-source.semi-tag {
|
|
height: 19px;
|
|
padding: 0 5px;
|
|
font-size: 10.5px;
|
|
line-height: 19px;
|
|
}
|
|
|
|
.lx-dict-source::before {
|
|
width: 4px;
|
|
height: 4px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
content: '';
|
|
}
|
|
|
|
.lx-dict-source--generic {
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-secondary);
|
|
}
|
|
|
|
.lx-dict-source--parent {
|
|
background: #fff4e8;
|
|
color: #ad5700;
|
|
}
|
|
|
|
.lx-dict-source--current {
|
|
background: var(--lx-color-brand-soft);
|
|
color: var(--lx-color-brand);
|
|
}
|
|
|
|
.lx-dict-source--override {
|
|
background: #f3eeff;
|
|
color: #6b3fd4;
|
|
}
|
|
|
|
.lx-dict-source--disabled {
|
|
background: #ffecec;
|
|
color: var(--lx-color-danger);
|
|
}
|
|
|
|
.lx-dict-status {
|
|
display: inline-flex;
|
|
height: 19px;
|
|
margin: 0;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 0 5px;
|
|
border: 0;
|
|
border-radius: 3px;
|
|
font-size: 10.5px;
|
|
line-height: 19px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-status.semi-tag {
|
|
height: 19px;
|
|
padding: 0 5px;
|
|
font-size: 10.5px;
|
|
line-height: 19px;
|
|
}
|
|
|
|
.lx-dict-status::before {
|
|
width: 4px;
|
|
height: 4px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
content: '';
|
|
}
|
|
|
|
.lx-dict-status--active {
|
|
background: #e8f8ec;
|
|
color: var(--lx-color-success);
|
|
}
|
|
|
|
.lx-dict-status--disabled {
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-tertiary);
|
|
}
|
|
|
|
/* ---------- 树视图 ---------- */
|
|
|
|
.lx-dict-tree {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.lx-dict-tree__branch {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.lx-dict-tree__child {
|
|
padding-left: 14px;
|
|
}
|
|
|
|
.lx-dict-tree__row {
|
|
display: flex;
|
|
min-height: 46px;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 12px 4px 16px;
|
|
border-bottom: 1px solid var(--lx-color-border);
|
|
}
|
|
|
|
.lx-dict-tree__row:hover {
|
|
background: var(--lx-color-bg-hover);
|
|
}
|
|
|
|
.lx-dict-tree__row.is-disabled {
|
|
background: var(--lx-color-bg-subtle);
|
|
}
|
|
|
|
.lx-dict-tree__child .lx-dict-tree__row {
|
|
background: var(--lx-color-bg-subtle);
|
|
}
|
|
|
|
.lx-dict-tree__row.is-disabled .lx-dict-tree__main b {
|
|
color: var(--lx-color-text-secondary);
|
|
}
|
|
|
|
.lx-dict-tree__caret {
|
|
display: inline-flex;
|
|
width: 18px;
|
|
height: 18px;
|
|
flex: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--lx-radius-sm);
|
|
background: var(--lx-color-bg-hover);
|
|
color: var(--lx-color-text-tertiary);
|
|
}
|
|
|
|
.lx-dict-tree__caret.is-empty {
|
|
background: transparent;
|
|
}
|
|
|
|
.lx-dict-tree__main {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex: 1;
|
|
align-items: center;
|
|
gap: 7px;
|
|
}
|
|
|
|
.lx-dict-tree__main b {
|
|
overflow: hidden;
|
|
color: var(--lx-color-text-primary);
|
|
font-size: 12.5px;
|
|
font-weight: 500;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-tree__meta {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
gap: 12px;
|
|
color: var(--lx-color-text-tertiary);
|
|
font-size: 11px;
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-tree__acts {
|
|
display: flex;
|
|
flex: none;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* ---------- 底部说明条 ---------- */
|
|
|
|
.lx-dict-footer {
|
|
display: flex;
|
|
height: 38px;
|
|
flex: 0 0 38px;
|
|
align-items: center;
|
|
gap: 8px;
|
|
overflow: hidden;
|
|
padding: 0 18px;
|
|
border-top: 1px solid var(--lx-color-border);
|
|
background: var(--lx-color-bg-panel);
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: 11.5px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lx-dict-footer__sep {
|
|
color: var(--lx-color-border-strong);
|
|
}
|
|
|
|
.lx-dict-footer__right {
|
|
margin-left: auto;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ---------- 空态 / 骨架 ---------- */
|
|
|
|
.lx-dict-empty {
|
|
display: flex;
|
|
height: 100%;
|
|
min-height: 240px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.lx-dict-skeleton {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.lx-dict-skeleton__row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
}
|
|
|
|
.lx-dict-skeleton__icon {
|
|
width: 30px;
|
|
height: 30px;
|
|
flex: none;
|
|
border-radius: var(--lx-radius-md);
|
|
background: var(--lx-color-bg-hover);
|
|
}
|
|
|
|
.lx-dict-skeleton__lines {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.lx-dict-skeleton__lines span {
|
|
height: 10px;
|
|
border-radius: 4px;
|
|
background: var(--lx-color-bg-hover);
|
|
}
|
|
|
|
.lx-dict-skeleton__lines span:last-child {
|
|
width: 60%;
|
|
}
|
|
|
|
.lx-dict-detail-skeleton {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
padding: 18px;
|
|
}
|
|
|
|
.lx-dict-detail-skeleton__head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.lx-dict-detail-skeleton__avatar {
|
|
width: 44px;
|
|
height: 44px;
|
|
flex: none;
|
|
border-radius: var(--lx-radius-lg);
|
|
background: var(--lx-color-bg-hover);
|
|
}
|
|
|
|
.lx-dict-detail-skeleton__lines {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: 7px;
|
|
}
|
|
|
|
.lx-dict-detail-skeleton__lines span {
|
|
height: 12px;
|
|
border-radius: 4px;
|
|
background: var(--lx-color-bg-hover);
|
|
}
|
|
|
|
.lx-dict-detail-skeleton__lines span:nth-child(2) {
|
|
width: 60%;
|
|
}
|
|
|
|
.lx-dict-detail-skeleton__lines span:nth-child(3) {
|
|
width: 40%;
|
|
}
|
|
|
|
.lx-dict-detail-skeleton__bar {
|
|
height: 38px;
|
|
border-radius: var(--lx-radius-md);
|
|
background: var(--lx-color-bg-hover);
|
|
}
|
|
|
|
.lx-dict-detail-skeleton__rows {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.lx-dict-detail-skeleton__rows span {
|
|
height: 44px;
|
|
border-radius: var(--lx-radius-md);
|
|
background: var(--lx-color-bg-hover);
|
|
}
|
|
|
|
/* ---------- 弹层表单(条目抽屉 / 类型弹窗共用) ---------- */
|
|
|
|
.lx-dict-sheet,
|
|
.lx-dict-form-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.lx-dict-form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 14px 16px;
|
|
}
|
|
|
|
.lx-dict-field {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.lx-dict-field.is-full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.lx-dict-field__label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: var(--lx-font-size-xs);
|
|
}
|
|
|
|
.lx-dict-field__label i {
|
|
color: var(--lx-color-danger);
|
|
font-style: normal;
|
|
}
|
|
|
|
.lx-dict-field__hint {
|
|
margin-left: auto;
|
|
color: var(--lx-color-text-tertiary);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.lx-dict-field__error {
|
|
color: var(--lx-color-danger);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.lx-dict-sheet__sub {
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: var(--lx-font-size-xs);
|
|
}
|
|
|
|
.lx-dict-sheet__sub code {
|
|
padding: 1px 5px;
|
|
border-radius: var(--lx-radius-sm);
|
|
background: var(--lx-color-bg-hover);
|
|
font-family: var(--lx-font-mono);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.lx-dict-sheet__footer,
|
|
.lx-dict-modal__footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.lx-dict-modal__spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.lx-dict-switch-line {
|
|
display: inline-flex;
|
|
height: 32px;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--lx-color-text-secondary);
|
|
font-size: var(--lx-font-size-xs);
|
|
}
|
|
|
|
.lx-dict-form-error {
|
|
padding: 7px 10px;
|
|
border: 1px solid #ffd3d3;
|
|
border-radius: var(--lx-radius-md);
|
|
background: #ffecec;
|
|
color: var(--lx-color-danger);
|
|
font-size: var(--lx-font-size-xs);
|
|
}
|
|
|
|
.lx-dict-note {
|
|
padding: 8px 10px;
|
|
border: 1px solid #c9dfff;
|
|
border-radius: var(--lx-radius-md);
|
|
background: var(--lx-color-brand-soft);
|
|
color: #0b5fd0;
|
|
font-size: var(--lx-font-size-xs);
|
|
line-height: 17px;
|
|
}
|
|
|
|
.lx-dict-note.is-warn {
|
|
border-color: #ffd8ac;
|
|
background: #fff4e8;
|
|
color: #ad5700;
|
|
}
|
|
|
|
/* ---------- 小屏兜底:左栏收窄、隐藏次要列(1440 为基准) ---------- */
|
|
|
|
@media (width <= 1200px) {
|
|
.lx-dict-list {
|
|
width: 272px;
|
|
flex-basis: 272px;
|
|
}
|
|
|
|
/* 小屏优先保证类型名称 / 编码可读,隐藏次要标签 */
|
|
.lx-dict-type__name .lx-dict-mini-tag {
|
|
display: none;
|
|
}
|
|
|
|
.lx-dict-type__meta code {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.lx-dict-table {
|
|
table-layout: auto;
|
|
}
|
|
|
|
.lx-dict-table col {
|
|
width: auto !important;
|
|
}
|
|
|
|
.lx-dict-table th:nth-child(3),
|
|
.lx-dict-table td:nth-child(3),
|
|
.lx-dict-table th:nth-child(7),
|
|
.lx-dict-table td:nth-child(7),
|
|
.lx-dict-table th:nth-child(8),
|
|
.lx-dict-table td:nth-child(8) {
|
|
display: none;
|
|
}
|
|
|
|
.lx-dict-statstrip__hint {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (width <= 1024px) {
|
|
.lx-dict-list {
|
|
width: 252px;
|
|
flex-basis: 252px;
|
|
}
|
|
|
|
.lx-dict-type__date {
|
|
display: none;
|
|
}
|
|
|
|
.lx-dict-head__desc {
|
|
display: none;
|
|
}
|
|
|
|
.lx-dict-viewrow__hint {
|
|
display: none;
|
|
}
|
|
}
|