Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
h5-aigic
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
h5-aigic
Commits
0d93bba9
Commit
0d93bba9
authored
Apr 24, 2024
by
web
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
antd兼容、滚动条隐藏
parent
937348bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
37 deletions
+44
-37
.DS_Store
.DS_Store
+0
-0
App.css
src/App.css
+6
-0
App.js
src/App.js
+38
-37
No files found.
.DS_Store
View file @
0d93bba9
No preview for this file type
src/App.css
View file @
0d93bba9
...
...
@@ -2,7 +2,13 @@
text-align
:
center
;
position
:
relative
;
}
::-webkit-scrollbar
{
display
:
none
;
}
*
{
scrollbar-width
:
none
;
}
.App-logo
{
height
:
40vmin
;
pointer-events
:
none
;
...
...
src/App.js
View file @
0d93bba9
...
...
@@ -7,6 +7,7 @@ import './assets/fonts/fonts.scss'
import
'
./index.css
'
;
import
'
./App.css
'
;
import
'
./styles.scss
'
import
{
StyleProvider
}
from
'
@ant-design/cssinjs
'
;
import
{
LoginProvider
}
from
'
./context/LoginContext
'
;
function
App
()
{
...
...
@@ -15,48 +16,48 @@ function App() {
const
targetAdminHost
=
hostname
!==
'
localhost
'
?
'
https://console.
'
+
host
:
'
http://
'
+
host
return
(
<
div
className
=
"
App
"
>
<
ConfigProvider
theme
=
{
{
token
:
{
colorPrimary
:
'
#722ED1
'
,
},
components
:
{
Button
:
{
borderRadius
:
24
,
<
StyleProvider
hashPriority
=
"
high
"
>
<
ConfigProvider
theme
=
{
{
token
:
{
colorPrimary
:
'
#722ED1
'
,
defaultColor
:
'
#722ED1
'
,
defaultBorderColor
:
'
#722ED1
'
,
defaultActiveBg
:
'
#722ED1
'
,
defaultActiveBorderColor
:
'
#722ED1
'
,
defaultActiveColor
:
'
#fff
'
,
primaryShadow
:
'
none
'
,
colorPrimaryBg
:
'
#722ED1
'
,
},
Select
:
{
optionSelectedBg
:
'
#722ED1
'
,
},
Table
:
{
headerBg
:
'
#EFDBFF
'
,
headerColor
:
'
#000
'
,
cellFontSize
:
16
,
headerBorderRadius
:
0
,
components
:
{
Button
:
{
borderRadius
:
24
,
colorPrimary
:
'
#722ED1
'
,
defaultColor
:
'
#722ED1
'
,
defaultBorderColor
:
'
#722ED1
'
,
defaultActiveBg
:
'
#722ED1
'
,
defaultActiveBorderColor
:
'
#722ED1
'
,
defaultActiveColor
:
'
#fff
'
,
primaryShadow
:
'
none
'
,
colorPrimaryBg
:
'
#722ED1
'
,
},
Select
:
{
optionSelectedBg
:
'
#722ED1
'
,
},
Table
:
{
headerBg
:
'
#EFDBFF
'
,
headerColor
:
'
#000
'
,
cellFontSize
:
16
,
headerBorderRadius
:
0
,
}
}
}
}
}
>
<
Router
basename
=
'
/
'
>
<
LoginProvider
>
<
Layout
>
<
AppRoutes
/>
<
iframe
id
=
"
targetFrame
"
src
=
{
`
${
targetAdminHost
}
/receiver`
}
title
=
"
Target Frame
"
style
=
{{
display
:
'
none
'
}}
/
>
<
/Layout
>
<
/LoginProvider
>
<
/Router
>
<
/ConfigProvider
>
>
<
Router
basename
=
'
/
'
>
<
LoginProvider
>
<
Layout
>
<
AppRoutes
/>
<
iframe
id
=
"
targetFrame
"
src
=
{
`
${
targetAdminHost
}
/receiver`
}
title
=
"
Target Frame
"
style
=
{{
display
:
'
none
'
}}
/
>
<
/Layout
>
<
/LoginProvider
>
<
/Router
>
<
/ConfigProvider
>
<
/StyleProvider
>
<
/div
>
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment