Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
zhaochengxiang
szse
Commits
d421f038
Commit
d421f038
authored
Apr 26, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型列表分页
parent
df585b3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
index.js
src/util/index.js
+15
-2
index.tsx
src/view/Manage/VirtualTable/index.tsx
+2
-2
No files found.
src/util/index.js
View file @
d421f038
...
...
@@ -549,4 +549,17 @@ export function getInternalCurrentAnchor(_linkIds, _offsetTop = 0, _bounds = 5,
return
maxSection
.
id
;
}
return
''
;
};
\ No newline at end of file
};
export
function
isChromeVersionLessThan80
()
{
var
userAgent
=
navigator
.
userAgent
;
var
chromeMatch
=
userAgent
.
match
(
/Chrome
\/(\d
+
)
/
);
if
(
chromeMatch
&&
chromeMatch
[
1
])
{
var
chromeVersion
=
parseInt
(
chromeMatch
[
1
]);
return
chromeVersion
<
80
;
}
return
false
;
}
\ No newline at end of file
src/view/Manage/VirtualTable/index.tsx
View file @
d421f038
...
...
@@ -6,7 +6,7 @@ import type { CheckboxChangeEvent } from 'antd/es/checkbox';
import
{
DownOutlined
,
UpOutlined
}
from
'@ant-design/icons'
;
import
{
downNode
,
upNode
}
from
'./virtual-table-helper'
;
import
{
paginate
}
from
'../../../util'
;
import
{
isChromeVersionLessThan80
,
paginate
}
from
'../../../util'
;
import
'./index.less'
;
...
...
@@ -105,7 +105,7 @@ export function getExpandingCol<Row extends RowData, SR>({ colSpan, expandRender
return
col
}
export
const
defaultPageSize
=
8
00
export
const
defaultPageSize
=
isChromeVersionLessThan80
()
?
800
:
10000
00
function
FC
<
Row
extends
RowData
,
SR
,
K
extends
React
.
Key
=
React
.
Key
>
(
props
:
DataGridProps
<
Row
,
SR
,
K
>
&
Props
<
Row
>
)
{
const
{
...
...
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