refactor(ui): 将合并引入的 Semi 组件迁移到 Ant Design 适配层

- 创作台、WeyAi 设置、OrgResolver 共 23 个文件改从 @/components/ui 引入
- Popover 改用 open/trigger='click'/onOpenChange,移除 .semi-portal 判定
- Dropdown.Title / Item active 改为 menu group / selectedKeys
- Slider tooltip.formatter、Checkbox.Group、TagInput maxCount、DatePicker 取 Date 参数
- --semi-color-* 改为 --ui-color-*,遮罩色用 antd 默认,.semi-* 选择器改为 .ant-*
- docs/UI_MIGRATION.md 记录组件映射、视觉差异与风险
This commit is contained in:
qiubaishen
2026-11-10 12:48:02 +08:00
parent 635351f539
commit cfb9f85c90
30 changed files with 201 additions and 180 deletions
+28 -31
View File
@@ -27,8 +27,8 @@ For commercial licensing, please contact support@quantumnous.com
--wf-overlay: color-mix(in srgb, var(--surface-card) 82%, transparent);
--wf-scrim: color-mix(in srgb, var(--text-primary) 55%, transparent);
--wf-on-scrim: var(--surface-card);
--wf-success: var(--semi-color-success);
--wf-warning: var(--semi-color-warning);
--wf-success: var(--ui-color-success);
--wf-warning: var(--ui-color-warning);
display: flex;
flex-direction: column;
@@ -85,7 +85,7 @@ For commercial licensing, please contact support@quantumnous.com
}
.wf-card:hover {
border-color: color-mix(in srgb, var(--semi-color-primary) 30%, transparent);
border-color: color-mix(in srgb, var(--ui-color-primary) 30%, transparent);
box-shadow: 0 6px 20px color-mix(in srgb, var(--text-primary) 8%, transparent);
transform: translateY(-1px);
}
@@ -212,7 +212,7 @@ For commercial licensing, please contact support@quantumnous.com
}
.wf-icon-btn:hover {
border-color: color-mix(in srgb, var(--semi-color-primary) 45%, transparent);
border-color: color-mix(in srgb, var(--ui-color-primary) 45%, transparent);
color: var(--studio-accent);
}
@@ -291,7 +291,7 @@ For commercial licensing, please contact support@quantumnous.com
background: linear-gradient(
110deg,
var(--wf-media-bg) 30%,
color-mix(in srgb, var(--semi-color-primary) 10%, transparent) 50%,
color-mix(in srgb, var(--ui-color-primary) 10%, transparent) 50%,
var(--wf-media-bg) 70%
);
background-size: 200% 100%;
@@ -311,7 +311,7 @@ For commercial licensing, please contact support@quantumnous.com
height: 4px;
overflow: hidden;
border-radius: 999px;
background: color-mix(in srgb, var(--semi-color-primary) 15%, transparent);
background: color-mix(in srgb, var(--ui-color-primary) 15%, transparent);
}
.wf-progress > span {
@@ -416,12 +416,11 @@ For commercial licensing, please contact support@quantumnous.com
align-items: center;
gap: 8px;
padding: 8px 12px;
border: 1px solid
color-mix(in srgb, var(--semi-color-primary) 25%, transparent);
border: 1px solid color-mix(in srgb, var(--ui-color-primary) 25%, transparent);
border-radius: var(--wf-radius);
background: color-mix(
in srgb,
var(--semi-color-primary) 6%,
var(--ui-color-primary) 6%,
var(--surface-card)
);
font-size: 13px;
@@ -442,7 +441,7 @@ For commercial licensing, please contact support@quantumnous.com
min-width: 0;
}
.wf-filters .semi-select {
.wf-filters .ant-select {
min-width: 112px;
max-width: 180px;
}
@@ -461,8 +460,8 @@ For commercial licensing, please contact support@quantumnous.com
padding: 4px;
}
.wf-filter-panel .semi-select,
.wf-filter-panel .semi-input-wrapper {
.wf-filter-panel .ant-select,
.wf-filter-panel .ant-input-affix-wrapper {
width: 100%;
}
@@ -534,7 +533,7 @@ For commercial licensing, please contact support@quantumnous.com
}
.wf-thumb.is-active {
border-color: var(--semi-color-primary);
border-color: var(--ui-color-primary);
}
.wf-detail-section-title {
@@ -587,10 +586,9 @@ For commercial licensing, please contact support@quantumnous.com
.wf-detail-alert {
padding: 10px 12px;
border: 1px solid
color-mix(in srgb, var(--semi-color-danger) 30%, transparent);
border: 1px solid color-mix(in srgb, var(--ui-color-danger) 30%, transparent);
border-radius: 10px;
background: color-mix(in srgb, var(--semi-color-danger) 6%, transparent);
background: color-mix(in srgb, var(--ui-color-danger) 6%, transparent);
font-size: 13px;
word-break: break-word;
}
@@ -599,7 +597,7 @@ For commercial licensing, please contact support@quantumnous.com
.wf-detail button:focus-visible,
.wf-filters button:focus-visible {
outline: 2px solid
color-mix(in srgb, var(--semi-color-primary) 55%, transparent);
color-mix(in srgb, var(--ui-color-primary) 55%, transparent);
outline-offset: 2px;
}
@@ -644,7 +642,7 @@ For commercial licensing, please contact support@quantumnous.com
.wf-wall-eyebrow {
margin: 0 0 4px;
color: var(--studio-accent, var(--semi-color-primary));
color: var(--studio-accent, var(--ui-color-primary));
font-size: 11px;
font-weight: 600;
letter-spacing: 0.08em;
@@ -690,10 +688,10 @@ For commercial licensing, please contact support@quantumnous.com
}
.wf-tpl:hover {
border-color: color-mix(in srgb, var(--semi-color-primary) 45%, transparent);
border-color: color-mix(in srgb, var(--ui-color-primary) 45%, transparent);
background: color-mix(
in srgb,
var(--semi-color-primary) 4%,
var(--ui-color-primary) 4%,
var(--surface-card)
);
transform: translateY(-1px);
@@ -714,8 +712,8 @@ For commercial licensing, please contact support@quantumnous.com
width: 28px;
height: 28px;
border-radius: 8px;
background: color-mix(in srgb, var(--semi-color-primary) 10%, transparent);
color: var(--semi-color-primary);
background: color-mix(in srgb, var(--ui-color-primary) 10%, transparent);
color: var(--ui-color-primary);
}
.wf-tpl-title {
@@ -748,7 +746,7 @@ For commercial licensing, please contact support@quantumnous.com
.wf-tpl:focus-visible {
outline: 2px solid
color-mix(in srgb, var(--semi-color-primary) 55%, transparent);
color-mix(in srgb, var(--ui-color-primary) 55%, transparent);
outline-offset: 2px;
}
@@ -819,14 +817,14 @@ For commercial licensing, please contact support@quantumnous.com
}
.wf-api-toggle:hover {
background: color-mix(in srgb, var(--semi-color-primary) 5%, transparent);
background: color-mix(in srgb, var(--ui-color-primary) 5%, transparent);
}
.wf-api-toggle:focus-visible,
.wf-api-tab:focus-visible,
.wf-api-code:focus-visible {
outline: 2px solid
color-mix(in srgb, var(--semi-color-primary) 55%, transparent);
color-mix(in srgb, var(--ui-color-primary) 55%, transparent);
outline-offset: 2px;
}
@@ -838,8 +836,8 @@ For commercial licensing, please contact support@quantumnous.com
.wf-api-badge {
padding: 1px 8px;
border-radius: 999px;
background: color-mix(in srgb, var(--semi-color-success) 12%, transparent);
color: var(--semi-color-success);
background: color-mix(in srgb, var(--ui-color-success) 12%, transparent);
color: var(--ui-color-success);
font-size: 11px;
font-weight: 600;
}
@@ -930,10 +928,9 @@ For commercial licensing, please contact support@quantumnous.com
flex-direction: column;
gap: 8px;
padding: 10px;
border: 1px solid
color-mix(in srgb, var(--semi-color-primary) 25%, transparent);
border: 1px solid color-mix(in srgb, var(--ui-color-primary) 25%, transparent);
border-radius: 14px;
background: color-mix(in srgb, var(--semi-color-primary) 4%, transparent);
background: color-mix(in srgb, var(--ui-color-primary) 4%, transparent);
}
.wf-batch-head {
@@ -955,7 +952,7 @@ For commercial licensing, please contact support@quantumnous.com
/* ---------- 慢任务提示(WP C-4) ---------- */
.wf-slow {
max-width: 92%;
color: var(--wf-warning, var(--semi-color-warning));
color: var(--wf-warning, var(--ui-color-warning));
font-size: 11px;
line-height: 1.4;
text-align: center;