Commit d421f038 by zhaochengxiang

模型列表分页

parent df585b3e
......@@ -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
......@@ -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 = 800
export const defaultPageSize = isChromeVersionLessThan80() ? 800 : 1000000
function FC<Row extends RowData, SR, K extends React.Key = React.Key>(props: DataGridProps<Row, SR, K> & Props<Row>) {
const {
......
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