Commit 0d93bba9 authored by web's avatar web

antd兼容、滚动条隐藏

parent 937348bb
No preview for this file type
...@@ -2,7 +2,13 @@ ...@@ -2,7 +2,13 @@
text-align: center; text-align: center;
position: relative; position: relative;
} }
::-webkit-scrollbar {
display: none;
}
* {
scrollbar-width: none;
}
.App-logo { .App-logo {
height: 40vmin; height: 40vmin;
pointer-events: none; pointer-events: none;
......
...@@ -7,6 +7,7 @@ import './assets/fonts/fonts.scss' ...@@ -7,6 +7,7 @@ import './assets/fonts/fonts.scss'
import './index.css'; import './index.css';
import './App.css'; import './App.css';
import './styles.scss' import './styles.scss'
import { StyleProvider } from '@ant-design/cssinjs';
import { LoginProvider } from './context/LoginContext'; import { LoginProvider } from './context/LoginContext';
function App() { function App() {
...@@ -15,48 +16,48 @@ function App() { ...@@ -15,48 +16,48 @@ function App() {
const targetAdminHost = hostname !== 'localhost' ? 'https://console.' + host : 'http://' + host const targetAdminHost = hostname !== 'localhost' ? 'https://console.' + host : 'http://' + host
return ( return (
<div className="App"> <div className="App">
<ConfigProvider <StyleProvider hashPriority="high">
theme={ <ConfigProvider
{ theme={
token: { {
colorPrimary: '#722ED1', token: {
},
components: {
Button: {
borderRadius: 24,
colorPrimary: '#722ED1', colorPrimary: '#722ED1',
defaultColor: '#722ED1',
defaultBorderColor: '#722ED1',
defaultActiveBg: '#722ED1',
defaultActiveBorderColor: '#722ED1',
defaultActiveColor: '#fff',
primaryShadow: 'none',
colorPrimaryBg: '#722ED1',
}, },
Select: { components: {
optionSelectedBg: '#722ED1', Button: {
}, borderRadius: 24,
Table: { colorPrimary: '#722ED1',
headerBg: '#EFDBFF', defaultColor: '#722ED1',
headerColor: '#000', defaultBorderColor: '#722ED1',
cellFontSize: 16, defaultActiveBg: '#722ED1',
headerBorderRadius: 0, defaultActiveBorderColor: '#722ED1',
defaultActiveColor: '#fff',
primaryShadow: 'none',
colorPrimaryBg: '#722ED1',
},
Select: {
optionSelectedBg: '#722ED1',
},
Table: {
headerBg: '#EFDBFF',
headerColor: '#000',
cellFontSize: 16,
headerBorderRadius: 0,
}
} }
} }
} }
} >
> <Router basename='/' >
<Router basename='/' > <LoginProvider>
<LoginProvider> <Layout>
<Layout> <AppRoutes />
<AppRoutes /> <iframe id="targetFrame" src={`${targetAdminHost}/receiver`} title="Target Frame" style={{ display: 'none' }} />
<iframe id="targetFrame" src={`${targetAdminHost}/receiver`} title="Target Frame" style={{ display: 'none' }} /> </Layout>
</Layout> </LoginProvider>
</LoginProvider> </Router>
</Router> </ConfigProvider>
</ConfigProvider> </StyleProvider>
</div> </div>
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment