Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
936e3620
authored
Mar 26, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 滚动条样式
parent
e289c4ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
17 deletions
+9
-17
src/components/Layout/index.tsx
+7
-15
src/pages/data/detail.tsx
+2
-2
No files found.
src/components/Layout/index.tsx
View file @
936e3620
import
React
,
{
useEffect
}
from
'react'
;
import
{
Box
,
useColorMode
}
from
'@chakra-ui/react'
;
import
{
Box
,
useColorMode
,
Flex
}
from
'@chakra-ui/react'
;
import
Navbar
from
'./navbar'
;
import
NavbarPhone
from
'./navbarPhone'
;
import
{
useRouter
}
from
'next/router'
;
...
...
@@ -62,29 +62,21 @@ const Layout = ({ children }: { children: JSX.Element }) => {
<
Box
h=
{
'100%'
}
position=
{
'fixed'
}
left=
{
0
}
top=
{
0
}
w=
{
'80px'
}
>
<
Navbar
navbarList=
{
navbarList
}
/>
</
Box
>
<
Box
ml=
{
'80px'
}
h=
{
'100%
'
}
>
<
Box
maxW=
{
'1100px'
}
m=
{
'auto'
}
h=
{
'100%'
}
p=
{
7
}
overflowY=
{
'auto'
}
>
<
Box
h=
{
'100%'
}
ml=
{
'80px
'
}
>
<
Box
h=
{
'100%'
}
py=
{
7
}
px=
{
'5vw'
}
m=
{
'auto'
}
overflowY=
{
'auto'
}
>
<
Auth
>
{
children
}
</
Auth
>
</
Box
>
</
Box
>
</>
)
:
(
<
Box
pt=
{
'60px'
}
>
<
Box
h=
{
'60px'
}
position=
{
'fixed'
}
top=
{
0
}
left=
{
0
}
right=
{
0
}
zIndex=
{
100
}
borderBottom=
{
'1px solid rgba(0,0,0,0.1)'
}
>
<
Flex
h=
{
'100%'
}
flexDirection=
{
'column'
}
>
<
Box
h=
{
'60px'
}
borderBottom=
{
'1px solid rgba(0,0,0,0.1)'
}
>
<
NavbarPhone
navbarList=
{
navbarList
}
/>
</
Box
>
<
Box
py=
{
3
}
px=
{
4
}
>
<
Box
flex=
{
'1 0 0'
}
h=
{
0
}
py=
{
3
}
px=
{
4
}
overflowY=
{
'auto'
}
>
<
Auth
>
{
children
}
</
Auth
>
</
Box
>
</
Bo
x
>
</
Fle
x
>
)
}
</
Box
>
)
:
(
...
...
src/pages/data/detail.tsx
View file @
936e3620
import
React
from
'react'
;
import
{
Box
,
Card
,
Table
,
Thead
,
Tbody
,
Tr
,
Th
,
Td
,
TableContainer
}
from
'@chakra-ui/react'
;
import
{
Box
,
Card
}
from
'@chakra-ui/react'
;
import
ScrollData
from
'@/components/ScrollData'
;
import
{
getDataItems
}
from
'@/api/data'
;
import
{
usePaging
}
from
'@/hooks/usePaging'
;
...
...
@@ -13,7 +13,7 @@ const DataDetail = ({ dataName, dataId }: { dataName: string; dataId: string })
data
:
dataItems
}
=
usePaging
<
DataItemSchema
>
({
api
:
getDataItems
,
pageSize
:
10
,
pageSize
:
5
,
params
:
{
dataId
}
...
...
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