修复:旧浏览器样式与安全操作编号兼容,复用已完成的 Windows 数据库恢复
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { StyleProvider, legacyLogicalPropertiesTransformer } from '@ant-design/cssinjs';
|
||||
import { needsLegacyComponentStyles } from './browserStyleCompatibility';
|
||||
import React, { useLayoutEffect, useState } from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { App, ConfigProvider, theme as antdTheme } from 'antd';
|
||||
@@ -9,6 +11,9 @@ import './dark-theme.css';
|
||||
import './quality-table.css';
|
||||
import './workspace-finish.css';
|
||||
|
||||
const legacyComponentStyles = needsLegacyComponentStyles();
|
||||
const legacyStyleTransformers = [legacyLogicalPropertiesTransformer];
|
||||
|
||||
function QualityCenterApp() {
|
||||
const [themeId, setThemeId] = useState<WorkspaceThemeId>(getStoredWorkspaceThemeId);
|
||||
const appearance = getWorkspaceTheme(themeId);
|
||||
@@ -37,6 +42,7 @@ function QualityCenterApp() {
|
||||
}, [appearance]);
|
||||
|
||||
return (
|
||||
<StyleProvider hashPriority={legacyComponentStyles ? 'high' : undefined} transformers={legacyComponentStyles ? legacyStyleTransformers : undefined}>
|
||||
<ConfigProvider
|
||||
locale={zhCN}
|
||||
theme={{
|
||||
@@ -83,6 +89,7 @@ function QualityCenterApp() {
|
||||
<QualityWorkspace appearance={appearance} onAppearanceChange={setThemeId} />
|
||||
</App>
|
||||
</ConfigProvider>
|
||||
</StyleProvider>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user