mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
修复表格样式
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
.ant-table-pagination.ant-pagination {
|
||||
margin-bottom: 0;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
@@ -677,7 +677,8 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
||||
|
||||
setTimeout(() => {
|
||||
if (selectedRowIds.length === 0 || selectedIds.length === 0) {
|
||||
setTableScrollHeight(getTableScroll());
|
||||
const offset = isPhone ? 40 : 0;
|
||||
setTableScrollHeight(getTableScroll() - offset);
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -761,7 +762,8 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
||||
|
||||
useEffect(() => {
|
||||
setPageSize(parseInt(localStorage.getItem('pageSize') || '20'));
|
||||
setTableScrollHeight(getTableScroll());
|
||||
const offset = isPhone ? 40 : 0;
|
||||
setTableScrollHeight(getTableScroll() - offset);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
@@ -840,6 +842,7 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
||||
onChange: onPageChange,
|
||||
pageSize: pageSize,
|
||||
showSizeChanger: true,
|
||||
simple: isPhone,
|
||||
defaultPageSize: 20,
|
||||
showTotal: (total: number, range: number[]) =>
|
||||
`第 ${range[0]}-${range[1]} 条/总共 ${total} 条`,
|
||||
|
||||
Vendored
+4
-2
@@ -366,7 +366,8 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
|
||||
|
||||
setTimeout(() => {
|
||||
if (selectedRowIds.length === 0 || selectedIds.length === 0) {
|
||||
setTableScrollHeight(getTableScroll({ extraHeight: 40 }));
|
||||
const offset = isPhone ? 40 : 0;
|
||||
setTableScrollHeight(getTableScroll({ extraHeight: 127 }) - offset);
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -435,7 +436,8 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
|
||||
}, [searchText]);
|
||||
|
||||
useEffect(() => {
|
||||
setTableScrollHeight(getTableScroll({ extraHeight: 40 }));
|
||||
const offset = isPhone ? 40 : 0;
|
||||
setTableScrollHeight(getTableScroll({ extraHeight: 127 }) - offset);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user