refactor: env detail

This commit is contained in:
jialin
2026-01-30 18:48:55 +08:00
parent 577996f507
commit 667751dc5f
18 changed files with 377 additions and 187 deletions
@@ -1,5 +1,4 @@
import IconFont from '@/components/icon-font';
import { RightOutlined } from '@ant-design/icons';
import { useIntl } from '@umijs/max';
import { Button, Checkbox } from 'antd';
import _ from 'lodash';
@@ -88,14 +87,34 @@ const HeaderPrefix: React.FC<HeaderPrefixProps> = (props) => {
}
if (expandable) {
return (
<div className="header-row-prefix-wrapper">
{_.isBoolean(expandable) ? (
<Button type="text" size="small">
<RightOutlined />
</Button>
) : (
expandable
)}
<div
className="header-row-prefix-wrapper flex-center"
style={{ paddingLeft: 16 }}
>
<span style={{ marginRight: 5 }}>
{_.isBoolean(expandable) ? (
<Button
type="text"
size="small"
onClick={handleToggleExpand}
style={{ paddingInline: 6 }}
>
{expandAll ? (
<IconFont
type="icon-collapse_all"
className="font-size-16"
></IconFont>
) : (
<IconFont
type="icon-uncollapse_all"
className="font-size-16"
></IconFont>
)}
</Button>
) : (
expandable
)}
</span>
</div>
);
}
+1 -1
View File
@@ -27,7 +27,7 @@ const Wrapper = styled.div<{ $token: any }>`
props.$token.tableHeaderIconHoverColor};
`;
const SealTable: React.FC<SealTableProps & { pagination: PaginationProps }> = (
const SealTable: React.FC<SealTableProps & { pagination?: PaginationProps }> = (
props
) => {
const {