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
e57741fb
Commit
e57741fb
authored
Jul 01, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
5aeab786
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
index.js
src/util/index.js
+2
-2
index.tsx
src/view/Manage/VirtualTable/index.tsx
+2
-2
No files found.
src/util/index.js
View file @
e57741fb
...
@@ -551,14 +551,14 @@ export function getInternalCurrentAnchor(_linkIds, _offsetTop = 0, _bounds = 5,
...
@@ -551,14 +551,14 @@ export function getInternalCurrentAnchor(_linkIds, _offsetTop = 0, _bounds = 5,
return
''
;
return
''
;
};
};
export
function
isChromeVersionLessThan
8
0
()
{
export
function
isChromeVersionLessThan
10
0
()
{
var
userAgent
=
navigator
.
userAgent
;
var
userAgent
=
navigator
.
userAgent
;
var
chromeMatch
=
userAgent
.
match
(
/Chrome
\/(\d
+
)
/
);
var
chromeMatch
=
userAgent
.
match
(
/Chrome
\/(\d
+
)
/
);
if
(
chromeMatch
&&
chromeMatch
[
1
])
{
if
(
chromeMatch
&&
chromeMatch
[
1
])
{
var
chromeVersion
=
parseInt
(
chromeMatch
[
1
]);
var
chromeVersion
=
parseInt
(
chromeMatch
[
1
]);
return
chromeVersion
<
8
0
;
return
chromeVersion
<
10
0
;
}
}
return
false
;
return
false
;
...
...
src/view/Manage/VirtualTable/index.tsx
View file @
e57741fb
...
@@ -6,7 +6,7 @@ import type { CheckboxChangeEvent } from 'antd/es/checkbox';
...
@@ -6,7 +6,7 @@ import type { CheckboxChangeEvent } from 'antd/es/checkbox';
import
{
DownOutlined
,
UpOutlined
}
from
'@ant-design/icons'
;
import
{
DownOutlined
,
UpOutlined
}
from
'@ant-design/icons'
;
import
{
downNode
,
upNode
}
from
'./virtual-table-helper'
;
import
{
downNode
,
upNode
}
from
'./virtual-table-helper'
;
import
{
isChromeVersionLessThan
8
0
,
paginate
}
from
'../../../util'
;
import
{
isChromeVersionLessThan
10
0
,
paginate
}
from
'../../../util'
;
import
'./index.less'
;
import
'./index.less'
;
...
@@ -105,7 +105,7 @@ export function getExpandingCol<Row extends RowData, SR>({ colSpan, expandRender
...
@@ -105,7 +105,7 @@ export function getExpandingCol<Row extends RowData, SR>({ colSpan, expandRender
return
col
return
col
}
}
export
const
defaultPageSize
=
isChromeVersionLessThan
8
0
()
?
800
:
1000000
export
const
defaultPageSize
=
isChromeVersionLessThan
10
0
()
?
800
:
1000000
function
FC
<
Row
extends
RowData
,
SR
,
K
extends
React
.
Key
=
React
.
Key
>
(
props
:
DataGridProps
<
Row
,
SR
,
K
>
&
Props
<
Row
>
)
{
function
FC
<
Row
extends
RowData
,
SR
,
K
extends
React
.
Key
=
React
.
Key
>
(
props
:
DataGridProps
<
Row
,
SR
,
K
>
&
Props
<
Row
>
)
{
const
{
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