feat: 1.统一右侧抽屉关闭按钮布局 2.统一 UI 组件为 Ant Design 移除 radix-ui、floating-ui 组件 3. 修复 ESLint 文件格式错误的问题

This commit is contained in:
zhanjunhao
2026-11-10 14:08:10 +08:00
parent 5713d541b0
commit d224d5b6fa
202 changed files with 29195 additions and 12732 deletions
+10 -10
View File
@@ -273,14 +273,14 @@ export default function SettingsTheme(props) {
// 当前生效的 token(生效预设 + 自定义覆盖),用于预览
// 依赖 presetOverridesState:管理员编辑预设模板后重算
const effectiveLight = useMemo(
() => ({ ...getEffectivePreset(selectedPreset).light, ...customLight }),
[selectedPreset, customLight, presetOverridesState],
);
const effectiveDark = useMemo(
() => ({ ...getEffectivePreset(selectedPreset).dark, ...customDark }),
[selectedPreset, customDark, presetOverridesState],
);
const effectiveLight = {
...getEffectivePreset(selectedPreset).light,
...customLight,
};
const effectiveDark = {
...getEffectivePreset(selectedPreset).dark,
...customDark,
};
const effectivePalette =
colorMode === 'light' ? effectiveLight : effectiveDark;
@@ -430,10 +430,10 @@ export default function SettingsTheme(props) {
/* ============ 编辑预设模板 ============ */
// 当前编辑预设的浅色 effective(生效预设浅色 ∪ 草稿)
const presetEditLight = useMemo(() => {
const presetEditLight = (() => {
const base = getEffectivePreset(editingPresetKey).light;
return { ...base, ...presetDraft };
}, [editingPresetKey, presetDraft, presetOverridesState]);
})();
// 切换正在编辑的预设:载入其 effective 浅色作为草稿起点
const handleSelectEditingPreset = (key) => {